@selfeesas/shared-components 0.4.20 → 0.4.21

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.
@@ -113,7 +113,9 @@ declare type __VLS_Props = CheckboxFilterProps & {
113
113
  dataCy?: string;
114
114
  };
115
115
 
116
- declare type __VLS_Props_2 = ExportButtonProps;
116
+ declare type __VLS_Props_2 = SelectSearchProps;
117
+
118
+ declare type __VLS_Props_3 = ExportButtonProps;
117
119
 
118
120
  declare function __VLS_template(): {
119
121
  attrs: Partial<{}>;
@@ -699,9 +701,9 @@ export declare interface EnergyDot {
699
701
  }
700
702
 
701
703
  export declare interface ExcelColumn<T = any> {
702
- field: keyof T & string;
704
+ field: (keyof T & string) | ((row: T) => any);
703
705
  label: string;
704
- format?: (value: T[keyof T]) => string | number | Date;
706
+ format?: (value: any, row: T) => string | number | Date;
705
707
  width?: number;
706
708
  }
707
709
 
@@ -709,7 +711,7 @@ export declare interface ExcelExportFilters {
709
711
  [key: string]: string | number | boolean | null | undefined;
710
712
  }
711
713
 
712
- export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_12<__VLS_Props_2>, {
714
+ export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_12<__VLS_Props_3>, {
713
715
  label: string;
714
716
  color: string;
715
717
  disabled: boolean;
@@ -717,7 +719,7 @@ export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDe
717
719
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
718
720
  success: () => void;
719
721
  error: (error: unknown) => void;
720
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_12<__VLS_Props_2>, {
722
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_12<__VLS_Props_3>, {
721
723
  label: string;
722
724
  color: string;
723
725
  disabled: boolean;
@@ -804,8 +806,8 @@ export declare interface NavStore {
804
806
  }
805
807
 
806
808
  export declare interface Pagination {
807
- sortBy: string;
808
- descending: boolean;
809
+ sortBy?: string;
810
+ descending?: boolean;
809
811
  page: number;
810
812
  rowsPerPage: number;
811
813
  rowsNumber?: number;
@@ -845,9 +847,9 @@ export declare interface ProjectSelectionProps {
845
847
  disabledIds?: string[];
846
848
  }
847
849
 
848
- export declare interface SelectOption {
850
+ export declare interface SelectOption<T = any> {
849
851
  label: string;
850
- value: string | number;
852
+ value: string | number | T;
851
853
  [key: string]: any;
852
854
  }
853
855
 
@@ -899,29 +901,29 @@ export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS
899
901
  disabledIds: string[];
900
902
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
901
903
 
902
- export declare const SelectSearch: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToOption_4<SelectSearchProps>, {
904
+ export declare const SelectSearch: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToOption_4<__VLS_Props_2>, {
903
905
  options: () => never[];
904
906
  label: string;
905
907
  modelValue: null;
906
908
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
907
- "update:modelValue": (val: string | number | null) => void;
908
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToOption_4<SelectSearchProps>, {
909
+ "update:modelValue": (val: any) => void;
910
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToOption_4<__VLS_Props_2>, {
909
911
  options: () => never[];
910
912
  label: string;
911
913
  modelValue: null;
912
914
  }>>> & Readonly<{
913
- "onUpdate:modelValue"?: ((val: string | number | null) => any) | undefined;
915
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
914
916
  }>, {
915
917
  label: string;
916
- options: SelectOption[];
917
- modelValue: string | number | null;
918
+ options: SelectOption<any>[];
919
+ modelValue: any;
918
920
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
919
921
 
920
- export declare interface SelectSearchProps {
921
- options?: SelectOption[];
922
- fetchOptions?: (searchTerm: string) => Promise<SelectOption[]>;
922
+ export declare interface SelectSearchProps<T = any> {
923
+ options?: SelectOption<T>[];
924
+ fetchOptions?: (searchTerm: string) => Promise<SelectOption<T>[]>;
923
925
  label?: string;
924
- modelValue?: string | number | null;
926
+ modelValue?: string | number | T | null;
925
927
  }
926
928
 
927
929
  export declare const SelfeeFooter: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_6<SelfeeFooterProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_6<SelfeeFooterProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;