@selfeesas/shared-components 1.5.4 → 1.6.0

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.
@@ -265,6 +265,8 @@ declare type __VLS_NonUndefinedable_23<T> = T extends undefined ? never : T;
265
265
 
266
266
  declare type __VLS_NonUndefinedable_24<T> = T extends undefined ? never : T;
267
267
 
268
+ declare type __VLS_NonUndefinedable_25<T> = T extends undefined ? never : T;
269
+
268
270
  declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
269
271
 
270
272
  declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
@@ -319,6 +321,10 @@ declare type __VLS_PrettifyLocal_18<T> = {
319
321
  [K in keyof T]: T[K];
320
322
  } & {};
321
323
 
324
+ declare type __VLS_PrettifyLocal_19<T> = {
325
+ [K in keyof T]: T[K];
326
+ } & {};
327
+
322
328
  declare type __VLS_PrettifyLocal_2<T> = {
323
329
  [K in keyof T]: T[K];
324
330
  } & {};
@@ -640,6 +646,15 @@ declare type __VLS_TypePropsToOption_24<T> = {
640
646
  };
641
647
  };
642
648
 
649
+ declare type __VLS_TypePropsToOption_25<T> = {
650
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
651
+ type: PropType<__VLS_NonUndefinedable_25<T[K]>>;
652
+ } : {
653
+ type: PropType<T[K]>;
654
+ required: true;
655
+ };
656
+ };
657
+
643
658
  declare type __VLS_TypePropsToOption_3<T> = {
644
659
  [K in keyof T]-?: {} extends Pick<T, K> ? {
645
660
  type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
@@ -763,6 +778,12 @@ declare type __VLS_WithDefaults_18<P, D> = {
763
778
  }> : P[K];
764
779
  };
765
780
 
781
+ declare type __VLS_WithDefaults_19<P, D> = {
782
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_19<P[K] & {
783
+ default: D[K];
784
+ }> : P[K];
785
+ };
786
+
766
787
  declare type __VLS_WithDefaults_2<P, D> = {
767
788
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_2<P[K] & {
768
789
  default: D[K];
@@ -1393,6 +1414,51 @@ export declare interface ExportButtonProps<T = any> {
1393
1414
  onError?: (error: unknown) => void;
1394
1415
  }
1395
1416
 
1417
+ export declare const ExportDataButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_19<__VLS_TypePropsToOption_25<ExportDataButtonProps>, {
1418
+ label: string;
1419
+ color: string;
1420
+ disabled: boolean;
1421
+ sheetName: string;
1422
+ beforeExport: undefined;
1423
+ onSuccess: undefined;
1424
+ onError: undefined;
1425
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1426
+ success: () => void;
1427
+ error: (error: unknown) => void;
1428
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_19<__VLS_TypePropsToOption_25<ExportDataButtonProps>, {
1429
+ label: string;
1430
+ color: string;
1431
+ disabled: boolean;
1432
+ sheetName: string;
1433
+ beforeExport: undefined;
1434
+ onSuccess: undefined;
1435
+ onError: undefined;
1436
+ }>>> & Readonly<{
1437
+ onError?: ((error: unknown) => any) | undefined;
1438
+ onSuccess?: (() => any) | undefined;
1439
+ }>, {
1440
+ disabled: boolean;
1441
+ color: string;
1442
+ label: string;
1443
+ onError: (error: unknown) => void;
1444
+ beforeExport: () => Promise<void> | void;
1445
+ onSuccess: () => void;
1446
+ sheetName: string;
1447
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1448
+
1449
+ export declare interface ExportDataButtonProps {
1450
+ fileName: string;
1451
+ columns: string[];
1452
+ values: Record<string, string | number>[];
1453
+ sheetName?: string;
1454
+ label?: string;
1455
+ color?: string;
1456
+ disabled?: boolean;
1457
+ beforeExport?: () => Promise<void> | void;
1458
+ onSuccess?: () => void;
1459
+ onError?: (error: unknown) => void;
1460
+ }
1461
+
1396
1462
  export declare const ExportPerimeterButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_13<ExportPerimeterButtonProps>, {
1397
1463
  label: string;
1398
1464
  disabled: boolean;