cnhis-design-vue 3.1.45-beta.9 → 3.1.45-release.1

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 (204) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/base-search/index.d.ts +0 -2
  4. package/es/components/base-search/src/index.vue.d.ts +0 -2
  5. package/es/components/base-search/style/index.css +1 -1
  6. package/es/components/classification/index.d.ts +11 -165
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +11 -165
  8. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  9. package/es/components/classification/src/components/set-classification/index.vue.d.ts +11 -165
  10. package/es/components/classification/src/index.vue.d.ts +11 -165
  11. package/es/components/fabric-chart/index.d.ts +5 -40
  12. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -40
  13. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +0 -20
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
  20. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  22. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  23. package/es/components/fabric-chart/src/interface.d.ts +0 -13
  24. package/es/components/fabric-chart/src/utils/index.d.ts +1 -2
  25. package/es/components/fabric-chart/src/utils/index.js +1 -1
  26. package/es/components/field-set/index.d.ts +38 -157
  27. package/es/components/field-set/src/FieldSet.vue.d.ts +23 -160
  28. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  29. package/es/components/field-set/src/types/index.d.ts +0 -1
  30. package/es/components/field-set/style/index.css +1 -1
  31. package/es/components/form-config/index.d.ts +48 -3561
  32. package/es/components/form-config/src/FormConfig.vue.d.ts +48 -3561
  33. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  34. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -31
  35. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
  36. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -33
  37. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -11
  38. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  39. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +0 -2
  40. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
  41. package/es/components/form-config/src/constants/index.d.ts +0 -1
  42. package/es/components/form-config/src/constants/index.js +1 -1
  43. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  44. package/es/components/form-config/src/types/index.d.ts +0 -2
  45. package/es/components/form-config/style/index.css +1 -1
  46. package/es/components/form-render/index.d.ts +4 -31
  47. package/es/components/form-render/src/FormRender.vue.d.ts +4 -31
  48. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  49. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -31
  50. package/es/components/form-render/src/components/renderer/combination.d.ts +5 -5
  51. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  52. package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +5 -5
  53. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
  54. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  55. package/es/components/form-render/src/constants/index.d.ts +0 -2
  56. package/es/components/form-render/src/constants/index.js +1 -1
  57. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  58. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +1 -1
  59. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
  60. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  61. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +1 -3
  62. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
  63. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  64. package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
  65. package/es/components/form-render/src/types/index.d.ts +0 -2
  66. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  67. package/es/components/index.css +1 -1
  68. package/es/components/info-header/index.d.ts +10 -72
  69. package/es/components/info-header/src/InfoHeader.vue.d.ts +10 -72
  70. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +4 -31
  71. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -31
  72. package/es/components/keyboard/index.d.ts +1 -1
  73. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  74. package/es/components/quick-search/index.d.ts +0 -2
  75. package/es/components/quick-search/src/index.vue.d.ts +0 -2
  76. package/es/components/quick-search/style/index.css +1 -1
  77. package/es/components/recommend-search/index.d.ts +2 -2
  78. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  79. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  80. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  81. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  82. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  83. package/es/components/search-cascader/index.d.ts +3 -16
  84. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +3 -16
  85. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  86. package/es/components/search-cascader/src/hooks/index.d.ts +1 -0
  87. package/es/components/search-cascader/src/hooks/index.js +1 -0
  88. package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +3 -0
  89. package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -0
  90. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  91. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  92. package/es/components/shortcut-setter/index.d.ts +4 -31
  93. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -31
  94. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +10 -165
  95. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  96. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -16
  97. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  98. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +0 -18
  99. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  100. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +10 -128
  101. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  102. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +0 -1
  103. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  104. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +10 -163
  105. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +10 -165
  106. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
  107. package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
  108. package/es/components/table-filter/src/components/render-widget/components/{DateOut.vue.d.ts → Date.vue.d.ts} +2 -21
  109. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  110. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  111. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +5 -99
  112. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  113. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +9 -13
  114. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  115. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +5 -7
  116. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  117. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +5 -6
  118. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  119. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +25 -15
  120. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  121. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +25 -520
  122. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  123. package/es/components/table-filter/src/components/render-widget/enums.d.ts +3 -10
  124. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  125. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +6 -2
  126. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  127. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  128. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +24 -548
  129. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  130. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +0 -2
  131. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  132. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  133. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  134. package/es/components/table-filter/src/types/enums.d.ts +0 -2
  135. package/es/components/table-filter/src/types/enums.js +1 -1
  136. package/es/env.d.ts +25 -25
  137. package/es/shared/assets/img/failure.png.js +1 -1
  138. package/es/shared/assets/img/no-permission.png.js +1 -1
  139. package/es/shared/assets/img/nodata.png.js +1 -1
  140. package/es/shared/assets/img/notfound.png.js +1 -1
  141. package/es/shared/assets/img/qr.png.js +1 -1
  142. package/es/shared/assets/img/success.png.js +1 -1
  143. package/es/shared/assets/img/video.png.js +1 -1
  144. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  145. package/es/shared/assets/img/xb_big.png.js +1 -1
  146. package/es/shared/assets/img/xb_small.png.js +1 -1
  147. package/es/shared/hooks/useAsyncQueue.d.ts +1 -3
  148. package/es/shared/hooks/useAsyncQueue.js +1 -1
  149. package/es/shared/package.json.js +1 -1
  150. package/package.json +2 -2
  151. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  152. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  153. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  154. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  155. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.d.ts +0 -2
  156. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +0 -1
  157. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +0 -4
  158. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +0 -1
  159. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +0 -4
  160. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +0 -1
  161. package/es/components/field-set/src/components/Row.vue.d.ts +0 -132
  162. package/es/components/field-set/src/components/Row.vue.js +0 -1
  163. package/es/components/field-set/src/components/Row.vue2.js +0 -1
  164. package/es/components/field-set/src/utils/index.d.ts +0 -7
  165. package/es/components/field-set/src/utils/index.js +0 -1
  166. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
  167. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
  168. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
  169. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
  170. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  171. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
  172. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
  173. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
  174. package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
  175. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
  176. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
  177. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
  178. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
  179. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
  180. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic1.vue.d.ts +0 -61
  181. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +0 -218
  182. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +0 -1
  183. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +0 -1
  184. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +0 -1
  185. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +0 -1
  186. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +0 -71
  187. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +0 -1
  188. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +0 -1
  189. package/es/components/table-filter/src/components/render-widget/components/Select1.vue.d.ts +0 -45
  190. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +0 -175
  191. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +0 -1
  192. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +0 -1
  193. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +0 -114
  194. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +0 -1
  195. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +0 -1
  196. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +0 -27
  197. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +0 -1
  198. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +0 -55
  199. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +0 -1
  200. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +0 -56
  201. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +0 -1
  202. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  203. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  204. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -2154,7 +2154,6 @@ declare const _default: import("vue").DefineComponent<{
2154
2154
  onSetup(): void;
2155
2155
  beforeRequest(fieldKey: string, params?: import("../../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../../es/shared/types").UndefinedAble<import("../../../../../../es/shared/types").AnyObject>;
2156
2156
  afterRequest(fieldKey: string, payload?: any): import("../../../../../../es/shared/types").AnyObject[];
2157
- afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[]): void;
2158
2157
  }>>;
2159
2158
  };
2160
2159
  requestInstance: {
@@ -2174,10 +2173,6 @@ declare const _default: import("vue").DefineComponent<{
2174
2173
  type: (BooleanConstructor | StringConstructor)[];
2175
2174
  default: boolean;
2176
2175
  };
2177
- uniqueCacheData: {
2178
- type: BooleanConstructor;
2179
- default: boolean;
2180
- };
2181
2176
  }, {
2182
2177
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2183
2178
  fieldList: {
@@ -2291,7 +2286,6 @@ declare const _default: import("vue").DefineComponent<{
2291
2286
  onSetup(): void;
2292
2287
  beforeRequest(fieldKey: string, params?: import("../../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../../es/shared/types").UndefinedAble<import("../../../../../../es/shared/types").AnyObject>;
2293
2288
  afterRequest(fieldKey: string, payload?: any): import("../../../../../../es/shared/types").AnyObject[];
2294
- afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[]): void;
2295
2289
  }>>;
2296
2290
  };
2297
2291
  requestInstance: {
@@ -2311,16 +2305,12 @@ declare const _default: import("vue").DefineComponent<{
2311
2305
  type: (BooleanConstructor | StringConstructor)[];
2312
2306
  default: boolean;
2313
2307
  };
2314
- uniqueCacheData: {
2315
- type: BooleanConstructor;
2316
- default: boolean;
2317
- };
2318
2308
  }>> & {
2319
2309
  onFormChange?: ((...args: any[]) => any) | undefined;
2320
2310
  onScroll?: ((...args: any[]) => any) | undefined;
2321
2311
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
2322
2312
  }>>;
2323
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
2313
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
2324
2314
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
2325
2315
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
2326
2316
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -2340,17 +2330,6 @@ declare const _default: import("vue").DefineComponent<{
2340
2330
  title: string;
2341
2331
  }[]>;
2342
2332
  onScroll: (scrollEvent: Event) => void;
2343
- callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
2344
- onSetup(): void;
2345
- beforeRequest(fieldKey: string, params?: import("../../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../../es/shared/types").UndefinedAble<import("../../../../../../es/shared/types").AnyObject>;
2346
- afterRequest(fieldKey: string, payload?: any): import("../../../../../../es/shared/types").AnyObject[];
2347
- afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[]): void;
2348
- }>>[T]> | undefined) => import("../../../../../../es/shared/types").UndefinedAble<ReturnType<Required<Partial<{
2349
- onSetup(): void;
2350
- beforeRequest(fieldKey: string, params?: import("../../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../../es/shared/types").UndefinedAble<import("../../../../../../es/shared/types").AnyObject>;
2351
- afterRequest(fieldKey: string, payload?: any): import("../../../../../../es/shared/types").AnyObject[];
2352
- afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[]): void;
2353
- }>>[T]>>;
2354
2333
  triggerAutoHidden: (field: import("../../../../../../es/components/form-render").GeneralField) => Promise<void>;
2355
2334
  observeFormGraph: Record<string, import("../../../../../../es/components/form-render").GeneralField>;
2356
2335
  setGraph: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
@@ -2494,11 +2473,11 @@ declare const _default: import("vue").DefineComponent<{
2494
2473
  onFocus: (...args: any[]) => Promise<void>;
2495
2474
  onBlur: (...args: any[]) => Promise<void>;
2496
2475
  onInput: (...args: any[]) => Promise<void>;
2497
- editable: boolean;
2498
2476
  reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2499
2477
  title: string;
2478
+ editable: boolean;
2500
2479
  visible: boolean;
2501
- submit: <T_1>(onSubmit?: ((values: any) => void | Promise<T_1>) | undefined) => Promise<T_1>;
2480
+ submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2502
2481
  validator: import("../../../../../../es/components/form-render").FieldValidator;
2503
2482
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
2504
2483
  content: any;
@@ -2642,7 +2621,7 @@ declare const _default: import("vue").DefineComponent<{
2642
2621
  readonly displayDirective: "if" | "show" | "show:lazy";
2643
2622
  }>;
2644
2623
  NTabs: any;
2645
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2624
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2646
2625
  fieldList: {
2647
2626
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FieldItem[]>;
2648
2627
  };
@@ -2754,7 +2733,6 @@ declare const _default: import("vue").DefineComponent<{
2754
2733
  onSetup(): void;
2755
2734
  beforeRequest(fieldKey: string, params?: import("../../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../../es/shared/types").UndefinedAble<import("../../../../../../es/shared/types").AnyObject>;
2756
2735
  afterRequest(fieldKey: string, payload?: any): import("../../../../../../es/shared/types").AnyObject[];
2757
- afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[]): void;
2758
2736
  }>>;
2759
2737
  };
2760
2738
  requestInstance: {
@@ -2774,10 +2752,6 @@ declare const _default: import("vue").DefineComponent<{
2774
2752
  type: (BooleanConstructor | StringConstructor)[];
2775
2753
  default: boolean;
2776
2754
  };
2777
- uniqueCacheData: {
2778
- type: BooleanConstructor;
2779
- default: boolean;
2780
- };
2781
2755
  }>> & {
2782
2756
  onFormChange?: ((...args: any[]) => any) | undefined;
2783
2757
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2794,7 +2768,6 @@ declare const _default: import("vue").DefineComponent<{
2794
2768
  enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
2795
2769
  linebarAutoHidden: boolean;
2796
2770
  bordered: string | boolean;
2797
- uniqueCacheData: boolean;
2798
2771
  }>;
2799
2772
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
2800
2773
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -166,7 +166,6 @@ declare const _default: import("vue").DefineComponent<{
166
166
  onSetup(): void;
167
167
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
168
168
  afterRequest(fieldKey: string, payload?: any): import("../../../..").AnyObject[];
169
- afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[]): void;
170
169
  }>>;
171
170
  };
172
171
  requestInstance: {
@@ -186,10 +185,6 @@ declare const _default: import("vue").DefineComponent<{
186
185
  type: (BooleanConstructor | StringConstructor)[];
187
186
  default: boolean;
188
187
  };
189
- uniqueCacheData: {
190
- type: BooleanConstructor;
191
- default: boolean;
192
- };
193
188
  }, {
194
189
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
195
190
  fieldList: {
@@ -303,7 +298,6 @@ declare const _default: import("vue").DefineComponent<{
303
298
  onSetup(): void;
304
299
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
305
300
  afterRequest(fieldKey: string, payload?: any): import("../../../..").AnyObject[];
306
- afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[]): void;
307
301
  }>>;
308
302
  };
309
303
  requestInstance: {
@@ -323,16 +317,12 @@ declare const _default: import("vue").DefineComponent<{
323
317
  type: (BooleanConstructor | StringConstructor)[];
324
318
  default: boolean;
325
319
  };
326
- uniqueCacheData: {
327
- type: BooleanConstructor;
328
- default: boolean;
329
- };
330
320
  }>> & {
331
321
  onFormChange?: ((...args: any[]) => any) | undefined;
332
322
  onScroll?: ((...args: any[]) => any) | undefined;
333
323
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
334
324
  }>>;
335
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
325
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
336
326
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
337
327
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
338
328
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -352,17 +342,6 @@ declare const _default: import("vue").DefineComponent<{
352
342
  title: string;
353
343
  }[]>;
354
344
  onScroll: (scrollEvent: Event) => void;
355
- callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
356
- onSetup(): void;
357
- beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
358
- afterRequest(fieldKey: string, payload?: any): import("../../../..").AnyObject[];
359
- afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[]): void;
360
- }>>[T]> | undefined) => import("../../../..").UndefinedAble<ReturnType<Required<Partial<{
361
- onSetup(): void;
362
- beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
363
- afterRequest(fieldKey: string, payload?: any): import("../../../..").AnyObject[];
364
- afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[]): void;
365
- }>>[T]>>;
366
345
  triggerAutoHidden: (field: import("../../../../../../es/components/form-render").GeneralField) => Promise<void>;
367
346
  observeFormGraph: Record<string, import("../../../../../../es/components/form-render").GeneralField>;
368
347
  setGraph: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
@@ -506,11 +485,11 @@ declare const _default: import("vue").DefineComponent<{
506
485
  onFocus: (...args: any[]) => Promise<void>;
507
486
  onBlur: (...args: any[]) => Promise<void>;
508
487
  onInput: (...args: any[]) => Promise<void>;
509
- editable: boolean;
510
488
  reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
511
489
  title: string;
490
+ editable: boolean;
512
491
  visible: boolean;
513
- submit: <T_1>(onSubmit?: ((values: any) => void | Promise<T_1>) | undefined) => Promise<T_1>;
492
+ submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
514
493
  validator: import("../../../../../../es/components/form-render").FieldValidator;
515
494
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
516
495
  content: any;
@@ -654,7 +633,7 @@ declare const _default: import("vue").DefineComponent<{
654
633
  readonly displayDirective: "if" | "show" | "show:lazy";
655
634
  }>;
656
635
  NTabs: any;
657
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
636
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
658
637
  fieldList: {
659
638
  type: import("vue").PropType<FieldItem[]>;
660
639
  };
@@ -766,7 +745,6 @@ declare const _default: import("vue").DefineComponent<{
766
745
  onSetup(): void;
767
746
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
768
747
  afterRequest(fieldKey: string, payload?: any): import("../../../..").AnyObject[];
769
- afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[]): void;
770
748
  }>>;
771
749
  };
772
750
  requestInstance: {
@@ -786,10 +764,6 @@ declare const _default: import("vue").DefineComponent<{
786
764
  type: (BooleanConstructor | StringConstructor)[];
787
765
  default: boolean;
788
766
  };
789
- uniqueCacheData: {
790
- type: BooleanConstructor;
791
- default: boolean;
792
- };
793
767
  }>> & {
794
768
  onFormChange?: ((...args: any[]) => any) | undefined;
795
769
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -806,7 +780,6 @@ declare const _default: import("vue").DefineComponent<{
806
780
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
807
781
  linebarAutoHidden: boolean;
808
782
  bordered: string | boolean;
809
- uniqueCacheData: boolean;
810
783
  }>;
811
784
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
812
785
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -297,7 +297,7 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
297
297
  positionInitialValue: import("@vueuse/core").Position;
298
298
  moveOffset: import("@vueuse/core").Position;
299
299
  }>;
300
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "keydown" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
300
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
301
301
  mode: {
302
302
  type: import("vue").PropType<"number" | "day" | "dose" | "english">;
303
303
  default: string;
@@ -298,7 +298,7 @@ declare const _default: import("vue").DefineComponent<{
298
298
  positionInitialValue: Position;
299
299
  moveOffset: Position;
300
300
  }>;
301
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "keydown" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
301
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
302
302
  mode: {
303
303
  type: PropType<"number" | "day" | "dose" | "english">;
304
304
  default: string;
@@ -46,14 +46,12 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
46
46
  isRender: boolean;
47
47
  isInit: boolean;
48
48
  widgetType: string | null;
49
- originType: string | null;
50
49
  valueList: {
51
50
  value: any;
52
51
  label: any;
53
52
  }[] | undefined;
54
53
  defaultValue: any;
55
54
  defValueUnit: any;
56
- optionSetting: string | undefined;
57
55
  multiple: boolean;
58
56
  manualMapping: boolean | null | undefined;
59
57
  dynamicOptionInfo: import("..").dynamicOptionInfoType | {} | undefined;
@@ -48,14 +48,12 @@ declare const _default: import("vue").DefineComponent<{
48
48
  isRender: boolean;
49
49
  isInit: boolean;
50
50
  widgetType: string | null;
51
- originType: string | null;
52
51
  valueList: {
53
52
  value: any;
54
53
  label: any;
55
54
  }[] | undefined;
56
55
  defaultValue: any;
57
56
  defValueUnit: any;
58
- optionSetting: string | undefined;
59
57
  multiple: boolean;
60
58
  manualMapping: boolean | null | undefined;
61
59
  dynamicOptionInfo: import("../../../../es/components/table-filter/src/types").dynamicOptionInfoType | {} | undefined;
@@ -1 +1 @@
1
- .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.select-dynamic-popover .n-base-select-menu__empty{justify-content:left;padding:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options{background:#fff;box-shadow:0 0 6px rgba(0,0,0,.2);display:flex;flex-direction:column;justify-content:left}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .n-empty{padding:12px 32px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .mixins-options-active{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header .name{align-items:center;display:flex;flex:1;font-weight:700;height:34px;padding:0 12px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content{list-style:none;margin:0;max-height:250px;outline:none;overflow:auto;padding-left:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li{color:rgba(0,0,0,.65);cursor:pointer;display:flex;font-size:14px;line-height:22px;text-overflow:ellipsis;transition:background .3s ease;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li.actived{color:#5585f5}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li:hover{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li .content{flex:1;overflow:hidden;padding:5px 12px;text-overflow:ellipsis;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination{width:100%}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group .n-button{flex:1}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
1
+ .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.n-base-select-option__content{width:100%}.n-base-select-option__content .select-widget-dynamic-option{display:flex;flex-wrap:nowrap;width:100%}.n-base-select-option__content .select-widget-dynamic-option .select-widget-dynamic-item{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex;min-width:720px}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
@@ -293,7 +293,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
293
293
  type: BooleanConstructor;
294
294
  default: boolean;
295
295
  };
296
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
296
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
297
297
  displayValue: {
298
298
  type: StringConstructor;
299
299
  };
@@ -525,7 +525,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
525
525
  type: BooleanConstructor;
526
526
  default: boolean;
527
527
  };
528
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
528
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
529
529
  displayValue: {
530
530
  type: StringConstructor;
531
531
  };
@@ -295,7 +295,7 @@ declare const _default: import("vue").DefineComponent<{
295
295
  type: BooleanConstructor;
296
296
  default: boolean;
297
297
  };
298
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
298
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
299
299
  displayValue: {
300
300
  type: StringConstructor;
301
301
  };
@@ -527,7 +527,7 @@ declare const _default: import("vue").DefineComponent<{
527
527
  type: BooleanConstructor;
528
528
  default: boolean;
529
529
  };
530
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
530
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
531
531
  displayValue: {
532
532
  type: StringConstructor;
533
533
  };
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
32
32
  type: BooleanConstructor;
33
33
  default: boolean;
34
34
  };
35
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  displayValue: {
37
37
  type: StringConstructor;
38
38
  };
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
185
185
  type: BooleanConstructor;
186
186
  default: boolean;
187
187
  };
188
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
188
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
189
189
  displayValue: {
190
190
  type: StringConstructor;
191
191
  };
@@ -140,7 +140,7 @@ declare const _default: import("vue").DefineComponent<{
140
140
  type: BooleanConstructor;
141
141
  default: boolean;
142
142
  };
143
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
143
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
144
144
  displayValue: {
145
145
  type: StringConstructor;
146
146
  };
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as n,createElementBlock as l,createCommentVNode as s,Fragment as r,unref as u,createBlock as c,mergeProps as p,createElementVNode as d,normalizeClass as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as C,h as S}from"vue";import h from"./hooks/use-noData.js";import{getScaleViewState as w}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as O}from"./hooks/scaleview-submit.js";import{handleQueryParams as _,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import P from"./components/NoData.vue.js";import D from"./components/EvaluateCountdown.vue.js";import F from"./components/EvaluatePage.vue.js";import B from"./components/AnswerParse.vue.js";import N from"./components/ScaleScore.js";import{useDialog as x,useMessage as I,NForm as q,NFormItem as M,NButton as R}from"naive-ui";const K={class:"c-scale-view-block"},V=["innerHTML"],H={key:0,class:"required-text"},U={key:1,class:"evalute-label"},W=["onClick"],J=d("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Y={key:1,class:"footer"};var X=e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:X,emit:G}){const Q=e,{ScaleViewState:Z}=w(),$=t(Z),z=x(),ee=I(),te=a(null),ae=a(null),{noDataState:oe,setNoData:ie,resetNodata:ne}=h(),le=_(),{showEvatip:se,isFormBoldOpen:re,scaleStyle:ue,handlePageClass:ce,isShowItem:pe,handleShowQuestionNumber:de,hasScore:me,isPreviewScale:ve,showEvaluateEntry:fe,showEvaluateCoundownPage:ge,showSaveBtn:ye,showEvaluateLabel:be,showAnswerParse:ke,propsConfig:Ce,evaluatePageProps:Se,evaluateCountdownProps:he,skipCover:we,scaleEdit:Ee}=E(Q,$,{query:le}),{initForm:Ae}=A(Q,$,G,{query:le}),{submitMethod:Oe}=O(Q,$,G,{query:le}),{nextLogicEvent:_e,handleDynamicDataRelation:je}=L(Q,$);(()=>{let{id:e}=le;e&&($.shareId=e)})();const Te=e=>{try{ne(),Ae(e)}catch(e){console.log(e,"--error"),$.spinning=!1,$.hasFrontAddress=!1,ie(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>Q.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),o((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;$.form={},$.formArray=[];const t=JSON.parse(JSON.stringify(e));i((()=>{Ae(t)}))}),{immediate:!0});const Le=e=>{$.showEvaluateSettingWrap=!1,$.showEvaluateCountdown=!!e,G("startWriteScale")},Pe=()=>{console.log("----closeEvaluateCountdown"),$.showEvaluateCountdown=!1,ve.value||($.banSubmit=!0,Oe(),z.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{z.warning({title:"提示",content:()=>S("div",{class:"evatip-container"},[S("span","答案解析:"),S("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Fe=(e,t,a)=>{console.log(e,"--val");let{choiceObj:o,isSetObj:i}=a||{};switch(t.type.includes("SELECT")||($.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;$.form[t.val_key]=a,_e(e,t,$.formArray),je(o,t,$.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&($.choiceComObj[t.val_key]=o),_e(e,t,$.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":_e(e,t,$.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":$.submitForm[t.val_key]=e}},Be=(e,t)=>{console.log(t),$.form[t.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),$.labelSelectedList=t,{labelStr:a.join(","),labels:o}},xe=()=>{var e;if(!$.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=$.config;if(!t||!Object.keys(t).length&&!fe.value||Ee.value)return void Ie("确认要结束测评吗?");if("formIframe"==Q.openType&&fe.value)return void G("submitNoRequest");let a="确定要提前结束测评吗?";if(ge.value&&(null==(e=te.value)?void 0:e.getCountdownObj)){const e=te.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Ie(a)},Ie=e=>{z.warning({title:"温馨提示",content:()=>S("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:async()=>{const e=await qe();G("onSubmit",e)},onNegativeClick(){}})},qe=()=>new Promise(((e,t)=>{var a;null==(a=ae.value)||a.validate((t=>{var a;if(t){console.log(t);let o=(null==(a=t[0])?void 0:a[0])||{},i=o.field,n=o.message,l=$.formArray.find((e=>e.databaseTitle===i));return l&&(i=l.title),ee.error(i+n),e(!1),!1}{const t=Oe();e(t)}}))})),Me=()=>{G("onCloseSetting")};return X({getScaleData:()=>({...$}),onSubmitForm:qe,cancel:Me}),(e,t)=>(n(),l("div",K,[s(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),$.spinning||$.hasFrontAddress?s("v-if",!0):(n(),l(r,{key:0},[u(oe).noData?(n(),c(P,{key:0,noDataImg:u(oe).noDataImg,noDataTip:u(oe).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),l(r,{key:1},[u(fe)&&!u(we)?(n(),c(F,p({key:0},u(Se),{onWriteGuage:Le}),null,16)):(n(),l(r,{key:1},[u(ge)?(n(),c(D,p({key:0,ref_key:"countdownDom",ref:te},u(he),{onCloseEvaluateCountdown:Pe}),null,16)):s("v-if",!0),d("div",{class:m(["scale-container",{"scale-container-nopadding":u(ce),"scale-container-hasfooter":u(ye)}]),style:v(u(ue))},[u(me)?(n(),c(u(N),{key:0,config:$.config,maxScore:$.maxScore},null,8,["config","maxScore"])):s("v-if",!0),f(u(q),{ref_key:"formRef",ref:ae,model:$.form,rules:$.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),l(r,null,y($.formArray,((e,t)=>(n(),l(r,{key:(e.id||e.seq)+t},[u(pe)(e)?(n(),c(u(M),{key:0,path:e.val_key,"show-label":!u(j)(e.type),class:"c-scle-form-item"},{label:g((()=>[d("span",{class:m({"scale-label-required":u(re)(e)}),innerHTML:u(de)(e)},null,10,V),u(re)(e)?(n(),l("span",H,"(必填)")):s("v-if",!0),u(be)(e)?(n(),l("span",U,b(u(be)(e)),1)):s("v-if",!0),u(se)(e)?(n(),l("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if($.evatipMap[e.id])return void De($.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=Q.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void ee.error(`${a} Is not a function`);let i=await o(e.id);i&&($.evatipMap[e.id]||($.evatipMap[e.id]=i,De(i)))})(e)},[J,k(" 查看提示 ")],8,W)):s("v-if",!0)])),default:g((()=>[(n(),c(C(e.renderCom),p(u(Ce)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Fe,onOnChange:t=>((e,t)=>{$.form[t.val_key]=Ne(e)})(t,e),onVodFileList:Be}),null,16,["onOnChange"])),u(ke)(e)?(n(),c(B,{key:0,item:e},null,8,["item"])):s("v-if",!0)])),_:2},1032,["path","show-label"])):s("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),u(ye)?(n(),l("div",Y,[s(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),c(u(R),{key:0,onClick:Me},{default:g((()=>[k("取消")])),_:1})):s("v-if",!0),Q.isLock?s("v-if",!0):(n(),c(u(R),{key:1,onClick:xe,disabled:$.banSubmit,type:"primary"},{default:g((()=>[k("保存")])),_:1},8,["disabled"]))])):s("v-if",!0)],64))],64))],64))]))}});export{X as default};
1
+ import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as n,openBlock as i,createElementBlock as l,createCommentVNode as s,Fragment as r,unref as u,createBlock as c,mergeProps as p,createElementVNode as d,normalizeClass as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as C,h as S}from"vue";import w from"./hooks/use-noData.js";import{getScaleViewState as h}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as O}from"./hooks/scaleview-submit.js";import{handleQueryParams as _,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import P from"./components/NoData.vue.js";import D from"./components/EvaluateCountdown.vue.js";import F from"./components/EvaluatePage.vue.js";import B from"./components/AnswerParse.vue.js";import N from"./components/ScaleScore.js";import{useDialog as x,useMessage as I,NForm as q,NFormItem as M,NButton as R}from"naive-ui";const K={class:"c-scale-view-block"},V=["innerHTML"],H={key:0,class:"required-text"},U={key:1,class:"evalute-label"},W=["onClick"],J=d("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Y={key:1,class:"footer"};var X=e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:X,emit:G}){const Q=e,{ScaleViewState:Z}=h(),$=t(Z),z=x(),ee=I(),te=a(null),ae=a(null),{noDataState:oe,setNoData:ne,resetNodata:ie}=w(),le=_(),{showEvatip:se,isFormBoldOpen:re,scaleStyle:ue,handlePageClass:ce,isShowItem:pe,handleShowQuestionNumber:de,hasScore:me,isPreviewScale:ve,showEvaluateEntry:fe,showEvaluateCoundownPage:ge,showSaveBtn:ye,showEvaluateLabel:be,showAnswerParse:ke,propsConfig:Ce,evaluatePageProps:Se,evaluateCountdownProps:we,skipCover:he,scaleEdit:Ee}=E(Q,$,{query:le}),{initForm:Ae}=A(Q,$,G,{query:le}),{submitMethod:Oe}=O(Q,$,G,{query:le}),{nextLogicEvent:_e,handleDynamicDataRelation:je}=L(Q,$);(()=>{let{id:e}=le;e&&($.shareId=e)})();const Te=e=>{try{ie(),Ae(e)}catch(e){console.log(e,"--error"),$.spinning=!1,$.hasFrontAddress=!1,ne(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>Q.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),o((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;$.form={},$.formArray=[];const t=JSON.parse(JSON.stringify(e));n((()=>{Ae(t)}))}),{immediate:!0});const Le=e=>{$.showEvaluateSettingWrap=!1,$.showEvaluateCountdown=!!e,G("startWriteScale")},Pe=()=>{console.log("----closeEvaluateCountdown"),$.showEvaluateCountdown=!1,ve.value||($.banSubmit=!0,Oe(),z.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{z.warning({title:"提示",content:()=>S("div",{class:"evatip-container"},[S("span","答案解析:"),S("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Fe=(e,t,a)=>{console.log(e,"--val");let{choiceObj:o,isSetObj:n}=a||{};switch(t.type.includes("SELECT")||($.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;$.form[t.val_key]=a,_e(e,t,$.formArray),je(o,t,$.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":n&&($.choiceComObj[t.val_key]=o),_e(e,t,$.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":_e(e,t,$.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":$.submitForm[t.val_key]=e}},Be=(e,t)=>{console.log(t),$.form[t.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),$.labelSelectedList=t,{labelStr:a.join(","),labels:o}},xe=()=>{var e;if(!$.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=$.config;if(!t||!Object.keys(t).length&&!fe.value||Ee.value)return void Ie("确认要结束测评吗?");if("formIframe"==Q.openType&&fe.value)return void G("submitNoRequest");let a="确定要提前结束测评吗?";if(ge.value&&(null==(e=te.value)?void 0:e.getCountdownObj)){const e=te.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?")}he.value&&!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?"),Ie(a)},Ie=e=>{z.warning({title:"温馨提示",content:()=>S("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:async()=>{const e=await qe();G("onSubmit",e)},onNegativeClick(){}})},qe=()=>new Promise(((e,t)=>{var a;null==(a=ae.value)||a.validate((t=>{var a;if(t){console.log(t);let o=(null==(a=t[0])?void 0:a[0])||{},n=o.field,i=o.message,l=$.formArray.find((e=>e.databaseTitle===n));return l&&(n=l.title),ee.error(n+i),e(!1),!1}{const t=Oe();e(t)}}))})),Me=()=>{G("onCloseSetting")};return X({getScaleData:()=>({...$}),onSubmitForm:qe,cancel:Me}),(e,t)=>(i(),l("div",K,[s(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="加载中"></n-spin>\r\n </template> '),$.spinning||$.hasFrontAddress?s("v-if",!0):(i(),l(r,{key:0},[u(oe).noData?(i(),c(P,{key:0,noDataImg:u(oe).noDataImg,noDataTip:u(oe).noDataTip},null,8,["noDataImg","noDataTip"])):(i(),l(r,{key:1},[u(fe)&&!u(he)?(i(),c(F,p({key:0},u(Se),{onWriteGuage:Le}),null,16)):(i(),l(r,{key:1},[u(ge)?(i(),c(D,p({key:0,ref_key:"countdownDom",ref:te},u(we),{onCloseEvaluateCountdown:Pe}),null,16)):s("v-if",!0),d("div",{class:m(["scale-container",{"scale-container-nopadding":u(ce),"scale-container-hasfooter":u(ye)}]),style:v(u(ue))},[u(me)?(i(),c(u(N),{key:0,config:$.config,maxScore:$.maxScore},null,8,["config","maxScore"])):s("v-if",!0),f(u(q),{ref_key:"formRef",ref:ae,model:$.form,rules:$.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(i(!0),l(r,null,y($.formArray,((e,t)=>(i(),l(r,{key:(e.id||e.seq)+t},[u(pe)(e)?(i(),c(u(M),{key:0,path:e.val_key,"show-label":!u(j)(e.type),class:"c-scle-form-item"},{label:g((()=>[d("span",{class:m({"scale-label-required":u(re)(e)}),innerHTML:u(de)(e)},null,10,V),u(re)(e)?(i(),l("span",H,"(必填)")):s("v-if",!0),u(be)(e)?(i(),l("span",U,b(u(be)(e)),1)):s("v-if",!0),u(se)(e)?(i(),l("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if($.evatipMap[e.id])return void De($.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=Q.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void ee.error(`${a} Is not a function`);let n=await o(e.id);n&&($.evatipMap[e.id]||($.evatipMap[e.id]=n,De(n)))})(e)},[J,k(" 查看提示 ")],8,W)):s("v-if",!0)])),default:g((()=>[(i(),c(C(e.renderCom),p(u(Ce)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Fe,onOnChange:t=>((e,t)=>{$.form[t.val_key]=Ne(e)})(t,e),onVodFileList:Be}),null,16,["onOnChange"])),u(ke)(e)?(i(),c(B,{key:0,item:e},null,8,["item"])):s("v-if",!0)])),_:2},1032,["path","show-label"])):s("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),u(ye)?(i(),l("div",Y,[s(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(i(),c(u(R),{key:0,onClick:Me},{default:g((()=>[k("取消")])),_:1})):s("v-if",!0),Q.isLock?s("v-if",!0):(i(),c(u(R),{key:1,onClick:xe,disabled:$.banSubmit,type:"primary"},{default:g((()=>[k(" 保存 ")])),_:1},8,["disabled"]))])):s("v-if",!0)],64))],64))],64))]))}});export{X as default};
@@ -45,10 +45,6 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
45
45
  beforeSetValue: {
46
46
  type: import("vue").PropType<(value: string | import("../../../es/shared/types").AnyObject[]) => void | (string | import("../../../es/shared/types").AnyObject[]) | Promise<string | import("../../../es/shared/types").AnyObject[]>>;
47
47
  };
48
- menuWidth: {
49
- type: (NumberConstructor | StringConstructor)[];
50
- default: number;
51
- };
52
48
  }, {
53
49
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
54
50
  value: {
@@ -96,10 +92,6 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
96
92
  beforeSetValue: {
97
93
  type: import("vue").PropType<(value: string | import("../../../es/shared/types").AnyObject[]) => void | (string | import("../../../es/shared/types").AnyObject[]) | Promise<string | import("../../../es/shared/types").AnyObject[]>>;
98
94
  };
99
- menuWidth: {
100
- type: (NumberConstructor | StringConstructor)[];
101
- default: number;
102
- };
103
95
  }>> & {
104
96
  onFocus?: ((...args: any[]) => any) | undefined;
105
97
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -110,9 +102,9 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
110
102
  onClear: () => void;
111
103
  onClick: (evt: Event) => void;
112
104
  onKeydown: (evt: KeyboardEvent) => void;
113
- cssVariable: import("vue").ComputedRef<{
114
- '--menu-width': string | number;
115
- }>;
105
+ cssVariable: {
106
+ '--menu-width': number;
107
+ };
116
108
  eventBus: import("../../../es/shared/types").AnyObject;
117
109
  uuid: string;
118
110
  show: import("vue").Ref<boolean> | import("vue").WritableComputedRef<boolean>;
@@ -234,10 +226,6 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
234
226
  beforeSetValue: {
235
227
  type: import("vue").PropType<(value: string | import("../../../es/shared/types").AnyObject[]) => void | (string | import("../../../es/shared/types").AnyObject[]) | Promise<string | import("../../../es/shared/types").AnyObject[]>>;
236
228
  };
237
- menuWidth: {
238
- type: (NumberConstructor | StringConstructor)[];
239
- default: number;
240
- };
241
229
  }>> & {
242
230
  onFocus?: ((...args: any[]) => any) | undefined;
243
231
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -252,6 +240,5 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
252
240
  editPlaceholder: string;
253
241
  labelKey: string;
254
242
  checkAbleLevel: number | "last";
255
- menuWidth: string | number;
256
243
  }>>;
257
244
  export default SearchCascader;
@@ -47,10 +47,6 @@ declare const _default: import("vue").DefineComponent<{
47
47
  beforeSetValue: {
48
48
  type: PropType<(value: ValueType) => void | ValueType | Promise<ValueType>>;
49
49
  };
50
- menuWidth: {
51
- type: (NumberConstructor | StringConstructor)[];
52
- default: number;
53
- };
54
50
  }, {
55
51
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
56
52
  value: {
@@ -98,10 +94,6 @@ declare const _default: import("vue").DefineComponent<{
98
94
  beforeSetValue: {
99
95
  type: PropType<(value: ValueType) => void | ValueType | Promise<ValueType>>;
100
96
  };
101
- menuWidth: {
102
- type: (NumberConstructor | StringConstructor)[];
103
- default: number;
104
- };
105
97
  }>> & {
106
98
  onFocus?: ((...args: any[]) => any) | undefined;
107
99
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -112,9 +104,9 @@ declare const _default: import("vue").DefineComponent<{
112
104
  onClear: () => void;
113
105
  onClick: (evt: Event) => void;
114
106
  onKeydown: (evt: KeyboardEvent) => void;
115
- cssVariable: import("vue").ComputedRef<{
116
- '--menu-width': string | number;
117
- }>;
107
+ cssVariable: {
108
+ '--menu-width': number;
109
+ };
118
110
  eventBus: AnyObject;
119
111
  uuid: string;
120
112
  show: import("vue").Ref<boolean> | import("vue").WritableComputedRef<boolean>;
@@ -236,10 +228,6 @@ declare const _default: import("vue").DefineComponent<{
236
228
  beforeSetValue: {
237
229
  type: PropType<(value: ValueType) => void | ValueType | Promise<ValueType>>;
238
230
  };
239
- menuWidth: {
240
- type: (NumberConstructor | StringConstructor)[];
241
- default: number;
242
- };
243
231
  }>> & {
244
232
  onFocus?: ((...args: any[]) => any) | undefined;
245
233
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -254,6 +242,5 @@ declare const _default: import("vue").DefineComponent<{
254
242
  editPlaceholder: string;
255
243
  labelKey: string;
256
244
  checkAbleLevel: number | "last";
257
- menuWidth: string | number;
258
245
  }>;
259
246
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as a,provide as t,ref as l,nextTick as r,watch as o,openBlock as u,createBlock as n,unref as i,isRef as s,normalizeStyle as c,withCtx as d,createVNode as v,createElementVNode as p,renderSlot as f}from"vue";import{uuidGenerator as y}from"../../../shared/utils/index.js";import{NOOP as h}from"@vue/shared";import{useDebounceFn as m,useEventBus as g,useVModel as b,onClickOutside as w}from"@vueuse/core";import{isString as k,isArray as S,isFunction as K,isObject as N}from"lodash-es";import{NPopover as _,NInput as C}from"naive-ui";import{InjectionSearchCascaderCheckAbleLevel as P,InjectionKeyboardEventBus as x,InjectionSearchCascaderLoadingNode as A,InjectionSearchCascaderValue as U}from"./constants/index.js";import{SearchMenu as W}from"./components/SearchMenu.js";const j=["id"];var F=e({__name:"SearchCascader",props:{value:{type:[String,Array]},show:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},childKey:{type:String,default:"children"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},search:{type:Function},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},checkAbleLevel:{type:[Number,String],default:"last"},beforeSetValue:{type:Function},menuWidth:{type:[Number,String],default:150}},emits:["update:value","focus","update:show"],setup(e,{expose:F,emit:L}){const V=e;function B(){var e;e=[],Promise.resolve(K(V.beforeSetValue)?V.beforeSetValue(e):e).then((e=>L("update:value",e)),h)}function E(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&G()}const I=m((e=>{var a;"INPUT"!==(null==(a=e.target)?void 0:a.tagName)||"Enter"!==e.code||M.value?T.emit(e.key):G()}),50),R=a((()=>({"--menu-width":V.menuWidth}))),T=g("cascaderKeydown"),$=y(),M=b(V,"show",L);t(P,a((()=>V.checkAbleLevel))),t(x,T);const q=l(""),z=a({get:()=>M.value?q.value:k(V.value)?V.value:S(V.value)?V.value.reduce(((e,a,t)=>0===t?a[V.labelKey]:e+" / "+a[V.labelKey]),""):"",set(e){q.value=e,Z(void 0,e)}});function D(e){L("focus",e)}function G(){M.value||(M.value=!0,q.value="",Z())}async function H(){var e;M.value=!1,null==(e=J.value)||e.blur()}const J=l();w(J,(e=>{var a;if(!M.value)return;const t=e;if(!t.target)return H();!function(e){let a=!1,t=e;for(;t;){if(t.id===$){a=!0;break}t=t.parentElement}return a}(t.target)?H():null==(a=J.value)||a.focus()}));const O=l(),Q=l(),X=l(),Y=l(null);t(A,Y),t(U,a((()=>V.value)));const Z=m((async(e,a)=>{var t;const{type:l,node:o}=e||{};try{if("update"===l)return void(K(V.search)&&V.search({...o,isLeaf:!0}));Y.value=o;const e=await(K(V.search)&&V.search(o,a));Q.value=N(e)?e:o}finally{Y.value=null,await r(),null==(t=O.value)||t.syncPosition()}}),400),ee=e=>{X.value=e};return o((()=>V.show),(e=>{e&&(X.value={})})),F({getWidth(){var e;if(!J.value)return 0;const a=null==(e=J.value)?void 0:e.$el;return a?a.clientWidth:void 0}}),(a,t)=>(u(),n(i(_),{class:"search-cascader",trigger:"manual",show:i(M),"onUpdate:show":t[1]||(t[1]=e=>s(M)?M.value=e:null),"show-arrow":!1,placement:"bottom-start",style:c(i(R)),width:e.options.length?void 0:"trigger",ref_key:"popoverRef",ref:O},{trigger:d((()=>[v(i(C),{class:"search-cascader__input",placeholder:i(M)?e.editPlaceholder:e.placeholder,clearable:e.clearable,onClear:B,value:i(z),"onUpdate:value":t[0]||(t[0]=e=>s(z)?z.value=e:null),ref_key:"inputRef",ref:J,onFocus:D,onClick:E,onKeydown:i(I)},null,8,["placeholder","clearable","value","onKeydown"])])),default:d((()=>[p("section",{id:i($)},[v(i(W),{"label-key":e.labelKey,"value-key":e.valueKey,options:e.options,onNodeClick:i(Z),onChangeCursor:ee,"current-node":Q.value,"cursor-node":X.value},{empty:d((()=>[f(a.$slots,"empty")])),_:3},8,["label-key","value-key","options","onNodeClick","current-node","cursor-node"])],8,j)])),_:3},8,["show","style","width"]))}});export{F as default};
1
+ import{defineComponent as e,provide as a,computed as l,ref as t,nextTick as o,watch as r,openBlock as u,createBlock as n,unref as s,isRef as c,normalizeStyle as i,withCtx as d,createVNode as v,createElementVNode as p,renderSlot as f}from"vue";import{uuidGenerator as y}from"../../../shared/utils/index.js";import{NOOP as h}from"@vue/shared";import{useDebounceFn as m,useEventBus as g,useVModel as b,onClickOutside as w}from"@vueuse/core";import{isString as k,isArray as S,isFunction as K,isObject as C}from"lodash-es";import{NPopover as _,NInput as N}from"naive-ui";import{InjectionSearchCascaderCheckAbleLevel as P,InjectionKeyboardEventBus as j,InjectionSearchCascaderLoadingNode as A,InjectionSearchCascaderValue as U}from"./constants/index.js";import{useCssVariable as V}from"./hooks/useCssVariable.js";import{SearchMenu as x}from"./components/SearchMenu.js";const F=["id"];var L=e({__name:"SearchCascader",props:{value:{type:[String,Array]},show:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},childKey:{type:String,default:"children"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},search:{type:Function},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},checkAbleLevel:{type:[Number,String],default:"last"},beforeSetValue:{type:Function}},emits:["update:value","focus","update:show"],setup(e,{emit:L}){const B=e;function E(){var e;e=[],Promise.resolve(K(B.beforeSetValue)?B.beforeSetValue(e):e).then((e=>L("update:value",e)),h)}function I(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&H()}const R=m((e=>{var a;"INPUT"!==(null==(a=e.target)?void 0:a.tagName)||"Enter"!==e.code||q.value?M.emit(e.key):H()}),50),T=V(),M=g("cascaderKeydown"),$=y(),q=b(B,"show",L);a(P,l((()=>B.checkAbleLevel))),a(j,M);const z=t(""),D=l({get:()=>q.value?z.value:k(B.value)?B.value:S(B.value)?B.value.reduce(((e,a,l)=>0===l?a[B.labelKey]:e+" / "+a[B.labelKey]),""):"",set(e){z.value=e,Z(void 0,e)}});function G(e){L("focus",e)}function H(){q.value||(q.value=!0,z.value="",Z())}async function J(){var e;q.value=!1,null==(e=O.value)||e.blur()}const O=t();w(O,(e=>{var a;if(!q.value)return;const l=e;if(!l.target)return J();!function(e){let a=!1,l=e;for(;l;){if(l.id===$){a=!0;break}l=l.parentElement}return a}(l.target)?J():null==(a=O.value)||a.focus()}));const Q=t(),W=t(),X=t(),Y=t(null);a(A,Y),a(U,l((()=>B.value)));const Z=m((async(e,a)=>{var l;const{type:t,node:r}=e||{};try{if("update"===t)return void(K(B.search)&&B.search({...r,isLeaf:!0}));Y.value=r;const e=await(K(B.search)&&B.search(r,a));W.value=C(e)?e:r}finally{Y.value=null,await o(),null==(l=Q.value)||l.syncPosition()}}),400),ee=e=>{X.value=e};return r((()=>B.show),(e=>{e&&(X.value={})})),(a,l)=>(u(),n(s(_),{class:"search-cascader",trigger:"manual",show:s(q),"onUpdate:show":l[1]||(l[1]=e=>c(q)?q.value=e:null),"show-arrow":!1,placement:"bottom-start",style:i(s(T)),width:e.options.length?void 0:"trigger",ref_key:"popoverRef",ref:Q},{trigger:d((()=>[v(s(N),{class:"search-cascader__input",placeholder:s(q)?e.editPlaceholder:e.placeholder,clearable:e.clearable,onClear:E,value:s(D),"onUpdate:value":l[0]||(l[0]=e=>c(D)?D.value=e:null),ref_key:"inputRef",ref:O,onFocus:G,onClick:I,onKeydown:s(R)},null,8,["placeholder","clearable","value","onKeydown"])])),default:d((()=>[p("section",{id:s($)},[v(s(x),{"label-key":e.labelKey,"value-key":e.valueKey,options:e.options,onNodeClick:s(Z),onChangeCursor:ee,"current-node":W.value,"cursor-node":X.value},{empty:d((()=>[f(a.$slots,"empty")])),_:3},8,["label-key","value-key","options","onNodeClick","current-node","cursor-node"])],8,F)])),_:3},8,["show","style","width"]))}});export{L as default};
@@ -0,0 +1 @@
1
+ export * from './useCssVariable';
@@ -0,0 +1 @@
1
+ export{useCssVariable}from"./useCssVariable.js";