cd-form 1.0.24 → 1.0.25

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.
@@ -59,6 +59,13 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
59
59
  tabs?: any[];
60
60
  organizations?: any[];
61
61
  };
62
+ importConfig?: {
63
+ fieldMapping?: Record<string, string>;
64
+ requiredFields?: string[];
65
+ validators?: Record<string, (value: any) => boolean | string>;
66
+ enableTemplate?: boolean;
67
+ templateData?: any[];
68
+ };
62
69
  }>, {
63
70
  deviceType: string;
64
71
  data: () => never[];
@@ -192,7 +199,11 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
192
199
  releaseId: string;
193
200
  pagination: any;
194
201
  }) => void;
195
- import: (file: File) => void;
202
+ import: (data: {
203
+ data: any[];
204
+ mode: "add" | "update";
205
+ file: File;
206
+ }) => void;
196
207
  export: () => void;
197
208
  "download-template": () => void;
198
209
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -223,6 +234,13 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
223
234
  tabs?: any[];
224
235
  organizations?: any[];
225
236
  };
237
+ importConfig?: {
238
+ fieldMapping?: Record<string, string>;
239
+ requiredFields?: string[];
240
+ validators?: Record<string, (value: any) => boolean | string>;
241
+ enableTemplate?: boolean;
242
+ templateData?: any[];
243
+ };
226
244
  }>, {
227
245
  deviceType: string;
228
246
  data: () => never[];
@@ -341,7 +359,11 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
341
359
  releaseId: string;
342
360
  pagination: any;
343
361
  }) => any) | undefined;
344
- onImport?: ((file: File) => any) | undefined;
362
+ onImport?: ((data: {
363
+ data: any[];
364
+ mode: "add" | "update";
365
+ file: File;
366
+ }) => any) | undefined;
345
367
  onExport?: (() => any) | undefined;
346
368
  "onDownload-template"?: (() => any) | undefined;
347
369
  }>, {