cnhis-design-vue 3.1.46-beta.3 → 3.1.46-beta.31

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 (136) hide show
  1. package/es/components/button-print/index.d.ts +1 -1
  2. package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
  3. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  4. package/es/components/button-print/src/utils/print.js +1 -1
  5. package/es/components/classification/index.d.ts +1 -1
  6. package/es/components/classification/src/index.vue.d.ts +1 -1
  7. package/es/components/classification/src/index.vue2.js +1 -1
  8. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  9. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  10. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  11. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  13. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  15. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  17. package/es/components/fabric-chart/src/utils/index.d.ts +1 -0
  18. package/es/components/fabric-chart/src/utils/index.js +1 -1
  19. package/es/components/form-config/index.d.ts +23 -1
  20. package/es/components/form-config/src/FormConfig.vue.d.ts +23 -1
  21. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  22. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +11 -0
  23. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +11 -0
  24. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  25. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
  26. package/es/components/form-config/src/types/index.d.ts +1 -1
  27. package/es/components/form-render/index.d.ts +11 -0
  28. package/es/components/form-render/src/FormRender.vue.d.ts +12 -1
  29. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  30. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +11 -0
  31. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  32. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +3 -0
  33. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  34. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +7 -0
  35. package/es/components/form-render/src/hooks/useOperationalForm.js +1 -0
  36. package/es/components/form-render/src/types/index.d.ts +2 -1
  37. package/es/components/iho-table/index.d.ts +14 -0
  38. package/es/components/iho-table/src/IhoTable.vue.d.ts +14 -0
  39. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
  40. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -0
  41. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
  42. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
  43. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  44. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  45. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
  46. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  47. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  48. package/es/components/iho-table/src/plugins/index.js +1 -1
  49. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  50. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -0
  51. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -0
  52. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  53. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  54. package/es/components/iho-table/src/types/index.d.ts +3 -1
  55. package/es/components/iho-table/src/types/pluginType.d.ts +2 -0
  56. package/es/components/iho-table/style/index.css +1 -1
  57. package/es/components/index.css +1 -1
  58. package/es/components/index.d.ts +2 -1
  59. package/es/components/index.js +1 -1
  60. package/es/components/info-header/index.d.ts +26 -0
  61. package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
  62. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +11 -0
  63. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +11 -0
  64. package/es/components/quick-search/src/index.vue2.js +1 -1
  65. package/es/components/scale-view/index.d.ts +8 -8
  66. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  67. package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +4 -4
  68. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  69. package/es/components/scale-view/src/components/formitem/r-radio.d.ts +4 -4
  70. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
  71. package/es/components/scale-view/src/hooks/use-component.d.ts +16 -16
  72. package/es/components/scale-view/style/index.css +1 -1
  73. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  74. package/es/components/select-person/index.d.ts +123 -0
  75. package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +88 -0
  76. package/es/components/select-person/src/SearchOrgAndStaff.vue.js +1 -0
  77. package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -0
  78. package/es/components/select-person/src/SelectPerson.vue.d.ts +123 -0
  79. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  80. package/es/components/select-person/src/types/enums.d.ts +4 -0
  81. package/es/components/select-person/src/types/enums.js +1 -0
  82. package/es/components/select-person/src/utils/index.d.ts +1 -1
  83. package/es/components/select-person/src/utils/index.js +1 -1
  84. package/es/components/select-person/style/index.css +1 -1
  85. package/es/components/shortcut-setter/index.d.ts +11 -0
  86. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +11 -0
  87. package/es/components/table-export-field/index.d.ts +1057 -0
  88. package/es/components/table-export-field/index.js +1 -0
  89. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +270 -0
  90. package/es/components/table-export-field/src/components/ExportModal.vue.js +1 -0
  91. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
  92. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +700 -0
  93. package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +1 -0
  94. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -0
  95. package/es/components/table-export-field/src/constants/index.d.ts +3 -0
  96. package/es/components/table-export-field/src/constants/index.js +1 -0
  97. package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +6 -0
  98. package/es/components/table-export-field/src/hooks/useAsyncData.js +1 -0
  99. package/es/components/table-export-field/src/index.vue.d.ts +1058 -0
  100. package/es/components/table-export-field/src/index.vue.js +1 -0
  101. package/es/components/table-export-field/src/index.vue2.js +1 -0
  102. package/es/components/table-export-field/src/tool.d.ts +1 -0
  103. package/es/components/table-export-field/src/tool.js +1 -0
  104. package/es/components/table-export-field/src/types/index.d.ts +6 -0
  105. package/es/components/table-export-field/src/types/index.js +1 -0
  106. package/es/components/table-export-field/style/index.css +1 -0
  107. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  108. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
  109. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -1
  110. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  111. package/es/shared/hooks/useDateTime.d.ts +1 -1
  112. package/es/shared/hooks/useDateTime.js +1 -1
  113. package/es/shared/package.json.js +1 -1
  114. package/es/shared/types/business.d.ts +6 -0
  115. package/es/shared/types/index.d.ts +1 -0
  116. package/es/shared/utils/business.d.ts +6 -1
  117. package/es/shared/utils/business.js +1 -1
  118. package/es/shared/utils/fabricjs/index.js +1 -1
  119. package/es/shared/utils/index.js +1 -1
  120. package/es/shared/utils/tapableLess.d.ts +28 -0
  121. package/es/shared/utils/tapableLess.js +1 -0
  122. package/package.json +2 -2
  123. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
  124. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
  125. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
  126. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
  127. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  128. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
  129. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
  130. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
  131. package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
  132. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
  133. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
  134. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
  135. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
  136. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import e from"./src/index.vue.js";const i=e;i.install=function(e){o(e,i,r+"TableExportField")};export{i as default};
@@ -0,0 +1,270 @@
1
+ import { PropType } from 'vue';
2
+ import { IExportSchemeType } from '../../../../../es/components/table-export-field/src/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ visible: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ tableListId: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ curProgram: {
13
+ type: PropType<IExportSchemeType>;
14
+ default: () => {};
15
+ };
16
+ programOptions: {
17
+ type: PropType<IExportSchemeType[]>;
18
+ default: () => never[];
19
+ };
20
+ downLoadFieldList: {
21
+ type: PropType<any[]>;
22
+ default: () => never[];
23
+ };
24
+ showAllFieldList: {
25
+ type: PropType<any[]>;
26
+ default: () => never[];
27
+ };
28
+ }, {
29
+ defaultKey: string;
30
+ baseSetting: {
31
+ width: string;
32
+ height: string;
33
+ };
34
+ menuProps: {
35
+ class: string;
36
+ };
37
+ message: import("naive-ui").MessageApi;
38
+ deleteTableListExportScheme: (params: any, filterApiConfig: any) => Promise<any>;
39
+ exportTableListScheme: (params: any, filterApiConfig: any) => Promise<any>;
40
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
41
+ visible: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ tableListId: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ curProgram: {
50
+ type: PropType<IExportSchemeType>;
51
+ default: () => {};
52
+ };
53
+ programOptions: {
54
+ type: PropType<IExportSchemeType[]>;
55
+ default: () => never[];
56
+ };
57
+ downLoadFieldList: {
58
+ type: PropType<any[]>;
59
+ default: () => never[];
60
+ };
61
+ showAllFieldList: {
62
+ type: PropType<any[]>;
63
+ default: () => never[];
64
+ };
65
+ }>> & {
66
+ onCancelModal?: ((...args: any[]) => any) | undefined;
67
+ onUpdateCurProgram?: ((...args: any[]) => any) | undefined;
68
+ onUpdateFieldCheckList?: ((...args: any[]) => any) | undefined;
69
+ onUpdateShowAllFieldList?: ((...args: any[]) => any) | undefined;
70
+ }>>;
71
+ emits: (event: "cancelModal" | "updateCurProgram" | "updateFieldCheckList" | "updateShowAllFieldList", ...args: any[]) => void;
72
+ isChangeWindow: import("vue").Ref<boolean>;
73
+ modalWidth: import("vue").Ref<string>;
74
+ bodyStyle: import("vue").Ref<{
75
+ maxHeight: string;
76
+ height: string;
77
+ }>;
78
+ isSelectAll: import("vue").Ref<boolean>;
79
+ isIndeterminate: import("vue").Ref<boolean>;
80
+ fieldCheckList: import("vue").Ref<any[]>;
81
+ exportApiConfig: import("../../..").AnyObject;
82
+ curSchemeId: import("vue").ComputedRef<string>;
83
+ dragEnd: () => void;
84
+ deleteExportSchemeItem: (schemeId: string) => Promise<import("naive-ui").MessageReactive | undefined>;
85
+ doExportScheme: () => Promise<import("naive-ui").MessageReactive | undefined>;
86
+ renderTag: ({ option }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
87
+ [key: string]: any;
88
+ }>;
89
+ renderLabel: (option: IExportSchemeType) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
90
+ [key: string]: any;
91
+ }>;
92
+ handleClick: (e: MouseEvent) => void;
93
+ handleDelete: (option: IExportSchemeType) => import("naive-ui").MessageReactive | undefined;
94
+ handleUpdateSelect: (value: string | number | null) => void;
95
+ _setFieldCheckListValue: (optionKey: string | number | null) => void;
96
+ exportData: () => void;
97
+ handleCheckboxAll: (checked: boolean) => void;
98
+ cancelModal: () => void;
99
+ resetWindow: () => void;
100
+ changeWindow: () => void;
101
+ NModal: any;
102
+ NCard: any;
103
+ NButton: any;
104
+ NSelect: any;
105
+ NCheckboxGroup: import("vue").DefineComponent<{
106
+ readonly min: NumberConstructor;
107
+ readonly max: NumberConstructor;
108
+ readonly size: PropType<"small" | "medium" | "large">;
109
+ readonly value: PropType<(string | number)[] | null>;
110
+ readonly defaultValue: {
111
+ readonly type: PropType<(string | number)[] | null>;
112
+ readonly default: null;
113
+ };
114
+ /**
115
+ * 拖拽完成
116
+ */
117
+ readonly disabled: {
118
+ readonly type: PropType<boolean | undefined>;
119
+ readonly default: undefined;
120
+ };
121
+ readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
122
+ actionType: "check" | "uncheck";
123
+ value: string | number;
124
+ }) => void>>;
125
+ readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
126
+ actionType: "check" | "uncheck";
127
+ value: string | number;
128
+ }) => void>>;
129
+ readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
130
+ }, {
131
+ mergedClsPrefix: import("vue").ComputedRef<string>;
132
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
133
+ readonly min: NumberConstructor;
134
+ readonly max: NumberConstructor;
135
+ readonly size: PropType<"small" | "medium" | "large">;
136
+ readonly value: PropType<(string | number)[] | null>;
137
+ readonly defaultValue: {
138
+ readonly type: PropType<(string | number)[] | null>;
139
+ readonly default: null;
140
+ };
141
+ readonly disabled: {
142
+ readonly type: PropType<boolean | undefined>;
143
+ readonly default: undefined;
144
+ };
145
+ readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
146
+ actionType: "check" | "uncheck";
147
+ value: string | number;
148
+ }) => void>>;
149
+ readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
150
+ actionType: "check" | "uncheck";
151
+ value: string | number;
152
+ }) => void>>;
153
+ readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
154
+ }>>, {
155
+ readonly disabled: boolean | undefined;
156
+ readonly defaultValue: (string | number)[] | null;
157
+ }>;
158
+ NCheckbox: any;
159
+ Draggable: import("vue").DefineComponent<{
160
+ list: {
161
+ type: ArrayConstructor;
162
+ required: boolean;
163
+ default: any;
164
+ };
165
+ modelValue: {
166
+ type: ArrayConstructor;
167
+ required: boolean;
168
+ default: any;
169
+ };
170
+ itemKey: {
171
+ type: (StringConstructor | FunctionConstructor)[];
172
+ required: boolean;
173
+ };
174
+ clone: {
175
+ type: FunctionConstructor;
176
+ default: (original: any) => any;
177
+ };
178
+ tag: {
179
+ type: StringConstructor;
180
+ default: string;
181
+ };
182
+ move: {
183
+ type: FunctionConstructor;
184
+ default: any;
185
+ };
186
+ componentData: {
187
+ type: ObjectConstructor;
188
+ required: boolean;
189
+ default: any;
190
+ };
191
+ }, unknown, {
192
+ error: boolean;
193
+ }, {
194
+ realList(): any;
195
+ getKey(): any;
196
+ }, {
197
+ getUnderlyingVm(domElement: any): any;
198
+ getUnderlyingPotencialDraggableComponent(htmElement: any): any;
199
+ emitChanges(evt: any): void;
200
+ alterList(onList: any): void;
201
+ spliceList(): void;
202
+ updatePosition(oldIndex: any, newIndex: any): void;
203
+ getRelatedContextFromMoveEvent({ to, related }: {
204
+ to: any;
205
+ related: any;
206
+ }): any;
207
+ getVmIndexFromDomIndex(domIndex: any): any;
208
+ onDragStart(evt: any): void;
209
+ onDragAdd(evt: any): void;
210
+ onDragRemove(evt: any): void;
211
+ onDragUpdate(evt: any): void;
212
+ computeFutureIndex(relatedContext: any, evt: any): any;
213
+ onDragMove(evt: any, originalEvent: any): any;
214
+ onDragEnd(): void;
215
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any[], any, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
216
+ move: Function;
217
+ tag: string;
218
+ clone: Function;
219
+ list: unknown[];
220
+ modelValue: unknown[];
221
+ componentData: Record<string, any>;
222
+ } & {
223
+ itemKey?: string | Function | undefined;
224
+ }>, {
225
+ move: Function;
226
+ tag: string;
227
+ clone: Function;
228
+ list: unknown[];
229
+ modelValue: unknown[];
230
+ componentData: Record<string, any>;
231
+ }>;
232
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelModal" | "updateCurProgram" | "updateFieldCheckList" | "updateShowAllFieldList")[], "cancelModal" | "updateCurProgram" | "updateFieldCheckList" | "updateShowAllFieldList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
233
+ visible: {
234
+ type: BooleanConstructor;
235
+ default: boolean;
236
+ };
237
+ tableListId: {
238
+ type: StringConstructor;
239
+ default: string;
240
+ };
241
+ curProgram: {
242
+ type: PropType<IExportSchemeType>;
243
+ default: () => {};
244
+ };
245
+ programOptions: {
246
+ type: PropType<IExportSchemeType[]>;
247
+ default: () => never[];
248
+ };
249
+ downLoadFieldList: {
250
+ type: PropType<any[]>;
251
+ default: () => never[];
252
+ };
253
+ showAllFieldList: {
254
+ type: PropType<any[]>;
255
+ default: () => never[];
256
+ };
257
+ }>> & {
258
+ onCancelModal?: ((...args: any[]) => any) | undefined;
259
+ onUpdateCurProgram?: ((...args: any[]) => any) | undefined;
260
+ onUpdateFieldCheckList?: ((...args: any[]) => any) | undefined;
261
+ onUpdateShowAllFieldList?: ((...args: any[]) => any) | undefined;
262
+ }, {
263
+ visible: boolean;
264
+ tableListId: string;
265
+ curProgram: IExportSchemeType;
266
+ programOptions: IExportSchemeType[];
267
+ downLoadFieldList: any[];
268
+ showAllFieldList: any[];
269
+ }>;
270
+ export default _default;
@@ -0,0 +1 @@
1
+ import r from"./ExportModal.vue2.js";import o from"../../../../_virtual/_plugin-vue_export-helper.js";var e=o(r,[["__file","ExportModal.vue"]]);export{e as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,inject as t,computed as a,watch as i,openBlock as o,createBlock as s,unref as n,normalizeClass as d,isRef as r,withCtx as u,createVNode as c,normalizeStyle as m,createElementVNode as h,createTextVNode as f,renderSlot as p,toDisplayString as v,h as g}from"vue";import{useMessage as b,NModal as w,NCard as x,NButton as L,NCheckbox as y,NSelect as F,NCheckboxGroup as k,NPopover as I,NPopconfirm as A,NIcon as N}from"naive-ui";import{Trash as C}from"@vicons/ionicons5";import{InjectionExportApiConfig as _}from"../constants/index.js";import P from"../../../../shared/components/VueDraggable/src/vuedraggable.js";import S from"../hooks/useAsyncData.js";import{dragFieldCheckList as z}from"../tool.js";import{cloneDeep as E}from"lodash-es";const j={class:"svg-wrap"},H={class:"flex_right"},O=h("div",{class:"tip"},"提示:支持拖动调整字段顺序,字段导出顺序为从左到右,从上到下。",-1),U={class:"flex_between"},$=["title"];var T=e({__name:"ExportModal",props:{visible:{type:Boolean,default:!1},tableListId:{type:String,default:""},curProgram:{type:Object,default:()=>({})},programOptions:{type:Array,default:()=>[]},downLoadFieldList:{type:Array,default:()=>[]},showAllFieldList:{type:Array,default:()=>[]}},emits:["cancelModal","updateCurProgram","updateFieldCheckList","updateShowAllFieldList"],setup(e,{emit:T}){const K=e,M="default",D="860px",B="496px",V={class:"select-export-popover"},q=b(),{deleteTableListExportScheme:G,exportTableListScheme:J}=S(),Q=l(!1),R=l(D),W=l({maxHeight:B,height:B}),X=l(!1),Y=l(!0),Z=l([]),ee=t(_),le=a((()=>K.curProgram.schemeId));function te(){T("updateShowAllFieldList",K.showAllFieldList)}function ae({option:e}){return g("span",e.schemeName)}function ie(e){const l=[g(I,{trigger:"hover",duration:0},{default:()=>e.schemeName,trigger:()=>g("span",{class:"content"},e.schemeName)})],t=[g(A,{placement:"top-start",positiveText:"确认",negativeText:"取消",onPositiveClick:()=>function(e){const{schemeId:l}=K.curProgram;if(l===e.schemeId)return q.warning("当前正在使用该方案,请先切换其他方案再删除");!async function(e){if(!K.tableListId)return q.warning("请传入列表id");try{await G({id:K.tableListId,schemeId:e},ee)&&q.success("删除成功")}catch(e){q.error(`获取导出方案数据请求失败:${e}`)}}(e.schemeId)}(e)},{trigger:()=>g(N,{onclick:oe},{default:()=>g(C)}),default:()=>"确定删除该导出方案吗?"})],a=e.schemeId===M?[l]:[l,t];return g("div",{class:"flex-between"},a)}function oe(e){e.stopPropagation()}function se(e){T("updateCurProgram",e)}function ne(){!async function(){if(!K.tableListId)return q.warning("请传入列表id");if(Z.value.length<1)return q.warning("请至少勾选一个字段");try{const{schemeId:e}=K.curProgram,l=K.programOptions.find((l=>l.schemeId===e)),t={fieldKeys:z(K.showAllFieldList,Z.value),lastUsedSchemeName:l?l.schemeName:"",schemeId:l?l.schemeId:"",schemeName:l?l.schemeName:"",tableListId:K.tableListId};await J(t,ee)&&(q.success("导出成功"),re())}catch(e){q.error(`获取导出方案数据请求失败:${e}`)}}()}function de(e){var l,t,a;Y.value=!1,Z.value=e?(null==(l=K.showAllFieldList)?void 0:l.map((e=>e.columnName)))||[]:(null==(a=null==(t=K.showAllFieldList)?void 0:t.filter((e=>e.fixedExport)))?void 0:a.map((e=>e.columnName)))||[]}function re(){T("cancelModal"),R.value=D,W.value={height:B,maxHeight:B},Q.value=!1}function ue(){Q.value=!Q.value;let e=document.body.clientHeight;R.value===D?(R.value="100%",W.value.maxHeight=`${e}px`,W.value.height=`${e}px`):(R.value=D,W.value.maxHeight=B,W.value.height=B)}return i((()=>Z.value),(e=>{K.showAllFieldList.length>0&&(Y.value=e.length>0&&e.length<K.showAllFieldList.length,X.value=e.length===K.showAllFieldList.length,T("updateFieldCheckList",e))}),{immediate:!0}),i((()=>K.curProgram),(e=>{e&&function(e){const l=K.programOptions.find((l=>l.schemeId===e));if(l){let t=[];const a=K.downLoadFieldList.filter((e=>e.fixedExport)).map((e=>e.columnName)),i=l.fieldKeys.filter((e=>!a.includes(e)));if(Z.value=[...i,...a],e===M){const e=E(K.downLoadFieldList);return void T("updateShowAllFieldList",e)}Z.value.forEach((e=>{const l=K.downLoadFieldList.find((l=>l.columnName===e));l&&t.push(l)}));const o=K.downLoadFieldList.filter((e=>!Z.value.includes(e.columnName))),s=[...t,...o];T("updateShowAllFieldList",s)}}(e.schemeId)}),{immediate:!0}),(l,t)=>(o(),s(n(w),{class:d(["table-export-field-modal",{"modal-screen":Q.value}]),show:e.visible,"onUpdate:show":t[3]||(t[3]=e=>r(visible)?visible.value=e:null),maskClosable:!1,width:R.value,bodyStyle:W.value,closable:!1,centered:"",onPositiveClick:ne,onNegativeClick:re},{default:u((()=>[c(n(x),{style:m({width:R.value,...W.value}),title:"选择导出字段",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":u((()=>[h("div",j,[h("i",{onClick:ue,class:d(["iconfont-table-filter",Q.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),h("i",{onClick:re,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:u((()=>[h("div",H,[c(n(L),{onClick:re},{default:u((()=>[f("取消")])),_:1}),p(l.$slots,"add"),c(n(L),{type:"info",onClick:ne},{default:u((()=>[f("导出")])),_:1})])])),default:u((()=>[O,h("header",U,[c(n(y),{checked:X.value,"onUpdate:checked":[t[0]||(t[0]=e=>X.value=e),de],indeterminate:Y.value},{default:u((()=>[f(" 全选 ")])),_:1},8,["checked","indeterminate"]),c(n(F),{style:{width:"200px"},value:n(le),"onUpdate:value":[t[1]||(t[1]=e=>r(le)?le.value=e:null),se],filterable:"","label-field":"schemeName","value-field":"schemeId","show-checkmark":!1,"render-label":ie,"render-tag":ae,"menu-props":V,options:e.programOptions},null,8,["value","options"])]),c(n(k),{value:Z.value,"onUpdate:value":t[2]||(t[2]=e=>Z.value=e)},{default:u((()=>[c(n(P),{class:"draggable-checkbox-list",list:e.showAllFieldList,animation:"300",itemKey:"columnName",onEnd:te},{item:u((({element:e})=>{var l;return[c(n(y),{disabled:e.fixedExport,class:d(Z.value.includes(e.columnName)?"":"checkbox-disabled"),value:e.columnName,label:null!=(l=e.alias)?l:e.title},{default:u((()=>{var l,t;return[h("span",{title:null!=(l=e.alias)?l:e.title},v(null!=(t=e.alias)?t:e.title),9,$)]})),_:2},1032,["disabled","class","value","label"])]})),_:1},8,["list"])])),_:1},8,["value"])])),_:3},8,["style"])])),_:3},8,["class","show","width","bodyStyle"]))}});export{T as default};