@selfeesas/shared-components 0.4.19 → 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.
@@ -10,7 +10,11 @@ import { RouteLocationRaw } from 'vue-router';
10
10
  import { RouteParamsRaw } from 'vue-router';
11
11
  import { Router } from 'vue-router';
12
12
 
13
- declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_5<SelfeeHeaderProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_5<SelfeeHeaderProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
13
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_5<SelfeeHeaderProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
+ "project-change": (...args: any[]) => void;
15
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_5<SelfeeHeaderProps>>> & Readonly<{
16
+ "onProject-change"?: ((...args: any[]) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
14
18
 
15
19
  declare const __VLS_component_2: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_8<LayoutProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_8<LayoutProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
16
20
 
@@ -109,7 +113,9 @@ declare type __VLS_Props = CheckboxFilterProps & {
109
113
  dataCy?: string;
110
114
  };
111
115
 
112
- declare type __VLS_Props_2 = ExportButtonProps;
116
+ declare type __VLS_Props_2 = SelectSearchProps;
117
+
118
+ declare type __VLS_Props_3 = ExportButtonProps;
113
119
 
114
120
  declare function __VLS_template(): {
115
121
  attrs: Partial<{}>;
@@ -695,9 +701,9 @@ export declare interface EnergyDot {
695
701
  }
696
702
 
697
703
  export declare interface ExcelColumn<T = any> {
698
- field: keyof T & string;
704
+ field: (keyof T & string) | ((row: T) => any);
699
705
  label: string;
700
- format?: (value: T[keyof T]) => string | number | Date;
706
+ format?: (value: any, row: T) => string | number | Date;
701
707
  width?: number;
702
708
  }
703
709
 
@@ -705,7 +711,7 @@ export declare interface ExcelExportFilters {
705
711
  [key: string]: string | number | boolean | null | undefined;
706
712
  }
707
713
 
708
- 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>, {
709
715
  label: string;
710
716
  color: string;
711
717
  disabled: boolean;
@@ -713,7 +719,7 @@ export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDe
713
719
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
714
720
  success: () => void;
715
721
  error: (error: unknown) => void;
716
- }, 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>, {
717
723
  label: string;
718
724
  color: string;
719
725
  disabled: boolean;
@@ -800,8 +806,8 @@ export declare interface NavStore {
800
806
  }
801
807
 
802
808
  export declare interface Pagination {
803
- sortBy: string;
804
- descending: boolean;
809
+ sortBy?: string;
810
+ descending?: boolean;
805
811
  page: number;
806
812
  rowsPerPage: number;
807
813
  rowsNumber?: number;
@@ -841,9 +847,9 @@ export declare interface ProjectSelectionProps {
841
847
  disabledIds?: string[];
842
848
  }
843
849
 
844
- export declare interface SelectOption {
850
+ export declare interface SelectOption<T = any> {
845
851
  label: string;
846
- value: string | number;
852
+ value: string | number | T;
847
853
  [key: string]: any;
848
854
  }
849
855
 
@@ -895,29 +901,29 @@ export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS
895
901
  disabledIds: string[];
896
902
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
897
903
 
898
- 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>, {
899
905
  options: () => never[];
900
906
  label: string;
901
907
  modelValue: null;
902
908
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
903
- "update:modelValue": (val: string | number | null) => void;
904
- }, 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>, {
905
911
  options: () => never[];
906
912
  label: string;
907
913
  modelValue: null;
908
914
  }>>> & Readonly<{
909
- "onUpdate:modelValue"?: ((val: string | number | null) => any) | undefined;
915
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
910
916
  }>, {
911
917
  label: string;
912
- options: SelectOption[];
913
- modelValue: string | number | null;
918
+ options: SelectOption<any>[];
919
+ modelValue: any;
914
920
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
915
921
 
916
- export declare interface SelectSearchProps {
917
- options?: SelectOption[];
918
- fetchOptions?: (searchTerm: string) => Promise<SelectOption[]>;
922
+ export declare interface SelectSearchProps<T = any> {
923
+ options?: SelectOption<T>[];
924
+ fetchOptions?: (searchTerm: string) => Promise<SelectOption<T>[]>;
919
925
  label?: string;
920
- modelValue?: string | number | null;
926
+ modelValue?: string | number | T | null;
921
927
  }
922
928
 
923
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>;
@@ -934,6 +940,13 @@ export declare interface SelfeeHeaderProps {
934
940
  logoSrc: string;
935
941
  logoAlt?: string;
936
942
  logoTo?: string;
943
+ showProjectSwitch?: boolean;
944
+ currentProjectLabel?: string;
945
+ availableProjects?: Array<{
946
+ path: string;
947
+ label: string;
948
+ }>;
949
+ currentPath?: string;
937
950
  }
938
951
 
939
952
  export declare const SelfeeLoader: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_14<SelfeeLoaderProps>, {