@selfeesas/shared-components 1.7.0 → 1.8.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.
@@ -269,6 +269,8 @@ declare type __VLS_NonUndefinedable_25<T> = T extends undefined ? never : T;
269
269
 
270
270
  declare type __VLS_NonUndefinedable_26<T> = T extends undefined ? never : T;
271
271
 
272
+ declare type __VLS_NonUndefinedable_27<T> = T extends undefined ? never : T;
273
+
272
274
  declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
273
275
 
274
276
  declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
@@ -335,6 +337,10 @@ declare type __VLS_PrettifyLocal_20<T> = {
335
337
  [K in keyof T]: T[K];
336
338
  } & {};
337
339
 
340
+ declare type __VLS_PrettifyLocal_21<T> = {
341
+ [K in keyof T]: T[K];
342
+ } & {};
343
+
338
344
  declare type __VLS_PrettifyLocal_3<T> = {
339
345
  [K in keyof T]: T[K];
340
346
  } & {};
@@ -670,6 +676,15 @@ declare type __VLS_TypePropsToOption_26<T> = {
670
676
  };
671
677
  };
672
678
 
679
+ declare type __VLS_TypePropsToOption_27<T> = {
680
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
681
+ type: PropType<__VLS_NonUndefinedable_27<T[K]>>;
682
+ } : {
683
+ type: PropType<T[K]>;
684
+ required: true;
685
+ };
686
+ };
687
+
673
688
  declare type __VLS_TypePropsToOption_3<T> = {
674
689
  [K in keyof T]-?: {} extends Pick<T, K> ? {
675
690
  type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
@@ -811,6 +826,12 @@ declare type __VLS_WithDefaults_20<P, D> = {
811
826
  }> : P[K];
812
827
  };
813
828
 
829
+ declare type __VLS_WithDefaults_21<P, D> = {
830
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_21<P[K] & {
831
+ default: D[K];
832
+ }> : P[K];
833
+ };
834
+
814
835
  declare type __VLS_WithDefaults_3<P, D> = {
815
836
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_3<P[K] & {
816
837
  default: D[K];
@@ -1010,16 +1031,20 @@ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS
1010
1031
  color: string;
1011
1032
  confirmLabel: string;
1012
1033
  cancelLabel: string;
1034
+ secondaryColor: string;
1013
1035
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1014
1036
  "update:modelValue": (value: boolean) => void;
1015
1037
  confirm: () => void;
1016
1038
  cancel: () => void;
1039
+ secondary: () => void;
1017
1040
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<ConfirmDeleteDialogProps>, {
1018
1041
  icon: string;
1019
1042
  color: string;
1020
1043
  confirmLabel: string;
1021
1044
  cancelLabel: string;
1045
+ secondaryColor: string;
1022
1046
  }>>> & Readonly<{
1047
+ onSecondary?: (() => any) | undefined;
1023
1048
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1024
1049
  onConfirm?: (() => any) | undefined;
1025
1050
  onCancel?: (() => any) | undefined;
@@ -1028,6 +1053,7 @@ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS
1028
1053
  icon: string;
1029
1054
  confirmLabel: string;
1030
1055
  cancelLabel: string;
1056
+ secondaryColor: string;
1031
1057
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1032
1058
 
1033
1059
  export declare interface ConfirmDeleteDialogProps {
@@ -1038,6 +1064,8 @@ export declare interface ConfirmDeleteDialogProps {
1038
1064
  color?: string;
1039
1065
  confirmLabel?: string;
1040
1066
  cancelLabel?: string;
1067
+ secondaryLabel?: string;
1068
+ secondaryColor?: string;
1041
1069
  }
1042
1070
 
1043
1071
  export declare interface Context {
@@ -1435,7 +1463,7 @@ export declare interface ExportButtonProps<T = any> {
1435
1463
  onError?: (error: unknown) => void;
1436
1464
  }
1437
1465
 
1438
- export declare const ExportDataButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_20<__VLS_TypePropsToOption_26<ExportDataButtonProps>, {
1466
+ export declare const ExportDataButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_21<__VLS_TypePropsToOption_27<ExportDataButtonProps>, {
1439
1467
  label: string;
1440
1468
  color: string;
1441
1469
  disabled: boolean;
@@ -1446,7 +1474,7 @@ export declare const ExportDataButton: DefineComponent<ExtractPropTypes<__VLS_Wi
1446
1474
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1447
1475
  success: () => void;
1448
1476
  error: (error: unknown) => void;
1449
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_20<__VLS_TypePropsToOption_26<ExportDataButtonProps>, {
1477
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_21<__VLS_TypePropsToOption_27<ExportDataButtonProps>, {
1450
1478
  label: string;
1451
1479
  color: string;
1452
1480
  disabled: boolean;
@@ -1564,6 +1592,29 @@ export declare interface ImportErrorsDialogProps {
1564
1592
 
1565
1593
  export declare function isDateSelectable(date: DateInput, minDateProps?: DateInput | null, maxDateProps?: DateInput | null, datesDisabled?: DisabledDate[]): boolean;
1566
1594
 
1595
+ export declare const KpiStatCard: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_20<__VLS_TypePropsToOption_26<KpiStatCardProps>, {
1596
+ icon: undefined;
1597
+ iconColor: string;
1598
+ progressColor: string;
1599
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_20<__VLS_TypePropsToOption_26<KpiStatCardProps>, {
1600
+ icon: undefined;
1601
+ iconColor: string;
1602
+ progressColor: string;
1603
+ }>>> & Readonly<{}>, {
1604
+ icon: string;
1605
+ iconColor: string;
1606
+ progressColor: string;
1607
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1608
+
1609
+ declare interface KpiStatCardProps {
1610
+ title: string;
1611
+ value: number;
1612
+ total: number;
1613
+ icon?: string;
1614
+ iconColor?: string;
1615
+ progressColor?: string;
1616
+ }
1617
+
1567
1618
  export declare const Layout: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1568
1619
 
1569
1620
  export declare interface LayoutProps {