cnhis-design-vue 3.1.44-release.5 → 3.1.45-3.1.45-release.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +0 -6
  3. package/es/components/base-search/src/index.vue.d.ts +0 -6
  4. package/es/components/base-search/src/index.vue2.js +1 -1
  5. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  6. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  7. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  8. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  9. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  10. package/es/components/classification/index.d.ts +553 -75
  11. package/es/components/classification/src/components/search-filter/index.vue.d.ts +551 -61
  12. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  13. package/es/components/classification/src/components/set-classification/index.vue.d.ts +553 -75
  14. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  15. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  16. package/es/components/classification/src/const/index.d.ts +2 -2
  17. package/es/components/classification/src/index.vue.d.ts +553 -75
  18. package/es/components/classification/src/index.vue2.js +1 -1
  19. package/es/components/classification/style/index.css +1 -1
  20. package/es/components/fabric-chart/index.d.ts +5 -41
  21. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -41
  22. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/{useBirthProcess.d.ts → birthProcess/useBirthProcess.d.ts} +2 -2
  24. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -0
  25. package/es/components/fabric-chart/src/hooks/{useBirthProcessChart.d.ts → birthProcess/useBirthProcessChart.d.ts} +3 -3
  26. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -0
  27. package/es/components/fabric-chart/src/hooks/index.d.ts +5 -7
  28. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +6 -0
  30. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -0
  31. package/es/components/fabric-chart/src/hooks/temperature/index.d.ts +6 -0
  32. package/es/components/fabric-chart/src/hooks/temperature/index.js +1 -0
  33. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +4 -0
  34. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
  35. package/es/components/fabric-chart/src/hooks/{useCenter.d.ts → temperature/useCenter.d.ts} +3 -3
  36. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -0
  37. package/es/components/fabric-chart/src/hooks/{useLeft.d.ts → temperature/useLeft.d.ts} +3 -3
  38. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -0
  39. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +4 -0
  40. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -0
  41. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +4 -0
  42. package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -0
  43. package/es/components/fabric-chart/src/hooks/{useShadow.d.ts → temperature/useShadow.d.ts} +1 -1
  44. package/es/components/fabric-chart/src/hooks/temperature/useShadow.js +1 -0
  45. package/es/components/fabric-chart/src/hooks/{useTemperatureChart.d.ts → temperature/useTemperatureChart.d.ts} +3 -3
  46. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -0
  47. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +4 -0
  48. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
  49. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -1
  50. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  51. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
  52. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  53. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  54. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
  55. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  56. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  57. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
  58. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
  59. package/es/components/fabric-chart/src/interface.d.ts +3 -3
  60. package/es/components/fabric-chart/src/utils/index.js +1 -1
  61. package/es/components/form-config/index.d.ts +0 -2
  62. package/es/components/form-config/src/FormConfig.vue.d.ts +0 -2
  63. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +0 -1
  64. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -1
  65. package/es/components/form-render/index.d.ts +0 -1
  66. package/es/components/form-render/src/FormRender.vue.d.ts +0 -1
  67. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  68. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +0 -1
  69. package/es/components/form-render/src/components/renderer/input.d.ts +4 -4
  70. package/es/components/form-render/src/components/renderer/input.js +1 -1
  71. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +4 -4
  72. package/es/components/form-render/src/components/renderer/inputNumber.js +1 -1
  73. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  74. package/es/components/form-render/src/types/index.d.ts +2 -0
  75. package/es/components/iho-table/index.d.ts +2 -0
  76. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
  77. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
  78. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  79. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  80. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +3 -4
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -1
  85. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  86. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  87. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
  88. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  89. package/es/components/iho-table/src/types/index.d.ts +1 -0
  90. package/es/components/iho-table/style/index.css +1 -1
  91. package/es/components/index.css +1 -1
  92. package/es/components/index.d.ts +2 -1
  93. package/es/components/index.js +1 -1
  94. package/es/components/info-header/index.d.ts +8 -2
  95. package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -2
  96. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +0 -1
  97. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +0 -1
  98. package/es/components/picture-clipper/index.d.ts +59 -0
  99. package/es/components/picture-clipper/index.js +1 -0
  100. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +59 -0
  101. package/es/components/picture-clipper/src/PictureClipper.vue.js +1 -0
  102. package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -0
  103. package/es/components/picture-clipper/style/index.css +1 -0
  104. package/es/components/quick-search/index.d.ts +0 -6
  105. package/es/components/quick-search/src/index.vue.d.ts +0 -6
  106. package/es/components/quick-search/src/index.vue2.js +1 -1
  107. package/es/components/quick-search/style/index.css +1 -1
  108. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  109. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  110. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  111. package/es/components/shortcut-setter/index.d.ts +0 -1
  112. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -1
  113. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
  114. package/es/components/steps-wheel/style/index.css +1 -1
  115. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +551 -48
  116. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  117. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +134 -0
  118. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -0
  119. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -0
  120. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +140 -0
  121. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -0
  122. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -0
  123. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +28 -0
  124. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -0
  125. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -0
  126. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.d.ts +28 -0
  127. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -0
  128. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +1 -0
  129. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.d.ts +54 -0
  130. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -0
  131. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -0
  132. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +61 -0
  133. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -0
  134. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -0
  135. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +68 -0
  136. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -0
  137. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -0
  138. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +47 -0
  139. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -0
  140. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +551 -0
  141. package/es/components/table-filter/src/components/classify-filter/components/index.js +1 -0
  142. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +551 -48
  143. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -1
  144. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  145. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  146. package/es/components/table-filter/src/components/render-widget/components/{Label.vue.d.ts → LabelInner.vue.d.ts} +1 -9
  147. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -0
  148. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -0
  149. package/es/components/table-filter/src/components/render-widget/components/{SelectLabel.vue.d.ts → LabelOut.vue.d.ts} +1 -9
  150. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -0
  151. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -0
  152. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +1 -9
  153. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  154. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +713 -8
  155. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  156. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +0 -6
  157. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  158. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -27
  159. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  160. package/es/components/table-filter/src/constants/index.d.ts +3 -0
  161. package/es/components/table-filter/src/constants/index.js +1 -0
  162. package/es/components/table-filter/src/directive/resize.js +1 -1
  163. package/es/components/table-filter/src/tool/baseOptions.d.ts +4 -0
  164. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  165. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  166. package/es/components/table-filter/src/tool/transformData.js +1 -1
  167. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  168. package/es/components/table-filter/src/types/enums.js +1 -1
  169. package/es/env.d.ts +25 -25
  170. package/es/shared/assets/img/failure.png.js +1 -1
  171. package/es/shared/assets/img/no-permission.png.js +1 -1
  172. package/es/shared/assets/img/nodata.png.js +1 -1
  173. package/es/shared/assets/img/notfound.png.js +1 -1
  174. package/es/shared/assets/img/qr.png.js +1 -1
  175. package/es/shared/assets/img/success.png.js +1 -1
  176. package/es/shared/assets/img/video.png.js +1 -1
  177. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  178. package/es/shared/assets/img/xb_big.png.js +1 -1
  179. package/es/shared/assets/img/xb_small.png.js +1 -1
  180. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  181. package/es/shared/package.json.js +1 -1
  182. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  183. package/es/shared/utils/fabricjs/index.js +1 -0
  184. package/es/shared/utils/tapable/index.d.ts +139 -0
  185. package/package.json +2 -2
  186. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +0 -1
  187. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +0 -1
  188. package/es/components/fabric-chart/src/hooks/useBottom.d.ts +0 -4
  189. package/es/components/fabric-chart/src/hooks/useBottom.js +0 -1
  190. package/es/components/fabric-chart/src/hooks/useCenter.js +0 -1
  191. package/es/components/fabric-chart/src/hooks/useLeft.js +0 -1
  192. package/es/components/fabric-chart/src/hooks/useOther.d.ts +0 -4
  193. package/es/components/fabric-chart/src/hooks/useOther.js +0 -1
  194. package/es/components/fabric-chart/src/hooks/useRight.d.ts +0 -4
  195. package/es/components/fabric-chart/src/hooks/useRight.js +0 -1
  196. package/es/components/fabric-chart/src/hooks/useShadow.js +0 -1
  197. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +0 -1
  198. package/es/components/fabric-chart/src/hooks/useTop.d.ts +0 -4
  199. package/es/components/fabric-chart/src/hooks/useTop.js +0 -1
  200. package/es/components/fabric-chart/src/utils/utils.js +0 -1
  201. package/es/components/table-filter/src/components/render-widget/components/Label.vue.js +0 -1
  202. package/es/components/table-filter/src/components/render-widget/components/Label.vue2.js +0 -1
  203. package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue2.js +0 -1
  204. package/es/shared/assets/img/failure.d.ts +0 -2
  205. package/es/shared/assets/img/failure.js +0 -1
  206. package/es/shared/assets/img/icon-asc.d.ts +0 -2
  207. package/es/shared/assets/img/icon-asc.js +0 -1
  208. package/es/shared/assets/img/icon-desc.d.ts +0 -2
  209. package/es/shared/assets/img/icon-desc.js +0 -1
  210. package/es/shared/assets/img/no-permission.d.ts +0 -2
  211. package/es/shared/assets/img/no-permission.js +0 -1
  212. package/es/shared/assets/img/nodata.d.ts +0 -2
  213. package/es/shared/assets/img/nodata.js +0 -1
  214. package/es/shared/assets/img/notfound.d.ts +0 -2
  215. package/es/shared/assets/img/notfound.js +0 -1
  216. package/es/shared/assets/img/qr.d.ts +0 -2
  217. package/es/shared/assets/img/qr.js +0 -1
  218. package/es/shared/assets/img/success.d.ts +0 -2
  219. package/es/shared/assets/img/success.js +0 -1
  220. package/es/shared/assets/img/video.d.ts +0 -2
  221. package/es/shared/assets/img/video.js +0 -1
  222. package/es/shared/assets/img/video_default_cover.d.ts +0 -2
  223. package/es/shared/assets/img/video_default_cover.js +0 -1
  224. package/es/shared/assets/img/video_hover.d.ts +0 -2
  225. package/es/shared/assets/img/video_hover.js +0 -1
  226. package/es/shared/assets/img/video_play_hover.d.ts +0 -2
  227. package/es/shared/assets/img/video_play_hover.js +0 -1
  228. package/es/shared/assets/img/xb_big.d.ts +0 -2
  229. package/es/shared/assets/img/xb_big.js +0 -1
  230. package/es/shared/assets/img/xb_small.d.ts +0 -2
  231. package/es/shared/assets/img/xb_small.js +0 -1
  232. /package/es/components/fabric-chart/src/{hooks/constant.d.ts → constants/index.d.ts} +0 -0
  233. /package/es/components/fabric-chart/src/{hooks/constant.js → constants/index.js} +0 -0
  234. /package/es/components/fabric-chart/src/utils/{utils.d.ts → index.d.ts} +0 -0
  235. /package/es/components/table-filter/src/components/{render-widget → classify-filter}/components/SelectLabel.vue.js +0 -0
@@ -8,9 +8,6 @@ declare const _default: import("vue").DefineComponent<{
8
8
  type: StringConstructor;
9
9
  default: string;
10
10
  };
11
- filterApiConfig: {
12
- type: ObjectConstructor;
13
- };
14
11
  }, {
15
12
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
16
13
  baseActiveColor: string;
@@ -22,15 +19,13 @@ declare const _default: import("vue").DefineComponent<{
22
19
  type: StringConstructor;
23
20
  default: string;
24
21
  };
25
- filterApiConfig: {
26
- type: ObjectConstructor;
27
- };
28
22
  }>> & {
29
23
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
30
24
  }>>;
31
25
  emit: (event: "update:value", ...args: any[]) => void;
32
26
  selectedList: import("vue").Ref<string[]>;
33
27
  tagList: import("vue").Ref<never[]>;
28
+ filterApiConfig: import("../../../../..").AnyObject;
34
29
  categoryList: import("vue").ComputedRef<IFilterCategoryLabelItemType[]>;
35
30
  onResize: (el: HTMLElement, categoryItem: IFilterCategoryLabelItemType) => void;
36
31
  handleLabelUpfold: (categoryItem: IFilterCategoryLabelItemType) => void;
@@ -59,9 +54,6 @@ declare const _default: import("vue").DefineComponent<{
59
54
  type: StringConstructor;
60
55
  default: string;
61
56
  };
62
- filterApiConfig: {
63
- type: ObjectConstructor;
64
- };
65
57
  }>> & {
66
58
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
67
59
  }, {
@@ -0,0 +1 @@
1
+ import e from"./LabelInner.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var l=r(e,[["__file","LabelInner.vue"]]);export{l as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,inject as t,watch as s,computed as o,openBlock as n,createElementBlock as a,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{NTag as k,NTooltip as S,NIcon as w}from"naive-ui";import{ChevronUpCircleOutline as C,ChevronDownCircleOutline as x}from"@vicons/ionicons5";import U from"../../../directive/resize.js";import L from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as j}from"../../../constants/index.js";import{isString as B}from"lodash-es";const T={class:"label-attr-filter-container"},_={class:"edit-f-label"},z={class:"label-f-content"},I={key:0,class:"label-f-unfold-btn"},q=["onClick"],A=d("span",null,"收起",-1),G=d("span",null,"展开",-1);var H=e({__name:"LabelInner",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:H}){const M=e,{handleGetConfigApi:N}=L(),O="rgb(85, 133, 245)",D=l([]),E=l([]),F=t(j);s((()=>M.value),(e=>{const l=e&&B(e)?e.split("|#|"):[];D.value=l}),{immediate:!0});const J=o((()=>E.value&&E.value.length>0?E.value.map((e=>(e.labelList.map((e=>{e.isSelect=D.value.includes(e.labelShowText)})),e))):[])),K=e=>e.isSelect?{background:e.backgroundColor||O,borderColor:e.backgroundColor||O}:{};return(async()=>{try{const{widgetCfg:e={}}=M.componentCfg,{classifyStr:l=""}=e;let t=await N({classifyStr:l},"requestListByClassify",{},F);if(t){const{list:e=[]}=t;E.value=e}}catch(e){console.log(e)}})(),(e,l)=>(n(),a("div",T,[(n(!0),a(i,null,c(r(J),(e=>(n(),a("div",{class:"edit-labels-content",key:e.classifyId},[d("span",_,u(e.classifyName)+":",1),d("div",{class:p(["edit-f-content",{"label-select-height":!e.isUnfold&&e.labelList&&e.isShowBtn}])},[f((n(),a("div",z,[(n(!0),a(i,null,c(e.labelList,(e=>(n(),m(r(k),{checkable:"",key:e.labelCode,checked:e.isSelect,"onUpdate:checked":l=>((e,l)=>{if(l.isSelect=e,e)D.value.push(l.labelShowText);else{const e=D.value.findIndex((e=>e===l.labelShowText));e>-1&&D.value.splice(e,1)}H("update:value",D.value.join("|#|"))})(l,e),style:b(K(e))},{default:v((()=>[h(r(S),{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(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(),a("div",I,[d("span",{class:"operate-btn",onClick:y((l=>(e=>{e.isUnfold=!e.isUnfold})(e)),["stop"])},[e.isUnfold?(n(),a(i,{key:0},[A,h(r(w),{component:r(C),size:"16"},null,8,["component"])],64)):(n(),a(i,{key:1},[G,h(r(w),{component:r(x),size:"16"},null,8,["component"])],64))],8,q)])):g("v-if",!0)])))),128))]))}});export{H as default};
@@ -9,9 +9,6 @@ declare const _default: import("vue").DefineComponent<{
9
9
  type: StringConstructor;
10
10
  default: string;
11
11
  };
12
- filterApiConfig: {
13
- type: ObjectConstructor;
14
- };
15
12
  }, {
16
13
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
17
14
  $attrs: {
@@ -25,14 +22,12 @@ declare const _default: import("vue").DefineComponent<{
25
22
  type: StringConstructor;
26
23
  default: string;
27
24
  };
28
- filterApiConfig: {
29
- type: ObjectConstructor;
30
- };
31
25
  }>> & {
32
26
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
33
27
  }>>;
34
28
  emit: (event: "update:value", ...args: any[]) => void;
35
29
  tagList: import("vue").Ref<never[]>;
30
+ filterApiConfig: import("../../../../..").AnyObject;
36
31
  valueCp: import("vue").WritableComputedRef<string[]>;
37
32
  optionList: import("vue").ComputedRef<SelectOption[]>;
38
33
  initTagList: () => Promise<void>;
@@ -45,9 +40,6 @@ declare const _default: import("vue").DefineComponent<{
45
40
  type: StringConstructor;
46
41
  default: string;
47
42
  };
48
- filterApiConfig: {
49
- type: ObjectConstructor;
50
- };
51
43
  }>> & {
52
44
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
53
45
  }, {
@@ -0,0 +1 @@
1
+ import e from"./LabelOut.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","LabelOut.vue"]]);export{t as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as t,ref as l,inject as a,computed as o,openBlock as s,createBlock as u,unref as n,mergeProps as i,isRef as r}from"vue";import{NSelect as p}from"naive-ui";import c from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as f}from"../../../constants/index.js";var v=e({__name:"LabelOut",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:v}){const m=e,{handleGetConfigApi:h}=c(),d=t(),b=l([]),g=a(f),y=o({set(e){const t=e?e.join("|#|"):e;v("update:value",t)},get:()=>m.value?m.value.split("|#|"):[]}),x=o((()=>{if(b.value&&b.value.length>0){let e=[],t=[];return b.value.forEach((l=>{l.labelList.forEach((l=>{e.includes(l.labelShowText)||(e.push(l.labelShowText),t.push({label:l.labelShowText,value:l.labelShowText}))}))})),t}return[]}));return(async()=>{try{const{widgetCfg:e={}}=m.componentCfg,{classifyStr:t=""}=e;let l=await h({classifyStr:t},"requestListByClassify",{},g);if(l){const{list:e=[]}=l;b.value=e}}catch(e){console.log(e)}})(),(e,t)=>(s(),u(n(p),i({to:"body"},n(d),{value:n(y),"onUpdate:value":t[0]||(t[0]=e=>r(y)?y.value=e:null),options:n(x)}),null,16,["value","options"]))}});export{v as default};
@@ -3,17 +3,11 @@ declare const _default: import("vue").DefineComponent<{
3
3
  value: {
4
4
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
5
5
  };
6
- filterApiConfig: {
7
- type: ObjectConstructor;
8
- };
9
6
  }, {
10
7
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
11
8
  value: {
12
9
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
13
10
  };
14
- filterApiConfig: {
15
- type: ObjectConstructor;
16
- };
17
11
  }>> & {
18
12
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
19
13
  onChangeInitState?: ((...args: any[]) => any) | undefined;
@@ -26,6 +20,7 @@ declare const _default: import("vue").DefineComponent<{
26
20
  selectOptions: import("vue").Ref<any[]>;
27
21
  isRemote: import("vue").Ref<boolean>;
28
22
  isLoading: import("vue").Ref<boolean>;
23
+ filterApiConfig: import("../../../../..").AnyObject;
29
24
  valueCp: import("vue").WritableComputedRef<unknown>;
30
25
  searchOptions: (keyword: string) => Promise<any>;
31
26
  _handleSearch: (query: string) => Promise<void>;
@@ -43,9 +38,6 @@ declare const _default: import("vue").DefineComponent<{
43
38
  value: {
44
39
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
45
40
  };
46
- filterApiConfig: {
47
- type: ObjectConstructor;
48
- };
49
41
  }>> & {
50
42
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
51
43
  onChangeInitState?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,ref as t,computed as n,openBlock as l,createBlock as i,unref as o,mergeProps as u,isRef as r,h as s}from"vue";import{NSelect as c,NTag as p}from"naive-ui";import{useDebounceFn as v}from"@vueuse/core";import d from"../../../hooks/useMixins.js";var f=e({__name:"Select",props:{value:{type:[Array,String,Number]},filterApiConfig:{type:Object}},emits:["update:value","changeInitState"],setup(e,{emit:f}){const y=e,{handleGetConfigApi:m}=d(),g=a(),h=t([]),b=t(!1),w=t(!1),A=n({set(e){const a=Array.isArray(e)?e:e?[e]:null;f("update:value",a)},get(){var e;if(Array.isArray(y.value)&&y.value.length>0){const{multiple:e}=g;return e||1!=y.value.length?y.value:y.value[0]}return null!=(e=y.value)?e:null}});async function I(e){try{if(g.dynamicOptionInfo){const{autograph:a,dataSourceId:t,dataSourceType:n,filterKeys:l,showKeys:i,valueKey:o}=g.dynamicOptionInfo;let u={wordbookId:t,autograph:a,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(u[l[0]]=e),w.value=!0;let r=await m(u,"requestDynamicSelect",{},y.filterApiConfig);if(r){const{fieldList:e=[],rows:a=[]}=r,t=a.map((e=>({...e,label:e[i[0]],value:e[o]})));return h.value=t,t}}}catch(e){console.log(e)}finally{w.value=!1}}const S=v((async e=>{await async function(e){const{manualMapping:a}=g;if(!a){const a=e.trim();await I(a)}}(e)}),300);async function C(){const{manualMapping:e,dynamicOptionInfo:a,valueList:t}=g;if(e&&Array.isArray(t))return b.value=!1,void(h.value=t.map((({value:e,label:a})=>({value:e,label:a}))));Object.keys(a).length>0&&y.filterApiConfig&&(b.value=!0,await I(""))}function O(e){const{manualMapping:a}=g;if(a)return s("div",e.label);const{showKeys:t=[]}=g.dynamicOptionInfo;return g.dynamicOptionInfo&&t.length>0?s("div",{class:"select-widget-dynamic-option"},t.map((a=>s("span",{class:"select-widget-dynamic-item"},e[a])))):s("div",e.label)}function k({option:e,handleClose:a}){const{multiple:t}=g;return t?s(p,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>s("div",e.label)}):s("div",e.label)}return async function(){const{manualMapping:e,defValue:a,defValueUnit:t,_frontId:n,isInit:l}=g;await C();const i=Array.isArray(y.value)?y.value.length>0:y.value;if(!l&&!i){if(e)return f("update:value",a),void f("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=h.value[0];f("update:value",[e.value]),f("changeInitState",n,!0);break}}}}(),(e,a)=>(l(),i(o(c),u(o(g),{value:o(A),"onUpdate:value":a[0]||(a[0]=e=>r(A)?A.value=e:null),loading:w.value,options:h.value,remote:b.value,"render-label":O,"render-tag":k,onSearch:o(S),onClear:C}),null,16,["value","loading","options","remote","onSearch"]))}});export{f as default};
1
+ import{defineComponent as e,useAttrs as a,ref as t,inject as n,computed as l,openBlock as o,createBlock as i,unref as u,mergeProps as r,isRef as s,h as c}from"vue";import{NSelect as p,NTag as v}from"naive-ui";import{useDebounceFn as d}from"@vueuse/core";import f from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as m}from"../../../constants/index.js";var y=e({__name:"Select",props:{value:{type:[Array,String,Number]}},emits:["update:value","changeInitState"],setup(e,{emit:y}){const g=e,{handleGetConfigApi:h}=f(),b=a(),w=t([]),I=t(!1),S=t(!1),A=n(m),O=l({set(e){const a=Array.isArray(e)?e:e?[e]:null;y("update:value",a)},get(){var e;if(Array.isArray(g.value)&&g.value.length>0){const{multiple:e}=b;return e||1!=g.value.length?g.value:g.value[0]}return null!=(e=g.value)?e:null}});async function k(e){try{if(b.dynamicOptionInfo){const{autograph:a,dataSourceId:t,dataSourceType:n,filterKeys:l,showKeys:o,valueKey:i}=b.dynamicOptionInfo;let u={wordbookId:t,autograph:a,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(u[l[0]]=e),S.value=!0;let r=await h(u,"requestDynamicSelect",{},A);if(r){const{fieldList:e=[],rows:a=[]}=r,t=a.map((e=>({...e,label:e[o[0]],value:e[i]})));return w.value=t,t}}}catch(e){console.log(e)}finally{S.value=!1}}const K=d((async e=>{await async function(e){const{manualMapping:a}=b;if(!a){const a=e.trim();await k(a)}}(e)}),300);async function M(){const{manualMapping:e,dynamicOptionInfo:a,valueList:t}=b;if(e&&Array.isArray(t))return I.value=!1,void(w.value=t.map((({value:e,label:a})=>({value:e,label:a}))));Object.keys(a).length>0&&A&&(I.value=!0,await k(""))}function x(e){const{manualMapping:a}=b;if(a)return c("div",e.label);const{showKeys:t=[]}=b.dynamicOptionInfo;return b.dynamicOptionInfo&&t.length>0?c("div",{class:"select-widget-dynamic-option"},t.map((a=>c("span",{class:"select-widget-dynamic-item"},e[a])))):c("div",e.label)}function C({option:e,handleClose:a}){const{multiple:t}=b;return t?c(v,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>c("div",e.label)}):c("div",e.label)}return async function(){const{manualMapping:e,defValue:a,defValueUnit:t,_frontId:n,isInit:l}=b;await M();const o=Array.isArray(g.value)?g.value.length>0:g.value;if(!l&&!o){if(e)return y("update:value",a),void y("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=w.value[0];y("update:value",[e.value]),y("changeInitState",n,!0);break}}}}(),(e,a)=>(o(),i(u(p),r(u(b),{value:u(O),"onUpdate:value":a[0]||(a[0]=e=>s(O)?O.value=e:null),to:"body",loading:S.value,options:w.value,remote:I.value,"render-label":x,"render-tag":C,onSearch:u(K),onClear:M}),null,16,["value","loading","options","remote","onSearch"]))}});export{y as default};