cnhis-design-vue 3.2.7-beta.3 → 3.2.7-beta.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +2 -0
  3. package/es/components/base-search/src/index.vue.d.ts +2 -0
  4. package/es/components/button-print/index.d.ts +27 -0
  5. package/es/components/button-print/src/ButtonPrint.vue.d.ts +27 -0
  6. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  7. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -0
  8. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  9. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
  10. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  11. package/es/components/button-print/style/index.css +1 -1
  12. package/es/components/callback/src/components/render/popupMaps.d.ts +27 -0
  13. package/es/components/classification/index.d.ts +60 -5
  14. package/es/components/classification/src/components/search-filter/index.vue.d.ts +60 -5
  15. package/es/components/classification/src/components/set-classification/index.vue.d.ts +60 -5
  16. package/es/components/classification/src/index.vue.d.ts +60 -5
  17. package/es/components/date-picker/index.d.ts +13 -0
  18. package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
  19. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  20. package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
  21. package/es/components/fabric-chart/src/constants/index.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
  24. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
  26. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
  30. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
  32. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
  36. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  37. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
  38. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
  39. package/es/components/fabric-chart/src/interface.d.ts +11 -1
  40. package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
  41. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  42. package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
  43. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
  44. package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
  45. package/es/components/form-config/index.d.ts +40 -3
  46. package/es/components/form-config/src/FormConfig.vue.d.ts +40 -3
  47. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +14 -0
  48. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +23 -3
  49. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  50. package/es/components/form-render/index.d.ts +14 -0
  51. package/es/components/form-render/src/FormRender.vue.d.ts +14 -0
  52. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  53. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +14 -0
  54. package/es/components/form-render/src/components/renderer/formItem.d.ts +9 -0
  55. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  56. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
  57. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
  58. package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -1
  59. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  60. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
  61. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  62. package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
  63. package/es/components/form-render/src/types/index.d.ts +2 -1
  64. package/es/components/form-render/src/utils/business.js +1 -1
  65. package/es/components/form-render/src/utils/schema.d.ts +1 -1
  66. package/es/components/form-render/src/utils/schema.js +1 -1
  67. package/es/components/iho-chat/index.d.ts +300 -75
  68. package/es/components/iho-chat/src/Index.vue.d.ts +300 -75
  69. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  70. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +35 -13
  71. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  72. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +41 -14
  73. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  74. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +50 -14
  75. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  76. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +24 -4
  77. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  78. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
  79. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  80. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +60 -11
  81. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  82. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  83. package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
  84. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  85. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +62 -24
  86. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  87. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  88. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +1 -0
  89. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  90. package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -2
  91. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  92. package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
  93. package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
  94. package/es/components/iho-chat/src/hooks/useSearchUserList.d.ts +11 -0
  95. package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -0
  96. package/es/components/iho-chat/src/hooks/useSession.js +1 -1
  97. package/es/components/iho-chat/src/hooks/useState.js +1 -1
  98. package/es/components/iho-chat/src/hooks/useVideo.d.ts +11 -0
  99. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  100. package/es/components/iho-chat/src/types/index.d.ts +0 -1
  101. package/es/components/iho-chat/src/utils/index.js +1 -1
  102. package/es/components/iho-chat/style/index.css +1 -1
  103. package/es/components/iho-table/index.d.ts +13 -0
  104. package/es/components/iho-table/src/IhoTable.vue.d.ts +13 -0
  105. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  106. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
  107. package/es/components/iho-table/src/plugins/headerPlugin/index.d.ts +1 -0
  108. package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -0
  109. package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.d.ts +13 -0
  110. package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.js +1 -0
  111. package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue2.js +1 -0
  112. package/es/components/iho-table/src/plugins/index.js +1 -1
  113. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
  114. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
  115. package/es/components/iho-table/src/types/index.d.ts +3 -0
  116. package/es/components/iho-table/src/utils/index.d.ts +0 -1
  117. package/es/components/iho-table/src/utils/index.js +1 -1
  118. package/es/components/index.css +1 -1
  119. package/es/components/info-header/index.d.ts +34 -0
  120. package/es/components/info-header/src/InfoHeader.vue.d.ts +34 -0
  121. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
  122. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -1
  123. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
  124. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +16 -0
  125. package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
  126. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +14 -0
  127. package/es/components/quick-search/src/index.vue2.js +1 -1
  128. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  129. package/es/components/shortcut-setter/index.d.ts +16 -1
  130. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +16 -1
  131. package/es/components/steps-wheel/index.d.ts +1 -1
  132. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
  133. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
  134. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
  135. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
  136. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
  137. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +47 -5
  138. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
  139. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
  140. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +37 -19
  141. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  142. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +47 -5
  143. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  144. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +47 -5
  145. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
  146. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
  147. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
  148. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
  149. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +33 -18
  150. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  151. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +13 -0
  152. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  153. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +69 -4
  154. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +69 -4
  155. package/es/components/table-filter/src/tool/transformData.js +1 -1
  156. package/es/components/table-filter/src/types/index.d.ts +3 -0
  157. package/es/components/time-line/index.d.ts +4 -4
  158. package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
  159. package/es/components/time-line/src/TimeLine.vue2.js +1 -1
  160. package/es/components/time-picker/index.d.ts +20 -2
  161. package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
  162. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  163. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  164. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  165. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  166. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  167. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  168. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  169. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  170. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  171. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  172. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  173. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  174. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  175. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  176. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  177. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  178. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  179. package/es/shared/assets/img/failure.png.js +1 -1
  180. package/es/shared/assets/img/no-permission.png.js +1 -1
  181. package/es/shared/assets/img/nodata.png.js +1 -1
  182. package/es/shared/assets/img/notfound.png.js +1 -1
  183. package/es/shared/assets/img/qr.png.js +1 -1
  184. package/es/shared/assets/img/success.png.js +1 -1
  185. package/es/shared/assets/img/table_style_2.png.js +1 -1
  186. package/es/shared/assets/img/video.png.js +1 -1
  187. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  188. package/es/shared/assets/img/xb_big.png.js +1 -1
  189. package/es/shared/assets/img/xb_small.png.js +1 -1
  190. package/es/shared/package.json.js +1 -1
  191. package/es/shared/utils/business.js +1 -1
  192. package/package.json +2 -2
  193. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  194. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  195. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  196. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  197. package/es/components/iho-table/src/plugins/headerPlugin.d.ts +0 -1
  198. package/es/components/iho-table/src/plugins/headerPlugin.js +0 -1
  199. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  200. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  201. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1,10 +1,12 @@
1
+ import { PropType } from 'vue';
2
+ import { AnyObject } from '../../../../../../shared/types';
1
3
  declare const _default: import("vue").DefineComponent<{
2
4
  paramCfg: {
3
5
  type: ObjectConstructor;
4
6
  default: null;
5
7
  };
6
8
  modelValue: {
7
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
9
+ type: PropType<AnyObject[]>;
8
10
  default: null;
9
11
  };
10
12
  }, {
@@ -15,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
15
17
  default: null;
16
18
  };
17
19
  modelValue: {
18
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
20
+ type: PropType<AnyObject[]>;
19
21
  default: null;
20
22
  };
21
23
  }>> & {
@@ -23,9 +25,10 @@ declare const _default: import("vue").DefineComponent<{
23
25
  }>>;
24
26
  getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
25
27
  emit: (event: "update:modelValue", ...args: any[]) => void;
28
+ selectDynamicRef: any;
26
29
  isLoading: import("vue").Ref<boolean>;
27
- filterApiConfig: import("../../../../../../shared/types").AnyObject;
28
- classifyFilterList: import("vue").Ref<import("../../../../../../shared/types").AnyObject[]>;
30
+ filterApiConfig: AnyObject;
31
+ classifyFilterList: import("vue").Ref<AnyObject[]>;
29
32
  totalPage: import("vue").Ref<number>;
30
33
  menuProps: {
31
34
  class: string;
@@ -38,7 +41,8 @@ declare const _default: import("vue").DefineComponent<{
38
41
  isMultiple: import("vue").ComputedRef<boolean>;
39
42
  dynamicOptionInfos: import("vue").ComputedRef<any>;
40
43
  isLastPage: import("vue").ComputedRef<boolean>;
41
- valueCp: import("vue").ComputedRef<string | number | any[]>;
44
+ originList: import("vue").ComputedRef<any[]>;
45
+ valueCp: import("vue").ComputedRef<string | any[]>;
42
46
  isInitRequest: import("vue").ComputedRef<boolean>;
43
47
  setOptionActive: (selectIds: string[]) => void;
44
48
  handleUpdateSelect: (value: string[] | null) => void;
@@ -54,18 +58,23 @@ declare const _default: import("vue").DefineComponent<{
54
58
  [key: string]: any;
55
59
  }>;
56
60
  init: () => void;
61
+ saveDynamicBaseList: (selectValue: any[] | null) => void;
57
62
  NSelect: any;
58
63
  SelectDynamicOption: import("vue").DefineComponent<{
64
+ oldValue: {
65
+ type: PropType<AnyObject[]>;
66
+ default: () => never[];
67
+ };
59
68
  dynamicOptionInfo: {
60
- type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
69
+ type: PropType<AnyObject>;
61
70
  default: () => {};
62
71
  };
63
72
  fieldTitleList: {
64
- type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
73
+ type: PropType<AnyObject[]>;
65
74
  default: () => never[];
66
75
  };
67
76
  optionList: {
68
- type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
77
+ type: PropType<AnyObject[]>;
69
78
  default: () => never[];
70
79
  };
71
80
  isMultiple: {
@@ -91,16 +100,20 @@ declare const _default: import("vue").DefineComponent<{
91
100
  }, {
92
101
  selectMinWidth: number;
93
102
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
103
+ oldValue: {
104
+ type: PropType<AnyObject[]>;
105
+ default: () => never[];
106
+ };
94
107
  dynamicOptionInfo: {
95
- type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
108
+ type: PropType<AnyObject>;
96
109
  default: () => {};
97
110
  };
98
111
  fieldTitleList: {
99
- type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
112
+ type: PropType<AnyObject[]>;
100
113
  default: () => never[];
101
114
  };
102
115
  optionList: {
103
- type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
116
+ type: PropType<AnyObject[]>;
104
117
  default: () => never[];
105
118
  };
106
119
  isMultiple: {
@@ -179,16 +192,20 @@ declare const _default: import("vue").DefineComponent<{
179
192
  ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
180
193
  ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
181
194
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
195
+ oldValue: {
196
+ type: PropType<AnyObject[]>;
197
+ default: () => never[];
198
+ };
182
199
  dynamicOptionInfo: {
183
- type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
200
+ type: PropType<AnyObject>;
184
201
  default: () => {};
185
202
  };
186
203
  fieldTitleList: {
187
- type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
204
+ type: PropType<AnyObject[]>;
188
205
  default: () => never[];
189
206
  };
190
207
  optionList: {
191
- type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
208
+ type: PropType<AnyObject[]>;
192
209
  default: () => never[];
193
210
  };
194
211
  isMultiple: {
@@ -217,9 +234,10 @@ declare const _default: import("vue").DefineComponent<{
217
234
  }, {
218
235
  isMultiple: boolean;
219
236
  loading: boolean;
220
- dynamicOptionInfo: import("../../../../../../shared/types").AnyObject;
221
- fieldTitleList: import("../../../../../../shared/types").AnyObject[];
222
- optionList: import("../../../../../../shared/types").AnyObject[];
237
+ oldValue: AnyObject[];
238
+ dynamicOptionInfo: AnyObject;
239
+ fieldTitleList: AnyObject[];
240
+ optionList: AnyObject[];
223
241
  curPage: number;
224
242
  isLastPage: boolean;
225
243
  isShowWhole: boolean;
@@ -230,13 +248,13 @@ declare const _default: import("vue").DefineComponent<{
230
248
  default: null;
231
249
  };
232
250
  modelValue: {
233
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
251
+ type: PropType<AnyObject[]>;
234
252
  default: null;
235
253
  };
236
254
  }>> & {
237
255
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
238
256
  }, {
239
- modelValue: string | number | unknown[];
257
+ modelValue: AnyObject[];
240
258
  paramCfg: Record<string, any>;
241
259
  }>;
242
260
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,inject as l,computed as t,openBlock as n,createBlock as u,unref as o,isRef as i,withModifiers as r,withCtx as s,createVNode as c,h as d}from"vue";import{useMessage as v,NSelect as p,NTag as m}from"naive-ui";import{WidgetOptionEnums as f,WidgetValEnums as y}from"../../../types/enums.js";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{InjectionFilterApiConfig as V,InjectionClassifyFilterList as w}from"../../../constants/index.js";import{judgmentVariable as b}from"../../render-widget/helpers/setDefaultValue.js";import O from"../../render-widget/components/SelectDynamicOption/index.vue.js";import{isEqual as S}from"lodash-es";var k=e({__name:"SelectDynamic",props:{paramCfg:{type:Object,default:null},modelValue:{type:[Array,String,Number],default:null}},emits:["update:modelValue"],setup(e,{emit:k}){const L=e,P=v(),{getDynamicSelectData:j}=h(),C=a(!1),A=l(V),x=l(w),D=a(0),I={class:"select-dynamic-popover"},K=a(1),T=a(),E=a([]),U=a(),_=t((()=>{var e;return null==(e=L.paramCfg)?void 0:e.optionSetting})),M=t((()=>_.value===f.MULTIPLE)),N=t((()=>{const{dynamicOptionInfo:e={}}=L.paramCfg.optionInfo;return e})),$=t((()=>D.value>0&&K.value>=D.value)),F=t((()=>{var e;if(Array.isArray(L.modelValue)&&L.modelValue.length>0){const e=L.modelValue;if(H(e),!M.value&&1==e.length){const a=E.value.find((a=>a.value===e[0]));return JSON.stringify(a)}return E.value.filter((a=>e.includes(a.value)))}return H([]),null!=(e=L.modelValue)?e:null})),J=t((()=>{if(Object.keys(N.value).length>0){const{defaultParams:e=[]}=N.value;return!b(e)}return!0}));function H(e){E.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function W(e){var a;const{defaultValue:l}=L.paramCfg._rawData;(null==(a=null==l?void 0:l.linkageFieldKeys)?void 0:a.length)>0&&l.linkageFieldKeys.forEach((e=>{const a=x.value.find((a=>a.key===e));a&&a.value&&(a.value=a.presetVal=null)})),S(L.modelValue,e)||k("update:modelValue",e)}async function q(e){K.value=e,await z(U.value,K.value)}async function z(e,a){try{if(Object.keys(N.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:n,filterKeys:u,defaultParams:o=[],showKeys:i,valueKey:r}=N.value;let s={wordbookId:t,autograph:l,wordbookType:n,fieldKeys:u,page:a};u.length>0&&(s[u[0]]=e),C.value=!0;if(b(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=x.value.find((a=>a.key===e));a&&a.value&&a.value!==y.WHOLE&&(s[e]=a.value)}))}let c=await j(s,A);if(c){const{fieldList:e=[],rows:a=[],total:l=0}=c.map,t=a.map((e=>({...e,label:e[i[0]],value:e[r]})));return T.value=null!=e?e:[],E.value=null!=t?t:[],D.value=l,t}}}catch(e){P.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{C.value=!1}}const B=g((async e=>{await async function(e){U.value=e.trim(),K.value=1,await z(U.value,K.value)}(e)}),300);async function G(){Object.keys(N.value).length>0&&A&&await z("",K.value)}async function Q(){k("update:modelValue",null),await G()}function R(e){e&&G()}function X({option:e,handleClose:a}){if(M.value){const l=e.value;return d(m,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(L.modelValue)&&L.modelValue.length>0){const e=L.modelValue,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);k("update:modelValue",l.length>0?l:null)}}}},{default:()=>d("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return d("div",l.label)}return J.value&&G(),(e,a)=>(n(),u(o(p),{id:"select-dynamic-popover",style:{width:"200px"},value:o(F),"onUpdate:value":a[0]||(a[0]=e=>i(F)?F.value=e:null),remote:"",clearable:"",filterable:"",maxTagCount:"responsive",loading:C.value,multiple:o(M),menuProps:I,"render-tag":X,onSearch:o(B),onClear:Q,"onUpdate:show":R,onClick:a[1]||(a[1]=r((()=>{}),["stop"]))},{empty:s((()=>[c(O,{dynamicOptionInfo:o(N),fieldTitleList:T.value,optionList:E.value,isMultiple:o(M),curPage:K.value,isLastPage:o($),onUpdateSelect:W,onUpdatePage:q},null,8,["dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage"])])),_:1},8,["value","loading","multiple","onSearch"]))}});export{k as default};
1
+ import{defineComponent as e,ref as a,inject as l,computed as t,openBlock as u,createBlock as n,unref as o,isRef as i,withModifiers as r,withCtx as s,createVNode as v,h as c}from"vue";import{useMessage as d,NSelect as p,NTag as f}from"naive-ui";import{WidgetOptionEnums as m,WidgetValEnums as y}from"../../../types/enums.js";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{InjectionFilterApiConfig as V,InjectionClassifyFilterList as w}from"../../../constants/index.js";import{judgmentVariable as k}from"../../render-widget/helpers/setDefaultValue.js";import b from"../../render-widget/components/SelectDynamicOption/index.vue.js";import{uniqBy as L,isEqual as O}from"lodash-es";var C=e({__name:"SelectDynamic",props:{paramCfg:{type:Object,default:null},modelValue:{type:Array,default:null}},emits:["update:modelValue"],setup(e,{emit:C}){const S=e,A=d(),{getDynamicSelectData:j}=h(),P=a(null),D=a(!1),x=l(V),I=l(w),_=a(0),K={class:"select-dynamic-popover"},T=a(1),E=a(),U=a([]),M=a(),$=t((()=>{var e;return null==(e=S.paramCfg)?void 0:e.optionSetting})),B=t((()=>$.value===m.MULTIPLE)),F=t((()=>{const{dynamicOptionInfo:e={}}=S.paramCfg.optionInfo;return e})),J=t((()=>_.value>0&&T.value>=_.value)),N=t((()=>{let e=[];const a=I.value.find((e=>e.key===S.paramCfg.p_name));return a&&a.value&&(e=a.dynamicBaseList||[]),L([...e,...U.value],"value")})),H=t((()=>{var e;if(Array.isArray(S.modelValue)&&S.modelValue.length>0){const e=S.modelValue;if(W(e),!B.value&&1==e.length){const a=N.value.find((a=>a.value===e[0]));return JSON.stringify(a)}return N.value.filter((a=>e.includes(a.value)))}return W([]),null!=(e=S.modelValue)?e:null})),R=t((()=>{if(Object.keys(F.value).length>0){const{defaultParams:e=[]}=F.value;return!k(e)}return!0}));function W(e){U.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function q(e){var a;const{defaultValue:l}=S.paramCfg._rawData;(null==(a=null==l?void 0:l.linkageFieldKeys)?void 0:a.length)>0&&l.linkageFieldKeys.forEach((e=>{const a=I.value.find((a=>a.key===e));a&&a.value&&(a.value=a.presetVal=null)})),O(S.modelValue,e)||(C("update:modelValue",e),ae(e))}async function z(e){var a;T.value=e,null==(a=null==P?void 0:P.value)||a.focus(),await G(M.value,T.value)}async function G(e,a){try{if(Object.keys(F.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:u,filterKeys:n,defaultParams:o=[],showKeys:i,valueKey:r}=F.value;let s={wordbookId:t,autograph:l,wordbookType:u,fieldKeys:n,page:a};n.length>0&&(s[n[0]]=e),D.value=!0;if(k(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=I.value.find((a=>a.key===e));a&&a.value&&a.value!==y.WHOLE&&(s[e]=a.value)}))}let v=await j(s,x);if(v){const{fieldList:e=[],rows:a=[],total:l=0}=v.map,t=a.map((e=>({...e,label:e[i[0]],value:e[r]})));return E.value=null!=e?e:[],U.value=null!=t?t:[],_.value=l,t}}}catch(e){A.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{D.value=!1}}const Q=g((async e=>{await async function(e){M.value=e.trim(),T.value=1,await G(M.value,T.value)}(e)}),300);async function X(){Object.keys(F.value).length>0&&x&&await G("",T.value)}async function Y(){C("update:modelValue",null),ae(null),await X()}function Z(e){M.value="",e&&(T.value=1,X())}function ee({option:e,handleClose:a}){if(B.value){const l=e.value;return c(f,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(S.modelValue)&&S.modelValue.length>0){const e=S.modelValue,a=e.indexOf(l.value);a>-1&&(e.splice(a,1),C("update:modelValue",e.length>0?e:null),ae(e.length>0?e:null))}}},{default:()=>c("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return c("div",l.label)}function ae(e){let a=[];Array.isArray(e)&&e.length>0&&(B.value||1!=e.length||(a=N.value.filter((a=>a.value===e[0]))),a=N.value.filter((a=>e.includes(a.value))));const l=I.value.find((e=>e.key===S.paramCfg.p_name));l&&l.value&&(l.dynamicBaseList=a)}return R.value&&X(),(e,a)=>(u(),n(o(p),{id:"select-dynamic-popover",ref_key:"selectDynamicRef",ref:P,style:{width:"200px"},value:o(H),"onUpdate:value":a[0]||(a[0]=e=>i(H)?H.value=e:null),remote:"",clearable:"",filterable:"",maxTagCount:"responsive",loading:D.value,multiple:o(B),"menu-props":K,"render-tag":ee,onSearch:o(Q),onClear:Y,"onUpdate:show":Z,onClick:a[1]||(a[1]=r((()=>{}),["stop"]))},{empty:s((()=>[v(b,{oldValue:S.modelValue,dynamicOptionInfo:o(F),fieldTitleList:E.value,optionList:U.value,isMultiple:o(B),curPage:T.value,isLastPage:o(J),onUpdateSelect:q,onUpdatePage:z},null,8,["oldValue","dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage"])])),_:1},8,["value","loading","multiple","onSearch"]))}});export{C as default};
@@ -68,6 +68,10 @@ declare const Date: import("vue").DefineComponent<{
68
68
  allowedInvalidValue: {
69
69
  type: StringConstructor;
70
70
  };
71
+ to: {
72
+ type: import("vue").PropType<string | false | HTMLElement>;
73
+ default: string;
74
+ };
71
75
  }, {
72
76
  attrs: {
73
77
  [x: string]: unknown;
@@ -88,6 +92,10 @@ declare const Date: import("vue").DefineComponent<{
88
92
  allowedInvalidValue: {
89
93
  type: StringConstructor;
90
94
  };
95
+ to: {
96
+ type: import("vue").PropType<string | false | HTMLElement>;
97
+ default: string;
98
+ };
91
99
  }>> & {
92
100
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
93
101
  }>>;
@@ -124,10 +132,15 @@ declare const Date: import("vue").DefineComponent<{
124
132
  allowedInvalidValue: {
125
133
  type: StringConstructor;
126
134
  };
135
+ to: {
136
+ type: import("vue").PropType<string | false | HTMLElement>;
137
+ default: string;
138
+ };
127
139
  }>> & {
128
140
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
129
141
  }, {
130
142
  updateUnchangedValue: boolean;
143
+ to: string | false | HTMLElement;
131
144
  }>>;
132
145
  NSelect: any;
133
146
  WidgetValEnums: {
@@ -340,7 +353,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
340
353
  default: null;
341
354
  };
342
355
  modelValue: {
343
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
356
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
344
357
  default: null;
345
358
  };
346
359
  }, {
@@ -351,7 +364,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
351
364
  default: null;
352
365
  };
353
366
  modelValue: {
354
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
367
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
355
368
  default: null;
356
369
  };
357
370
  }>> & {
@@ -359,6 +372,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
359
372
  }>>;
360
373
  getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
361
374
  emit: (event: "update:modelValue", ...args: any[]) => void;
375
+ selectDynamicRef: any;
362
376
  isLoading: import("vue").Ref<boolean>;
363
377
  filterApiConfig: import("../../../../../../shared/types").AnyObject;
364
378
  classifyFilterList: import("vue").Ref<import("../../../../../../shared/types").AnyObject[]>;
@@ -374,7 +388,8 @@ declare const SelectDynamic: import("vue").DefineComponent<{
374
388
  isMultiple: import("vue").ComputedRef<boolean>;
375
389
  dynamicOptionInfos: import("vue").ComputedRef<any>;
376
390
  isLastPage: import("vue").ComputedRef<boolean>;
377
- valueCp: import("vue").ComputedRef<string | number | any[]>;
391
+ originList: import("vue").ComputedRef<any[]>;
392
+ valueCp: import("vue").ComputedRef<string | any[]>;
378
393
  isInitRequest: import("vue").ComputedRef<boolean>;
379
394
  setOptionActive: (selectIds: string[]) => void;
380
395
  handleUpdateSelect: (value: string[] | null) => void;
@@ -390,8 +405,13 @@ declare const SelectDynamic: import("vue").DefineComponent<{
390
405
  [key: string]: any;
391
406
  }>;
392
407
  init: () => void;
408
+ saveDynamicBaseList: (selectValue: any[] | null) => void;
393
409
  NSelect: any;
394
410
  SelectDynamicOption: import("vue").DefineComponent<{
411
+ oldValue: {
412
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
413
+ default: () => never[];
414
+ };
395
415
  dynamicOptionInfo: {
396
416
  type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
397
417
  default: () => {};
@@ -427,6 +447,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
427
447
  }, {
428
448
  selectMinWidth: number;
429
449
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
450
+ oldValue: {
451
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
452
+ default: () => never[];
453
+ };
430
454
  dynamicOptionInfo: {
431
455
  type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
432
456
  default: () => {};
@@ -515,6 +539,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
515
539
  ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
516
540
  ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
517
541
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
542
+ oldValue: {
543
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
544
+ default: () => never[];
545
+ };
518
546
  dynamicOptionInfo: {
519
547
  type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
520
548
  default: () => {};
@@ -553,6 +581,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
553
581
  }, {
554
582
  isMultiple: boolean;
555
583
  loading: boolean;
584
+ oldValue: import("../../../../../../shared/types").AnyObject[];
556
585
  dynamicOptionInfo: import("../../../../../../shared/types").AnyObject;
557
586
  fieldTitleList: import("../../../../../../shared/types").AnyObject[];
558
587
  optionList: import("../../../../../../shared/types").AnyObject[];
@@ -566,13 +595,13 @@ declare const SelectDynamic: import("vue").DefineComponent<{
566
595
  default: null;
567
596
  };
568
597
  modelValue: {
569
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
598
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
570
599
  default: null;
571
600
  };
572
601
  }>> & {
573
602
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
574
603
  }, {
575
- modelValue: string | number | unknown[];
604
+ modelValue: import("../../../../../../shared/types").AnyObject[];
576
605
  paramCfg: Record<string, any>;
577
606
  }>;
578
607
  declare const InputNumberGroup: import("vue").DefineComponent<{
@@ -701,6 +730,10 @@ declare const DateRange: import("vue").DefineComponent<{
701
730
  allowedInvalidValue: {
702
731
  type: StringConstructor;
703
732
  };
733
+ to: {
734
+ type: import("vue").PropType<string | false | HTMLElement>;
735
+ default: string;
736
+ };
704
737
  }, {
705
738
  attrs: {
706
739
  [x: string]: unknown;
@@ -721,6 +754,10 @@ declare const DateRange: import("vue").DefineComponent<{
721
754
  allowedInvalidValue: {
722
755
  type: StringConstructor;
723
756
  };
757
+ to: {
758
+ type: import("vue").PropType<string | false | HTMLElement>;
759
+ default: string;
760
+ };
724
761
  }>> & {
725
762
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
726
763
  }>>;
@@ -757,10 +794,15 @@ declare const DateRange: import("vue").DefineComponent<{
757
794
  allowedInvalidValue: {
758
795
  type: StringConstructor;
759
796
  };
797
+ to: {
798
+ type: import("vue").PropType<string | false | HTMLElement>;
799
+ default: string;
800
+ };
760
801
  }>> & {
761
802
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
762
803
  }, {
763
804
  updateUnchangedValue: boolean;
805
+ to: string | false | HTMLElement;
764
806
  }>>;
765
807
  WidgetValEnums: {
766
808
  CUSTOM: string;
@@ -1 +1 @@
1
- import{reactive as a,computed as t,toRaw as e,unref as n}from"vue";import{ConditionEnums as l,WidgetTypeEnums as o,WidgetOptionEnums as r}from"../../../types/enums.js";import{transformConditions as i,transformRawConditions as u,transformDataToFront as s}from"../../../tool/transformData.js";const c=(c,p,d)=>{const m=a({params:[]}),v=t((()=>m.params.map((({p_name:a,title:t})=>({label:t||a,value:a}))))),y=a=>m.params.find((t=>t.p_name===a)),C=(a,t)=>{const e=c.value[a];e&&(e.condition=t,(a=>{var t,e,n,l;const o=y(a.key);(null==(e=null==(t=o._rawData)?void 0:t.accurateSearch)?void 0:e.switchEnable)&&(a.isAccurateSearch=!0,a.accurateSearchKey=null==(l=null==(n=o._rawData)?void 0:n.accurateSearch)?void 0:l.searchKey)})(e),(a=>{const t=y(a.key);a.value=(null==t?void 0:t.type)!==o.SELECT&&(null==t?void 0:t.type)!==o.SELECTDYNAMIC||(null==t?void 0:t.optionSetting)!==r.MULTIPLE?null:[],a.presetVal=a.timeVal=null})(e))};return{State:m,paramOptions:v,addFilterCondition:()=>{c.value.push({key:null,condition:null,value:null,presetVal:null})},delFilterCondition:a=>{c.value.splice(a,1)},updateKey:(a,t)=>{const e=c.value[a];e&&(e.key=t,C(a,l.EQUAL))},updateCondition:C,getParamCfg:y,initFilterConditions:async(a,t)=>{const n=await(async a=>{try{return s(d,p)}catch(a){return[]}})();m.params=n,c.value=i(t,e(m.params))},getRawFilterConditions:()=>u(n(c))}};export{c as useFilterConditions};
1
+ import{reactive as a,computed as t,toRaw as e,unref as n}from"vue";import{ConditionEnums as l,WidgetTypeEnums as i,WidgetOptionEnums as o}from"../../../types/enums.js";import{transformConditions as r,transformRawConditions as u,transformDataToFront as s}from"../../../tool/transformData.js";const c=(c,p,d)=>{const m=a({params:[]}),v=t((()=>m.params.map((({p_name:a,title:t})=>({label:t||a,value:a}))))),y=a=>m.params.find((t=>t.p_name===a)),C=(a,t)=>{const e=c.value[a];e&&(e.condition=t,(a=>{var t,e,n,l;const i=y(a.key);(null==(e=null==(t=i._rawData)?void 0:t.accurateSearch)?void 0:e.switchEnable)&&(a.isAccurateSearch=!0,a.accurateSearchKey=null==(l=null==(n=i._rawData)?void 0:n.accurateSearch)?void 0:l.searchKey)})(e),(a=>{const t=y(a.key);a.value=(null==t?void 0:t.type)!==i.SELECT&&(null==t?void 0:t.type)!==i.SELECTDYNAMIC||(null==t?void 0:t.optionSetting)!==o.MULTIPLE?null:[],a.presetVal=a.timeVal=null})(e))};return{State:m,paramOptions:v,addFilterCondition:()=>{c.value.push({key:null,condition:null,value:null,presetVal:null,dynamicBaseList:[]})},delFilterCondition:a=>{c.value.splice(a,1)},updateKey:(a,t)=>{const e=c.value[a];e&&(e.key=t,C(a,l.EQUAL))},updateCondition:C,getParamCfg:y,initFilterConditions:async(a,t)=>{const n=await(async a=>{try{return s(d,p)}catch(a){return[]}})();m.params=n,c.value=r(t,e(m.params))},getRawFilterConditions:()=>u(n(c))}};export{c as useFilterConditions};
@@ -235,6 +235,10 @@ declare const _default: import("vue").DefineComponent<{
235
235
  allowedInvalidValue: {
236
236
  type: StringConstructor;
237
237
  };
238
+ to: {
239
+ type: PropType<string | false | HTMLElement>;
240
+ default: string;
241
+ };
238
242
  }, {
239
243
  attrs: {
240
244
  [x: string]: unknown;
@@ -255,6 +259,10 @@ declare const _default: import("vue").DefineComponent<{
255
259
  allowedInvalidValue: {
256
260
  type: StringConstructor;
257
261
  };
262
+ to: {
263
+ type: PropType<string | false | HTMLElement>;
264
+ default: string;
265
+ };
258
266
  }>> & {
259
267
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
260
268
  }>>;
@@ -291,10 +299,15 @@ declare const _default: import("vue").DefineComponent<{
291
299
  allowedInvalidValue: {
292
300
  type: StringConstructor;
293
301
  };
302
+ to: {
303
+ type: PropType<string | false | HTMLElement>;
304
+ default: string;
305
+ };
294
306
  }>> & {
295
307
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
296
308
  }, {
297
309
  updateUnchangedValue: boolean;
310
+ to: string | false | HTMLElement;
298
311
  }>>;
299
312
  NSelect: any;
300
313
  WidgetValEnums: {
@@ -507,7 +520,7 @@ declare const _default: import("vue").DefineComponent<{
507
520
  default: null;
508
521
  };
509
522
  modelValue: {
510
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
523
+ type: PropType<import("../../../../../shared/types").AnyObject[]>;
511
524
  default: null;
512
525
  };
513
526
  }, {
@@ -518,7 +531,7 @@ declare const _default: import("vue").DefineComponent<{
518
531
  default: null;
519
532
  };
520
533
  modelValue: {
521
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
534
+ type: PropType<import("../../../../../shared/types").AnyObject[]>;
522
535
  default: null;
523
536
  };
524
537
  }>> & {
@@ -526,6 +539,7 @@ declare const _default: import("vue").DefineComponent<{
526
539
  }>>;
527
540
  getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
528
541
  emit: (event: "update:modelValue", ...args: any[]) => void;
542
+ selectDynamicRef: any;
529
543
  isLoading: import("vue").Ref<boolean>;
530
544
  filterApiConfig: import("../../../../../shared/types").AnyObject;
531
545
  classifyFilterList: import("vue").Ref<import("../../../../../shared/types").AnyObject[]>;
@@ -541,7 +555,8 @@ declare const _default: import("vue").DefineComponent<{
541
555
  isMultiple: import("vue").ComputedRef<boolean>;
542
556
  dynamicOptionInfos: import("vue").ComputedRef<any>;
543
557
  isLastPage: import("vue").ComputedRef<boolean>;
544
- valueCp: import("vue").ComputedRef<string | number | any[]>;
558
+ originList: import("vue").ComputedRef<any[]>;
559
+ valueCp: import("vue").ComputedRef<string | any[]>;
545
560
  isInitRequest: import("vue").ComputedRef<boolean>;
546
561
  setOptionActive: (selectIds: string[]) => void;
547
562
  handleUpdateSelect: (value: string[] | null) => void;
@@ -557,8 +572,13 @@ declare const _default: import("vue").DefineComponent<{
557
572
  [key: string]: any;
558
573
  }>;
559
574
  init: () => void;
575
+ saveDynamicBaseList: (selectValue: any[] | null) => void;
560
576
  NSelect: any;
561
577
  SelectDynamicOption: import("vue").DefineComponent<{
578
+ oldValue: {
579
+ type: PropType<import("../../../../../shared/types").AnyObject[]>;
580
+ default: () => never[];
581
+ };
562
582
  dynamicOptionInfo: {
563
583
  type: PropType<import("../../../../../shared/types").AnyObject>;
564
584
  default: () => {};
@@ -594,6 +614,10 @@ declare const _default: import("vue").DefineComponent<{
594
614
  }, {
595
615
  selectMinWidth: number;
596
616
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
617
+ oldValue: {
618
+ type: PropType<import("../../../../../shared/types").AnyObject[]>;
619
+ default: () => never[];
620
+ };
597
621
  dynamicOptionInfo: {
598
622
  type: PropType<import("../../../../../shared/types").AnyObject>;
599
623
  default: () => {};
@@ -682,6 +706,10 @@ declare const _default: import("vue").DefineComponent<{
682
706
  ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
683
707
  ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
684
708
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
709
+ oldValue: {
710
+ type: PropType<import("../../../../../shared/types").AnyObject[]>;
711
+ default: () => never[];
712
+ };
685
713
  dynamicOptionInfo: {
686
714
  type: PropType<import("../../../../../shared/types").AnyObject>;
687
715
  default: () => {};
@@ -720,6 +748,7 @@ declare const _default: import("vue").DefineComponent<{
720
748
  }, {
721
749
  isMultiple: boolean;
722
750
  loading: boolean;
751
+ oldValue: import("../../../../../shared/types").AnyObject[];
723
752
  dynamicOptionInfo: import("../../../../../shared/types").AnyObject;
724
753
  fieldTitleList: import("../../../../../shared/types").AnyObject[];
725
754
  optionList: import("../../../../../shared/types").AnyObject[];
@@ -733,13 +762,13 @@ declare const _default: import("vue").DefineComponent<{
733
762
  default: null;
734
763
  };
735
764
  modelValue: {
736
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
765
+ type: PropType<import("../../../../../shared/types").AnyObject[]>;
737
766
  default: null;
738
767
  };
739
768
  }>> & {
740
769
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
741
770
  }, {
742
- modelValue: string | number | unknown[];
771
+ modelValue: import("../../../../../shared/types").AnyObject[];
743
772
  paramCfg: Record<string, any>;
744
773
  }>;
745
774
  InputNumberGroup: import("vue").DefineComponent<{
@@ -868,6 +897,10 @@ declare const _default: import("vue").DefineComponent<{
868
897
  allowedInvalidValue: {
869
898
  type: StringConstructor;
870
899
  };
900
+ to: {
901
+ type: PropType<string | false | HTMLElement>;
902
+ default: string;
903
+ };
871
904
  }, {
872
905
  attrs: {
873
906
  [x: string]: unknown;
@@ -888,6 +921,10 @@ declare const _default: import("vue").DefineComponent<{
888
921
  allowedInvalidValue: {
889
922
  type: StringConstructor;
890
923
  };
924
+ to: {
925
+ type: PropType<string | false | HTMLElement>;
926
+ default: string;
927
+ };
891
928
  }>> & {
892
929
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
893
930
  }>>;
@@ -924,10 +961,15 @@ declare const _default: import("vue").DefineComponent<{
924
961
  allowedInvalidValue: {
925
962
  type: StringConstructor;
926
963
  };
964
+ to: {
965
+ type: PropType<string | false | HTMLElement>;
966
+ default: string;
967
+ };
927
968
  }>> & {
928
969
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
929
970
  }, {
930
971
  updateUnchangedValue: boolean;
972
+ to: string | false | HTMLElement;
931
973
  }>>;
932
974
  WidgetValEnums: {
933
975
  CUSTOM: string;
@@ -99,6 +99,10 @@ declare const _default: import("vue").DefineComponent<{
99
99
  allowedInvalidValue: {
100
100
  type: StringConstructor;
101
101
  };
102
+ to: {
103
+ type: PropType<string | false | HTMLElement>;
104
+ default: string;
105
+ };
102
106
  }, {
103
107
  attrs: {
104
108
  [x: string]: unknown;
@@ -119,6 +123,10 @@ declare const _default: import("vue").DefineComponent<{
119
123
  allowedInvalidValue: {
120
124
  type: StringConstructor;
121
125
  };
126
+ to: {
127
+ type: PropType<string | false | HTMLElement>;
128
+ default: string;
129
+ };
122
130
  }>> & {
123
131
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
124
132
  }>>;
@@ -155,10 +163,15 @@ declare const _default: import("vue").DefineComponent<{
155
163
  allowedInvalidValue: {
156
164
  type: StringConstructor;
157
165
  };
166
+ to: {
167
+ type: PropType<string | false | HTMLElement>;
168
+ default: string;
169
+ };
158
170
  }>> & {
159
171
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
160
172
  }, {
161
173
  updateUnchangedValue: boolean;
174
+ to: string | false | HTMLElement;
162
175
  }>>;
163
176
  DateQuickBtn: import("vue").DefineComponent<{
164
177
  componentCfg: {
@@ -82,6 +82,10 @@ declare const _default: import("vue").DefineComponent<{
82
82
  allowedInvalidValue: {
83
83
  type: StringConstructor;
84
84
  };
85
+ to: {
86
+ type: PropType<string | false | HTMLElement>;
87
+ default: string;
88
+ };
85
89
  }, {
86
90
  attrs: {
87
91
  [x: string]: unknown;
@@ -102,6 +106,10 @@ declare const _default: import("vue").DefineComponent<{
102
106
  allowedInvalidValue: {
103
107
  type: StringConstructor;
104
108
  };
109
+ to: {
110
+ type: PropType<string | false | HTMLElement>;
111
+ default: string;
112
+ };
105
113
  }>> & {
106
114
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
107
115
  }>>;
@@ -138,10 +146,15 @@ declare const _default: import("vue").DefineComponent<{
138
146
  allowedInvalidValue: {
139
147
  type: StringConstructor;
140
148
  };
149
+ to: {
150
+ type: PropType<string | false | HTMLElement>;
151
+ default: string;
152
+ };
141
153
  }>> & {
142
154
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
143
155
  }, {
144
156
  updateUnchangedValue: boolean;
157
+ to: string | false | HTMLElement;
145
158
  }>>;
146
159
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
147
160
  componentCfg: {
@@ -117,6 +117,10 @@ declare const _default: import("vue").DefineComponent<{
117
117
  allowedInvalidValue: {
118
118
  type: StringConstructor;
119
119
  };
120
+ to: {
121
+ type: PropType<string | false | HTMLElement>;
122
+ default: string;
123
+ };
120
124
  }, {
121
125
  attrs: {
122
126
  [x: string]: unknown;
@@ -137,6 +141,10 @@ declare const _default: import("vue").DefineComponent<{
137
141
  allowedInvalidValue: {
138
142
  type: StringConstructor;
139
143
  };
144
+ to: {
145
+ type: PropType<string | false | HTMLElement>;
146
+ default: string;
147
+ };
140
148
  }>> & {
141
149
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
142
150
  }>>;
@@ -173,10 +181,15 @@ declare const _default: import("vue").DefineComponent<{
173
181
  allowedInvalidValue: {
174
182
  type: StringConstructor;
175
183
  };
184
+ to: {
185
+ type: PropType<string | false | HTMLElement>;
186
+ default: string;
187
+ };
176
188
  }>> & {
177
189
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
178
190
  }, {
179
191
  updateUnchangedValue: boolean;
192
+ to: string | false | HTMLElement;
180
193
  }>>;
181
194
  DateQuickBtn: import("vue").DefineComponent<{
182
195
  componentCfg: {