cnhis-design-vue 3.1.42-release.0 → 3.1.42-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 (246) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/annotation-edit/src/type.d.ts +3 -0
  3. package/es/components/annotation-edit/style/index.css +1 -1
  4. package/es/components/base-search/index.d.ts +271 -0
  5. package/es/components/base-search/index.js +1 -0
  6. package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +26 -113
  7. package/es/components/base-search/src/index.vue.js +1 -0
  8. package/es/components/base-search/style/iconfont.ttf +0 -0
  9. package/es/components/base-search/style/index.css +1 -0
  10. package/es/components/big-table/index.d.ts +4 -3
  11. package/es/components/big-table/src/BigTable.vue.d.ts +4 -3
  12. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  13. package/es/components/big-table/style/index.css +1 -1
  14. package/es/components/button-print/index.d.ts +7 -6
  15. package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -6
  16. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  17. package/es/components/button-print/src/api.d.ts +3 -0
  18. package/es/components/button-print/src/api.js +1 -0
  19. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  20. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  21. package/es/components/button-print/src/utils/print.js +1 -1
  22. package/es/components/classification/index.d.ts +995 -0
  23. package/es/components/classification/index.js +1 -0
  24. package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +10 -93
  25. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  26. package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +5 -130
  27. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  28. package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +0 -42
  29. package/es/components/classification/src/components/table-modal/index.vue.js +1 -0
  30. package/es/components/classification/src/const/index.d.ts +2 -0
  31. package/es/components/classification/src/const/index.js +1 -0
  32. package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +57 -291
  33. package/es/components/classification/src/index.vue.js +1 -0
  34. package/es/components/classification/style/iconfont.ttf +0 -0
  35. package/es/components/classification/style/index.css +1 -0
  36. package/es/components/config-provider/index.d.ts +14 -0
  37. package/es/components/config-provider/index.js +1 -0
  38. package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
  39. package/es/components/config-provider/src/ConfigProvider.js +1 -0
  40. package/es/components/config-provider/src/interface.d.ts +19 -0
  41. package/es/components/config-provider/src/interface.js +1 -0
  42. package/es/components/config-provider/src/utils/index.d.ts +2 -0
  43. package/es/components/config-provider/src/utils/index.js +1 -0
  44. package/es/components/date-picker/index.d.ts +12 -0
  45. package/es/components/date-picker/index.js +1 -0
  46. package/es/components/date-picker/src/DatePicker.vue.d.ts +12 -0
  47. package/es/components/date-picker/src/DatePicker.vue.js +1 -0
  48. package/es/components/fabric-chart/index.d.ts +2 -2
  49. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  50. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  51. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  52. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  53. package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
  54. package/es/components/field-set/index.d.ts +84 -15
  55. package/es/components/field-set/src/FieldSet.vue.d.ts +80 -29
  56. package/es/components/field-set/src/types/index.d.ts +18 -0
  57. package/es/components/field-set/src/types/index.js +1 -0
  58. package/es/components/form-config/index.d.ts +46 -37
  59. package/es/components/form-config/src/FormConfig.vue.d.ts +46 -37
  60. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  61. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +16 -16
  62. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -19
  63. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +9 -1
  64. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  65. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +33 -6
  66. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  67. package/es/components/form-config/style/index.css +1 -1
  68. package/es/components/form-render/index.d.ts +16 -16
  69. package/es/components/form-render/src/FormRender.vue.d.ts +16 -16
  70. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +16 -16
  71. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  72. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  73. package/es/components/form-render/src/components/renderer/date.js +1 -1
  74. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  75. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  76. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  77. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  78. package/es/components/form-render/src/components/renderer/select.js +1 -1
  79. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  80. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  81. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
  82. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  83. package/es/components/form-render/style/index.css +1 -1
  84. package/es/components/iho-table/index.d.ts +3 -0
  85. package/es/components/iho-table/src/IhoTable.vue.d.ts +3 -0
  86. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  87. package/es/components/iho-table/src/constants/index.d.ts +6 -5
  88. package/es/components/iho-table/src/constants/index.js +1 -1
  89. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
  90. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  91. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
  92. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  93. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  94. package/es/components/iho-table/src/plugins/index.js +1 -1
  95. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  96. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +12 -7
  97. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  98. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  99. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  100. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
  101. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  102. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +12 -1
  103. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  104. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  105. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  106. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
  107. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -0
  108. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
  109. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  110. package/es/components/iho-table/src/types/index.d.ts +2 -0
  111. package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
  112. package/es/components/iho-table/src/utils/index.d.ts +2 -0
  113. package/es/components/iho-table/src/utils/index.js +1 -1
  114. package/es/components/iho-table/style/index.css +1 -1
  115. package/es/components/index.css +1 -1
  116. package/es/components/index.d.ts +9 -2
  117. package/es/components/index.js +1 -1
  118. package/es/components/info-header/index.d.ts +3799 -156
  119. package/es/components/info-header/src/InfoHeader.vue.d.ts +3800 -156
  120. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  121. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1842 -0
  122. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
  123. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1972 -0
  124. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
  125. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  126. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  127. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  128. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2669 -139
  129. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  130. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +745 -0
  131. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  132. package/es/components/info-header/src/constants/index.d.ts +4 -0
  133. package/es/components/info-header/src/constants/index.js +1 -0
  134. package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
  135. package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
  136. package/es/components/info-header/src/types/index.d.ts +17 -3
  137. package/es/components/info-header/style/index.css +1 -1
  138. package/es/components/keyboard/index.d.ts +4 -2
  139. package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -2
  140. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  141. package/es/components/keyboard/src/constants/index.d.ts +2 -0
  142. package/es/components/keyboard/src/constants/index.js +1 -0
  143. package/es/components/keyboard/style/index.css +1 -1
  144. package/es/components/quick-search/index.d.ts +713 -0
  145. package/es/components/quick-search/index.js +1 -0
  146. package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +31 -120
  147. package/es/components/quick-search/src/index.vue.js +1 -0
  148. package/es/components/quick-search/style/index.css +1 -0
  149. package/es/components/recommend-search/index.d.ts +2 -2
  150. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  151. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  152. package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
  153. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  154. package/es/components/scale-view/src/hooks/use-component.d.ts +69 -116
  155. package/es/components/search-cascader/index.d.ts +2 -2
  156. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
  157. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  158. package/es/components/select-label/index.d.ts +70 -169
  159. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
  160. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  161. package/es/components/select-label/src/SelectLabel.vue.d.ts +70 -116
  162. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  163. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  164. package/es/components/select-label/style/iconfont.ttf +0 -0
  165. package/es/components/select-label/style/index.css +1 -1
  166. package/es/components/select-person/index.d.ts +1 -1
  167. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  168. package/es/components/shortcut-setter/index.d.ts +17 -17
  169. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +17 -17
  170. package/es/components/steps-wheel/index.d.ts +1 -0
  171. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -0
  172. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  173. package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
  174. package/es/components/steps-wheel/src/constants/index.js +1 -0
  175. package/es/components/steps-wheel/style/index.css +1 -1
  176. package/es/components/table-filter/index.d.ts +0 -2386
  177. package/es/components/table-filter/index.js +1 -1
  178. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
  179. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  180. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -42
  181. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  182. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  183. package/es/components/table-filter/src/components/render-widget/enums.d.ts +0 -8
  184. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  185. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
  186. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  187. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  188. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  189. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -1
  190. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  191. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
  192. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  193. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  194. package/es/components/table-filter/src/tool/baseOptions.d.ts +8 -0
  195. package/es/components/table-filter/src/tool/baseOptions.js +1 -0
  196. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  197. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  198. package/es/components/table-filter/src/tool/transformData.d.ts +1 -37
  199. package/es/components/table-filter/src/tool/transformData.js +1 -1
  200. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  201. package/es/components/table-filter/src/types/enums.js +1 -1
  202. package/es/components/table-filter/src/types/index.d.ts +13 -243
  203. package/es/components/time-picker/index.d.ts +12 -0
  204. package/es/components/time-picker/index.js +1 -0
  205. package/es/components/time-picker/src/TimePicker.vue.d.ts +12 -0
  206. package/es/components/time-picker/src/TimePicker.vue.js +1 -0
  207. package/es/shared/mixins/index.d.ts +2 -0
  208. package/es/shared/mixins/index.js +1 -0
  209. package/es/shared/mixins/useDateTime.d.ts +6 -0
  210. package/es/shared/mixins/useDateTime.js +1 -0
  211. package/es/shared/mixins/useTheme.d.ts +3 -0
  212. package/es/shared/mixins/useTheme.js +1 -0
  213. package/es/shared/utils/index.d.ts +1 -0
  214. package/es/shared/utils/index.js +1 -1
  215. package/package.json +2 -2
  216. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +0 -2
  217. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +0 -1
  218. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  219. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  220. package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
  221. package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
  222. package/es/components/table-filter/src/components/table-modal/index.vue.js +0 -1
  223. package/es/components/table-filter/src/const/index.d.ts +0 -5
  224. package/es/components/table-filter/src/const/index.js +0 -1
  225. package/es/components/table-filter/src/directive/resize.d.ts +0 -4
  226. package/es/components/table-filter/src/directive/resize.js +0 -1
  227. package/es/components/table-filter/src/hooks/export.d.ts +0 -1
  228. package/es/components/table-filter/src/hooks/export.js +0 -1
  229. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  230. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  231. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  232. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  233. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  234. package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
  235. package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
  236. package/es/components/table-filter/src/tool/options.d.ts +0 -18
  237. package/es/components/table-filter/src/tool/options.js +0 -1
  238. package/es/components/table-filter/src/tool/resizeSensor.d.ts +0 -16
  239. package/es/components/table-filter/src/tool/resizeSensor.js +0 -1
  240. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  241. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  242. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  243. package/es/components/table-filter/src/tool/utils.js +0 -1
  244. package/es/components/table-filter/style/index.css +0 -1
  245. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  246. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
@@ -1,23 +1,4 @@
1
1
  export declare type funcVoid = () => void;
2
- export declare type IrelationType = {
3
- fieldList?: any;
4
- valueField?: any;
5
- primaryField?: any;
6
- relationField?: any;
7
- tableId: any;
8
- parameterConversionId: any;
9
- converFun: any;
10
- preConObj: any;
11
- relationOrgId: any;
12
- preSqlExpression: any;
13
- tableName?: string;
14
- quote_con?: {
15
- conObj: ISearchConfigType;
16
- sqlExpression: string;
17
- };
18
- field_key?: string;
19
- con?: string;
20
- };
21
2
  export declare type ISearchType = {
22
3
  columnName: string;
23
4
  title: string;
@@ -28,8 +9,6 @@ export declare type ISearchType = {
28
9
  settingObj?: any;
29
10
  placeholder?: string;
30
11
  AGEAttr?: boolean;
31
- BIRTHDAY?: IDateType;
32
- DATE?: IDateType;
33
12
  CL?: string;
34
13
  CONVERT?: any;
35
14
  EVALUATEAttr?: boolean;
@@ -53,7 +32,6 @@ export declare type ISearchType = {
53
32
  comAttr?: string;
54
33
  con?: string;
55
34
  dataSource?: any;
56
- dateTeam?: ITeamType[];
57
35
  dictionarieObj?: any;
58
36
  explicitRequired?: number;
59
37
  explicitDefaultVal?: string;
@@ -105,14 +83,6 @@ export declare type ISearchType = {
105
83
  hasFieldList?: any;
106
84
  search_DefaultValue?: any;
107
85
  };
108
- export declare type IDateType = {
109
- con: any;
110
- limit_date?: any;
111
- start_val: any;
112
- end_val: any;
113
- unit?: string;
114
- units?: ITeamType[];
115
- };
116
86
  export declare type IlabelType = {
117
87
  labelId?: string;
118
88
  change_text: string;
@@ -131,89 +101,27 @@ export declare type IFilterItemType = {
131
101
  key?: string;
132
102
  value: string;
133
103
  };
134
- export declare type IsettingType = {
135
- acrossTable?: string;
136
- attr?: string;
137
- colorAndIcon?: any;
138
- colorSetting?: any;
139
- fontContentCopy?: string;
140
- format?: string;
141
- isHide?: string;
142
- isSystemField?: string;
143
- labelType?: any;
144
- notParticipatingSearch?: string;
145
- notParticipatingSort?: string;
146
- relationTable?: any;
147
- showSetting?: IlabelType[];
148
- wordbook?: IwordbookType;
149
- isPreciseSearch?: number;
150
- };
151
- export declare type IwordbookType = {
152
- id?: string;
153
- showType?: string;
154
- params?: any;
155
- autograph?: any;
156
- field_key?: string;
157
- showKeys?: any;
158
- filterKeys?: any;
159
- wordbookType?: any;
160
- };
161
104
  export declare type IParentNamesType = {
162
105
  disabled: boolean;
163
106
  isAdd?: boolean;
164
107
  selected: boolean;
165
108
  value: string;
166
109
  };
167
- export declare type ITeamType = {
168
- con: string;
169
- title: string;
170
- name: string;
171
- units?: number;
172
- };
173
- export declare type IEvaluateType = {
174
- label: string;
175
- value: string;
176
- isSelect?: boolean;
177
- };
178
110
  export declare type ISaveType = {
179
111
  id?: string;
180
112
  tableId: string;
181
113
  setting: any;
182
114
  conditionList: string;
183
115
  };
184
- export declare type ILabelItemListType = {
185
- allowCreateByPersonal: number;
186
- color: string;
187
- isPublic: string;
188
- isSelect: boolean;
189
- labelId: string;
190
- labelName: string;
191
- parentColor: string;
192
- parentId: string;
193
- parentType: string;
194
- typeId: string;
195
- typeName: string;
196
- };
197
- export declare type ILabelType = {
198
- addVal: string;
199
- isShowBtn: boolean;
200
- isUnfold: boolean;
201
- itemList: ILabelItemListType[];
202
- showAdd: boolean;
203
- typeId: string;
204
- typeName: string;
205
- change_text?: string;
206
- filter?: any;
207
- };
208
116
  export declare type IClassifyListType = {
209
- classifyId: string;
210
117
  displayCategory: string;
211
118
  isDefault: boolean;
212
119
  isEdit: boolean;
213
- isPublic: string;
214
120
  isShow: boolean;
215
121
  name: string;
216
122
  sid: string;
123
+ isPublic?: string;
124
+ classifyId?: string;
217
125
  conObj?: any;
218
126
  digital?: number;
219
127
  checked?: boolean;
@@ -246,160 +154,16 @@ export declare type ITreeDataType = {
246
154
  open?: boolean;
247
155
  selected?: boolean;
248
156
  };
249
- export declare type IActionType = {
250
- curKey: number;
251
- field_key: string;
252
- fieldId: any;
253
- fieldType: string;
254
- con: string;
255
- searchList: any;
256
- searchChildList: any;
257
- dateList: any;
258
- wordbookData: any;
259
- relationData: any;
260
- relationField: string;
261
- relationFieldList: any;
262
- quote_con: any;
263
- title: string;
264
- unit: string;
265
- setting: string;
266
- settingObj: any;
267
- wordbookValueList: string[];
268
- isIllegalField: boolean;
269
- is_compare_field: boolean;
270
- selectList: any;
271
- customInput: boolean;
272
- compare_field: any;
273
- };
274
157
  export declare type IConditionMapType = {
275
- conditionList: IClassifyListType[];
276
- displayCategoryList: string[];
277
- tabConditionList: any;
278
- countTabCondition: string;
279
- settingId: string;
280
- };
281
- export declare type ILocalObjType = {
282
- autograph?: string;
283
- extendParams?: any;
284
- id?: string;
285
- menuId?: string;
286
- name?: string;
287
- params?: any;
288
- preConObj?: any;
289
- preSqlExpression?: any;
290
- primaryKeyValue?: any;
291
- reportType?: any;
292
- triggerObjContentObj?: ITriggerObjType;
293
- type?: string;
158
+ conditionList?: IClassifyListType[];
159
+ displayCategoryList?: string[];
160
+ tabConditionList?: any;
161
+ countTabCondition?: string;
162
+ settingId?: string;
294
163
  };
295
- export declare type ITriggerObjType = Record<'id' | 'name' | 'type', string>;
296
- export declare type ISelectAllType = Record<'name' | 'sid', string>;
297
- export declare type IOriginConditionType = {
298
- checked?: boolean;
299
- classifyId?: string;
300
- conObj: ISearchConfigType;
301
- createdByName: string;
302
- digital: number;
303
- displayCategory: string;
304
- from?: string;
305
- isDefault: boolean;
306
- isEdit: boolean;
307
- isPublic: string;
308
- isShow: boolean;
309
- name: string;
310
- selected?: boolean;
311
- sid: string;
312
- sqlExpression?: string;
313
- };
314
- export declare type IbtnType = {
315
- buttonType: string;
316
- color: string;
317
- icon: string;
318
- id: string;
319
- isShow: number;
320
- name: string;
321
- setting: string;
322
- settingList: string;
323
- settingObj: IsettingObjType[];
324
- showStyle: string;
325
- sid: string;
326
- tableId: string;
327
- toggle: string;
328
- type: string;
329
- alias?: string;
330
- buttonRemark?: string;
331
- buttonGroup?: any;
332
- canHandleUniline?: boolean;
333
- chooseTwoData?: string;
334
- createdTime?: string;
335
- dataSource?: string;
336
- isButtonGroup?: boolean;
337
- isHide?: boolean;
338
- isImportGuage?: boolean;
339
- iconSetting?: string;
340
- isShowFoldGroupBtn?: boolean;
341
- isVisible?: boolean;
342
- printType?: any;
343
- quoteSetting?: string;
344
- showStyleSetting?: string;
345
- strategy?: string;
346
- updatedTime?: string;
347
- __printConfig?: any;
348
- };
349
- export declare type IsettingObjType = {
350
- obj_id: string;
351
- trigger_type: string;
352
- isTips: string;
353
- trigger_id?: string;
354
- trigger_name?: string;
355
- params?: IparamsType[];
356
- editAllRow?: number;
357
- tipsMsg?: any;
358
- newTitle?: string;
359
- display?: string;
360
- importComponentId?: string;
361
- importComponentName?: string;
362
- prevStepSetting?: any;
363
- linkShowType?: string;
364
- conditionExpression?: string;
365
- conditionParams?: any;
366
- };
367
- export declare type IparamsType = Record<'p_name' | 'p_value', string>;
368
164
  export declare type IsettingsType = {
369
165
  hideQuickSearch: number;
370
166
  };
371
- export declare type InjectisShowResetButton = {
372
- from: '';
373
- };
374
- export declare type IeditTableWrapperItem = {
375
- options?: IeditTableWrapperDetail;
376
- };
377
- export declare type IeditTableWrapperDetail = {
378
- isButtonFolding?: boolean;
379
- extendParams?: any;
380
- };
381
- export declare type IrowBtnListObj = {
382
- ADD: {
383
- name: string;
384
- children: IbtnType[];
385
- };
386
- INLINE: {
387
- name: string;
388
- children: IbtnType[];
389
- };
390
- BATCH: {
391
- name: string;
392
- children: IbtnType[];
393
- };
394
- };
395
- export declare type IPrintType = {
396
- number: number;
397
- authorizationKey: string;
398
- versionType: any;
399
- port: number;
400
- id: string;
401
- };
402
- export declare type IPrintAboutType = Record<'templateId' | 'formatId' | 'type', string>;
403
167
  export declare type ICheckboxType = Record<'label' | 'value', string>;
404
168
  export declare type IApiServerType = {
405
169
  name: string;
@@ -471,3 +235,9 @@ export declare type IFormStateType = {
471
235
  displayCategory: string;
472
236
  filterConditions: Record<'condition' | 'key' | 'presetVal' | 'value', string>[];
473
237
  };
238
+ export declare type ISearchParamsType = {
239
+ field_key: string;
240
+ con: string;
241
+ value: any;
242
+ unit: string | null;
243
+ };
@@ -0,0 +1,12 @@
1
+ import { SFCWithInstall } from '../../../es/shared/types';
2
+ declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
3
+ attrs: {
4
+ [x: string]: unknown;
5
+ };
6
+ timePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
7
+ formatRef: import("vue").ComputedRef<string>;
8
+ focus: () => any;
9
+ blur: () => any;
10
+ NTimePicker: any;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
12
+ export default TimePicker;
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as i}from"../../shared/utils/index.js";import e from"./src/TimePicker.vue.js";const o=e;o.install=function(e){i(e,o,r+"TimePicker")};export{o as default};
@@ -0,0 +1,12 @@
1
+ import { AnyObject } from '../../../../es/shared/types';
2
+ declare const _default: import("vue").DefineComponent<{}, {
3
+ attrs: {
4
+ [x: string]: unknown;
5
+ };
6
+ timePickerRef: import("vue").Ref<AnyObject | null>;
7
+ formatRef: import("vue").ComputedRef<string>;
8
+ focus: () => any;
9
+ blur: () => any;
10
+ NTimePicker: any;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
12
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as r,ref as i,computed as s,openBlock as t,createBlock as m,unref as o,mergeProps as u,createSlots as a,renderList as f,withCtx as l,renderSlot as p}from"vue";import{NTimePicker as n}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as _}from"../../../shared/mixins/useDateTime.js";import c from"../../../_virtual/plugin-vue_export-helper.js";var v=c(e({__name:"TimePicker",setup(e,{expose:c}){const v=r(),d=i(null),k=s((()=>v.format?v.format:"HH:mm:ss")),{focus:x,blur:h}=_(d,k);return c({$timePicker:d,focus:x,blur:h}),(e,r)=>(t(),m(o(n),u({ref_key:"timePickerRef",ref:d},e.$attrs),a({_:2},[f(e.$slots,((r,i)=>({name:i,fn:l((()=>[p(e.$slots,i)]))})))]),1040))}}),[["__file","TimePicker.vue"]]);export{v as default};
@@ -0,0 +1,2 @@
1
+ export * from './useTheme';
2
+ export * from './useDateTime';
@@ -0,0 +1 @@
1
+ export{useTheme}from"./useTheme.js";export{useDateTime}from"./useDateTime.js";
@@ -0,0 +1,6 @@
1
+ import { Ref } from 'vue';
2
+ import { AnyObject } from '../../../es/shared/types';
3
+ export declare function useDateTime(datePickerRef: Ref<AnyObject | null>, formatRef: Ref<string>): {
4
+ focus: () => any;
5
+ blur: () => any;
6
+ };
@@ -0,0 +1 @@
1
+ import{computed as e,onMounted as t,onUnmounted as n}from"vue";import{useDebounceFn as l}from"@vueuse/core";function o(o,c){const u=l((e=>{!function(e){const t=e.target;if(["INPUT"].includes(t.tagName)){const{selectionStart:e=0,selectionEnd:n=0}=t;e===n&&t.select()}}(e)}),200),s=e((()=>{var e;return null==(e=o.value)?void 0:e.$el}));function r(e){const t=e.target;t.value&&Reflect.get(t,"_f_")&&(Reflect.set(t,"_f_",0),a(t,!0)&&(e.preventDefault(),e.stopPropagation()))}function i(e){const{key:t,target:n}=e;/\d/.test(t)&&n?Reflect.set(n,"_f_",1):"Enter"===t&&a(e.target,!1,!0)}function a(e,t,n){const l=e.value;if(!l)return;const o=e.selectionEnd||0,u=l.length;let s=0,r=0,i=0,a="",v=0;for(;s<u;){const e=l[s++];if(/\d/.test(e)&&(a+=e),s===o){i=a.length;const e=l.slice(s).match(/^\d+/);v=e?e[0].length:0}}const d=c.value;let f="",g=0,h=0;for(s=0;s<d.length&&(n||!(r>=a.length));){const e=d[s++];if(/[yMdHms]/.test(e)?f+=a[r++]||"0":f+=e,t&&r===i){i=-1,g=f.length,h=g;let e=d.slice(s).match(/^[yMdHms]+/);e?(v=Math.min(v,e[0].length),v&&(f+=a.slice(r,r+v),r+=v),s+=e[0].length):(e=d.slice(s).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(g+=e[1].length,h=g+e[2].length))}}const m=f!==l;if(m){e.value=f;const t=new InputEvent("input");e.dispatchEvent(t)}return t&&(g=g||f.length+1,h=h||f.length+1,e.setSelectionRange(g,h)),m}return t((()=>{s.value&&(s.value.addEventListener("input",r,!0),s.value.addEventListener("keydown",i,!0),s.value.addEventListener("click",u,!0))})),n((()=>{s.value&&(s.value.removeEventListener("input",r,!0),s.value.removeEventListener("keydown",i,!0),s.value.removeEventListener("click",u,!0))})),{focus:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.blur)?void 0:t.call(e)}}}export{o as useDateTime};
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'vue';
2
+ import { CComponentThemeOverrides } from '../../../es/components/config-provider';
3
+ export declare function useTheme(defaultCssVars?: CSSProperties, componentKey?: keyof CComponentThemeOverrides): import("vue").ComputedRef<CSSProperties>;
@@ -0,0 +1 @@
1
+ import{checkInSetupEnv as r,hex2rgba as o}from"../utils/index.js";import{isNumber as i}from"lodash-es";import{useThemeVars as t}from"naive-ui";import{inject as e,computed as n,unref as c}from"vue";function m(i,m){r();const l=t(),p=e("themeOverridesInjectRef",{});return n((()=>{var r;const t=m?c(p)[m]:null,e=null!=(r=l.value.primaryColor)?r:"#5585f5";return{...i,"--c-primary-color":e,"--c-primary-color-opacity1":a(...o(e),.1),"--c-primary-color-opacity2":a(...o(e),.2),...t}}))}function a(r,o,t,e,n=1){return`rgba(${r},${o},${t}, ${i(e)?(e*n).toFixed(2):n})`}export{m as useTheme};
@@ -31,3 +31,4 @@ export declare function isMatchLowCodeCondition(value: unknown, condition: {
31
31
  con: LOW_CODE_VALUE_RELATION & string;
32
32
  value: unknown;
33
33
  }): boolean;
34
+ export declare function hex2rgba(hex: string): readonly [number, number, number, number];
@@ -1 +1 @@
1
- import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as n,includes as r,isEmpty as o,negate as u,gt as c,gte as i,lt as s,lte as f,isNumber as a,isObject as x,isFunction as E}from"lodash-es";import{getCurrentInstance as l}from"vue";function m(t,n,r="children",o){function u(){throw"silence break traverse"}try{h(t).forEach((t=>{n(t,u,o),h(r).forEach((o=>{e(t[o])&&m(t[o],n,r,t)}))}))}catch(t){if("silence break traverse"===t)return;throw t}}function L(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(r?r():t.component(n,e))}function d(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function h(t){return Array.isArray(t)?t:[t]}function p(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const N=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),w=Object.seal(Object.create(null));function S(t,n){return function t(n,r){return x(n)?e(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((e,[n,o])=>(r.includes(n)||(x(o)&&!E(o)?e[n]=t(o,r):e[n]=o),e)),{}):n}(t,n)}function v(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function y(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function Q(t,e="px"){if(a(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function $(t,e){return t.some((t=>e.includes(t)))}const b=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function O(t,e){if(!x(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function U(t){if(!l())throw new Error(t||"can't use this hook out of setup environment")}var C=(t=>(t.EQ="EQ",t.NEQ="NEQ",t.CL="CL",t.NC="NC",t.NULL="NULL",t.NOT_NULL="NOT_NULL",t.BIG="BIG",t.BIGEQ="BIGEQ",t.LESS="LESS",t.LESSEQ="LESSEQ",t))(C||{});const I={EQ:(t,e)=>`${t}`===e,NEQ:(t,e)=>`${t}`!==e,CL:(t,o)=>!(!e(t)&&!n(t))&&r(t,o),NC:(t,o)=>!e(t)&&!n(t)||!r(t,o),NULL:o,NOT_NULL:u(o),BIG:c,BIGEQ:i,LESS:s,LESSEQ:f};function g(t,e){return(I[e.con]||(()=>!1))(t,`${e.value}`)}export{w as DMZ,C as LOW_CODE_VALUE_RELATION,h as arrayed,U as checkInSetupEnv,S as deepOmit,y as findAncestor,d as generateTimeFormat,N as getStringWidth,g as isMatchLowCodeCondition,b as jsonParse,L as safeComponentRegister,v as separateMetaModule,O as shallowOmit,$ as targetStringIncludes,m as traverse,p as uuidGenerator,Q as widthAppend};
1
+ import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as n,includes as r,isEmpty as o,negate as c,gt as u,gte as i,lt as s,lte as a,isNumber as f,isObject as x,isFunction as d}from"lodash-es";import{getCurrentInstance as E}from"vue";function l(t,n,r="children",o){function c(){throw"silence break traverse"}try{L(t).forEach((t=>{n(t,c,o),L(r).forEach((o=>{e(t[o])&&l(t[o],n,r,t)}))}))}catch(t){if("silence break traverse"===t)return;throw t}}function m(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(r?r():t.component(n,e))}function p(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function L(t){return Array.isArray(t)?t:[t]}function h(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const N=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),w=Object.seal(Object.create(null));function S(t,n){return function t(n,r){return x(n)?e(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((e,[n,o])=>(r.includes(n)||(x(o)&&!d(o)?e[n]=t(o,r):e[n]=o),e)),{}):n}(t,n)}function v(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function y(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function I(t,e="px"){if(f(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function Q(t,e){return t.some((t=>e.includes(t)))}const $=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function b(t,e){if(!x(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function O(t){if(!E())throw new Error(t||"can't use this hook out of setup environment")}var U=(t=>(t.EQ="EQ",t.NEQ="NEQ",t.CL="CL",t.NC="NC",t.NULL="NULL",t.NOT_NULL="NOT_NULL",t.BIG="BIG",t.BIGEQ="BIGEQ",t.LESS="LESS",t.LESSEQ="LESSEQ",t))(U||{});const C={EQ:(t,e)=>`${t}`===e,NEQ:(t,e)=>`${t}`!==e,CL:(t,o)=>!(!e(t)&&!n(t))&&r(t,o),NC:(t,o)=>!e(t)&&!n(t)||!r(t,o),NULL:o,NOT_NULL:c(o),BIG:u,BIGEQ:i,LESS:s,LESSEQ:a};function g(t,e){return(C[e.con]||(()=>!1))(t,`${e.value}`)}function B(t){const[e,n,r,o,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!e)return[0,0,0,1];const u=(c?parseInt(c,16):255)/255;return[parseInt(n,16),parseInt(r,16),parseInt(o,16),+(f(u)?u.toFixed(2):1)]}export{w as DMZ,U as LOW_CODE_VALUE_RELATION,L as arrayed,O as checkInSetupEnv,S as deepOmit,y as findAncestor,p as generateTimeFormat,N as getStringWidth,B as hex2rgba,g as isMatchLowCodeCondition,$ as jsonParse,m as safeComponentRegister,v as separateMetaModule,b as shallowOmit,Q as targetStringIncludes,l as traverse,h as uuidGenerator,I as widthAppend};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.42-release.0",
3
+ "version": "3.1.42-release.1",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "d9efd1bf772d6a90d0a884657e038313e02b772b"
64
+ "gitHead": "024b019485d3b5b92eaeb1834184d147713bfd70"
65
65
  }
@@ -1,2 +0,0 @@
1
- export declare function getFormatTime(time: string, valueFormat: string): string | undefined;
2
- export declare function isValidTime(time: string, valueFormat: string): boolean;
@@ -1 +0,0 @@
1
- function t(t,d){if(!t)return"";return d.includes(":")?((t,d)=>{const n=new RegExp("\\w{1,"+d+"}","g"),e=t.match(n);return null==e?void 0:e.join(":")})(t,2):t}function d(t,d){if(/^(0\d{1}|1\d{1}|2[0-3]):([0-5]\d{1})$/.test(t)&&"HH:mm"===d||/^(0\d{1}|1\d{1}):([0-5]\d{1})$/.test(t)&&"hh:mm"===d||/^(0\d{1}|1\d{1}|2[0-3]):[0-5]\d{1}:([0-5]\d{1})$/.test(t)&&"HH:mm:ss"===d||/^(0\d{1}|1\d{1}):[0-5]\d{1}:([0-5]\d{1})$/.test(t)&&"hh:mm:ss"===d){const d=t.split(":");return 60*+d[0]*60+60*+d[1]+(d[3]?+d[3]:0)<86400}return!1}export{t as getFormatTime,d as isValidTime};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as i,watch as a,openBlock as l,createElementBlock as n,createElementVNode as r,withDirectives as o,renderSlot as u,unref as s,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as m,createCommentVNode as v,Fragment as h,renderList as p}from"vue";import g from"xe-utils";import"moment";import y from"../directive/resize.js";import S from"../components/render-widget/index.vue.js";import x from"../hooks/useMixins.js";import b from"../hooks/useAdvanced.js";import k from"../hooks/useRenderWidget.js";import{NButton as j,NIcon as I}from"naive-ui";import{Search as _}from"@vicons/ionicons5";import C from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import{cloneDeep as R}from"lodash-es";import q from"../../../../_virtual/plugin-vue_export-helper.js";const V={class:"base-search-block"},A={class:"base-container"},O={class:"base-ul"},Q={key:1,class:"baseli"},z={key:2,class:"baseli"};var F=q(e({__name:"BaseSearch",props:{showSettings:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]},classificationIndex:{type:Number},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onSave","handleReset","outSearchInit","getParam"],setup(e,{emit:q}){const F=e,{outQuickSearchFn:L}=x(),{isRender:W,getRenderSearchConObj:w,isExistDefValByRenderWidget:B,resetRenderWidgetValue:D}=k(),{transformData:E}=b(),N=t(null),P=t(null),U=t(0),$=t(0),M=t(0),T=t(0),G=t(!1),H=t(!1),J=t([]),K=i((()=>{var e;return e="hideQuickSearch",0==F.showSettings[e]}));function X(e){var t;if(H.value)return;let i=N.value;if(!i)return;H.value=!0,U.value=i.clientWidth,$.value=2===F.classificationIndex?160:0,M.value=(null==(t=P.value)?void 0:t.clientWidth)||0;let a=$.value+M.value,l=U.value-a;T.value=l,e.type&&"resize"===e.type&&function(){if(J.value.length>0)return;H.value=!1}()}function Y(){g.debounce(X({type:"resize"}),300)}function Z(){q("foldQuickSearch",!0)}function ee(e={}){!function(e,t=!1,i={}){let a=[];J.value.length>0&&(a=R(J.value));q("onSave",e,t,a,i)}(te()||[],!0,e)}function te(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let i=0;i<e.length;i++){let a=e[i];const l=w(a);l&&t.push(l)}return t.filter((e=>e.value))}(J.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{D(e)})),L.handlerInitSearchItem(e)}(J.value),q("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>F.searchFieldList),(e=>{e&&e.length>0&&function(e={}){J.value=[];let t=R(E(F.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));J.value=t,L.handlerInitSearchItem(J.value),J.value.some((e=>W(e)?B(e):!!e.explicitDefaultVal))&&(q("outSearchInit"),"reset"!=(null==e?void 0:e.type)&&ee({type:"outSearchInit"}))}()}),{immediate:!0,deep:!0}),a((()=>J),(()=>{const e=te()||[];q("getParam",e),G.value=!!e.length}),{immediate:!0,deep:!0}),(t,i)=>(l(),n("div",V,[r("div",A,[o((l(),n("div",{class:"bease-left",ref_key:"baseLeft",ref:N},[r("ul",O,[u(t.$slots,"classification"),s(K)?(l(),n("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:P},[c(s(j),{class:"search-default",type:"default",onClick:Z},{default:f((()=>[c(s(C),{"icon-class":"anniushaixuan",style:{color:"inherit","margin-right":"6px"}}),d(" 筛选 "+m(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):v("v-if",!0),v(" start--筛选外显--start "),(l(!0),n(h,null,p(J.value,(e=>(l(),n(h,null,[e.isRender?(l(),n("li",{class:"baseli outQuickSearch-li",key:e._frontId},[c(S,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:ee},null,8,["cfg","modelValue","onUpdate:modelValue"])])):v("v-if",!0)],64)))),256)),v(" end--筛选外显--end "),v(" 查询按钮 "),J.value&&J.value.length>0?(l(),n("li",Q,[c(s(j),{type:"primary",onClick:ee,style:{margin:"0 8px 8px 0"}},{default:f((()=>[c(s(I),{component:s(_),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):v("v-if",!0),v(" 重置按钮 "),G.value?(l(),n("li",z,[c(s(j),{onClick:ie,style:{margin:"0 8px 8px 0"}},{default:f((()=>[c(s(C),{"icon-class":"xitongtubiaoliebiaocaozuoanniushanchu",style:{"margin-right":"6px"}}),d(" 重置 ")])),_:1})])):v("v-if",!0)])])),[[s(y),Y]])])]))}}),[["__file","BaseSearch.vue"]]);export{F as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as i,ref as n,provide as t,computed as l,onActivated as a,onBeforeMount as s,onMounted as o,nextTick as d,watch as c,openBlock as r,createElementBlock as p,normalizeClass as u,unref as h,normalizeStyle as f,withDirectives as g,createVNode as m,createTextVNode as y,toDisplayString as v,createCommentVNode as C,createElementVNode as k,Fragment as b,renderList as S,createBlock as x,withCtx as _,renderSlot as w}from"vue";import{NIcon as I,NTooltip as O}from"naive-ui";import{Repeat as L,SettingsOutline as T,ChevronDown as M,ChevronForward as N,Checkmark as j,Close as z,ChevronUp as B}from"@vicons/ionicons5";import P from"../components/set-classification/index.vue.js";import A from"../directive/flexibleResize.js";import{root_isShowResetButton as E}from"../const/index.js";import J from"../hooks/useMixins.js";import R from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import F from"../../../../_virtual/plugin-vue_export-helper.js";const D={key:0,class:"header"},W={class:"tree"},$=["onClick"],q={key:0,class:"digital-span"},G=["onClick"],Q={key:0,class:"digital-span"},V=["onClick"],H={class:"child-item-name"},K={key:0,class:"digital-span"},U={key:1,class:"tree-type-footer"},X={class:"selected-num"},Y={key:0,class:"tile-type classify-1"},Z={key:0,class:"header"},ee={class:"right-setting"},ie=["onClick"],ne={key:0,class:"digital-span"},te={class:"parent ellips"},le={class:"children"},ae=["onClick"],se={key:0,class:"digital-span"},oe={key:1,class:"selected-list"},de={class:"selected-num"},ce={key:0,class:"digital-span"},re={key:0,class:"digital-span"},pe={class:"name"},ue={class:"name"},he={key:0,class:"main-wrapper"},fe=["onClick"],ge={key:0,class:"digital-span"},me={class:"tree-footer"},ye=["onClick"],ve=["onClick"],Ce={key:0,class:"digital-span"},ke={key:0,class:"select-type-footer"},be={class:"selected-num"};var Se=F(e({__name:"Classification-com",props:{tableId:{type:String,default:""},conditionSid:{type:Array,default:()=>[]},curClassificationIndex:{type:Number},curClassificationWidth:{type:Number},conditionType:{type:String,default:""},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:0},countCondition:{type:Number,default:0},countTabCondition:{type:Number,default:0},isShowResetButton:{type:Boolean,default:!0},conditionMap:{type:Object,default:()=>{}},filterApiConfig:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]}},emits:["changeSearch","setCurTreeData","setClassificationIndex","getClassification","reloadList","getQuickSearchListObj","setConditionMap","setClassifyModal"],setup(e,{emit:F}){const Se=e,{handleGetConfigApi:xe}=J(),_e=i(),we=n(null);let Ie=n(150),Oe=n(!1),Le=n([]),Te=n([]),Me=n([]),Ne=n(2),je=n(""),ze=n({name:"全部数据",sid:"all_data"}),Be=n([]),Pe=n([]),Ae=n(""),Ee=n(!1),Je=n("全部数据");t(E,n(Se.isShowResetButton));let Re=l((()=>0===Ne.value?{marginRight:"8px"}:2===Ne.value?{display:"inline-block"}:{})),Fe=l((()=>{let e=Te.value.filter((e=>-1!==Se.conditionSid.indexOf(e.sid)));if(-1!==Se.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),De=l((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:t}=e;return si(n,t)+i})),We=l((()=>1===Se.countCondition||1===Se.countTabCondition));function $e(e){e.open?e.open=!1:e.open=!0}function qe(e,i,n){if(Je.value=e.name,!e.digital&&1===Se.countCondition)return!1;let t=function(e,i,n){let t=JSON.parse(JSON.stringify(i));if("all_data"===e)t=["all_data"];else if("keyword"===Se.conditionType){let i=t.findIndex((e=>"all_data"===e));-1!==i&&t.splice(i,1);let l=t.findIndex((i=>i===e));-1!==l?(t.splice(l,1),0===t.length&&(t=["all_data"])):(n.children&&n.children.length>0&&(l=t.findIndex((e=>-1!==n.children.findIndex((i=>i.sid===e))))),-1!==l&&t.splice(l,1),t.push(e))}else t=-1!==t.indexOf(e)?["all_data"]:[e];return t}(e.sid,Se.conditionSid,n),l=function(e){let i=[];return Le.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}(t);Ke(!1),F("changeSearch","all_data"===e.sid?"all":"",e,n,l)}function Ge(){F("setCurTreeData",Le.value);let e="";if(2===Ne.value)e=0;else{let i=Ne.value;e=++i}Ie.value=150,Qe(e)}async function Qe(e,i){let n={tableId:Se.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await xe(n,"requestSaveListPersonaSetting",{},Se.filterApiConfig)&&F("setClassificationIndex",e)}catch(e){console.log(e)}}function Ve(){Ee.value=!0,Ke(!1)}function He(e){F("setClassifyModal",e),Ee.value=e}function Ke(e){Oe.value=void 0===e?!Oe.value:e}function Ue(e){var i;if((void 0!==e&&"delete"===e.type&&-1!==Se.conditionSid.indexOf(e.item.sid)&&F("changeSearch","all",{name:"全部数据",sid:"all_data",selected:!0}),Se.tableId)&&Object.keys(Se.conditionMap).length>0){Le.value=[];let{displayCategoryList:e=[],conditionList:n=[]}=Se.conditionMap;Me.value=JSON.parse(JSON.stringify(n)),Pe.value=e||[],Te.value=JSON.parse(JSON.stringify(n));const t={name:"全部数据",sid:"all_data"};Te.value.unshift(t);let l=[];0===e.length&&(e=["未分类"]),e.forEach((e=>{let i={name:e,children:[]};n.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==Se.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&l.push(i)})),l.unshift({name:"全部数据",sid:"all_data"}),Le.value=l,0===Ne.value&&(i=!0,Le.value.forEach((e=>{e.children&&e.children.length&&(e.open=i)})))}}async function Xe(e){try{await Ue(e)}catch(e){console.log(e)}}function Ye({distance:e}){const i=Ie.value+e;Ie.value=Math.min(Math.max(i,50),650)}function Ze(){Qe(Ne.value,Ie.value)}async function ei(){await li(Se.tableId),ni()}async function ii(e){await li(Se.tableId),ti(),F("getClassification",e)}function ni(e){ti(e).then((e=>{F("reloadList",e)}))}function ti(e,i={}){if(!Se.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:Se.conditionMap;return new Promise(((i,t)=>{var l,a,s,o,d,c;if(Object.keys(n).length>0){Be.value=n.conditionList||[],Pe.value=n.displayCategoryList||[];let t={conditionList:Be.value,displayCategoryList:Pe.value};F("getQuickSearchListObj",t),Ae.value=n.settingId;const r=Be.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(l=_e.tableOptions)?void 0:l.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(o=null==(s=_e.tableOptions)?void 0:s.filterCondition)?void 0:o.name,sid:null==(c=null==(d=_e.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function li(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await xe(i,"requestTableCondiTionList",{},Se.filterApiConfig);return F("setConditionMap",n),Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function ai(e){return 1===Se.countCondition&&(e.digital||0===e.digital)}function si(e,i){return e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{Xe({})})),s((()=>{Xe({})})),o((()=>{document.addEventListener("click",(e=>{d((()=>{let i=e.composedPath&&e.composedPath();we&&i.includes(we.value)||Ke(!1)}))}))})),c((()=>Se.tableId),(e=>{e&&(ni(!0),je.value!==e&&(je.value=e))}),{immediate:!0,deep:!0}),c((()=>Se.curClassificationIndex),(e=>{void 0!==e&&(Ne.value=e)}),{immediate:!0,deep:!0}),c((()=>Se.curClassificationWidth),(e=>{e&&(Ie.value=Number(e)||150)}),{immediate:!0}),(i,n)=>(r(),p("div",{class:u(["classification-block","classificationIndex-"+h(Ne)]),style:f(h(Re))},[0===h(Ne)?g((r(),p("div",{key:0,class:"tree-type classify-0",style:f({width:h(Ie)+"px",paddingBottom:"keyword"===e.conditionType?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),p("div",D,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"header-1",onClick:Ge},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"header-1",onClick:Ve},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])):C("v-if",!0),k("ul",W,[(r(!0),p(b,null,S(h(Le),((i,n)=>(r(),p(b,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),p("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),p(b,{key:1},[k("span",{class:u(["parent",{open:i.open}]),onClick:e=>$e(i)},[k("span",null,[y(v(i.name)+" ",1),ai(i)?(r(),p("span",Q," ("+v(i.digital||0)+") ",1)):C("v-if",!0)]),m(h(I),{component:i.open?h(M):h(N)},null,8,["component"])],10,G),i.open?(r(!0),p(b,{key:0},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),p("div",{class:"children",key:n},[e.isShow?(r(),x(h(O),{key:0,trigger:"hover",placement:"right"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&h(We)}]),onClick:n=>qe(e,0,i)},[k("span",H,v(e.name||si(e.isPublic)),1),ai(e)?(r(),p("span",K," ("+v(e.digital||0)+") ",1)):C("v-if",!0),e.selected?(r(),x(h(I),{key:1,component:h(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,V)])),default:_((()=>[k("span",null,v(h(De)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),p("span",{key:0,class:u(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>qe(i)},[y(v(i.name)+" ",1),ai(i)?(r(),p("span",q," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,$))],2)):C("v-if",!0)],64)))),256))]),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",U,[k("div",X,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)],4)),[[h(A),{mode:"VR",onMove:Ye,onEnd:Ze}]]):C("v-if",!0),1===h(Ne)?(r(),p(b,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(Me).filter((e=>e.isShow)).length>0?(r(),p("div",Y,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),p("div",Z,[k("span",{class:u(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[y(" 全部数据 "),h(ze).digital||0===h(ze).digital?(r(),p(b,{key:0},[y(" ("+v(h(ze).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",ee,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"setting-1",onClick:Ge,style:{"margin-right":"30px"}},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"setting-1",onClick:Ve},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])])):C("v-if",!0),k("ul",{class:"tile",style:f({borderBottom:"keyword"===e.conditionType&&1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),p(b,null,S(h(Le).slice(1),((e,i)=>(r(),p(b,null,[e.children&&e.children.length>0?(r(),p("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(r(),p(b,{key:1},[k("span",te,v(e.name),1),k("div",le,[(r(!0),p(b,null,S(e.children,((i,n)=>(r(),p(b,null,[i.isShow?(r(),p("span",{key:n,class:u(["child-item",{selected:i.selected,disabled:!i.digital&&h(We)}]),onClick:n=>qe(i,0,e)},[y(v(i.name||si(i.isPublic))+" ",1),ai(i)?(r(),p("span",se," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,ae)):C("v-if",!0)],64)))),256))])],64)):(r(),p("span",{key:0,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>qe(e)},[y(v(e.name)+" "+v(e.digital)+" ",1),ai(e)?(r(),p("span",ne," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,ie))])):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",oe,[k("div",de,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(r(!0),p(b,null,S(h(Le).slice(1),((e,i)=>(r(),p(b,null,[e.children&&0!==e.children.length?(r(!0),p(b,{key:1},S(e.children,((i,n)=>(r(),p(b,null,[i.selected?(r(),p("div",{class:"selected-item",key:i.sid},[y(v(i.name)+" ",1),ai(i)?(r(),p("span",re," ("+v(i.digital||0)+") ",1)):C("v-if",!0),m(h(I),{component:h(z),onClick:n=>qe(i,0,e)},null,8,["component","onClick"])])):C("v-if",!0)],64)))),256)):(r(),p("div",{class:"selected-item",key:e.sid},[y(v(e.name)+" ",1),ai(e)?(r(),p("span",ce," ("+v(e.digital||0)+") ",1)):C("v-if",!0),m(h(I),{component:h(z),onClick:i=>qe(e)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],64)):C("v-if",!0),2===h(Ne)?(r(),p("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:we},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>Ke())},[m(h(O),{trigger:"hover",placement:"top"},{trigger:_((()=>[k("span",pe,v(h(Fe)),1)])),default:_((()=>[k("span",ue,v(h(Fe)),1)])),_:1}),m(h(I),{component:h(Oe)?h(B):h(M)},null,8,["component"])]),h(Oe)?(r(),p("div",he,[k("ul",{class:"tree",style:f({padding:"keyword"===e.conditionType?"40px 0":"40px 0 0"})},[(r(!0),p(b,null,S(h(Le),((i,n)=>(r(),p(b,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),p("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),p(b,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(r(),p("span",{key:0,class:u(["parent",{open:i.open}]),onClick:e=>$e(i)},[y(v(i.name)+v(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),m(h(I),{component:i.open?h(M):h(N)},null,8,["component"])],10,ye)):C("v-if",!0),i.open?(r(!0),p(b,{key:1},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),p("div",{class:"children",key:n},[e.isShow?(r(),x(h(O),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&h(We)}]),onClick:n=>qe(e,0,i)},[k("span",null,[y(v(e.name||si(null==e?void 0:e.isPublic))+" ",1),ai(e)?(r(),p("span",Ce," ("+v(e.digital||0)+") ",1)):C("v-if",!0)]),e.selected?(r(),x(h(I),{key:0,component:h(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,ve)])),default:_((()=>[k("span",null,v(h(De)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),p(b,{key:0},[k("span",{class:u(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>qe(i)},[y(v(i.name)+" ",1),ai(i)?(r(),p("span",ge," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,fe),k("div",me,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"tree-footer-icon",onClick:Ge},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"tree-footer-icon",onClick:Ve},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])],64))],2)):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",ke,[k("div",be,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],512)):C("v-if",!0),C(" 弹出弹窗 "),m(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(Be),displayCategoryList:h(Pe),settingId:h(Ae),tableId:e.tableId,classifyModal:h(Ee),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:ii,onCondiTionListInit:ei,onSetClassifyModal:He},{searchCondition:_((({...e})=>[w(i.$slots,"searchCondition",{attrs:e})])),_:3},8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{Se as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as a,onBeforeUnmount as i,watch as t,openBlock as l,createBlock as o,unref as n,normalizeClass as u,withCtx as d,createVNode as s,normalizeStyle as c,createElementVNode as r,createTextVNode as v,mergeProps as h}from"vue";import{NModal as p,NCard as f,NButton as m}from"naive-ui";import x from"../classify-filter/index.vue.js";import g from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import b from"../../../../../_virtual/plugin-vue_export-helper.js";const y={class:"svg-wrap"},_={class:"flex_right"};var w=b(e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]},filterApiConfig:{type:Object,default:()=>({})}},emits:["cancelSaveAdd"],setup(e,{expose:b,emit:w}){const k=e,A=a(k.visible),C=a(!1),S=a("860px");let L=a({maxHeight:"496px",height:"496px",overflowY:"auto"}),H=a(null),j=null;function F(){T(),j=setTimeout((()=>{H&&H.value.handleInitConditions()}),30)}function T(){j&&clearTimeout(j)}function z(){H&&H.value.saveAdd()}function I(){A.value=!1,w("cancelSaveAdd"),S.value="860px",L.value={height:"496px",maxHeight:"496px",overflowY:"auto"},C.value=!1,H&&H.value.cancelSaveAdd()}function $(){C.value=!C.value;let e=document.body.clientHeight;"860px"===S.value?(S.value="100%",L.value.maxHeight=`${e}px`,L.value.height=`${e}px`):(S.value="860px",L.value.maxHeight="496px",L.value.height="")}return i((()=>{T()})),t((()=>k.visible),(e=>{A.value=e,e&&F()})),b({cancelSaveAdd:I}),(e,a)=>(l(),o(n(p),{class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":C.value}]),show:A.value,"onUpdate:show":a[0]||(a[0]=e=>A.value=e),maskClosable:!1,width:S.value,bodyStyle:n(L),closable:!1,centered:"",onPositiveClick:z,onNegativeClick:I},{default:d((()=>[s(n(f),{style:c({width:S.value,...n(L)}),title:k.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[r("div",y,[s(n(g),{onClick:$,"icon-class":C.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),s(n(g),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:I})])])),footer:d((()=>[r("div",_,[s(n(m),{onClick:I},{default:d((()=>[v("取消")])),_:1}),s(n(m),{type:"info",onClick:z},{default:d((()=>[v("保存")])),_:1})])])),default:d((()=>[s(x,h(e.$attrs,{ref_key:"conditionApiRef",ref:H,searchFieldList:k.searchFieldList,conditionList:k.conditionList}),null,16,["searchFieldList","conditionList"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}}),[["__file","index.vue"]]);export{w as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as o,openBlock as a,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f,renderSlot as u}from"vue";import{useMessage as p,NButton as v}from"naive-ui";import C from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import y from"../../hooks/useMixins.js";import h from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=h(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:h}){const b=e,A=p(),{handleGetConfigApi:L}=y();let I=i(b.conditionList),T=i(),S=i(!1),_=i({}),F=i([]),j=i(!1);const O=i(null),x=t();async function k(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await L(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(h("CondiTionListInit"),E(!1))}catch(e){console.log(e)}}function w(){E(!1),I.value.forEach((e=>{e.checked=!1}))}function G(){S.value=!0}function M(e,i){S.value=!0,_.value=Object.assign(e,{from:"edit"})}function q(e,i){S.value=!0,_.value=Object.assign(e,{from:"copy"})}async function H(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(I.value)}),j.value=!0,!await L(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O&&O.value.cancelSaveAdd(),h("saveGetTableCondiTionList"),S.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){S.value=!1,_.value={}}function $(e,i){I.value=e,T.value=i}async function D(e,i){if(e)try{let i={id:e.sid};if(!await L(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;A.success("删除成功"),h("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else A.info("请选择行")}function E(e){h("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await L(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(h("CondiTionListInit"),E(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return o((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),o((()=>b.searchFieldList),(e=>{e&&e.length>0&&(F.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),o((()=>S),(e=>{e||(_.value={})})),(i,t)=>(a(),l("div",m,[s(C,r({dataSource:c(I),visibleIn:c(N)},i.$attrs,{onHandleOk:k,onClose:w,onChangeData:$,onResetPopconfirm:K,edit:M,copy:q,delItem:D,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(v),{type:"info",onClick:G},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),u(i.$slots,"searchCondition",{attrs:{...i.$attrs,visible:c(S),loading:c(j),conditionList:c(I),actionList_prop:c(_),searchFieldList:e.searchFieldList,isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,saveAdd:H,cancelSaveAdd:R},ref_key:"searchFilter",ref:O},(()=>[s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(S),loading:c(j),conditionList:c(I),actionList_prop:c(_),searchFieldList:c(F),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:H,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))]))}}),[["__file","index.vue"]]);export{b as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as a,watch as n,openBlock as o,createBlock as s,unref as r,normalizeClass as u,withCtx as c,createVNode as d,normalizeStyle as p,createSlots as m,createElementVNode as v,createElementBlock as h,createCommentVNode as f,withDirectives as g,vShow as y,createTextVNode as C,toDisplayString as w,withModifiers as k,renderSlot as x}from"vue";import{useMessage as b,useDialog as S,NModal as _,NCard as z,NTooltip as D,NIcon as I,NSwitch as E,NPopconfirm as M,NButton as P}from"naive-ui";import{ReorderTwo as U,Brush as N,DocumentOutline as V}from"@vicons/ionicons5";import O from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import F from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as j}from"../../const/index.js";import B from"axios";import A from"../../../../../_virtual/plugin-vue_export-helper.js";const H={class:"svg-wrap"},R={class:"flex_between"},$={key:0},J={class:"table-modal-list"},T={class:"list-title"},Y=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),q=v("span",{class:"list-title-item"}," 名称 ",-1),G=v("span",{class:"list-title-item"}," 父类名称 ",-1),K=v("span",{class:"list-title-item"}," 是否显示 ",-1),L=v("span",{class:"list-title-item"}," 设置为默认 ",-1),Q={class:"list-title-item"},W=v("span",{class:"list-title-item"}," 操作 ",-1),X=["onClick"],Z={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},ee=["title"],te=["title"],ie={class:"list-content-item list-content-switch"},le={class:"list-content-item list-content-radio"},ae={class:"list-content-item"},ne={class:"list-content-item"},oe={key:0},se=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),re={key:1},ue=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var ce=A(e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>{}},copy:{type:Function,defdault:()=>{}},delItem:{type:Function,defdault:()=>{}},dataSource:{type:Array,default:()=>[]},type:{type:String},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","changeData","resetPopconfirm","finishSubmit"],setup(e,{emit:A}){const ce=e,de=B.create({}),pe=t(),me=b(),ve=S(),he=i((()=>(null==pe?void 0:pe.isOrgAdmin)||!1)),fe=l(ce.dataSource),ge=l(ce.visibleIn),ye=l(!1),Ce=l("other"==ce.type?"100%":"860px"),we=l("654px"),ke=a(j);function xe(){ce.type&&(_e(),A("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(fe.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return fe.value.forEach(((t,i)=>{const l=(null==t?void 0:t.id)||"";e[l]={id:l,index:i,default:t.isDefault?1:0,isHide:t.isShow?0:1}})),{type:"HOMEPAGE",tableId:"10001",setting:JSON.stringify({pageConfig:e})}}return}(ce.type)))}function be(){Se()}function Se(){ge.value=!1,_e(),A("close")}function _e(){Ce.value="860px",we.value="654px",ye.value=!1}function ze(){A("changeData",fe.value)}function De(){ye.value=!ye.value;let e=document.body.clientHeight;Ce.value="860px"===Ce.value?"100%":"860px",we.value="654px"===we.value?`${e}px`:"654px"}function Ie(e){A("resetPopconfirm",e)}function Ee(e,t,i){const l=ce[e];l&&l(t,i)}return n((()=>ce.visibleIn),(e=>{ge.value=e})),n((()=>ce.dataSource),(e=>{fe.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(_),{show:ge.value,bodyStyle:{height:we.value,overflowY:"auto"},width:Ce.value,maskClosable:!1,class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":ye.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:xe,onNegativeClick:Se},{default:c((()=>[d(r(z),{style:p({width:Ce.value,height:we.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":c((()=>[v("div",H,[d(r(O),{onClick:De,"icon-class":ye.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),d(r(O),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:Se})])])),default:c((()=>[r(he)&&"mananger"==e.type?(o(),h("p",$,[v("span",{onClick:be}," 添加首页 ")])):f("v-if",!0),v("div",J,[v("div",T,[Y,q,G,K,L,g(v("span",Q," 设置公共首页 ",512),[[y,r(he)&&"mananger"==e.type]]),W]),d(r(F),{class:"list-content",tag:"ul",list:fe.value,"item-key":"sid",onEnd:ze,animation:"300"},{item:c((({element:t})=>[g(v("li",{class:u({checked:t.checked}),onClick:e=>{return i=t,fe.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void A("changeData",fe.value,i);var i}},[v("span",Z,[d(r(D),{mouseEnterDelay:1},{trigger:c((()=>[d(r(I),{component:r(U),size:"24"},null,8,["component"])])),default:c((()=>[C(" 拖拽调整顺序 ")])),_:1})]),v("span",{title:t.displayCategory,class:"list-content-item"},w(t.name),9,ee),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,te),v("span",ie,[d(r(E),{"onUpdate:value":e=>{return i=t,void fe.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),v("span",le,[d(r(E),{"onUpdate:value":e=>{var i;(i=t).isShow&&fe.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),g(v("span",ae,[d(r(E),{"onUpdate:value":e=>function(e){function t(e){let t="";for(const i in e)t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i])+"&";return t=t.slice(0,-1),t}ve.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};de({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(me.success(t.data.resultMsg),e.isCommon=!e.isCommon,A("finishSubmit")):me.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>{}})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(he)&&"mananger"==e.type]]),v("span",ne,["mananger"==e.type&&r(he)?(o(),h("span",oe,[d(r(M),{onPositiveClick:e=>Ee("confirm",t)},{trigger:c((()=>[d(r(I),null,{default:c((()=>[se])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0),f(" 编辑 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(I),{component:r(N),onClick:k((e=>Ee("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 编辑 ")])),_:2},1024)],512),[[y,"other"==e.type||"search"==e.type&&t.isEdit||"mananger"==e.type&&r(he)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(I),{component:r(V),onClick:k((e=>Ee("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 复制 ")])),_:2},1024)],512),[[y,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(o(),h("span",re,[d(r(M),{onPositiveClick:e=>Ee("delItem",t,"删除")},{trigger:c((()=>[d(r(I),null,{default:c((()=>[ue])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,X),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[v("div",R,[v("div",null,[r(ke)?(o(),s(r(M),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:Ie},{trigger:c((()=>[d(r(P),null,{default:c((()=>[C("恢复默认设置")])),_:1})])),default:c((()=>[C(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),v("div",null,[d(r(P),{onClick:Se},{default:c((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(P),{type:"info",onClick:xe},{default:c((()=>[C("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}}),[["__file","index.vue"]]);export{ce as default};
@@ -1,5 +0,0 @@
1
- import { Ref, InjectionKey } from 'vue';
2
- import { IeditTableWrapperItem } from '../types';
3
- export declare const GROUP_TITLE_KEY = "group-show-title";
4
- export declare const root_isShowResetButton: InjectionKey<Ref<boolean>>;
5
- export declare const InjecteditTableWrapper: InjectionKey<Ref<IeditTableWrapperItem>>;
@@ -1 +0,0 @@
1
- const o="group-show-title",t=Symbol("root_isShowResetButton"),e=Symbol("editTableWrapper");export{o as GROUP_TITLE_KEY,e as InjecteditTableWrapper,t as root_isShowResetButton};
@@ -1,4 +0,0 @@
1
- declare const Resize: {
2
- mounted(el: any, binding: any): void;
3
- };
4
- export default Resize;
@@ -1 +0,0 @@
1
- import o from"../tool/resizeSensor.js";import{useDebounceFn as e}from"@vueuse/core";const r={mounted(r,t){const s=t.value,m=e(s,10);new o(r,m)}};export{r as default};
@@ -1 +0,0 @@
1
- export * from './useAdvanced';
@@ -1 +0,0 @@
1
- import"./useAdvanced.js";
@@ -1,8 +0,0 @@
1
- import moment from 'moment';
2
- import 'moment/locale/zh-cn';
3
- import { ISearchType } from '../../../../../es/components/table-filter/src/types';
4
- export default function (): {
5
- validConObj: (conObj: any, fieldList: ISearchType[], fieldSearchLimit: any) => any;
6
- getSearchDefValueByLimit: (field: ISearchType, searchLimit?: any) => "" | moment.Moment[];
7
- formatSearchLimit: (limitList: any, freeze?: boolean) => any;
8
- };
@@ -1 +0,0 @@
1
- import e from"moment";import"moment/locale/zh-cn";import{useMessage as t}from"naive-ui";const n=t();function r(){function t(e){e=Number(e)||0;const t=Math.floor(e/12),n=e%12;return(t?`${t}年`:"")+(n?6==n?"半"+(t?"":"年"):`${n}个月`:"")}return{validConObj:function(r,o,i){if(!i||!(null==r?void 0:r.length)||!(null==o?void 0:o.length))return!0;const u=o.reduce(((e,t,n)=>(e[t.columnName]=n,e)),{});return r.every((r=>{const c=r.field_key,l=o[u[c]],a=i[c];return!l||!a||("time"!==a.type||((r,o,i)=>{let u=i.value,c=0;const l=u;if(!u)return!0;const a={TODAY:1/30,TOMORROW:1/30,YESTERDAY:1/30,THIS_WEEK:7/30,NEXT_WEEK:7/30,LAST_WEEK:7/30,THIS_MONTH:1,NEXT_MONTH:1,LAST_MONTH:1,THIS_SEASON:3,NEXT_SEASON:3,LAST_SEASON:3,THIS_YEAR:12,NEXT_YEAR:12,LAST_YEAR:12},f={HOUR:1/24/30,DAY:1/30,WEEK:7/30,MONTH:1,QUARTER:3,YEAR:12},E=r.con;if("IN"===E){const{start_val:t,end_val:i}=r;if(!t&&i||t&&!i)return void n.warning(`请选择${o.title}${t?"截止":"起始"}日期`);t&&i&&(c=e(i).valueOf(),u=e(t).add(l,"month").valueOf())}else if(a[E])c=a[E];else if(",IN_THE_PAST,IN_THE_FUTURE,".includes(`,${E},`)){const{value:e,unit:t}=r,n=f[t]||1;c=Math.floor(Number(e)*Number(n)*100)/100}else if(",IN_THE_PAST_DI,IN_THE_FUTURE_DI,".includes(`,${E},`)){const{unit:e}=r;c=f[e]||0}const T=c<=u;if(!T){const e=o.title||"";n.warning(`${e}最大查询跨度${t(i.value)}`)}return T})(r,l,a))}))},getSearchDefValueByLimit:function(t,n){if(n){const r=n[t.columnName];if(r&&"time"===r.type){const{way:t,defValue:n}=r,o=1==t,i=e(),u=i.clone().add("month",n*(o?-1:1));return o?[u,i]:[i,u]}}return""},formatSearchLimit:function(e,n=!0){const r={time(e){const{value:n,defValue:r}=e;return`默认查询${t(r)},最大查询跨度${t(n)}`}},o=e.reduce(((e,t)=>{const{key:n}=t;if(n){const o=r[t.type]?r[t.type](t):"";e[n]={...t,tips:o}}return e}),{});return n?Object.freeze(o):o}}}export{r as default};
@@ -1,12 +0,0 @@
1
- import { ISearchType } from '../../../../../es/components/table-filter/src/types';
2
- export default function (): {
3
- wordBookutils: {
4
- hasArray: (arr: ISearchType[]) => boolean;
5
- handleWordbookData(item: any, data: any, params: any): {
6
- rows: never[];
7
- hasFieldList: boolean;
8
- searchPageConfig: {};
9
- };
10
- getTitleHeader(fieldList: ISearchType[], renderKey: any): any;
11
- };
12
- };
@@ -1 +0,0 @@
1
- import e from"xe-utils";import"moment";function t(){const t="<&=&>",a={hasArray:e=>Array.isArray(e)&&e.length>0,handleWordbookData(o,s,r){const{setting:n={}}=o,{showKeys:i=[],defaultValue:l,defaultValueTitle:u}=n.wordbook||{};let h=null,d=[],m=!1,c={};if(l&&u&&(h={myName:l,showKeys:u}),s&&s.result){const n=(null==s?void 0:s.reqParams)||{},{page:l,hasNextPage:u,fieldList:y}=s.map;c=Object.assign(o.searchPageConfig,{page:l,hasNextPage:u,isRequest:!0,keyword:(null==r?void 0:r.keyword)||void 0,asyncCount:(null==n?void 0:n.asyncCount)||void 0});const g=s.map.rows.map((a=>{const s=[];i.forEach((t=>{const o=e.stringToValue(a[t],"change_text");s.push(o)}));const r=e.stringToValue(a[o.setting.wordbook.field_key],"value");return Object.assign(a,{myName:r,showKeys:s.join(t),_show_title:s.join(" ")})})),f={};if(d=g.reduce(((e,t)=>(!f[t.myName]&&(f[t.myName]=e.push(t)),e)),[]),h&&d.unshift(h),a.hasArray(y)&&a.hasArray(i)&&i.length>1){const e=a.getTitleHeader(y,i);d.unshift({myName:e,showKeys:e,sid:Math.random()}),m=!0}}return{rows:d,hasFieldList:m,searchPageConfig:c}},getTitleHeader(e,a){const o=[];let s=[];s=Array.isArray(a)?[...a]:[a],s.forEach((t=>{for(let a=0;a<e.length;a++)if(t===e[a].columnName){o.push(`${e[a].title}`);break}}));return o.join(t)}};return{wordBookutils:a}}export{t as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as l,ref as a,computed as t,watch as i,openBlock as n,createElementBlock as o,createElementVNode as u,normalizeClass as s,Fragment as c,renderList as r,unref as d,createCommentVNode as v,toDisplayString as f,createBlock as m,createVNode as p,withCtx as h,createTextVNode as g,withDirectives as k,vShow as b,isRef as y}from"vue";import{useMessage as C,NModal as S,NCard as x,NIcon as q,NButton as _,NForm as T,NFormItem as j,NInput as w}from"naive-ui";import{CloseOutline as L,AddOutline as A}from"@vicons/ionicons5";import O from"../hooks/useMixins.js";import I from"../hooks/useRenderWidget.js";import E from"../hooks/useAdvanced.js";import"moment/locale/zh-cn";import{cloneDeep as Q}from"lodash-es";import R from"../components/render-widget/index.vue.js";import U from"../../../../_virtual/plugin-vue_export-helper.js";const V={class:"quick-row"},z={class:"svg-wrap"},M={class:"flex_right"},B={class:"class-filter-content"},D={class:"quickSearch-content"},F=u("span",{class:"label"},"父类名称:",-1),N=["onDblclick","onClick"],P={key:0,class:"s-content"};var W=U(e({__name:"QuickSearch",props:{searchFieldList:{type:Array,default:()=>[]},tableId:{type:String,default:""},source:{type:String,default:"editTable"},quickSearchListObj:{type:Object,default:()=>({})},filterApiConfig:{type:Object}},emits:["filterCountChange","onSave","closeModal","updateTableCondiTion","clearQuickSearchConfig","getParam"],setup(e,{expose:U,emit:W}){const G=e,J={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},H=l(),K=C(),{handleGetConfigApi:X,outQuickSearchFn:Y}=O(),{initRenderWidgetCfg:Z,getRenderSearchConObj:$,resetRenderWidgetValue:ee}=I(),{transformData:le}=E();a(new Map);const ae=a(null),te=a({classname:""});let ie=a(!1),ne=a([]),oe=a(!1),ue=a("700px"),se=a("60vh"),ce=a([]),re=a(!1),de=a(""),ve=t((()=>!!ce.value.length&&ce.value.some((e=>e.isAdd)))),fe=t((()=>(e,l="name")=>e.alias||e[l]));function me(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=$(t);i&&l.push(i)}return l.filter((e=>e.value))}(ne.value)||[]}function pe(){ue.value="700px",se.value="60vh",oe.value=!1}function he(){var e;null==(e=ae.value)||e.validate((e=>{var l;if(e)return;let a=me();a.length||(a=[]);let t=null==(l=ce.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await X(e,"requestSaveTableCondiTion",{},G.filterApiConfig))return;ie.value=!1,null==(l=ae.value)||l.restoreValidation(),te.value.classname="",ce.value=[],W("updateTableCondiTion"),Ce(),pe(),W("closeModal")}catch(e){console.log(e)}}({tableId:G.tableId||"",setting:JSON.stringify({displayCategory:t,name:te.value.classname,conObj:a}),conditionList:"[]"})}))}function ge(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),re.value=!0}function ke(){re.value=!1,de.value&&(ce.value.forEach((e=>e.selected=!1)),ce.value.push({disabled:!0,value:de.value,selected:!0,isAdd:!0}),de.value="")}function be(e,l){!function(e,l){let{conditionList:a=[]}=G.quickSearchListObj||{};if(!a||a&&0===(null==a?void 0:a.length))return void ce.value.splice(e,1);let t=a.filter((e=>e.displayCategory===l.value));if(!t||!t.length)return void ce.value.splice(e,1);K.error("该分类下有已有数据,请删除该分类下的筛选集后重试!")}(e,l)}function ye(){ie.value=!1}function Ce(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{ee(e)})),Y.handlerInitSearchItem(ne.value)}(ne.value),"editTable"!==G.source?null==H||H.clearQuickSearchConfig():W("clearQuickSearchConfig")}return i((()=>G.searchFieldList),(e=>{e&&e.length>0&&function(){let e=Q(le(G.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];setTimeout((()=>{ne.value=e||[],Y.handlerInitSearchItem(ne.value)}))}()}),{immediate:!0,deep:!0}),i((()=>G.quickSearchListObj),(e=>{e&&Object.keys(e).length?function(){let e=[],{displayCategoryList:l=[]}=G.quickSearchListObj;l&&l.length?(l.forEach((l=>{"未分类"!==l&&e.push({disabled:!0,selected:!1,value:l})})),ce.value=e):ce.value=[]}():ce.value=[]}),{immediate:!0,deep:!0}),i((()=>ne),(()=>{const e=me()||[];W("filterCountChange",e.length),W("getParam",e)}),{deep:!0}),U({openSaveToCalss:function(){let e=me();e&&(e.length>0?ie.value=!0:K.warning("请设置搜索条件"))},clearData:Ce,onSave:function(){let e=me()||[];return pe(),W("onSave",e),ne.value}}),(l,a)=>(n(),o("div",null,[u("div",{class:s(["quick-search-block",{"quick-search-table":"editTable"===e.source}])},[(n(!0),o(c,null,r(d(ne),(l=>(n(),o("div",{class:s(["quick-item",{"quick-block":l._isBlock}]),key:l.sid||l.columnName},[u("div",V,[v(" title "),u("div",{class:s(["quick-item-title",{"quick-item-title-default":"editTable"!==e.source}])},[u("span",null,f(d(fe)(l,"title"))+"  ",1)],2),v(" content "),u("div",{class:s(["quick-item-col",{"quick-item-col-default":"editTable"!==e.source}])},[v(" 直接渲染组件 "),l.isRender?(n(),m(R,{key:0,cfg:l,modelValue:l.value,"onUpdate:modelValue":e=>l.value=e},null,8,["cfg","modelValue","onUpdate:modelValue"])):v("v-if",!0)],2)])],2)))),128))],2),v(" 保存到分类的弹窗 "),p(d(S),{show:d(ie),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:he,onNegativeClick:ye,class:"classification-modal-block"},{default:h((()=>[p(d(x),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":h((()=>[u("div",z,[p(d(q),{component:d(L),size:"24",onClick:ye},null,8,["component"])])])),footer:h((()=>[u("div",M,[p(d(_),{onClick:ye},{default:h((()=>[g("取消")])),_:1}),p(d(_),{type:"info",onClick:he},{default:h((()=>[g("确认")])),_:1})])])),default:h((()=>[u("div",B,[p(d(T),{ref_key:"formRef",ref:ae,"label-placement":"left",rules:J,model:te.value},{default:h((()=>[p(d(j),{label:"筛选集名称",path:"classname"},{default:h((()=>[p(d(w),{value:te.value.classname,"onUpdate:value":a[0]||(a[0]=e=>te.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),u("div",D,[F,(n(!0),o(c,null,r(d(ce),((e,l)=>(n(),o("div",{class:s(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(ce.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(n(),o("div",P,[u("span",null,f(e.value),1)])):(n(),m(d(w),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),p(d(q),{component:d(L),class:"anticon-close",size:"20",onClick:a=>be(l,e)},null,8,["component","onClick"])],42,N)))),128)),d(ve)?v("v-if",!0):(n(),o(c,{key:0},[k(p(d(_),{dashed:"",icon:"plus",class:"ant-btn",onClick:ge},{default:h((()=>[p(d(q),{component:d(A),size:"20"},null,8,["component"]),g("添加分类 ")])),_:1},512),[[b,!d(re)]]),k(p(d(w),{style:{width:"100px"},class:"edit-tag",value:d(de),"onUpdate:value":a[1]||(a[1]=e=>y(de)?de.value=e:de=e),valueModifiers:{trim:!0},onBlur:ke,maxLength:10},null,8,["value"]),[[b,d(re)]])],64))])])])),_:1})])),_:1},8,["show"])]))}}),[["__file","QuickSearch.vue"]]);export{W as default};