cnhis-design-vue 3.2.14-release.0 → 3.2.15-beta.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 (337) hide show
  1. package/README.md +87 -87
  2. package/es/components/ai-chat/index.d.ts +1 -0
  3. package/es/components/ai-chat/src/Index.vue.d.ts +1 -0
  4. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  5. package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +1 -0
  6. package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
  7. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  8. package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
  9. package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +1 -1
  10. package/es/components/ai-chat/style/index.css +1 -1
  11. package/es/components/audio-sdk/src/components/recording.vue2.js +1 -1
  12. package/es/components/base-search/index.d.ts +8 -3
  13. package/es/components/base-search/src/index.vue.d.ts +8 -3
  14. package/es/components/base-search/src/index.vue2.js +1 -1
  15. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  16. package/es/components/big-table/src/components/NoData.vue2.js +1 -1
  17. package/es/components/big-table/src/components/edit-form/edit-date.js +1 -1
  18. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
  19. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  20. package/es/components/big-table/src/components/edit-form/edit-time.js +1 -1
  21. package/es/components/big-table/src/components/input-button.vue2.js +1 -1
  22. package/es/components/big-table/src/hooks/useNestTable.js +1 -1
  23. package/es/components/big-table/src/hooks/useTableParse.js +1 -1
  24. package/es/components/body-select/src/index.vue2.js +1 -1
  25. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  26. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  27. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  28. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  29. package/es/components/branch-notice/index.d.ts +63 -0
  30. package/es/components/branch-notice/index.js +1 -0
  31. package/es/components/branch-notice/src/BranchNotice.vue.d.ts +64 -0
  32. package/es/components/branch-notice/src/BranchNotice.vue.js +1 -0
  33. package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -0
  34. package/es/components/branch-notice/src/canstants.d.ts +7 -0
  35. package/es/components/branch-notice/src/canstants.js +1 -0
  36. package/es/components/branch-notice/src/components/NoticeItem.vue.d.ts +151 -0
  37. package/es/components/branch-notice/src/components/NoticeItemAside.vue.d.ts +35 -0
  38. package/es/components/branch-notice/src/components/NoticeOperationList.vue.d.ts +49 -0
  39. package/es/components/branch-notice/src/drawLine.d.ts +2 -0
  40. package/es/components/branch-notice/src/drawLine.js +1 -0
  41. package/es/components/branch-notice/src/types.d.ts +14 -0
  42. package/es/components/branch-notice/src/types.js +1 -0
  43. package/es/components/branch-notice/style/index.css +1 -0
  44. package/es/components/button-print/index.d.ts +4 -0
  45. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -0
  46. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  47. package/es/components/button-print/src/components/EditFormat.vue2.js +1 -1
  48. package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -1
  49. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
  50. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  51. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  52. package/es/components/button-print/src/components/Preview.vue2.js +1 -1
  53. package/es/components/button-print/src/utils/dialog.js +1 -1
  54. package/es/components/button-print/src/utils/print.js +1 -1
  55. package/es/components/calendar/index.d.ts +4 -4
  56. package/es/components/calendar/src/Calendar.vue.d.ts +4 -4
  57. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +1 -1
  58. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +1 -1
  59. package/es/components/classification/index.d.ts +1 -0
  60. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  61. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  62. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  63. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  64. package/es/components/classification/src/index.vue.d.ts +1 -0
  65. package/es/components/classification/src/index.vue2.js +1 -1
  66. package/es/components/classification/style/index.css +1 -1
  67. package/es/components/default-page/src/constants/index.js +1 -1
  68. package/es/components/default-page/src/index.vue2.js +1 -1
  69. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +1 -1
  70. package/es/components/expand-field/src/components/FormItemPerson.vue2.js +1 -1
  71. package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
  72. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  73. package/es/components/expand-field/src/index.vue2.js +1 -1
  74. package/es/components/expand-field/src/utils/constant.js +1 -1
  75. package/es/components/fabric-chart/index.d.ts +23 -4
  76. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +23 -4
  77. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  78. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  79. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +13 -0
  80. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -1
  81. package/es/components/fabric-chart/src/components/useStyle.js +1 -1
  82. package/es/components/fabric-chart/src/constants/index.d.ts +1 -1
  83. package/es/components/fabric-chart/src/constants/index.js +1 -1
  84. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  85. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +1 -0
  86. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  87. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  88. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  89. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +1 -0
  90. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  91. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  92. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
  93. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
  94. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +1 -1
  95. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  96. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
  97. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  98. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +1 -0
  99. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  100. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +7 -1
  101. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  102. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
  103. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  104. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  105. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  106. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +1 -0
  107. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  108. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  109. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
  110. package/es/components/fabric-chart/src/interface.d.ts +3 -0
  111. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  112. package/es/components/fabric-chart/src/utils/index.js +1 -1
  113. package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
  114. package/es/components/field-set/src/FieldColor.vue2.js +1 -1
  115. package/es/components/field-set/src/FieldFilter.vue.d.ts +6 -5
  116. package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
  117. package/es/components/field-set/src/FieldSet.vue.d.ts +3 -3
  118. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  119. package/es/components/field-set/src/Index.vue2.js +1 -1
  120. package/es/components/field-set/src/TableStyle.vue2.js +1 -1
  121. package/es/components/field-set/src/components/condition.vue2.js +1 -1
  122. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1 -1
  123. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
  124. package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
  125. package/es/components/field-set/src/components/table-row.vue.d.ts +3 -3
  126. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  127. package/es/components/field-set/src/constants/filter.d.ts +21 -12
  128. package/es/components/field-set/src/constants/filter.js +1 -1
  129. package/es/components/field-set/src/constants/index.js +1 -1
  130. package/es/components/field-set/src/types/index.d.ts +1 -1
  131. package/es/components/form-config/index.d.ts +108 -3
  132. package/es/components/form-config/src/FormConfig.vue.d.ts +108 -3
  133. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  134. package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +1 -0
  135. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -0
  136. package/es/components/form-config/src/constants/index.js +1 -1
  137. package/es/components/form-config/src/hooks/useLocale.js +1 -1
  138. package/es/components/form-render/index.js +1 -1
  139. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
  140. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -1
  141. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -1
  142. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  143. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  144. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  145. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  146. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  147. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  148. package/es/components/form-render/src/hooks/usePresetScope.d.ts +1 -1
  149. package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
  150. package/es/components/form-render/src/utils/index.d.ts +1 -0
  151. package/es/components/form-render/src/utils/index.js +1 -1
  152. package/es/components/iho-chat/index.d.ts +635 -54
  153. package/es/components/iho-chat/src/Index.vue.d.ts +638 -61
  154. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  155. package/es/components/iho-chat/src/api/index.d.ts +1 -0
  156. package/es/components/iho-chat/src/api/index.js +1 -1
  157. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +32 -1
  158. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  159. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +52 -3
  160. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  161. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +52 -2
  162. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  163. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +221 -11
  164. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  165. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +82 -6
  166. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  167. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +19 -1
  168. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  169. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +49 -10
  170. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  171. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +71 -4
  172. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  173. package/es/components/iho-chat/src/components/ContextMenu.d.ts +11 -2
  174. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  175. package/es/components/iho-chat/src/components/MessageTemplate.vue.d.ts +1 -1
  176. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +1 -1
  177. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +51 -2
  178. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  179. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +19 -1
  180. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  181. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +69 -1
  182. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  183. package/es/components/iho-chat/src/components/Video.vue.d.ts +19 -1
  184. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  185. package/es/components/iho-chat/src/constants/index.d.ts +12 -3
  186. package/es/components/iho-chat/src/constants/index.js +1 -1
  187. package/es/components/iho-chat/src/hooks/index.d.ts +2 -2
  188. package/es/components/iho-chat/src/hooks/index.js +1 -1
  189. package/es/components/iho-chat/src/hooks/useData.d.ts +94 -0
  190. package/es/components/iho-chat/src/hooks/useData.js +1 -0
  191. package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
  192. package/es/components/iho-chat/src/hooks/useVideo.d.ts +19 -1
  193. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  194. package/es/components/iho-chat/src/hooks/useWebSocket.d.ts +3 -0
  195. package/es/components/iho-chat/src/hooks/useWebSocket.js +1 -0
  196. package/es/components/iho-chat/src/types/index.d.ts +0 -6
  197. package/es/components/iho-chat/src/types/index.js +1 -1
  198. package/es/components/iho-chat/src/utils/chatSock.js +1 -1
  199. package/es/components/iho-chat/src/utils/index.d.ts +2 -0
  200. package/es/components/iho-chat/src/utils/index.js +1 -1
  201. package/es/components/iho-chat/style/index.css +1 -1
  202. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  203. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +1 -1
  204. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  205. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  206. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
  207. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  208. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  209. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  210. package/es/components/iho-table/src/utils/index.js +1 -1
  211. package/es/components/index.css +1 -1
  212. package/es/components/index.d.ts +2 -1
  213. package/es/components/index.js +1 -1
  214. package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -1
  215. package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
  216. package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -1
  217. package/es/components/map/src/Map.vue2.js +1 -1
  218. package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -1
  219. package/es/components/quick-search/index.d.ts +3 -1
  220. package/es/components/quick-search/src/index.vue.d.ts +3 -1
  221. package/es/components/quick-search/src/index.vue2.js +1 -1
  222. package/es/components/quick-search/style/index.css +1 -1
  223. package/es/components/recommend-search/src/components/BaseSearch.js +1 -1
  224. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +1 -1
  225. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +1 -1
  226. package/es/components/scale-view/index.d.ts +31 -0
  227. package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
  228. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  229. package/es/components/scale-view/src/components/NoData.vue2.js +1 -1
  230. package/es/components/scale-view/src/components/composables/choose-common.js +1 -1
  231. package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -1
  232. package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +9 -0
  233. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  234. package/es/components/scale-view/src/components/formitem/r-input.d.ts +9 -0
  235. package/es/components/scale-view/src/components/formitem/r-input.js +1 -1
  236. package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
  237. package/es/components/scale-view/src/components/formitem/r-radio.d.ts +9 -0
  238. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
  239. package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
  240. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
  241. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
  242. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  243. package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -1
  244. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
  245. package/es/components/scale-view/src/hooks/scaleview-props.js +1 -1
  246. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  247. package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
  248. package/es/components/scale-view/src/hooks/use-component.d.ts +72 -0
  249. package/es/components/scale-view/style/index.css +1 -1
  250. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  251. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  252. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  253. package/es/components/select-label/src/components/label-classify.vue2.js +1 -1
  254. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -1
  255. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
  256. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -1
  257. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  258. package/es/components/select-person/src/SelectPersonType.vue2.js +1 -1
  259. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +1 -1
  260. package/es/components/select-person/src/index.vue2.js +1 -1
  261. package/es/components/slider-tree/src/index.vue2.js +1 -1
  262. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
  263. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
  264. package/es/components/table-export-field/src/index.vue2.js +1 -1
  265. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -1
  266. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -1
  267. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -1
  268. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  269. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  270. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  271. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -1
  272. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -1
  273. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -1
  274. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
  275. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  276. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -1
  277. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -1
  278. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  279. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  280. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +1 -1
  281. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +1 -1
  282. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  283. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +4 -7
  284. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  285. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  286. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -7
  287. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -1
  288. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +1 -1
  289. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -1
  290. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  291. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -7
  292. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  293. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  294. package/es/components/template-render/src/components/index.d.ts +23 -23
  295. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
  296. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -1
  297. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -1
  298. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
  299. package/es/env.d.ts +25 -25
  300. package/es/shared/assets/img/ai__avatar.png.js +1 -1
  301. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  302. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  303. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  304. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  305. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  306. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  307. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  308. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  309. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  310. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  311. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  312. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  313. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  314. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  315. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  316. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  317. package/es/shared/assets/img/failure.png.js +1 -1
  318. package/es/shared/assets/img/logo.png.js +1 -1
  319. package/es/shared/assets/img/no-permission.png.js +1 -1
  320. package/es/shared/assets/img/nodata.png.js +1 -1
  321. package/es/shared/assets/img/notfound.png.js +1 -1
  322. package/es/shared/assets/img/qr.png.js +1 -1
  323. package/es/shared/assets/img/success.png.js +1 -1
  324. package/es/shared/assets/img/table_style_2.png.js +1 -1
  325. package/es/shared/assets/img/video.png.js +1 -1
  326. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  327. package/es/shared/assets/img/xb_big.png.js +1 -1
  328. package/es/shared/assets/img/xb_small.png.js +1 -1
  329. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  330. package/es/shared/package.json.js +1 -1
  331. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  332. package/es/shared/utils/tapable/index.d.ts +139 -0
  333. package/package.json +2 -2
  334. package/es/components/iho-chat/src/hooks/useSession.d.ts +0 -12
  335. package/es/components/iho-chat/src/hooks/useSession.js +0 -1
  336. package/es/components/iho-chat/src/hooks/useState.d.ts +0 -18
  337. package/es/components/iho-chat/src/hooks/useState.js +0 -1
@@ -40,6 +40,7 @@ import CStepNotice from './step-notice';
40
40
  import CToothBitmap from './tooth-bitmap';
41
41
  import CAiChat from './ai-chat';
42
42
  import CTemplateRender from './template-render';
43
+ import CBranchNotice from './branch-notice';
43
44
  export * from './form-render';
44
45
  export * from './shortcut-provider';
45
46
  export * from './shortcut-setter';
@@ -63,7 +64,7 @@ export * from './audio-sdk';
63
64
  export * from './step-notice';
64
65
  export * from './info-header';
65
66
  declare function install(app: App): void;
66
- export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider, CPictureClipper, CTableExportField, CExpandField, CIhoChat, CCallback, CSliderTree, CBodySelect, CDefaultPage, CStepNotice, CToothBitmap, CAiChat, CTemplateRender };
67
+ export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider, CPictureClipper, CTableExportField, CExpandField, CIhoChat, CCallback, CSliderTree, CBodySelect, CDefaultPage, CStepNotice, CToothBitmap, CAiChat, CTemplateRender, CBranchNotice };
67
68
  declare const _default: {
68
69
  install: typeof install;
69
70
  };
@@ -1 +1 @@
1
- import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import s from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import t from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import d from"./map/index.js";export{default as CMap}from"./map/index.js";import n from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as m,CRadio as f,CCheckbox as p,CSelect as l,CDatetime as c}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import u from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import x from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import C from"./base-search/index.js";export{default as CBaseSearch}from"./base-search/index.js";import h from"./quick-search/index.js";export{default as CQuickSearch}from"./quick-search/index.js";import j from"./classification/index.js";export{default as CClassification}from"./classification/index.js";import k from"./bpmn-workflow/index.js";export{default as CBpmnWorkflow}from"./bpmn-workflow/index.js";import b from"./steps-wheel/index.js";export{default as CStepsWheel}from"./steps-wheel/index.js";import S from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import g from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import F from"./fabric-chart/index.js";export{default as CFabricChart}from"./fabric-chart/index.js";import T from"./shortcut-provider/index.js";export{default as CShortcutProvider}from"./shortcut-provider/index.js";import v from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import y from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import D from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import P from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import R from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import A from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";import L from"./date-picker/index.js";export{default as CDatePicker}from"./date-picker/index.js";import w from"./time-picker/index.js";export{default as CTimePicker}from"./time-picker/index.js";import E from"./config-provider/index.js";export{default as CConfigProvider}from"./config-provider/index.js";import I from"./picture-clipper/index.js";export{default as CPictureClipper}from"./picture-clipper/index.js";import B from"./table-export-field/index.js";export{default as CTableExportField}from"./table-export-field/index.js";import O from"./expand-field/index.js";export{default as CExpandField}from"./expand-field/index.js";import V from"./iho-chat/index.js";export{default as CIhoChat}from"./iho-chat/index.js";import H from"./callback/index.js";export{default as CCallback}from"./callback/index.js";import K from"./slider-tree/index.js";export{default as CSliderTree}from"./slider-tree/index.js";import N from"./body-select/index.js";export{default as CBodySelect}from"./body-select/index.js";import M from"./default-page/index.js";export{default as CDefaultPage}from"./default-page/index.js";import W from"./step-notice/index.js";export{default as CStepNotice}from"./step-notice/index.js";import q from"./tooth-bitmap/index.js";export{default as CToothBitmap}from"./tooth-bitmap/index.js";import G from"./ai-chat/index.js";export{default as CAiChat}from"./ai-chat/index.js";import U from"./template-render/index.js";export{default as CTemplateRender}from"./template-render/index.js";export{default as CInsuranceSDK}from"./card-reader-sdk/src/insuranceSDK.js";export{default as CCardReaderSDK}from"./card-reader-sdk/src/cardReaderSDK.js";export{formatDateRangeInfo,presetValToDateRangestr,presetValToTimestamp}from"./table-filter/src/components/render-widget/helpers/presetValToTimestamp.js";export{DatePresetValEnums,DateRangeInnerValEnums,DateRangeOutDefEnums}from"./table-filter/src/components/render-widget/enums.js";export{createOpacityColor,useTheme}from"../shared/hooks/useTheme.js";export{handleInputEvent,useDateTime}from"../shared/hooks/useDateTime.js";export{AsyncQueue,ENTRY_STATE}from"../shared/hooks/useAsyncQueue/index.js";export{presetRequestHandler,useFormAsyncQueue,useFormRequest}from"../shared/hooks/useFormRequest/index.js";export{useLevelSearchCascader}from"../shared/hooks/useLevelSearchCascader.js";export{useSelectAllowModify}from"../shared/hooks/selectHooks/useSelectAllowModify.js";export{useOptionFiltered}from"../shared/hooks/selectHooks/useOptionFiltered.js";export{searchContentMatcher,useSearchContent}from"../shared/hooks/selectHooks/useSearchContent.js";export{useSelectRenders}from"../shared/hooks/selectHooks/useSelectRenders.js";export{useMenuWidthAuto}from"../shared/hooks/selectHooks/useMenuWidthAuto.js";export{useVersion}from"../shared/hooks/useVersion.js";export{useScrollLoading}from"../shared/hooks/useScrollLoading.js";export{vFlexibleResize}from"../shared/directive/flexibleResize.js";export{useGuide}from"./guide/src/useGuide.js";export{DragScroll,useDragScroll}from"./drag-scroll/src/index.js";export{default as CAudioSDK}from"./audio-sdk/src/audioSDK.js";export{useAnchor}from"./form-render/src/hooks/useAnchor.js";export{BusinessCollector,useBusinessBinding}from"./form-render/src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./form-render/src/hooks/useChangeContext.js";export{useCommonInjection,useSelectOptionProps}from"./form-render/src/hooks/useCommonInjection.js";export{useCommonLog}from"./form-render/src/hooks/useCommonLog.js";export{useComplexOptions,useComplexOptionsSpan}from"./form-render/src/hooks/useComplexOptions.js";export{useFieldListAdaptor}from"./form-render/src/hooks/useFieldListAdaptor.js";export{useFieldNormalize}from"./form-render/src/hooks/useFieldNormalize.js";export{useFieldVisitor}from"./form-render/src/hooks/useFieldVisitor.js";export{useFormContext}from"./form-render/src/hooks/useFormContext.js";export{useFormDomEvent,useFormExposeEvent}from"./form-render/src/hooks/useFormEvent.js";export{useFormField}from"./form-render/src/hooks/useFormField.js";export{useFormGraph}from"./form-render/src/hooks/useFormGraph.js";export{FormItemDepsCollector,useFormItemDeps}from"./form-render/src/hooks/useFormItemDeps.js";export{useFormRenderLifeCycle}from"./form-render/src/hooks/useFormRenderLifeCycle.js";export{useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./form-render/src/hooks/useFormRenderOptions.js";export{useFormValidator,validateMessageLocale}from"./form-render/src/hooks/useFormValidator.js";export{useLowCodeEvent}from"./form-render/src/hooks/useLowCodeEvent.js";export{useLowCodeReactions}from"./form-render/src/hooks/useLowCodeReactions.js";export{useNuiThemeOverrides}from"./form-render/src/hooks/useNuiThemeOverrides.js";export{useOperationalForm}from"./form-render/src/hooks/useOperationalForm.js";export{usePresetScope}from"./form-render/src/hooks/usePresetScope.js";export{useWordbookSetting,wordbookSettingHandler}from"./form-render/src/hooks/useWordbookSetting.js";export{useNewLowCodeReactions}from"./form-render/src/hooks/useNewLowCodeReactions.js";export{useSelectedSetting}from"./form-render/src/hooks/useSelectedSetting.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./form-render/src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./form-render/src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createFieldAddressId,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./form-render/src/utils/schema.js";export{FieldListFilter,combineExtendKey,createInputSlot,createSlot,editorUnescape,findItemByValCondition,formRenderLog,getAbsoluteKey,injectOrProvide,isEnter,isNegative,isNestedFieldType,isNestedType,isPositive,mergeDeepProperties,parseEnhanceText,parseNumberFromMaybeString,renderDescOption,replace2Any,splitExtendKey,validateMessageParser}from"./form-render/src/utils/index.js";export{GlobalShortcutProvider,ShortcutManager,useShortcuts}from"./shortcut-provider/src/hooks/useShortcuts.js";export{useShortcutSignature}from"./shortcut-provider/src/hooks/useShortcutSignature.js";export{defineTablePlugin,useTablePlugin}from"./iho-table/src/hooks/useTablePlugin.js";export{useColumnConfigAdaptor}from"./iho-table/src/hooks/useColumnConfigAdaptor.js";export{AbstractConfigHooks,AbstractDataHooks,AbstractDomInsertHooks,AbstractEventHooks,AbstractExposeHooks,AbstractFieldHooks,AbstractSetupHooks}from"./iho-table/src/types/pluginType.js";export{Print}from"./button-print/src/utils/print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./button-print/src/utils/browserPrint.js";export{registFormConfigLocale,useFormConfigLocale}from"./form-config/src/hooks/useLocale.js";export{transformOriginToTree}from"./slider-tree/src/utils/index.js";const Q={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:s,CSelectPerson:t,CSelectLabel:i,CLabelFormContent:a,CScaleView:m,CMap:d,CVodChunkUpload:n,CRadio:f,CCheckbox:p,CSelect:l,CDatetime:c,CInfoHeader:u,CTimeLine:x,CBaseSearch:C,CQuickSearch:h,CClassification:j,CBpmnWorkflow:k,CStepsWheel:b,CEditor:S,CFormRender:g,CFabricChart:F,CShortcutProvider:T,CShortcutSetter:v,CFormConfig:y,CIhoTable:D,CKeyboard:P,CSearchCascader:R,CRecommendSearch:A,CDatePicker:L,CTimePicker:w,CConfigProvider:E,CPictureClipper:I,CTableExportField:B,CExpandField:O,CIhoChat:V,CCallback:H,CSliderTree:K,CBodySelect:N,CDefaultPage:M,CStepNotice:W,CToothBitmap:q,CAiChat:G,CTemplateRender:U};var z={install:function(e){Object.values(Q).forEach((r=>{r.install(e)}))},...Q};export{z as default};
1
+ import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import s from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import t from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import d from"./map/index.js";export{default as CMap}from"./map/index.js";import n from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as m,CRadio as f,CCheckbox as p,CSelect as l,CDatetime as c}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import u from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import x from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import C from"./base-search/index.js";export{default as CBaseSearch}from"./base-search/index.js";import h from"./quick-search/index.js";export{default as CQuickSearch}from"./quick-search/index.js";import j from"./classification/index.js";export{default as CClassification}from"./classification/index.js";import k from"./bpmn-workflow/index.js";export{default as CBpmnWorkflow}from"./bpmn-workflow/index.js";import b from"./steps-wheel/index.js";export{default as CStepsWheel}from"./steps-wheel/index.js";import S from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import g from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import F from"./fabric-chart/index.js";export{default as CFabricChart}from"./fabric-chart/index.js";import T from"./shortcut-provider/index.js";export{default as CShortcutProvider}from"./shortcut-provider/index.js";import v from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import y from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import D from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import P from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import L from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import R from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";import A from"./date-picker/index.js";export{default as CDatePicker}from"./date-picker/index.js";import w from"./time-picker/index.js";export{default as CTimePicker}from"./time-picker/index.js";import B from"./config-provider/index.js";export{default as CConfigProvider}from"./config-provider/index.js";import E from"./picture-clipper/index.js";export{default as CPictureClipper}from"./picture-clipper/index.js";import I from"./table-export-field/index.js";export{default as CTableExportField}from"./table-export-field/index.js";import O from"./expand-field/index.js";export{default as CExpandField}from"./expand-field/index.js";import V from"./iho-chat/index.js";export{default as CIhoChat}from"./iho-chat/index.js";import H from"./callback/index.js";export{default as CCallback}from"./callback/index.js";import N from"./slider-tree/index.js";export{default as CSliderTree}from"./slider-tree/index.js";import K from"./body-select/index.js";export{default as CBodySelect}from"./body-select/index.js";import M from"./default-page/index.js";export{default as CDefaultPage}from"./default-page/index.js";import W from"./step-notice/index.js";export{default as CStepNotice}from"./step-notice/index.js";import q from"./tooth-bitmap/index.js";export{default as CToothBitmap}from"./tooth-bitmap/index.js";import G from"./ai-chat/index.js";export{default as CAiChat}from"./ai-chat/index.js";import U from"./template-render/index.js";export{default as CTemplateRender}from"./template-render/index.js";import Q from"./branch-notice/index.js";export{default as CBranchNotice}from"./branch-notice/index.js";export{default as CInsuranceSDK}from"./card-reader-sdk/src/insuranceSDK.js";export{default as CCardReaderSDK}from"./card-reader-sdk/src/cardReaderSDK.js";export{formatDateRangeInfo,presetValToDateRangestr,presetValToTimestamp}from"./table-filter/src/components/render-widget/helpers/presetValToTimestamp.js";export{DatePresetValEnums,DateRangeInnerValEnums,DateRangeOutDefEnums}from"./table-filter/src/components/render-widget/enums.js";export{createOpacityColor,useTheme}from"../shared/hooks/useTheme.js";export{handleInputEvent,useDateTime}from"../shared/hooks/useDateTime.js";export{AsyncQueue,ENTRY_STATE}from"../shared/hooks/useAsyncQueue/index.js";export{presetRequestHandler,useFormAsyncQueue,useFormRequest}from"../shared/hooks/useFormRequest/index.js";export{useLevelSearchCascader}from"../shared/hooks/useLevelSearchCascader.js";export{useSelectAllowModify}from"../shared/hooks/selectHooks/useSelectAllowModify.js";export{useOptionFiltered}from"../shared/hooks/selectHooks/useOptionFiltered.js";export{searchContentMatcher,useSearchContent}from"../shared/hooks/selectHooks/useSearchContent.js";export{useSelectRenders}from"../shared/hooks/selectHooks/useSelectRenders.js";export{useMenuWidthAuto}from"../shared/hooks/selectHooks/useMenuWidthAuto.js";export{useVersion}from"../shared/hooks/useVersion.js";export{useScrollLoading}from"../shared/hooks/useScrollLoading.js";export{vFlexibleResize}from"../shared/directive/flexibleResize.js";export{useGuide}from"./guide/src/useGuide.js";export{DragScroll,useDragScroll}from"./drag-scroll/src/index.js";export{default as CAudioSDK}from"./audio-sdk/src/audioSDK.js";export{useAnchor}from"./form-render/src/hooks/useAnchor.js";export{BusinessCollector,useBusinessBinding}from"./form-render/src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./form-render/src/hooks/useChangeContext.js";export{useCommonInjection,useSelectOptionProps}from"./form-render/src/hooks/useCommonInjection.js";export{useCommonLog}from"./form-render/src/hooks/useCommonLog.js";export{useComplexOptions,useComplexOptionsSpan}from"./form-render/src/hooks/useComplexOptions.js";export{useFieldListAdaptor}from"./form-render/src/hooks/useFieldListAdaptor.js";export{useFieldNormalize}from"./form-render/src/hooks/useFieldNormalize.js";export{useFieldVisitor}from"./form-render/src/hooks/useFieldVisitor.js";export{useFormContext}from"./form-render/src/hooks/useFormContext.js";export{useFormDomEvent,useFormExposeEvent}from"./form-render/src/hooks/useFormEvent.js";export{useFormField}from"./form-render/src/hooks/useFormField.js";export{useFormGraph}from"./form-render/src/hooks/useFormGraph.js";export{FormItemDepsCollector,useFormItemDeps}from"./form-render/src/hooks/useFormItemDeps.js";export{useFormRenderLifeCycle}from"./form-render/src/hooks/useFormRenderLifeCycle.js";export{useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./form-render/src/hooks/useFormRenderOptions.js";export{useFormValidator,validateMessageLocale}from"./form-render/src/hooks/useFormValidator.js";export{useLowCodeEvent}from"./form-render/src/hooks/useLowCodeEvent.js";export{useLowCodeReactions}from"./form-render/src/hooks/useLowCodeReactions.js";export{useNuiThemeOverrides}from"./form-render/src/hooks/useNuiThemeOverrides.js";export{useOperationalForm}from"./form-render/src/hooks/useOperationalForm.js";export{usePresetScope}from"./form-render/src/hooks/usePresetScope.js";export{useWordbookSetting,wordbookSettingHandler}from"./form-render/src/hooks/useWordbookSetting.js";export{useNewLowCodeReactions}from"./form-render/src/hooks/useNewLowCodeReactions.js";export{useSelectedSetting}from"./form-render/src/hooks/useSelectedSetting.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./form-render/src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./form-render/src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createFieldAddressId,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./form-render/src/utils/schema.js";export{FieldListFilter,combineExtendKey,createInputSlot,createSlot,editorUnescape,findItemByValCondition,formRenderLog,getAbsoluteKey,injectOrProvide,isEnter,isNegative,isNestedFieldType,isNestedType,isPositive,mergeDeepProperties,parseEnhanceText,parseNumberFromMaybeString,renderDescOption,renderOptionLabel,replace2Any,splitExtendKey,validateMessageParser}from"./form-render/src/utils/index.js";export{GlobalShortcutProvider,ShortcutManager,useShortcuts}from"./shortcut-provider/src/hooks/useShortcuts.js";export{useShortcutSignature}from"./shortcut-provider/src/hooks/useShortcutSignature.js";export{defineTablePlugin,useTablePlugin}from"./iho-table/src/hooks/useTablePlugin.js";export{useColumnConfigAdaptor}from"./iho-table/src/hooks/useColumnConfigAdaptor.js";export{AbstractConfigHooks,AbstractDataHooks,AbstractDomInsertHooks,AbstractEventHooks,AbstractExposeHooks,AbstractFieldHooks,AbstractSetupHooks}from"./iho-table/src/types/pluginType.js";export{Print}from"./button-print/src/utils/print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./button-print/src/utils/browserPrint.js";export{registFormConfigLocale,useFormConfigLocale}from"./form-config/src/hooks/useLocale.js";export{transformOriginToTree}from"./slider-tree/src/utils/index.js";const z={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:s,CSelectPerson:t,CSelectLabel:i,CLabelFormContent:a,CScaleView:m,CMap:d,CVodChunkUpload:n,CRadio:f,CCheckbox:p,CSelect:l,CDatetime:c,CInfoHeader:u,CTimeLine:x,CBaseSearch:C,CQuickSearch:h,CClassification:j,CBpmnWorkflow:k,CStepsWheel:b,CEditor:S,CFormRender:g,CFabricChart:F,CShortcutProvider:T,CShortcutSetter:v,CFormConfig:y,CIhoTable:D,CKeyboard:P,CSearchCascader:L,CRecommendSearch:R,CDatePicker:A,CTimePicker:w,CConfigProvider:B,CPictureClipper:E,CTableExportField:I,CExpandField:O,CIhoChat:V,CCallback:H,CSliderTree:N,CBodySelect:K,CDefaultPage:M,CStepNotice:W,CToothBitmap:q,CAiChat:G,CTemplateRender:U,CBranchNotice:Q};var Y={install:function(e){Object.values(z).forEach((r=>{r.install(e)}))},...z};export{Y as default};
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,ref as a,watch as n,nextTick as i,openBlock as l,createElementBlock as o,renderSlot as r,createVNode as s,unref as p,withCtx as f,mergeProps as d,createElementVNode as u,normalizeClass as c,createBlock as v,resolveDynamicComponent as m,createCommentVNode as _,createTextVNode as g,Fragment as x,renderList as y,toDisplayString as I,h}from"vue";import{isArray as w,isString as b,isNumber as k,isFunction as P,isObject as E,pick as U}from"lodash-es";import{NPopover as C,NImage as L,NDivider as H,NSpace as z,NButton as T,NTag as j,NEllipsis as F}from"naive-ui";import N from"../../../../form-render/index.js";const R={class:"c-info-header__patient"},$={class:"c-info-header__patientHeader"},B={key:0,class:"c-info-header__patientHeader--name"},S={key:1,class:"c-info-header__patientHeader--sex"},V={key:2,class:"c-info-header__patientHeader--age"};var D=e({__name:"index",props:{patientInfo:{default:()=>({})},patientEditable:{type:Boolean}},setup(e){const D=e,M=t((()=>D.patientInfo&&w(D.patientInfo.tagList)?D.patientInfo.tagList.filter((e=>e.render||b(e.content)&&e.content)):[])),O={warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"},W={warning:"#fff",info:"#2563F4"};function q({type:e="warning"}){return{color:O[e],textColor:W[e]}}function A(e){return()=>b(e)||k(e)?e:P(e)?e():E(e)?h(e):null}const G=a(!1),J=t((()=>D.patientEditable?[{val_key:"name",is_null:"0",is_empty:"0",alias:"姓名",html_type:"INPUT",...D.patientInfo.nameProps},{val_key:"sex",alias:"性别",html_type:"SELECT",is_null:"0",option:[{text:"未知",value:"未知"},{text:"男",value:"男"},{text:"女",value:"女"}],...D.patientInfo.sexProps},{val_key:"age",alias:"年龄",html_type:"INPUT_NUMBER",is_null:"0",is_empty:"0",decoratorProps:{style:{flex:2}},...D.patientInfo.ageProps,suffixConfig:{alias:"年龄单位",is_null:"0",val_key:"ageUnit",html_type:"SELECT",decoratorProps:{style:{flex:1}},option:[{value:"天",text:"天"},{value:"月",text:"月"},{value:"岁",text:"岁"},{value:"小时",text:"小时"},{value:"分",text:"分"},{value:"周",text:"周"}],...D.patientInfo.ageUnitProps}}]:[])),K=a();async function Q(){K.value&&(await K.value.validate(),Object.assign(D.patientInfo,U(K.value.getFormValues(),["name","sex","age","ageUnit"])),G.value=!1)}return n(G,(async e=>{await i(),e&&K.value&&K.value.setFormValues(D.patientInfo||{})})),(t,a)=>(l(),o("section",R,[r(t.$slots,"avatar",{},(()=>[s(p(C),null,{trigger:f((()=>[s(p(L),d({style:{"border-radius":"50%"},width:36,height:36,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:f((()=>[s(p(L),d({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),u("section",null,[u("header",$,[s(p(C),{disabled:!e.patientEditable,trigger:"manual",placement:"bottom",show:G.value},{trigger:f((()=>{var t;return[u("section",{class:c(["c-info-header__patientHeaderWrapper",{"in-edit":G.value}]),onDblclick:a[0]||(a[0]=t=>e.patientEditable&&(G.value=!0))},[e.patientInfo.name?(l(),o("div",B,[(l(),v(m(A(e.patientInfo.name))))])):_("v-if",!0),e.patientInfo.sex?(l(),o("div",S,[g(" / "),(l(),v(m(A(e.patientInfo.sex))))])):_("v-if",!0),null!=e.patientInfo.age?(l(),o("div",V,[g(" / "),(l(),v(m(A(e.patientInfo.age)))),(l(),v(m(A(null!=(t=e.patientInfo.ageUnit)?t:"岁"))))])):_("v-if",!0)],34)]})),default:f((()=>[s(p(N),{column:"6",size:"small","label-placement":"left",style:{width:"200px",margin:"4px 0 -8px 0"},"field-list":p(J),ref_key:"formRenderRef",ref:K},null,8,["field-list"]),s(p(H),{style:{margin:"8px -14px",width:"calc(100% + 28px)"}}),s(p(z),{justify:"end"},{default:f((()=>[s(p(T),{size:"small",onClick:a[1]||(a[1]=e=>G.value=!1)},{default:f((()=>[g("取消")])),_:1}),s(p(T),{size:"small",type:"info",onClick:Q},{default:f((()=>[g("确认")])),_:1})])),_:1})])),_:1},8,["disabled","show"]),r(t.$slots,"tags",{tagList:p(M)},(()=>[(l(!0),o(x,null,y(e.patientInfo.tagList||[],(e=>(l(),v(p(j),d({key:e.content,size:"medium",bordered:!1,color:q(e)},e),{default:f((()=>[e.render?(l(),v(m(e.render),{key:0})):(l(),v(p(F),{key:1,style:{"max-width":"96px"}},{default:f((()=>[g(I(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),r(t.$slots,"avatarInfo")])]))}});export{D as default};
1
+ import{defineComponent as e,computed as a,ref as n,watch as t,nextTick as l,openBlock as i,createElementBlock as o,renderSlot as d,createVNode as r,unref as u,withCtx as s,mergeProps as w,createElementVNode as g,normalizeClass as p,createBlock as f,resolveDynamicComponent as c,createCommentVNode as v,createTextVNode as y,Fragment as m,renderList as _,toDisplayString as x,h as I}from"vue";import{isArray as C,isString as L,isNumber as h,isFunction as B,isObject as b,pick as k}from"lodash-es";import{NPopover as P,NImage as E,NDivider as U,NSpace as H,NButton as z,NTag as T,NEllipsis as j}from"naive-ui";import F from"../../../../form-render/index.js";const N={class:"c-info-header__patient"},R={class:"c-info-header__patientHeader"},$={key:0,class:"c-info-header__patientHeader--name"},S={key:1,class:"c-info-header__patientHeader--sex"},V={key:2,class:"c-info-header__patientHeader--age"};var D=e({__name:"index",props:{patientInfo:{default:()=>({})},patientEditable:{type:Boolean}},setup(e){const D=e,M=a((()=>D.patientInfo&&C(D.patientInfo.tagList)?D.patientInfo.tagList.filter((e=>e.render||L(e.content)&&e.content)):[])),O={warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"},W={warning:"#fff",info:"#2563F4"};function q({type:e="warning"}){return{color:O[e],textColor:W[e]}}function A(e){return()=>L(e)||h(e)?e:B(e)?e():b(e)?I(e):null}const G=n(!1),J=a((()=>{var e,a,n,t,l,i,o,d,r,u,s,w,g,p,f,c;return D.patientEditable?[{val_key:"name",is_null:"0",is_empty:"0",alias:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.116"))||"姓名",html_type:"INPUT",...D.patientInfo.nameProps},{val_key:"sex",alias:(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.122"))||"性别",html_type:"SELECT",is_null:"0",option:[{text:(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.205"))||"未知",value:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.205"))||"未知"},{text:(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.203"))||"男",value:(null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.203"))||"男"},{text:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.204"))||"女",value:(null==(d=window.getLanguageByCode)?void 0:d.call(window,"10010.1.204"))||"女"}],...D.patientInfo.sexProps},{val_key:"age",alias:"年龄",html_type:"INPUT_NUMBER",is_null:"0",is_empty:"0",decoratorProps:{style:{flex:2}},...D.patientInfo.ageProps,suffixConfig:{alias:"年龄单位",is_null:"0",val_key:"ageUnit",html_type:"SELECT",decoratorProps:{style:{flex:1}},option:[{value:(null==(r=window.getLanguageByCode)?void 0:r.call(window,"10010.1.144"))||"天",text:(null==(u=window.getLanguageByCode)?void 0:u.call(window,"10010.1.144"))||"天"},{value:(null==(s=window.getLanguageByCode)?void 0:s.call(window,"10010.1.347"))||"月",text:(null==(w=window.getLanguageByCode)?void 0:w.call(window,"10010.1.347"))||"月"},{value:"岁",text:"岁"},{value:(null==(g=window.getLanguageByCode)?void 0:g.call(window,"10010.1.350"))||"小时",text:(null==(p=window.getLanguageByCode)?void 0:p.call(window,"10010.1.350"))||"小时"},{value:"分",text:"分"},{value:(null==(f=window.getLanguageByCode)?void 0:f.call(window,"10010.1.346"))||"周",text:(null==(c=window.getLanguageByCode)?void 0:c.call(window,"10010.1.346"))||"周"}],...D.patientInfo.ageUnitProps}}]:[]})),K=n();async function Q(){K.value&&(await K.value.validate(),Object.assign(D.patientInfo,k(K.value.getFormValues(),["name","sex","age","ageUnit"])),G.value=!1)}return t(G,(async e=>{await l(),e&&K.value&&K.value.setFormValues(D.patientInfo||{})})),(a,n)=>(i(),o("section",N,[d(a.$slots,"avatar",{},(()=>[r(u(P),null,{trigger:s((()=>[r(u(E),w({style:{"border-radius":"50%"},width:36,height:36,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:s((()=>[r(u(E),w({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),g("section",null,[g("header",R,[r(u(P),{disabled:!e.patientEditable,trigger:"manual",placement:"bottom",show:G.value},{trigger:s((()=>{var a;return[g("section",{class:p(["c-info-header__patientHeaderWrapper",{"in-edit":G.value}]),onDblclick:n[0]||(n[0]=a=>e.patientEditable&&(G.value=!0))},[e.patientInfo.name?(i(),o("div",$,[(i(),f(c(A(e.patientInfo.name))))])):v("v-if",!0),e.patientInfo.sex?(i(),o("div",S,[y(" / "),(i(),f(c(A(e.patientInfo.sex))))])):v("v-if",!0),null!=e.patientInfo.age?(i(),o("div",V,[y(" / "),(i(),f(c(A(e.patientInfo.age)))),(i(),f(c(A(null!=(a=e.patientInfo.ageUnit)?a:"岁"))))])):v("v-if",!0)],34)]})),default:s((()=>[r(u(F),{column:"6",size:"small","label-placement":"left",style:{width:"200px",margin:"4px 0 -8px 0"},"field-list":u(J),ref_key:"formRenderRef",ref:K},null,8,["field-list"]),r(u(U),{style:{margin:"8px -14px",width:"calc(100% + 28px)"}}),r(u(H),{justify:"end"},{default:s((()=>[r(u(z),{size:"small",onClick:n[1]||(n[1]=e=>G.value=!1)},{default:s((()=>{var e;return[y((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.32"))||"取消")]})),_:1}),r(u(z),{size:"small",type:"info",onClick:Q},{default:s((()=>{var e;return[y((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.428"))||"确认")]})),_:1})])),_:1})])),_:1},8,["disabled","show"]),d(a.$slots,"tags",{tagList:u(M)},(()=>[(i(!0),o(m,null,_(e.patientInfo.tagList||[],(e=>(i(),f(u(T),w({key:e.content,size:"medium",bordered:!1,color:q(e)},e),{default:s((()=>[e.render?(i(),f(c(e.render),{key:0})):(i(),f(u(j),{key:1,style:{"max-width":"96px"}},{default:s((()=>[y(x(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),d(a.$slots,"avatarInfo")])]))}});export{D as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,provide as l,computed as o,unref as a,openBlock as n,createBlock as s,normalizeStyle as u,withCtx as i,createVNode as r,mergeProps as d,createElementBlock as p,normalizeClass as c,createElementVNode as f,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as h,toDisplayString as g}from"vue";import{NPopover as k,NInputNumber as w,NSpace as V,NIcon as b}from"naive-ui";import{Close as x,GitCompareOutline as S,ArrowUndoSharp as j}from"@vicons/ionicons5";import O from"./components/NumberPanel.vue.js";import{useDraggable as C}from"@vueuse/core";import{useTheme as _}from"../../../shared/hooks/useTheme.js";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"../../../shared/hooks/useScrollLoading.js";import{defaultCssVars as I}from"./constants/index.js";const D=f("span",null,"键盘",-1),N={class:"keys"},K=["onClick"];var R=e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:R,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],H=E.split("").concat(F),J=E.split(".")[0].split("").sort().concat(["."],F),L=_(I,"Keyboard");let M=t(Date.now());l("toSelectInputContent",M);const P=o((()=>"english"===B.mode)),Q=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:q}))),T=o((()=>`${JSON.stringify(L.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),$=t(H.slice()),A=t(),G=t(),W=t(),X=t(),Y=function(){B.defaultValue&&(X.value=B.defaultValue);if(P.value&&B.drag){const{x:e,y:t,style:l}=C(G,{initialValue:B.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,t)=>{var l,o,a,n;e.x+=null!=(o=null==(l=B.moveOffset)?void 0:l.x)?o:0,e.y+=null!=(n=null==(a=B.moveOffset)?void 0:a.y)?n:0}});return l}}();function Z(e){"Switch"!==e?U("keydown",e):$.value="Q"===$.value[0]?J.slice():H.slice()}function q(e){var t;null==(t=A.value)||t.setShow(!1),X.value=e,U("change",e)}return R({select:function(){M.value=Date.now()}}),(t,l)=>a(P)||e.panel?!a(P)&&e.panel?(n(),s(O,d({key:1},a(Q),{style:a(L)}),null,16,["style"])):(n(),p("div",{key:2,class:c(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:G,style:u(a(T))},[r(a(V),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:u({cursor:e.drag?"move":"default"})},{default:i((()=>[D,r(a(b),{onClick:l[1]||(l[1]=e=>Z("close")),component:a(x)},null,8,["component"])])),_:1},8,["style"]),f("div",N,[(n(!0),p(m,null,v($.value,((e,t)=>(n(),p("span",{key:e,class:c(["key"+t]),onClick:t=>Z(e)},["Switch"===e?(n(),s(a(b),{key:0,component:a(S)},null,8,["component"])):y("v-if",!0),"Undo"===e?(n(),s(a(b),{key:1,component:a(j)},null,8,["component"])):y("v-if",!0),h(" "+g(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,K)))),128))])],6)):(n(),s(a(k),{key:0,ref_key:"popoverRef",ref:A,trigger:"click","show-arrow":!1,placement:"bottom-start",style:u([{padding:"0"},a(L)]),"display-directive":"show"},{trigger:i((()=>[r(a(w),{value:X.value,"onUpdate:value":l[0]||(l[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:i((()=>[r(O,{mode:e.mode,defaultValue:e.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}});export{R as default};
1
+ import{createElementVNode as e,defineComponent as l,ref as o,provide as t,computed as a,unref as n,openBlock as u,createBlock as i,normalizeStyle as s,withCtx as r,createVNode as d,mergeProps as c,createElementBlock as p,normalizeClass as f,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as w,NSpace as V,NIcon as b}from"naive-ui";import{Close as x,GitCompareOutline as C,ArrowUndoSharp as S}from"@vicons/ionicons5";import j from"./components/NumberPanel.vue.js";import{useDraggable as O}from"@vueuse/core";import{useTheme as _}from"../../../shared/hooks/useTheme.js";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"../../../shared/hooks/useScrollLoading.js";import{defaultCssVars as I}from"./constants/index.js";var B;const D=e("span",null,(null==(B=window.getLanguageByCode)?void 0:B.call(window,"10010.1.142"))||"键盘",-1),N={class:"keys"},K=["onClick"];var L=l({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(l,{expose:B,emit:L}){const R=l,U="QWERTYUIOPASDFGHJKLZXCVBNM.",E=["Switch"," ","Undo","Enter"],F=U.split("").concat(E),H=U.split(".")[0].split("").sort().concat(["."],E),J=_(I,"Keyboard");let M=o(Date.now());t("toSelectInputContent",M);const P=a((()=>"english"===R.mode)),Q=a((()=>({mode:R.mode,defaultValue:R.defaultValue,value:R.value,positionInitialValue:R.positionInitialValue,moveOffset:R.moveOffset,drag:R.drag,onChange:q}))),T=a((()=>`${JSON.stringify(J.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),$=o(F.slice()),A=o(),G=o(),W=o(),X=o(),Y=function(){R.defaultValue&&(X.value=R.defaultValue);if(P.value&&R.drag){const{x:e,y:l,style:o}=O(G,{initialValue:R.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,l)=>{var o,t,a,n;e.x+=null!=(t=null==(o=R.moveOffset)?void 0:o.x)?t:0,e.y+=null!=(n=null==(a=R.moveOffset)?void 0:a.y)?n:0}});return o}}();function Z(e){"Switch"!==e?L("keydown",e):$.value="Q"===$.value[0]?H.slice():F.slice()}function q(e){var l;null==(l=A.value)||l.setShow(!1),X.value=e,L("change",e)}return B({select:function(){M.value=Date.now()}}),(o,t)=>n(P)||l.panel?!n(P)&&l.panel?(u(),i(j,c({key:1},n(Q),{style:n(J)}),null,16,["style"])):(u(),p("div",{key:2,class:f(["c-keyboard-english",{isFixed:l.drag}]),ref_key:"englishKeyboardRef",ref:G,style:s(n(T))},[d(n(V),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:s({cursor:l.drag?"move":"default"})},{default:r((()=>[D,d(n(b),{onClick:t[1]||(t[1]=e=>Z("close")),component:n(x)},null,8,["component"])])),_:1},8,["style"]),e("div",N,[(u(!0),p(m,null,v($.value,((e,l)=>{var o;return u(),p("span",{key:e,class:f(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(u(),i(n(b),{key:0,component:n(C)},null,8,["component"])):y("v-if",!0),"Undo"===e?(u(),i(n(b),{key:1,component:n(S)},null,8,["component"])):y("v-if",!0),g(" "+h(E.includes(e)&&"Enter"!==e?""===e?(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.143"))||"空格":"":e),1)],10,K)})),128))])],6)):(u(),i(n(k),{key:0,ref_key:"popoverRef",ref:A,trigger:"click","show-arrow":!1,placement:"bottom-start",style:s([{padding:"0"},n(J)]),"display-directive":"show"},{trigger:r((()=>[d(n(w),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:r((()=>[d(j,{mode:l.mode,defaultValue:l.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}});export{L as default};
@@ -1 +1 @@
1
- import{defineComponent,computed,ref,watch,openBlock,createElementBlock,normalizeClass,normalizeStyle,unref,createElementVNode,createVNode,withCtx,Fragment,renderList,toDisplayString,createBlock,createCommentVNode,nextTick}from"vue";import{NSpace,NIcon}from"naive-ui";import{ArrowUndoSharp}from"@vicons/ionicons5";import InputNumber from"./InputNumber.vue.js";import{useDraggable}from"@vueuse/core";import{getNumber}from"../utils/index.js";const _hoisted_1={class:"keys"},_hoisted_2=["onClick"],_hoisted_3=["onClick"],_hoisted_4={class:"btns"},_hoisted_5=["onClick"],_hoisted_6={class:"inputs"},_hoisted_7={class:"inputs-right"},_hoisted_8=createElementVNode("hr",null,null,-1);var _sfc_main=defineComponent({__name:"NumberPanel",props:{defaultValue:{type:Number},value:{type:Number},mode:{type:String},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},moveOffset:{type:Object,default:()=>({x:0,y:0})},drag:{type:Boolean,default:!1}},emits:["change"],setup(__props,{emit:emit}){const props=__props,NUMBERKEYS="1234567890.",DAYS=[3,7,14,30],DOSENUMBERKEYS="123/456*789-0.+",CALCULATIONSYMBOLS=["+","-","*","/"],isNumber=computed((()=>"number"===props.mode)),isDay=computed((()=>"day"===props.mode&&!isNumber.value)),isDose=computed((()=>"dose"===props.mode&&!isNumber.value)),numberKeys=computed((()=>(isDose.value?DOSENUMBERKEYS:NUMBERKEYS).split(""))),days=ref(DAYS),doses=ref([2,3,4,5,6,7,8]),inputValue=ref(""),integerValue=ref(),numeratorValue=ref(),denominatorValue=ref(),inputValueStatus=ref("success"),numeratorValueStatus=ref("success"),denominatorValueStatus=ref("success"),keyboardRef=ref(null),inputRef=ref(null),style=init();function init(){if(props.defaultValue&&(inputValue.value=props.defaultValue.toString()),props.drag){const{x:e,y:t,style:a}=useDraggable(keyboardRef,{initialValue:props.positionInitialValue,onMove:(e,t)=>{var a,u,n,l;e.x+=null!=(u=null==(a=props.moveOffset)?void 0:a.x)?u:0,e.y+=null!=(l=null==(n=props.moveOffset)?void 0:n.y)?l:0}});return a}}async function setFocus(){var e,t,a;const u=null==(a=null==(t=null==(e=inputRef.value)?void 0:e.$childrenRefs)?void 0:t.$refs)?void 0:a.inputElRef;await nextTick(),u.focus()}function keydown(key){switch(key){case"Undo":updateValue(key);break;case"Enter":if(!validator())return void(inputValueStatus.value="error");emit("change",eval(inputValue.value)),setFocus();break;default:"number"==typeof key?(inputValue.value=key.toString(),setInputValueStatus(),setFocus()):updateValue(key)}}function onKeydown(e){["Enter"].includes(e.key)&&keydown("Enter")}async function updateValue(e){var t,a,u;const n=null==(u=null==(a=null==(t=inputRef.value)?void 0:t.$childrenRefs)?void 0:a.$refs)?void 0:u.inputElRef,{selectionStart:l,selectionEnd:o}=n,r=inputValue.value.split("");if("Undo"===e){const e=l===o?1:o-l,t=l===o?l-1:l;inputValue.value&&t>-1&&r.splice(t,e)}else r.splice(l,o-l,e);inputValue.value=r.join(""),await nextTick(),n.focus();const s="Undo"===e?l?o>l?l:l-1:0:l+1;n.setSelectionRange(s,s),setInputValueStatus()}function validator(){if(!inputValue.value)return!1;if(CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0]))return!1;if(CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length-1]))return!1;const e=[];let t=[];const a=inputValue.value.split("");a.forEach(((u,n)=>{CALCULATIONSYMBOLS.includes(u)?(e.push(t.join("")),t=[]):(t.push(u),n===a.length-1&&e.push(t.join("")))}));return!!e.every(((e,t)=>0===t&&!e||/^\d*(.\d+)?$/.test(e)))}function updateFraction(e){setInputStatus(inputValue,inputValueStatus)&&(inputValue.value=(Math.round(+inputValue.value*(1/e)*100)/100).toString(),setInputValueStatus())}function calculateFraction(){if(!setInputStatus(inputValue,inputValueStatus)||!setInputStatus(numeratorValue,numeratorValueStatus,!0)||!setInputStatus(denominatorValue,denominatorValueStatus,!0))return;const e=getNumber(integerValue.value)+getNumber(numeratorValue.value)/getNumber(denominatorValue.value);inputValue.value=(Math.round(+inputValue.value*e*100)/100).toString(),setInputValueStatus()}function setInputStatus(e,t,a){if((a||e.value&&"."!==e.value)&&(!a||e.value))return!0;t.value="error"}function setInputValueStatus(){inputValueStatus.value=inputValue.value?"success":"error"}return watch((()=>props.value),(e=>inputValue.value=(e||"").toString()),{immediate:!0}),(e,t)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["c-keyboard",{isFixed:__props.drag}]),ref_key:"keyboardRef",ref:keyboardRef,style:normalizeStyle(unref(style)),onKeydown:onKeydown},[createElementVNode("div",{class:normalizeClass(["left",{isDose:unref(isDose)}])},[createVNode(InputNumber,{ref_key:"inputRef",ref:inputRef,modelValue:inputValue.value,"onUpdate:modelValue":t[0]||(t[0]=e=>inputValue.value=e),status:inputValueStatus.value,"onUpdate:status":t[1]||(t[1]=e=>inputValueStatus.value=e)},null,8,["modelValue","status"]),createElementVNode("div",_hoisted_1,[createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(numberKeys),(e=>(openBlock(),createElementBlock("span",{key:e,class:normalizeClass("0"===e?"is-0":""),onClick:t=>keydown(e)},toDisplayString(e),11,_hoisted_2)))),128))])),_:1}),createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[createElementVNode("span",{class:"opt",onClick:t[2]||(t[2]=e=>keydown("Undo"))},[createVNode(unref(NIcon),{component:unref(ArrowUndoSharp)},null,8,["component"])]),createElementVNode("span",{class:"opt",onClick:t[3]||(t[3]=e=>keydown("Enter"))},"确定")])),_:1})])],2),unref(isDay)?(openBlock(),createBlock(unref(NSpace),{key:0,class:"right-days","wrap-item":!1,justify:"center",vertical:""},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(days.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>keydown(e)},toDisplayString(e)+"天",9,_hoisted_3)))),128))])),_:1})):createCommentVNode("v-if",!0),unref(isDose)?(openBlock(),createBlock(unref(NSpace),{key:1,class:"right-dose","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(doses.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>updateFraction(e)},"1/"+toDisplayString(e),9,_hoisted_5)))),128))]),createVNode(unref(NSpace),{justify:"center",vertical:"","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_6,[createVNode(InputNumber,{integer:"",modelValue:integerValue.value,"onUpdate:modelValue":t[4]||(t[4]=e=>integerValue.value=e)},null,8,["modelValue"]),createElementVNode("div",_hoisted_7,[createVNode(InputNumber,{integer:"",modelValue:numeratorValue.value,"onUpdate:modelValue":t[5]||(t[5]=e=>numeratorValue.value=e),status:numeratorValueStatus.value,"onUpdate:status":t[6]||(t[6]=e=>numeratorValueStatus.value=e)},null,8,["modelValue","status"]),_hoisted_8,createVNode(InputNumber,{integer:"",modelValue:denominatorValue.value,"onUpdate:modelValue":t[7]||(t[7]=e=>denominatorValue.value=e),status:denominatorValueStatus.value,"onUpdate:status":t[8]||(t[8]=e=>denominatorValueStatus.value=e)},null,8,["modelValue","status"])])]),createElementVNode("span",{class:"btn",onClick:calculateFraction},"分子式剂量")])),_:1})])),_:1})):createCommentVNode("v-if",!0)],38))}});export{_sfc_main as default};
1
+ import{defineComponent,computed,ref,watch,openBlock,createElementBlock,normalizeClass,normalizeStyle,unref,createElementVNode,createVNode,withCtx,Fragment,renderList,toDisplayString,createBlock,createCommentVNode,nextTick}from"vue";import{NSpace,NIcon}from"naive-ui";import{ArrowUndoSharp}from"@vicons/ionicons5";import InputNumber from"./InputNumber.vue.js";import{useDraggable}from"@vueuse/core";import{getNumber}from"../utils/index.js";const _hoisted_1={class:"keys"},_hoisted_2=["onClick"],_hoisted_3=["onClick"],_hoisted_4={class:"btns"},_hoisted_5=["onClick"],_hoisted_6={class:"inputs"},_hoisted_7={class:"inputs-right"},_hoisted_8=createElementVNode("hr",null,null,-1);var _sfc_main=defineComponent({__name:"NumberPanel",props:{defaultValue:{type:Number},value:{type:Number},mode:{type:String},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},moveOffset:{type:Object,default:()=>({x:0,y:0})},drag:{type:Boolean,default:!1}},emits:["change"],setup(__props,{emit:emit}){const props=__props,NUMBERKEYS="1234567890.",DAYS=[3,7,14,30],DOSENUMBERKEYS="123/456*789-0.+",CALCULATIONSYMBOLS=["+","-","*","/"],isNumber=computed((()=>"number"===props.mode)),isDay=computed((()=>"day"===props.mode&&!isNumber.value)),isDose=computed((()=>"dose"===props.mode&&!isNumber.value)),numberKeys=computed((()=>(isDose.value?DOSENUMBERKEYS:NUMBERKEYS).split(""))),days=ref(DAYS),doses=ref([2,3,4,5,6,7,8]),inputValue=ref(""),integerValue=ref(),numeratorValue=ref(),denominatorValue=ref(),inputValueStatus=ref("success"),numeratorValueStatus=ref("success"),denominatorValueStatus=ref("success"),keyboardRef=ref(null),inputRef=ref(null),style=init();function init(){if(props.defaultValue&&(inputValue.value=props.defaultValue.toString()),props.drag){const{x:e,y:t,style:a}=useDraggable(keyboardRef,{initialValue:props.positionInitialValue,onMove:(e,t)=>{var a,u,n,l;e.x+=null!=(u=null==(a=props.moveOffset)?void 0:a.x)?u:0,e.y+=null!=(l=null==(n=props.moveOffset)?void 0:n.y)?l:0}});return a}}async function setFocus(){var e,t,a;const u=null==(a=null==(t=null==(e=inputRef.value)?void 0:e.$childrenRefs)?void 0:t.$refs)?void 0:a.inputElRef;await nextTick(),u.focus()}function keydown(key){switch(key){case"Undo":updateValue(key);break;case"Enter":if(!validator())return void(inputValueStatus.value="error");emit("change",eval(inputValue.value)),setFocus();break;default:"number"==typeof key?(inputValue.value=key.toString(),setInputValueStatus(),setFocus()):updateValue(key)}}function onKeydown(e){["Enter"].includes(e.key)&&keydown("Enter")}async function updateValue(e){var t,a,u;const n=null==(u=null==(a=null==(t=inputRef.value)?void 0:t.$childrenRefs)?void 0:a.$refs)?void 0:u.inputElRef,{selectionStart:l,selectionEnd:o}=n,r=inputValue.value.split("");if("Undo"===e){const e=l===o?1:o-l,t=l===o?l-1:l;inputValue.value&&t>-1&&r.splice(t,e)}else r.splice(l,o-l,e);inputValue.value=r.join(""),await nextTick(),n.focus();const s="Undo"===e?l?o>l?l:l-1:0:l+1;n.setSelectionRange(s,s),setInputValueStatus()}function validator(){if(!inputValue.value)return!1;if(CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0]))return!1;if(CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length-1]))return!1;const e=[];let t=[];const a=inputValue.value.split("");a.forEach(((u,n)=>{CALCULATIONSYMBOLS.includes(u)?(e.push(t.join("")),t=[]):(t.push(u),n===a.length-1&&e.push(t.join("")))}));return!!e.every(((e,t)=>0===t&&!e||/^\d*(.\d+)?$/.test(e)))}function updateFraction(e){setInputStatus(inputValue,inputValueStatus)&&(inputValue.value=(Math.round(+inputValue.value*(1/e)*100)/100).toString(),setInputValueStatus())}function calculateFraction(){if(!setInputStatus(inputValue,inputValueStatus)||!setInputStatus(numeratorValue,numeratorValueStatus,!0)||!setInputStatus(denominatorValue,denominatorValueStatus,!0))return;const e=getNumber(integerValue.value)+getNumber(numeratorValue.value)/getNumber(denominatorValue.value);inputValue.value=(Math.round(+inputValue.value*e*100)/100).toString(),setInputValueStatus()}function setInputStatus(e,t,a){if((a||e.value&&"."!==e.value)&&(!a||e.value))return!0;t.value="error"}function setInputValueStatus(){inputValueStatus.value=inputValue.value?"success":"error"}return watch((()=>props.value),(e=>inputValue.value=(e||"").toString()),{immediate:!0}),(e,t)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["c-keyboard",{isFixed:__props.drag}]),ref_key:"keyboardRef",ref:keyboardRef,style:normalizeStyle(unref(style)),onKeydown:onKeydown},[createElementVNode("div",{class:normalizeClass(["left",{isDose:unref(isDose)}])},[createVNode(InputNumber,{ref_key:"inputRef",ref:inputRef,modelValue:inputValue.value,"onUpdate:modelValue":t[0]||(t[0]=e=>inputValue.value=e),status:inputValueStatus.value,"onUpdate:status":t[1]||(t[1]=e=>inputValueStatus.value=e)},null,8,["modelValue","status"]),createElementVNode("div",_hoisted_1,[createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(numberKeys),(e=>(openBlock(),createElementBlock("span",{key:e,class:normalizeClass("0"===e?"is-0":""),onClick:t=>keydown(e)},toDisplayString(e),11,_hoisted_2)))),128))])),_:1}),createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>{var e;return[createElementVNode("span",{class:"opt",onClick:t[2]||(t[2]=e=>keydown("Undo"))},[createVNode(unref(NIcon),{component:unref(ArrowUndoSharp)},null,8,["component"])]),createElementVNode("span",{class:"opt",onClick:t[3]||(t[3]=e=>keydown("Enter"))},(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.33"))||"确定")]})),_:1})])],2),unref(isDay)?(openBlock(),createBlock(unref(NSpace),{key:0,class:"right-days","wrap-item":!1,justify:"center",vertical:""},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(days.value,(e=>{var t;return openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>keydown(e)},toDisplayString(e)+((null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.144"))||"天"),9,_hoisted_3)})),128))])),_:1})):createCommentVNode("v-if",!0),unref(isDose)?(openBlock(),createBlock(unref(NSpace),{key:1,class:"right-dose","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(doses.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>updateFraction(e)},"1/"+toDisplayString(e),9,_hoisted_5)))),128))]),createVNode(unref(NSpace),{justify:"center",vertical:"","wrap-item":!1},{default:withCtx((()=>{var e;return[createElementVNode("div",_hoisted_6,[createVNode(InputNumber,{integer:"",modelValue:integerValue.value,"onUpdate:modelValue":t[4]||(t[4]=e=>integerValue.value=e)},null,8,["modelValue"]),createElementVNode("div",_hoisted_7,[createVNode(InputNumber,{integer:"",modelValue:numeratorValue.value,"onUpdate:modelValue":t[5]||(t[5]=e=>numeratorValue.value=e),status:numeratorValueStatus.value,"onUpdate:status":t[6]||(t[6]=e=>numeratorValueStatus.value=e)},null,8,["modelValue","status"]),_hoisted_8,createVNode(InputNumber,{integer:"",modelValue:denominatorValue.value,"onUpdate:modelValue":t[7]||(t[7]=e=>denominatorValue.value=e),status:denominatorValueStatus.value,"onUpdate:status":t[8]||(t[8]=e=>denominatorValueStatus.value=e)},null,8,["modelValue","status"])])]),createElementVNode("span",{class:"btn",onClick:calculateFraction},(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.145"))||"分子式剂量")]})),_:1})])),_:1})):createCommentVNode("v-if",!0)],38))}});export{_sfc_main as default};
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as a,computed as t,onMounted as n,openBlock as s,createElementBlock as o,createElementVNode as r,createVNode as l,unref as i,withCtx as c,createTextVNode as d,toDisplayString as p,Fragment as m,renderList as u,createCommentVNode as g}from"vue";import{useMessage as v,NInput as q,NButton as L}from"naive-ui";const h={class:"c-map"},y={class:"search-container"},f={class:"map-input-search"},k={class:"input-addon"},w=r("div",{id:"map-core"},null,-1),_={key:0,class:"address-list"},S=["onClick"],P={class:"title"};var C=e({__name:"Map",props:{locationProp:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"}},emits:["selectLocation"],setup(e,{emit:C}){const O=e,T=a({qq:null,searchKey:"",centrePoint:{},location:{lng:"",lat:""},localObj:{},map:null,ac:null,addressList:[],markers:[],timeout:null,searchService:null,geocoder:{}}),M=t((()=>{var e,a;return null==(a=null==(e=T.addressList)?void 0:e[0])?void 0:a.name})),I=t((()=>O.locationProp&&JSON.parse(O.locationProp)||null)),B=v(),E=e=>{if(e&&"geolocation"==e.module){T.location.lng=e.lng,T.location.lat=e.lat;const a=new T.qq.maps.LatLng(e.lat,e.lng);x({latLng:a}),K({lat:e.lat,lng:e.lng})}else console.log("用户不允许获取地理位置"),T.location.lng=113.275,T.location.lat=23.117},K=e=>{const a=T.qq;var t=new a.maps.LatLng(e.lat,e.lng);T.centrePoint=t,T.map.panTo(t);const n=new a.maps.Marker({position:t,map:T.map});T.markers.push(n)},N=e=>{for(var a;a=e.pop();)a.setMap(null)},b=()=>{T.markers&&T.markers.length&&N(T.markers),T.markers=[]},x=(e={})=>{const a=T.qq,t=e.latLng,n=new a.maps.Geocoder;n.setComplete((e=>{if("GEO_INFO"===e.type){var t=new a.maps.LatLngBounds,n=e.detail.nearPois||[];b(),T.addressList=n||[];for(let e=0;e<n.length;e++){const o=n[e];var s=new a.maps.Marker({map:T.map});s.setPosition(o.latLng),s.setTitle(e+1),T.markers.push(s),t.extend(o.latLng)}T.map.fitBounds(t)}var o=e.detail.location||{};K(o)})),n.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),n.getAddress(t)},A=()=>{let e=T.searchKey;e&&(T.markers&&T.markers.length&&N(T.markers),T.searchService.setLocation(""),T.searchService.setPageCapacity(50),T.searchService.search(e))},G=(e,a)=>{const t=T.qq,{name:n,address:s,latLng:o}=e,{lat:r,lng:l}=o,i=new t.maps.Geocoder;i.setComplete((function(e){if("GEO_INFO"===e.type){const{addressComponents:{province:a,city:t,district:o,country:i}}=e.detail,c=JSON.stringify({name:n,address:s,province:a,city:t,district:o,country:i,lat:r,lng:l});C("selectLocation",{locationProp:c,isInit:!1})}})),i.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),i.getAddress(o)},J=e=>{var a={zoom:12,center:new e.maps.LatLng(39.916527,116.397128),mapTypeId:e.maps.MapTypeId.ROADMAP};T.map=new e.maps.Map(document.getElementById("map-core"),a);const{lat:t,lng:n,address:s}=I.value||{};if(t&&n){const a=new e.maps.LatLng(t,n);x({latLng:a})}else s?setTimeout((()=>{A()}),300):new T.qq.maps.Geolocation(O.ak,"qqmap").getLocation(E,(function(e){console.log(e)}),{timeout:9e3});T.qq.maps.event.addDomListener(T.map,"click",(function(e){x({latLng:e.latLng})}))},Y=e=>{T.qq=e,setTimeout((()=>{J(e),(()=>{const e=T.qq;T.searchService=new e.maps.SearchService({complete:function(a){var t,n,s=a.detail.pois||[],o=new e.maps.LatLngBounds;if("CITY_LIST"===a.type)return T.searchService.setLocation(a.detail.cities[0].cityName),void T.searchService.search(T.searchKey);if(T.addressList=s||[],b(),"POI_LIST"===a.type)for(var r=0,l=s.length;r<l;r++){var i=s[r];o.extend(i.latLng),t=r,n=void 0,(n=new e.maps.Marker({map:T.map})).setPosition(s[t].latLng),n.setTitle(r+1),T.markers.push(n)}T.map.fitBounds(o)},error:function(e){console.log(e),"NO_RESULTS"!==e?B.warning("地址检索先输入城市名称"):B.warning("查无结果!")},autoExtend:!0})})()}),0)},j=()=>{(()=>{var e,a;let t=window;if(t.qq)return t.qq._preloader?t.qq._preloader:Promise.resolve(t.qq);{const n=O.ak||(null==(a=null==(e=t._qq)?void 0:e.call(t))?void 0:a.ak);return t.qq={},t.qq._preloader=new Promise((e=>{t._initBaiduMap=function(){e(t.qq),t.document.body.removeChild(a),t.qq._preloader=null,t._initBaiduMap=null};const a=document.createElement("script");window.document.body.appendChild(a),a.src=`https://map.qq.com/api/js?v=2.exp&key=${n}&callback=_initBaiduMap`;const s=document.createElement("script");window.document.body.appendChild(s),s.src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"})),t.qq._preloader}})().then(Y)};return n((()=>{setTimeout((()=>{j()}),200)})),(e,a)=>(s(),o("div",h,[r("div",y,[r("div",f,[l(i(q),{value:T.searchKey,"onUpdate:value":a[0]||(a[0]=e=>T.searchKey=e),placeholder:"请输入地址","enter-button":"检索"},null,8,["value"]),r("span",k,[l(i(L),{type:"primary",size:"small",onClick:A},{default:c((()=>[d("检索")])),_:1})])])]),w,T.addressList&&T.addressList.length?(s(),o("ul",_,[r("li",null,[d(" 地址:"+p(i(M))+" ",1),l(i(L),{type:"primary",size:"small",onClick:a[1]||(a[1]=e=>G(T.addressList[0]))},{default:c((()=>[d("确定")])),_:1})]),(s(!0),o(m,null,u(T.addressList,((e,a)=>(s(),o("li",{class:"address-item",key:a},[r("div",{onClick:a=>G(e)},[r("div",P,p(e.name),1),r("span",null,p(e.address),1)],8,S)])))),128))])):g("v-if",!0)]))}});export{C as default};
1
+ import{defineComponent as e,reactive as a,computed as t,onMounted as n,openBlock as s,createElementBlock as o,createElementVNode as l,createVNode as r,unref as i,withCtx as c,createTextVNode as d,toDisplayString as p,Fragment as m,renderList as u,createCommentVNode as g}from"vue";import{useMessage as v,NInput as q,NButton as L}from"naive-ui";const h={class:"c-map"},y={class:"search-container"},f={class:"map-input-search"},k={class:"input-addon"},w=l("div",{id:"map-core"},null,-1),_={key:0,class:"address-list"},S=["onClick"],P={class:"title"};var C=e({__name:"Map",props:{locationProp:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"}},emits:["selectLocation"],setup(e,{emit:C}){const O=e,T=a({qq:null,searchKey:"",centrePoint:{},location:{lng:"",lat:""},localObj:{},map:null,ac:null,addressList:[],markers:[],timeout:null,searchService:null,geocoder:{}}),M=t((()=>{var e,a;return null==(a=null==(e=T.addressList)?void 0:e[0])?void 0:a.name})),B=t((()=>O.locationProp&&JSON.parse(O.locationProp)||null)),I=v(),E=e=>{if(e&&"geolocation"==e.module){T.location.lng=e.lng,T.location.lat=e.lat;const a=new T.qq.maps.LatLng(e.lat,e.lng);x({latLng:a}),K({lat:e.lat,lng:e.lng})}else console.log("用户不允许获取地理位置"),T.location.lng=113.275,T.location.lat=23.117},K=e=>{const a=T.qq;var t=new a.maps.LatLng(e.lat,e.lng);T.centrePoint=t,T.map.panTo(t);const n=new a.maps.Marker({position:t,map:T.map});T.markers.push(n)},N=e=>{for(var a;a=e.pop();)a.setMap(null)},b=()=>{T.markers&&T.markers.length&&N(T.markers),T.markers=[]},x=(e={})=>{const a=T.qq,t=e.latLng,n=new a.maps.Geocoder;n.setComplete((e=>{if("GEO_INFO"===e.type){var t=new a.maps.LatLngBounds,n=e.detail.nearPois||[];b(),T.addressList=n||[];for(let e=0;e<n.length;e++){const o=n[e];var s=new a.maps.Marker({map:T.map});s.setPosition(o.latLng),s.setTitle(e+1),T.markers.push(s),t.extend(o.latLng)}T.map.fitBounds(t)}var o=e.detail.location||{};K(o)})),n.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),n.getAddress(t)},A=()=>{let e=T.searchKey;e&&(T.markers&&T.markers.length&&N(T.markers),T.searchService.setLocation(""),T.searchService.setPageCapacity(50),T.searchService.search(e))},G=(e,a)=>{const t=T.qq,{name:n,address:s,latLng:o}=e,{lat:l,lng:r}=o,i=new t.maps.Geocoder;i.setComplete((function(e){if("GEO_INFO"===e.type){const{addressComponents:{province:a,city:t,district:o,country:i}}=e.detail,c=JSON.stringify({name:n,address:s,province:a,city:t,district:o,country:i,lat:l,lng:r});C("selectLocation",{locationProp:c,isInit:!1})}})),i.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),i.getAddress(o)},J=e=>{var a={zoom:12,center:new e.maps.LatLng(39.916527,116.397128),mapTypeId:e.maps.MapTypeId.ROADMAP};T.map=new e.maps.Map(document.getElementById("map-core"),a);const{lat:t,lng:n,address:s}=B.value||{};if(t&&n){const a=new e.maps.LatLng(t,n);x({latLng:a})}else s?setTimeout((()=>{A()}),300):new T.qq.maps.Geolocation(O.ak,"qqmap").getLocation(E,(function(e){console.log(e)}),{timeout:9e3});T.qq.maps.event.addDomListener(T.map,"click",(function(e){x({latLng:e.latLng})}))},Y=e=>{T.qq=e,setTimeout((()=>{J(e),(()=>{const e=T.qq;T.searchService=new e.maps.SearchService({complete:function(a){var t,n,s=a.detail.pois||[],o=new e.maps.LatLngBounds;if("CITY_LIST"===a.type)return T.searchService.setLocation(a.detail.cities[0].cityName),void T.searchService.search(T.searchKey);if(T.addressList=s||[],b(),"POI_LIST"===a.type)for(var l=0,r=s.length;l<r;l++){var i=s[l];o.extend(i.latLng),t=l,n=void 0,(n=new e.maps.Marker({map:T.map})).setPosition(s[t].latLng),n.setTitle(l+1),T.markers.push(n)}T.map.fitBounds(o)},error:function(e){console.log(e),"NO_RESULTS"!==e?I.warning("地址检索先输入城市名称"):I.warning("查无结果!")},autoExtend:!0})})()}),0)},j=()=>{(()=>{var e,a;let t=window;if(t.qq)return t.qq._preloader?t.qq._preloader:Promise.resolve(t.qq);{const n=O.ak||(null==(a=null==(e=t._qq)?void 0:e.call(t))?void 0:a.ak);return t.qq={},t.qq._preloader=new Promise((e=>{t._initBaiduMap=function(){e(t.qq),t.document.body.removeChild(a),t.qq._preloader=null,t._initBaiduMap=null};const a=document.createElement("script");window.document.body.appendChild(a),a.src=`https://map.qq.com/api/js?v=2.exp&key=${n}&callback=_initBaiduMap`;const s=document.createElement("script");window.document.body.appendChild(s),s.src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"})),t.qq._preloader}})().then(Y)};return n((()=>{setTimeout((()=>{j()}),200)})),(e,a)=>(s(),o("div",h,[l("div",y,[l("div",f,[r(i(q),{value:T.searchKey,"onUpdate:value":a[0]||(a[0]=e=>T.searchKey=e),placeholder:"请输入地址","enter-button":"检索"},null,8,["value"]),l("span",k,[r(i(L),{type:"primary",size:"small",onClick:A},{default:c((()=>[d("检索")])),_:1})])])]),w,T.addressList&&T.addressList.length?(s(),o("ul",_,[l("li",null,[d(" 地址:"+p(i(M))+" ",1),r(i(L),{type:"primary",size:"small",onClick:a[1]||(a[1]=e=>G(T.addressList[0]))},{default:c((()=>{var e;return[d((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.33"))||"确定")]})),_:1})]),(s(!0),o(m,null,u(T.addressList,((e,a)=>(s(),o("li",{class:"address-item",key:a},[l("div",{onClick:a=>G(e)},[l("div",P,p(e.name),1),l("span",null,p(e.address),1)],8,S)])))),128))])):g("v-if",!0)]))}});export{C as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,watch as t,nextTick as n,onBeforeUnmount as c,openBlock as i,createElementBlock as r,createElementVNode as s,createVNode as l,unref as o,withCtx as u,createTextVNode as v}from"vue";import{fabric as p}from"../../../shared/utils/fabricjs/index.js";import{NButton as f}from"naive-ui";import{isString as h}from"lodash-es";const d={class:"c-picture-clipper"},m={class:"canvas-right"},g={key:0,class:"preview-border"},w=["src"],y={class:"btns"};var C=e({__name:"PictureClipper",props:{source:{type:[String,File]}},emits:["save"],setup(e,{emit:C}){const P=e,b=500,k={x:250,y:270},R={originX:"center",originY:"center",left:k.x,top:k.y},_=a(null),j=a(),L={canvas:null,img:null,clipPath:null};function S(){var e;if(!L.canvas)return;const{width:a=0,height:t=0,left:n=0,top:c=0,scaleX:i=1,scaleY:r=1}=L.clipPath,s=a*i,l=t*r;j.value=null==(e=L.canvas)?void 0:e.toDataURL({left:n-s/2,top:c-l/2,width:s,height:l})}function U(){L.canvas&&C("save",j.value)}function x(e){var a;L.canvas&&(null==(a=L.clipPath)||a.setCoords().set({...R,...e,scaleX:1,scaleY:1}),F(),j.value="")}function F(){const{canvas:e,clipPath:a}=L;e&&a&&(L.canvas.discardActiveObject(),L.clipPath.bringToFront(),L.canvas.setActiveObject(L.clipPath))}return t((()=>P.source),(async e=>{e&&(await n(),async function(){const{minLength:e,sourceScale:a,sourceUrl:t}=await function(){return new Promise(((a,t)=>{if(h(P.source))e(P.source).then((e=>a(e)));else if(Object.prototype.toString.call(P.source).includes("File")){const t=new FileReader;t.onload=n=>{e(t.result).then((e=>a(e)))},t.readAsDataURL(P.source)}}));function e(e){return new Promise(((a,t)=>{const n=p.util.createImage();n.src=e,n.onload=t=>{const{width:c,height:i}=n;a({sourceScale:c>=i?b/c:b/i,minLength:Math.min(c,i),sourceUrl:e})}}))}}();L.canvas||(L.canvas=new p.Canvas(_.value,{width:b,height:b,backgroundColor:"#fff",selection:!1,containerClass:"c-picture-clipper__canvas",fireRightClick:!0}));L.img&&L.canvas.remove(L.img),p.Image.fromURL(t,(function(e){e.scale(a).set({...R,evented:!1,selectable:!1}),L.canvas.add(e),L.img=e,F()}));const n=e*a;L.clipPath?x({width:n,height:n}):(L.clipPath=new p.Rect({...R,width:n,height:n,fill:"transparent",lockRotation:!0,borderColor:"#5585f5",cornerColor:"#5585f5",cornerSize:10,transparentCorners:!1}),L.canvas.add(L.clipPath),F(),L.canvas.on("mouse:down",(e=>{F()})))}())}),{immediate:!0}),c((()=>{var e,a;null==(e=L.canvas)||e.off(),null==(a=L.canvas)||a.clear()})),(e,a)=>(i(),r("div",d,[s("canvas",{ref_key:"canvasRef",ref:_},null,512),s("div",m,[j.value?(i(),r("img",{key:1,src:j.value,alt:""},null,8,w)):(i(),r("span",g)),s("div",y,[l(o(f),{onClick:a[0]||(a[0]=()=>x())},{default:u((()=>[v("撤销")])),_:1}),l(o(f),{type:"primary",onClick:S},{default:u((()=>[v("预览")])),_:1}),l(o(f),{type:"primary",onClick:U},{default:u((()=>[v("保存")])),_:1})])])]))}});export{C as default};
1
+ import{defineComponent as e,ref as a,watch as n,nextTick as t,onBeforeUnmount as c,openBlock as i,createElementBlock as r,createElementVNode as l,createVNode as o,unref as s,withCtx as u,createTextVNode as v}from"vue";import{fabric as d}from"../../../shared/utils/fabricjs/index.js";import{NButton as p}from"naive-ui";import{isString as f}from"lodash-es";const h={class:"c-picture-clipper"},m={class:"canvas-right"},g={key:0,class:"preview-border"},w=["src"],y={class:"btns"};var C=e({__name:"PictureClipper",props:{source:{type:[String,File]}},emits:["save"],setup(e,{emit:C}){const P=e,b=500,k={x:250,y:270},R={originX:"center",originY:"center",left:k.x,top:k.y},_=a(null),L=a(),j={canvas:null,img:null,clipPath:null};function S(){var e;if(!j.canvas)return;const{width:a=0,height:n=0,left:t=0,top:c=0,scaleX:i=1,scaleY:r=1}=j.clipPath,l=a*i,o=n*r;L.value=null==(e=j.canvas)?void 0:e.toDataURL({left:t-l/2,top:c-o/2,width:l,height:o})}function U(){j.canvas&&C("save",L.value)}function x(e){var a;j.canvas&&(null==(a=j.clipPath)||a.setCoords().set({...R,...e,scaleX:1,scaleY:1}),F(),L.value="")}function F(){const{canvas:e,clipPath:a}=j;e&&a&&(j.canvas.discardActiveObject(),j.clipPath.bringToFront(),j.canvas.setActiveObject(j.clipPath))}return n((()=>P.source),(async e=>{e&&(await t(),async function(){const{minLength:e,sourceScale:a,sourceUrl:n}=await function(){return new Promise(((a,n)=>{if(f(P.source))e(P.source).then((e=>a(e)));else if(Object.prototype.toString.call(P.source).includes("File")){const n=new FileReader;n.onload=t=>{e(n.result).then((e=>a(e)))},n.readAsDataURL(P.source)}}));function e(e){return new Promise(((a,n)=>{const t=d.util.createImage();t.src=e,t.onload=n=>{const{width:c,height:i}=t;a({sourceScale:c>=i?b/c:b/i,minLength:Math.min(c,i),sourceUrl:e})}}))}}();j.canvas||(j.canvas=new d.Canvas(_.value,{width:b,height:b,backgroundColor:"#fff",selection:!1,containerClass:"c-picture-clipper__canvas",fireRightClick:!0}));j.img&&j.canvas.remove(j.img),d.Image.fromURL(n,(function(e){e.scale(a).set({...R,evented:!1,selectable:!1}),j.canvas.add(e),j.img=e,F()}));const t=e*a;j.clipPath?x({width:t,height:t}):(j.clipPath=new d.Rect({...R,width:t,height:t,fill:"transparent",lockRotation:!0,borderColor:"#5585f5",cornerColor:"#5585f5",cornerSize:10,transparentCorners:!1}),j.canvas.add(j.clipPath),F(),j.canvas.on("mouse:down",(e=>{F()})))}())}),{immediate:!0}),c((()=>{var e,a;null==(e=j.canvas)||e.off(),null==(a=j.canvas)||a.clear()})),(e,a)=>(i(),r("div",h,[l("canvas",{ref_key:"canvasRef",ref:_},null,512),l("div",m,[L.value?(i(),r("img",{key:1,src:L.value,alt:""},null,8,w)):(i(),r("span",g)),l("div",y,[o(s(p),{onClick:a[0]||(a[0]=()=>x())},{default:u((()=>[v("撤销")])),_:1}),o(s(p),{type:"primary",onClick:S},{default:u((()=>{var e;return[v((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.490"))||"预览")]})),_:1}),o(s(p),{type:"primary",onClick:U},{default:u((()=>{var e;return[v((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1})])])]))}});export{C as default};
@@ -232,6 +232,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
232
232
  }, any, {
233
233
  initialProps: {};
234
234
  }, {
235
+ cfgItem(): Record<string, any>;
235
236
  valueCp(): any;
236
237
  unit(): any;
237
238
  isAccurateSearchVal(): any;
@@ -247,7 +248,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
247
248
  handleUpdate(val: any): void;
248
249
  handleUpdateUnit(val: any): void;
249
250
  handleUpdateAccurateSearch(val: any): void;
250
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:unit" | "update:isAccurate" | "outFilterChange")[], "update:modelValue" | "update:unit" | "update:isAccurate" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
251
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "itemChange" | "update:unit" | "update:isAccurate" | "outFilterChange")[], "update:modelValue" | "itemChange" | "update:unit" | "update:isAccurate" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
251
252
  cfg: {
252
253
  type: ObjectConstructor;
253
254
  required: true;
@@ -257,6 +258,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
257
258
  };
258
259
  }>> & {
259
260
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
261
+ onItemChange?: ((...args: any[]) => any) | undefined;
260
262
  "onUpdate:unit"?: ((...args: any[]) => any) | undefined;
261
263
  "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
262
264
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
@@ -234,6 +234,7 @@ declare const _default: import("vue").DefineComponent<{
234
234
  }, any, {
235
235
  initialProps: {};
236
236
  }, {
237
+ cfgItem(): Record<string, any>;
237
238
  valueCp(): any;
238
239
  unit(): any;
239
240
  isAccurateSearchVal(): any;
@@ -249,7 +250,7 @@ declare const _default: import("vue").DefineComponent<{
249
250
  handleUpdate(val: any): void;
250
251
  handleUpdateUnit(val: any): void;
251
252
  handleUpdateAccurateSearch(val: any): void;
252
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:unit" | "update:isAccurate" | "outFilterChange")[], "update:modelValue" | "update:unit" | "update:isAccurate" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
253
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "itemChange" | "update:unit" | "update:isAccurate" | "outFilterChange")[], "update:modelValue" | "itemChange" | "update:unit" | "update:isAccurate" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
253
254
  cfg: {
254
255
  type: ObjectConstructor;
255
256
  required: true;
@@ -259,6 +260,7 @@ declare const _default: import("vue").DefineComponent<{
259
260
  };
260
261
  }>> & {
261
262
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
263
+ onItemChange?: ((...args: any[]) => any) | undefined;
262
264
  "onUpdate:unit"?: ((...args: any[]) => any) | undefined;
263
265
  "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
264
266
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,provide as a,computed as t,watch as i,onMounted as n,openBlock as r,createElementBlock as u,createElementVNode as s,Fragment as o,renderList as c,unref as d,normalizeClass as f,createCommentVNode as v,createVNode as m,withCtx as p,createTextVNode as h,toDisplayString as g,createBlock as k,withDirectives as b,vShow as y,isRef as C}from"vue";import{useMessage as _,NPopover as A,NModal as S,NCard as x,NIcon as w,NButton as F,NForm as q,NFormItem as N,NInput as j}from"naive-ui";import{CloseOutline as I,AddOutline as E}from"@vicons/ionicons5";import R from"../../table-filter/src/hooks/useMixins.js";import U from"../../table-filter/src/hooks/useRenderWidget.js";import L from"../../table-filter/src/hooks/useAdvanced.js";import T from"../../table-filter/src/components/render-widget/index.vue.js";import{WidgetTypeEnums as D}from"../../table-filter/src/types/enums.js";import"moment/locale/zh-cn";import{cloneDeep as O}from"lodash-es";import{InjectionFilterApiConfig as P,InjectionFilterSearchConfig as V}from"../../table-filter/src/constants/index.js";const z={class:"quick-search-block quick-search-table"},B={class:"quick-row"},M={class:"quick-item-title"},Q={class:"quick-item-col"},W={class:"svg-wrap"},G={class:"flex_right"},J={class:"class-filter-content"},Y={class:"quickSearch-content"},H=s("span",{class:"label"},"父类名称:",-1),K=["onDblclick","onClick"],X={class:"s-content"};var Z=e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},selectCriticalNum:{type:Number,default:10},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:Z,emit:$}){const ee=e,le={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},ae=_(),{handleGetConfigApi:te,outQuickSearchFn:ie}=R(),{getRenderSearchConObj:ne,resetRenderWidgetValue:re,isRender:ue}=U(),{transformData:se,getCacheDef:oe,transformParams:ce}=L(),de=l(null),fe=l({classname:""});let ve=l(!1),me=l([]),pe=l([]),he=l(!1),ge=l("");const ke=l(),be=l(),ye=l([]);a(P,ee.filterApiConfig),a(V,me);let Ce=t((()=>!!pe.value.length&&pe.value.some((e=>e.isAdd)))),_e=t((()=>(e,l="name")=>e.alias||e[l]));function Ae(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=ne(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(me.value)||[]}function Se(){var e;null==(e=de.value)||e.validate((e=>{var l;if(e)return;let a=Ae();a.length||(a=[]);let t=null==(l=pe.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await te(e,"requestSaveTableCondiTion",{},ee.filterApiConfig))return;ve.value=!1,null==(l=de.value)||l.restoreValidation(),fe.value.classname="",pe.value=[],Ne()}catch(e){console.log(e)}}({tableId:ee.tableId||"",setting:JSON.stringify({displayCategory:t,name:fe.value.classname,conObj:a.map((e=>(e.unit&&(e.value=[]),e.widgetType===D.SELECTDYNAMIC&&(e.dynamicBaseList=e.value.map((e=>e.includes("&")?{label:e.split("&")[0],value:e.split("&")[1]}:{label:e,value:e})),e.value=e.value.map((e=>e.includes("&")?e.split("&")[1]:e))),e)))}),conditionList:"[]"})}))}function xe(e){setTimeout((()=>{be.value&&be.value.focus()}),100),he.value=!0}function we(){he.value=!1,ge.value&&(pe.value.forEach((e=>e.selected=!1)),pe.value.push({disabled:!0,value:ge.value,selected:!0,isAdd:!0}),ge.value="")}function Fe(e){!function(e){pe.value.splice(e,1)}(e)}function qe(){ve.value=!1}function Ne(){je(me.value),$("clearQuickSearchConfig")}function je(e){Array.isArray(e)&&(e.forEach((e=>{re(e)})),ie.handlerInitSearchItem(me.value))}return i((()=>ee.searchFieldList),(e=>{e&&e.length>0&&function(){let e=O(se(ee.searchFieldList,{_filterApiConfig:ee.filterApiConfig,_selectCriticalNum:ee.selectCriticalNum})).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];me.value=e||[],ie.handlerInitSearchItem(me.value)}()}),{immediate:!0,deep:!0}),i((()=>me),(()=>{const e=Ae()||[],l=ce(e);$("getFilterParam",e,l),ye.value.forEach((e=>e(l)))}),{deep:!0}),n((()=>{const e=ee.quickSearchConfig;if(e&&e.length>0)return l=e,void me.value.forEach((e=>{var a,t;if(ue(e)){const i=l.find((l=>l.field_key===e.columnName));i&&(null==(a=i.value)?void 0:a.length)>0&&(e.value=oe(e,i.value),e.unit=null!=(t=i.unit)?t:"")}}));var l;je(me.value)})),Z({openSaveToCalss:function(){let e=Ae();e&&(e.length>0?ve.value=!0:ae.warning("请设置搜索条件"))},clearData:Ne,onFilterSearch:function(){let e=Ae()||[];const l=ce(e);return $("onFilterSearch",e,l,!1),me.value},getFilterParams:function(){const e=Ae()||[];return ce(e)},setFilterParams:function(e){const l=e?Object.keys(e):[];l.length>0&&me.value.forEach((a=>{var t;if(ue(a)&&l.includes(a.columnName)){const l=e[a.columnName];a.value=Array.isArray(l)&&!1===(null==(t=a.widgetCfg)?void 0:t.multiple)?l[0]:l}}))},getOriginalConfig:function(){return ee.searchFieldList},onFilterChange:function(e){ye.value.push(e)}}),(e,l)=>(r(),u("div",null,[s("div",z,[(r(!0),u(o,null,c(d(me),(e=>(r(),u("div",{class:f(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[s("div",B,[v(" title "),s("div",M,[m(d(A),{trigger:"hover"},{trigger:p((()=>[h(g(d(_e)(e,"title")),1)])),default:p((()=>[s("span",null,g(d(_e)(e,"title")),1)])),_:2},1024)]),v(" content "),s("div",Q,[v(" 直接渲染组件 "),e.isRender?(r(),k(T,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,unit:e.unit,"onUpdate:unit":l=>e.unit=l},null,8,["cfg","modelValue","onUpdate:modelValue","unit","onUpdate:unit"])):v("v-if",!0)])])],2)))),128))]),v(" 保存到分类的弹窗 "),m(d(S),{show:d(ve),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:Se,onNegativeClick:qe,class:"classification-modal-block"},{default:p((()=>[m(d(x),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[s("div",W,[m(d(w),{component:d(I),size:"24",onClick:qe},null,8,["component"])])])),footer:p((()=>[s("div",G,[m(d(F),{onClick:qe},{default:p((()=>[h("取消")])),_:1}),m(d(F),{type:"info",onClick:Se},{default:p((()=>[h("确认")])),_:1})])])),default:p((()=>[s("div",J,[m(d(q),{ref_key:"formRef",ref:de,"label-placement":"left",rules:le,model:fe.value},{default:p((()=>[m(d(N),{label:"筛选集名称",path:"classname"},{default:p((()=>[m(d(j),{value:fe.value.classname,"onUpdate:value":l[0]||(l[0]=e=>fe.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),s("div",Y,[H,(r(!0),u(o,null,c(d(pe),((e,l)=>(r(),u("div",{class:"parent-name",key:l,onDblclick:l=>function(e){e.disabled=!1,setTimeout((()=>{ke.value.length>0&&ke.value[0].focus()}),100)}(e),onClick:a=>function(e,l){e.disabled&&(pe.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(r(),u("div",{key:0,class:f(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}])},[s("div",X,g(e.value),1),m(d(w),{component:d(I),class:"anticon-close",size:"20",onClick:e=>Fe(l)},null,8,["component","onClick"])],2)):(r(),k(d(j),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:ke,class:"parent-input",style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxlength:20},null,8,["value","onUpdate:value","disabled","onBlur"]))],40,K)))),128)),d(Ce)?v("v-if",!0):(r(),u(o,{key:0},[b(m(d(F),{dashed:"",icon:"plus",class:"ant-btn",onClick:xe},{default:p((()=>[m(d(w),{component:d(E),size:"20"},null,8,["component"]),h("添加分类 ")])),_:1},512),[[y,!d(he)]]),b(m(d(j),{ref_key:"parentInputAddRef",ref:be,class:"parent-input",style:{width:"100px"},value:d(ge),"onUpdate:value":l[1]||(l[1]=e=>C(ge)?ge.value=e:ge=e),valueModifiers:{trim:!0},onBlur:we,maxlength:20},null,8,["value"]),[[y,d(he)]])],64))])])])),_:1})])),_:1},8,["show"])]))}});export{Z as default};
1
+ import{defineComponent as e,ref as l,provide as a,computed as t,watch as i,onMounted as n,openBlock as o,createElementBlock as u,createElementVNode as r,Fragment as s,renderList as c,unref as d,normalizeClass as v,createCommentVNode as f,createVNode as m,withCtx as g,createTextVNode as p,toDisplayString as h,createBlock as w,withDirectives as y,vShow as k,isRef as C}from"vue";import{useMessage as b,NPopover as _,NModal as A,NCard as S,NIcon as x,NButton as L,NForm as B,NFormItem as F,NInput as q}from"naive-ui";import{CloseOutline as N,AddOutline as j}from"@vicons/ionicons5";import I from"../../table-filter/src/hooks/useMixins.js";import E from"../../table-filter/src/hooks/useRenderWidget.js";import R from"../../table-filter/src/hooks/useAdvanced.js";import U from"../../table-filter/src/components/render-widget/index.vue.js";import{WidgetTypeEnums as T}from"../../table-filter/src/types/enums.js";import"moment/locale/zh-cn";import{cloneDeep as D}from"lodash-es";import{InjectionFilterApiConfig as O,InjectionFilterSearchConfig as P}from"../../table-filter/src/constants/index.js";const V={class:"quick-search-block quick-search-table"},z={class:"quick-row"},M={class:"quick-item-title"},Q={class:"quick-item-col"},W={class:"svg-wrap"},G={class:"flex_right"},J={class:"class-filter-content"},Y={class:"quickSearch-content"},H=r("span",{class:"label"},"父类名称:",-1),K=["onDblclick","onClick"],X={class:"s-content"};var Z=e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},selectCriticalNum:{type:Number,default:10},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:Z,emit:$}){var ee;const le=e,ae={classname:{required:!0,message:(null==(ee=window.getLanguageByCode)?void 0:ee.call(window,"10010.1.360"))||"请输入分类名称",trigger:["input","blur"]}},te=b(),{handleGetConfigApi:ie,outQuickSearchFn:ne}=I(),{getRenderSearchConObj:oe,resetRenderWidgetValue:ue,isRender:re}=E(),{transformData:se,getCacheDef:ce,transformParams:de}=R(),ve=l(null),fe=l({classname:""});let me=l(!1),ge=l([]),pe=l([]),he=l(!1),we=l("");const ye=l(),ke=l(),Ce=l([]);a(O,le.filterApiConfig),a(P,ge);let be=t((()=>!!pe.value.length&&pe.value.some((e=>e.isAdd)))),_e=t((()=>(e,l="name")=>e.alias||e[l]));function Ae(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=oe(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ge.value)||[]}function Se(){var e;null==(e=ve.value)||e.validate((e=>{var l;if(e)return;let a=Ae();a.length||(a=[]);let t=null==(l=pe.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await ie(e,"requestSaveTableCondiTion",{},le.filterApiConfig))return;me.value=!1,null==(l=ve.value)||l.restoreValidation(),fe.value.classname="",pe.value=[],qe()}catch(e){console.log(e)}}({tableId:le.tableId||"",setting:JSON.stringify({displayCategory:t,name:fe.value.classname,conObj:a.map((e=>(e.unit&&(e.value=[]),e.widgetType===T.SELECTDYNAMIC&&(e.dynamicBaseList=e.value.map((e=>e.includes("&")?{label:e.split("&")[0],value:e.split("&")[1]}:{label:e,value:e})),e.value=e.value.map((e=>e.includes("&")?e.split("&")[1]:e))),e)))}),conditionList:"[]"})}))}function xe(e){setTimeout((()=>{ke.value&&ke.value.focus()}),100),he.value=!0}function Le(){he.value=!1,we.value&&(pe.value.forEach((e=>e.selected=!1)),pe.value.push({disabled:!0,value:we.value,selected:!0,isAdd:!0}),we.value="")}function Be(e){!function(e){pe.value.splice(e,1)}(e)}function Fe(){me.value=!1}function qe(){Ne(ge.value),$("clearQuickSearchConfig")}function Ne(e){Array.isArray(e)&&(e.forEach((e=>{ue(e)})),ne.handlerInitSearchItem(ge.value))}return i((()=>le.searchFieldList),(e=>{e&&e.length>0&&function(){let e=D(se(le.searchFieldList,{_filterApiConfig:le.filterApiConfig,_selectCriticalNum:le.selectCriticalNum})).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ge.value=e||[],ne.handlerInitSearchItem(ge.value)}()}),{immediate:!0,deep:!0}),i((()=>ge),(()=>{const e=Ae()||[],l=de(e);$("getFilterParam",e,l),Ce.value.forEach((e=>e(l)))}),{deep:!0}),n((()=>{const e=le.quickSearchConfig;if(e&&e.length>0)return l=e,void ge.value.forEach((e=>{var a,t;if(re(e)){const i=l.find((l=>l.field_key===e.columnName));i&&(null==(a=i.value)?void 0:a.length)>0&&(e.value=ce(e,i.value),e.unit=null!=(t=i.unit)?t:"")}}));var l;Ne(ge.value)})),Z({openSaveToCalss:function(){var e;let l=Ae();l&&(l.length>0?me.value=!0:te.warning((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.409"))||"请设置搜索条件"))},clearData:qe,onFilterSearch:function(){let e=Ae()||[];const l=de(e);return $("onFilterSearch",e,l,!1),ge.value},getFilterParams:function(){const e=Ae()||[];return de(e)},setFilterParams:function(e){const l=e?Object.keys(e):[];l.length>0&&ge.value.forEach((a=>{var t;if(re(a)&&l.includes(a.columnName)){const l=e[a.columnName];a.value=Array.isArray(l)&&!1===(null==(t=a.widgetCfg)?void 0:t.multiple)?l[0]:l}}))},getOriginalConfig:function(){return le.searchFieldList},onFilterChange:function(e){Ce.value.push(e)}}),(e,l)=>{var a,t;return o(),u("div",null,[r("div",V,[(o(!0),u(s,null,c(d(ge),(e=>(o(),u("div",{class:v(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[r("div",z,[f(" title "),r("div",M,[m(d(_),{trigger:"hover"},{trigger:g((()=>[p(h(d(_e)(e,"title")),1)])),default:g((()=>[r("span",null,h(d(_e)(e,"title")),1)])),_:2},1024)]),f(" content "),r("div",Q,[f(" 直接渲染组件 "),e.isRender?(o(),w(U,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,unit:e.unit,"onUpdate:unit":l=>e.unit=l},null,8,["cfg","modelValue","onUpdate:modelValue","unit","onUpdate:unit"])):f("v-if",!0)])])],2)))),128))]),f(" 保存到分类的弹窗 "),m(d(A),{show:d(me),maskClosable:!1,"positive-text":(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.428"))||"确认","negative-text":(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.32"))||"取消",onPositiveClick:Se,onNegativeClick:Fe,class:"classification-modal-block"},{default:g((()=>{var e;return[m(d(S),{title:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.407"))||"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":g((()=>[r("div",W,[m(d(x),{component:d(N),size:"24",onClick:Fe},null,8,["component"])])])),footer:g((()=>[r("div",G,[m(d(L),{onClick:Fe},{default:g((()=>{var e;return[p((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.32"))||"取消")]})),_:1}),m(d(L),{type:"info",onClick:Se},{default:g((()=>{var e;return[p((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.428"))||"确认")]})),_:1})])])),default:g((()=>[r("div",J,[m(d(B),{ref_key:"formRef",ref:ve,"label-placement":"left",rules:ae,model:fe.value},{default:g((()=>{var e;return[m(d(F),{label:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.408"))||"筛选集名称",path:"classname"},{default:g((()=>{var e;return[m(d(q),{value:fe.value.classname,"onUpdate:value":l[0]||(l[0]=e=>fe.value.classname=e),placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.360"))||"请输入分类名称",clearable:""},null,8,["value"])]})),_:1})]})),_:1},8,["model"]),r("div",Y,[H,(o(!0),u(s,null,c(d(pe),((e,l)=>(o(),u("div",{class:"parent-name",key:l,onDblclick:l=>function(e){e.disabled=!1,setTimeout((()=>{ye.value.length>0&&ye.value[0].focus()}),100)}(e),onClick:a=>function(e,l){e.disabled&&(pe.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(o(),u("div",{key:0,class:v(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}])},[r("div",X,h(e.value),1),m(d(x),{component:d(N),class:"anticon-close",size:"20",onClick:e=>Be(l)},null,8,["component","onClick"])],2)):(o(),w(d(q),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:ye,class:"parent-input",style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxlength:20},null,8,["value","onUpdate:value","disabled","onBlur"]))],40,K)))),128)),d(be)?f("v-if",!0):(o(),u(s,{key:0},[y(m(d(L),{dashed:"",icon:"plus",class:"ant-btn",onClick:xe},{default:g((()=>[m(d(x),{component:d(j),size:"20"},null,8,["component"]),p("添加分类 ")])),_:1},512),[[k,!d(he)]]),y(m(d(q),{ref_key:"parentInputAddRef",ref:ke,class:"parent-input",style:{width:"100px"},value:d(we),"onUpdate:value":l[1]||(l[1]=e=>C(we)?we.value=e:we=e),valueModifiers:{trim:!0},onBlur:Le,maxlength:20},null,8,["value"]),[[k,d(he)]])],64))])])])),_:1})]})),_:1},8,["show"])])}}});export{Z as default};
@@ -1 +1 @@
1
- .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-name{align-items:center;display:flex}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-input{margin-bottom:10px;margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;display:flex;justify-content:center;margin-bottom:10px;margin-right:10px;max-width:120px;padding:0 10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;display:flex;justify-content:center;line-height:1;width:18px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding:12px 0 0}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .filter-expression{display:flex;flex-direction:column}.classification-modal-block .n-card__content .class-filter-content .filter-expression .textarea{margin-top:6px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex;flex-wrap:nowrap}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px;white-space:nowrap}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.select-dynamic-popover .n-base-select-menu__empty{justify-content:left;padding:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options{background:#fff;box-shadow:0 0 6px rgba(0,0,0,.2);display:flex;flex-direction:column;justify-content:left}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .n-empty{padding:12px 32px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .mixins-options-active{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header .name{align-items:center;display:flex;flex:1;font-weight:700;height:34px;padding:0 12px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content{list-style:none;margin:0;max-height:250px;outline:none;overflow:auto;padding-left:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li{color:rgba(0,0,0,.65);cursor:pointer;display:flex;font-size:14px;line-height:22px;text-overflow:ellipsis;transition:background .3s ease;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li.actived{color:#5585f5}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li:hover{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li .content{flex:1;overflow:hidden;padding:5px 12px;text-overflow:ellipsis;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination{width:100%}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group .n-button{flex:1}.classify-fieldkey-popover{width:200px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
1
+ .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-name{align-items:center;display:flex}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-input{margin-bottom:10px;margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;display:flex;justify-content:center;margin-bottom:10px;margin-right:10px;max-width:120px;padding:0 10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;display:flex;justify-content:center;line-height:1;width:18px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding:12px 0 0}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .filter-expression{display:flex;flex-direction:column}.classification-modal-block .n-card__content .class-filter-content .filter-expression .textarea{margin-top:6px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex;flex-wrap:nowrap}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px;white-space:nowrap}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.select-dynamic-popover .n-base-select-menu__empty{justify-content:left;padding:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options{background:#fff;box-shadow:0 0 6px rgba(0,0,0,.2);display:flex;flex-direction:column;justify-content:left}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .n-empty{padding:12px 32px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .mixins-options-active{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header .name{align-items:center;display:flex;flex:1;font-weight:700;height:34px;padding:0 12px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content{list-style:none;margin:0;max-height:250px;outline:none;overflow:auto;padding-left:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li{color:rgba(0,0,0,.65);cursor:pointer;display:flex;font-size:14px;line-height:22px;text-overflow:ellipsis;transition:background .3s ease;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li.actived{color:#5585f5}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li:hover{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li .content{flex:1;overflow:hidden;padding:5px 12px;text-overflow:ellipsis;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination{width:100%}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group .n-button{flex:1}.classify-fieldkey-popover{width:200px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
@@ -1 +1 @@
1
- import{defineComponent as e,inject as a,ref as t,computed as o,createVNode as l,mergeProps as n}from"vue";import{isFunction as r}from"lodash-es";import{uuidGenerator as u}from"../../../../shared/utils/index.js";import{useDebounceFn as s,onClickOutside as p}from"@vueuse/core";import{NPopover as i,NInput as c,NSpin as d}from"naive-ui";import{InjectionRecommendSearchRootSlots as v,InjectionRecommendSearchRef as m}from"../constant/index.js";var f=e({props:{displayValue:{type:String},valueFormatter:{type:Function},show:{type:Boolean},loading:{type:Boolean},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},inputProps:{type:Object,default:()=>({})},popProps:{type:Object,default:()=>({})},clearPatternOnOpenMenu:{type:Boolean,default:!0}},emits:["update:show","keydown","clear","search","openMenu","closeMenu"],setup(e,{expose:f,emit:h,slots:g}){const y=a(v,{}),w=u(),b=s(((e="")=>{h("search",e)}),300),M=t(e.show),P=o({get:()=>M.value||e.show,set(e){h("update:show",e),M.value=e}}),O=a(m,t()),x=t(""),j=o({get:()=>P.value?x.value:e.displayValue,set(e){x.value=e||"",b(e)}});function k(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&B()}function B(){P.value||(P.value=!0,h("openMenu"),e.clearPatternOnOpenMenu&&(x.value=""))}function F(){var e;P.value=!1,null==(e=O.value)||e.blur(),h("closeMenu")}function U(){h("clear")}return p(O,(e=>{var a;if(!P.value)return;const t=e;if(!t.target)return F();!function(e){let a=!1,t=e;for(;t;){if(t.id===w){a=!0;break}t=t.parentElement}return a}(t.target)?F():null==(a=O.value)||a.focus()})),f({setPattern(e){x.value=e},closeMenu:F,openMenu:B}),()=>l(i,n({trigger:"manual",class:"recommend-search",placement:"bottom-start",show:P.value,"onUpdate:show":e=>P.value=e,"show-arrow":!1,width:"trigger"},e.popProps),{trigger:()=>l(c,n(e.inputProps,{placeholder:e.placeholder,clearable:e.clearable,onClear:U,onFocus:k,onClick:k,onKeydown:e=>h("keydown",e),ref:O,value:j.value,"onUpdate:value":e=>j.value=e}),y),default:()=>l(d,{show:e.loading},{default:()=>[l("section",{id:w,class:"base-search__menu",style:"min-height: 100px"},[r(null==g?void 0:g.menu)?g.menu():null])]})})}});export{f as default};
1
+ import{defineComponent as e,inject as a,ref as t,computed as o,createVNode as l,mergeProps as n}from"vue";import{isFunction as r}from"lodash-es";import{uuidGenerator as u}from"../../../../shared/utils/index.js";import{useDebounceFn as s,onClickOutside as p}from"@vueuse/core";import{NPopover as i,NInput as c,NSpin as d}from"naive-ui";import{InjectionRecommendSearchRootSlots as v,InjectionRecommendSearchRef as m}from"../constant/index.js";var f,h=e({props:{displayValue:{type:String},valueFormatter:{type:Function},show:{type:Boolean},loading:{type:Boolean},placeholder:{type:String,default:(null==(f=window.getLanguageByCode)?void 0:f.call(window,"10010.1.383"))||"请输入"},clearable:{type:Boolean,default:!0},inputProps:{type:Object,default:()=>({})},popProps:{type:Object,default:()=>({})},clearPatternOnOpenMenu:{type:Boolean,default:!0}},emits:["update:show","keydown","clear","search","openMenu","closeMenu"],setup(e,{expose:f,emit:h,slots:g}){const w=a(v,{}),y=u(),b=s(((e="")=>{h("search",e)}),300),M=t(e.show),P=o({get:()=>M.value||e.show,set(e){h("update:show",e),M.value=e}}),O=a(m,t()),x=t(""),B=o({get:()=>P.value?x.value:e.displayValue,set(e){x.value=e||"",b(e)}});function j(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&k()}function k(){P.value||(P.value=!0,h("openMenu"),e.clearPatternOnOpenMenu&&(x.value=""))}function C(){var e;P.value=!1,null==(e=O.value)||e.blur(),h("closeMenu")}function F(){h("clear")}return p(O,(e=>{var a;if(!P.value)return;const t=e;if(!t.target)return C();!function(e){let a=!1,t=e;for(;t;){if(t.id===y){a=!0;break}t=t.parentElement}return a}(t.target)?C():null==(a=O.value)||a.focus()})),f({setPattern(e){x.value=e},closeMenu:C,openMenu:k}),()=>l(i,n({trigger:"manual",class:"recommend-search",placement:"bottom-start",show:P.value,"onUpdate:show":e=>P.value=e,"show-arrow":!1,width:"trigger"},e.popProps),{trigger:()=>l(c,n(e.inputProps,{placeholder:e.placeholder,clearable:e.clearable,onClear:F,onFocus:j,onClick:j,onKeydown:e=>h("keydown",e),ref:O,value:B.value,"onUpdate:value":e=>B.value=e}),w),default:()=>l(d,{show:e.loading},{default:()=>[l("section",{id:y,class:"base-search__menu",style:"min-height: 100px"},[r(null==g?void 0:g.menu)?g.menu():null])]})})}});export{h as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,watch as o,onMounted as n,computed as l,openBlock as a,createElementBlock as r,createVNode as c,unref as s,mergeProps as i,withCtx as m,Fragment as u,renderSlot as p,createCommentVNode as d,createElementVNode as y,renderList as v,toDisplayString as h}from"vue";import{useVModel as f,useVirtualList as b}from"@vueuse/core";import _ from"./RecommendMenu.vue.js";import k from"./BaseSearch.js";const j={class:"recommend-search"},L=y("section",{class:"recommend-search__empty"},"暂无数据",-1),g=["onClick"],M=["title"],O=y("section",{class:"recommend-search__empty"},"暂无数据",-1);var w=e({__name:"RecommendInput",props:{value:{type:String},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:w}){const A=e,C=t();function S(e=""){var t;null==(t=C.value)||t.setPattern(e)}const D=f(A,"value",w);o(D,S),n((()=>S(D.value)));const $=l((()=>D.value?A.options:A.options.filter((e=>{return A.commonList.every(t)&&A.recentList.every(t);function t(t){return t.itemObj!==e.itemObj}}))));function x(e){D.value=e,w("search",e)}function B(){w("openMenu")}function P(){w("closeMenu")}function R({type:e,value:t}){var o;D.value=t.itemObj,null==(o=C.value)||o.closeMenu(),w("choose",{type:e,value:t.itemObj})}const{list:E,wrapperProps:H,containerProps:I}=b($,{itemHeight:32,overscan:3});function K(e){["ArrowUp","ArrowDown","Enter"].includes(e.key)&&console.log(e)}return(t,o)=>(a(),r("section",j,[c(s(k),i({ref_key:"baseSearchRef",ref:C,"display-value":s(D),"clear-pattern-on-open-menu":!1,placeholder:e.placeholder,clearable:e.clearable,onKeydown:K,onSearch:x,onOpenMenu:B,onCloseMenu:P},t.$attrs),{menu:m((()=>[s(D)?(a(),r(u,{key:1},[s($).length?(a(),r("section",i({key:0,class:"recommend-search__optionContainer"},s(I),{style:{height:"256px"}}),[y("section",i({class:"recommend-search__optionList"},s(H)),[(a(!0),r(u,null,v(s(E),(e=>(a(),r("div",{onClick:t=>R({value:e.data}),key:e.data.itemObj,class:"recommend-search__option"},[y("div",{class:"recommend-search__optionText",title:e.data.itemObj},h(e.data.itemObj),9,M)],8,g)))),128))],16)],16)):p(t.$slots,"empty",{key:1},(()=>[O]))],64)):(a(),r(u,{key:0},[c(_,{"common-list":e.commonList,"recent-list":e.recentList,deletable:e.recommendDeletable,onDelete:o[0]||(o[0]=e=>t.$emit("delete",e)),onChoose:R},null,8,["common-list","recent-list","deletable"]),e.commonList.length||e.recentList.length?d("v-if",!0):p(t.$slots,"empty",{key:0},(()=>[L]))],64))])),_:3},16,["display-value","placeholder","clearable"])]))}});export{w as default};
1
+ import{createElementVNode as e,defineComponent as t,ref as o,watch as n,onMounted as l,computed as a,openBlock as r,createElementBlock as c,createVNode as s,unref as i,mergeProps as m,withCtx as u,Fragment as d,renderSlot as p,createCommentVNode as y,renderList as v,toDisplayString as h}from"vue";import{useVModel as f,useVirtualList as g}from"@vueuse/core";import w from"./RecommendMenu.vue.js";import b from"./BaseSearch.js";var _,L,k;const j={class:"recommend-search"},C=e("section",{class:"recommend-search__empty"},(null==(_=window.getLanguageByCode)?void 0:_.call(window,"10010.1.445"))||"暂无数据",-1),M=["onClick"],O=["title"],B=e("section",{class:"recommend-search__empty"},(null==(L=window.getLanguageByCode)?void 0:L.call(window,"10010.1.445"))||"暂无数据",-1);var A=t({__name:"RecommendInput",props:{value:{type:String},options:{type:Array,default:()=>[]},placeholder:{type:String,default:(null==(k=window.getLanguageByCode)?void 0:k.call(window,"10010.1.383"))||"请输入"},clearable:{type:Boolean,default:!0},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(t,{emit:_}){const L=t,k=o();function A(e=""){var t;null==(t=k.value)||t.setPattern(e)}const S=f(L,"value",_);n(S,A),l((()=>A(S.value)));const D=a((()=>S.value?L.options:L.options.filter((e=>{return L.commonList.every(t)&&L.recentList.every(t);function t(t){return t.itemObj!==e.itemObj}}))));function $(e){S.value=e,_("search",e)}function x(){_("openMenu")}function P(){_("closeMenu")}function R({type:e,value:t}){var o;S.value=t.itemObj,null==(o=k.value)||o.closeMenu(),_("choose",{type:e,value:t.itemObj})}const{list:E,wrapperProps:H,containerProps:I}=g(D,{itemHeight:32,overscan:3});function K(e){["ArrowUp","ArrowDown","Enter"].includes(e.key)&&console.log(e)}return(o,n)=>(r(),c("section",j,[s(i(b),m({ref_key:"baseSearchRef",ref:k,"display-value":i(S),"clear-pattern-on-open-menu":!1,placeholder:t.placeholder,clearable:t.clearable,onKeydown:K,onSearch:$,onOpenMenu:x,onCloseMenu:P},o.$attrs),{menu:u((()=>[i(S)?(r(),c(d,{key:1},[i(D).length?(r(),c("section",m({key:0,class:"recommend-search__optionContainer"},i(I),{style:{height:"256px"}}),[e("section",m({class:"recommend-search__optionList"},i(H)),[(r(!0),c(d,null,v(i(E),(t=>(r(),c("div",{onClick:e=>R({value:t.data}),key:t.data.itemObj,class:"recommend-search__option"},[e("div",{class:"recommend-search__optionText",title:t.data.itemObj},h(t.data.itemObj),9,O)],8,M)))),128))],16)],16)):p(o.$slots,"empty",{key:1},(()=>[B]))],64)):(r(),c(d,{key:0},[s(w,{"common-list":t.commonList,"recent-list":t.recentList,deletable:t.recommendDeletable,onDelete:n[0]||(n[0]=e=>o.$emit("delete",e)),onChoose:R},null,8,["common-list","recent-list","deletable"]),t.commonList.length||t.recentList.length?y("v-if",!0):p(o.$slots,"empty",{key:0},(()=>[C]))],64))])),_:3},16,["display-value","placeholder","clearable"])]))}});export{A as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,computed as t,openBlock as l,createElementBlock as o,createVNode as n,unref as r,mergeProps as u,isRef as i,withCtx as s,createElementVNode as c,normalizeProps as p,guardReactiveProps as v,Fragment as m,renderList as d,normalizeClass as y,toDisplayString as f,createBlock as h,createCommentVNode as K,renderSlot as _}from"vue";import{jsonParse as S}from"../../../../shared/utils/index.js";import{Checkmark as b}from"@vicons/ionicons5";import{useVModel as g,useVirtualList as k}from"@vueuse/core";import{isObject as M}from"lodash-es";import C from"./BaseSearch.js";import{NIcon as j}from"naive-ui";const w={class:"recommend-search"},x=["onClick"],L=["title"],P=c("section",{class:"recommend-search__empty"},"暂无数据",-1);var A=e({__name:"RecommendSelect",props:{value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:A}){const O=e,R=a(!1),U=t((()=>R.value?O.editPlaceholder:O.placeholder)),$=a();function B(e){return S(e.itemObj)}const H=t((()=>O.commonList.map(B))),N=t((()=>O.recentList.map(B))),T=t((()=>O.options.filter((e=>{return H.value.every(a)&&N.value.every(a);function a(a){return a[O.valueKey]!==e[O.valueKey]}}))));function q(e){let a="";return[...E.value,$.value].find((t=>{if(M(t)&&t[O.valueKey]===e)return a=t[O.labelKey],!0})),a}const z=a(),D=g(O,"value",A),E=t((()=>[...H.value,...N.value,...T.value]));function F(e=""){A("search",e)}function G(){F(),A("openMenu")}function I(){A("closeMenu")}function J(){D.value=null,A("clear")}function Q(e){var a,t;M(e)&&(D.value=e[O.valueKey],null==(a=z.value)||a.closeMenu(),$.value=e,t=e[O.valueKey],A("choose",{value:t,option:{...$.value}}))}const{list:V,wrapperProps:W,containerProps:X}=k(E,{itemHeight:32,overscan:5});return(a,t)=>(l(),o("section",w,[n(r(C),u({ref_key:"baseSearchRef",ref:z,value:r(D),"onUpdate:value":t[0]||(t[0]=e=>i(D)?D.value=e:null),show:R.value,"onUpdate:show":t[1]||(t[1]=e=>R.value=e),"display-value":q(r(D)),placeholder:r(U),onOpenMenu:G,onCloseMenu:I,onSearch:F,onClear:J},a.$attrs),{menu:s((()=>[r(E).length?(l(),o("section",u({key:0,class:"recommend-search__optionContainer",style:{height:"256px"}},r(X)),[c("section",p(v(r(W))),[(l(!0),o(m,null,d(r(V),(a=>(l(),o("div",{onClick:e=>Q(a.data),key:a.data[e.valueKey],class:y(["recommend-search__option",{"is-active":a.data[e.valueKey]===r(D)}])},[c("div",{class:"recommend-search__optionText",title:a.data.itemObj},f(a.data[e.labelKey]),9,L),a.data[e.valueKey]===r(D)?(l(),h(r(j),{key:0,component:r(b)},null,8,["component"])):K("v-if",!0)],10,x)))),128))],16)],16)):_(a.$slots,"empty",{key:1},(()=>[P]))])),_:3},16,["value","show","display-value","placeholder"])]))}});export{A as default};
1
+ import{createElementVNode as e,defineComponent as a,ref as l,computed as t,openBlock as o,createElementBlock as n,createVNode as r,unref as u,mergeProps as i,isRef as c,withCtx as s,normalizeProps as v,guardReactiveProps as d,Fragment as p,renderList as m,normalizeClass as y,toDisplayString as f,createBlock as h,createCommentVNode as g,renderSlot as w}from"vue";import{jsonParse as K}from"../../../../shared/utils/index.js";import{Checkmark as _}from"@vicons/ionicons5";import{useVModel as S,useVirtualList as b}from"@vueuse/core";import{isObject as k}from"lodash-es";import C from"./BaseSearch.js";import{NIcon as M}from"naive-ui";var L,j;const x={class:"recommend-search"},P=["onClick"],A=["title"],B=e("section",{class:"recommend-search__empty"},(null==(L=window.getLanguageByCode)?void 0:L.call(window,"10010.1.445"))||"暂无数据",-1);var O=a({__name:"RecommendSelect",props:{value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String,default:(null==(j=window.getLanguageByCode)?void 0:j.call(window,"10010.1.147"))||"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(a,{emit:L}){const j=a,O=l(!1),R=t((()=>O.value?j.editPlaceholder:j.placeholder)),U=l();function $(e){return K(e.itemObj)}const H=t((()=>j.commonList.map($))),N=t((()=>j.recentList.map($))),T=t((()=>j.options.filter((e=>{return H.value.every(a)&&N.value.every(a);function a(a){return a[j.valueKey]!==e[j.valueKey]}}))));function q(e){let a="";return[...E.value,U.value].find((l=>{if(k(l)&&l[j.valueKey]===e)return a=l[j.labelKey],!0})),a}const z=l(),D=S(j,"value",L),E=t((()=>[...H.value,...N.value,...T.value]));function F(e=""){L("search",e)}function G(){F(),L("openMenu")}function I(){L("closeMenu")}function J(){D.value=null,L("clear")}function Q(e){var a,l;k(e)&&(D.value=e[j.valueKey],null==(a=z.value)||a.closeMenu(),U.value=e,l=e[j.valueKey],L("choose",{value:l,option:{...U.value}}))}const{list:V,wrapperProps:W,containerProps:X}=b(E,{itemHeight:32,overscan:5});return(l,t)=>(o(),n("section",x,[r(u(C),i({ref_key:"baseSearchRef",ref:z,value:u(D),"onUpdate:value":t[0]||(t[0]=e=>c(D)?D.value=e:null),show:O.value,"onUpdate:show":t[1]||(t[1]=e=>O.value=e),"display-value":q(u(D)),placeholder:u(R),onOpenMenu:G,onCloseMenu:I,onSearch:F,onClear:J},l.$attrs),{menu:s((()=>[u(E).length?(o(),n("section",i({key:0,class:"recommend-search__optionContainer",style:{height:"256px"}},u(X)),[e("section",v(d(u(W))),[(o(!0),n(p,null,m(u(V),(l=>(o(),n("div",{onClick:e=>Q(l.data),key:l.data[a.valueKey],class:y(["recommend-search__option",{"is-active":l.data[a.valueKey]===u(D)}])},[e("div",{class:"recommend-search__optionText",title:l.data.itemObj},f(l.data[a.labelKey]),9,A),l.data[a.valueKey]===u(D)?(o(),h(u(M),{key:0,component:u(_)},null,8,["component"])):g("v-if",!0)],10,P)))),128))],16)],16)):w(l.$slots,"empty",{key:1},(()=>[B]))])),_:3},16,["value","show","display-value","placeholder"])]))}});export{O as default};
@@ -109,6 +109,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
109
109
  type: BooleanConstructor;
110
110
  default: boolean;
111
111
  };
112
+ isGeneratePrintPdf: {
113
+ type: BooleanConstructor;
114
+ default: boolean;
115
+ };
112
116
  }, {
113
117
  ScaleViewState: {
114
118
  other: string;
@@ -252,6 +256,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
252
256
  type: BooleanConstructor;
253
257
  default: boolean;
254
258
  };
259
+ isGeneratePrintPdf: {
260
+ type: BooleanConstructor;
261
+ default: boolean;
262
+ };
255
263
  }>> & {
256
264
  onOnCloseSetting?: ((...args: any[]) => any) | undefined;
257
265
  onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
@@ -866,6 +874,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
866
874
  type: BooleanConstructor;
867
875
  default: boolean;
868
876
  };
877
+ isGeneratePrintPdf: {
878
+ type: BooleanConstructor;
879
+ default: boolean;
880
+ };
869
881
  }>> & {
870
882
  onOnCloseSetting?: ((...args: any[]) => any) | undefined;
871
883
  onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
@@ -896,6 +908,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
896
908
  fontSizeObj: Record<string, any>;
897
909
  hasExtendBtn: boolean;
898
910
  printingHideBtn: boolean;
911
+ isGeneratePrintPdf: boolean;
899
912
  }>>;
900
913
  declare const CRadio: SFCWithInstall<import("vue").DefineComponent<{
901
914
  form: {
@@ -914,6 +927,10 @@ declare const CRadio: SFCWithInstall<import("vue").DefineComponent<{
914
927
  type: BooleanConstructor;
915
928
  default: boolean;
916
929
  };
930
+ isGeneratePrintPdf: {
931
+ type: (BooleanConstructor | ObjectConstructor)[];
932
+ default: boolean;
933
+ };
917
934
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
918
935
  form: {
919
936
  type: ObjectConstructor;
@@ -931,11 +948,16 @@ declare const CRadio: SFCWithInstall<import("vue").DefineComponent<{
931
948
  type: BooleanConstructor;
932
949
  default: boolean;
933
950
  };
951
+ isGeneratePrintPdf: {
952
+ type: (BooleanConstructor | ObjectConstructor)[];
953
+ default: boolean;
954
+ };
934
955
  }>> & {
935
956
  onScaleChange?: ((...args: any[]) => any) | undefined;
936
957
  }, {
937
958
  item: Record<string, any>;
938
959
  isLock: boolean;
960
+ isGeneratePrintPdf: boolean | Record<string, any>;
939
961
  form: Record<string, any>;
940
962
  inputLock: boolean;
941
963
  }>>;
@@ -956,6 +978,10 @@ declare const CCheckbox: SFCWithInstall<import("vue").DefineComponent<{
956
978
  type: BooleanConstructor;
957
979
  default: boolean;
958
980
  };
981
+ isGeneratePrintPdf: {
982
+ type: (BooleanConstructor | ObjectConstructor)[];
983
+ default: boolean;
984
+ };
959
985
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
960
986
  form: {
961
987
  type: ObjectConstructor;
@@ -973,11 +999,16 @@ declare const CCheckbox: SFCWithInstall<import("vue").DefineComponent<{
973
999
  type: BooleanConstructor;
974
1000
  default: boolean;
975
1001
  };
1002
+ isGeneratePrintPdf: {
1003
+ type: (BooleanConstructor | ObjectConstructor)[];
1004
+ default: boolean;
1005
+ };
976
1006
  }>> & {
977
1007
  onScaleChange?: ((...args: any[]) => any) | undefined;
978
1008
  }, {
979
1009
  item: Record<string, any>;
980
1010
  isLock: boolean;
1011
+ isGeneratePrintPdf: boolean | Record<string, any>;
981
1012
  form: Record<string, any>;
982
1013
  inputLock: boolean;
983
1014
  }>>;