cd-form 1.0.18 → 1.0.24

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.
@@ -43,12 +43,22 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
43
43
  showFilter?: boolean;
44
44
  fieldOptions?: any[];
45
45
  filterCondition?: any;
46
- inlineEdit?: boolean;
47
46
  planFilterOptions?: any[];
48
47
  enableVirtualScroll?: boolean;
49
48
  virtualScrollGt?: number;
50
49
  tableHeight?: number | string;
51
50
  businessFlow?: BusinessFlowConfig;
51
+ selectionMode?: "single" | "multiple";
52
+ showType?: "dialog" | "list";
53
+ relationFormData?: Record<string, any>;
54
+ shareUrl?: string;
55
+ shareConfig?: {
56
+ currentPermission?: "read" | "edit" | "manage";
57
+ owner?: any;
58
+ collaborators?: any[];
59
+ tabs?: any[];
60
+ organizations?: any[];
61
+ };
52
62
  }>, {
53
63
  deviceType: string;
54
64
  data: () => never[];
@@ -72,6 +82,17 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
72
82
  enableVirtualScroll: boolean;
73
83
  virtualScrollGt: number;
74
84
  tableHeight: undefined;
85
+ selectionMode: string;
86
+ showType: string;
87
+ relationFormData: () => {};
88
+ shareUrl: string;
89
+ shareConfig: () => {
90
+ currentPermission: string;
91
+ owner: undefined;
92
+ collaborators: never[];
93
+ tabs: never[];
94
+ organizations: never[];
95
+ };
75
96
  }>>, {
76
97
  tableRef: Ref<any, any>;
77
98
  formRenderRef: Ref<any, any>;
@@ -94,12 +115,12 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
94
115
  delete: (row: any) => void;
95
116
  "load-users": (payload: any) => void;
96
117
  "dept-click": (payload: any) => void;
118
+ share: (payload: any) => void;
97
119
  group: (params: {
98
120
  groupFields: string[];
99
121
  mergeFields: boolean;
100
122
  updatedData?: any[];
101
123
  }) => void;
102
- "select-org-data": (data: any) => void;
103
124
  "page-change": (pageInfo: {
104
125
  currentPage: number;
105
126
  pageSize: number;
@@ -126,6 +147,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
126
147
  field: string;
127
148
  filterValue: any;
128
149
  }) => void;
150
+ "select-org-data": (data: any) => void;
129
151
  "column-filter-reset": (field: string) => void;
130
152
  "save-plan": (plan: any) => void;
131
153
  "delete-plan": (plan: any) => void;
@@ -143,6 +165,36 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
143
165
  "select-upstream": (params: {
144
166
  upstream: any;
145
167
  }) => void;
168
+ "selection-change": (selectedRows: any[]) => void;
169
+ "row-click": (row: any) => void;
170
+ "row-dblclick": (row: any) => void;
171
+ "i18n-click": (data: {
172
+ field: string;
173
+ value: any;
174
+ i18nValue: string;
175
+ }) => void;
176
+ "relation-form-search": (data: {
177
+ field: string;
178
+ releaseId: string;
179
+ keyword: string;
180
+ }) => void;
181
+ "relation-form-advanced": (data: {
182
+ field: string;
183
+ releaseId: string;
184
+ }) => void;
185
+ "relation-form-dialog-search": (data: {
186
+ field: string;
187
+ releaseId: string;
188
+ filters: any;
189
+ }) => void;
190
+ "relation-form-page-change": (data: {
191
+ field: string;
192
+ releaseId: string;
193
+ pagination: any;
194
+ }) => void;
195
+ import: (file: File) => void;
196
+ export: () => void;
197
+ "download-template": () => void;
146
198
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
147
199
  formData: FormDataConfig;
148
200
  columnData?: ColumnDataConfig;
@@ -155,12 +207,22 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
155
207
  showFilter?: boolean;
156
208
  fieldOptions?: any[];
157
209
  filterCondition?: any;
158
- inlineEdit?: boolean;
159
210
  planFilterOptions?: any[];
160
211
  enableVirtualScroll?: boolean;
161
212
  virtualScrollGt?: number;
162
213
  tableHeight?: number | string;
163
214
  businessFlow?: BusinessFlowConfig;
215
+ selectionMode?: "single" | "multiple";
216
+ showType?: "dialog" | "list";
217
+ relationFormData?: Record<string, any>;
218
+ shareUrl?: string;
219
+ shareConfig?: {
220
+ currentPermission?: "read" | "edit" | "manage";
221
+ owner?: any;
222
+ collaborators?: any[];
223
+ tabs?: any[];
224
+ organizations?: any[];
225
+ };
164
226
  }>, {
165
227
  deviceType: string;
166
228
  data: () => never[];
@@ -184,6 +246,17 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
184
246
  enableVirtualScroll: boolean;
185
247
  virtualScrollGt: number;
186
248
  tableHeight: undefined;
249
+ selectionMode: string;
250
+ showType: string;
251
+ relationFormData: () => {};
252
+ shareUrl: string;
253
+ shareConfig: () => {
254
+ currentPermission: string;
255
+ owner: undefined;
256
+ collaborators: never[];
257
+ tabs: never[];
258
+ organizations: never[];
259
+ };
187
260
  }>>> & Readonly<{
188
261
  onAdd?: ((data: any) => any) | undefined;
189
262
  onEdit?: ((data: any) => any) | undefined;
@@ -191,12 +264,12 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
191
264
  onDelete?: ((row: any) => any) | undefined;
192
265
  "onLoad-users"?: ((payload: any) => any) | undefined;
193
266
  "onDept-click"?: ((payload: any) => any) | undefined;
267
+ onShare?: ((payload: any) => any) | undefined;
194
268
  onGroup?: ((params: {
195
269
  groupFields: string[];
196
270
  mergeFields: boolean;
197
271
  updatedData?: any[];
198
272
  }) => any) | undefined;
199
- "onSelect-org-data"?: ((data: any) => any) | undefined;
200
273
  "onPage-change"?: ((pageInfo: {
201
274
  currentPage: number;
202
275
  pageSize: number;
@@ -223,6 +296,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
223
296
  field: string;
224
297
  filterValue: any;
225
298
  }) => any) | undefined;
299
+ "onSelect-org-data"?: ((data: any) => any) | undefined;
226
300
  "onColumn-filter-reset"?: ((field: string) => any) | undefined;
227
301
  "onSave-plan"?: ((plan: any) => any) | undefined;
228
302
  "onDelete-plan"?: ((plan: any) => any) | undefined;
@@ -240,9 +314,38 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
240
314
  "onSelect-upstream"?: ((params: {
241
315
  upstream: any;
242
316
  }) => any) | undefined;
317
+ "onSelection-change"?: ((selectedRows: any[]) => any) | undefined;
318
+ "onRow-click"?: ((row: any) => any) | undefined;
319
+ "onRow-dblclick"?: ((row: any) => any) | undefined;
320
+ "onI18n-click"?: ((data: {
321
+ field: string;
322
+ value: any;
323
+ i18nValue: string;
324
+ }) => any) | undefined;
325
+ "onRelation-form-search"?: ((data: {
326
+ field: string;
327
+ releaseId: string;
328
+ keyword: string;
329
+ }) => any) | undefined;
330
+ "onRelation-form-advanced"?: ((data: {
331
+ field: string;
332
+ releaseId: string;
333
+ }) => any) | undefined;
334
+ "onRelation-form-dialog-search"?: ((data: {
335
+ field: string;
336
+ releaseId: string;
337
+ filters: any;
338
+ }) => any) | undefined;
339
+ "onRelation-form-page-change"?: ((data: {
340
+ field: string;
341
+ releaseId: string;
342
+ pagination: any;
343
+ }) => any) | undefined;
344
+ onImport?: ((file: File) => any) | undefined;
345
+ onExport?: (() => any) | undefined;
346
+ "onDownload-template"?: (() => any) | undefined;
243
347
  }>, {
244
348
  data: any[];
245
- inlineEdit: boolean;
246
349
  showFilter: boolean;
247
350
  deviceType: "pc" | "app" | "pad";
248
351
  loading: boolean;
@@ -254,6 +357,17 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
254
357
  enableVirtualScroll: boolean;
255
358
  virtualScrollGt: number;
256
359
  tableHeight: number | string;
360
+ selectionMode: "single" | "multiple";
361
+ showType: "dialog" | "list";
362
+ relationFormData: Record<string, any>;
363
+ shareUrl: string;
364
+ shareConfig: {
365
+ currentPermission?: "read" | "edit" | "manage";
366
+ owner?: any;
367
+ collaborators?: any[];
368
+ tabs?: any[];
369
+ organizations?: any[];
370
+ };
257
371
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
258
372
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
259
373
  export default _default;
@@ -6,9 +6,11 @@ interface Props {
6
6
  fields: FormFieldConfig[];
7
7
  modelValue: Record<string, any>;
8
8
  mode?: OperationMode;
9
+ relationFormData?: Record<string, any>;
9
10
  }
10
11
  declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
12
  mode: string;
13
+ relationFormData: () => {};
12
14
  }>>, {
13
15
  formRef: Ref<any, any>;
14
16
  validate: () => Promise<boolean>;
@@ -23,15 +25,65 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
23
25
  "update:modelValue": (value: Record<string, any>) => void;
24
26
  "field-change": (field: string, value: any) => void;
25
27
  "select-org-data": (data: any) => void;
28
+ "i18n-click": (data: {
29
+ field: string;
30
+ value: any;
31
+ i18nValue: string;
32
+ }) => void;
33
+ "relation-form-search": (data: {
34
+ field: string;
35
+ releaseId: string;
36
+ keyword: string;
37
+ }) => void;
38
+ "relation-form-advanced": (data: {
39
+ field: string;
40
+ releaseId: string;
41
+ }) => void;
42
+ "relation-form-dialog-search": (data: {
43
+ field: string;
44
+ releaseId: string;
45
+ filters: any;
46
+ }) => void;
47
+ "relation-form-page-change": (data: {
48
+ field: string;
49
+ releaseId: string;
50
+ pagination: any;
51
+ }) => void;
26
52
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
27
53
  mode: string;
54
+ relationFormData: () => {};
28
55
  }>>> & Readonly<{
29
56
  onSubmit?: ((data: Record<string, any>) => any) | undefined;
30
57
  "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
31
58
  "onField-change"?: ((field: string, value: any) => any) | undefined;
32
59
  "onSelect-org-data"?: ((data: any) => any) | undefined;
60
+ "onI18n-click"?: ((data: {
61
+ field: string;
62
+ value: any;
63
+ i18nValue: string;
64
+ }) => any) | undefined;
65
+ "onRelation-form-search"?: ((data: {
66
+ field: string;
67
+ releaseId: string;
68
+ keyword: string;
69
+ }) => any) | undefined;
70
+ "onRelation-form-advanced"?: ((data: {
71
+ field: string;
72
+ releaseId: string;
73
+ }) => any) | undefined;
74
+ "onRelation-form-dialog-search"?: ((data: {
75
+ field: string;
76
+ releaseId: string;
77
+ filters: any;
78
+ }) => any) | undefined;
79
+ "onRelation-form-page-change"?: ((data: {
80
+ field: string;
81
+ releaseId: string;
82
+ pagination: any;
83
+ }) => any) | undefined;
33
84
  }>, {
34
85
  mode: OperationMode;
86
+ relationFormData: Record<string, any>;
35
87
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
36
88
  export default _default;
37
89
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;