cnhis-design-vue 3.2.14-release.1 → 3.2.15-beta.10

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 (320) hide show
  1. package/es/components/ai-chat/index.d.ts +1 -0
  2. package/es/components/ai-chat/src/Index.vue.d.ts +1 -0
  3. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  4. package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +1 -0
  5. package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
  6. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  7. package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
  8. package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +1 -1
  9. package/es/components/ai-chat/style/index.css +1 -1
  10. package/es/components/audio-sdk/src/components/recording.vue2.js +1 -1
  11. package/es/components/base-search/index.d.ts +8 -3
  12. package/es/components/base-search/src/index.vue.d.ts +8 -3
  13. package/es/components/base-search/src/index.vue2.js +1 -1
  14. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  15. package/es/components/big-table/src/components/NoData.vue2.js +1 -1
  16. package/es/components/big-table/src/components/edit-form/edit-date.js +1 -1
  17. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
  18. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  19. package/es/components/big-table/src/components/edit-form/edit-time.js +1 -1
  20. package/es/components/big-table/src/components/input-button.vue2.js +1 -1
  21. package/es/components/big-table/src/hooks/useNestTable.js +1 -1
  22. package/es/components/big-table/src/hooks/useTableParse.js +1 -1
  23. package/es/components/body-select/src/index.vue2.js +1 -1
  24. package/es/components/branch-notice/index.d.ts +479 -0
  25. package/es/components/branch-notice/index.js +1 -0
  26. package/es/components/branch-notice/src/BranchNotice.vue.d.ts +433 -0
  27. package/es/components/branch-notice/src/BranchNotice.vue.js +1 -0
  28. package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -0
  29. package/es/components/branch-notice/src/canstants.d.ts +8 -0
  30. package/es/components/branch-notice/src/canstants.js +1 -0
  31. package/es/components/branch-notice/src/components/NoticeItem.vue.d.ts +275 -0
  32. package/es/components/branch-notice/src/components/NoticeItem.vue.js +1 -0
  33. package/es/components/branch-notice/src/components/NoticeItem.vue2.js +1 -0
  34. package/es/components/branch-notice/src/components/NoticeItemAside.vue.d.ts +104 -0
  35. package/es/components/branch-notice/src/components/NoticeItemAside.vue.js +1 -0
  36. package/es/components/branch-notice/src/components/NoticeItemAside.vue2.js +1 -0
  37. package/es/components/branch-notice/src/components/NoticeOperationList.vue.d.ts +49 -0
  38. package/es/components/branch-notice/src/components/NoticeOperationList.vue.js +1 -0
  39. package/es/components/branch-notice/src/components/NoticeOperationList.vue2.js +1 -0
  40. package/es/components/branch-notice/src/drawLine.d.ts +2 -0
  41. package/es/components/branch-notice/src/drawLine.js +1 -0
  42. package/es/components/branch-notice/src/hooks/useTheme.d.ts +1 -0
  43. package/es/components/branch-notice/src/hooks/useTheme.js +1 -0
  44. package/es/components/branch-notice/src/types.d.ts +32 -0
  45. package/es/components/branch-notice/src/types.js +1 -0
  46. package/es/components/branch-notice/style/index.css +1 -0
  47. package/es/components/button-print/index.d.ts +4 -0
  48. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -0
  49. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  50. package/es/components/button-print/src/components/EditFormat.vue2.js +1 -1
  51. package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -1
  52. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
  53. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  54. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  55. package/es/components/button-print/src/components/Preview.vue2.js +1 -1
  56. package/es/components/button-print/src/utils/dialog.js +1 -1
  57. package/es/components/button-print/src/utils/print.js +1 -1
  58. package/es/components/calendar/index.d.ts +4 -4
  59. package/es/components/calendar/src/Calendar.vue.d.ts +4 -4
  60. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +1 -1
  61. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +1 -1
  62. package/es/components/classification/index.d.ts +1 -0
  63. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  64. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  65. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  66. package/es/components/classification/src/index.vue.d.ts +1 -0
  67. package/es/components/classification/src/index.vue2.js +1 -1
  68. package/es/components/classification/style/index.css +1 -1
  69. package/es/components/default-page/src/constants/index.js +1 -1
  70. package/es/components/default-page/src/index.vue2.js +1 -1
  71. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +1 -1
  72. package/es/components/expand-field/src/components/FormItemPerson.vue2.js +1 -1
  73. package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
  74. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  75. package/es/components/expand-field/src/index.vue2.js +1 -1
  76. package/es/components/expand-field/src/utils/constant.js +1 -1
  77. package/es/components/fabric-chart/index.d.ts +23 -4
  78. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +23 -4
  79. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  80. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  81. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +13 -0
  82. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -1
  83. package/es/components/fabric-chart/src/components/useStyle.js +1 -1
  84. package/es/components/fabric-chart/src/constants/index.d.ts +1 -1
  85. package/es/components/fabric-chart/src/constants/index.js +1 -1
  86. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  87. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +1 -0
  88. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  89. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  90. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  91. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +1 -0
  92. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  93. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  94. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  95. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  96. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
  97. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
  98. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +1 -1
  99. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  100. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
  101. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  102. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +1 -0
  103. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  104. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +7 -1
  105. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  106. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
  107. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  108. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  109. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  110. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +1 -0
  111. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  112. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  113. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
  114. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  115. package/es/components/fabric-chart/src/hooks/{temperature/useShadow.d.ts → useShadow.d.ts} +2 -2
  116. package/es/components/fabric-chart/src/hooks/useShadow.js +1 -0
  117. package/es/components/fabric-chart/src/interface.d.ts +3 -0
  118. package/es/components/fabric-chart/src/utils/index.d.ts +2 -1
  119. package/es/components/fabric-chart/src/utils/index.js +1 -1
  120. package/es/components/field-set/src/FieldColor.vue.d.ts +6 -6
  121. package/es/components/field-set/src/FieldColor.vue2.js +1 -1
  122. package/es/components/field-set/src/FieldFilter.vue.d.ts +8 -7
  123. package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
  124. package/es/components/field-set/src/FieldSet.vue.d.ts +6 -6
  125. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  126. package/es/components/field-set/src/Index.vue2.js +1 -1
  127. package/es/components/field-set/src/TableStyle.vue2.js +1 -1
  128. package/es/components/field-set/src/components/condition.vue2.js +1 -1
  129. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1 -1
  130. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
  131. package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
  132. package/es/components/field-set/src/components/table-row.vue.d.ts +5 -5
  133. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  134. package/es/components/field-set/src/constants/filter.d.ts +21 -12
  135. package/es/components/field-set/src/constants/filter.js +1 -1
  136. package/es/components/field-set/src/constants/index.js +1 -1
  137. package/es/components/field-set/src/types/index.d.ts +1 -1
  138. package/es/components/form-config/index.d.ts +108 -3
  139. package/es/components/form-config/src/FormConfig.vue.d.ts +108 -3
  140. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  141. package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +1 -0
  142. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -0
  143. package/es/components/form-config/src/constants/index.js +1 -1
  144. package/es/components/form-config/src/hooks/useLocale.js +1 -1
  145. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  146. package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
  147. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
  148. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -1
  149. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -1
  150. package/es/components/form-render/src/components/renderer/complex.js +1 -1
  151. package/es/components/form-render/src/components/renderer/date.js +1 -1
  152. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  153. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  154. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  155. package/es/components/form-render/src/components/renderer/select.js +1 -1
  156. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  157. package/es/components/form-render/src/components/renderer/text.js +1 -1
  158. package/es/components/form-render/src/components/renderer/textarea.js +1 -1
  159. package/es/components/form-render/src/hooks/useAnchor.js +1 -1
  160. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  161. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  162. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  163. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  164. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  165. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  166. package/es/components/form-render/src/hooks/usePresetScope.d.ts +1 -1
  167. package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
  168. package/es/components/form-render/src/utils/index.js +1 -1
  169. package/es/components/iho-chat/index.d.ts +885 -66
  170. package/es/components/iho-chat/src/Index.vue.d.ts +888 -73
  171. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  172. package/es/components/iho-chat/src/api/index.d.ts +1 -0
  173. package/es/components/iho-chat/src/api/index.js +1 -1
  174. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +33 -1
  175. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  176. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +54 -3
  177. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  178. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +54 -2
  179. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  180. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +232 -13
  181. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  182. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +86 -7
  183. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  184. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +20 -1
  185. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  186. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +44 -5
  187. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  188. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +75 -5
  189. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  190. package/es/components/iho-chat/src/components/ContextMenu.d.ts +11 -2
  191. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  192. package/es/components/iho-chat/src/components/MessageTemplate.vue.d.ts +1 -1
  193. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +1 -1
  194. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +53 -2
  195. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  196. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +21 -2
  197. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  198. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +276 -5
  199. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  200. package/es/components/iho-chat/src/components/Video.vue.d.ts +20 -1
  201. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  202. package/es/components/iho-chat/src/components/userItemRender.d.ts +18 -0
  203. package/es/components/iho-chat/src/components/userItemRender.js +1 -0
  204. package/es/components/iho-chat/src/constants/index.d.ts +12 -3
  205. package/es/components/iho-chat/src/constants/index.js +1 -1
  206. package/es/components/iho-chat/src/hooks/index.d.ts +2 -2
  207. package/es/components/iho-chat/src/hooks/index.js +1 -1
  208. package/es/components/iho-chat/src/hooks/useData.d.ts +96 -0
  209. package/es/components/iho-chat/src/hooks/useData.js +1 -0
  210. package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
  211. package/es/components/iho-chat/src/hooks/useVideo.d.ts +20 -1
  212. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  213. package/es/components/iho-chat/src/hooks/useWebSocket.d.ts +3 -0
  214. package/es/components/iho-chat/src/hooks/useWebSocket.js +1 -0
  215. package/es/components/iho-chat/src/types/index.d.ts +2 -6
  216. package/es/components/iho-chat/src/types/index.js +1 -1
  217. package/es/components/iho-chat/src/utils/chatSock.js +1 -1
  218. package/es/components/iho-chat/src/utils/index.d.ts +2 -0
  219. package/es/components/iho-chat/src/utils/index.js +1 -1
  220. package/es/components/iho-chat/style/index.css +1 -1
  221. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  222. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +1 -1
  223. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  224. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  225. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
  226. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  227. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  228. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  229. package/es/components/iho-table/src/utils/index.js +1 -1
  230. package/es/components/index.css +1 -1
  231. package/es/components/index.d.ts +2 -1
  232. package/es/components/index.js +1 -1
  233. package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -1
  234. package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
  235. package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -1
  236. package/es/components/map/src/Map.vue2.js +1 -1
  237. package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -1
  238. package/es/components/quick-search/index.d.ts +3 -1
  239. package/es/components/quick-search/src/index.vue.d.ts +3 -1
  240. package/es/components/quick-search/src/index.vue2.js +1 -1
  241. package/es/components/quick-search/style/index.css +1 -1
  242. package/es/components/recommend-search/src/components/BaseSearch.js +1 -1
  243. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +1 -1
  244. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +1 -1
  245. package/es/components/scale-view/index.d.ts +31 -0
  246. package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
  247. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  248. package/es/components/scale-view/src/components/NoData.vue2.js +1 -1
  249. package/es/components/scale-view/src/components/composables/choose-common.js +1 -1
  250. package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -1
  251. package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +9 -0
  252. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  253. package/es/components/scale-view/src/components/formitem/r-input.d.ts +9 -0
  254. package/es/components/scale-view/src/components/formitem/r-input.js +1 -1
  255. package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
  256. package/es/components/scale-view/src/components/formitem/r-radio.d.ts +9 -0
  257. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
  258. package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
  259. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
  260. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
  261. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  262. package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -1
  263. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
  264. package/es/components/scale-view/src/hooks/scaleview-props.js +1 -1
  265. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  266. package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
  267. package/es/components/scale-view/src/hooks/use-component.d.ts +72 -0
  268. package/es/components/scale-view/style/index.css +1 -1
  269. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  270. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  271. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  272. package/es/components/select-label/src/components/label-classify.vue2.js +1 -1
  273. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -1
  274. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
  275. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -1
  276. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  277. package/es/components/select-person/src/SelectPersonType.vue2.js +1 -1
  278. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +1 -1
  279. package/es/components/select-person/src/index.vue2.js +1 -1
  280. package/es/components/slider-tree/src/index.vue2.js +1 -1
  281. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
  282. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
  283. package/es/components/table-export-field/src/index.vue2.js +1 -1
  284. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -1
  285. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -1
  286. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -1
  287. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  288. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  289. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  290. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -1
  291. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -1
  292. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -1
  293. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
  294. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  295. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -1
  296. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -1
  297. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  298. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  299. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +1 -1
  300. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +1 -1
  301. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  302. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  303. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -1
  304. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +1 -1
  305. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -1
  306. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  307. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  308. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  309. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
  310. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -1
  311. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -1
  312. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
  313. package/es/shared/hooks/useLevelSearchCascader.js +1 -1
  314. package/es/shared/package.json.js +1 -1
  315. package/package.json +2 -2
  316. package/es/components/fabric-chart/src/hooks/temperature/useShadow.js +0 -1
  317. package/es/components/iho-chat/src/hooks/useSession.d.ts +0 -12
  318. package/es/components/iho-chat/src/hooks/useSession.js +0 -1
  319. package/es/components/iho-chat/src/hooks/useState.d.ts +0 -18
  320. package/es/components/iho-chat/src/hooks/useState.js +0 -1
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,reactive as t,ref as i,provide as l,toRef as n,openBlock as o,createElementBlock as s,createVNode as d,unref as r,withCtx as c,createElementVNode as p,createCommentVNode as u,Fragment as y,renderList as m,normalizeClass as f,toDisplayString as v,createBlock as g,withDirectives as h,createTextVNode as C,vShow as k}from"vue";import{useMessage as b,NSpin as A,NInput as w,NIcon as L,NButton as _,NSelect as U,NTooltip as N}from"naive-ui";import{CloseOutline as I,AddOutline as V,AddCircleSharp as x}from"@vicons/ionicons5";import D from"./ValueCfg.vue.js";import{DataTypeEnums as S,ConditionEnums as B}from"../../types/enums.js";import{useDisplayCategory as j}from"./hooks/useDisplayCategory.js";import{useFilterConditions as F}from"./hooks/useFilterConditions.js";import{conditionOptions as z}from"./helpers/options.js";import{InjectionClassifyFilterList as O}from"../../constants/index.js";const R={class:"searchConditionByApi_wrapper"},P={class:"class-filter-content"},q={key:0,class:"item-name"},E=p("span",{class:"label"},"筛选分类名称:",-1),T={key:1,class:"quickSearch-content"},J=p("span",{class:"label"},"父类名称:",-1),K=["onClick"],M=["onDblclick"],Q={class:"s-content"},G={key:2,class:"item-name"},H=p("span",{class:"label"}," 过滤条件: ",-1),W=p("span",null,"添加",-1),X={class:"select-item-list"},Y={class:"index-span"},Z=["onClick"];var $=e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:$,emit:ee}){const ae=e,te=b(),ie={class:"classify-fieldkey-popover"},le=a(),ne=t({className:"",displayCategory:"",filterConditions:[]}),oe=i(!1),se=i(),de=i();l(O,n(ne,"filterConditions"));const{State:re,isEnableAddDisplayCategory:ce,editDisplayCategory:pe,handleDisplayCategorySelect:ue,handleDisplayCategoryRemove:ye,handleDisplayCategoryAdd:me,handlerBlur:fe,initDisplayCategories:ve}=j(n(ne,"displayCategory"),{conditionList:ae.conditionList},te),{State:ge,paramOptions:he,addFilterCondition:Ce,delFilterCondition:ke,updateKey:be,updateCondition:Ae,getParamCfg:we,initFilterConditions:Le,getRawFilterConditions:_e}=F(n(ne,"filterConditions"),ae.searchFieldList,S.API);function Ue(){me((()=>{setTimeout((()=>{de.value&&de.value.focus()}),100)}))}function Ne(){ne.className="",ne.displayCategory="",ne.filterConditions=[]}async function Ie(){var e;try{if(Ne(),oe.value=!0,ve(le.displayCategoryList,ae.actionList_prop.displayCategory||void 0),ae.actionList_prop){ne.className=ae.actionList_prop.name,await Le(ae.tableId,null!=(e=ae.actionList_prop.conObj)?e:[]);ne.filterConditions.length<1&&he.value&&he.value.length>0&&Ce()}}finally{oe.value=!1}}return Ie(),$({handleInitConditions:Ie,saveAdd:function(){new Promise((e=>{ne.className||!ae.showItemName?0!==ne.filterConditions.length?ne.filterConditions.some((({key:e,condition:a,value:t,presetVal:i})=>!e||!a||a===B.EQUAL&&!t&&!i))?te.warning("请补充完整条件内容"):e(!0):te.warning("请至少添加一个条件"):te.warning("请输入分类名称")})).then((()=>{let e;var a;"edit"===ae.actionList_prop.from&&(a=ae.actionList_prop.sid,e=null==ae?void 0:ae.conditionList.find((e=>e.sid===a)));const t={displayCategory:ne.displayCategory,name:ne.className||"",conObj:_e()},i={id:e?e.sid:"",tableId:ae.tableId,setting:JSON.stringify(t)};ee("saveAdd",i,!1)}))},cancelSaveAdd:function(){Ne(),ee("cancelSaveAdd")},addAction:Ce,checkActionList:function(){return ne.filterConditions.every((e=>!e.field_key))}}),(a,t)=>(o(),s("div",R,[d(r(A),{show:oe.value},{default:c((()=>[p("div",P,[e.showItemName?(o(),s("div",q,[E,d(r(w),{value:ne.className,"onUpdate:value":t[0]||(t[0]=e=>ne.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):u("v-if",!0),e.showItemName?(o(),s("div",T,[J,(o(!0),s(y,null,m(r(re).displayCategories,((e,a)=>(o(),s("div",{class:"parent-name",key:a,onClick:a=>function(e){ue(e)}(e)},[e.disabled?(o(),s("div",{key:0,class:f(["edit-tag",{"edit-tag-select":e.value===ne.displayCategory&&e.disabled}]),onDblclick:a=>function(e){e.disabled=!1,setTimeout((()=>{se.value.length>0&&se.value[0].focus()}),100)}(e)},[p("div",Q,v(e.value),1),d(r(L),{component:r(I),class:"anticon-close",size:"20",onClick:t=>r(ye)(a,e)},null,8,["component","onClick"])],42,M)):(o(),g(r(w),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:se,class:"parent-input",style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":a=>e.value=a,maxlength:20},null,8,["disabled","onBlur","value","onUpdate:value"]))],8,K)))),128)),r(ce)?(o(),s(y,{key:0},[h(d(r(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:Ue},{default:c((()=>[d(r(L),{component:r(V),size:"20"},null,8,["component"]),C(" "+v("添加父类"))])),_:1},512),[[k,!r(re).showAdd]]),h(d(r(w),{ref_key:"parentInputAddRef",ref:de,class:"parent-input",value:r(re).addDisplayCategory,"onUpdate:value":t[1]||(t[1]=e=>r(re).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:r(fe),maxlength:20},null,8,["value","onBlur"]),[[k,r(re).showAdd]])],64)):u("v-if",!0)])):u("v-if",!0),e.hideAddBtn?u("v-if",!0):(o(),s("div",G,[H,p("span",{class:"addAction",onClick:t[2]||(t[2]=(...e)=>r(Ce)&&r(Ce)(...e)),style:{cursor:"pointer"}},[d(r(L),{component:r(x),class:"blue",size:"18"},null,8,["component"]),W])])),p("ul",X,[(o(!0),s(y,null,m(ne.filterConditions,((e,a)=>(o(),s("li",{key:a},[p("span",Y,v(a+1),1),u(" 选择 field_key "),d(r(U),{class:"form-item",placeholder:"请选择",value:e.key,"menu-props":ie,to:"body",filterable:"",options:r(he),"onUpdate:value":e=>r(be)(a,e)},null,8,["value","options","onUpdate:value"]),u(" 选择 关系 "),e.key?(o(),g(r(U),{key:0,class:"form-item",placeholder:"请选择",value:e.condition,to:"body",filterable:"",options:r(z),"onUpdate:value":e=>r(Ae)(a,e)},null,8,["value","options","onUpdate:value"])):u("v-if",!0),u(" 自定义 "),e.key&&e.condition&&e.condition!==r(B).NULL?(o(),g(D,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,presetVal:e.presetVal,"onUpdate:presetVal":a=>e.presetVal=a,isAccurate:e.isAccurateSearch,"onUpdate:isAccurate":a=>e.isAccurateSearch=a,"param-cfg":r(we)(e.key)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","isAccurate","onUpdate:isAccurate","param-cfg"])):u("v-if",!0),d(r(N),{title:"删除",trigger:"hover"},{trigger:c((()=>[p("i",{onClick:e=>r(ke)(a),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,Z)])),default:c((()=>[C(" 删除 ")])),_:2},1024)])))),128))])])])),_:1},8,["show"])]))}});export{$ as default};
1
+ import{createElementVNode as e,defineComponent as a,useAttrs as l,reactive as i,ref as n,provide as t,toRef as o,openBlock as s,createElementBlock as d,createVNode as r,unref as c,withCtx as u,createCommentVNode as p,Fragment as y,renderList as v,normalizeClass as g,toDisplayString as m,createBlock as f,withDirectives as w,createTextVNode as C,vShow as h}from"vue";import{useMessage as k,NSpin as L,NInput as b,NIcon as A,NButton as B,NSelect as _,NTooltip as U}from"naive-ui";import{CloseOutline as N,AddOutline as I,AddCircleSharp as V}from"@vicons/ionicons5";import x from"./ValueCfg.vue.js";import{ConditionEnums as D,DataTypeEnums as S}from"../../types/enums.js";import{useDisplayCategory as j}from"./hooks/useDisplayCategory.js";import{useFilterConditions as F}from"./hooks/useFilterConditions.js";import{conditionOptions as z}from"./helpers/options.js";import{InjectionClassifyFilterList as O}from"../../constants/index.js";var R;const P={class:"searchConditionByApi_wrapper"},q={class:"class-filter-content"},E={key:0,class:"item-name"},T=e("span",{class:"label"},"筛选分类名称:",-1),J={key:1,class:"quickSearch-content"},K=e("span",{class:"label"},"父类名称:",-1),M=["onClick"],Q=["onDblclick"],G={class:"s-content"},H={key:2,class:"item-name"},W=e("span",{class:"label"}," 过滤条件: ",-1),X=e("span",null,(null==(R=window.getLanguageByCode)?void 0:R.call(window,"10010.1.86"))||"添加",-1),Y={class:"select-item-list"},Z={class:"index-span"},$=["onClick"];var ee=a({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(a,{expose:R,emit:ee}){const ae=a,le=k(),ie={class:"classify-fieldkey-popover"},ne=l(),te=i({className:"",displayCategory:"",filterConditions:[]}),oe=n(!1),se=n(),de=n();t(O,o(te,"filterConditions"));const{State:re,isEnableAddDisplayCategory:ce,editDisplayCategory:ue,handleDisplayCategorySelect:pe,handleDisplayCategoryRemove:ye,handleDisplayCategoryAdd:ve,handlerBlur:ge,initDisplayCategories:me}=j(o(te,"displayCategory"),{conditionList:ae.conditionList},le),{State:fe,paramOptions:we,addFilterCondition:Ce,delFilterCondition:he,updateKey:ke,updateCondition:Le,getParamCfg:be,initFilterConditions:Ae,getRawFilterConditions:Be}=F(o(te,"filterConditions"),ae.searchFieldList,S.API);function _e(){ve((()=>{setTimeout((()=>{de.value&&de.value.focus()}),100)}))}function Ue(){te.className="",te.displayCategory="",te.filterConditions=[]}async function Ne(){var e;try{if(Ue(),oe.value=!0,me(ne.displayCategoryList,ae.actionList_prop.displayCategory||void 0),ae.actionList_prop){te.className=ae.actionList_prop.name,await Ae(ae.tableId,null!=(e=ae.actionList_prop.conObj)?e:[]);te.filterConditions.length<1&&we.value&&we.value.length>0&&Ce()}}finally{oe.value=!1}}return Ne(),R({handleInitConditions:Ne,saveAdd:function(){new Promise((e=>{var a,l,i;te.className||!ae.showItemName?0!==te.filterConditions.length?te.filterConditions.some((({key:e,condition:a,value:l,presetVal:i})=>!e||!a||a===D.EQUAL&&!l&&!i))?le.warning((null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.365"))||"请补充完整条件内容"):e(!0):le.warning((null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.364"))||"请至少添加一个条件"):le.warning((null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.360"))||"请输入分类名称")})).then((()=>{let e;var a;"edit"===ae.actionList_prop.from&&(a=ae.actionList_prop.sid,e=null==ae?void 0:ae.conditionList.find((e=>e.sid===a)));const l={displayCategory:te.displayCategory,name:te.className||"",conObj:Be()},i={id:e?e.sid:"",tableId:ae.tableId,setting:JSON.stringify(l)};ee("saveAdd",i,!1)}))},cancelSaveAdd:function(){Ue(),ee("cancelSaveAdd")},addAction:Ce,checkActionList:function(){return te.filterConditions.every((e=>!e.field_key))}}),(l,i)=>(s(),d("div",P,[r(c(L),{show:oe.value},{default:u((()=>{var l;return[e("div",q,[a.showItemName?(s(),d("div",E,[T,r(c(b),{value:te.className,"onUpdate:value":i[0]||(i[0]=e=>te.className=e),placeholder:(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.360"))||"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):p("v-if",!0),a.showItemName?(s(),d("div",J,[K,(s(!0),d(y,null,v(c(re).displayCategories,((a,l)=>(s(),d("div",{class:"parent-name",key:l,onClick:e=>function(e){pe(e)}(a)},[a.disabled?(s(),d("div",{key:0,class:g(["edit-tag",{"edit-tag-select":a.value===te.displayCategory&&a.disabled}]),onDblclick:e=>function(e){e.disabled=!1,setTimeout((()=>{se.value.length>0&&se.value[0].focus()}),100)}(a)},[e("div",G,m(a.value),1),r(c(A),{component:c(N),class:"anticon-close",size:"20",onClick:e=>c(ye)(l,a)},null,8,["component","onClick"])],42,Q)):(s(),f(c(b),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:se,class:"parent-input",style:{width:"100px"},disabled:a.disabled,onBlur:()=>a.disabled=!0,value:a.value,"onUpdate:value":e=>a.value=e,maxlength:20},null,8,["disabled","onBlur","value","onUpdate:value"]))],8,M)))),128)),c(ce)?(s(),d(y,{key:0},[w(r(c(B),{class:"ant-btn",icon:"plus",dashed:"",onClick:_e},{default:u((()=>{var e;return[r(c(A),{component:c(I),size:"20"},null,8,["component"]),C(" "+m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.362"))||"添加父类"))]})),_:1},512),[[h,!c(re).showAdd]]),w(r(c(b),{ref_key:"parentInputAddRef",ref:de,class:"parent-input",value:c(re).addDisplayCategory,"onUpdate:value":i[1]||(i[1]=e=>c(re).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:c(ge),maxlength:20},null,8,["value","onBlur"]),[[h,c(re).showAdd]])],64)):p("v-if",!0)])):p("v-if",!0),a.hideAddBtn?p("v-if",!0):(s(),d("div",H,[W,e("span",{class:"addAction",onClick:i[2]||(i[2]=(...e)=>c(Ce)&&c(Ce)(...e)),style:{cursor:"pointer"}},[r(c(A),{component:c(V),class:"blue",size:"18"},null,8,["component"]),X])])),e("ul",Y,[(s(!0),d(y,null,v(te.filterConditions,((a,l)=>{var i,n,t,o;return s(),d("li",{key:l},[e("span",Z,m(l+1),1),p(" 选择 field_key "),r(c(_),{class:"form-item",placeholder:(null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.147"))||"请选择",value:a.key,"menu-props":ie,to:"body",filterable:"",options:c(we),"onUpdate:value":e=>c(ke)(l,e)},null,8,["value","options","onUpdate:value"]),p(" 选择 关系 "),a.key?(s(),f(c(_),{key:0,class:"form-item",placeholder:(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.147"))||"请选择",value:a.condition,to:"body",filterable:"",options:c(z),"onUpdate:value":e=>c(Le)(l,e)},null,8,["value","options","onUpdate:value"])):p("v-if",!0),p((null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.376"))||"自定义"),a.key&&a.condition&&a.condition!==c(D).NULL?(s(),f(x,{key:1,modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,presetVal:a.presetVal,"onUpdate:presetVal":e=>a.presetVal=e,isAccurate:a.isAccurateSearch,"onUpdate:isAccurate":e=>a.isAccurateSearch=e,"param-cfg":c(be)(a.key)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","isAccurate","onUpdate:isAccurate","param-cfg"])):p("v-if",!0),r(c(U),{title:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.215"))||"删除",trigger:"hover"},{trigger:u((()=>[e("i",{onClick:e=>c(he)(l),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,$)])),default:u((()=>{var e;return[C((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.215"))||"删除")]})),_:2},1024)])})),128))])])]})),_:1},8,["show"])]))}});export{ee as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as u,createElementBlock as n,unref as r,createBlock as o,createCommentVNode as i,normalizeClass as d,withCtx as p,createTextVNode as m,toDisplayString as v}from"vue";import{NButton as c}from"naive-ui";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as g}from"../../../types/enums.js";import{dateDisabledCollect as b,setDateDisabled as h,setTimeDisabled as k}from"../helpers/dateDisabled.js";import C from"./DateQuickBtn/index.vue.js";const Y={class:"render-widget-date-range"};var D=e({__name:"DateInner",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""},unit:{type:String,default:""}},emits:["update:value","update:unit"],setup(e,{emit:D}){const M=e,S=t(),F=t(!1),j=a((()=>{let e="";switch(M.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),T=a((()=>{let e="";switch(M.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e})),w=a((()=>M.unit)),_=a((()=>{var e;return null==(e=M.componentCfg)?void 0:e.widgetCfg.optionSetting})),x=a((()=>_.value!==g.SELECT_TIME)),B=a((()=>b.curTime));function E(){x.value&&(F.value=!F.value)}function V(e){D("update:value",e)}function H(e){D("update:unit",e)}function I(e){S.value=e;const t=e?f(e).format(j.value):e;D("update:value",t),D("update:unit","")}function O(e){return h(e,_.value)}function Q(e){return k(e,_.value)}return l((()=>M.value),(e=>{if(e&&y(e))return w.value||(F.value=!0),void(S.value=f(e).valueOf());S.value=null}),{immediate:!0}),x.value||(F.value=!0),(t,a)=>(u(),n("div",Y,[r(x)&&!F.value?(u(),o(C,{key:0,componentCfg:e.componentCfg,type:e.type,dateFormat:r(j),radioValue:r(w),onClickQuickBtn:V,onChangeRadioValue:H},null,8,["componentCfg","type","dateFormat","radioValue"])):i("v-if",!0),r(x)?(u(),o(r(c),{key:1,secondary:"",class:d(F.value?"select-date-right":"select-date-left"),onClick:E},{default:p((()=>[m(v(r(T)),1)])),_:1},8,["class"])):i("v-if",!0),!r(x)||F.value?(u(),o(r(s),{key:2,to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:S.value,defaultTime:r(B),"is-date-disabled":O,"is-time-disabled":Q,"onUpdate:value":I},null,8,["type","clearable","valueFormat","placeholder","value","defaultTime"])):i("v-if",!0)]))}});export{D as default};
1
+ import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as u,createElementBlock as n,unref as o,createBlock as i,createCommentVNode as r,normalizeClass as d,withCtx as p,createTextVNode as v,toDisplayString as c}from"vue";import{NButton as m}from"naive-ui";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as g}from"../../../types/enums.js";import{dateDisabledCollect as w,setDateDisabled as C,setTimeDisabled as b}from"../helpers/dateDisabled.js";import h from"./DateQuickBtn/index.vue.js";var k;const Y={class:"render-widget-date-range"};var D=e({__name:"DateInner",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:(null==(k=window.getLanguageByCode)?void 0:k.call(window,"10010.1.383"))||"请输入"},value:{type:String,default:""},unit:{type:String,default:""}},emits:["update:value","update:unit"],setup(e,{emit:k}){const D=e,M=t(),S=t(!1),B=a((()=>{let e="";switch(D.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),F=a((()=>{var e,t;let a="";switch(D.type){case"date":a=(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.384"))||"选择日期";break;case"datetime":a=(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.385"))||"选择时间"}return a})),j=a((()=>D.unit)),T=a((()=>{var e;return null==(e=D.componentCfg)?void 0:e.widgetCfg.optionSetting})),L=a((()=>T.value!==g.SELECT_TIME)),_=a((()=>w.curTime));function x(){L.value&&(S.value=!S.value)}function E(e){k("update:value",e)}function V(e){k("update:unit",e)}function H(e){M.value=e;const t=e?f(e).format(B.value):e;k("update:value",t),k("update:unit","")}function I(e){return C(e,T.value)}function O(e){return b(e,T.value)}return l((()=>D.value),(e=>{if(e&&y(e))return j.value||(S.value=!0),void(M.value=f(e).valueOf());M.value=null}),{immediate:!0}),L.value||(S.value=!0),(t,a)=>(u(),n("div",Y,[o(L)&&!S.value?(u(),i(h,{key:0,componentCfg:e.componentCfg,type:e.type,dateFormat:o(B),radioValue:o(j),onClickQuickBtn:E,onChangeRadioValue:V},null,8,["componentCfg","type","dateFormat","radioValue"])):r("v-if",!0),o(L)?(u(),i(o(m),{key:1,secondary:"",class:d(S.value?"select-date-right":"select-date-left"),onClick:x},{default:p((()=>[v(c(o(F)),1)])),_:1},8,["class"])):r("v-if",!0),!o(L)||S.value?(u(),i(o(s),{key:2,to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:M.value,defaultTime:o(_),"is-date-disabled":I,"is-time-disabled":O,"onUpdate:value":H},null,8,["type","clearable","valueFormat","placeholder","value","defaultTime"])):r("v-if",!0)]))}});export{D as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as r,createBlock as o,unref as u}from"vue";import p from"../../../../../date-picker/index.js";import n from"moment";import{isString as i}from"lodash-es";import{WidgetOptionEnums as m}from"../../../types/enums.js";import{DateExtraOptions as d,DateExtraMap as s}from"../helpers/dateExtraMap.js";import{setDateDisabled as v,setTimeDisabled as f}from"../helpers/dateDisabled.js";import{presetValToTimestamp as c}from"../helpers/presetValToTimestamp.js";var y=e({__name:"DateOut",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:y}){const g=e,h=t(),b=t(),Y=a((()=>{let e="";switch(g.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),M=a((()=>{var e;return null==(e=g.componentCfg)?void 0:e.widgetCfg.optionSetting}));function j(e){h.value=e;const t=e?n(e).format(Y.value):e;y("update:value",t)}function D(e){return v(e,M.value)}function C(e){return f(e,M.value)}return l((()=>g.value),(e=>{e&&i(e)?h.value=n(e).valueOf():h.value=null}),{immediate:!0}),function(){var e,t;const{originType:a}=null==(e=g.componentCfg)?void 0:e.widgetCfg,l=`${a}_${M.value||m.ALL}`,r=null!=(t=d[s[l]])?t:[];let o={};r.forEach((({label:e,value:t})=>{const a=c(t,Y.value,!0);a&&(o[e]=a.valueOf())})),b.value=o}(),(t,a)=>(r(),o(u(p),{to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:h.value,"default-time":"00:00:00","is-date-disabled":D,"is-time-disabled":C,shortcuts:b.value,"onUpdate:value":j},null,8,["type","clearable","valueFormat","placeholder","value","shortcuts"]))}});export{y as default};
1
+ import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as o,createBlock as r,unref as u}from"vue";import n from"../../../../../date-picker/index.js";import i from"moment";import{isString as p}from"lodash-es";import{WidgetOptionEnums as d}from"../../../types/enums.js";import{DateExtraOptions as m,DateExtraMap as s}from"../helpers/dateExtraMap.js";import{setDateDisabled as v,setTimeDisabled as c}from"../helpers/dateDisabled.js";import{presetValToTimestamp as f}from"../helpers/presetValToTimestamp.js";var y,g=e({__name:"DateOut",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:(null==(y=window.getLanguageByCode)?void 0:y.call(window,"10010.1.383"))||"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:y}){const g=e,h=t(),b=t(),Y=a((()=>{let e="";switch(g.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),w=a((()=>{var e;return null==(e=g.componentCfg)?void 0:e.widgetCfg.optionSetting}));function M(e){h.value=e;const t=e?i(e).format(Y.value):e;y("update:value",t)}function j(e){return v(e,w.value)}function C(e){return c(e,w.value)}return l((()=>g.value),(e=>{e&&p(e)?h.value=i(e).valueOf():h.value=null}),{immediate:!0}),function(){var e,t;const{originType:a}=null==(e=g.componentCfg)?void 0:e.widgetCfg,l=`${a}_${w.value||d.ALL}`,o=null!=(t=m[s[l]])?t:[];let r={};o.forEach((({label:e,value:t})=>{const a=f(t,Y.value,!0);a&&(r[e]=a.valueOf())})),b.value=r}(),(t,a)=>(o(),r(u(n),{to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:h.value,"default-time":"00:00:00","is-date-disabled":j,"is-time-disabled":C,shortcuts:b.value,"onUpdate:value":M},null,8,["type","clearable","valueFormat","placeholder","value","shortcuts"]))}});export{g as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as u,createElementBlock as r,unref as n,createBlock as i,createCommentVNode as d,normalizeClass as o,withCtx as v,createTextVNode as c,toDisplayString as m,createVNode as s,createElementVNode as p}from"vue";import{NButton as f}from"naive-ui";import y from"../../../../../date-picker/index.js";import g from"moment";import{isString as b}from"lodash-es";import{WidgetOptionEnums as h}from"../../../types/enums.js";import{dateDisabledCollect as k,isStartDateRangeDisabled as C,isTimeStartRangeDisabled as F,isEndDateRangeDisabled as M,isTimeEndRangeDisabled as S}from"../helpers/dateDisabled.js";import T from"./DateQuickBtn/index.vue.js";const Y={class:"render-widget-date-range"},D={key:2,class:"date-detail-range"},E=p("span",{class:"divider"},null,-1);var _=e({__name:"DateRangeInner",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""},unit:{type:String,default:""}},emits:["update:value","update:unit"],setup(e,{emit:p}){const _=e,j=a(!1),w=a(),P=a(),I=t((()=>_.unit)),U=t((()=>{var e;return null==(e=_.componentCfg)?void 0:e.widgetCfg.optionSetting})),x=t((()=>U.value!==h.SELECT_TIME)),B=t((()=>U.value===h.PAST_TIME)),O=t((()=>U.value===h.FUTURE_TIME)),R=t((()=>{let e="";switch(_.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),V=t((()=>{let e="";switch(_.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e})),H=t((()=>O.value?k.curTime:"00:00:00")),Q=t((()=>B.value?k.curTime:"23:59:59"));function $(e){p("update:value",e)}function A(e){p("update:unit",e)}function L(){x.value&&(j.value=!j.value)}function q(e,a){switch(a){case"start":w.value=e;break;case"end":P.value=e}const t=w.value?g(w.value).format(R.value):null,l=P.value?g(P.value).format(R.value):null;p("update:value",t||l?`${null!=t?t:""} ~ ${null!=l?l:""}`:""),p("update:unit","")}function z(e){return C(e,U.value,P.value)}function G(e){return F(e,U.value,P.value)}function J(e){return M(e,U.value,w.value)}function K(e){return S(e,U.value,w.value)}return l((()=>_.value),(e=>{if(e&&b(e)&&e.includes("~")){I.value||(j.value=!0);const[a,t]=e.split("~");return a.trim()&&(w.value=g(a.trim()).valueOf()),void(t.trim()&&(P.value=g(t.trim()).valueOf()))}w.value=P.value=null,p("update:unit","")}),{immediate:!0}),x.value||(j.value=!0),(a,t)=>(u(),r("div",Y,[n(x)&&!j.value?(u(),i(T,{key:0,componentCfg:e.componentCfg,type:e.type,dateFormat:n(R),radioValue:n(I),onClickQuickBtn:$,onChangeRadioValue:A},null,8,["componentCfg","type","dateFormat","radioValue"])):d("v-if",!0),n(x)?(u(),i(n(f),{key:1,secondary:"",class:o(j.value?"select-date-right":"select-date-left"),onClick:L},{default:v((()=>[c(m(n(V)),1)])),_:1},8,["class"])):d("v-if",!0),d(' default-time="23:59:59" '),!n(x)||j.value?(u(),r("div",D,[s(n(y),{type:e.type,to:"body","default-time":n(H),clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:w.value,"is-date-disabled":z,"is-time-disabled":G,"onUpdate:value":t[0]||(t[0]=e=>q(e,"start"))},null,8,["type","default-time","clearable","valueFormat","placeholder","value"]),E,s(n(y),{type:e.type,to:"body","default-time":n(Q),clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:P.value,"is-date-disabled":J,"is-time-disabled":K,"onUpdate:value":t[1]||(t[1]=e=>q(e,"end"))},null,8,["type","default-time","clearable","valueFormat","placeholder","value"])])):d("v-if",!0)]))}});export{_ as default};
1
+ import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as u,createElementBlock as n,unref as i,createBlock as d,createCommentVNode as r,normalizeClass as o,withCtx as v,createTextVNode as c,toDisplayString as m,createVNode as s,createElementVNode as p}from"vue";import{NButton as f}from"naive-ui";import y from"../../../../../date-picker/index.js";import g from"moment";import{isString as w}from"lodash-es";import{WidgetOptionEnums as b}from"../../../types/enums.js";import{dateDisabledCollect as h,isStartDateRangeDisabled as C,isTimeStartRangeDisabled as k,isEndDateRangeDisabled as F,isTimeEndRangeDisabled as M}from"../helpers/dateDisabled.js";import S from"./DateQuickBtn/index.vue.js";var T,Y;const B={class:"render-widget-date-range"},D={key:2,class:"date-detail-range"},E=p("span",{class:"divider"},null,-1);var _=e({__name:"DateRangeInner",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:(null==(T=window.getLanguageByCode)?void 0:T.call(window,"10010.1.386"))||"起始"},endPlaceholder:{type:String,default:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.387"))||"截止"},value:{type:String,default:""},unit:{type:String,default:""}},emits:["update:value","update:unit"],setup(e,{emit:p}){const T=e,Y=a(!1),_=a(),j=a(),L=t((()=>T.unit)),P=t((()=>{var e;return null==(e=T.componentCfg)?void 0:e.widgetCfg.optionSetting})),I=t((()=>P.value!==b.SELECT_TIME)),U=t((()=>P.value===b.PAST_TIME)),x=t((()=>P.value===b.FUTURE_TIME)),O=t((()=>{let e="";switch(T.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),R=t((()=>{var e,a;let t="";switch(T.type){case"date":t=(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.384"))||"选择日期";break;case"datetime":t=(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.385"))||"选择时间"}return t})),V=t((()=>x.value?h.curTime:"00:00:00")),H=t((()=>U.value?h.curTime:"23:59:59"));function Q(e){p("update:value",e)}function $(e){p("update:unit",e)}function A(){I.value&&(Y.value=!Y.value)}function q(e,a){switch(a){case"start":_.value=e;break;case"end":j.value=e}const t=_.value?g(_.value).format(O.value):null,l=j.value?g(j.value).format(O.value):null;p("update:value",t||l?`${null!=t?t:""} ~ ${null!=l?l:""}`:""),p("update:unit","")}function z(e){return C(e,P.value,j.value)}function G(e){return k(e,P.value,j.value)}function J(e){return F(e,P.value,_.value)}function K(e){return M(e,P.value,_.value)}return l((()=>T.value),(e=>{if(e&&w(e)&&e.includes("~")){L.value||(Y.value=!0);const[a,t]=e.split("~");return a.trim()&&(_.value=g(a.trim()).valueOf()),void(t.trim()&&(j.value=g(t.trim()).valueOf()))}_.value=j.value=null,p("update:unit","")}),{immediate:!0}),I.value||(Y.value=!0),(a,t)=>(u(),n("div",B,[i(I)&&!Y.value?(u(),d(S,{key:0,componentCfg:e.componentCfg,type:e.type,dateFormat:i(O),radioValue:i(L),onClickQuickBtn:Q,onChangeRadioValue:$},null,8,["componentCfg","type","dateFormat","radioValue"])):r("v-if",!0),i(I)?(u(),d(i(f),{key:1,secondary:"",class:o(Y.value?"select-date-right":"select-date-left"),onClick:A},{default:v((()=>[c(m(i(R)),1)])),_:1},8,["class"])):r("v-if",!0),r(' default-time="23:59:59" '),!i(I)||Y.value?(u(),n("div",D,[s(i(y),{type:e.type,to:"body","default-time":i(V),clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:_.value,"is-date-disabled":z,"is-time-disabled":G,"onUpdate:value":t[0]||(t[0]=e=>q(e,"start"))},null,8,["type","default-time","clearable","valueFormat","placeholder","value"]),E,s(i(y),{type:e.type,to:"body","default-time":i(H),clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:j.value,"is-date-disabled":J,"is-time-disabled":K,"onUpdate:value":t[1]||(t[1]=e=>q(e,"end"))},null,8,["type","default-time","clearable","valueFormat","placeholder","value"])])):r("v-if",!0)]))}});export{_ as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as r,createBlock as o,unref as u}from"vue";import n from"../../../../../date-picker/index.js";import i from"moment";import{isString as s}from"lodash-es";import{WidgetOptionEnums as d}from"../../../types/enums.js";import{DateExtraOptions as p,DateExtraMap as m}from"../helpers/dateExtraMap.js";import{formatDateRangeInfo as c}from"../helpers/presetValToTimestamp.js";import{setDateDisabled as f,setTimeDisabled as v}from"../helpers/dateDisabled.js";var g=e({__name:"DateRangeOut",props:{type:{type:String,default:"daterange"},clearable:{type:Boolean,default:!1},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},componentCfg:{type:Object,default:()=>({})},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:g}){const h=e,y=t(),b=t(),P=a((()=>{let e="";switch(h.type){case"daterange":e="YYYY-MM-DD";break;case"datetimerange":e="YYYY-MM-DD HH:mm:ss"}return e})),Y=a((()=>{var e;return null==(e=h.componentCfg)?void 0:e.widgetCfg.optionSetting}));function j(e){if(e){const[t,a]=e,l=`${i(t).format(P.value)} ~ ${i(a).format(P.value)}`;g("update:value",l)}else g("update:value",e)}function D(e){return f(e,Y.value)}function O(e){return v(e,Y.value)}return l((()=>h.value),(e=>{if(e&&s(e)&&e.includes("~")){const[t,a]=e.split("~");y.value=[i(t.trim()).valueOf(),i(a.trim()).valueOf()]}else y.value=null}),{immediate:!0}),function(){var e,t;const{originType:a}=null==(e=h.componentCfg)?void 0:e.widgetCfg,l=`${a}_${Y.value||d.ALL}_RANGE`,r=null!=(t=p[m[l]])?t:[];let o={};r.forEach((({label:e,value:t})=>{const a=c(t,P.value,Y.value,!0);if(a){const[t,l]=a;o[e]=[t.valueOf(),l.valueOf()]}})),b.value=o}(),(t,a)=>(r(),o(u(n),{to:"body",type:e.type,clearable:e.clearable,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,value:y.value,"is-date-disabled":D,"is-time-disabled":O,shortcuts:b.value,"onUpdate:value":j},null,8,["type","clearable","startPlaceholder","endPlaceholder","value","shortcuts"]))}});export{g as default};
1
+ import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as r,createBlock as o,unref as n}from"vue";import u from"../../../../../date-picker/index.js";import d from"moment";import{isString as i}from"lodash-es";import{WidgetOptionEnums as s}from"../../../types/enums.js";import{DateExtraOptions as p,DateExtraMap as m}from"../helpers/dateExtraMap.js";import{formatDateRangeInfo as c}from"../helpers/presetValToTimestamp.js";import{setDateDisabled as f,setTimeDisabled as v}from"../helpers/dateDisabled.js";var g,h,y=e({__name:"DateRangeOut",props:{type:{type:String,default:"daterange"},clearable:{type:Boolean,default:!1},startPlaceholder:{type:String,default:(null==(g=window.getLanguageByCode)?void 0:g.call(window,"10010.1.386"))||"起始"},endPlaceholder:{type:String,default:(null==(h=window.getLanguageByCode)?void 0:h.call(window,"10010.1.387"))||"截止"},componentCfg:{type:Object,default:()=>({})},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:g}){const h=e,y=t(),b=t(),w=a((()=>{let e="";switch(h.type){case"daterange":e="YYYY-MM-DD";break;case"datetimerange":e="YYYY-MM-DD HH:mm:ss"}return e})),P=a((()=>{var e;return null==(e=h.componentCfg)?void 0:e.widgetCfg.optionSetting}));function Y(e){if(e){const[t,a]=e,l=`${d(t).format(w.value)} ~ ${d(a).format(w.value)}`;g("update:value",l)}else g("update:value",e)}function C(e){return f(e,P.value)}function j(e){return v(e,P.value)}return l((()=>h.value),(e=>{if(e&&i(e)&&e.includes("~")){const[t,a]=e.split("~");y.value=[d(t.trim()).valueOf(),d(a.trim()).valueOf()]}else y.value=null}),{immediate:!0}),function(){var e,t;const{originType:a}=null==(e=h.componentCfg)?void 0:e.widgetCfg,l=`${a}_${P.value||s.ALL}_RANGE`,r=null!=(t=p[m[l]])?t:[];let o={};r.forEach((({label:e,value:t})=>{const a=c(t,w.value,P.value,!0);if(a){const[t,l]=a;o[e]=[t.valueOf(),l.valueOf()]}})),b.value=o}(),(t,a)=>(r(),o(n(u),{to:"body",type:e.type,clearable:e.clearable,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,value:y.value,"is-date-disabled":C,"is-time-disabled":j,shortcuts:b.value,"onUpdate:value":Y},null,8,["type","clearable","startPlaceholder","endPlaceholder","value","shortcuts"]))}});export{y as default};
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,computed as a,openBlock as u,createBlock as l,unref as c,mergeProps as r,isRef as p,createSlots as i,withCtx as n,createVNode as o,createTextVNode as d}from"vue";import{NInput as v,NCheckbox as s}from"naive-ui";var f=e({__name:"InputCustom",props:{componentCfg:{type:Object},value:{type:String,default:""},isAccurateSearchVal:{type:Boolean,default:!1}},emits:["update:value","update:isAccurate"],setup(e,{emit:f}){const m=e,h=t(),y=a({set(e){f("update:value",e)},get:()=>m.value}),g=a({set(e){f("update:isAccurate",e)},get:()=>m.isAccurateSearchVal}),k=a((()=>{var e;return(null==(e=h.accurateSearch)?void 0:e.switchEnable)&&1===h.filterExplicit}));return(e,t)=>(u(),l(c(v),r(c(h),{value:c(y),"onUpdate:value":t[1]||(t[1]=e=>p(y)?y.value=e:null),type:"text"}),i({_:2},[c(k)?{name:"prefix",fn:n((()=>[o(c(s),{checked:c(g),"onUpdate:checked":t[0]||(t[0]=e=>p(g)?g.value=e:null)},{default:n((()=>[d("精确查询")])),_:1},8,["checked"])])),key:"0"}:void 0]),1040,["value"]))}});export{f as default};
1
+ import{defineComponent as e,useAttrs as t,computed as a,openBlock as u,createBlock as l,unref as r,mergeProps as c,isRef as n,createSlots as i,withCtx as o,createVNode as p,createTextVNode as d}from"vue";import{NInput as v,NCheckbox as s}from"naive-ui";var f=e({__name:"InputCustom",props:{componentCfg:{type:Object},value:{type:String,default:""},isAccurateSearchVal:{type:Boolean,default:!1}},emits:["update:value","update:isAccurate"],setup(e,{emit:f}){const m=e,g=t(),h=a({set(e){f("update:value",e)},get:()=>m.value}),y=a({set(e){f("update:isAccurate",e)},get:()=>m.isAccurateSearchVal}),w=a((()=>{var e;return(null==(e=g.accurateSearch)?void 0:e.switchEnable)&&1===g.filterExplicit}));return(e,t)=>(u(),l(r(v),c(r(g),{value:r(h),"onUpdate:value":t[1]||(t[1]=e=>n(h)?h.value=e:null),type:"text"}),i({_:2},[r(w)?{name:"prefix",fn:o((()=>[p(r(s),{checked:r(y),"onUpdate:checked":t[0]||(t[0]=e=>n(y)?y.value=e:null)},{default:o((()=>{var e;return[d((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.370"))||"精确查询")]})),_:1},8,["checked"])])),key:"0"}:void 0]),1040,["value"]))}});export{f as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,watch as t,openBlock as a,createBlock as u,unref as r,withCtx as n,createVNode as i,createElementVNode as d}from"vue";import{NInputGroup as o,NInputNumber as s}from"naive-ui";import{isString as m}from"lodash-es";const p=d("span",{class:"divider"}," ~ ",-1);var v=e({__name:"InputNumberGroup",props:{startPlaceholder:{type:String,default:"请输入"},endPlaceholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:d}){const v=e,c=l(),h=l();function f(e,l){var t,a;let u="";switch(l){case"startNumber":u=`${null!=e?e:""} ~ ${null!=(t=h.value)?t:""}`;break;case"endNumber":u=`${null!=(a=c.value)?a:""} ~ ${null!=e?e:""}`}const r=u.split(" ~ ").some((e=>e.trim()));d("update:value",r?u:"")}return t((()=>v.value),(e=>{if(c.value=h.value=null,e&&m(e)&&e.includes("~")){const[l,t]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(t.trim()&&(h.value=Number(t.trim())))}}),{immediate:!0}),(l,t)=>(a(),u(r(o),{class:"render-widget-input-number-group"},{default:n((()=>[i(r(s),{style:{minWidth:"88px"},placeholder:e.startPlaceholder,value:c.value,"onUpdate:value":t[0]||(t[0]=e=>f(e,"startNumber"))},null,8,["placeholder","value"]),p,i(r(s),{style:{minWidth:"88px"},placeholder:e.endPlaceholder,value:h.value,"onUpdate:value":t[1]||(t[1]=e=>f(e,"endNumber"))},null,8,["placeholder","value"])])),_:1}))}});export{v as default};
1
+ import{defineComponent as e,ref as l,watch as a,openBlock as t,createBlock as u,unref as r,withCtx as n,createVNode as d,createElementVNode as i}from"vue";import{NInputGroup as o,NInputNumber as s}from"naive-ui";import{isString as m}from"lodash-es";var p,v;const c=i("span",{class:"divider"}," ~ ",-1);var h=e({__name:"InputNumberGroup",props:{startPlaceholder:{type:String,default:(null==(p=window.getLanguageByCode)?void 0:p.call(window,"10010.1.383"))||"请输入"},endPlaceholder:{type:String,default:(null==(v=window.getLanguageByCode)?void 0:v.call(window,"10010.1.383"))||"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:i}){const p=e,v=l(),h=l();function g(e,l){var a,t;let u="";switch(l){case"startNumber":u=`${null!=e?e:""} ~ ${null!=(a=h.value)?a:""}`;break;case"endNumber":u=`${null!=(t=v.value)?t:""} ~ ${null!=e?e:""}`}const r=u.split(" ~ ").some((e=>e.trim()));i("update:value",r?u:"")}return a((()=>p.value),(e=>{if(v.value=h.value=null,e&&m(e)&&e.includes("~")){const[l,a]=e.split("~");return l.trim()&&(v.value=Number(l.trim())),void(a.trim()&&(h.value=Number(a.trim())))}}),{immediate:!0}),(l,a)=>(t(),u(r(o),{class:"render-widget-input-number-group"},{default:n((()=>[d(r(s),{style:{minWidth:"88px"},placeholder:e.startPlaceholder,value:v.value,"onUpdate:value":a[0]||(a[0]=e=>g(e,"startNumber"))},null,8,["placeholder","value"]),c,d(r(s),{style:{minWidth:"88px"},placeholder:e.endPlaceholder,value:h.value,"onUpdate:value":a[1]||(a[1]=e=>g(e,"endNumber"))},null,8,["placeholder","value"])])),_:1}))}});export{h as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,inject as t,watch as a,computed as o,openBlock as s,createElementBlock as n,Fragment as i,renderList as c,unref as r,createElementVNode as d,toDisplayString as u,normalizeClass as p,withDirectives as f,createBlock as m,normalizeStyle as b,withCtx as v,createVNode as h,withModifiers as y,createCommentVNode as g}from"vue";import{useMessage as k,NTag as S,NTooltip as w,NIcon as C}from"naive-ui";import{ChevronUpCircleOutline as x,ChevronDownCircleOutline as U}from"@vicons/ionicons5";import L from"../../../directive/resize.js";import j from"../../../hooks/useAsyncData.js";import{InjectionFilterApiConfig as T}from"../../../constants/index.js";import{isString as B}from"lodash-es";const _={class:"label-attr-filter-container"},z={class:"edit-f-label"},D={class:"label-f-content"},I={key:0,class:"label-f-unfold-btn"},A=["onClick"],H=d("span",null,"收起",-1),N=d("span",null,"展开",-1);var O=e({__name:"LabelInner",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:O}){const $=e,{getDynamicLabelData:q}=j(),E=k(),F="rgb(85, 133, 245)",G=l([]),J=l([]),K=t(T);a((()=>$.value),(e=>{const l=e&&B(e)?e.split("|#|"):[];G.value=l}),{immediate:!0});const M=o((()=>J.value&&J.value.length>0?J.value.map((e=>(e.labelList.map((e=>{e.isSelect=G.value.includes(e.labelShowText)})),e))):[])),P=e=>e.isSelect?{background:e.backgroundColor||F,borderColor:e.backgroundColor||F}:{};return(async()=>{try{const{widgetCfg:e={}}=$.componentCfg,{classifyStr:l=""}=e;let t=await q({classifyStr:l},K);if(t){const{list:e=[]}=t;J.value=e}}catch(e){E.error(`获取标签数据请求失败:${e}`),console.log(e)}})(),(e,l)=>(s(),n("div",_,[(s(!0),n(i,null,c(r(M),(e=>(s(),n("div",{class:"edit-labels-content",key:e.classifyId},[d("span",z,u(e.classifyName)+":",1),d("div",{class:p(["edit-f-content",{"label-select-height":!e.isUnfold&&e.labelList&&e.isShowBtn}])},[f((s(),n("div",D,[(s(!0),n(i,null,c(e.labelList,(e=>(s(),m(r(S),{checkable:"",key:e.labelCode,checked:e.isSelect,"onUpdate:checked":l=>((e,l)=>{if(l.isSelect=e,e)G.value.push(l.labelShowText);else{const e=G.value.findIndex((e=>e===l.labelShowText));e>-1&&G.value.splice(e,1)}O("update:value",G.value.join("|#|"))})(l,e),style:b(P(e))},{default:v((()=>[h(r(w),{placement:"top-start",duration:0},{trigger:v((()=>[d("span",null,u(e.labelShowText),1)])),default:v((()=>[d("span",null,u(e.labelShowText),1)])),_:2},1024)])),_:2},1032,["checked","onUpdate:checked","style"])))),128))])),[[r(L),l=>((e,l)=>{let t=e.offsetHeight||0;t&&(t>80?l.isShowBtn=!0:(l.isShowBtn=!1,l.isUnfold=!1))})(l,e)]])],2),e.labelList&&e.isShowBtn?(s(),n("div",I,[d("span",{class:"operate-btn",onClick:y((l=>(e=>{e.isUnfold=!e.isUnfold})(e)),["stop"])},[e.isUnfold?(s(),n(i,{key:0},[H,h(r(C),{component:r(x),size:"16"},null,8,["component"])],64)):(s(),n(i,{key:1},[N,h(r(C),{component:r(U),size:"16"},null,8,["component"])],64))],8,A)])):g("v-if",!0)])))),128))]))}});export{O as default};
1
+ import{defineComponent as e,ref as l,inject as t,watch as o,computed as a,openBlock as n,createElementBlock as s,Fragment as i,renderList as c,unref as d,createElementVNode as r,toDisplayString as u,normalizeClass as p,withDirectives as f,createBlock as m,normalizeStyle as v,withCtx as b,createVNode as g,withModifiers as h,createCommentVNode as w}from"vue";import{useMessage as y,NTag as k,NTooltip as S,NIcon as C}from"naive-ui";import{ChevronUpCircleOutline as x,ChevronDownCircleOutline as L}from"@vicons/ionicons5";import U from"../../../directive/resize.js";import B from"../../../hooks/useAsyncData.js";import{InjectionFilterApiConfig as j}from"../../../constants/index.js";import{isString as T}from"lodash-es";var _,z;const D={class:"label-attr-filter-container"},I={class:"edit-f-label"},A={class:"label-f-content"},H={key:0,class:"label-f-unfold-btn"},N=["onClick"],O=r("span",null,(null==(_=window.getLanguageByCode)?void 0:_.call(window,"10010.1.388"))||"收起",-1),$=r("span",null,(null==(z=window.getLanguageByCode)?void 0:z.call(window,"10010.1.389"))||"展开",-1);var q=e({__name:"LabelInner",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:_}){const z=e,{getDynamicLabelData:q}=B(),E=y(),F="rgb(85, 133, 245)",G=l([]),J=l([]),K=t(j);o((()=>z.value),(e=>{const l=e&&T(e)?e.split("|#|"):[];G.value=l}),{immediate:!0});const M=a((()=>J.value&&J.value.length>0?J.value.map((e=>(e.labelList.map((e=>{e.isSelect=G.value.includes(e.labelShowText)})),e))):[])),P=e=>e.isSelect?{background:e.backgroundColor||F,borderColor:e.backgroundColor||F}:{};return(async()=>{try{const{widgetCfg:e={}}=z.componentCfg,{classifyStr:l=""}=e;let t=await q({classifyStr:l},K);if(t){const{list:e=[]}=t;J.value=e}}catch(e){E.error(`获取标签数据请求失败:${e}`),console.log(e)}})(),(e,l)=>(n(),s("div",D,[(n(!0),s(i,null,c(d(M),(e=>(n(),s("div",{class:"edit-labels-content",key:e.classifyId},[r("span",I,u(e.classifyName)+":",1),r("div",{class:p(["edit-f-content",{"label-select-height":!e.isUnfold&&e.labelList&&e.isShowBtn}])},[f((n(),s("div",A,[(n(!0),s(i,null,c(e.labelList,(e=>(n(),m(d(k),{checkable:"",key:e.labelCode,checked:e.isSelect,"onUpdate:checked":l=>((e,l)=>{if(l.isSelect=e,e)G.value.push(l.labelShowText);else{const e=G.value.findIndex((e=>e===l.labelShowText));e>-1&&G.value.splice(e,1)}_("update:value",G.value.join("|#|"))})(l,e),style:v(P(e))},{default:b((()=>[g(d(S),{placement:"top-start",duration:0},{trigger:b((()=>[r("span",null,u(e.labelShowText),1)])),default:b((()=>[r("span",null,u(e.labelShowText),1)])),_:2},1024)])),_:2},1032,["checked","onUpdate:checked","style"])))),128))])),[[d(U),l=>((e,l)=>{let t=e.offsetHeight||0;t&&(t>80?l.isShowBtn=!0:(l.isShowBtn=!1,l.isUnfold=!1))})(l,e)]])],2),e.labelList&&e.isShowBtn?(n(),s("div",H,[r("span",{class:"operate-btn",onClick:h((l=>(e=>{e.isUnfold=!e.isUnfold})(e)),["stop"])},[e.isUnfold?(n(),s(i,{key:0},[O,g(d(C),{component:d(x),size:"16"},null,8,["component"])],64)):(n(),s(i,{key:1},[$,g(d(C),{component:d(L),size:"16"},null,8,["component"])],64))],8,N)])):w("v-if",!0)])))),128))]))}});export{q as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as l,withDirectives as a,openBlock as i,createElementBlock as n,normalizeStyle as o,createBlock as s,unref as c,Fragment as d,renderList as u,toDisplayString as r,createCommentVNode as p,createElementVNode as v,normalizeClass as f,withCtx as m,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as k,NButtonGroup as L,NButton as b,NIcon as E}from"naive-ui";import{vFlexibleResize as S}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as P}from"../../../../types/enums.js";import{ArrowBack as x,ArrowForward as M}from"@vicons/ionicons5";import{WholeSelectObj as O}from"../../helpers/selectExtraMap.js";const W={key:0,class:"dynamic-header"},_={class:"dynamic-content"},w=["onClick"],V={key:0,class:"content"},j={class:"content"},B={class:"dynamic-pagination"};var C=e({__name:"index",props:{oldValue:{type:Array,default:()=>[]},dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:C}){const z=e,A=t(200),H=l((()=>{var e,t;return null!=(t=null==(e=z.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),I=l((()=>H.value&&H.value.length>0?H.value.map((e=>{let t="";return z.fieldTitleList.forEach((l=>{l.columnName===e&&(t=l.title)})),t})):[])),N=l((()=>!z.optionList.filter((e=>e.label!=O.label)).length));function R(e){const t=z.curPage+e;C("updatePage",t)}function T({distance:e}){const t=A.value+e;A.value=Math.min(Math.max(t,200),1e3)}function K(){}return(t,l)=>a((i(),n("div",{class:"select-dynamic-options",style:o({minWidth:A.value+"px",position:"relative"})},[e.loading?(i(),s(c(g),{key:0,"show-icon":!1,description:"加载中..."})):(i(),n(d,{key:1},[c(N)?(i(),s(c(g),{key:0,description:"无数据"})):(i(),n(d,{key:1},[c(I)&&c(I).length>1?(i(),n("div",W,[(i(!0),n(d,null,u(c(I),(e=>(i(),n("span",{key:e,class:"name"},r(e),1)))),128))])):p("v-if",!0),v("ul",_,[(i(!0),n(d,null,u(e.optionList,(t=>(i(),n("li",{class:f(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,l,a,i;if(!z.isMultiple||e.value===P.WHOLE)return null==(t=z.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void C("updateSelect",[e.value]);null==(l=z.optionList)||l.forEach((e=>{e.value===P.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const n=null==(a=z.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));if(z.oldValue&&(null==(i=z.oldValue)?void 0:i.length)>0){const t=[...new Set([...z.oldValue,...n])];return e.actived?C("updateSelect",t):C("updateSelect",t.filter((t=>t!=e.value)))}C("updateSelect",n)}(t)},[e.isShowWhole&&t.value===c(P).WHOLE?(i(),n("span",V,r(t.label),1)):(i(!0),n(d,{key:1},u(c(H),(e=>(i(),s(c(k),{key:e,trigger:"hover",duration:0},{trigger:m((()=>[v("span",j,r(t[e]),1)])),default:m((()=>[y(" "+r(t[e]),1)])),_:2},1024)))),128))],10,w)))),128))]),v("div",B,[h(c(L),null,{default:m((()=>[h(c(b),{onClick:l[0]||(l[0]=e=>R(-1)),disabled:e.curPage<=1},{icon:m((()=>[h(c(E),{component:c(x),size:"16"},null,8,["component"])])),default:m((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:l[1]||(l[1]=e=>R(1)),disabled:e.isLastPage},{icon:m((()=>[h(c(E),{component:c(M),size:"16"},null,8,["component"])])),default:m((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],64))],4)),[[c(S),{mode:"VR",onMove:T,onEnd:K}]])}});export{C as default};
1
+ import{defineComponent as e,ref as t,computed as l,withDirectives as a,openBlock as i,createElementBlock as n,normalizeStyle as o,createBlock as d,unref as u,Fragment as c,renderList as s,toDisplayString as r,createCommentVNode as p,createElementVNode as v,normalizeClass as f,withCtx as m,createTextVNode as y,createVNode as g}from"vue";import{NEmpty as h,NPopover as w,NButtonGroup as L,NButton as k,NIcon as b}from"naive-ui";import{vFlexibleResize as E}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as S}from"../../../../types/enums.js";import{ArrowBack as B,ArrowForward as C}from"@vicons/ionicons5";import{WholeSelectObj as P}from"../../helpers/selectExtraMap.js";const x={key:0,class:"dynamic-header"},M={class:"dynamic-content"},O=["onClick"],W={key:0,class:"content"},_={class:"content"},V={class:"dynamic-pagination"};var j=e({__name:"index",props:{oldValue:{type:Array,default:()=>[]},dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:j}){const z=e,A=t(200),H=l((()=>{var e,t;return null!=(t=null==(e=z.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),I=l((()=>H.value&&H.value.length>0?H.value.map((e=>{let t="";return z.fieldTitleList.forEach((l=>{l.columnName===e&&(t=l.title)})),t})):[])),N=l((()=>!z.optionList.filter((e=>e.label!=P.label)).length));function R(e){const t=z.curPage+e;j("updatePage",t)}function T({distance:e}){const t=A.value+e;A.value=Math.min(Math.max(t,200),1e3)}function K(){}return(t,l)=>{var P;return a((i(),n("div",{class:"select-dynamic-options",style:o({minWidth:A.value+"px",position:"relative"})},[e.loading?(i(),d(u(h),{key:0,"show-icon":!1,description:"加载中..."})):(i(),n(c,{key:1},[u(N)?(i(),d(u(h),{key:0,description:(null==(P=window.getLanguageByCode)?void 0:P.call(window,"10010.1.380"))||"无数据"})):(i(),n(c,{key:1},[u(I)&&u(I).length>1?(i(),n("div",x,[(i(!0),n(c,null,s(u(I),(e=>(i(),n("span",{key:e,class:"name"},r(e),1)))),128))])):p("v-if",!0),v("ul",M,[(i(!0),n(c,null,s(e.optionList,(t=>(i(),n("li",{class:f(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,l,a,i;if(!z.isMultiple||e.value===S.WHOLE)return null==(t=z.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void j("updateSelect",[e.value]);null==(l=z.optionList)||l.forEach((e=>{e.value===S.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const n=null==(a=z.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));if(z.oldValue&&(null==(i=z.oldValue)?void 0:i.length)>0){const t=[...new Set([...z.oldValue,...n])];return e.actived?j("updateSelect",t):j("updateSelect",t.filter((t=>t!=e.value)))}j("updateSelect",n)}(t)},[e.isShowWhole&&t.value===u(S).WHOLE?(i(),n("span",W,r(t.label),1)):(i(!0),n(c,{key:1},s(u(H),(e=>(i(),d(u(w),{key:e,trigger:"hover",duration:0},{trigger:m((()=>[v("span",_,r(t[e]),1)])),default:m((()=>[y(" "+r(t[e]),1)])),_:2},1024)))),128))],10,O)))),128))]),v("div",V,[g(u(L),null,{default:m((()=>[g(u(k),{onClick:l[0]||(l[0]=e=>R(-1)),disabled:e.curPage<=1},{icon:m((()=>[g(u(b),{component:u(B),size:"16"},null,8,["component"])])),default:m((()=>{var e;return[y((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.381"))||"上一页")]})),_:1},8,["disabled"]),g(u(k),{"icon-placement":"right",onClick:l[1]||(l[1]=e=>R(1)),disabled:e.isLastPage},{icon:m((()=>[g(u(b),{component:u(C),size:"16"},null,8,["component"])])),default:m((()=>{var e;return[y((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.382"))||"下一页")]})),_:1},8,["disabled"])])),_:1})])],64))],64))],4)),[[u(E),{mode:"VR",onMove:T,onEnd:K}]])}}});export{j as default};
@@ -1 +1 @@
1
- import{WidgetValEnums as E,WidgetDateOptionEnums as T}from"./enums.js";import{WidgetOptionEnums as A}from"../../../types/enums.js";const e={DATE_DATETIME_WHOLE:"DATE_DATETIME_WHOLE",DATE_DATETIME_PAST:"DATE_DATETIME_WHOLE",DATE_DATETIME_FUTURE:"DATE_DATETIME_FUTURE",DATETIME_DATETIME_WHOLE:"DATETIME_DATETIME_WHOLE",DATETIME_DATETIME_PAST:"DATETIME_DATETIME_WHOLE",DATETIME_DATETIME_FUTURE:"DATETIME_DATETIME_FUTURE",DATE_DATETIME_WHOLE_RANGE:"DATE_DATETIME_WHOLE_RANGE",DATE_DATETIME_PAST_RANGE:"DATE_DATETIME_WHOLE_RANGE",DATE_DATETIME_FUTURE_RANGE:"DATE_DATETIME_FUTURE_RANGE",DATETIME_DATETIME_WHOLE_RANGE:"DATE_DATETIME_WHOLE_RANGE",DATETIME_DATETIME_PAST_RANGE:"DATE_DATETIME_WHOLE_RANGE",DATETIME_DATETIME_FUTURE_RANGE:"DATE_DATETIME_FUTURE_RANGE"},_={DATE_DATETIME_WHOLE_RANGE:[{label:"今天",value:"TODAY"},{label:"昨天",value:"YESTERDAY"},{label:"近一周",value:"PAST_WEEK"},{label:"近一月",value:"PAST_MONTH"}],DATE_DATETIME_FUTURE_RANGE:[{label:"今天",value:"TODAY"},{label:"明天",value:"TOMORROW"},{label:"本周",value:"THIS_WEEK"},{label:"本月",value:"THIS_MONTH"}]},t={DATE_DATETIME_WHOLE:[{label:"今天",value:"TODAY"},{label:"昨天",value:"YESTERDAY"},{label:"本周初",value:"THIS_WEEK_START"},{label:"本月初",value:"THIS_MONTH_START"}],DATE_DATETIME_FUTURE:[{label:"今天",value:"TODAY"},{label:"明天",value:"TOMORROW"},{label:"本周末",value:"THIS_WEEK_END"},{label:"本月末",value:"THIS_MONTH_END"}],DATETIME_DATETIME_WHOLE:[{label:"今天初",value:"TODAY_START"},{label:"昨天初",value:"YESTERDAY_START"},{label:"本周初",value:"THIS_WEEK_START"},{label:"本月初",value:"THIS_MONTH_START"}],DATETIME_DATETIME_FUTURE:[{label:"今天末",value:"TODAY_END"},{label:"明天末",value:"TOMORROW_END"},{label:"本周末",value:"THIS_WEEK_END"},{label:"本月末",value:"THIS_MONTH_END"}],DATE_DATETIME_WHOLE_RANGE:_.DATE_DATETIME_WHOLE_RANGE,DATE_DATETIME_FUTURE_RANGE:_.DATE_DATETIME_FUTURE_RANGE,DATETIME_DATETIME_WHOLE_RANGE:_.DATE_DATETIME_WHOLE_RANGE,DATETIME_DATETIME_FUTURE_RANGE:_.DATE_DATETIME_FUTURE_RANGE},n={[A.ALL]:[{name:"今天",title:"今天",con:E.TODAY},{name:"明天",title:"明天",con:E.TOMORROW},{name:"昨天",title:"昨天",con:E.YESTERDAY},{name:"本周",title:"本周",con:E.THIS_WEEK},{name:"下周",title:"下周",con:E.NEXT_WEEK},{name:"上周",title:"上周",con:E.LAST_WEEK},{name:"近一周",title:"近一周",con:E.PAST_WEEK},{name:"本月",title:"本月",con:E.THIS_MONTH},{name:"下月",title:"下月",con:E.NEXT_MONTH},{name:"上月",title:"上月",con:E.LAST_MONTH},{name:"近一月",title:"近一月",con:E.PAST_MONTH},{name:"本季度",title:"本季度",con:E.THIS_QUARTER},{name:"下季度",title:"下季度",con:E.NEXT_QUARTER},{name:"上季度",title:"上季度",con:E.LAST_QUARTER},{name:"今年",title:"今年",con:E.THIS_YEAR},{name:"明年",title:"明年",con:E.NEXT_YEAR},{name:"去年",title:"去年",con:E.LAST_YEAR},{name:"近半年",title:"近半年",con:E.PAST_HALF_YEAR}],[A.PAST_TIME]:[{name:"今天",title:"今天",con:E.TODAY},{name:"昨天",title:"昨天",con:E.YESTERDAY},{name:"本周",title:"本周",con:E.THIS_WEEK},{name:"上周",title:"上周",con:E.LAST_WEEK},{name:"近一周",title:"近一周",con:E.PAST_WEEK},{name:"本月",title:"本月",con:E.THIS_MONTH},{name:"上月",title:"上月",con:E.LAST_MONTH},{name:"近一月",title:"近一月",con:E.PAST_MONTH},{name:"本季度",title:"本季度",con:E.THIS_QUARTER},{name:"上季度",title:"上季度",con:E.LAST_QUARTER},{name:"今年",title:"今年",con:E.THIS_YEAR},{name:"去年",title:"去年",con:E.LAST_YEAR},{name:"近半年",title:"近半年",con:E.PAST_HALF_YEAR}],[A.FUTURE_TIME]:[{name:"今天",title:"今天",con:E.TODAY},{name:"明天",title:"明天",con:E.TOMORROW},{name:"本周",title:"本周",con:E.THIS_WEEK},{name:"下周",title:"下周",con:E.NEXT_WEEK},{name:"本月",title:"本月",con:E.THIS_MONTH},{name:"下月",title:"下月",con:E.NEXT_MONTH},{name:"本季度",title:"本季度",con:E.THIS_QUARTER},{name:"下季度",title:"下季度",con:E.NEXT_QUARTER},{name:"今年",title:"今年",con:E.THIS_YEAR},{name:"明年",title:"明年",con:E.NEXT_YEAR}]},l={[T.DATE_DATETIME_WHOLE_RANGE]:n[A.ALL],[T.DATE_DATETIME_PAST_RANGE]:n[A.PAST_TIME],[T.DATE_DATETIME_FUTURE_RANGE]:n[A.FUTURE_TIME],[T.DATETIME_DATETIME_WHOLE_RANGE]:n[A.ALL],[T.DATETIME_DATETIME_PAST_RANGE]:n[A.PAST_TIME],[T.DATETIME_DATETIME_FUTURE_RANGE]:n[A.FUTURE_TIME],[T.DATE_DATETIME_WHOLE]:[{name:"今天",title:"今天",con:E.TODAY},{name:"明天",title:"明天",con:E.TOMORROW},{name:"昨天",title:"昨天",con:E.YESTERDAY},{name:"本周初",title:"本周初",con:E.WEEK_START},{name:"本周末",title:"本周末",con:E.WEEK_END},{name:"本月初",title:"本月初",con:E.MONTH_START},{name:"本月末",title:"本月末",con:E.MONTH_END},{name:"季度初",title:"本季度初",con:E.QUARTER_START},{name:"季度未",title:"本季度未",con:E.QUARTER_END},{name:"今年初",title:"今年初",con:E.YEAR_START},{name:"今年未",title:"今年未",con:E.YEAR_END}],[T.DATE_DATETIME_PAST]:[{name:"今天",title:"今天",con:E.TODAY},{name:"昨天",title:"昨天",con:E.YESTERDAY},{name:"本周初",title:"本周初",con:E.WEEK_START},{name:"本月初",title:"本月初",con:E.MONTH_START},{name:"季度初",title:"本季度初",con:E.QUARTER_START},{name:"今年初",title:"今年初",con:E.YEAR_START}],[T.DATE_DATETIME_FUTURE]:[{name:"今天",title:"今天",con:E.TODAY},{name:"明天",title:"明天",con:E.TOMORROW},{name:"本周末",title:"本周末",con:E.WEEK_END},{name:"本月末",title:"本月末",con:E.MONTH_END},{name:"季度未",title:"本季度未",con:E.QUARTER_END},{name:"今年未",title:"今年未",con:E.YEAR_END}],[T.DATETIME_DATETIME_WHOLE]:[{name:"当前时间",title:"当前时间",con:E.NOW},{name:"今天初",title:"今天初",con:E.TODAY_START},{name:"今天末",title:"今天末",con:E.TODAY_END},{name:"昨天初",title:"昨天初",con:E.YESTERDAY_START},{name:"昨天末",title:"昨天末",con:E.YESTERDAY_END},{name:"明天初",title:"明天初",con:E.TOMORROW_START},{name:"明天末",title:"明天末",con:E.TOMORROW_END},{name:"本周初",title:"本周初",con:E.WEEK_START},{name:"本周末",title:"本周末",con:E.WEEK_END},{name:"本月初",title:"本月初",con:E.MONTH_START},{name:"本月末",title:"本月末",con:E.MONTH_END},{name:"今年初",title:"今年初",con:E.YEAR_START},{name:"今年未",title:"今年未",con:E.YEAR_END}],[T.DATETIME_DATETIME_PAST]:[{name:"当前时间",title:"当前时间",con:E.NOW},{name:"今天初",title:"今天初",con:E.TODAY_START},{name:"昨天初",title:"昨天初",con:E.YESTERDAY_START},{name:"昨天末",title:"昨天末",con:E.YESTERDAY_END},{name:"本周初",title:"本周初",con:E.WEEK_START},{name:"本月初",title:"本月初",con:E.MONTH_START},{name:"今年初",title:"今年初",con:E.YEAR_START}],[T.DATETIME_DATETIME_FUTURE]:[{name:"当前时间",title:"当前时间",con:E.NOW},{name:"今天末",title:"今天末",con:E.TODAY_END},{name:"明天初",title:"明天初",con:E.TOMORROW_START},{name:"明天末",title:"明天末",con:E.TOMORROW_END},{name:"本周末",title:"本周末",con:E.WEEK_END},{name:"本月末",title:"本月末",con:E.MONTH_END},{name:"今年未",title:"今年未",con:E.YEAR_END}]};export{e as DateExtraMap,t as DateExtraOptions,l as widgetDateValOptions};
1
+ import{WidgetValEnums as n,WidgetDateOptionEnums as l}from"./enums.js";import{WidgetOptionEnums as o}from"../../../types/enums.js";var e,d,w,a,i,g,u,t,E,T,c,L,A,_,v,y,B,C,D,R,M,O,m,I,N,S,H,W,U,Y,G,b,F,K,P,Q,X,r,s,p,f,j,x,h,k,q,z,J,V,Z,$,nn,ln,on,en,dn,wn,an,gn,un,tn,En,Tn,cn,Ln,An,_n,vn,yn,Bn,Cn,Dn,Rn,Mn,On,mn,In,Nn,Sn,Hn,Wn,Un,Yn,Gn,bn,Fn,Kn,Pn,Qn,Xn,rn,sn,pn,fn,jn,xn,hn,kn,qn,zn,Jn,Vn,Zn,$n,nl,ll,ol,el,dl,wl,al,il,gl,ul,tl,El,Tl,cl,Ll,Al,_l,vl,yl,Bl,Cl,Dl,Rl,Ml,Ol,ml,Il,Nl,Sl,Hl,Wl,Ul,Yl,Gl,bl,Fl,Kl,Pl,Ql,Xl,rl,sl,pl,fl,jl,xl,hl,kl,ql,zl,Jl,Vl,Zl,$l,no,lo,oo,eo,wo,ao,io,go,uo,to,Eo,To,co,Lo,Ao,_o,vo,yo,Bo,Co,Do,Ro,Mo,Oo,mo,Io,No,So,Ho,Wo,Uo,Yo,Go,bo,Fo,Ko,Po,Qo,Xo,ro,so,po,fo,jo,xo,ho,ko,qo;const zo={DATE_DATETIME_WHOLE:"DATE_DATETIME_WHOLE",DATE_DATETIME_PAST:"DATE_DATETIME_WHOLE",DATE_DATETIME_FUTURE:"DATE_DATETIME_FUTURE",DATETIME_DATETIME_WHOLE:"DATETIME_DATETIME_WHOLE",DATETIME_DATETIME_PAST:"DATETIME_DATETIME_WHOLE",DATETIME_DATETIME_FUTURE:"DATETIME_DATETIME_FUTURE",DATE_DATETIME_WHOLE_RANGE:"DATE_DATETIME_WHOLE_RANGE",DATE_DATETIME_PAST_RANGE:"DATE_DATETIME_WHOLE_RANGE",DATE_DATETIME_FUTURE_RANGE:"DATE_DATETIME_FUTURE_RANGE",DATETIME_DATETIME_WHOLE_RANGE:"DATE_DATETIME_WHOLE_RANGE",DATETIME_DATETIME_PAST_RANGE:"DATE_DATETIME_WHOLE_RANGE",DATETIME_DATETIME_FUTURE_RANGE:"DATE_DATETIME_FUTURE_RANGE"},Jo={DATE_DATETIME_WHOLE_RANGE:[{label:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.134"))||"今天",value:"TODAY"},{label:(null==(d=window.getLanguageByCode)?void 0:d.call(window,"10010.1.132"))||"昨天",value:"YESTERDAY"},{label:(null==(w=window.getLanguageByCode)?void 0:w.call(window,"10010.1.392"))||"近一周",value:"PAST_WEEK"},{label:(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.393"))||"近一月",value:"PAST_MONTH"}],DATE_DATETIME_FUTURE_RANGE:[{label:(null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.134"))||"今天",value:"TODAY"},{label:(null==(g=window.getLanguageByCode)?void 0:g.call(window,"10010.1.300"))||"明天",value:"TOMORROW"},{label:(null==(u=window.getLanguageByCode)?void 0:u.call(window,"10010.1.47"))||"本周",value:"THIS_WEEK"},{label:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.404"))||"本月",value:"THIS_MONTH"}]},Vo={DATE_DATETIME_WHOLE:[{label:(null==(E=window.getLanguageByCode)?void 0:E.call(window,"10010.1.134"))||"今天",value:"TODAY"},{label:(null==(T=window.getLanguageByCode)?void 0:T.call(window,"10010.1.132"))||"昨天",value:"YESTERDAY"},{label:(null==(c=window.getLanguageByCode)?void 0:c.call(window,"10010.1.301"))||"本周初",value:"THIS_WEEK_START"},{label:(null==(L=window.getLanguageByCode)?void 0:L.call(window,"10010.1.303"))||"本月初",value:"THIS_MONTH_START"}],DATE_DATETIME_FUTURE:[{label:(null==(A=window.getLanguageByCode)?void 0:A.call(window,"10010.1.134"))||"今天",value:"TODAY"},{label:(null==(_=window.getLanguageByCode)?void 0:_.call(window,"10010.1.300"))||"明天",value:"TOMORROW"},{label:(null==(v=window.getLanguageByCode)?void 0:v.call(window,"10010.1.302"))||"本周末",value:"THIS_WEEK_END"},{label:(null==(y=window.getLanguageByCode)?void 0:y.call(window,"10010.1.304"))||"本月末",value:"THIS_MONTH_END"}],DATETIME_DATETIME_WHOLE:[{label:(null==(B=window.getLanguageByCode)?void 0:B.call(window,"10010.1.306"))||"今天初",value:"TODAY_START"},{label:(null==(C=window.getLanguageByCode)?void 0:C.call(window,"10010.1.308"))||"昨天初",value:"YESTERDAY_START"},{label:(null==(D=window.getLanguageByCode)?void 0:D.call(window,"10010.1.301"))||"本周初",value:"THIS_WEEK_START"},{label:(null==(R=window.getLanguageByCode)?void 0:R.call(window,"10010.1.303"))||"本月初",value:"THIS_MONTH_START"}],DATETIME_DATETIME_FUTURE:[{label:(null==(M=window.getLanguageByCode)?void 0:M.call(window,"10010.1.307"))||"今天末",value:"TODAY_END"},{label:(null==(O=window.getLanguageByCode)?void 0:O.call(window,"10010.1.311"))||"明天末",value:"TOMORROW_END"},{label:(null==(m=window.getLanguageByCode)?void 0:m.call(window,"10010.1.302"))||"本周末",value:"THIS_WEEK_END"},{label:(null==(I=window.getLanguageByCode)?void 0:I.call(window,"10010.1.304"))||"本月末",value:"THIS_MONTH_END"}],DATE_DATETIME_WHOLE_RANGE:Jo.DATE_DATETIME_WHOLE_RANGE,DATE_DATETIME_FUTURE_RANGE:Jo.DATE_DATETIME_FUTURE_RANGE,DATETIME_DATETIME_WHOLE_RANGE:Jo.DATE_DATETIME_WHOLE_RANGE,DATETIME_DATETIME_FUTURE_RANGE:Jo.DATE_DATETIME_FUTURE_RANGE},Zo={[o.ALL]:[{name:(null==(N=window.getLanguageByCode)?void 0:N.call(window,"10010.1.134"))||"今天",title:(null==(S=window.getLanguageByCode)?void 0:S.call(window,"10010.1.134"))||"今天",con:n.TODAY},{name:(null==(H=window.getLanguageByCode)?void 0:H.call(window,"10010.1.300"))||"明天",title:(null==(W=window.getLanguageByCode)?void 0:W.call(window,"10010.1.300"))||"明天",con:n.TOMORROW},{name:(null==(U=window.getLanguageByCode)?void 0:U.call(window,"10010.1.132"))||"昨天",title:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.132"))||"昨天",con:n.YESTERDAY},{name:(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.47"))||"本周",title:(null==(b=window.getLanguageByCode)?void 0:b.call(window,"10010.1.47"))||"本周",con:n.THIS_WEEK},{name:(null==(F=window.getLanguageByCode)?void 0:F.call(window,"10010.1.323"))||"下周",title:(null==(K=window.getLanguageByCode)?void 0:K.call(window,"10010.1.323"))||"下周",con:n.NEXT_WEEK},{name:(null==(P=window.getLanguageByCode)?void 0:P.call(window,"10010.1.324"))||"上周",title:(null==(Q=window.getLanguageByCode)?void 0:Q.call(window,"10010.1.324"))||"上周",con:n.LAST_WEEK},{name:(null==(X=window.getLanguageByCode)?void 0:X.call(window,"10010.1.392"))||"近一周",title:(null==(r=window.getLanguageByCode)?void 0:r.call(window,"10010.1.392"))||"近一周",con:n.PAST_WEEK},{name:(null==(s=window.getLanguageByCode)?void 0:s.call(window,"10010.1.404"))||"本月",title:(null==(p=window.getLanguageByCode)?void 0:p.call(window,"10010.1.404"))||"本月",con:n.THIS_MONTH},{name:(null==(f=window.getLanguageByCode)?void 0:f.call(window,"10010.1.325"))||"下月",title:(null==(j=window.getLanguageByCode)?void 0:j.call(window,"10010.1.325"))||"下月",con:n.NEXT_MONTH},{name:(null==(x=window.getLanguageByCode)?void 0:x.call(window,"10010.1.326"))||"上月",title:(null==(h=window.getLanguageByCode)?void 0:h.call(window,"10010.1.326"))||"上月",con:n.LAST_MONTH},{name:(null==(k=window.getLanguageByCode)?void 0:k.call(window,"10010.1.393"))||"近一月",title:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.393"))||"近一月",con:n.PAST_MONTH},{name:(null==(z=window.getLanguageByCode)?void 0:z.call(window,"10010.1.327"))||"本季度",title:(null==(J=window.getLanguageByCode)?void 0:J.call(window,"10010.1.327"))||"本季度",con:n.THIS_QUARTER},{name:(null==(V=window.getLanguageByCode)?void 0:V.call(window,"10010.1.328"))||"下季度",title:(null==(Z=window.getLanguageByCode)?void 0:Z.call(window,"10010.1.328"))||"下季度",con:n.NEXT_QUARTER},{name:(null==($=window.getLanguageByCode)?void 0:$.call(window,"10010.1.329"))||"上季度",title:(null==(nn=window.getLanguageByCode)?void 0:nn.call(window,"10010.1.329"))||"上季度",con:n.LAST_QUARTER},{name:(null==(ln=window.getLanguageByCode)?void 0:ln.call(window,"10010.1.394"))||"今年",title:(null==(on=window.getLanguageByCode)?void 0:on.call(window,"10010.1.394"))||"今年",con:n.THIS_YEAR},{name:(null==(en=window.getLanguageByCode)?void 0:en.call(window,"10010.1.395"))||"明年",title:(null==(dn=window.getLanguageByCode)?void 0:dn.call(window,"10010.1.395"))||"明年",con:n.NEXT_YEAR},{name:(null==(wn=window.getLanguageByCode)?void 0:wn.call(window,"10010.1.396"))||"去年",title:(null==(an=window.getLanguageByCode)?void 0:an.call(window,"10010.1.396"))||"去年",con:n.LAST_YEAR},{name:(null==(gn=window.getLanguageByCode)?void 0:gn.call(window,"10010.1.397"))||"近半年",title:(null==(un=window.getLanguageByCode)?void 0:un.call(window,"10010.1.397"))||"近半年",con:n.PAST_HALF_YEAR}],[o.PAST_TIME]:[{name:(null==(tn=window.getLanguageByCode)?void 0:tn.call(window,"10010.1.134"))||"今天",title:(null==(En=window.getLanguageByCode)?void 0:En.call(window,"10010.1.134"))||"今天",con:n.TODAY},{name:(null==(Tn=window.getLanguageByCode)?void 0:Tn.call(window,"10010.1.132"))||"昨天",title:(null==(cn=window.getLanguageByCode)?void 0:cn.call(window,"10010.1.132"))||"昨天",con:n.YESTERDAY},{name:(null==(Ln=window.getLanguageByCode)?void 0:Ln.call(window,"10010.1.47"))||"本周",title:(null==(An=window.getLanguageByCode)?void 0:An.call(window,"10010.1.47"))||"本周",con:n.THIS_WEEK},{name:(null==(_n=window.getLanguageByCode)?void 0:_n.call(window,"10010.1.324"))||"上周",title:(null==(vn=window.getLanguageByCode)?void 0:vn.call(window,"10010.1.324"))||"上周",con:n.LAST_WEEK},{name:(null==(yn=window.getLanguageByCode)?void 0:yn.call(window,"10010.1.392"))||"近一周",title:(null==(Bn=window.getLanguageByCode)?void 0:Bn.call(window,"10010.1.392"))||"近一周",con:n.PAST_WEEK},{name:(null==(Cn=window.getLanguageByCode)?void 0:Cn.call(window,"10010.1.404"))||"本月",title:(null==(Dn=window.getLanguageByCode)?void 0:Dn.call(window,"10010.1.404"))||"本月",con:n.THIS_MONTH},{name:(null==(Rn=window.getLanguageByCode)?void 0:Rn.call(window,"10010.1.326"))||"上月",title:(null==(Mn=window.getLanguageByCode)?void 0:Mn.call(window,"10010.1.326"))||"上月",con:n.LAST_MONTH},{name:(null==(On=window.getLanguageByCode)?void 0:On.call(window,"10010.1.393"))||"近一月",title:(null==(mn=window.getLanguageByCode)?void 0:mn.call(window,"10010.1.393"))||"近一月",con:n.PAST_MONTH},{name:(null==(In=window.getLanguageByCode)?void 0:In.call(window,"10010.1.327"))||"本季度",title:(null==(Nn=window.getLanguageByCode)?void 0:Nn.call(window,"10010.1.327"))||"本季度",con:n.THIS_QUARTER},{name:(null==(Sn=window.getLanguageByCode)?void 0:Sn.call(window,"10010.1.329"))||"上季度",title:(null==(Hn=window.getLanguageByCode)?void 0:Hn.call(window,"10010.1.329"))||"上季度",con:n.LAST_QUARTER},{name:(null==(Wn=window.getLanguageByCode)?void 0:Wn.call(window,"10010.1.394"))||"今年",title:(null==(Un=window.getLanguageByCode)?void 0:Un.call(window,"10010.1.394"))||"今年",con:n.THIS_YEAR},{name:(null==(Yn=window.getLanguageByCode)?void 0:Yn.call(window,"10010.1.396"))||"去年",title:(null==(Gn=window.getLanguageByCode)?void 0:Gn.call(window,"10010.1.396"))||"去年",con:n.LAST_YEAR},{name:(null==(bn=window.getLanguageByCode)?void 0:bn.call(window,"10010.1.397"))||"近半年",title:(null==(Fn=window.getLanguageByCode)?void 0:Fn.call(window,"10010.1.397"))||"近半年",con:n.PAST_HALF_YEAR}],[o.FUTURE_TIME]:[{name:(null==(Kn=window.getLanguageByCode)?void 0:Kn.call(window,"10010.1.134"))||"今天",title:(null==(Pn=window.getLanguageByCode)?void 0:Pn.call(window,"10010.1.134"))||"今天",con:n.TODAY},{name:(null==(Qn=window.getLanguageByCode)?void 0:Qn.call(window,"10010.1.300"))||"明天",title:(null==(Xn=window.getLanguageByCode)?void 0:Xn.call(window,"10010.1.300"))||"明天",con:n.TOMORROW},{name:(null==(rn=window.getLanguageByCode)?void 0:rn.call(window,"10010.1.47"))||"本周",title:(null==(sn=window.getLanguageByCode)?void 0:sn.call(window,"10010.1.47"))||"本周",con:n.THIS_WEEK},{name:(null==(pn=window.getLanguageByCode)?void 0:pn.call(window,"10010.1.323"))||"下周",title:(null==(fn=window.getLanguageByCode)?void 0:fn.call(window,"10010.1.323"))||"下周",con:n.NEXT_WEEK},{name:(null==(jn=window.getLanguageByCode)?void 0:jn.call(window,"10010.1.404"))||"本月",title:(null==(xn=window.getLanguageByCode)?void 0:xn.call(window,"10010.1.404"))||"本月",con:n.THIS_MONTH},{name:(null==(hn=window.getLanguageByCode)?void 0:hn.call(window,"10010.1.325"))||"下月",title:(null==(kn=window.getLanguageByCode)?void 0:kn.call(window,"10010.1.325"))||"下月",con:n.NEXT_MONTH},{name:(null==(qn=window.getLanguageByCode)?void 0:qn.call(window,"10010.1.327"))||"本季度",title:(null==(zn=window.getLanguageByCode)?void 0:zn.call(window,"10010.1.327"))||"本季度",con:n.THIS_QUARTER},{name:(null==(Jn=window.getLanguageByCode)?void 0:Jn.call(window,"10010.1.328"))||"下季度",title:(null==(Vn=window.getLanguageByCode)?void 0:Vn.call(window,"10010.1.328"))||"下季度",con:n.NEXT_QUARTER},{name:(null==(Zn=window.getLanguageByCode)?void 0:Zn.call(window,"10010.1.394"))||"今年",title:(null==($n=window.getLanguageByCode)?void 0:$n.call(window,"10010.1.394"))||"今年",con:n.THIS_YEAR},{name:(null==(nl=window.getLanguageByCode)?void 0:nl.call(window,"10010.1.395"))||"明年",title:(null==(ll=window.getLanguageByCode)?void 0:ll.call(window,"10010.1.395"))||"明年",con:n.NEXT_YEAR}]},$o={[l.DATE_DATETIME_WHOLE_RANGE]:Zo[o.ALL],[l.DATE_DATETIME_PAST_RANGE]:Zo[o.PAST_TIME],[l.DATE_DATETIME_FUTURE_RANGE]:Zo[o.FUTURE_TIME],[l.DATETIME_DATETIME_WHOLE_RANGE]:Zo[o.ALL],[l.DATETIME_DATETIME_PAST_RANGE]:Zo[o.PAST_TIME],[l.DATETIME_DATETIME_FUTURE_RANGE]:Zo[o.FUTURE_TIME],[l.DATE_DATETIME_WHOLE]:[{name:(null==(ol=window.getLanguageByCode)?void 0:ol.call(window,"10010.1.134"))||"今天",title:(null==(el=window.getLanguageByCode)?void 0:el.call(window,"10010.1.134"))||"今天",con:n.TODAY},{name:(null==(dl=window.getLanguageByCode)?void 0:dl.call(window,"10010.1.300"))||"明天",title:(null==(wl=window.getLanguageByCode)?void 0:wl.call(window,"10010.1.300"))||"明天",con:n.TOMORROW},{name:(null==(al=window.getLanguageByCode)?void 0:al.call(window,"10010.1.132"))||"昨天",title:(null==(il=window.getLanguageByCode)?void 0:il.call(window,"10010.1.132"))||"昨天",con:n.YESTERDAY},{name:(null==(gl=window.getLanguageByCode)?void 0:gl.call(window,"10010.1.301"))||"本周初",title:(null==(ul=window.getLanguageByCode)?void 0:ul.call(window,"10010.1.301"))||"本周初",con:n.WEEK_START},{name:(null==(tl=window.getLanguageByCode)?void 0:tl.call(window,"10010.1.302"))||"本周末",title:(null==(El=window.getLanguageByCode)?void 0:El.call(window,"10010.1.302"))||"本周末",con:n.WEEK_END},{name:(null==(Tl=window.getLanguageByCode)?void 0:Tl.call(window,"10010.1.303"))||"本月初",title:(null==(cl=window.getLanguageByCode)?void 0:cl.call(window,"10010.1.303"))||"本月初",con:n.MONTH_START},{name:(null==(Ll=window.getLanguageByCode)?void 0:Ll.call(window,"10010.1.304"))||"本月末",title:(null==(Al=window.getLanguageByCode)?void 0:Al.call(window,"10010.1.304"))||"本月末",con:n.MONTH_END},{name:(null==(_l=window.getLanguageByCode)?void 0:_l.call(window,"10010.1.398"))||"季度初",title:(null==(vl=window.getLanguageByCode)?void 0:vl.call(window,"10010.1.399"))||"本季度初",con:n.QUARTER_START},{name:(null==(yl=window.getLanguageByCode)?void 0:yl.call(window,"10010.1.400"))||"季度未",title:(null==(Bl=window.getLanguageByCode)?void 0:Bl.call(window,"10010.1.401"))||"本季度未",con:n.QUARTER_END},{name:(null==(Cl=window.getLanguageByCode)?void 0:Cl.call(window,"10010.1.402"))||"今年初",title:(null==(Dl=window.getLanguageByCode)?void 0:Dl.call(window,"10010.1.402"))||"今年初",con:n.YEAR_START},{name:(null==(Rl=window.getLanguageByCode)?void 0:Rl.call(window,"10010.1.403"))||"今年未",title:(null==(Ml=window.getLanguageByCode)?void 0:Ml.call(window,"10010.1.403"))||"今年未",con:n.YEAR_END}],[l.DATE_DATETIME_PAST]:[{name:(null==(Ol=window.getLanguageByCode)?void 0:Ol.call(window,"10010.1.134"))||"今天",title:(null==(ml=window.getLanguageByCode)?void 0:ml.call(window,"10010.1.134"))||"今天",con:n.TODAY},{name:(null==(Il=window.getLanguageByCode)?void 0:Il.call(window,"10010.1.132"))||"昨天",title:(null==(Nl=window.getLanguageByCode)?void 0:Nl.call(window,"10010.1.132"))||"昨天",con:n.YESTERDAY},{name:(null==(Sl=window.getLanguageByCode)?void 0:Sl.call(window,"10010.1.301"))||"本周初",title:(null==(Hl=window.getLanguageByCode)?void 0:Hl.call(window,"10010.1.301"))||"本周初",con:n.WEEK_START},{name:(null==(Wl=window.getLanguageByCode)?void 0:Wl.call(window,"10010.1.303"))||"本月初",title:(null==(Ul=window.getLanguageByCode)?void 0:Ul.call(window,"10010.1.303"))||"本月初",con:n.MONTH_START},{name:(null==(Yl=window.getLanguageByCode)?void 0:Yl.call(window,"10010.1.398"))||"季度初",title:(null==(Gl=window.getLanguageByCode)?void 0:Gl.call(window,"10010.1.399"))||"本季度初",con:n.QUARTER_START},{name:(null==(bl=window.getLanguageByCode)?void 0:bl.call(window,"10010.1.402"))||"今年初",title:(null==(Fl=window.getLanguageByCode)?void 0:Fl.call(window,"10010.1.402"))||"今年初",con:n.YEAR_START}],[l.DATE_DATETIME_FUTURE]:[{name:(null==(Kl=window.getLanguageByCode)?void 0:Kl.call(window,"10010.1.134"))||"今天",title:(null==(Pl=window.getLanguageByCode)?void 0:Pl.call(window,"10010.1.134"))||"今天",con:n.TODAY},{name:(null==(Ql=window.getLanguageByCode)?void 0:Ql.call(window,"10010.1.300"))||"明天",title:(null==(Xl=window.getLanguageByCode)?void 0:Xl.call(window,"10010.1.300"))||"明天",con:n.TOMORROW},{name:(null==(rl=window.getLanguageByCode)?void 0:rl.call(window,"10010.1.302"))||"本周末",title:(null==(sl=window.getLanguageByCode)?void 0:sl.call(window,"10010.1.302"))||"本周末",con:n.WEEK_END},{name:(null==(pl=window.getLanguageByCode)?void 0:pl.call(window,"10010.1.304"))||"本月末",title:(null==(fl=window.getLanguageByCode)?void 0:fl.call(window,"10010.1.304"))||"本月末",con:n.MONTH_END},{name:(null==(jl=window.getLanguageByCode)?void 0:jl.call(window,"10010.1.400"))||"季度未",title:(null==(xl=window.getLanguageByCode)?void 0:xl.call(window,"10010.1.401"))||"本季度未",con:n.QUARTER_END},{name:(null==(hl=window.getLanguageByCode)?void 0:hl.call(window,"10010.1.403"))||"今年未",title:(null==(kl=window.getLanguageByCode)?void 0:kl.call(window,"10010.1.403"))||"今年未",con:n.YEAR_END}],[l.DATETIME_DATETIME_WHOLE]:[{name:(null==(ql=window.getLanguageByCode)?void 0:ql.call(window,"10010.1.305"))||"当前时间",title:(null==(zl=window.getLanguageByCode)?void 0:zl.call(window,"10010.1.305"))||"当前时间",con:n.NOW},{name:(null==(Jl=window.getLanguageByCode)?void 0:Jl.call(window,"10010.1.306"))||"今天初",title:(null==(Vl=window.getLanguageByCode)?void 0:Vl.call(window,"10010.1.306"))||"今天初",con:n.TODAY_START},{name:(null==(Zl=window.getLanguageByCode)?void 0:Zl.call(window,"10010.1.307"))||"今天末",title:(null==($l=window.getLanguageByCode)?void 0:$l.call(window,"10010.1.307"))||"今天末",con:n.TODAY_END},{name:(null==(no=window.getLanguageByCode)?void 0:no.call(window,"10010.1.308"))||"昨天初",title:(null==(lo=window.getLanguageByCode)?void 0:lo.call(window,"10010.1.308"))||"昨天初",con:n.YESTERDAY_START},{name:(null==(oo=window.getLanguageByCode)?void 0:oo.call(window,"10010.1.309"))||"昨天末",title:(null==(eo=window.getLanguageByCode)?void 0:eo.call(window,"10010.1.309"))||"昨天末",con:n.YESTERDAY_END},{name:(null==(wo=window.getLanguageByCode)?void 0:wo.call(window,"10010.1.310"))||"明天初",title:(null==(ao=window.getLanguageByCode)?void 0:ao.call(window,"10010.1.310"))||"明天初",con:n.TOMORROW_START},{name:(null==(io=window.getLanguageByCode)?void 0:io.call(window,"10010.1.311"))||"明天末",title:(null==(go=window.getLanguageByCode)?void 0:go.call(window,"10010.1.311"))||"明天末",con:n.TOMORROW_END},{name:(null==(uo=window.getLanguageByCode)?void 0:uo.call(window,"10010.1.301"))||"本周初",title:(null==(to=window.getLanguageByCode)?void 0:to.call(window,"10010.1.301"))||"本周初",con:n.WEEK_START},{name:(null==(Eo=window.getLanguageByCode)?void 0:Eo.call(window,"10010.1.302"))||"本周末",title:(null==(To=window.getLanguageByCode)?void 0:To.call(window,"10010.1.302"))||"本周末",con:n.WEEK_END},{name:(null==(co=window.getLanguageByCode)?void 0:co.call(window,"10010.1.303"))||"本月初",title:(null==(Lo=window.getLanguageByCode)?void 0:Lo.call(window,"10010.1.303"))||"本月初",con:n.MONTH_START},{name:(null==(Ao=window.getLanguageByCode)?void 0:Ao.call(window,"10010.1.304"))||"本月末",title:(null==(_o=window.getLanguageByCode)?void 0:_o.call(window,"10010.1.304"))||"本月末",con:n.MONTH_END},{name:(null==(vo=window.getLanguageByCode)?void 0:vo.call(window,"10010.1.402"))||"今年初",title:(null==(yo=window.getLanguageByCode)?void 0:yo.call(window,"10010.1.402"))||"今年初",con:n.YEAR_START},{name:(null==(Bo=window.getLanguageByCode)?void 0:Bo.call(window,"10010.1.403"))||"今年未",title:(null==(Co=window.getLanguageByCode)?void 0:Co.call(window,"10010.1.403"))||"今年未",con:n.YEAR_END}],[l.DATETIME_DATETIME_PAST]:[{name:(null==(Do=window.getLanguageByCode)?void 0:Do.call(window,"10010.1.305"))||"当前时间",title:(null==(Ro=window.getLanguageByCode)?void 0:Ro.call(window,"10010.1.305"))||"当前时间",con:n.NOW},{name:(null==(Mo=window.getLanguageByCode)?void 0:Mo.call(window,"10010.1.306"))||"今天初",title:(null==(Oo=window.getLanguageByCode)?void 0:Oo.call(window,"10010.1.306"))||"今天初",con:n.TODAY_START},{name:(null==(mo=window.getLanguageByCode)?void 0:mo.call(window,"10010.1.308"))||"昨天初",title:(null==(Io=window.getLanguageByCode)?void 0:Io.call(window,"10010.1.308"))||"昨天初",con:n.YESTERDAY_START},{name:(null==(No=window.getLanguageByCode)?void 0:No.call(window,"10010.1.309"))||"昨天末",title:(null==(So=window.getLanguageByCode)?void 0:So.call(window,"10010.1.309"))||"昨天末",con:n.YESTERDAY_END},{name:(null==(Ho=window.getLanguageByCode)?void 0:Ho.call(window,"10010.1.301"))||"本周初",title:(null==(Wo=window.getLanguageByCode)?void 0:Wo.call(window,"10010.1.301"))||"本周初",con:n.WEEK_START},{name:(null==(Uo=window.getLanguageByCode)?void 0:Uo.call(window,"10010.1.303"))||"本月初",title:(null==(Yo=window.getLanguageByCode)?void 0:Yo.call(window,"10010.1.303"))||"本月初",con:n.MONTH_START},{name:(null==(Go=window.getLanguageByCode)?void 0:Go.call(window,"10010.1.402"))||"今年初",title:(null==(bo=window.getLanguageByCode)?void 0:bo.call(window,"10010.1.402"))||"今年初",con:n.YEAR_START}],[l.DATETIME_DATETIME_FUTURE]:[{name:(null==(Fo=window.getLanguageByCode)?void 0:Fo.call(window,"10010.1.305"))||"当前时间",title:(null==(Ko=window.getLanguageByCode)?void 0:Ko.call(window,"10010.1.305"))||"当前时间",con:n.NOW},{name:(null==(Po=window.getLanguageByCode)?void 0:Po.call(window,"10010.1.307"))||"今天末",title:(null==(Qo=window.getLanguageByCode)?void 0:Qo.call(window,"10010.1.307"))||"今天末",con:n.TODAY_END},{name:(null==(Xo=window.getLanguageByCode)?void 0:Xo.call(window,"10010.1.310"))||"明天初",title:(null==(ro=window.getLanguageByCode)?void 0:ro.call(window,"10010.1.310"))||"明天初",con:n.TOMORROW_START},{name:(null==(so=window.getLanguageByCode)?void 0:so.call(window,"10010.1.311"))||"明天末",title:(null==(po=window.getLanguageByCode)?void 0:po.call(window,"10010.1.311"))||"明天末",con:n.TOMORROW_END},{name:(null==(fo=window.getLanguageByCode)?void 0:fo.call(window,"10010.1.302"))||"本周末",title:(null==(jo=window.getLanguageByCode)?void 0:jo.call(window,"10010.1.302"))||"本周末",con:n.WEEK_END},{name:(null==(xo=window.getLanguageByCode)?void 0:xo.call(window,"10010.1.304"))||"本月末",title:(null==(ho=window.getLanguageByCode)?void 0:ho.call(window,"10010.1.304"))||"本月末",con:n.MONTH_END},{name:(null==(ko=window.getLanguageByCode)?void 0:ko.call(window,"10010.1.403"))||"今年未",title:(null==(qo=window.getLanguageByCode)?void 0:qo.call(window,"10010.1.403"))||"今年未",con:n.YEAR_END}]};export{zo as DateExtraMap,Vo as DateExtraOptions,$o as widgetDateValOptions};
@@ -1 +1 @@
1
- import{WidgetValEnums as e}from"../../../types/enums.js";const o={label:"全部",value:e.WHOLE};export{o as WholeSelectObj};
1
+ import{WidgetValEnums as e}from"../../../types/enums.js";var o;const l={label:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.123"))||"全部",value:e.WHOLE};export{l as WholeSelectObj};
@@ -9,6 +9,7 @@ declare const _default: import("vue").DefineComponent<{
9
9
  }, any, {
10
10
  initialProps: {};
11
11
  }, {
12
+ cfgItem(): Record<string, any>;
12
13
  valueCp(): any;
13
14
  unit(): any;
14
15
  isAccurateSearchVal(): any;
@@ -24,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
24
25
  handleUpdate(val: any): void;
25
26
  handleUpdateUnit(val: any): void;
26
27
  handleUpdateAccurateSearch(val: any): void;
27
- }, 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<{
28
+ }, 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<{
28
29
  cfg: {
29
30
  type: ObjectConstructor;
30
31
  required: true;
@@ -34,6 +35,7 @@ declare const _default: import("vue").DefineComponent<{
34
35
  };
35
36
  }>> & {
36
37
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
38
+ onItemChange?: ((...args: any[]) => any) | undefined;
37
39
  "onUpdate:unit"?: ((...args: any[]) => any) | undefined;
38
40
  "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
39
41
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as a}from"./widgetCfgMaps.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";const n=[i.DATE,i.DATE_TIME,i.CHECKBOX_GROUP];var s=r(e({props:{cfg:{type:Object,required:!0},modelValue:{type:[Array,String,Number]}},emits:["update:modelValue","update:unit","update:isAccurate","outFilterChange"],computed:{valueCp(){return this.cfg.widgetType==i.INPUT_NUMBER&&this.cfg.value?Number(this.cfg.value):this.cfg.value},unit(){return this.cfg.unit},isAccurateSearchVal(){return this.cfg.isAccurateSearchVal}},data:()=>({initialProps:{}}),methods:{search(){this.$emit("outFilterChange")},getEleWidth(e){const{widgetType:t,widgetCfg:a,filterExplicit:r}=e;if(n.includes(t))return;const s=i.SELECT!==t&&i.SELECTLABEL!==t&&i.SELECTDYNAMIC!==t&&i.SELECTTREE!==t&&i.SELECTTREEDYNAMIC!==t||!a.multiple?"100%":"200px";return{width:0===r?"100%":e.advanceColWidth?`${e.advanceColWidth}px`:s}},initComponentProps(e){const{widgetType:t,alias:i,title:r,placeholder:n,widgetCfg:s,accurateSearch:l,filterExplicit:c,componentProps:u={}}=e,{props:p,handlerProps:h}=a.get(t);let d={...p,accurateSearch:l,filterExplicit:c,...u};h&&(d=h(d,{...s,title:i||r})),n&&(d.placeholder=n),this.initialProps=d,d.value&&(this.valueCp=d.value)},generateWidget(e){const{widgetType:i}=e;if(!a.has(i))return null;const{value:r}=e,{component:n,style:s,eventsBySearch:l=[]}=a.get(i),c={...this.initialProps,value:r,componentCfg:e},u=l.reduce(((e,t)=>{const{name:i,handler:a}=t;let r=this.search;return a&&(r=e=>{a(e,this.search,c)}),{...e,[`on${i}`]:r}}),{});return t(n,{...s,...c,style:this.getEleWidth(e),value:this.valueCp,unit:this.unit,isAccurateSearchVal:this.isAccurateSearchVal,"onUpdate:value":e=>this.handleUpdate(e),"onUpdate:unit":e=>this.handleUpdateUnit(e),"onUpdate:isAccurate":e=>this.handleUpdateAccurateSearch(e),...u})},handleUpdate(e){this.$emit("update:modelValue",e)},handleUpdateUnit(e){this.$emit("update:unit",e)},handleUpdateAccurateSearch(e){this.$emit("update:isAccurate",e)}},created(){this.initComponentProps(this.cfg)},render(){return this.generateWidget(this.cfg)}}),[["__file","index.vue"]]);export{s as default};
1
+ import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as a}from"./widgetCfgMaps.js";import{cloneDeep as r}from"lodash-es";import n from"../../../../../_virtual/_plugin-vue_export-helper.js";const s=[i.DATE,i.DATE_TIME,i.CHECKBOX_GROUP];var l=n(e({props:{cfg:{type:Object,required:!0},modelValue:{type:[Array,String,Number]}},emits:["update:modelValue","update:unit","update:isAccurate","outFilterChange","itemChange"],computed:{cfgItem(){return r(this.cfg)},valueCp(){return this.cfg.widgetType==i.INPUT_NUMBER&&this.cfg.value?Number(this.cfg.value):this.cfg.value},unit(){return this.cfg.unit},isAccurateSearchVal(){return this.cfg.isAccurateSearchVal}},watch:{cfgItem:{handler(e,t){e.value!=t.value&&this.$emit("itemChange",e)},deep:!0}},data:()=>({initialProps:{}}),methods:{search(){this.$emit("outFilterChange")},getEleWidth(e){const{widgetType:t,widgetCfg:a,filterExplicit:r}=e;if(s.includes(t))return;const n=i.SELECT!==t&&i.SELECTLABEL!==t&&i.SELECTDYNAMIC!==t&&i.SELECTTREE!==t&&i.SELECTTREEDYNAMIC!==t||!a.multiple?"100%":"200px";return{width:0===r?"100%":e.advanceColWidth?`${e.advanceColWidth}px`:n}},initComponentProps(e){const{widgetType:t,alias:i,title:r,placeholder:n,widgetCfg:s,accurateSearch:l,filterExplicit:c,componentProps:u={}}=e,{props:h,handlerProps:p}=a.get(t);let d={...h,accurateSearch:l,filterExplicit:c,...u};p&&(d=p(d,{...s,title:i||r})),n&&(d.placeholder=n),this.initialProps=d,d.value&&(this.valueCp=d.value)},generateWidget(e){const{widgetType:i}=e;if(!a.has(i))return null;const{value:r}=e,{component:n,style:s,eventsBySearch:l=[]}=a.get(i),c={...this.initialProps,value:r,componentCfg:e},u=l.reduce(((e,t)=>{const{name:i,handler:a}=t;let r=this.search;return a&&(r=e=>{a(e,this.search,c)}),{...e,[`on${i}`]:r}}),{});return t(n,{...s,...c,style:this.getEleWidth(e),value:this.valueCp,unit:this.unit,isAccurateSearchVal:this.isAccurateSearchVal,"onUpdate:value":e=>this.handleUpdate(e),"onUpdate:unit":e=>this.handleUpdateUnit(e),"onUpdate:isAccurate":e=>this.handleUpdateAccurateSearch(e),...u})},handleUpdate(e){this.$emit("update:modelValue",e)},handleUpdateUnit(e){this.$emit("update:unit",e)},handleUpdateAccurateSearch(e){this.$emit("update:isAccurate",e)}},created(){this.initComponentProps(this.cfg)},render(){return this.generateWidget(this.cfg)}}),[["__file","index.vue"]]);export{l as default};
@@ -1 +1 @@
1
- import{WidgetTypeEnums as e,WidgetValEnums as l}from"../../types/enums.js";import{DatePresetValEnums as t,DateRangeOutDefEnums as a}from"./enums.js";import{NInputNumber as r}from"naive-ui";import{InputNumberGroup as o,InputCustom as n,Select as p,SelectDynamic as s,DateInner as i,DateOut as u,DateRangeInner as c,DateRangeOut as m,CheckboxGroup as d,LabelInner as h,LabelOut as y,SelectTree as E,SelectTreeDynamic as f}from"./components/index.js";import{presetValToTimestamp as D,formatDateRangeInfo as M}from"./helpers/presetValToTimestamp.js";import{setSelectDynamicValue as T}from"./helpers/setDefaultValue.js";const P=e=>null==e?null:e,v=new Map([[e.INPUT_NUMBER,{component:r,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:P}],[e.INPUTNUMBER_RANGE,{component:o,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l,filterExplicit:t}={})=>({...e,startPlaceholder:1===t?`起始${l}`:"最小值",endPlaceholder:1===t?`截止${l}`:"最大值"}),setDefaultValue:P}],[e.INPUT,{component:n,props:{clearable:!0,allowInput:e=>!e.startsWith(" ")&&!e.endsWith(" ")},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:P}],[e.SELECT,{component:p,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{multiple:l,title:t}={}){const a={...e,placeholder:`请选择${t}`};return l&&(a.multiple=!0),a},setDefaultValue:(e,t,a)=>t&&"boolean"==typeof(null==a?void 0:a.multiple)?a.multiple?[l.WHOLE]:l.WHOLE:e}],[e.SELECTDYNAMIC,{component:s,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,l={}){const{multiple:t,title:a}=l,r={...e,placeholder:`请选择${a}`};return t&&(r.multiple=!0),r},setDefaultValue:async(e,l,t)=>l&&(null==t?void 0:t._cfg)?await T(null==t?void 0:t._cfg):e}],[e.DATE,{component:i,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:P}],[e.DATE_OUT,{component:u,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?D(l,"YYYY-MM-DD"):e}],[e.DATE_RANGE_INNER,{component:c,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:P}],[e.DATE_RANGE_OUT,{component:m,props:{type:"daterange",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l,t)=>l&&l!==a.CUSTOM&&(null==t?void 0:t.optSetting)?M(l,"YYYY-MM-DD",t.optSetting):e}],[e.DATE_TIME,{component:i,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:P}],[e.DATETIME_OUT,{component:u,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?D(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATETIME_RANGE_INNER,{component:c,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:P}],[e.DATETIME_RANGE_OUT,{component:m,props:{type:"datetimerange",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l,a)=>l&&l!==t.CUSTOM&&(null==a?void 0:a.optSetting)?M(l,"YYYY-MM-DD HH:mm:ss",a.optSetting):e}],[e.CHECKBOX_GROUP,{component:d,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const a={...e,multiple:t};return Array.isArray(l)&&(a.options=l.map((({value:e,label:l})=>({value:e,label:l})))),a},setDefaultValue:P}],[e.LABEL,{component:h,props:{},handlerProps:e=>({...e}),setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTLABEL,{component:y,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},handlerProps(e,l={}){const{multiple:t,title:a}=l,r={...e,placeholder:`请选择${a}`};return t&&(r.multiple=!0),r},setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTTREE,{component:E,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{multiple:l,title:t}={}){const a={...e,placeholder:`请选择${t}`};return l&&(a.multiple=!0),a},setDefaultValue:e=>e}],[e.SELECTTREEDYNAMIC,{component:f,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{multiple:l,title:t}={}){const a={...e,placeholder:`请选择${t}`};return l&&(a.multiple=!0),a},setDefaultValue:e=>e}]]);export{v as WidgetCfgMaps};
1
+ import{WidgetTypeEnums as e,WidgetValEnums as l}from"../../types/enums.js";import{DatePresetValEnums as t,DateRangeOutDefEnums as a}from"./enums.js";import{NInputNumber as r}from"naive-ui";import{InputNumberGroup as o,InputCustom as n,Select as p,SelectDynamic as s,DateInner as i,DateOut as u,DateRangeInner as c,DateRangeOut as m,CheckboxGroup as d,LabelInner as y,LabelOut as h,SelectTree as E,SelectTreeDynamic as f}from"./components/index.js";import{presetValToTimestamp as D,formatDateRangeInfo as M}from"./helpers/presetValToTimestamp.js";import{setSelectDynamicValue as T}from"./helpers/setDefaultValue.js";const v=e=>null==e?null:e,P=new Map([[e.INPUT_NUMBER,{component:r,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:v}],[e.INPUTNUMBER_RANGE,{component:o,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps(e,{title:l,filterExplicit:t}={}){var a,r;return{...e,startPlaceholder:1===t?`起始${l}`:(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.372"))||"最小值",endPlaceholder:1===t?`截止${l}`:(null==(r=window.getLanguageByCode)?void 0:r.call(window,"10010.1.373"))||"最大值"}},setDefaultValue:v}],[e.INPUT,{component:n,props:{clearable:!0,allowInput:e=>!e.startsWith(" ")&&!e.endsWith(" ")},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:v}],[e.SELECT,{component:p,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{multiple:l,title:t}={}){const a={...e,placeholder:`请选择${t}`};return l&&(a.multiple=!0),a},setDefaultValue:(e,t,a)=>t&&"boolean"==typeof(null==a?void 0:a.multiple)?a.multiple?[l.WHOLE]:l.WHOLE:e}],[e.SELECTDYNAMIC,{component:s,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,l={}){const{multiple:t,title:a}=l,r={...e,placeholder:`请选择${a}`};return t&&(r.multiple=!0),r},setDefaultValue:async(e,l,t)=>l&&(null==t?void 0:t._cfg)?await T(null==t?void 0:t._cfg):e}],[e.DATE,{component:i,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:v}],[e.DATE_OUT,{component:u,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?D(l,"YYYY-MM-DD"):e}],[e.DATE_RANGE_INNER,{component:c,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:v}],[e.DATE_RANGE_OUT,{component:m,props:{type:"daterange",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l,t)=>l&&l!==a.CUSTOM&&(null==t?void 0:t.optSetting)?M(l,"YYYY-MM-DD",t.optSetting):e}],[e.DATE_TIME,{component:i,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:v}],[e.DATETIME_OUT,{component:u,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?D(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATETIME_RANGE_INNER,{component:c,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:v}],[e.DATETIME_RANGE_OUT,{component:m,props:{type:"datetimerange",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l,a)=>l&&l!==t.CUSTOM&&(null==a?void 0:a.optSetting)?M(l,"YYYY-MM-DD HH:mm:ss",a.optSetting):e}],[e.CHECKBOX_GROUP,{component:d,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const a={...e,multiple:t};return Array.isArray(l)&&(a.options=l.map((({value:e,label:l})=>({value:e,label:l})))),a},setDefaultValue:v}],[e.LABEL,{component:y,props:{},handlerProps:e=>({...e}),setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTLABEL,{component:h,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},handlerProps(e,l={}){const{multiple:t,title:a}=l,r={...e,placeholder:`请选择${a}`};return t&&(r.multiple=!0),r},setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTTREE,{component:E,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{multiple:l,title:t}={}){const a={...e,placeholder:`请选择${t}`};return l&&(a.multiple=!0),a},setDefaultValue:e=>e}],[e.SELECTTREEDYNAMIC,{component:f,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{multiple:l,title:t}={}){const a={...e,placeholder:`请选择${t}`};return l&&(a.multiple=!0),a},setDefaultValue:e=>e}]]);export{P as WidgetCfgMaps};
@@ -1 +1 @@
1
- import{DateRangeOutDefEnums as l}from"../components/render-widget/enums.js";const e=[{label:"今天",value:l.TODAY},{label:"明天",value:l.TOMORROW},{label:"昨天",value:l.YESTERDAY},{label:"本周",value:l.THIS_WEEK},{label:"下周",value:l.NEXT_WEEK},{label:"上周",value:l.LAST_WEEK},{label:"近一周",value:l.PAST_WEEK},{label:"本月",value:l.THIS_MONTH},{label:"上月",value:l.LAST_MONTH},{label:"近一月",value:l.PAST_MONTH},{label:"下月",value:l.NEXT_MONTH},{label:"本季度",value:l.THIS_QUARTER},{label:"上季度",value:l.LAST_QUARTER},{label:"下季度",value:l.NEXT_QUARTER},{label:"本年",value:l.THIS_YEAR},{label:"上年",value:l.LAST_YEAR},{label:"下年",value:l.NEXT_YEAR},{label:"近半年",value:l.PAST_HALF_YEAR}];export{e as widgetDateRangeOptions};
1
+ import{DateRangeOutDefEnums as l}from"../components/render-widget/enums.js";var e,a,o,n,d,w,i,g,u,v,T,t,L,E,c,b,y,B;const C=[{label:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.134"))||"今天",value:l.TODAY},{label:(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.300"))||"明天",value:l.TOMORROW},{label:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.132"))||"昨天",value:l.YESTERDAY},{label:(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.47"))||"本周",value:l.THIS_WEEK},{label:(null==(d=window.getLanguageByCode)?void 0:d.call(window,"10010.1.323"))||"下周",value:l.NEXT_WEEK},{label:(null==(w=window.getLanguageByCode)?void 0:w.call(window,"10010.1.324"))||"上周",value:l.LAST_WEEK},{label:(null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.392"))||"近一周",value:l.PAST_WEEK},{label:(null==(g=window.getLanguageByCode)?void 0:g.call(window,"10010.1.404"))||"本月",value:l.THIS_MONTH},{label:(null==(u=window.getLanguageByCode)?void 0:u.call(window,"10010.1.326"))||"上月",value:l.LAST_MONTH},{label:(null==(v=window.getLanguageByCode)?void 0:v.call(window,"10010.1.393"))||"近一月",value:l.PAST_MONTH},{label:(null==(T=window.getLanguageByCode)?void 0:T.call(window,"10010.1.325"))||"下月",value:l.NEXT_MONTH},{label:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.327"))||"本季度",value:l.THIS_QUARTER},{label:(null==(L=window.getLanguageByCode)?void 0:L.call(window,"10010.1.329"))||"上季度",value:l.LAST_QUARTER},{label:(null==(E=window.getLanguageByCode)?void 0:E.call(window,"10010.1.328"))||"下季度",value:l.NEXT_QUARTER},{label:(null==(c=window.getLanguageByCode)?void 0:c.call(window,"10010.1.330"))||"本年",value:l.THIS_YEAR},{label:(null==(b=window.getLanguageByCode)?void 0:b.call(window,"10010.1.358"))||"上年",value:l.LAST_YEAR},{label:(null==(y=window.getLanguageByCode)?void 0:y.call(window,"10010.1.331"))||"下年",value:l.NEXT_YEAR},{label:(null==(B=window.getLanguageByCode)?void 0:B.call(window,"10010.1.397"))||"近半年",value:l.PAST_HALF_YEAR}];export{C as widgetDateRangeOptions};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,watch as s,openBlock as r,createElementBlock as l,normalizeStyle as a,unref as o,createElementVNode as i,Fragment as u,renderList as n,normalizeClass as c,toDisplayString as m,renderSlot as p,createVNode as d,withCtx as v,createTextVNode as f}from"vue";import{NButton as h}from"naive-ui";import{range as k}from"lodash-es";import{useTheme as g}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../shared/hooks/useScrollLoading.js";import b from"../../../shared/assets/img/tooth/tooth.png.js";const C={class:"quadrant-wrapper"},$=["src"],y=["onClick"],_=["onClick"],j={class:"btn-wrapper"};var x=e({__name:"ToothBitmap",props:{value:{type:Array,default:()=>[]}},emits:["update:value"],setup(e,{expose:x,emit:z}){const S=e,q=g(),w=["r-t","l-t","r-b","l-b"],A=k(1,9),B=t([]);function D(e,t){return b.imgs[`${e}-${t}`]}function T(e){switch(e){case 1:return"A";case 2:return"B";case 3:return"C";case 4:return"D";case 5:return"E";default:return""}}function E(e,t,s){return B.value.some((r=>{const[l,a,o]=r.split("-"),i=e===`${l}-${a}`,u=i&&t===+o,n=T(t),c=n&&i&&n==o;return"num"===s&&u||"letter"===s&&c||"img"===s&&(u||c)}))}function H(e,t,s){if(t>5&&"letter"===s)return;let r;const l=T(t),a=B.value.findIndex((s=>{const[a,o,i]=s.split("-");return r=i,e===`${a}-${o}`&&[t.toString(),l].includes(i)})),o=`${e}-${"letter"===s?l:t}`;a>-1?"letter"===s&&l==r||"num"===s&&t==r?B.value.splice(a,1):"letter"===s&&t==r||"num"===s&&l==r?B.value.splice(a,1,o):B.value.push(o):B.value.push(o)}function I(){z("update:value",B.value)}function L(){B.value=[]}function O(){B.value=Object.keys(b.imgs)}function F(){B.value=S.value.slice()}return s((()=>S.value),(e=>{B.value=e.slice()}),{immediate:!0}),x({getSelectedData:()=>B.value}),(e,t)=>(r(),l("div",{class:"c-tooth-bitmap",style:a(o(q))},[i("div",C,[(r(),l(u,null,n(w,(e=>i("div",{class:"quadrant-box",key:e},[(r(!0),l(u,null,n(o(A),(t=>(r(),l("div",{class:"quadrant-box__col",key:t},[i("div",{class:c({img:!0,border:E(e,t,"img")})},[i("img",{src:D(e,t),alt:""},null,8,$)],2),i("span",{class:c({border:E(e,t,"num")}),onClick:()=>H(e,t,"num")},m(t),11,y),i("span",{class:c({border:E(e,t,"letter")}),onClick:()=>H(e,t,"letter")},m(T(t)),11,_)])))),128))]))),64))]),i("div",j,[p(e.$slots,"footer",{},(()=>[d(o(h),{size:"small",type:"primary",onClick:I},{default:v((()=>[f("确定")])),_:1}),d(o(h),{size:"small",onClick:L},{default:v((()=>[f("重置")])),_:1}),d(o(h),{size:"small",onClick:O},{default:v((()=>[f("全选")])),_:1}),d(o(h),{size:"small",onClick:F},{default:v((()=>[f("取消")])),_:1})]))])],4))}});export{x as default};
1
+ import{defineComponent as e,ref as t,watch as l,openBlock as r,createElementBlock as a,normalizeStyle as o,unref as s,createElementVNode as n,Fragment as i,renderList as u,normalizeClass as c,toDisplayString as d,renderSlot as m,createVNode as p,withCtx as v,createTextVNode as f}from"vue";import{NButton as g}from"naive-ui";import{range as h}from"lodash-es";import{useTheme as w}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../shared/hooks/useScrollLoading.js";import k from"../../../shared/assets/img/tooth/tooth.png.js";const C={class:"quadrant-wrapper"},y=["src"],b=["onClick"],$=["onClick"],_={class:"btn-wrapper"};var j=e({__name:"ToothBitmap",props:{value:{type:Array,default:()=>[]}},emits:["update:value"],setup(e,{expose:j,emit:x}){const B=e,L=w(),z=["r-t","l-t","r-b","l-b"],S=h(1,9),q=t([]);function A(e,t){return k.imgs[`${e}-${t}`]}function D(e){switch(e){case 1:return"A";case 2:return"B";case 3:return"C";case 4:return"D";case 5:return"E";default:return""}}function T(e,t,l){return q.value.some((r=>{const[a,o,s]=r.split("-"),n=e===`${a}-${o}`,i=n&&t===+s,u=D(t),c=u&&n&&u==s;return"num"===l&&i||"letter"===l&&c||"img"===l&&(i||c)}))}function E(e,t,l){if(t>5&&"letter"===l)return;let r;const a=D(t),o=q.value.findIndex((l=>{const[o,s,n]=l.split("-");return r=n,e===`${o}-${s}`&&[t.toString(),a].includes(n)})),s=`${e}-${"letter"===l?a:t}`;o>-1?"letter"===l&&a==r||"num"===l&&t==r?q.value.splice(o,1):"letter"===l&&t==r||"num"===l&&a==r?q.value.splice(o,1,s):q.value.push(s):q.value.push(s)}function H(){x("update:value",q.value)}function I(){q.value=[]}function O(){q.value=Object.keys(k.imgs)}function F(){q.value=B.value.slice()}return l((()=>B.value),(e=>{q.value=e.slice()}),{immediate:!0}),j({getSelectedData:()=>q.value}),(e,t)=>(r(),a("div",{class:"c-tooth-bitmap",style:o(s(L))},[n("div",C,[(r(),a(i,null,u(z,(e=>n("div",{class:"quadrant-box",key:e},[(r(!0),a(i,null,u(s(S),(t=>(r(),a("div",{class:"quadrant-box__col",key:t},[n("div",{class:c({img:!0,border:T(e,t,"img")})},[n("img",{src:A(e,t),alt:""},null,8,y)],2),n("span",{class:c({border:T(e,t,"num")}),onClick:()=>E(e,t,"num")},d(t),11,b),n("span",{class:c({border:T(e,t,"letter")}),onClick:()=>E(e,t,"letter")},d(D(t)),11,$)])))),128))]))),64))]),n("div",_,[m(e.$slots,"footer",{},(()=>[p(s(g),{size:"small",type:"primary",onClick:H},{default:v((()=>{var e;return[f((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.27"))||"确定")]})),_:1}),p(s(g),{size:"small",onClick:I},{default:v((()=>{var e;return[f((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.406"))||"重置")]})),_:1}),p(s(g),{size:"small",onClick:O},{default:v((()=>{var e;return[f((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1}),p(s(g),{size:"small",onClick:F},{default:v((()=>{var e;return[f((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.28"))||"取消")]})),_:1})]))])],4))}});export{j as default};
@@ -1 +1 @@
1
- import{computed as e}from"vue";const n=(n,a,r)=>{const o=()=>({Authorization:"bearer "+a.uploadConfig.token}),t=e=>{var n;return(null==(n=null==a?void 0:a.uploadConfig)?void 0:n.partFileUpload)||""},s=(e,n)=>({channel:c.value,md5:n.uniqueIdentifier,name:e.filename,chunk:e.chunkNumber-1,chunks:e.totalChunks,chunkSize:e.currentChunkSize}||e),l=(e,n,a,r)=>{n(null,e)},u=(e,n)=>n.replace(/\syears?/,"年").replace(/\days?/,"天").replace(/\shours?/,"小时").replace(/\sminutes?/,"分钟").replace(/\sseconds?/,"秒"),p=e((()=>!1)),i=e((()=>({accept:n.propsCategoryMap}))),c=e((()=>{const e=a.uploadConfig;if(0===Object.keys(e||{}).length)return;return("file"===n.uploaderType?e.fileChannel:e.channel)||e.fileChannel})),h=e((()=>({type:n.uploaderType,channel:c.value})));return e((()=>({...h.value,share:a.share}))),{initState:()=>{a.options.target=t,a.options.headers=o,a.options.processParams=s,a.options.parseTimeRemaining=u,a.options.processResponse=l},uploadArguments:h,autoStart:p,btnAttrs:i}};export{n as UploadComputed};
1
+ import{computed as e}from"vue";const n=(n,a,o)=>{const l=()=>({Authorization:"bearer "+a.uploadConfig.token}),r=e=>{var n;return(null==(n=null==a?void 0:a.uploadConfig)?void 0:n.partFileUpload)||""},t=(e,n)=>({channel:d.value,md5:n.uniqueIdentifier,name:e.filename,chunk:e.chunkNumber-1,chunks:e.totalChunks,chunkSize:e.currentChunkSize}||e),i=(e,n,a,o)=>{n(null,e)},u=(e,n)=>{var a,o,l;return n.replace(/\syears?/,(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.349"))||"年").replace(/\days?/,(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.144"))||"天").replace(/\shours?/,(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.350"))||"小时").replace(/\sminutes?/,"分钟").replace(/\sseconds?/,"秒")},s=e((()=>!1)),p=e((()=>({accept:n.propsCategoryMap}))),d=e((()=>{const e=a.uploadConfig;if(0===Object.keys(e||{}).length)return;return("file"===n.uploaderType?e.fileChannel:e.channel)||e.fileChannel})),c=e((()=>({type:n.uploaderType,channel:d.value})));return e((()=>({...c.value,share:a.share}))),{initState:()=>{a.options.target=r,a.options.headers=l,a.options.processParams=t,a.options.parseTimeRemaining=u,a.options.processResponse=i},uploadArguments:c,autoStart:s,btnAttrs:p}};export{n as UploadComputed};
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,computed as l,onMounted as s,openBlock as i,createElementBlock as a,withDirectives as t,normalizeClass as r,unref as n,createElementVNode as d,Fragment as u,toDisplayString as p,vShow as m,createCommentVNode as c,createVNode as v,withCtx as f,normalizeStyle as g,createTextVNode as h,withModifiers as k,createBlock as y}from"vue";import"xe-utils";import"moment";import b from"../../../../shared/utils/vexutilsExpand.js";import{getVodData as C}from"../hooks/vod-data.js";import{VodComputed as U}from"../hooks/vod-computed.js";import L from"../../../../shared/components/player-vod/video-modal.js";import V from"../vod-upload-modal.js";import{NIcon as D,NButton as x}from"naive-ui";import{PlayCircleSharp as O,PlayCircleOutline as S,RemoveCircleSharp as w}from"@vicons/ionicons5";import _ from"../../../../shared/assets/img/video_default_cover.png.js";import j from"../../../../shared/assets/img/video.png.js";import z from"../../../../shared/assets/img/success.png.js";import F from"../../../../shared/components/VueDraggable/src/vuedraggable.js";const N={class:"c-upload"},M={class:"chunk-btn-content"},A={class:"c-uploader-btn"},J=["src"],B={class:"uploader-text"},E=d("p",null,"点击上传",-1),P={class:"guage-text"},T=["src"],R=d("div",{class:"uploader-text"},[d("p",null,"上传视频")],-1),G={class:"vod-wrap c-uploader-preview-wrap"},H={key:0,class:"vod-def-bg vod-uploading"},K={class:"vod-def-bg vod-done"},$=["src"],q=["src"],I={class:"c-icon-wrap"},Q={class:"vod-def-bg vod-error"},W=["src"],X={class:"tooltip-wrap error-wrap"},Y=["onClick"];var Z=e({__name:"vod-chunk-upload",props:{formData:{type:Object,default:()=>({})},source:String,limitNum:{default:1},defFileList:{default:""},isLock:Boolean,isDetail:{type:Boolean,default:!1},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["vodFileList"],setup(e,{emit:Z}){const ee=e,{VodState:oe}=C(),le=o(oe),se={},{isShowBtn:ie,maskHeight:ae,showPercent:te,allow_format:re,defaultValue:ne,isDisabled:de,max_size:ue,maxlength:pe}=U(ee,le,{mainForm:se});console.log(ie.value,"----isShowBtn---",ee.formData.title),l((()=>ve()));const me=l((()=>"guage"==ee.source)),ce=l((()=>{var e,o;return(null==(o=null==(e=ee.formData)?void 0:e.setting)?void 0:o.maxSize)||50})),ve=()=>{const{formData:e}=ee;let o=[];if(o=me.value?ee.defFileList:null==se?void 0:se.handleSysParams(se.defaultValue[e.name]||e.default_val),o=JSON.parse(JSON.stringify(o)),!o)return[];let l=[];return Array.isArray(o)&&(l=[...o]),b.isJSON(o)&&(l=JSON.parse(o)),Array.isArray(l)?(l.forEach((e=>{e.thumbUrl=e.vodCoverUrl||void 0,e.uid=(-Math.random()).toString(),e.status="done"})),le.fileList=l,console.log(le.fileList,"----list---list"),fe(l),l):[]},fe=e=>{if(!Array.isArray(e))return"";const{formData:o}=ee;let l=[];e.forEach((e=>{if("done"===e.status&&(e.response&&"00000"==e.response.code||e.url)){const{data:o={}}=e.response||{};e.url||o.videoUrl;let s=e.vodCoverUrl||o.vodCoverUrl;l.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:s,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(l,"---resList---",ee.formData.title);let s=JSON.stringify(l);me.value?Z("vodFileList",s,ee.formData):se.baseForm.setFieldsValue({[o.val_key]:s})},ge=(e,o)=>{let l,s;if(e.type&&(s=e.type),e.url||e.videoUrl){if(l=e.url||e.videoUrl,!s){let e=l.split(".");s=`video/${e[e.length-1]}`}}else l=URL.createObjectURL(e.originFileObj);le.playerOptions={sources:[{type:s,src:l}]},le.videoVisible=!0},he=()=>{le.videoVisible=!1},ke=()=>{de.value||(le.chunkUploadVisible=!0)},ye=e=>{let o=[];e.forEach((e=>{let l=e.videoCoverPic||void 0;o.push({name:e.videoName||e.name,url:e.videoUrl||e.url,size:e.size,vodCoverUrl:l,status:"done",uid:(-Math.random()).toString()})})),le.fileList.push(...o),fe(le.fileList)},be=()=>{fe(le.fileList)};return s((()=>{ve()})),(o,l)=>(i(),a("div",N,[e.isDetail||ee.isLock?c("v-if",!0):t((i(),a("div",{key:0,class:r(["c-chunk-uploader-btn",{"disable-upload":n(de),"c-chunk-uploader-btn-guage":n(me)}]),onClick:ke},[d("div",M,[d("div",A,[n(me)?(i(),a(u,{key:0},[d("img",{src:n(j),class:"guage-img"},null,8,J),d("div",B,[E,d("span",P,"上传视频(不超过"+p(n(ce))+"M)",1)])],64)):(i(),a(u,{key:1},[d("img",{src:n(j),class:"guage-img"},null,8,T),R],64))])])],2)),[[m,n(ie)]]),v(n(F),{modelValue:le.fileList,"onUpdate:modelValue":l[0]||(l[0]=e=>le.fileList=e),animation:"150",itemKey:"uid",disabled:n(de).value,options:le.draggableOptions,onUpdate:be,class:"drag-content"},{item:f((({element:o,index:l})=>{return[d("div",G,[c(" 上传中 "),"uploading"===o.status?(i(),a("div",H,[c(" TODO: 封面图补充 "),d("div",{class:"uploading-mask",style:g({height:n(ae)(o)})},[d("span",null,p(n(te)(o.percent))+"%",1)],4)])):"done"===o.status?(i(),a(u,{key:1},[c(" 上传完成 "),d("div",K,[d("img",{src:(s=o,s.thumbUrl?s.thumbUrl:_),class:"vod-cover-img"},null,8,$),d("div",{class:r(["tooltip-wrap",{"is-new":o.isNew}])},[d("img",{src:n(z),class:"upload-img"},null,8,q),h(" 上传成功 ")],2),c(" 播放图标 "),d("div",I,[v(n(D),{component:n(O),class:"icon-play theme_filled",onClick:k((e=>ge(o)),["prevent","stop"])},null,8,["component","onClick"]),v(n(D),{component:n(S),class:"icon-play theme_outlined",onClick:k((e=>ge(o)),["prevent","stop"])},null,8,["component","onClick"])])])],2112)):"error"===o.status?(i(),a(u,{key:2},[c(" 上传失败 "),d("div",Q,[d("img",{src:o.thumbUrl,class:"vod-cover-img"},null,8,W),d("div",X,[d("span",null,p(o.message?o.message:"上传失败,继续上传?"),1),v(n(x),{size:"small",onClick:k((e=>{}),["prevent","stop"])},{default:f((()=>[h("确定")])),_:2},1032,["onClick"])])])],2112)):c("v-if",!0),!["done","error"].includes(o.status)||n(de)||e.isDetail?c("v-if",!0):(i(),a("div",{key:3,onClick:k((e=>{return o=l,le.fileList.splice(o,1),void fe(le.fileList);var o}),["stop"]),class:"uploader-preview-delete"},[v(n(D),{class:"pre-delete",component:n(w)},null,8,["component"])],8,Y))])];var s})),_:1},8,["modelValue","disabled","options"]),le.videoVisible?(i(),y(n(L),{key:1,visible:le.videoVisible,formData:ee.formData,playerOptions:le.playerOptions,onCloseVideoModal:he},null,8,["visible","formData","playerOptions"])):c("v-if",!0),v(n(V),{modelValue:le.chunkUploadVisible,"onUpdate:modelValue":l[1]||(l[1]=e=>le.chunkUploadVisible=e),modalTitle:ee.formData.name,max_size:n(ue),maxLength:n(pe),propsCategoryMap:n(re),defaultList:le.fileList,getChunkUploadConfig:e.getChunkUploadConfig,source:ee.source,onGetSumbitList:ye},null,8,["modelValue","modalTitle","max_size","maxLength","propsCategoryMap","defaultList","getChunkUploadConfig","source"])]))}});export{Z as default};
1
+ import{defineComponent as e,reactive as o,computed as l,onMounted as i,openBlock as s,createElementBlock as a,withDirectives as t,normalizeClass as r,unref as n,createElementVNode as d,Fragment as u,toDisplayString as p,vShow as m,createCommentVNode as c,createVNode as v,withCtx as f,normalizeStyle as g,createTextVNode as h,withModifiers as y,createBlock as k}from"vue";import"xe-utils";import"moment";import b from"../../../../shared/utils/vexutilsExpand.js";import{getVodData as C}from"../hooks/vod-data.js";import{VodComputed as U}from"../hooks/vod-computed.js";import L from"../../../../shared/components/player-vod/video-modal.js";import V from"../vod-upload-modal.js";import{NIcon as w,NButton as D}from"naive-ui";import{PlayCircleSharp as x,PlayCircleOutline as O,RemoveCircleSharp as S}from"@vicons/ionicons5";import _ from"../../../../shared/assets/img/video_default_cover.png.js";import j from"../../../../shared/assets/img/video.png.js";import z from"../../../../shared/assets/img/success.png.js";import F from"../../../../shared/components/VueDraggable/src/vuedraggable.js";const N={class:"c-upload"},M={class:"chunk-btn-content"},A={class:"c-uploader-btn"},B=["src"],J={class:"uploader-text"},E=d("p",null,"点击上传",-1),P={class:"guage-text"},T=["src"],R=d("div",{class:"uploader-text"},[d("p",null,"上传视频")],-1),G={class:"vod-wrap c-uploader-preview-wrap"},H={key:0,class:"vod-def-bg vod-uploading"},K={class:"vod-def-bg vod-done"},$=["src"],q=["src"],I={class:"c-icon-wrap"},Q={class:"vod-def-bg vod-error"},W=["src"],X={class:"tooltip-wrap error-wrap"},Y=["onClick"];var Z=e({__name:"vod-chunk-upload",props:{formData:{type:Object,default:()=>({})},source:String,limitNum:{default:1},defFileList:{default:""},isLock:Boolean,isDetail:{type:Boolean,default:!1},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["vodFileList"],setup(e,{emit:Z}){const ee=e,{VodState:oe}=C(),le=o(oe),ie={},{isShowBtn:se,maskHeight:ae,showPercent:te,allow_format:re,defaultValue:ne,isDisabled:de,max_size:ue,maxlength:pe}=U(ee,le,{mainForm:ie});console.log(se.value,"----isShowBtn---",ee.formData.title),l((()=>ve()));const me=l((()=>"guage"==ee.source)),ce=l((()=>{var e,o;return(null==(o=null==(e=ee.formData)?void 0:e.setting)?void 0:o.maxSize)||50})),ve=()=>{const{formData:e}=ee;let o=[];if(o=me.value?ee.defFileList:null==ie?void 0:ie.handleSysParams(ie.defaultValue[e.name]||e.default_val),o=JSON.parse(JSON.stringify(o)),!o)return[];let l=[];return Array.isArray(o)&&(l=[...o]),b.isJSON(o)&&(l=JSON.parse(o)),Array.isArray(l)?(l.forEach((e=>{e.thumbUrl=e.vodCoverUrl||void 0,e.uid=(-Math.random()).toString(),e.status="done"})),le.fileList=l,console.log(le.fileList,"----list---list"),fe(l),l):[]},fe=e=>{if(!Array.isArray(e))return"";const{formData:o}=ee;let l=[];e.forEach((e=>{if("done"===e.status&&(e.response&&"00000"==e.response.code||e.url)){const{data:o={}}=e.response||{};e.url||o.videoUrl;let i=e.vodCoverUrl||o.vodCoverUrl;l.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:i,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(l,"---resList---",ee.formData.title);let i=JSON.stringify(l);me.value?Z("vodFileList",i,ee.formData):ie.baseForm.setFieldsValue({[o.val_key]:i})},ge=(e,o)=>{let l,i;if(e.type&&(i=e.type),e.url||e.videoUrl){if(l=e.url||e.videoUrl,!i){let e=l.split(".");i=`video/${e[e.length-1]}`}}else l=URL.createObjectURL(e.originFileObj);le.playerOptions={sources:[{type:i,src:l}]},le.videoVisible=!0},he=()=>{le.videoVisible=!1},ye=()=>{de.value||(le.chunkUploadVisible=!0)},ke=e=>{let o=[];e.forEach((e=>{let l=e.videoCoverPic||void 0;o.push({name:e.videoName||e.name,url:e.videoUrl||e.url,size:e.size,vodCoverUrl:l,status:"done",uid:(-Math.random()).toString()})})),le.fileList.push(...o),fe(le.fileList)},be=()=>{fe(le.fileList)};return i((()=>{ve()})),(o,l)=>(s(),a("div",N,[e.isDetail||ee.isLock?c("v-if",!0):t((s(),a("div",{key:0,class:r(["c-chunk-uploader-btn",{"disable-upload":n(de),"c-chunk-uploader-btn-guage":n(me)}]),onClick:ye},[d("div",M,[d("div",A,[n(me)?(s(),a(u,{key:0},[d("img",{src:n(j),class:"guage-img"},null,8,B),d("div",J,[E,d("span",P,"上传视频(不超过"+p(n(ce))+"M)",1)])],64)):(s(),a(u,{key:1},[d("img",{src:n(j),class:"guage-img"},null,8,T),R],64))])])],2)),[[m,n(se)]]),v(n(F),{modelValue:le.fileList,"onUpdate:modelValue":l[0]||(l[0]=e=>le.fileList=e),animation:"150",itemKey:"uid",disabled:n(de).value,options:le.draggableOptions,onUpdate:be,class:"drag-content"},{item:f((({element:o,index:l})=>{return[d("div",G,[c(" 上传中 "),"uploading"===o.status?(s(),a("div",H,[c(" TODO: 封面图补充 "),d("div",{class:"uploading-mask",style:g({height:n(ae)(o)})},[d("span",null,p(n(te)(o.percent))+"%",1)],4)])):"done"===o.status?(s(),a(u,{key:1},[c(" 上传完成 "),d("div",K,[d("img",{src:(i=o,i.thumbUrl?i.thumbUrl:_),class:"vod-cover-img"},null,8,$),d("div",{class:r(["tooltip-wrap",{"is-new":o.isNew}])},[d("img",{src:n(z),class:"upload-img"},null,8,q),h(" 上传成功 ")],2),c(" 播放图标 "),d("div",I,[v(n(w),{component:n(x),class:"icon-play theme_filled",onClick:y((e=>ge(o)),["prevent","stop"])},null,8,["component","onClick"]),v(n(w),{component:n(O),class:"icon-play theme_outlined",onClick:y((e=>ge(o)),["prevent","stop"])},null,8,["component","onClick"])])])],2112)):"error"===o.status?(s(),a(u,{key:2},[c(" 上传失败 "),d("div",Q,[d("img",{src:o.thumbUrl,class:"vod-cover-img"},null,8,W),d("div",X,[d("span",null,p(o.message?o.message:"上传失败,继续上传?"),1),v(n(D),{size:"small",onClick:y((e=>{}),["prevent","stop"])},{default:f((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.27"))||"确定")]})),_:2},1032,["onClick"])])])],2112)):c("v-if",!0),!["done","error"].includes(o.status)||n(de)||e.isDetail?c("v-if",!0):(s(),a("div",{key:3,onClick:y((e=>{return o=l,le.fileList.splice(o,1),void fe(le.fileList);var o}),["stop"]),class:"uploader-preview-delete"},[v(n(w),{class:"pre-delete",component:n(S)},null,8,["component"])],8,Y))])];var i})),_:1},8,["modelValue","disabled","options"]),le.videoVisible?(s(),k(n(L),{key:1,visible:le.videoVisible,formData:ee.formData,playerOptions:le.playerOptions,onCloseVideoModal:he},null,8,["visible","formData","playerOptions"])):c("v-if",!0),v(n(V),{modelValue:le.chunkUploadVisible,"onUpdate:modelValue":l[1]||(l[1]=e=>le.chunkUploadVisible=e),modalTitle:ee.formData.name,max_size:n(ue),maxLength:n(pe),propsCategoryMap:n(re),defaultList:le.fileList,getChunkUploadConfig:e.getChunkUploadConfig,source:ee.source,onGetSumbitList:ke},null,8,["modelValue","modalTitle","max_size","maxLength","propsCategoryMap","defaultList","getChunkUploadConfig","source"])]))}});export{Z as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as o,createVNode as l,resolveComponent as t,mergeProps as a,createTextVNode as d}from"vue";import{NModal as n,NCard as p,NButton as u}from"naive-ui";import r from"./chunk-upload-new.vue.js";var i=e({name:"vodUploadModal",components:{NModal:n,NCard:p,NButton:u,chunkUploadCom:r},props:{modalTitle:{type:String,default:"上传"},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{attrs:n,emit:p}){const u=o(null),i=()=>{var e;console.log(u.value),null==(e=u.value)||e.cancel()},m=()=>{p("update:modelValue",!1)},s=()=>{var e;null==(e=u.value)||e.confirm()};console.log(n);const x=()=>l(t("n-modal"),{show:e.modelValue,"onUpdate:show":o=>e.modelValue=o,style:{width:"860px",height:"auto"}},{default:()=>[l(t("n-card"),{style:{width:"860px",height:"770px"},title:e.modalTitle,size:"huge",role:"dialog","aria-modal":"true","header-style":"padding: 14px 16px;border-bottom:1px solid #e8e8e8;font-size:16px;","footer-style":"padding: 10px 16px;border-top:1px solid #e8e8e8;text-align:right;","content-style":"padding: 24px 24px 12px;"},{default:()=>l(r,a(n,{ref:u,uploaderType:"video",onCloseUpload:m}),null),footer:()=>l("div",null,[l(t("n-button"),{"on-click":i,style:{"margin-right":"8px"}},{default:()=>[d("取消")]}),l(t("n-button"),{type:"primary",onClick:s},{default:()=>[d("确定")]})])})]});return()=>x()}});export{i as default};
1
+ import{defineComponent as e,ref as o,createVNode as l,resolveComponent as t,mergeProps as a,createTextVNode as d}from"vue";import{NModal as n,NCard as u,NButton as r}from"naive-ui";import i from"./chunk-upload-new.vue.js";var p=e({name:"vodUploadModal",components:{NModal:n,NCard:u,NButton:r,chunkUploadCom:i},props:{modalTitle:{type:String,default:"上传"},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{attrs:n,emit:u}){const r=o(null),p=()=>{var e;console.log(r.value),null==(e=r.value)||e.cancel()},m=()=>{u("update:modelValue",!1)},s=()=>{var e;null==(e=r.value)||e.confirm()};console.log(n);const g=()=>l(t("n-modal"),{show:e.modelValue,"onUpdate:show":o=>e.modelValue=o,style:{width:"860px",height:"auto"}},{default:()=>[l(t("n-card"),{style:{width:"860px",height:"770px"},title:e.modalTitle,size:"huge",role:"dialog","aria-modal":"true","header-style":"padding: 14px 16px;border-bottom:1px solid #e8e8e8;font-size:16px;","footer-style":"padding: 10px 16px;border-top:1px solid #e8e8e8;text-align:right;","content-style":"padding: 24px 24px 12px;"},{default:()=>l(i,a(n,{ref:r,uploaderType:"video",onCloseUpload:m}),null),footer:()=>l("div",null,[l(t("n-button"),{"on-click":p,style:{"margin-right":"8px"}},{default:()=>{var e;return[d((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.28"))||"取消")]}}),l(t("n-button"),{type:"primary",onClick:s},{default:()=>{var e;return[d((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.27"))||"确定")]}})])})]});return()=>g()}});export{p as default};
@@ -1 +1 @@
1
- import{deepOmit as e}from"../utils/index.js";import"naive-ui";import{computed as t,ref as r,watch as n,unref as i}from"vue";import"@vueuse/core";import"date-fns";import{isEqual as o,noop as a,isString as l,isNumber as u,isEmpty as s,isFunction as c,cloneDeep as d,omit as v,isArray as p}from"lodash-es";import{useFormRequest as h}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"./useScrollLoading.js";function y(y,f,{asyncQueue:m,fieldKey:k,getRequestPayload:g=a}){const b=t({get:()=>y.value,set(e){o(e,y.value)||f("update:value",e)}}),w=r(!1),_=r([]),O=t((()=>{var e,t,r;return null!=(r=null==(t=null==(e=y.wordbook)?void 0:e.show_key)?void 0:t[0])?r:y.labelField})),L=t((()=>{var e,t;return null!=(t=null==(e=y.wordbook)?void 0:e.value_key)?t:y.valueField})),j=t((()=>{var e,t;return null==(t=null==(e=y.wordbook)?void 0:e.render_key)?void 0:t[0]})),C=t((()=>{var e;return(null==(e=y.wordbook)?void 0:e.level_num)||1/0})),K=function(e,t,r){return{transformListToChildren(e){if(!e.length)return[];const t=[(e=d(e))[0]];let r=e[0];for(let t=1;t<e.length;t++){const n=e[t];n&&(r.children=[n],n.parent=r,r=n)}return[e,t]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&r.value&&e[r.value]&&(e[t.value]=e[r.value]),e),sortOptionWithIdList:(t,r)=>r.map((r=>t.find((t=>t[e.value]===r)))),generateOptionWithIdList(t,r,n){let i=t[0];return{options:r.reduce(((e,r,a)=>{const l=o(t,r);return 0===a?(i=l,[l]):(Object.assign(l,{parent:i,isLeaf:a+1>=n}),i.children=[l],i=l,e)}),[]),lastOption:i};function o(t,r){return t.find((t=>t[e.value]===r))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(t,r,n)=>r?t.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:t.level_key,value:n[e.value]}]:t.conObjFirstLevel||[],createOptionValue(e){const t=[];let r=e;for(;r;)t.unshift(v(r,["parent","isLeaf","__keyword","children"])),r=r.parent;return t},shouldInitOptionList:(t,r,n)=>p(t)&&!s(t)&&t.every((t=>t[e.value]))&&!r&&!n}}(L,O,j),{getSearchRequestInfo:I}=h(),N=r(150),R=r();async function x(t,r,n,o=!0){var a,d;if(N.value=r&&(null==(a=R.value)?void 0:a.getWidth())||150,K.shouldInitOptionList(b.value,t,r)){const[e,t]=K.transformListToChildren(b.value),r=e[Math.max(0,e.length-2)];if(b.value.length>1){_.value=t;const r=e[Math.max(0,e.length-2)];return await x(r,void 0,!1,!1),r}if(null==(d=_.value)?void 0:d.length)return r}try{return K.isClickNodeCheckbox(t)?v(t):t?t.__keyword?async function(){var r;if(!l(t.id_link))return Promise.reject(`id_link isn't string "${t.id_link}"`);const o=K.parseLinkFromString2List(t.id_link);u(C.value)&&C.value!==1/0&&o.splice(C.value);const a=await async function(e){if(!I().primaryKeyUrl)return[];try{return await m.addAsync(t(y.wordbook,y.autograph,e,i(k)))}catch(e){l(e)&&console.error(e)}function t(e,t,r,n){const i=I();return{key:n,params:{autograph:t,tableId:e.id,primaryKeyValue:r.join(","),page:1},...i,url:i.primaryKeyUrl,cache:y.requestCache,payload:{field:{},labelKey:O.value,valueKey:L.value}}}}(o);if(!a)return Promise.reject("fetchPrimaryKeyValue failed");const{lastOption:c,options:d}=K.generateOptionWithIdList(a,o,C.value);o.length<C.value&&(n&&(isNaN(+y.checkAbleLevel)||o.length>=+y.checkAbleLevel)?c&&(c.children=[]):await x(c));if(s(null==c?void 0:c.children))return b.value=e(K.sortOptionWithIdList(a,o),["parent","children"]),w.value=!1,Promise.reject("lastOption.children is empty");return _.value=d,null==(r=R.value)||r.setCursor(c),c}():async function(){const e=await m.addAsync(p(y.wordbook,y.autograph,t,i(k)));if(!e.length)return o?v(t):Promise.reject("childrenList is empty");t.children=e.map((e=>K.enrichChildOption(e,t,C.value)))}():async function(){var e;const n=await m.addAsync(p(y.wordbook,y.autograph,t,i(k)));_.value=n.map((e=>K.enrichKeywordOption(e,r))),r&&(null==(e=R.value)||e.setCursor(_.value[0]))}()}catch(e){l(e)&&console.error(e)}function v(e){return b.value=K.createOptionValue(e),w.value=!1,Promise.reject("update value success, no need to continue")}function p(e,t,n,i){const o={autograph:()=>t,wordbookId:"id",wordbookType:"type",fieldKeys:()=>e.search_key?JSON.stringify(e.search_key):void 0,conObj:()=>JSON.stringify(K.createConfigObject(e,r,n)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>r,page:()=>1},a=Object.entries(o).reduce(((t,[r,n])=>(t[r]=l(n)?e[n]:c(n)?n():void 0,t)),{});return{...I(),params:a,key:i,cache:y.requestCache,payload:{...g(),labelKey:O.value,valueKey:L.value}}}}return n((()=>y.wordbook),((e,t)=>{o(e,t)||(_.value=[],e&&(b.value||!y.lazyRequest)&&x())}),{immediate:!0}),{valueRef:b,labelKey:O,valueKey:L,optionsRef:_,showRef:w,fetchData:x,menuWidth:N,searchCascaderRef:R}}export{y as useLevelSearchCascader};
1
+ import{deepOmit as e}from"../utils/index.js";import"naive-ui";import{computed as t,ref as r,watch as n,unref as i}from"vue";import"@vueuse/core";import"date-fns";import{isEqual as o,noop as a,isString as l,isNumber as u,isEmpty as s,isFunction as c,cloneDeep as d,omit as v,isArray as p}from"lodash-es";import{useFormRequest as h}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"./useScrollLoading.js";function y(y,f,{asyncQueue:m,fieldKey:k,getRequestPayload:g=a}){const b=t({get:()=>y.value,set(e){o(e,y.value)||f("update:value",e)}}),w=r(!1),_=r([]),O=t((()=>{var e,t,r;return null!=(r=null==(t=null==(e=y.wordbook)?void 0:e.show_key)?void 0:t[0])?r:y.labelField})),L=t((()=>{var e,t;return null!=(t=null==(e=y.wordbook)?void 0:e.value_key)?t:y.valueField})),j=t((()=>{var e,t;return null==(t=null==(e=y.wordbook)?void 0:e.render_key)?void 0:t[0]})),C=t((()=>{var e;return(null==(e=y.wordbook)?void 0:e.level_num)||1/0})),K=function(e,t,r){return{transformListToChildren(e){if(!e.length)return[];const t=[(e=d(e))[0]];let r=e[0];for(let t=1;t<e.length;t++){const n=e[t];n&&(r.children=[n],n.parent=r,r=n)}return[e,t]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&r.value&&e[r.value]&&(e[t.value]=e[r.value]),e),sortOptionWithIdList:(t,r)=>r.map((r=>t.find((t=>t[e.value]===r)))),generateOptionWithIdList(t,r,n){let i=t[0];return{options:r.reduce(((e,r,a)=>{const l=o(t,r);return 0===a?(i=l,[l]):(Object.assign(l,{parent:i,isLeaf:a+1>=n}),i.children=[l],i=l,e)}),[]),lastOption:i};function o(t,r){return t.find((t=>t[e.value]===r))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(t,r,n)=>r?t.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:t.level_key,value:n[e.value]}]:t.conObjFirstLevel||[],createOptionValue(e){const t=[];let r=e;for(;r;)t.unshift(v(r,["parent","isLeaf","__keyword","children"])),r=r.parent;return t},shouldInitOptionList:(t,r,n)=>p(t)&&!s(t)&&t.every((t=>t[e.value]))&&!r&&!n}}(L,O,j),{getSearchRequestInfo:I}=h(),R=r(150),N=r();async function P(t,r,n,o=!0){var a,d;if(R.value=r&&(null==(a=N.value)?void 0:a.getWidth())||150,K.shouldInitOptionList(b.value,t,r)){const[e,t]=K.transformListToChildren(b.value),r=e[Math.max(0,e.length-2)];if(b.value.length>1){_.value=t;const r=e[Math.max(0,e.length-2)];return await P(r,void 0,!1,!1),r}if(null==(d=_.value)?void 0:d.length)return r}try{return K.isClickNodeCheckbox(t)?v(t):t?t.__keyword?async function(){var r;if(!l(t.id_link))return Promise.reject(`id_link isn't string "${t.id_link}"`);const o=K.parseLinkFromString2List(t.id_link);u(C.value)&&C.value!==1/0&&o.splice(C.value);const a=await async function(e){if(!I().primaryKeyUrl)return[];try{return await m.addAsync(t(y.wordbook,y.autograph,e,i(k)))}catch(e){l(e)&&console.error(e)}function t(e,t,r,n){const i={...I()};Reflect.deleteProperty(i,"mergeUrl");return{key:n,params:{autograph:t,tableId:e.id,primaryKeyValue:r.join(","),page:1},...i,url:i.primaryKeyUrl,cache:y.requestCache,payload:{field:{},labelKey:O.value,valueKey:L.value}}}}(o);if(!a)return Promise.reject("fetchPrimaryKeyValue failed");const{lastOption:c,options:d}=K.generateOptionWithIdList(a,o,C.value);o.length<C.value&&(n&&(isNaN(+y.checkAbleLevel)||o.length>=+y.checkAbleLevel)?c&&(c.children=[]):await P(c));if(s(null==c?void 0:c.children))return b.value=e(K.sortOptionWithIdList(a,o),["parent","children"]),w.value=!1,Promise.reject("lastOption.children is empty");return _.value=d,null==(r=N.value)||r.setCursor(c),c}():async function(){const e=await m.addAsync(p(y.wordbook,y.autograph,t,i(k)));if(!e.length)return o?v(t):Promise.reject("childrenList is empty");t.children=e.map((e=>K.enrichChildOption(e,t,C.value)))}():async function(){var e;const n=await m.addAsync(p(y.wordbook,y.autograph,t,i(k)));_.value=n.map((e=>K.enrichKeywordOption(e,r))),r&&(null==(e=N.value)||e.setCursor(_.value[0]))}()}catch(e){l(e)&&console.error(e)}function v(e){return b.value=K.createOptionValue(e),w.value=!1,Promise.reject("update value success, no need to continue")}function p(e,t,n,i){const o={autograph:()=>t,wordbookId:"id",wordbookType:"type",fieldKeys:()=>e.search_key?JSON.stringify(e.search_key):void 0,conObj:()=>JSON.stringify(K.createConfigObject(e,r,n)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>r,page:()=>1},a=Object.entries(o).reduce(((t,[r,n])=>(t[r]=l(n)?e[n]:c(n)?n():void 0,t)),{});return{...I(),params:a,key:i,cache:y.requestCache,payload:{...g(),labelKey:O.value,valueKey:L.value}}}}return n((()=>y.wordbook),((e,t)=>{o(e,t)||(_.value=[],e&&(b.value||!y.lazyRequest)&&P())}),{immediate:!0}),{valueRef:b,labelKey:O,valueKey:L,optionsRef:_,showRef:w,fetchData:P,menuWidth:R,searchCascaderRef:N}}export{y as useLevelSearchCascader};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",s="3.2.14-release.1",i="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.2.14-release.1",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
1
+ var e="@cnhis-design-vue/shared",i="3.2.15-beta.10",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.2.15-beta.10",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.2.14-release.1",
3
+ "version": "3.2.15-beta.10",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -72,5 +72,5 @@
72
72
  "iOS 7",
73
73
  "last 3 iOS versions"
74
74
  ],
75
- "gitHead": "458674af4e5c94d38ba84d9b1a8049f36eb02f86"
75
+ "gitHead": "23b882afc9c9e50cfd1ebcf0465b52e5b755dc75"
76
76
  }
@@ -1 +0,0 @@
1
- import{useMemoize as t}from"@vueuse/core";import{fabric as n}from"../../../../../shared/utils/fabricjs/index.js";const r=t((t=>+Math.tan(t*Math.PI/180)));function e(){return{createShadowLines:function(e,o=45,u=10){const a=[];var c;if(c=o,0===(o=c=(c=(c%=360)<0?180-c:c)>=180?c-180:c))return a;const i=Math.min(...e.map((([t])=>t))),s=Math.max(...e.map((([t])=>t))),h=Math.min(...e.map((([,t])=>t))),f=Math.max(...e.map((([,t])=>t))),m=(f-h)/r(o);let p=i,M=s;return o>0&&o<90||o>180&&o<270?M+=m:p+=m,function(t,n){const r=[l([t,h])];for(;t<n;)t+=u,r.push(l([t,h]));return r}(p,M).forEach((r=>{let o=[];var u,c,i,s,h,f;if((u=e,u.reduce(((t,n,r)=>{const e=u[r+1]||u[0];return t.push([n,e]),t}),[])).forEach((n=>{const e=function(n,r,e,o){const u=(r[1]-n[1])*(o[0]-e[0])-(n[0]-r[0])*(e[1]-o[1]);if(0===u)return!1;const a=((r[0]-n[0])*(o[0]-e[0])*(e[1]-n[1])+(r[1]-n[1])*(o[0]-e[0])*n[0]-(o[1]-e[1])*(r[0]-n[0])*e[0])/u,c=-((r[1]-n[1])*(o[1]-e[1])*(e[0]-n[0])+(r[0]-n[0])*(o[1]-e[1])*n[1]-(o[0]-e[0])*(r[1]-n[1])*e[1])/u;if(((a-n[0])*(a-r[0])<0||t(a,n[0])||t(a,r[0]))&&((c-n[1])*(c-r[1])<0||t(c,n[1])||t(c,r[1]))&&((a-e[0])*(a-o[0])<0||t(a,e[0])||t(a,o[0]))&&((c-e[1])*(c-o[1])<0||t(c,e[1])||t(c,o[1])))return[a,c];return!1}(r[0],r[1],n[0],n[1]);e&&o.push(e)})),c=function(n){return n.reduce(((t,n)=>(r(t,n)||t.push(n),t)),[]);function r(n,r){return n.some((n=>t(n[0],r[0])&&t(n[1],r[1])))}}(o),o=c.sort(((t,n)=>t[1]-n[1])),o.length>=2)for(let t=0;t<o.length;t++)o[t+1]&&(h=o[t],f=o[t+1],function(t,n){let r,e,o,u=0;const a=n.length;e=n[0];for(let c=1;c<=a;c++)o=n[c%a],t[0]>Math.min(e[0],o[0])&&t[0]<=Math.max(e[0],o[0])&&t[1]<=Math.max(e[1],o[1])&&e[0]!=o[0]&&(r=(t[0]-e[0])*(o[1]-e[1])/(o[0]-e[0])+e[1],(e[1]==o[1]||t[1]<=r)&&u++),e=o;return u%2!=0}([(h[0]+f[0])/2,(h[1]+f[1])/2],e))&&a.push((i=o[t],s=o[t+1],new n.Line([i[0],i[1],s[0],s[1]])))})),a;function l(t){return[t,[t[0]-m,f]]}}};function t(t,n){return Math.abs(t-n)<=1e-4}}export{e as useShadow};