cnhis-design-vue 3.1.41-release.6 → 3.1.42-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/annotation-edit/style/index.css +1 -1
  3. package/es/components/base-search/index.d.ts +293 -0
  4. package/es/components/base-search/index.js +1 -0
  5. package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +26 -91
  6. package/es/components/base-search/src/index.vue.js +1 -0
  7. package/es/components/base-search/style/iconfont.ttf +0 -0
  8. package/es/components/base-search/style/index.css +1 -0
  9. package/es/components/big-table/index.d.ts +4 -3
  10. package/es/components/big-table/src/BigTable.vue.d.ts +4 -3
  11. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  12. package/es/components/big-table/style/index.css +1 -1
  13. package/es/components/button-print/index.d.ts +7 -6
  14. package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -6
  15. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  16. package/es/components/button-print/src/api.d.ts +3 -0
  17. package/es/components/button-print/src/api.js +1 -0
  18. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  19. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  20. package/es/components/button-print/src/utils/print.js +1 -1
  21. package/es/components/classification/index.d.ts +995 -0
  22. package/es/components/classification/index.js +1 -0
  23. package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +10 -93
  24. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  25. package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +5 -130
  26. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  27. package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +0 -42
  28. package/es/components/classification/src/components/table-modal/index.vue.js +1 -0
  29. package/es/components/classification/src/const/index.d.ts +2 -0
  30. package/es/components/classification/src/const/index.js +1 -0
  31. package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +57 -291
  32. package/es/components/classification/src/index.vue.js +1 -0
  33. package/es/components/classification/style/iconfont.ttf +0 -0
  34. package/es/components/classification/style/index.css +1 -0
  35. package/es/components/config-provider/index.d.ts +14 -0
  36. package/es/components/config-provider/index.js +1 -0
  37. package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
  38. package/es/components/config-provider/src/ConfigProvider.js +1 -0
  39. package/es/components/config-provider/src/interface.d.ts +19 -0
  40. package/es/components/config-provider/src/interface.js +1 -0
  41. package/es/components/config-provider/src/utils/index.d.ts +2 -0
  42. package/es/components/config-provider/src/utils/index.js +1 -0
  43. package/es/components/date-picker/index.d.ts +20 -0
  44. package/es/components/date-picker/index.js +1 -0
  45. package/es/components/date-picker/src/DatePicker.vue.d.ts +20 -0
  46. package/es/components/date-picker/src/DatePicker.vue.js +1 -0
  47. package/es/components/fabric-chart/index.d.ts +2 -2
  48. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  49. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  50. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  51. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  52. package/es/components/field-set/index.d.ts +2 -2
  53. package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
  54. package/es/components/form-config/index.d.ts +46 -37
  55. package/es/components/form-config/src/FormConfig.vue.d.ts +46 -37
  56. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  57. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +16 -16
  58. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -19
  59. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +9 -1
  60. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  61. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +33 -6
  62. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  63. package/es/components/form-config/style/index.css +1 -1
  64. package/es/components/form-render/index.d.ts +16 -16
  65. package/es/components/form-render/src/FormRender.vue.d.ts +16 -16
  66. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +16 -16
  67. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  68. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  69. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  70. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  71. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  72. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  73. package/es/components/form-render/src/components/renderer/select.js +1 -1
  74. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  75. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  76. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
  77. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  78. package/es/components/form-render/style/index.css +1 -1
  79. package/es/components/iho-table/index.d.ts +3 -0
  80. package/es/components/iho-table/src/IhoTable.vue.d.ts +3 -0
  81. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  82. package/es/components/iho-table/src/constants/index.d.ts +4 -4
  83. package/es/components/iho-table/src/constants/index.js +1 -1
  84. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  85. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +20 -7
  86. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  87. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +18 -1
  88. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  89. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  90. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  91. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
  92. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  93. package/es/components/iho-table/src/types/index.d.ts +1 -0
  94. package/es/components/iho-table/src/utils/index.d.ts +1 -0
  95. package/es/components/iho-table/src/utils/index.js +1 -1
  96. package/es/components/iho-table/style/index.css +1 -1
  97. package/es/components/index.css +1 -1
  98. package/es/components/index.d.ts +8 -2
  99. package/es/components/index.js +1 -1
  100. package/es/components/info-header/index.d.ts +3799 -156
  101. package/es/components/info-header/src/InfoHeader.vue.d.ts +3800 -156
  102. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  103. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1842 -0
  104. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
  105. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1972 -0
  106. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
  107. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  108. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  109. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  110. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2669 -139
  111. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  112. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +745 -0
  113. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  114. package/es/components/info-header/src/constants/index.d.ts +4 -0
  115. package/es/components/info-header/src/constants/index.js +1 -0
  116. package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
  117. package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
  118. package/es/components/info-header/src/types/index.d.ts +17 -3
  119. package/es/components/info-header/style/index.css +1 -1
  120. package/es/components/keyboard/index.d.ts +4 -2
  121. package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -2
  122. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  123. package/es/components/keyboard/src/constants/index.d.ts +2 -0
  124. package/es/components/keyboard/src/constants/index.js +1 -0
  125. package/es/components/keyboard/style/index.css +1 -1
  126. package/es/components/quick-search/index.d.ts +713 -0
  127. package/es/components/quick-search/index.js +1 -0
  128. package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +31 -120
  129. package/es/components/quick-search/src/index.vue.js +1 -0
  130. package/es/components/quick-search/style/index.css +1 -0
  131. package/es/components/recommend-search/index.d.ts +2 -2
  132. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  133. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  134. package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
  135. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  136. package/es/components/scale-view/src/hooks/use-component.d.ts +69 -116
  137. package/es/components/search-cascader/index.d.ts +2 -2
  138. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
  139. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  140. package/es/components/select-label/index.d.ts +70 -169
  141. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
  142. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  143. package/es/components/select-label/src/SelectLabel.vue.d.ts +70 -116
  144. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  145. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  146. package/es/components/select-label/style/iconfont.ttf +0 -0
  147. package/es/components/select-label/style/index.css +1 -1
  148. package/es/components/select-person/index.d.ts +1 -1
  149. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  150. package/es/components/shortcut-setter/index.d.ts +17 -17
  151. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +17 -17
  152. package/es/components/steps-wheel/index.d.ts +1 -0
  153. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -0
  154. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  155. package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
  156. package/es/components/steps-wheel/src/constants/index.js +1 -0
  157. package/es/components/steps-wheel/style/index.css +1 -1
  158. package/es/components/table-filter/index.d.ts +0 -2385
  159. package/es/components/table-filter/index.js +1 -1
  160. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
  161. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  162. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -42
  163. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  164. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  165. package/es/components/table-filter/src/components/render-widget/enums.d.ts +0 -8
  166. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  167. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
  168. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  169. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  170. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  171. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -1
  172. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  173. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
  174. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  175. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  176. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  177. package/es/components/table-filter/src/tool/transformData.d.ts +1 -37
  178. package/es/components/table-filter/src/tool/transformData.js +1 -1
  179. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  180. package/es/components/table-filter/src/types/enums.js +1 -1
  181. package/es/components/table-filter/src/types/index.d.ts +13 -169
  182. package/es/components/time-picker/index.d.ts +18 -0
  183. package/es/components/time-picker/index.js +1 -0
  184. package/es/components/time-picker/src/TimePicker.vue.d.ts +18 -0
  185. package/es/components/time-picker/src/TimePicker.vue.js +1 -0
  186. package/es/shared/mixins/index.d.ts +1 -0
  187. package/es/shared/mixins/index.js +1 -0
  188. package/es/shared/mixins/useTheme.d.ts +3 -0
  189. package/es/shared/mixins/useTheme.js +1 -0
  190. package/es/shared/utils/index.d.ts +1 -0
  191. package/es/shared/utils/index.js +1 -1
  192. package/package.json +64 -64
  193. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +0 -2
  194. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +0 -1
  195. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  196. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  197. package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
  198. package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
  199. package/es/components/table-filter/src/components/table-modal/index.vue.js +0 -1
  200. package/es/components/table-filter/src/const/index.d.ts +0 -5
  201. package/es/components/table-filter/src/const/index.js +0 -1
  202. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  203. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  204. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  205. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  206. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  207. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  208. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  209. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  210. package/es/components/table-filter/src/tool/utils.js +0 -1
  211. package/es/components/table-filter/style/index.css +0 -1
  212. /package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
  213. /package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
  214. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
  215. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
  216. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  217. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
  218. /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
  219. /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
@@ -1,24 +1,29 @@
1
1
  import { PropType } from 'vue';
2
- import { IClassifyListType, ITreeDataType, IConditionMapType } from '../../../../../es/components/table-filter/src/types';
2
+ import { IClassifyListType, ITreeDataType, IConditionMapType } from '../../../../es/components/table-filter/src/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  tableId: {
5
5
  type: StringConstructor;
6
6
  default: string;
7
7
  };
8
+ searchFieldList: {
9
+ type: PropType<any[]>;
10
+ default: () => never[];
11
+ };
12
+ conditionMap: {
13
+ type: PropType<IConditionMapType>;
14
+ default: () => void;
15
+ };
8
16
  conditionSid: {
9
17
  type: PropType<string[]>;
10
- default: () => never[];
18
+ default: () => string[];
11
19
  };
12
20
  curClassificationIndex: {
13
21
  type: NumberConstructor;
22
+ default: number;
14
23
  };
15
24
  curClassificationWidth: {
16
25
  type: NumberConstructor;
17
26
  };
18
- conditionType: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
27
  hideConditionChangeBtn: {
23
28
  type: NumberConstructor;
24
29
  default: number;
@@ -31,52 +36,43 @@ declare const _default: import("vue").DefineComponent<{
31
36
  type: NumberConstructor;
32
37
  default: number;
33
38
  };
34
- countCondition: {
35
- type: NumberConstructor;
36
- default: number;
37
- };
38
- countTabCondition: {
39
- type: NumberConstructor;
40
- default: number;
41
- };
42
39
  isShowResetButton: {
43
40
  type: BooleanConstructor;
44
41
  default: boolean;
45
42
  };
46
- conditionMap: {
47
- type: PropType<IConditionMapType>;
48
- default: () => void;
49
- };
50
43
  filterApiConfig: {
51
44
  type: ObjectConstructor;
52
45
  default: () => {};
53
46
  };
54
- searchFieldList: {
55
- type: PropType<any[]>;
56
- default: () => never[];
57
- };
58
47
  }, {
59
48
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
49
+ transformClassifyChild: (conObjList: any) => {};
60
50
  attrs: any;
51
+ $message: import("naive-ui").MessageApi;
61
52
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
62
53
  tableId: {
63
54
  type: StringConstructor;
64
55
  default: string;
65
56
  };
57
+ searchFieldList: {
58
+ type: PropType<any[]>;
59
+ default: () => never[];
60
+ };
61
+ conditionMap: {
62
+ type: PropType<IConditionMapType>;
63
+ default: () => void;
64
+ };
66
65
  conditionSid: {
67
66
  type: PropType<string[]>;
68
- default: () => never[];
67
+ default: () => string[];
69
68
  };
70
69
  curClassificationIndex: {
71
70
  type: NumberConstructor;
71
+ default: number;
72
72
  };
73
73
  curClassificationWidth: {
74
74
  type: NumberConstructor;
75
75
  };
76
- conditionType: {
77
- type: StringConstructor;
78
- default: string;
79
- };
80
76
  hideConditionChangeBtn: {
81
77
  type: NumberConstructor;
82
78
  default: number;
@@ -89,41 +85,20 @@ declare const _default: import("vue").DefineComponent<{
89
85
  type: NumberConstructor;
90
86
  default: number;
91
87
  };
92
- countCondition: {
93
- type: NumberConstructor;
94
- default: number;
95
- };
96
- countTabCondition: {
97
- type: NumberConstructor;
98
- default: number;
99
- };
100
88
  isShowResetButton: {
101
89
  type: BooleanConstructor;
102
90
  default: boolean;
103
91
  };
104
- conditionMap: {
105
- type: PropType<IConditionMapType>;
106
- default: () => void;
107
- };
108
92
  filterApiConfig: {
109
93
  type: ObjectConstructor;
110
94
  default: () => {};
111
95
  };
112
- searchFieldList: {
113
- type: PropType<any[]>;
114
- default: () => never[];
115
- };
116
96
  }>> & {
117
97
  onChangeSearch?: ((...args: any[]) => any) | undefined;
118
- onSetCurTreeData?: ((...args: any[]) => any) | undefined;
119
98
  onSetClassificationIndex?: ((...args: any[]) => any) | undefined;
120
- onGetClassification?: ((...args: any[]) => any) | undefined;
121
- onReloadList?: ((...args: any[]) => any) | undefined;
122
99
  onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
123
- onSetConditionMap?: ((...args: any[]) => any) | undefined;
124
- onSetClassifyModal?: ((...args: any[]) => any) | undefined;
125
100
  }>>;
126
- emit: (event: "changeSearch" | "setCurTreeData" | "setClassificationIndex" | "getClassification" | "reloadList" | "getQuickSearchListObj" | "setConditionMap" | "setClassifyModal", ...args: any[]) => void;
101
+ emit: (event: "changeSearch" | "setClassificationIndex" | "getQuickSearchListObj", ...args: any[]) => void;
127
102
  selectType: any;
128
103
  classificationWidth: import("vue").Ref<number>;
129
104
  selectShow: import("vue").Ref<boolean>;
@@ -131,14 +106,14 @@ declare const _default: import("vue").DefineComponent<{
131
106
  name: string;
132
107
  sid?: string | undefined;
133
108
  children: {
134
- classifyId: string;
135
109
  displayCategory: string;
136
110
  isDefault: boolean;
137
111
  isEdit: boolean;
138
- isPublic: string;
139
112
  isShow: boolean;
140
113
  name: string;
141
114
  sid: string;
115
+ isPublic?: string | undefined;
116
+ classifyId?: string | undefined;
142
117
  conObj?: any;
143
118
  digital?: number | undefined;
144
119
  checked?: boolean | undefined;
@@ -154,14 +129,14 @@ declare const _default: import("vue").DefineComponent<{
154
129
  selected?: boolean | undefined;
155
130
  }[]>;
156
131
  conditionLists: import("vue").Ref<{
157
- classifyId: string;
158
132
  displayCategory: string;
159
133
  isDefault: boolean;
160
134
  isEdit: boolean;
161
- isPublic: string;
162
135
  isShow: boolean;
163
136
  name: string;
164
137
  sid: string;
138
+ isPublic?: string | undefined;
139
+ classifyId?: string | undefined;
165
140
  conObj?: any;
166
141
  digital?: number | undefined;
167
142
  checked?: boolean | undefined;
@@ -173,14 +148,14 @@ declare const _default: import("vue").DefineComponent<{
173
148
  from?: string | undefined;
174
149
  }[]>;
175
150
  originConditionList: import("vue").Ref<{
176
- classifyId: string;
177
151
  displayCategory: string;
178
152
  isDefault: boolean;
179
153
  isEdit: boolean;
180
- isPublic: string;
181
154
  isShow: boolean;
182
155
  name: string;
183
156
  sid: string;
157
+ isPublic?: string | undefined;
158
+ classifyId?: string | undefined;
184
159
  conObj?: any;
185
160
  digital?: number | undefined;
186
161
  checked?: boolean | undefined;
@@ -192,27 +167,7 @@ declare const _default: import("vue").DefineComponent<{
192
167
  from?: string | undefined;
193
168
  }[]>;
194
169
  classificationIndex: import("vue").Ref<number>;
195
- curTableId: import("vue").Ref<string>;
196
170
  allObj: any;
197
- searchConditionList: import("vue").Ref<{
198
- classifyId: string;
199
- displayCategory: string;
200
- isDefault: boolean;
201
- isEdit: boolean;
202
- isPublic: string;
203
- isShow: boolean;
204
- name: string;
205
- sid: string;
206
- conObj?: any;
207
- digital?: number | undefined;
208
- checked?: boolean | undefined;
209
- id?: string | undefined;
210
- isCommon?: boolean | undefined;
211
- selected?: boolean | undefined;
212
- sqlExpression?: string | undefined;
213
- createdByName?: string | undefined;
214
- from?: string | undefined;
215
- }[]>;
216
171
  displayCategoryLists: import("vue").Ref<string[]>;
217
172
  settingId: import("vue").Ref<string>;
218
173
  classifyModal: import("vue").Ref<boolean>;
@@ -229,29 +184,25 @@ declare const _default: import("vue").DefineComponent<{
229
184
  }>;
230
185
  titleName: import("vue").ComputedRef<string>;
231
186
  tooltipTilte: import("vue").ComputedRef<(item: any) => string>;
232
- getCondiTionDigital: import("vue").ComputedRef<boolean>;
233
187
  handleFold: (item: ITreeDataType) => void;
234
- handleItemClick: (child: any, i?: number, p?: any) => false | undefined;
188
+ handleItemClick: (child: any, i?: number, p?: ITreeDataType) => void;
235
189
  initTree: (conditionSidTemp: string[]) => IClassifyListType[];
236
- getConditionSid: (sid: string, conditionSidVal: string[], p: ITreeDataType) => string[];
190
+ getConditionSid: (sid: string, conditionSidVal: string[], p?: ITreeDataType) => string[];
237
191
  handleModeChange: () => void;
238
192
  saveListPersonaSetting: (classificationIndexVal: number, classificationWidthVal?: number) => Promise<void>;
239
193
  handleSettingShow: () => void;
240
194
  setClassifyModal: (val: boolean) => void;
241
195
  toggleSelect: (flag?: boolean) => void;
242
- getTableCondiTionList: (options?: any) => void;
196
+ initTableCondiTionList: () => import("naive-ui").MessageReactive | undefined;
243
197
  setOpenStatus: (value: boolean) => void;
244
- handlePlatTree: (list: ITreeDataType[], res: IClassifyListType[]) => void;
245
- tableCondiTionPromise: (options?: any) => Promise<void>;
198
+ tableCondiTionPromise: () => Promise<void>;
246
199
  changeWidth: ({ distance }: any) => void;
247
200
  saveWidth: () => void;
248
201
  updateTableCondiTion: () => Promise<void>;
249
202
  saveGetTableCondiTionList: (options: any) => Promise<void>;
250
203
  getTableCondiTionListRequest: (first?: boolean) => void;
251
- reloadList: (item: any) => void;
252
204
  handleGetTableCondiTionList: (first?: boolean, conditionMapVal?: {}) => Promise<unknown>;
253
205
  getTableCondiTionListNew: (tableIdVal: any) => Promise<any>;
254
- visibleDigital: (item: IClassifyListType | ITreeDataType) => number | boolean;
255
206
  fmtChildName: (name: string, isPublic?: string) => string;
256
207
  NIcon: any;
257
208
  NTooltip: any;
@@ -300,11 +251,11 @@ declare const _default: import("vue").DefineComponent<{
300
251
  default: boolean;
301
252
  };
302
253
  }>> & {
303
- onSetClassifyModal?: ((...args: any[]) => any) | undefined;
304
254
  onCondiTionListInit?: ((...args: any[]) => any) | undefined;
305
255
  onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
256
+ onSetClassifyModal?: ((...args: any[]) => any) | undefined;
306
257
  }>>;
307
- emit: (event: "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", ...args: any[]) => void;
258
+ emit: (event: "CondiTionListInit" | "saveGetTableCondiTionList" | "setClassifyModal", ...args: any[]) => void;
308
259
  $message: import("naive-ui").MessageApi;
309
260
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
310
261
  conditionList: import("vue").Ref<unknown[]>;
@@ -457,48 +408,6 @@ declare const _default: import("vue").DefineComponent<{
457
408
  DocumentOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
458
409
  Brush: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
459
410
  ReorderTwo: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
460
- SvgIcon: import("vue").DefineComponent<{
461
- iconClass: {
462
- type: StringConstructor;
463
- required: true;
464
- default: string;
465
- };
466
- title: {
467
- type: StringConstructor;
468
- required: false;
469
- default: string;
470
- };
471
- className: {
472
- type: StringConstructor;
473
- required: false;
474
- };
475
- }, {
476
- props: {
477
- iconClass: string;
478
- title: string;
479
- className?: string | undefined;
480
- };
481
- iconName: import("vue").ComputedRef<string>;
482
- svgClass: import("vue").ComputedRef<string>;
483
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
484
- iconClass: {
485
- type: StringConstructor;
486
- required: true;
487
- default: string;
488
- };
489
- title: {
490
- type: StringConstructor;
491
- required: false;
492
- default: string;
493
- };
494
- className: {
495
- type: StringConstructor;
496
- required: false;
497
- };
498
- }>>, {
499
- title: string;
500
- iconClass: string;
501
- }>;
502
411
  Draggable: import("vue").DefineComponent<{
503
412
  list: {
504
413
  type: ArrayConstructor;
@@ -769,9 +678,9 @@ declare const _default: import("vue").DefineComponent<{
769
678
  showAdd: boolean;
770
679
  };
771
680
  isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
772
- editDisplayCategory: (e: any, item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
773
- handleDisplayCategorySelect: (item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
774
- handleDisplayCategoryRemove: (index: number, item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
681
+ editDisplayCategory: (e: any, item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
682
+ handleDisplayCategorySelect: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
683
+ handleDisplayCategoryRemove: (index: number, item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
775
684
  handleDisplayCategoryAdd: (e: any) => void;
776
685
  handlerBlur: () => void;
777
686
  initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
@@ -782,7 +691,7 @@ declare const _default: import("vue").DefineComponent<{
782
691
  updateKey: (index: number, val: any) => void;
783
692
  updateCondition: (index: number, val: any) => void;
784
693
  getParamCfg: (key: string) => any;
785
- initFilterConditions: (tableId: string, rawConditions: import("../../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
694
+ initFilterConditions: (tableId: string, rawConditions: import("../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
786
695
  getRawFilterConditions: () => {
787
696
  field_key: any;
788
697
  con: any;
@@ -790,7 +699,7 @@ declare const _default: import("vue").DefineComponent<{
790
699
  unit: any;
791
700
  }[];
792
701
  findConditionByDisplayCategory: (displayCategory: string) => unknown;
793
- handleDisplayCategorySelectProxy: (item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
702
+ handleDisplayCategorySelectProxy: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
794
703
  clearFormData: () => void;
795
704
  handleInitConditions: () => Promise<void>;
796
705
  validate: () => Promise<unknown>;
@@ -806,48 +715,6 @@ declare const _default: import("vue").DefineComponent<{
806
715
  AddOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
807
716
  AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
808
717
  CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
809
- SvgIcon: import("vue").DefineComponent<{
810
- iconClass: {
811
- type: StringConstructor;
812
- required: true;
813
- default: string;
814
- };
815
- title: {
816
- type: StringConstructor;
817
- required: false;
818
- default: string;
819
- };
820
- className: {
821
- type: StringConstructor;
822
- required: false;
823
- };
824
- }, {
825
- props: {
826
- iconClass: string;
827
- title: string;
828
- className?: string | undefined;
829
- };
830
- iconName: import("vue").ComputedRef<string>;
831
- svgClass: import("vue").ComputedRef<string>;
832
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
833
- iconClass: {
834
- type: StringConstructor;
835
- required: true;
836
- default: string;
837
- };
838
- title: {
839
- type: StringConstructor;
840
- required: false;
841
- default: string;
842
- };
843
- className: {
844
- type: StringConstructor;
845
- required: false;
846
- };
847
- }>>, {
848
- title: string;
849
- iconClass: string;
850
- }>;
851
718
  ValueCfg: import("vue").DefineComponent<{
852
719
  paramCfg: {
853
720
  type: ObjectConstructor;
@@ -899,6 +766,7 @@ declare const _default: import("vue").DefineComponent<{
899
766
  SELECT: string;
900
767
  DATE: string;
901
768
  DATE_TIME: string;
769
+ CHECKBOX_GROUP: string;
902
770
  };
903
771
  WidgetValEnums: {
904
772
  CUSTOM: string;
@@ -1003,48 +871,6 @@ declare const _default: import("vue").DefineComponent<{
1003
871
  showItemName: boolean;
1004
872
  hideAddBtn: boolean;
1005
873
  }>;
1006
- SvgIcon: import("vue").DefineComponent<{
1007
- iconClass: {
1008
- type: StringConstructor;
1009
- required: true;
1010
- default: string;
1011
- };
1012
- title: {
1013
- type: StringConstructor;
1014
- required: false;
1015
- default: string;
1016
- };
1017
- className: {
1018
- type: StringConstructor;
1019
- required: false;
1020
- };
1021
- }, {
1022
- props: {
1023
- iconClass: string;
1024
- title: string;
1025
- className?: string | undefined;
1026
- };
1027
- iconName: import("vue").ComputedRef<string>;
1028
- svgClass: import("vue").ComputedRef<string>;
1029
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1030
- iconClass: {
1031
- type: StringConstructor;
1032
- required: true;
1033
- default: string;
1034
- };
1035
- title: {
1036
- type: StringConstructor;
1037
- required: false;
1038
- default: string;
1039
- };
1040
- className: {
1041
- type: StringConstructor;
1042
- required: false;
1043
- };
1044
- }>>, {
1045
- title: string;
1046
- iconClass: string;
1047
- }>;
1048
874
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cancelSaveAdd"[], "cancelSaveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1049
875
  visible: {
1050
876
  type: BooleanConstructor;
@@ -1075,7 +901,7 @@ declare const _default: import("vue").DefineComponent<{
1075
901
  filterApiConfig: Record<string, any>;
1076
902
  conditionList: unknown[];
1077
903
  }>;
1078
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList")[], "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
904
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("CondiTionListInit" | "saveGetTableCondiTionList" | "setClassifyModal")[], "CondiTionListInit" | "saveGetTableCondiTionList" | "setClassifyModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1079
905
  searchFieldList: {
1080
906
  type: ArrayConstructor;
1081
907
  default: () => never[];
@@ -1094,9 +920,9 @@ declare const _default: import("vue").DefineComponent<{
1094
920
  default: boolean;
1095
921
  };
1096
922
  }>> & {
1097
- onSetClassifyModal?: ((...args: any[]) => any) | undefined;
1098
923
  onCondiTionListInit?: ((...args: any[]) => any) | undefined;
1099
924
  onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
925
+ onSetClassifyModal?: ((...args: any[]) => any) | undefined;
1100
926
  }, {
1101
927
  searchFieldList: unknown[];
1102
928
  filterApiConfig: Record<string, any>;
@@ -1107,67 +933,30 @@ declare const _default: import("vue").DefineComponent<{
1107
933
  mounted(el: any, { value }: any): void;
1108
934
  beforeUnmount(el: any): void;
1109
935
  };
1110
- SvgIcon: import("vue").DefineComponent<{
1111
- iconClass: {
1112
- type: StringConstructor;
1113
- required: true;
1114
- default: string;
1115
- };
1116
- title: {
1117
- type: StringConstructor;
1118
- required: false;
1119
- default: string;
1120
- };
1121
- className: {
1122
- type: StringConstructor;
1123
- required: false;
1124
- };
1125
- }, {
1126
- props: {
1127
- iconClass: string;
1128
- title: string;
1129
- className?: string | undefined;
1130
- };
1131
- iconName: import("vue").ComputedRef<string>;
1132
- svgClass: import("vue").ComputedRef<string>;
1133
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1134
- iconClass: {
1135
- type: StringConstructor;
1136
- required: true;
1137
- default: string;
1138
- };
1139
- title: {
1140
- type: StringConstructor;
1141
- required: false;
1142
- default: string;
1143
- };
1144
- className: {
1145
- type: StringConstructor;
1146
- required: false;
1147
- };
1148
- }>>, {
1149
- title: string;
1150
- iconClass: string;
1151
- }>;
1152
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeSearch" | "setCurTreeData" | "setClassificationIndex" | "getClassification" | "reloadList" | "getQuickSearchListObj" | "setConditionMap" | "setClassifyModal")[], "changeSearch" | "setCurTreeData" | "setClassificationIndex" | "getClassification" | "reloadList" | "getQuickSearchListObj" | "setConditionMap" | "setClassifyModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
936
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeSearch" | "setClassificationIndex" | "getQuickSearchListObj")[], "changeSearch" | "setClassificationIndex" | "getQuickSearchListObj", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1153
937
  tableId: {
1154
938
  type: StringConstructor;
1155
939
  default: string;
1156
940
  };
941
+ searchFieldList: {
942
+ type: PropType<any[]>;
943
+ default: () => never[];
944
+ };
945
+ conditionMap: {
946
+ type: PropType<IConditionMapType>;
947
+ default: () => void;
948
+ };
1157
949
  conditionSid: {
1158
950
  type: PropType<string[]>;
1159
- default: () => never[];
951
+ default: () => string[];
1160
952
  };
1161
953
  curClassificationIndex: {
1162
954
  type: NumberConstructor;
955
+ default: number;
1163
956
  };
1164
957
  curClassificationWidth: {
1165
958
  type: NumberConstructor;
1166
959
  };
1167
- conditionType: {
1168
- type: StringConstructor;
1169
- default: string;
1170
- };
1171
960
  hideConditionChangeBtn: {
1172
961
  type: NumberConstructor;
1173
962
  default: number;
@@ -1180,51 +969,28 @@ declare const _default: import("vue").DefineComponent<{
1180
969
  type: NumberConstructor;
1181
970
  default: number;
1182
971
  };
1183
- countCondition: {
1184
- type: NumberConstructor;
1185
- default: number;
1186
- };
1187
- countTabCondition: {
1188
- type: NumberConstructor;
1189
- default: number;
1190
- };
1191
972
  isShowResetButton: {
1192
973
  type: BooleanConstructor;
1193
974
  default: boolean;
1194
975
  };
1195
- conditionMap: {
1196
- type: PropType<IConditionMapType>;
1197
- default: () => void;
1198
- };
1199
976
  filterApiConfig: {
1200
977
  type: ObjectConstructor;
1201
978
  default: () => {};
1202
979
  };
1203
- searchFieldList: {
1204
- type: PropType<any[]>;
1205
- default: () => never[];
1206
- };
1207
980
  }>> & {
1208
981
  onChangeSearch?: ((...args: any[]) => any) | undefined;
1209
- onSetCurTreeData?: ((...args: any[]) => any) | undefined;
1210
982
  onSetClassificationIndex?: ((...args: any[]) => any) | undefined;
1211
- onGetClassification?: ((...args: any[]) => any) | undefined;
1212
- onReloadList?: ((...args: any[]) => any) | undefined;
1213
983
  onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
1214
- onSetConditionMap?: ((...args: any[]) => any) | undefined;
1215
- onSetClassifyModal?: ((...args: any[]) => any) | undefined;
1216
984
  }, {
1217
985
  searchFieldList: any[];
1218
986
  tableId: string;
1219
987
  filterApiConfig: Record<string, any>;
988
+ conditionMap: IConditionMapType;
1220
989
  conditionSid: string[];
1221
- conditionType: string;
990
+ curClassificationIndex: number;
1222
991
  hideConditionChangeBtn: number;
1223
992
  hideConditionChangeSetting: number;
1224
993
  hideClearConditionChange: number;
1225
- countCondition: number;
1226
- countTabCondition: number;
1227
994
  isShowResetButton: boolean;
1228
- conditionMap: IConditionMapType;
1229
995
  }>;
1230
996
  export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onMounted as a,nextTick as o,watch as s,openBlock as d,createElementBlock as c,normalizeClass as r,unref as h,normalizeStyle as u,withDirectives as f,createVNode as p,createTextVNode as m,toDisplayString as g,createCommentVNode as v,createElementVNode as C,Fragment as y,renderList as k,createBlock as S,withCtx as b}from"vue";import{useMessage as x,NIcon as O,NTooltip as _}from"naive-ui";import{Repeat as w,SettingsOutline as I,ChevronDown as L,ChevronForward as N,Checkmark as z,Close as j,ChevronUp as B}from"@vicons/ionicons5";import P from"./components/set-classification/index.vue.js";import J from"./directive/flexibleResize.js";import{root_isShowResetButton as M}from"./const/index.js";import A from"../../table-filter/src/hooks/useMixins.js";import E from"../../table-filter/src/hooks/useAdvanced.js";import T from"../../../_virtual/plugin-vue_export-helper.js";const R={key:0,class:"header"},F={class:"tree"},W=["onClick"],q=["onClick"],G=["onClick"],Q={class:"child-item-name"},$={key:1,class:"tree-type-footer"},D={class:"selected-num"},V=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),H={key:0,class:"tile-type classify-1"},K={key:0,class:"header"},U={class:"right-setting"},X=["onClick"],Y={class:"parent ellips"},Z={class:"children"},ee=["onClick"],ie={key:1,class:"selected-list"},ne={class:"selected-num"},le=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),te={class:"name"},ae={class:"name"},oe={key:0,class:"main-wrapper"},se=["onClick"],de={class:"tree-footer"},ce=["onClick"],re=["onClick"],he={key:0,class:"select-type-footer"},ue={class:"selected-num"},fe=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var pe=T(e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>{}},conditionSid:{type:Array,default:()=>["all_data"]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:T}){const pe=e,{handleGetConfigApi:me}=A(),{transformClassifyChild:ge}=E(),ve=i(),Ce=x(),ye=n(null);let ke=n(150),Se=n(!1),be=n([]),xe=n([]),Oe=n([]),_e=n(2),we=n({name:"全部数据",sid:"all_data"}),Ie=n([]),Le=n(""),Ne=n(!1),ze=n("全部数据");l(M,n(pe.isShowResetButton));let je=t((()=>0===_e.value?{marginRight:"8px"}:2===_e.value?{display:"inline-block"}:{})),Be=t((()=>{let e=xe.value.filter((e=>-1!==pe.conditionSid.indexOf(e.sid)));if(-1!==pe.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Pe=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ke(n,l)+i}));function Je(e){e.open?e.open=!1:e.open=!0}function Me(e,i,n){ze.value=e.name;let l=function(e){let i=[];return be.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,pe.conditionSid));Fe(!1);const t=ge(null==e?void 0:e.conObj);T("changeSearch",Boolean("all_data"===e.sid),e,t,n,l)}function Ae(){let e="";if(2===_e.value)e=0;else{let i=_e.value;e=++i}ke.value=150,Ee(e)}async function Ee(e,i){let n={tableId:pe.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await me(n,"requestSaveListPersonaSetting",{},pe.filterApiConfig)&&T("setClassificationIndex",e)}catch(e){console.log(e)}}function Te(){Ne.value=!0,Fe(!1)}function Re(e){Ne.value=e}function Fe(e){Se.value=void 0===e?!Se.value:e}function We(){if(!pe.tableId)return Ce.warning("请传入tableId");be.value=[];let{displayCategoryList:e=[],conditionList:i=[]}=pe.conditionMap;Ie.value=JSON.parse(JSON.stringify(e))||[],Oe.value=JSON.parse(JSON.stringify(i)),xe.value=JSON.parse(JSON.stringify([{name:"全部数据",sid:"all_data"},...i]));let n=[];var l;0===Ie.value.length&&(Ie.value=["未分类"]),Ie.value.forEach((e=>{let i={name:e,children:[]};xe.value.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==pe.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&n.push(i)})),n.unshift({name:"全部数据",sid:"all_data"}),be.value=n,0===_e.value&&(l=!0,be.value.forEach((e=>{e.children&&e.children.length&&(e.open=l)})))}function qe({distance:e}){const i=ke.value+e;ke.value=Math.min(Math.max(i,50),650)}function Ge(){Ee(_e.value,ke.value)}async function Qe(){await He(pe.tableId),De()}async function $e(e){await He(pe.tableId),Ve()}function De(e){Ve(e).then((e=>{}))}function Ve(e,i={}){if(!pe.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:JSON.parse(JSON.stringify(pe.conditionMap));return new Promise(((i,l)=>{var t,a,o,s,d,c;if(Object.keys(n).length>0){Oe.value=n.conditionList||[],Ie.value=n.displayCategoryList||[];let l={conditionList:Oe.value,displayCategoryList:Ie.value};T("getQuickSearchListObj",l),Le.value=n.settingId;const r=Oe.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(t=ve.tableOptions)?void 0:t.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(s=null==(o=ve.tableOptions)?void 0:o.filterCondition)?void 0:s.name,sid:null==(c=null==(d=ve.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function He(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await me(i,"requestTableCondiTionList",{},pe.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ke(e,i){return i&&e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{document.addEventListener("click",(e=>{o((()=>{let i=e.composedPath&&e.composedPath();ye&&i.includes(ye.value)||Fe(!1)}))}))})),s((()=>pe.tableId),(e=>{e&&De(!0)}),{immediate:!0,deep:!0}),s((()=>pe.curClassificationIndex),(e=>{void 0!==e&&(_e.value=e)}),{immediate:!0,deep:!0}),s((()=>pe.curClassificationWidth),(e=>{e&&(ke.value=Number(e)||150)}),{immediate:!0}),s((()=>pe.conditionMap),(e=>{!async function(){try{await We()}catch(e){console.log(e)}}()}),{immediate:!0,deep:!0}),(i,n)=>(d(),c("div",{class:r(["classification-block","classificationIndex-"+h(_e)]),style:u(h(je))},[0===h(_e)?f((d(),c("div",{key:0,class:"tree-type classify-0",style:u({width:h(ke)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",R,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"header-1",onClick:Ae},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"header-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])):v("v-if",!0),C("ul",F,[(d(!0),c(y,null,k(h(be),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[C("span",{class:r(["parent",{open:i.open}]),onClick:e=>Je(i)},[C("span",null,g(i.name),1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,q),i.open?(d(!0),c(y,{key:0},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{class:"children",key:n},[e.isShow?(d(),S(h(_),{key:0,trigger:"hover",placement:"right"},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}]),onClick:n=>Me(e,0,i)},[C("span",Q,g(Ke(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],10,G)])),default:b((()=>[C("span",null,g(h(Pe)(e)),1)])),_:2},1024)):v("v-if",!0)])))),128)):v("v-if",!0)],64)):(d(),c("span",{key:0,class:r(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Me(i)},g(i.name),11,W))],2)):v("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(d(),c("div",$,[C("div",D,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[V,m(" 清空筛选 ")])])):v("v-if",!0)],4)),[[h(J),{mode:"VR",onMove:qe,onEnd:Ge}]]):v("v-if",!0),1===h(_e)?(d(),c(y,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(Oe).filter((e=>e.isShow)).length>0?(d(),c("div",H,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",K,[C("span",{class:r(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[m(" 全部数据 "),h(we).digital||0===h(we).digital?(d(),c(y,{key:0},[m(" ("+g(h(we).digital||0)+") ",1)],64)):v("v-if",!0)],2),C("div",U,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"setting-1",onClick:Ae,style:{"margin-right":"30px"}},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"setting-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])])):v("v-if",!0),C("ul",{class:"tile",style:u({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(d(!0),c(y,null,k(h(be).slice(1),((e,i)=>(d(),c(y,null,[e.children&&e.children.length>0?(d(),c("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(d(),c(y,{key:1},[C("span",Y,g(e.name),1),C("div",Z,[(d(!0),c(y,null,k(e.children,((i,n)=>(d(),c(y,null,[i.isShow?(d(),c("span",{key:n,class:r(["child-item",{selected:i.selected}]),onClick:n=>Me(i,0,e)},g(Ke(i.name,null==i?void 0:i.isPublic)),11,ee)):v("v-if",!0)],64)))),256))])],64)):(d(),c("span",{key:0,class:r(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Me(e)},g(e.name)+" "+g(e.digital),11,X))])):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ie,[C("div",ne,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(d(!0),c(y,null,k(h(be).slice(1),((e,i)=>(d(),c(y,null,[e.children&&0!==e.children.length?(d(!0),c(y,{key:1},k(e.children,((i,n)=>(d(),c(y,null,[i.selected?(d(),c("div",{class:"selected-item",key:i.sid},[m(g(i.name)+" ",1),p(h(O),{component:h(j),onClick:n=>Me(i,0,e)},null,8,["component","onClick"])])):v("v-if",!0)],64)))),256)):(d(),c("div",{class:"selected-item",key:e.sid},[m(g(e.name)+" ",1),p(h(O),{component:h(j),onClick:i=>Me(e)},null,8,["component","onClick"])]))],64)))),256)),C("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[le,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],64)):v("v-if",!0),2===h(_e)?(d(),c("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ye},[C("span",{class:"title",onClick:n[3]||(n[3]=()=>Fe())},[p(h(_),{trigger:"hover",placement:"top"},{trigger:b((()=>[C("span",te,g(h(Be)),1)])),default:b((()=>[C("span",ae,g(h(Be)),1)])),_:1}),p(h(O),{component:h(Se)?h(B):h(L)},null,8,["component"])]),h(Se)?(d(),c("div",oe,[C("ul",{class:"tree",style:u({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(d(!0),c(y,null,k(h(be),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(d(),c("span",{key:0,class:r(["parent",{open:i.open}]),onClick:e=>Je(i)},[m(g(i.name)+g(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,ce)):v("v-if",!0),i.open?(d(!0),c(y,{key:1},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{class:"children",key:n},[e.isShow?(d(),S(h(_),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}]),onClick:n=>Me(e,0,i)},[C("span",null,g(Ke(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],10,re)])),default:b((()=>[C("span",null,g(h(Pe)(e)),1)])),_:2},1024)):v("v-if",!0)])))),128)):v("v-if",!0)],64)):(d(),c(y,{key:0},[C("span",{class:r(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Me(i)},g(i.name),11,se),C("div",de,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"tree-footer-icon",onClick:Ae},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"tree-footer-icon",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])],64))],2)):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",he,[C("div",ue,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[fe,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],512)):v("v-if",!0),v(" 弹出弹窗 "),p(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(Oe),displayCategoryList:h(Ie),settingId:h(Le),tableId:e.tableId,classifyModal:h(Ne),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:$e,onCondiTionListInit:Qe,onSetClassifyModal:Re},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","index.vue"]]);export{pe as default};