lew-ui 2.7.26 → 2.7.28

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.
@@ -1,6 +1,7 @@
1
1
  import { LewSize } from '../../../..';
2
- declare function open({ row }: {
2
+ declare function open({ row, isEditing: isEditingParam, }: {
3
3
  row: any;
4
+ isEditing?: boolean;
4
5
  }): void;
5
6
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
6
7
  options: {
@@ -15,8 +16,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
15
16
  typeValues: LewSize[];
16
17
  validator: (value: any) => boolean;
17
18
  };
19
+ rowKey: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ description: string;
23
+ };
18
24
  checkUniqueFieldFn: {
19
- type: PropType<(formData: Record<string, any>) => boolean>;
25
+ type: PropType<(formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean>;
20
26
  default: () => boolean;
21
27
  };
22
28
  }>, {
@@ -37,8 +43,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
37
43
  typeValues: LewSize[];
38
44
  validator: (value: any) => boolean;
39
45
  };
46
+ rowKey: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ description: string;
50
+ };
40
51
  checkUniqueFieldFn: {
41
- type: PropType<(formData: Record<string, any>) => boolean>;
52
+ type: PropType<(formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean>;
42
53
  default: () => boolean;
43
54
  };
44
55
  }>> & Readonly<{
@@ -47,7 +58,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
47
58
  }>, {
48
59
  size: LewSize;
49
60
  options: import('../../../..').LewFormOption[];
50
- checkUniqueFieldFn: (formData: Record<string, any>) => boolean;
61
+ rowKey: string;
62
+ checkUniqueFieldFn: (formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean;
51
63
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
52
64
  formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
53
65
  options: {
@@ -23,16 +23,22 @@ declare function __VLS_template(): {
23
23
  typeValues: import('../../../..').LewSize[];
24
24
  validator: (value: any) => boolean;
25
25
  };
26
+ rowKey: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ description: string;
30
+ };
26
31
  checkUniqueFieldFn: {
27
- type: PropType<(formData: Record<string, any>) => boolean>;
32
+ type: PropType<(formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean>;
28
33
  default: () => boolean;
29
34
  };
30
35
  }>> & Readonly<{
31
36
  onAddSuccess?: ((...args: any[]) => any) | undefined;
32
37
  onEditSuccess?: ((...args: any[]) => any) | undefined;
33
38
  }>, {
34
- open: ({ row }: {
39
+ open: ({ row, isEditing: isEditingParam, }: {
35
40
  row: any;
41
+ isEditing?: boolean;
36
42
  }) => void;
37
43
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
44
  addSuccess: (...args: any[]) => void;
@@ -40,7 +46,8 @@ declare function __VLS_template(): {
40
46
  }, import('vue').PublicProps, {
41
47
  size: import('../../../..').LewSize;
42
48
  options: import('../../../..').LewFormOption[];
43
- checkUniqueFieldFn: (formData: Record<string, any>) => boolean;
49
+ rowKey: string;
50
+ checkUniqueFieldFn: (formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean;
44
51
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
45
52
  formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
46
53
  options: {
@@ -268,21 +275,28 @@ declare function __VLS_template(): {
268
275
  typeValues: import('../../../..').LewSize[];
269
276
  validator: (value: any) => boolean;
270
277
  };
278
+ rowKey: {
279
+ type: StringConstructor;
280
+ default: string;
281
+ description: string;
282
+ };
271
283
  checkUniqueFieldFn: {
272
- type: PropType<(formData: Record<string, any>) => boolean>;
284
+ type: PropType<(formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean>;
273
285
  default: () => boolean;
274
286
  };
275
287
  }>> & Readonly<{
276
288
  onAddSuccess?: ((...args: any[]) => any) | undefined;
277
289
  onEditSuccess?: ((...args: any[]) => any) | undefined;
278
290
  }>, {
279
- open: ({ row }: {
291
+ open: ({ row, isEditing: isEditingParam, }: {
280
292
  row: any;
293
+ isEditing?: boolean;
281
294
  }) => void;
282
295
  }, {}, {}, {}, {
283
296
  size: import('../../../..').LewSize;
284
297
  options: import('../../../..').LewFormOption[];
285
- checkUniqueFieldFn: (formData: Record<string, any>) => boolean;
298
+ rowKey: string;
299
+ checkUniqueFieldFn: (formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean;
286
300
  }> | null;
287
301
  };
288
302
  rootEl: HTMLDivElement;
@@ -495,16 +509,22 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
495
509
  typeValues: import('../../../..').LewSize[];
496
510
  validator: (value: any) => boolean;
497
511
  };
512
+ rowKey: {
513
+ type: StringConstructor;
514
+ default: string;
515
+ description: string;
516
+ };
498
517
  checkUniqueFieldFn: {
499
- type: PropType<(formData: Record<string, any>) => boolean>;
518
+ type: PropType<(formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean>;
500
519
  default: () => boolean;
501
520
  };
502
521
  }>> & Readonly<{
503
522
  onAddSuccess?: ((...args: any[]) => any) | undefined;
504
523
  onEditSuccess?: ((...args: any[]) => any) | undefined;
505
524
  }>, {
506
- open: ({ row }: {
525
+ open: ({ row, isEditing: isEditingParam, }: {
507
526
  row: any;
527
+ isEditing?: boolean;
508
528
  }) => void;
509
529
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
510
530
  addSuccess: (...args: any[]) => void;
@@ -512,7 +532,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
512
532
  }, import('vue').PublicProps, {
513
533
  size: import('../../../..').LewSize;
514
534
  options: import('../../../..').LewFormOption[];
515
- checkUniqueFieldFn: (formData: Record<string, any>) => boolean;
535
+ rowKey: string;
536
+ checkUniqueFieldFn: (formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean;
516
537
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
517
538
  formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
518
539
  options: {
@@ -740,21 +761,28 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
740
761
  typeValues: import('../../../..').LewSize[];
741
762
  validator: (value: any) => boolean;
742
763
  };
764
+ rowKey: {
765
+ type: StringConstructor;
766
+ default: string;
767
+ description: string;
768
+ };
743
769
  checkUniqueFieldFn: {
744
- type: PropType<(formData: Record<string, any>) => boolean>;
770
+ type: PropType<(formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean>;
745
771
  default: () => boolean;
746
772
  };
747
773
  }>> & Readonly<{
748
774
  onAddSuccess?: ((...args: any[]) => any) | undefined;
749
775
  onEditSuccess?: ((...args: any[]) => any) | undefined;
750
776
  }>, {
751
- open: ({ row }: {
777
+ open: ({ row, isEditing: isEditingParam, }: {
752
778
  row: any;
779
+ isEditing?: boolean;
753
780
  }) => void;
754
781
  }, {}, {}, {}, {
755
782
  size: import('../../../..').LewSize;
756
783
  options: import('../../../..').LewFormOption[];
757
- checkUniqueFieldFn: (formData: Record<string, any>) => boolean;
784
+ rowKey: string;
785
+ checkUniqueFieldFn: (formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean;
758
786
  }> | null;
759
787
  }, HTMLDivElement>;
760
788
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -103,8 +103,13 @@ export declare const formModalProps: {
103
103
  typeValues: LewSize[];
104
104
  validator: (value: any) => boolean;
105
105
  };
106
+ rowKey: {
107
+ type: StringConstructor;
108
+ default: string;
109
+ description: string;
110
+ };
106
111
  checkUniqueFieldFn: {
107
- type: PropType<(formData: Record<string, any>) => boolean>;
112
+ type: PropType<(formData: Record<string, any>, isEditing?: boolean, originalRowId?: string) => boolean>;
108
113
  default: () => boolean;
109
114
  };
110
115
  };