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,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,50 +101,12 @@ 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;
@@ -194,26 +126,15 @@ export declare type ILabelItemListType = {
194
126
  typeId: string;
195
127
  typeName: string;
196
128
  };
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
129
  export declare type IClassifyListType = {
209
- classifyId: string;
210
130
  displayCategory: string;
211
131
  isDefault: boolean;
212
132
  isEdit: boolean;
213
- isPublic: string;
214
133
  isShow: boolean;
215
134
  name: string;
216
135
  sid: string;
136
+ isPublic?: string;
137
+ classifyId?: string;
217
138
  conObj?: any;
218
139
  digital?: number;
219
140
  checked?: boolean;
@@ -246,70 +167,12 @@ export declare type ITreeDataType = {
246
167
  open?: boolean;
247
168
  selected?: boolean;
248
169
  };
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
170
  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;
294
- };
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;
171
+ conditionList?: IClassifyListType[];
172
+ displayCategoryList?: string[];
173
+ tabConditionList?: any;
174
+ countTabCondition?: string;
175
+ settingId?: string;
313
176
  };
314
177
  export declare type IbtnType = {
315
178
  buttonType: string;
@@ -368,9 +231,6 @@ export declare type IparamsType = Record<'p_name' | 'p_value', string>;
368
231
  export declare type IsettingsType = {
369
232
  hideQuickSearch: number;
370
233
  };
371
- export declare type InjectisShowResetButton = {
372
- from: '';
373
- };
374
234
  export declare type IeditTableWrapperItem = {
375
235
  options?: IeditTableWrapperDetail;
376
236
  };
@@ -378,28 +238,6 @@ export declare type IeditTableWrapperDetail = {
378
238
  isButtonFolding?: boolean;
379
239
  extendParams?: any;
380
240
  };
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
241
  export declare type ICheckboxType = Record<'label' | 'value', string>;
404
242
  export declare type IApiServerType = {
405
243
  name: string;
@@ -471,3 +309,9 @@ export declare type IFormStateType = {
471
309
  displayCategory: string;
472
310
  filterConditions: Record<'condition' | 'key' | 'presetVal' | 'value', string>[];
473
311
  };
312
+ export declare type ISearchParamsType = {
313
+ field_key: string;
314
+ con: string;
315
+ value: any;
316
+ unit: string | null;
317
+ };
@@ -0,0 +1,18 @@
1
+ import { SFCWithInstall } from '../../../es/shared/types';
2
+ declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
3
+ attrs: {
4
+ [x: string]: unknown;
5
+ };
6
+ emits: (event: "update:formattedValue", ...args: any[]) => void;
7
+ timePickerRef: import("vue").Ref<null>;
8
+ __formattedValue: import("vue").Ref<any>;
9
+ keyupValue: import("vue").Ref<string>;
10
+ formatRef: import("vue").ComputedRef<string>;
11
+ updateFormattedValue: (value: any) => void;
12
+ onBlur: () => void;
13
+ onKeyUp: (event: import("../../../es/shared/types").AnyObject) => any;
14
+ NTimePicker: any;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formattedValue"[], "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
16
+ "onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
17
+ }, {}>>;
18
+ 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,18 @@
1
+ import { AnyObject } from '../../../../es/shared/types';
2
+ declare const _default: import("vue").DefineComponent<{}, {
3
+ attrs: {
4
+ [x: string]: unknown;
5
+ };
6
+ emits: (event: "update:formattedValue", ...args: any[]) => void;
7
+ timePickerRef: import("vue").Ref<null>;
8
+ __formattedValue: import("vue").Ref<any>;
9
+ keyupValue: import("vue").Ref<string>;
10
+ formatRef: import("vue").ComputedRef<string>;
11
+ updateFormattedValue: (value: any) => void;
12
+ onBlur: () => void;
13
+ onKeyUp: (event: AnyObject) => any;
14
+ NTimePicker: any;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formattedValue"[], "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
16
+ "onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
17
+ }, {}>;
18
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as t,ref as u,computed as l,watch as a,openBlock as r,createBlock as o,unref as i,mergeProps as n,createSlots as v,renderList as m,withCtx as f,renderSlot as d}from"vue";import{NTimePicker as s}from"naive-ui";import{parse as c,isValid as p,format as _}from"date-fns";import k from"../../../_virtual/plugin-vue_export-helper.js";var P=k(e({__name:"TimePicker",emits:["update:formattedValue"],setup(e,{expose:k,emit:P}){const $=t(),b=u(null),x=u(),y=u(""),V=l((()=>$.format?$.format:"HH:mm:ss"));function g(e){P("update:formattedValue",e)}function H(){const e=c(y.value,V.value.replace(/:/,""),new Date);p(e)&&(x.value=_(e,V.value),g(x.value))}function T(e){var t,u;const{keyCode:l=0}=e;if(13==l)return null==(t=b.value)?void 0:t.blur();y.value=(null==(u=e.target)?void 0:u.value)||""}return a((()=>$["formatted-value"]),(e=>{x.value=e}),{immediate:!0}),k({$timePicker:b,focus:()=>{var e,t;return null==(t=null==(e=b.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=b.value)?void 0:e.blur)?void 0:t.call(e)}}),(e,t)=>(r(),o(i(s),n({ref_key:"timePickerRef",ref:b},e.$attrs,{"formatted-value":x.value,"onUpdate:formattedValue":g,onBlur:H,onKeyup:T}),v({_:2},[m(e.$slots,((t,u)=>({name:u,fn:f((()=>[d(e.$slots,u)]))})))]),1040,["formatted-value"]))}}),[["__file","TimePicker.vue"]]);export{P as default};
@@ -0,0 +1 @@
1
+ export * from './useTheme';
@@ -0,0 +1 @@
1
+ export{useTheme}from"./useTheme.js";
@@ -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,65 +1,65 @@
1
1
  {
2
- "name": "cnhis-design-vue",
3
- "version": "3.1.41-release.6",
4
- "license": "ISC",
5
- "module": "./es/components/index.js",
6
- "main": "./es/components/index.js",
7
- "types": "./es/components/index.d.ts",
8
- "sideEffects": [
9
- "es/components/**/style/*",
10
- "es/components/*(.css,.less)"
11
- ],
12
- "files": [
13
- "es",
14
- "README.md"
15
- ],
16
- "peerDependencies": {
17
- "naive-ui": "^2.30.0",
18
- "vue": "^3.2.0",
19
- "vxe-table": "^4.2.5"
20
- },
21
- "dependencies": {
22
- "@vicons/ionicons5": "^0.12.0",
23
- "lodash-es": "^4.17.21",
24
- "moment": "^2.29.1",
25
- "video.js": "^7.19.2",
26
- "videojs-contrib-hls": "^5.15.0",
27
- "viewerjs": "^1.10.5",
28
- "xe-utils": "^3.5.4",
29
- "@formily/core": "2.1.9",
30
- "@formily/path": "2.1.9",
31
- "@formily/reactive": "2.1.9",
32
- "@formily/vue": "2.1.9",
33
- "@vueuse/core": "^8.6.0",
34
- "@vueuse/shared": "^8.6.0",
35
- "@wangeditor/editor": "^5.1.1",
36
- "@wangeditor/editor-for-vue": "^5.1.11",
37
- "axios": "^0.27.2",
38
- "bpmn-js": "^9.2.2",
39
- "bpmnlint-utils": "^1.0.2",
40
- "date-fns": "^2.29.1",
41
- "diagram-js": "^8.7.1",
42
- "ids": "^1.0.0",
43
- "inherits": "^2.0.4",
44
- "lodash": "^4.17.21",
45
- "lodash-unified": "^1.0.2",
46
- "min-dash": "^3.8.1",
47
- "min-dom": "^3.2.1",
48
- "naive-ui": "^2.30.0",
49
- "sortablejs": "^1.15.0",
50
- "spark-md5": "^3.0.2",
51
- "tiny-svg": "^2.2.4",
52
- "v-viewer": "^3.0.10",
53
- "vue": "^3.2.0",
54
- "vue-simple-uploader": "^1.0.0-beta.5"
55
- },
56
- "browserslist": [
57
- "defaults",
58
- "not ie < 8",
59
- "last 2 versions",
60
- "> 1%",
61
- "iOS 7",
62
- "last 3 iOS versions"
63
- ],
64
- "gitHead": "a8f7d7cdca3113620c2a7b0dbaf062673dfc51cc"
65
- }
2
+ "name": "cnhis-design-vue",
3
+ "version": "3.1.42-beta.0",
4
+ "license": "ISC",
5
+ "module": "./es/components/index.js",
6
+ "main": "./es/components/index.js",
7
+ "types": "./es/components/index.d.ts",
8
+ "sideEffects": [
9
+ "es/components/**/style/*",
10
+ "es/components/*(.css,.less)"
11
+ ],
12
+ "files": [
13
+ "es",
14
+ "README.md"
15
+ ],
16
+ "peerDependencies": {
17
+ "naive-ui": "^2.30.0",
18
+ "vue": "^3.2.0",
19
+ "vxe-table": "^4.2.5"
20
+ },
21
+ "dependencies": {
22
+ "@formily/core": "2.1.9",
23
+ "@formily/path": "2.1.9",
24
+ "@formily/reactive": "2.1.9",
25
+ "@formily/vue": "2.1.9",
26
+ "@vicons/ionicons5": "^0.12.0",
27
+ "@vueuse/core": "^8.6.0",
28
+ "@vueuse/shared": "^8.6.0",
29
+ "@wangeditor/editor": "^5.1.1",
30
+ "@wangeditor/editor-for-vue": "^5.1.11",
31
+ "axios": "^0.27.2",
32
+ "bpmn-js": "^9.2.2",
33
+ "bpmnlint-utils": "^1.0.2",
34
+ "date-fns": "^2.29.1",
35
+ "diagram-js": "^8.7.1",
36
+ "ids": "^1.0.0",
37
+ "inherits": "^2.0.4",
38
+ "lodash": "^4.17.21",
39
+ "lodash-es": "^4.17.21",
40
+ "lodash-unified": "^1.0.2",
41
+ "min-dash": "^3.8.1",
42
+ "min-dom": "^3.2.1",
43
+ "moment": "^2.29.1",
44
+ "naive-ui": "^2.30.0",
45
+ "sortablejs": "^1.15.0",
46
+ "spark-md5": "^3.0.2",
47
+ "tiny-svg": "^2.2.4",
48
+ "v-viewer": "^3.0.10",
49
+ "video.js": "^7.19.2",
50
+ "videojs-contrib-hls": "^5.15.0",
51
+ "viewerjs": "^1.10.5",
52
+ "vue": "^3.2.0",
53
+ "vue-simple-uploader": "^1.0.0-beta.5",
54
+ "xe-utils": "^3.5.4"
55
+ },
56
+ "browserslist": [
57
+ "defaults",
58
+ "not ie < 8",
59
+ "last 2 versions",
60
+ "> 1%",
61
+ "iOS 7",
62
+ "last 3 iOS versions"
63
+ ],
64
+ "gitHead": "25a3ef21bd2f21d981d76f64955822c2f202a601"
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,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};