cnhis-design-vue 3.1.40-beta.11 → 3.1.40-beta.15

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 (425) hide show
  1. package/README.md +87 -87
  2. package/es/_virtual/plugin-vue_export-helper.js +1 -9
  3. package/es/components/annotation-edit/index.js +1 -10
  4. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -164
  5. package/es/components/big-table/index.js +1 -15
  6. package/es/components/big-table/src/BigTable.vue.js +1 -6
  7. package/es/components/big-table/src/BigTable.vue2.js +1 -2498
  8. package/es/components/big-table/src/bigTableEmits.js +1 -53
  9. package/es/components/big-table/src/bigTableProps.js +1 -120
  10. package/es/components/big-table/src/bigTableState.js +1 -62
  11. package/es/components/big-table/src/components/NoData.vue.js +1 -74
  12. package/es/components/big-table/src/components/edit-form/edit-date.js +1 -214
  13. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -95
  14. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -139
  15. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -103
  16. package/es/components/big-table/src/components/edit-form/edit-time.js +1 -122
  17. package/es/components/big-table/src/components/edit-form/useCommon.js +1 -23
  18. package/es/components/big-table/src/components/input-button.vue.js +1 -39
  19. package/es/components/big-table/src/components/separate.vue.js +1 -30
  20. package/es/components/big-table/src/constants/index.js +1 -3
  21. package/es/components/big-table/src/hooks/index.js +1 -9
  22. package/es/components/big-table/src/hooks/useAnchor.js +1 -49
  23. package/es/components/big-table/src/hooks/useAnnotation.js +1 -21
  24. package/es/components/big-table/src/hooks/useBatchEditing.js +1 -301
  25. package/es/components/big-table/src/hooks/useEdit.js +1 -133
  26. package/es/components/big-table/src/hooks/useEvent.js +1 -95
  27. package/es/components/big-table/src/hooks/useFormat.js +1 -507
  28. package/es/components/big-table/src/hooks/useNestTable.js +1 -86
  29. package/es/components/big-table/src/hooks/useSeparateRow.js +1 -177
  30. package/es/components/big-table/src/hooks/useTableParse.js +1 -142
  31. package/es/components/big-table/src/utils.js +1 -618
  32. package/es/components/bpmn-workflow/index.js +1 -10
  33. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -258
  34. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1 -1452
  35. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +1 -99
  36. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +1 -114
  37. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +1 -40
  38. package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +1 -14
  39. package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +1 -10
  40. package/es/components/button-print/index.js +1 -12
  41. package/es/components/button-print/src/ButtonPrint.vue.js +1 -6
  42. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -528
  43. package/es/components/button-print/src/components/EditFormat.vue.js +1 -173
  44. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -182
  45. package/es/components/button-print/src/components/Preview.vue.js +1 -6
  46. package/es/components/button-print/src/components/Preview.vue2.js +1 -67
  47. package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
  48. package/es/components/button-print/src/utils/browserPrint.js +1 -43
  49. package/es/components/button-print/src/utils/dialog.js +1 -121
  50. package/es/components/button-print/src/utils/index.js +1 -2
  51. package/es/components/button-print/src/utils/print.d.ts +5 -1
  52. package/es/components/button-print/src/utils/print.js +1 -432
  53. package/es/components/editor/index.js +1 -10
  54. package/es/components/editor/src/Editor.js +1 -77
  55. package/es/components/fabric-chart/index.js +1 -10
  56. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -71
  57. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -118
  58. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -34
  59. package/es/components/fabric-chart/src/components/useStyle.js +1 -36
  60. package/es/components/fabric-chart/src/hooks/constant.js +1 -78
  61. package/es/components/fabric-chart/src/hooks/index.js +1 -11
  62. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -642
  63. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -153
  64. package/es/components/fabric-chart/src/hooks/useBottom.js +1 -91
  65. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -734
  66. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -32
  67. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -79
  68. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -182
  69. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -146
  70. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -54
  71. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -331
  72. package/es/components/fabric-chart/src/hooks/useOther.js +1 -95
  73. package/es/components/fabric-chart/src/hooks/useRight.js +1 -22
  74. package/es/components/fabric-chart/src/hooks/useShadow.js +1 -132
  75. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -341
  76. package/es/components/fabric-chart/src/hooks/useTop.js +1 -154
  77. package/es/components/fabric-chart/src/utils/index.js +1 -15624
  78. package/es/components/fabric-chart/src/utils/utils.js +1 -32
  79. package/es/components/field-set/index.js +1 -10
  80. package/es/components/field-set/src/FieldSet.vue.js +1 -470
  81. package/es/components/form-config/index.d.ts +1 -1
  82. package/es/components/form-config/index.js +1 -10
  83. package/es/components/form-config/src/FormConfig.vue.d.ts +1 -1
  84. package/es/components/form-config/src/FormConfig.vue.js +1 -124
  85. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -100
  86. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -45
  87. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
  88. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -97
  89. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -28
  90. package/es/components/form-config/src/components/index.js +1 -6
  91. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -45
  92. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -45
  93. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -60
  94. package/es/components/form-config/src/components/renderer/index.js +1 -3
  95. package/es/components/form-config/src/constants/index.js +1 -61
  96. package/es/components/form-config/src/hooks/index.js +1 -3
  97. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -90
  98. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -35
  99. package/es/components/form-config/src/hooks/usePresetRenderer.js +1 -36
  100. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -42
  101. package/es/components/form-config/src/utils/index.js +1 -26
  102. package/es/components/form-render/index.js +1 -30
  103. package/es/components/form-render/src/FormRender.vue.js +1 -239
  104. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -49
  105. package/es/components/form-render/src/components/renderer/combination.js +1 -114
  106. package/es/components/form-render/src/components/renderer/complex.js +1 -37
  107. package/es/components/form-render/src/components/renderer/date.js +1 -171
  108. package/es/components/form-render/src/components/renderer/formItem.js +1 -128
  109. package/es/components/form-render/src/components/renderer/index.js +1 -43
  110. package/es/components/form-render/src/components/renderer/input.js +1 -50
  111. package/es/components/form-render/src/components/renderer/inputGroup.js +1 -11
  112. package/es/components/form-render/src/components/renderer/inputNumber.js +1 -55
  113. package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -35
  114. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -175
  115. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -274
  116. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -71
  117. package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -11
  118. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -111
  119. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -139
  120. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -244
  121. package/es/components/form-render/src/components/renderer/select.js +1 -176
  122. package/es/components/form-render/src/components/renderer/simpleComponent.js +1 -57
  123. package/es/components/form-render/src/components/renderer/slider.js +1 -38
  124. package/es/components/form-render/src/components/renderer/switch.js +1 -48
  125. package/es/components/form-render/src/components/renderer/textarea.js +1 -36
  126. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -37
  127. package/es/components/form-render/src/constants/index.js +1 -59
  128. package/es/components/form-render/src/hooks/index.js +1 -15
  129. package/es/components/form-render/src/hooks/useAnchor.js +1 -99
  130. package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -153
  131. package/es/components/form-render/src/hooks/useAutoHidden.js +1 -43
  132. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -119
  133. package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
  134. package/es/components/form-render/src/hooks/useCommonInjection.js +1 -43
  135. package/es/components/form-render/src/hooks/useCommonLog.js +1 -12
  136. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -225
  137. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -290
  138. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -65
  139. package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -46
  140. package/es/components/form-render/src/hooks/useFormContext.js +1 -70
  141. package/es/components/form-render/src/hooks/useFormEvent.js +1 -140
  142. package/es/components/form-render/src/hooks/useFormField.js +1 -13
  143. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -31
  144. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
  145. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -278
  146. package/es/components/form-render/src/hooks/useFormRequest.js +1 -42
  147. package/es/components/form-render/src/hooks/useFormValidator.js +1 -83
  148. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -85
  149. package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -18
  150. package/es/components/form-render/src/hooks/usePresetScope.js +1 -22
  151. package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
  152. package/es/components/form-render/src/types/fieldItem.js +1 -1
  153. package/es/components/form-render/src/types/index.js +1 -1
  154. package/es/components/form-render/src/utils/business.js +1 -114
  155. package/es/components/form-render/src/utils/dom.js +1 -38
  156. package/es/components/form-render/src/utils/index.js +1 -241
  157. package/es/components/form-render/src/utils/schema.js +1 -105
  158. package/es/components/grid/index.js +1 -11
  159. package/es/components/grid/src/Grid.js +1 -28
  160. package/es/components/grid/src/hooks.js +1 -168
  161. package/es/components/iho-table/index.js +1 -36
  162. package/es/components/iho-table/src/IhoTable.vue.js +1 -157
  163. package/es/components/iho-table/src/constants/index.js +1 -157
  164. package/es/components/iho-table/src/hooks/export.js +1 -2
  165. package/es/components/iho-table/src/hooks/index.js +1 -2
  166. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -159
  167. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -67
  168. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -26
  169. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -27
  170. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -280
  171. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -26
  172. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -38
  173. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -27
  174. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -164
  175. package/es/components/iho-table/src/hooks/useTableContext.js +1 -17
  176. package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -20
  177. package/es/components/iho-table/src/plugins/anchorPlugin/index.js +1 -19
  178. package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -51
  179. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -87
  180. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -48
  181. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -230
  182. package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -240
  183. package/es/components/iho-table/src/plugins/index.js +1 -47
  184. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -30
  185. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -127
  186. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -203
  187. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -41
  188. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -21
  189. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -41
  190. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -79
  191. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -64
  192. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -46
  193. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -16
  194. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -108
  195. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -163
  196. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -42
  197. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -50
  198. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -30
  199. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -48
  200. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -62
  201. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -52
  202. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -92
  203. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -59
  204. package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -34
  205. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -30
  206. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -53
  207. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -100
  208. package/es/components/iho-table/src/types/index.js +1 -1
  209. package/es/components/iho-table/src/types/pluginType.js +1 -16
  210. package/es/components/iho-table/src/utils/index.js +1 -169
  211. package/es/components/index.js +1 -119
  212. package/es/components/info-header/index.js +1 -10
  213. package/es/components/info-header/src/HiddenContent.vue.js +1 -70
  214. package/es/components/info-header/src/InfoEllipsis.vue.js +1 -43
  215. package/es/components/info-header/src/InfoHeader.vue.js +1 -313
  216. package/es/components/insurance-sdk/index.js +1 -1
  217. package/es/components/insurance-sdk/src/constants/index.js +1 -160
  218. package/es/components/insurance-sdk/src/utils/index.js +1 -1
  219. package/es/components/insurance-sdk/src/utils/insurance.js +1 -268
  220. package/es/components/keyboard/index.d.ts +4 -21
  221. package/es/components/keyboard/index.js +1 -10
  222. package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -21
  223. package/es/components/keyboard/src/Keyboard.vue.js +1 -164
  224. package/es/components/keyboard/src/components/InputNumber.vue.d.ts +2 -19
  225. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -94
  226. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -21
  227. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -299
  228. package/es/components/keyboard/src/utils/index.js +1 -5
  229. package/es/components/map/index.js +1 -10
  230. package/es/components/map/src/Map.vue.js +1 -336
  231. package/es/components/recommend-search/index.js +1 -10
  232. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -63
  233. package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -157
  234. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -125
  235. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -104
  236. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -146
  237. package/es/components/recommend-search/src/constant/index.js +1 -7
  238. package/es/components/scale-view/index.js +1 -35
  239. package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -3
  240. package/es/components/scale-view/src/ScaleView.vue.js +1 -429
  241. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -80
  242. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -117
  243. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -141
  244. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -19
  245. package/es/components/scale-view/src/components/NoData.vue.js +1 -74
  246. package/es/components/scale-view/src/components/ScaleScore.js +1 -63
  247. package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
  248. package/es/components/scale-view/src/components/formitem/address.js +1 -3993
  249. package/es/components/scale-view/src/components/formitem/r-address.js +1 -226
  250. package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -133
  251. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -281
  252. package/es/components/scale-view/src/components/formitem/r-collection.js +1 -111
  253. package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -212
  254. package/es/components/scale-view/src/components/formitem/r-input.js +1 -86
  255. package/es/components/scale-view/src/components/formitem/r-map.js +1 -106
  256. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -240
  257. package/es/components/scale-view/src/components/formitem/r-select.js +1 -202
  258. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -177
  259. package/es/components/scale-view/src/components/formitem/r-upload.js +1 -215
  260. package/es/components/scale-view/src/components/formitem/sign-com.js +1 -307
  261. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -129
  262. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -354
  263. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
  264. package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
  265. package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
  266. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
  267. package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
  268. package/es/components/scale-view/src/hooks/use-component.js +1 -86
  269. package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
  270. package/es/components/scale-view/src/hooks/use-event.js +1 -129
  271. package/es/components/scale-view/src/hooks/use-noData.js +1 -41
  272. package/es/components/scale-view/src/utils/judge-types.js +1 -36
  273. package/es/components/search-cascader/index.js +1 -10
  274. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -194
  275. package/es/components/search-cascader/src/components/SearchMenu.js +1 -196
  276. package/es/components/search-cascader/src/components/index.js +1 -1
  277. package/es/components/search-cascader/src/constants/index.js +1 -11
  278. package/es/components/search-cascader/src/hooks/index.js +1 -1
  279. package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -7
  280. package/es/components/search-cascader/src/utils/index.js +1 -11
  281. package/es/components/select-label/index.js +1 -15
  282. package/es/components/select-label/src/LabelFormContent.vue.js +1 -447
  283. package/es/components/select-label/src/SelectLabel.vue.js +1 -6
  284. package/es/components/select-label/src/SelectLabel.vue2.js +1 -451
  285. package/es/components/select-label/src/components/label-classify.vue.js +1 -132
  286. package/es/components/select-person/index.js +1 -10
  287. package/es/components/select-person/src/SelectPerson.vue.js +1 -6
  288. package/es/components/select-person/src/SelectPerson.vue2.js +1 -303
  289. package/es/components/select-person/src/utils/index.js +1 -58
  290. package/es/components/shortcut-provider/index.js +1 -12
  291. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -42
  292. package/es/components/shortcut-provider/src/constants/index.js +1 -8
  293. package/es/components/shortcut-provider/src/hooks/index.js +1 -2
  294. package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
  295. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -188
  296. package/es/components/shortcut-provider/src/utils/index.js +1 -92
  297. package/es/components/shortcut-setter/index.d.ts +1 -1
  298. package/es/components/shortcut-setter/index.js +1 -10
  299. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  300. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -98
  301. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -76
  302. package/es/components/steps-wheel/index.js +1 -10
  303. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -376
  304. package/es/components/table-filter/index.js +1 -21
  305. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3 -0
  306. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -2272
  307. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1315
  308. package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -195
  309. package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -594
  310. package/es/components/table-filter/src/components/age-com/index.vue.js +1 -185
  311. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -86
  312. package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +1 -30
  313. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -253
  314. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -114
  315. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -14
  316. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -87
  317. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -147
  318. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -304
  319. package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -153
  320. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -310
  321. package/es/components/table-filter/src/components/range-age/index.vue.js +1 -137
  322. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -64
  323. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -45
  324. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -2
  325. package/es/components/table-filter/src/components/render-widget/enums.js +1 -27
  326. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -70
  327. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -107
  328. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -152
  329. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -1520
  330. package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +1 -171
  331. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -199
  332. package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -241
  333. package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -526
  334. package/es/components/table-filter/src/const/dataOptions.js +1 -107
  335. package/es/components/table-filter/src/const/index.js +1 -5
  336. package/es/components/table-filter/src/directive/flexibleResize.js +1 -157
  337. package/es/components/table-filter/src/directive/preventReClick.js +1 -14
  338. package/es/components/table-filter/src/directive/resize.js +1 -12
  339. package/es/components/table-filter/src/hooks/export.js +1 -1
  340. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -64
  341. package/es/components/table-filter/src/hooks/useMixins.js +1 -532
  342. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -94
  343. package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -131
  344. package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -91
  345. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -3
  346. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -2038
  347. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -65
  348. package/es/components/table-filter/src/tool/getWidgetType.js +1 -27
  349. package/es/components/table-filter/src/tool/options.js +1 -200
  350. package/es/components/table-filter/src/tool/resizeSensor.js +1 -123
  351. package/es/components/table-filter/src/tool/time-domain.js +1 -100
  352. package/es/components/table-filter/src/tool/transformData.js +1 -169
  353. package/es/components/table-filter/src/tool/utils.js +1 -29
  354. package/es/components/table-filter/src/types/enums.js +1 -67
  355. package/es/components/time-line/index.js +1 -10
  356. package/es/components/time-line/src/TimeLine.vue.js +1 -70
  357. package/es/components/vod-chunk-upload/index.js +1 -14
  358. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -480
  359. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -70
  360. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -96
  361. package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -79
  362. package/es/components/vod-chunk-upload/src/hooks/vod-data.js +1 -28
  363. package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -2
  364. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -332
  365. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -94
  366. package/es/env.d.ts +24 -24
  367. package/es/shared/assets/img/failure.png.js +1 -3
  368. package/es/shared/assets/img/no-permission.png.js +1 -3
  369. package/es/shared/assets/img/nodata.png.js +1 -3
  370. package/es/shared/assets/img/notfound.png.js +1 -3
  371. package/es/shared/assets/img/qr.png.js +1 -3
  372. package/es/shared/assets/img/success.png.js +1 -3
  373. package/es/shared/assets/img/video.png.js +1 -3
  374. package/es/shared/assets/img/video_default_cover.png.js +1 -3
  375. package/es/shared/assets/img/xb_big.png.js +1 -3
  376. package/es/shared/assets/img/xb_small.png.js +1 -3
  377. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -61
  378. package/es/shared/components/SelectPage/index.js +1 -2
  379. package/es/shared/components/SlotRender/SlotRender.js +1 -35
  380. package/es/shared/components/SlotRender/index.js +1 -2
  381. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -36
  382. package/es/shared/components/SvgIcon/index.js +1 -2
  383. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -77
  384. package/es/shared/components/TextOverTooltip/index.js +1 -2
  385. package/es/shared/components/VueDraggable/index.js +1 -2
  386. package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +1 -35
  387. package/es/shared/components/VueDraggable/src/core/componentStructure.js +1 -54
  388. package/es/shared/components/VueDraggable/src/core/renderHelper.js +1 -47
  389. package/es/shared/components/VueDraggable/src/core/sortableEvents.js +1 -14
  390. package/es/shared/components/VueDraggable/src/util/console.js +1 -9
  391. package/es/shared/components/VueDraggable/src/util/htmlHelper.js +1 -11
  392. package/es/shared/components/VueDraggable/src/util/string.js +1 -11
  393. package/es/shared/components/VueDraggable/src/util/tags.js +1 -130
  394. package/es/shared/components/VueDraggable/src/vuedraggable.js +1 -265
  395. package/es/shared/components/no-data/NoData.vue.js +1 -74
  396. package/es/shared/components/no-data/index.js +1 -2
  397. package/es/shared/components/player-vod/player.js +1 -121
  398. package/es/shared/components/player-vod/video-modal.js +1 -91
  399. package/es/shared/global/variable.js +1 -3
  400. package/es/shared/utils/anime.js +1 -129
  401. package/es/shared/utils/colorLog.js +1 -53
  402. package/es/shared/utils/index.js +1 -167
  403. package/es/shared/utils/loadViewer.js +1 -11
  404. package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -63
  405. package/es/shared/utils/tapable/AsyncParallelHook.js +1 -27
  406. package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -18
  407. package/es/shared/utils/tapable/AsyncSeriesHook.js +1 -27
  408. package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -12
  409. package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -22
  410. package/es/shared/utils/tapable/Hook.js +1 -140
  411. package/es/shared/utils/tapable/HookCodeFactory.js +1 -456
  412. package/es/shared/utils/tapable/SyncBailHook.js +1 -19
  413. package/es/shared/utils/tapable/SyncHook.js +1 -34
  414. package/es/shared/utils/tapable/SyncLoopHook.js +1 -13
  415. package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -47
  416. package/es/shared/utils/utilExpand.js +1 -781
  417. package/es/shared/utils/vexutils.js +1 -59
  418. package/package.json +2 -2
  419. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  420. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  421. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  422. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  423. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  424. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  425. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1,226 +1 @@
1
- import { defineComponent, reactive, computed, createVNode, resolveComponent } from 'vue';
2
- import { NSelect, NInput } from 'naive-ui';
3
- import allData from './address.js';
4
- import XEUtils from 'xe-utils';
5
- import 'moment';
6
-
7
- var RAddress = defineComponent({
8
- name: "RAddress",
9
- components: {
10
- NSelect,
11
- NInput
12
- },
13
- props: {
14
- form: {
15
- type: Object,
16
- default: () => {
17
- }
18
- },
19
- item: {
20
- type: Object,
21
- default: () => {
22
- }
23
- },
24
- isLock: {
25
- type: Boolean,
26
- default: false
27
- }
28
- },
29
- emits: ["scaleChange"],
30
- setup(props, context) {
31
- let state = reactive({
32
- provinceValue: -1,
33
- cityValue: -1,
34
- areaValue: -1,
35
- province: [{
36
- value: -1,
37
- label: "\u7701/\u81EA\u6CBB\u533A/\u76F4\u8F96\u5E02"
38
- }],
39
- city: [{
40
- value: -1,
41
- label: "\u5E02"
42
- }],
43
- area: [{
44
- value: -1,
45
- label: "\u533A/\u53BF"
46
- }],
47
- addressValue: "",
48
- allValue: {}
49
- });
50
- const setting = props.item.setting || {
51
- addressType: "province-city-district-address"
52
- };
53
- const addressType = computed(() => {
54
- let setObj = {
55
- addressType: "province-city-district-address"
56
- };
57
- if (XEUtils.isJSON(setting)) {
58
- setObj = JSON.parse(setting);
59
- } else {
60
- setObj = setting;
61
- }
62
- return setObj.addressType;
63
- });
64
- const hasProvince = computed(() => {
65
- return addressType.value.includes("province");
66
- });
67
- const hasCity = computed(() => {
68
- return addressType.value.includes("city");
69
- });
70
- const hasDistrict = computed(() => {
71
- return addressType.value.includes("district");
72
- });
73
- const hasAddress = computed(() => {
74
- return addressType.value.includes("address");
75
- });
76
- const objToArray = (obj) => {
77
- if (!obj)
78
- return [];
79
- return Object.keys(obj).map((item) => {
80
- return {
81
- value: item,
82
- label: obj[item]
83
- };
84
- });
85
- };
86
- const handleDef = () => {
87
- var _a, _b, _c;
88
- state.province.push(...objToArray(allData["86"]));
89
- let value = props.form[props.item.val_key];
90
- if (XEUtils.isEmpty(value))
91
- return;
92
- let provinceValue = ((_a = value["province"]) == null ? void 0 : _a.key) || -1;
93
- let cityValue = ((_b = value["city"]) == null ? void 0 : _b.key) || -1;
94
- let areaValue = ((_c = value["area"]) == null ? void 0 : _c.key) || -1;
95
- state.addressValue = value["address"];
96
- state.allValue = JSON.parse(JSON.stringify(value));
97
- handleProvince(provinceValue, value["province"], "no");
98
- handleCity(cityValue, value["city"], "no");
99
- handleArea(areaValue, value["area"], "no");
100
- };
101
- const initCity = () => {
102
- state.city = [{
103
- value: -1,
104
- label: "\u5E02"
105
- }];
106
- state.cityValue = -1;
107
- let allValue = state.allValue;
108
- allValue.city = {
109
- key: -1,
110
- label: "\u5E02"
111
- };
112
- };
113
- const initArea = () => {
114
- state.area = [{
115
- value: -1,
116
- label: "\u533A/\u53BF"
117
- }];
118
- state.areaValue = -1;
119
- let allValue = state.allValue;
120
- allValue.area = {
121
- key: -1,
122
- label: "\u533A/\u53BF"
123
- };
124
- };
125
- const handleProvince = (value, options, isInit) => {
126
- state.provinceValue = value;
127
- initCity();
128
- initArea();
129
- if (value != -1 && state.city.length === 1) {
130
- state.city.push(...objToArray(allData[value]));
131
- }
132
- let allValue = state.allValue;
133
- allValue.province = {
134
- key: value,
135
- label: options.label
136
- };
137
- allValue.address = state.addressValue;
138
- if (isInit == "no")
139
- return;
140
- context.emit("scaleChange", allValue, props.item);
141
- };
142
- const handleCity = (value, options, isInit) => {
143
- state.cityValue = value;
144
- initArea();
145
- if (value != -1 && state.area.length === 1) {
146
- state.area.push(...objToArray(allData[value]));
147
- }
148
- let allValue = state.allValue;
149
- allValue.city = {
150
- key: value,
151
- label: options.label
152
- };
153
- allValue.address = state.addressValue;
154
- if (isInit == "no")
155
- return;
156
- context.emit("scaleChange", allValue, props.item);
157
- };
158
- const handleArea = (value, options, isInit) => {
159
- state.areaValue = value;
160
- let allValue = state.allValue;
161
- allValue.area = {
162
- key: value,
163
- label: options.label
164
- };
165
- if (isInit == "no")
166
- return;
167
- context.emit("scaleChange", state.allValue, props.item);
168
- };
169
- const handleAddress = (val, isInit) => {
170
- state.addressValue = val;
171
- let allValue = state.allValue;
172
- allValue.address = val;
173
- if (isInit == "no")
174
- return;
175
- context.emit("scaleChange", state.allValue, props.item);
176
- };
177
- const renderProvince = () => {
178
- return createVNode(resolveComponent("n-select"), {
179
- "value": state.provinceValue,
180
- "filterable": true,
181
- "placeholder": "\u8BF7\u9009\u62E9",
182
- "disabled": props.isLock,
183
- "options": state.province,
184
- "onUpdate:value": handleProvince
185
- }, null);
186
- };
187
- const renderCity = () => {
188
- return createVNode(resolveComponent("n-select"), {
189
- "value": state.cityValue,
190
- "filterable": true,
191
- "placeholder": "\u8BF7\u9009\u62E9",
192
- "disabled": props.isLock,
193
- "options": state.city,
194
- "onUpdate:value": handleCity
195
- }, null);
196
- };
197
- const renderDistrict = () => {
198
- return createVNode(resolveComponent("n-select"), {
199
- "value": state.areaValue,
200
- "filterable": true,
201
- "placeholder": "\u8BF7\u9009\u62E9",
202
- "disabled": props.isLock,
203
- "options": state.area,
204
- "onUpdate:value": handleArea
205
- }, null);
206
- };
207
- const renderaddress = () => {
208
- return createVNode(resolveComponent("n-input"), {
209
- "value": state.addressValue,
210
- "placeholder": "\u8BF7\u8F93\u5165",
211
- "disabled": props.isLock,
212
- "onUpdate:value": handleAddress
213
- }, null);
214
- };
215
- handleDef();
216
- return () => {
217
- return createVNode("div", {
218
- "class": "c-scale-address"
219
- }, [createVNode("div", {
220
- "class": "field-row"
221
- }, [hasProvince.value && renderProvince(), hasCity.value && renderCity(), hasDistrict.value && renderDistrict()]), hasAddress.value && renderaddress()]);
222
- };
223
- }
224
- });
225
-
226
- export { RAddress as default };
1
+ import{defineComponent as e,reactive as l,computed as a,createVNode as s,resolveComponent as i}from"vue";import{NSelect as t,NInput as r}from"naive-ui";import u from"./address.js";import d from"xe-utils";import"moment";var c=e({name:"RAddress",components:{NSelect:t,NInput:r},props:{form:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,t){let r=l({provinceValue:-1,cityValue:-1,areaValue:-1,province:[{value:-1,label:"省/自治区/直辖市"}],city:[{value:-1,label:"市"}],area:[{value:-1,label:"区/县"}],addressValue:"",allValue:{}});const c=e.item.setting||{addressType:"province-city-district-address"},n=a((()=>{let e={addressType:"province-city-district-address"};return e=d.isJSON(c)?JSON.parse(c):c,e.addressType})),o=a((()=>n.value.includes("province"))),p=a((()=>n.value.includes("city"))),v=a((()=>n.value.includes("district"))),y=a((()=>n.value.includes("address"))),m=e=>e?Object.keys(e).map((l=>({value:l,label:e[l]}))):[],V=()=>{r.area=[{value:-1,label:"区/县"}],r.areaValue=-1,r.allValue.area={key:-1,label:"区/县"}},b=(l,a,s)=>{r.provinceValue=l,r.city=[{value:-1,label:"市"}],r.cityValue=-1,r.allValue.city={key:-1,label:"市"},V(),-1!=l&&1===r.city.length&&r.city.push(...m(u[l]));let i=r.allValue;i.province={key:l,label:a.label},i.address=r.addressValue,"no"!=s&&t.emit("scaleChange",i,e.item)},f=(l,a,s)=>{r.cityValue=l,V(),-1!=l&&1===r.area.length&&r.area.push(...m(u[l]));let i=r.allValue;i.city={key:l,label:a.label},i.address=r.addressValue,"no"!=s&&t.emit("scaleChange",i,e.item)},k=(l,a,s)=>{r.areaValue=l,r.allValue.area={key:l,label:a.label},"no"!=s&&t.emit("scaleChange",r.allValue,e.item)},h=(l,a)=>{r.addressValue=l,r.allValue.address=l,"no"!=a&&t.emit("scaleChange",r.allValue,e.item)};return(()=>{var l,a,s;r.province.push(...m(u[86]));let i=e.form[e.item.val_key];if(d.isEmpty(i))return;let t=(null==(l=i.province)?void 0:l.key)||-1,c=(null==(a=i.city)?void 0:a.key)||-1,n=(null==(s=i.area)?void 0:s.key)||-1;r.addressValue=i.address,r.allValue=JSON.parse(JSON.stringify(i)),b(t,i.province,"no"),f(c,i.city,"no"),k(n,i.area,"no")})(),()=>s("div",{class:"c-scale-address"},[s("div",{class:"field-row"},[o.value&&s(i("n-select"),{value:r.provinceValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.province,"onUpdate:value":b},null),p.value&&s(i("n-select"),{value:r.cityValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.city,"onUpdate:value":f},null),v.value&&s(i("n-select"),{value:r.areaValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.area,"onUpdate:value":k},null)]),y.value&&s(i("n-input"),{value:r.addressValue,placeholder:"请输入",disabled:e.isLock,"onUpdate:value":h},null)])}});export{c as default};
@@ -1,133 +1 @@
1
- import { defineComponent, reactive, createVNode, resolveComponent } from 'vue';
2
- import { NCascader, NEmpty } from 'naive-ui';
3
- import LoadingCom from '../LoadingCom.vue.js';
4
-
5
- var RCascader = defineComponent({
6
- name: "RCascader",
7
- components: {
8
- NCascader,
9
- NEmpty,
10
- LoadingCom
11
- },
12
- props: {
13
- form: {
14
- type: Object,
15
- default: () => {
16
- }
17
- },
18
- item: {
19
- type: Object,
20
- default: () => {
21
- }
22
- },
23
- isLock: {
24
- type: Boolean,
25
- default: false
26
- },
27
- getCascadeOptions: {
28
- type: Function,
29
- default: () => Promise.resolve([])
30
- }
31
- },
32
- emits: ["scaleChange"],
33
- setup(props, context) {
34
- let state = reactive({
35
- cascaderValue: void 0,
36
- curOptions: [],
37
- fetching: false
38
- });
39
- const backshowValue = (list, val) => {
40
- if (!list.length || !val || !val.length)
41
- return;
42
- let i = 0, len = val.length;
43
- val[0];
44
- let matchList = list;
45
- let matchItem;
46
- for (; i < len; i++) {
47
- let item2 = val[i];
48
- if (!matchList.length)
49
- return false;
50
- matchItem = matchList.find((v) => v.value === item2);
51
- if (i === 0 && !matchItem)
52
- return false;
53
- if (i === len - 1 && !matchItem)
54
- return false;
55
- if (i === len - 1 && matchItem) {
56
- break;
57
- }
58
- matchList = matchItem.children || [];
59
- }
60
- if (matchItem) {
61
- state.cascaderValue = matchItem.theUniqueKey;
62
- }
63
- };
64
- const handleOptions = (list, parent) => {
65
- return list.map((v, i) => {
66
- var _a;
67
- v.curIndex = i + 1;
68
- let level = v.level || 0;
69
- v.path = `${v.curIndex}`;
70
- if (level && parent) {
71
- v.path = `${parent.path}-${v.curIndex}`;
72
- }
73
- v.theUniqueKey = v.path;
74
- if (v.hasOwnProperty("children") && !v.children.length) {
75
- delete v.children;
76
- }
77
- if ((_a = v.children) == null ? void 0 : _a.length) {
78
- handleOptions(v.children, v);
79
- }
80
- return v;
81
- });
82
- };
83
- const handleDef = async (value) => {
84
- var _a;
85
- if (!value || !Object.keys(value).length)
86
- return;
87
- let val = JSON.parse(JSON.stringify(value));
88
- let defVal = props.form[props.item.val_key];
89
- let options = [];
90
- if (!((_a = val.targetSource) == null ? void 0 : _a.target_id)) {
91
- options = handleOptions(val.options || []);
92
- state.curOptions = options;
93
- backshowValue(options, defVal);
94
- return;
95
- }
96
- try {
97
- state.fetching = true;
98
- options = await props.getCascadeOptions(val);
99
- state.curOptions = options;
100
- backshowValue(options, defVal);
101
- state.fetching = false;
102
- } catch (err) {
103
- state.fetching = false;
104
- }
105
- };
106
- handleDef(props.item);
107
- const cascaderChange = (value, options, pathValues) => {
108
- let path = pathValues.map((v) => v.value);
109
- state.cascaderValue = value;
110
- context.emit("scaleChange", path, props.item);
111
- };
112
- return () => {
113
- return createVNode(resolveComponent("n-cascader"), {
114
- "value": state.cascaderValue,
115
- "onUpdate:value": ($event) => state.cascaderValue = $event,
116
- "filterable": true,
117
- "clearable": true,
118
- "placeholder": "\u8BF7\u9009\u62E9",
119
- "check-strategy": "parent",
120
- "value-field": "theUniqueKey",
121
- "disabled": props.isLock,
122
- "options": state.curOptions,
123
- "show-path": true,
124
- "cascade": false,
125
- "on-update:value": cascaderChange
126
- }, {
127
- empty: () => state.fetching ? createVNode(LoadingCom, null, null) : createVNode(NEmpty, null, null)
128
- });
129
- };
130
- }
131
- });
132
-
133
- export { RCascader as default };
1
+ import{defineComponent as e,reactive as t,createVNode as a,resolveComponent as n}from"vue";import{NCascader as r,NEmpty as l}from"naive-ui";import i from"../LoadingCom.vue.js";var c=e({name:"RCascader",components:{NCascader:r,NEmpty:l,LoadingCom:i},props:{form:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},isLock:{type:Boolean,default:!1},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])}},emits:["scaleChange"],setup(e,r){let c=t({cascaderValue:void 0,curOptions:[],fetching:!1});const u=(e,t)=>{if(!e.length||!t||!t.length)return;let a=0,n=t.length;t[0];let r,l=e;for(;a<n;a++){let e=t[a];if(!l.length)return!1;if(r=l.find((t=>t.value===e)),0===a&&!r)return!1;if(a===n-1&&!r)return!1;if(a===n-1&&r)break;l=r.children||[]}r&&(c.cascaderValue=r.theUniqueKey)},o=(e,t)=>e.map(((e,a)=>{var n;e.curIndex=a+1;let r=e.level||0;return e.path=`${e.curIndex}`,r&&t&&(e.path=`${t.path}-${e.curIndex}`),e.theUniqueKey=e.path,e.hasOwnProperty("children")&&!e.children.length&&delete e.children,(null==(n=e.children)?void 0:n.length)&&o(e.children,e),e}));(async t=>{var a;if(!t||!Object.keys(t).length)return;let n=JSON.parse(JSON.stringify(t)),r=e.form[e.item.val_key],l=[];if(!(null==(a=n.targetSource)?void 0:a.target_id))return l=o(n.options||[]),c.curOptions=l,void u(l,r);try{c.fetching=!0,l=await e.getCascadeOptions(n),c.curOptions=l,u(l,r),c.fetching=!1}catch(e){c.fetching=!1}})(e.item);const s=(t,a,n)=>{let l=n.map((e=>e.value));c.cascaderValue=t,r.emit("scaleChange",l,e.item)};return()=>a(n("n-cascader"),{value:c.cascaderValue,"onUpdate:value":e=>c.cascaderValue=e,filterable:!0,clearable:!0,placeholder:"请选择","check-strategy":"parent","value-field":"theUniqueKey",disabled:e.isLock,options:c.curOptions,"show-path":!0,cascade:!1,"on-update:value":s},{empty:()=>c.fetching?a(i,null,null):a(l,null,null)})}});export{c as default};
@@ -1,281 +1 @@
1
- import { defineComponent, reactive, watch, createVNode, resolveComponent, isVNode } from 'vue';
2
- import { NCheckboxGroup, NCheckbox, NInput, NIcon } from 'naive-ui';
3
- import { api } from 'v-viewer';
4
- import { SearchOutline } from '@vicons/ionicons5';
5
- import XEUtils from 'xe-utils';
6
- import 'moment';
7
- import chooseCommon from '../composables/choose-common.js';
8
-
9
- function _isSlot(s) {
10
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
11
- }
12
- var scriptCheckbox = defineComponent({
13
- name: "RCheckbox",
14
- components: {
15
- NCheckboxGroup,
16
- NCheckbox,
17
- NInput,
18
- NIcon
19
- },
20
- props: {
21
- form: {
22
- type: Object,
23
- default: () => {
24
- }
25
- },
26
- item: {
27
- type: Object,
28
- default: () => {
29
- }
30
- },
31
- isLock: {
32
- type: Boolean,
33
- default: false
34
- },
35
- inputLock: {
36
- type: Boolean,
37
- default: false
38
- }
39
- },
40
- emits: ["scaleChange"],
41
- setup(props, context) {
42
- var _a, _b;
43
- const state = reactive({
44
- curCheckboxValue: [],
45
- othersText: "",
46
- curOptions: [],
47
- optionsPreSuffixObj: {}
48
- });
49
- const {
50
- choiceColor,
51
- showImgWrap,
52
- handleDefPreSuffix,
53
- choiceUseKey,
54
- isCheckboxItem,
55
- showPreSuffix,
56
- handleOptions,
57
- stopClick
58
- } = chooseCommon(props, state);
59
- const chooseStyleSetting = ((_b = (_a = props.item) == null ? void 0 : _a.setting) == null ? void 0 : _b.chooseStyleSetting) || 1;
60
- const handlePreview = (e, url) => {
61
- e.preventDefault();
62
- e.stopPropagation();
63
- let imgs = state.curOptions.map((v) => v.imageUrl).filter(Boolean);
64
- if (!imgs.length)
65
- return;
66
- let index = imgs.findIndex((v) => v === url);
67
- let i = index < 0 ? 0 : index;
68
- api({
69
- images: imgs,
70
- options: {
71
- toolbar: true,
72
- initialViewIndex: i
73
- }
74
- });
75
- };
76
- const handleCheckboxOther = (isOtherInput) => {
77
- let choiceObj = {
78
- othersText: state.othersText,
79
- optionsPreSuffixObj: state.optionsPreSuffixObj
80
- };
81
- if (isOtherInput && !state.curCheckboxValue.includes("other")) {
82
- state.curCheckboxValue.push("other");
83
- }
84
- let curCheckboxValue = JSON.parse(JSON.stringify(state.curCheckboxValue));
85
- context.emit("scaleChange", curCheckboxValue, props.item, {
86
- choiceObj,
87
- isSetObj: isCheckboxItem.value
88
- });
89
- };
90
- const handleCheckboxDefModal = (item, curValue, options) => {
91
- var _a2;
92
- state.curOptions = handleOptions(options);
93
- if (!options.length || !curValue || !curValue.length)
94
- return;
95
- let resArr = [];
96
- let i = 0, x, len = curValue.length;
97
- for (; i < len; i++) {
98
- x = curValue[i];
99
- if (x === "\u5176\u4ED6") {
100
- state.othersText = x;
101
- state.curCheckboxValue = ["other"];
102
- !resArr.includes("other") && resArr.push("other");
103
- continue;
104
- }
105
- let matchIndex = options.findIndex((v) => v.value === x);
106
- if (matchIndex < 0) {
107
- state.othersText = x;
108
- !resArr.includes("other") && resArr.push("other");
109
- continue;
110
- }
111
- let res = (_a2 = options[matchIndex]) == null ? void 0 : _a2.key;
112
- if (resArr.indexOf(res) < 0) {
113
- resArr.push(res);
114
- }
115
- }
116
- state.curCheckboxValue = resArr;
117
- handleCheckboxOther();
118
- };
119
- const handleCheckboxDef = (item, curValue, options) => {
120
- var _a2;
121
- state.curOptions = handleOptions(options);
122
- if (!options.length || !curValue || !curValue.length)
123
- return;
124
- if (item.type === "EVALUATE_CHECKBOX_BLOCK") {
125
- state.curCheckboxValue = curValue;
126
- handleCheckboxOther();
127
- return;
128
- }
129
- let resArr = [], i = 0, x, len = curValue.length;
130
- let hasOther = options.some((v) => v.importability || v.key === "other");
131
- for (; i < len; i++) {
132
- x = curValue[i];
133
- if (x === "\u5176\u4ED6") {
134
- state.othersText = x;
135
- state.curCheckboxValue = ["other"];
136
- !resArr.includes("other") && resArr.push("other");
137
- continue;
138
- }
139
- let matchIndex = options.findIndex((v) => v.value === x);
140
- if (matchIndex > 0) {
141
- let res = (_a2 = options[matchIndex]) == null ? void 0 : _a2.key;
142
- !resArr.includes(res) && resArr.push(res);
143
- continue;
144
- }
145
- options.map((v) => {
146
- let res = handleDefPreSuffix(v, i, x, true, hasOther);
147
- res && !resArr.includes(res) && resArr.push(res);
148
- });
149
- }
150
- state.curCheckboxValue = resArr;
151
- handleCheckboxOther();
152
- };
153
- const handleDef = (value) => {
154
- var _a2, _b2;
155
- let options = value.options || [];
156
- let valueDef = props.form[props.item.val_key];
157
- let defaultValue = (_a2 = value == null ? void 0 : value.setting) == null ? void 0 : _a2.defaultValue;
158
- if (props.item.type === "EVALUATE_CHECKBOX_BLOCK") {
159
- options = ((_b2 = value.scoreConfigs) == null ? void 0 : _b2.scoreRules) || [];
160
- }
161
- let defVal = [];
162
- if (defaultValue && XEUtils.isJSON(defaultValue)) {
163
- defVal = JSON.parse(defaultValue);
164
- } else {
165
- defVal = valueDef;
166
- }
167
- if (props.inputLock) {
168
- handleCheckboxDefModal(value, value.dbValue || defVal, options);
169
- } else {
170
- handleCheckboxDef(value, value.dbValue || defVal, options);
171
- }
172
- };
173
- watch(() => props.item, (value) => {
174
- if (!value || !Object.keys(value).length)
175
- return;
176
- handleDef(value);
177
- }, {
178
- immediate: true
179
- });
180
- const inputPreSuffixCheckboxChange = (o, i) => {
181
- let choiceObj = {
182
- othersText: state.othersText,
183
- optionsPreSuffixObj: state.optionsPreSuffixObj
184
- };
185
- if (!state.curCheckboxValue.includes(o.key)) {
186
- state.curCheckboxValue.push(o.key);
187
- }
188
- let curCheckboxValue = JSON.parse(JSON.stringify(state.curCheckboxValue));
189
- context.emit("scaleChange", curCheckboxValue, props.item, {
190
- choiceObj,
191
- isSetObj: isCheckboxItem.value
192
- });
193
- };
194
- const renderImg = (o, i) => {
195
- return createVNode("span", {
196
- "class": "scale-choice-img-wrap"
197
- }, [createVNode("img", {
198
- "class": "show-picture",
199
- "src": o.imageUrl
200
- }, null), createVNode("div", {
201
- "class": "scale-preview-wrap"
202
- }, [createVNode(NIcon, {
203
- "size": "24",
204
- "color": "#fff",
205
- "component": SearchOutline,
206
- "onClick": (e) => handlePreview(e, o.imageUrl)
207
- }, null)])]);
208
- };
209
- const renderPresuffix = (o, i) => {
210
- return createVNode("div", {
211
- "class": "presuffix-wrap",
212
- "onClick": stopClick
213
- }, [o.prefix && createVNode("span", {
214
- "class": "prefix-span",
215
- "style": {
216
- color: choiceColor.value(o)
217
- }
218
- }, [o.prefix]), createVNode(resolveComponent("n-input"), {
219
- "value": state.optionsPreSuffixObj[o.key],
220
- "onUpdate:value": ($event) => state.optionsPreSuffixObj[o.key] = $event,
221
- "disabled": props.isLock || props.inputLock,
222
- "style": {
223
- color: choiceColor.value(o)
224
- },
225
- "placeholder": "\u8BF7\u8F93\u5165",
226
- "bordered": false,
227
- "onInput": () => inputPreSuffixCheckboxChange(o)
228
- }, null), o.suffix && createVNode("span", {
229
- "class": "suffix-span",
230
- "style": {
231
- color: choiceColor.value(o)
232
- }
233
- }, [o.suffix])]);
234
- };
235
- const renderDefault = (o) => {
236
- return createVNode("span", {
237
- "style": {
238
- color: choiceColor.value(o)
239
- },
240
- "class": "other-span"
241
- }, [o.label]);
242
- };
243
- const renderOther = (o) => {
244
- return createVNode("div", {
245
- "class": "choose-other",
246
- "onClick": stopClick
247
- }, [createVNode(resolveComponent("n-input"), {
248
- "value": state.othersText,
249
- "onUpdate:value": [($event) => state.othersText = $event, () => handleCheckboxOther(true)],
250
- "disabled": props.isLock || props.inputLock,
251
- "style": {
252
- color: choiceColor.value(o)
253
- },
254
- "placeholder": "\u8BF7\u8F93\u5165",
255
- "bordered": false
256
- }, null)]);
257
- };
258
- const hasPreSuffix = (o) => {
259
- return isCheckboxItem.value && showPreSuffix.value(o);
260
- };
261
- let opKey = choiceUseKey.value;
262
- return () => {
263
- let _slot;
264
- return createVNode(NCheckboxGroup, {
265
- "value": state.curCheckboxValue,
266
- "onUpdate:value": [($event) => state.curCheckboxValue = $event, () => handleCheckboxOther(false)],
267
- "class": ["c-choice-wrap", "choice-wrap-" + chooseStyleSetting],
268
- "disabled": props.isLock
269
- }, _isSlot(_slot = state.curOptions.map((o, i) => createVNode(resolveComponent("n-checkbox"), {
270
- "key": o.value,
271
- "value": o[opKey]
272
- }, {
273
- default: () => [showImgWrap.value(o) && renderImg(o), hasPreSuffix(o) && renderPresuffix(o), !hasPreSuffix(o) && renderDefault(o), o.importability && renderOther(o)]
274
- }))) ? _slot : {
275
- default: () => [_slot]
276
- });
277
- };
278
- }
279
- });
280
-
281
- export { scriptCheckbox as default };
1
+ import{defineComponent as e,reactive as o,watch as t,createVNode as l,resolveComponent as i,isVNode as r}from"vue";import{NCheckboxGroup as u,NCheckbox as s,NInput as c,NIcon as a}from"naive-ui";import{api as n}from"v-viewer";import{SearchOutline as p}from"@vicons/ionicons5";import h from"xe-utils";import"moment";import f from"../composables/choose-common.js";var d=e({name:"RCheckbox",components:{NCheckboxGroup:u,NCheckbox:s,NInput:c,NIcon:a},props:{form:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},isLock:{type:Boolean,default:!1},inputLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,s){var c,d;const x=o({curCheckboxValue:[],othersText:"",curOptions:[],optionsPreSuffixObj:{}}),{choiceColor:m,showImgWrap:b,handleDefPreSuffix:v,choiceUseKey:k,isCheckboxItem:C,showPreSuffix:O,handleOptions:y,stopClick:g}=f(e,x),S=(null==(d=null==(c=e.item)?void 0:c.setting)?void 0:d.chooseStyleSetting)||1,V=o=>{let t={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};o&&!x.curCheckboxValue.includes("other")&&x.curCheckboxValue.push("other");let l=JSON.parse(JSON.stringify(x.curCheckboxValue));s.emit("scaleChange",l,e.item,{choiceObj:t,isSetObj:C.value})},j=o=>{var t,l;let i=o.options||[],r=e.form[e.item.val_key],u=null==(t=null==o?void 0:o.setting)?void 0:t.defaultValue;"EVALUATE_CHECKBOX_BLOCK"===e.item.type&&(i=(null==(l=o.scoreConfigs)?void 0:l.scoreRules)||[]);let s=[];s=u&&h.isJSON(u)?JSON.parse(u):r,e.inputLock?((e,o,t)=>{var l;if(x.curOptions=y(t),!t.length||!o||!o.length)return;let i,r=[],u=0,s=o.length;for(;u<s;u++){if(i=o[u],"其他"===i){x.othersText=i,x.curCheckboxValue=["other"],!r.includes("other")&&r.push("other");continue}let e=t.findIndex((e=>e.value===i));if(e<0){x.othersText=i,!r.includes("other")&&r.push("other");continue}let s=null==(l=t[e])?void 0:l.key;r.indexOf(s)<0&&r.push(s)}x.curCheckboxValue=r,V()})(0,o.dbValue||s,i):((e,o,t)=>{var l;if(x.curOptions=y(t),!t.length||!o||!o.length)return;if("EVALUATE_CHECKBOX_BLOCK"===e.type)return x.curCheckboxValue=o,void V();let i,r=[],u=0,s=o.length,c=t.some((e=>e.importability||"other"===e.key));for(;u<s;u++){if(i=o[u],"其他"===i){x.othersText=i,x.curCheckboxValue=["other"],!r.includes("other")&&r.push("other");continue}let e=t.findIndex((e=>e.value===i));if(e>0){let o=null==(l=t[e])?void 0:l.key;!r.includes(o)&&r.push(o)}else t.map((e=>{let o=v(e,u,i,!0,c);o&&!r.includes(o)&&r.push(o)}))}x.curCheckboxValue=r,V()})(o,o.dbValue||s,i)};t((()=>e.item),(e=>{e&&Object.keys(e).length&&j(e)}),{immediate:!0});const L=(e,o)=>l("span",{class:"scale-choice-img-wrap"},[l("img",{class:"show-picture",src:e.imageUrl},null),l("div",{class:"scale-preview-wrap"},[l(a,{size:"24",color:"#fff",component:p,onClick:o=>((e,o)=>{e.preventDefault(),e.stopPropagation();let t=x.curOptions.map((e=>e.imageUrl)).filter(Boolean);if(!t.length)return;let l=t.findIndex((e=>e===o));n({images:t,options:{toolbar:!0,initialViewIndex:l<0?0:l}})})(o,e.imageUrl)},null)])]),T=(o,t)=>l("div",{class:"presuffix-wrap",onClick:g},[o.prefix&&l("span",{class:"prefix-span",style:{color:m.value(o)}},[o.prefix]),l(i("n-input"),{value:x.optionsPreSuffixObj[o.key],"onUpdate:value":e=>x.optionsPreSuffixObj[o.key]=e,disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1,onInput:()=>((o,t)=>{let l={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};x.curCheckboxValue.includes(o.key)||x.curCheckboxValue.push(o.key);let i=JSON.parse(JSON.stringify(x.curCheckboxValue));s.emit("scaleChange",i,e.item,{choiceObj:l,isSetObj:C.value})})(o)},null),o.suffix&&l("span",{class:"suffix-span",style:{color:m.value(o)}},[o.suffix])]),w=e=>l("span",{style:{color:m.value(e)},class:"other-span"},[e.label]),N=o=>l("div",{class:"choose-other",onClick:g},[l(i("n-input"),{value:x.othersText,"onUpdate:value":[e=>x.othersText=e,()=>V(!0)],disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1},null)]),P=e=>C.value&&O.value(e);let I=k.value;return()=>{let o;return l(u,{value:x.curCheckboxValue,"onUpdate:value":[e=>x.curCheckboxValue=e,()=>V(!1)],class:["c-choice-wrap","choice-wrap-"+S],disabled:e.isLock},"function"==typeof(t=o=x.curOptions.map(((e,o)=>l(i("n-checkbox"),{key:e.value,value:e[I]},{default:()=>[b.value(e)&&L(e),P(e)&&T(e),!P(e)&&w(e),e.importability&&N(e)]}))))||"[object Object]"===Object.prototype.toString.call(t)&&!r(t)?o:{default:()=>[o]});var t}}});export{d as default};