@selfeesas/shared-components 0.4.18 → 0.4.20
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.
- package/dist/assets/shared-components.css +1 -1
- package/dist/shared-components.cjs.js +3 -3
- package/dist/shared-components.cjs.js.map +1 -1
- package/dist/shared-components.d.ts +77 -29
- package/dist/shared-components.es.js +3031 -2961
- package/dist/shared-components.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,10 +6,15 @@ import { PropType } from 'vue';
|
|
|
6
6
|
import { PublicProps } from 'vue';
|
|
7
7
|
import { QBreadcrumbsProps } from 'quasar';
|
|
8
8
|
import { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
9
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
9
10
|
import { RouteParamsRaw } from 'vue-router';
|
|
10
11
|
import { Router } from 'vue-router';
|
|
11
12
|
|
|
12
|
-
declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_5<SelfeeHeaderProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
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>;
|
|
13
18
|
|
|
14
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>;
|
|
15
20
|
|
|
@@ -389,6 +394,14 @@ export declare interface BreadcrumbConfig {
|
|
|
389
394
|
clearActions?: Array<(context: Context) => void>;
|
|
390
395
|
}
|
|
391
396
|
|
|
397
|
+
export declare interface BreadcrumbItem {
|
|
398
|
+
label: string;
|
|
399
|
+
dataCy: string;
|
|
400
|
+
color: string;
|
|
401
|
+
route: RouteLocationRaw;
|
|
402
|
+
clearActions?: Array<() => void>;
|
|
403
|
+
}
|
|
404
|
+
|
|
392
405
|
export declare interface BreadcrumbOptions {
|
|
393
406
|
entity: string;
|
|
394
407
|
dataCy: string;
|
|
@@ -432,7 +445,7 @@ export declare const CheckboxFilter: DefineComponent<ExtractPropTypes<__VLS_With
|
|
|
432
445
|
scrollAreaWidth: string;
|
|
433
446
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
434
447
|
|
|
435
|
-
declare interface CheckboxFilterProps {
|
|
448
|
+
export declare interface CheckboxFilterProps {
|
|
436
449
|
options: CheckboxOption[];
|
|
437
450
|
label?: string;
|
|
438
451
|
modelValue?: CheckboxOption[];
|
|
@@ -440,7 +453,7 @@ declare interface CheckboxFilterProps {
|
|
|
440
453
|
scrollAreaWidth?: string;
|
|
441
454
|
}
|
|
442
455
|
|
|
443
|
-
declare interface CheckboxOption {
|
|
456
|
+
export declare interface CheckboxOption {
|
|
444
457
|
value: string | number;
|
|
445
458
|
label: string;
|
|
446
459
|
disabled?: boolean;
|
|
@@ -454,7 +467,7 @@ export declare interface Context {
|
|
|
454
467
|
|
|
455
468
|
export declare function createBreadcrumb(options: BreadcrumbOptions): BreadcrumbConfig;
|
|
456
469
|
|
|
457
|
-
declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
|
|
470
|
+
export declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
|
|
458
471
|
activeColor?: string;
|
|
459
472
|
separatorIcon?: string;
|
|
460
473
|
separatorSize?: string;
|
|
@@ -468,11 +481,11 @@ declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
|
|
|
468
481
|
|
|
469
482
|
export declare const CustomTable: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
470
483
|
|
|
471
|
-
declare interface CustomTableConditionals {
|
|
484
|
+
export declare interface CustomTableConditionals {
|
|
472
485
|
shouldShowExpandButton?: (row: any) => boolean;
|
|
473
486
|
}
|
|
474
487
|
|
|
475
|
-
declare interface CustomTableProps {
|
|
488
|
+
export declare interface CustomTableProps {
|
|
476
489
|
columns: TableColumn[];
|
|
477
490
|
results: any[];
|
|
478
491
|
filter?: string;
|
|
@@ -483,9 +496,10 @@ declare interface CustomTableProps {
|
|
|
483
496
|
services?: CustomTableServices;
|
|
484
497
|
conditionals?: CustomTableConditionals;
|
|
485
498
|
actions?: TableAction[] | ((row: any) => TableAction[]);
|
|
499
|
+
showSkeleton?: boolean;
|
|
486
500
|
}
|
|
487
501
|
|
|
488
|
-
declare interface CustomTableServices {
|
|
502
|
+
export declare interface CustomTableServices {
|
|
489
503
|
fetchDetails?: (row: any) => Promise<any>;
|
|
490
504
|
redirectToPrm?: (row: any) => void;
|
|
491
505
|
}
|
|
@@ -536,7 +550,7 @@ export declare const DatePicker: DefineComponent<ExtractPropTypes<__VLS_WithDefa
|
|
|
536
550
|
closeLabel: string;
|
|
537
551
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
538
552
|
|
|
539
|
-
declare interface DatePickerProps {
|
|
553
|
+
export declare interface DatePickerProps {
|
|
540
554
|
label?: string;
|
|
541
555
|
date?: string;
|
|
542
556
|
required?: boolean;
|
|
@@ -618,7 +632,7 @@ export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefau
|
|
|
618
632
|
idCy: string;
|
|
619
633
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
620
634
|
|
|
621
|
-
declare interface DateRangeLocale {
|
|
635
|
+
export declare interface DateRangeLocale {
|
|
622
636
|
days?: string[];
|
|
623
637
|
daysShort?: string[];
|
|
624
638
|
months?: string[];
|
|
@@ -628,7 +642,7 @@ declare interface DateRangeLocale {
|
|
|
628
642
|
pluralDay?: string;
|
|
629
643
|
}
|
|
630
644
|
|
|
631
|
-
declare interface DateRangeProps {
|
|
645
|
+
export declare interface DateRangeProps {
|
|
632
646
|
from?: string;
|
|
633
647
|
to?: string;
|
|
634
648
|
labelStart?: string;
|
|
@@ -664,6 +678,10 @@ export declare function dateWithoutTimezone(date: Date): Date;
|
|
|
664
678
|
|
|
665
679
|
export declare const defaultLocale: DateRangeLocale;
|
|
666
680
|
|
|
681
|
+
export declare const defaultProjects: Project[];
|
|
682
|
+
|
|
683
|
+
export declare const defaultProps: Omit<ProjectSelectionProps, 'projects'>;
|
|
684
|
+
|
|
667
685
|
export declare type DisabledDate = string | DisabledDateObject;
|
|
668
686
|
|
|
669
687
|
export declare type DisabledDateObject = {
|
|
@@ -671,14 +689,23 @@ export declare type DisabledDateObject = {
|
|
|
671
689
|
end_date: string | Date;
|
|
672
690
|
};
|
|
673
691
|
|
|
674
|
-
declare interface
|
|
692
|
+
export declare interface EnergyDot {
|
|
693
|
+
size: number;
|
|
694
|
+
x: number;
|
|
695
|
+
y: number;
|
|
696
|
+
delay: number;
|
|
697
|
+
duration: number;
|
|
698
|
+
opacity: number;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export declare interface ExcelColumn<T = any> {
|
|
675
702
|
field: keyof T & string;
|
|
676
703
|
label: string;
|
|
677
704
|
format?: (value: T[keyof T]) => string | number | Date;
|
|
678
705
|
width?: number;
|
|
679
706
|
}
|
|
680
707
|
|
|
681
|
-
declare interface ExcelExportFilters {
|
|
708
|
+
export declare interface ExcelExportFilters {
|
|
682
709
|
[key: string]: string | number | boolean | null | undefined;
|
|
683
710
|
}
|
|
684
711
|
|
|
@@ -705,7 +732,7 @@ export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDe
|
|
|
705
732
|
filters: ExcelExportFilters;
|
|
706
733
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
707
734
|
|
|
708
|
-
declare interface ExportButtonProps<T = any> {
|
|
735
|
+
export declare interface ExportButtonProps<T = any> {
|
|
709
736
|
data: T[];
|
|
710
737
|
columns: Array<ExcelColumn<T>>;
|
|
711
738
|
fileNamePrefix: string;
|
|
@@ -724,15 +751,15 @@ export declare function isDateSelectable(date: DateInput, minDateProps?: DateInp
|
|
|
724
751
|
|
|
725
752
|
export declare const Layout: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
726
753
|
|
|
727
|
-
declare interface LayoutProps {
|
|
754
|
+
export declare interface LayoutProps {
|
|
728
755
|
view?: string;
|
|
729
756
|
layoutClass?: string;
|
|
730
757
|
pageContainerClass?: string;
|
|
731
758
|
}
|
|
732
759
|
|
|
733
|
-
declare type LoaderSize = 'small' | 'medium' | 'large';
|
|
760
|
+
export declare type LoaderSize = 'small' | 'medium' | 'large';
|
|
734
761
|
|
|
735
|
-
declare type LoaderVariant = 'spin' | 'pulse' | 'wave';
|
|
762
|
+
export declare type LoaderVariant = 'spin' | 'pulse' | 'wave';
|
|
736
763
|
|
|
737
764
|
export declare const LoginLayout: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
738
765
|
login: (credentials: {
|
|
@@ -760,7 +787,7 @@ export declare const NavButton: DefineComponent<ExtractPropTypes<__VLS_WithDefau
|
|
|
760
787
|
labelTo: string;
|
|
761
788
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
762
789
|
|
|
763
|
-
declare interface NavButtonProps {
|
|
790
|
+
export declare interface NavButtonProps {
|
|
764
791
|
from: string;
|
|
765
792
|
to?: string;
|
|
766
793
|
labelFrom: string;
|
|
@@ -768,11 +795,15 @@ declare interface NavButtonProps {
|
|
|
768
795
|
params?: RouteParamsRaw;
|
|
769
796
|
}
|
|
770
797
|
|
|
798
|
+
export declare interface NavContext {
|
|
799
|
+
setTabs: () => void;
|
|
800
|
+
}
|
|
801
|
+
|
|
771
802
|
export declare interface NavStore {
|
|
772
803
|
[key: string]: any;
|
|
773
804
|
}
|
|
774
805
|
|
|
775
|
-
declare interface Pagination {
|
|
806
|
+
export declare interface Pagination {
|
|
776
807
|
sortBy: string;
|
|
777
808
|
descending: boolean;
|
|
778
809
|
page: number;
|
|
@@ -781,14 +812,24 @@ declare interface Pagination {
|
|
|
781
812
|
rowsPerPageOptions?: number[];
|
|
782
813
|
}
|
|
783
814
|
|
|
784
|
-
declare interface
|
|
815
|
+
export declare interface Particle {
|
|
816
|
+
size: number;
|
|
817
|
+
x: number;
|
|
818
|
+
y: number;
|
|
819
|
+
delay: number;
|
|
820
|
+
duration: number;
|
|
821
|
+
color: string;
|
|
822
|
+
opacity: number;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export declare interface Project {
|
|
785
826
|
id: string;
|
|
786
827
|
title: string;
|
|
787
828
|
description: string;
|
|
788
829
|
icon: string;
|
|
789
830
|
}
|
|
790
831
|
|
|
791
|
-
declare interface ProjectSelectionProps {
|
|
832
|
+
export declare interface ProjectSelectionProps {
|
|
792
833
|
title?: string;
|
|
793
834
|
subtitle?: string;
|
|
794
835
|
projects: Project[];
|
|
@@ -804,7 +845,7 @@ declare interface ProjectSelectionProps {
|
|
|
804
845
|
disabledIds?: string[];
|
|
805
846
|
}
|
|
806
847
|
|
|
807
|
-
declare interface SelectOption {
|
|
848
|
+
export declare interface SelectOption {
|
|
808
849
|
label: string;
|
|
809
850
|
value: string | number;
|
|
810
851
|
[key: string]: any;
|
|
@@ -876,7 +917,7 @@ export declare const SelectSearch: DefineComponent<ExtractPropTypes<__VLS_WithDe
|
|
|
876
917
|
modelValue: string | number | null;
|
|
877
918
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
878
919
|
|
|
879
|
-
declare interface SelectSearchProps {
|
|
920
|
+
export declare interface SelectSearchProps {
|
|
880
921
|
options?: SelectOption[];
|
|
881
922
|
fetchOptions?: (searchTerm: string) => Promise<SelectOption[]>;
|
|
882
923
|
label?: string;
|
|
@@ -885,7 +926,7 @@ declare interface SelectSearchProps {
|
|
|
885
926
|
|
|
886
927
|
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>;
|
|
887
928
|
|
|
888
|
-
declare interface SelfeeFooterProps {
|
|
929
|
+
export declare interface SelfeeFooterProps {
|
|
889
930
|
frontVersion: string;
|
|
890
931
|
backVersion: string;
|
|
891
932
|
platform: string;
|
|
@@ -893,10 +934,17 @@ declare interface SelfeeFooterProps {
|
|
|
893
934
|
|
|
894
935
|
export declare const SelfeeHeader: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
895
936
|
|
|
896
|
-
declare interface SelfeeHeaderProps {
|
|
937
|
+
export declare interface SelfeeHeaderProps {
|
|
897
938
|
logoSrc: string;
|
|
898
939
|
logoAlt?: string;
|
|
899
940
|
logoTo?: string;
|
|
941
|
+
showProjectSwitch?: boolean;
|
|
942
|
+
currentProjectLabel?: string;
|
|
943
|
+
availableProjects?: Array<{
|
|
944
|
+
path: string;
|
|
945
|
+
label: string;
|
|
946
|
+
}>;
|
|
947
|
+
currentPath?: string;
|
|
900
948
|
}
|
|
901
949
|
|
|
902
950
|
export declare const SelfeeLoader: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_14<SelfeeLoaderProps>, {
|
|
@@ -919,7 +967,7 @@ export declare const SelfeeLoader: DefineComponent<ExtractPropTypes<__VLS_WithDe
|
|
|
919
967
|
speed: number;
|
|
920
968
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
921
969
|
|
|
922
|
-
declare interface SelfeeLoaderProps {
|
|
970
|
+
export declare interface SelfeeLoaderProps {
|
|
923
971
|
size?: LoaderSize;
|
|
924
972
|
variant?: LoaderVariant;
|
|
925
973
|
text?: string;
|
|
@@ -931,7 +979,7 @@ export declare interface Store {
|
|
|
931
979
|
[key: string]: any;
|
|
932
980
|
}
|
|
933
981
|
|
|
934
|
-
declare interface TableAction {
|
|
982
|
+
export declare interface TableAction {
|
|
935
983
|
id: string;
|
|
936
984
|
label?: string;
|
|
937
985
|
icon?: string;
|
|
@@ -949,7 +997,7 @@ declare interface TableAction {
|
|
|
949
997
|
isCancel?: boolean;
|
|
950
998
|
}
|
|
951
999
|
|
|
952
|
-
declare interface TableColumn {
|
|
1000
|
+
export declare interface TableColumn {
|
|
953
1001
|
name: string;
|
|
954
1002
|
label: string;
|
|
955
1003
|
field: string | ((row: any) => any);
|
|
@@ -958,14 +1006,14 @@ declare interface TableColumn {
|
|
|
958
1006
|
format?: (value: any) => string;
|
|
959
1007
|
}
|
|
960
1008
|
|
|
961
|
-
declare interface TableRequestProps {
|
|
1009
|
+
export declare interface TableRequestProps {
|
|
962
1010
|
pagination: Pagination;
|
|
963
1011
|
filter?: string;
|
|
964
1012
|
}
|
|
965
1013
|
|
|
966
1014
|
export declare const UserAvatar: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_7<UserAvatarProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_7<UserAvatarProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
967
1015
|
|
|
968
|
-
declare interface UserAvatarProps {
|
|
1016
|
+
export declare interface UserAvatarProps {
|
|
969
1017
|
username: string;
|
|
970
1018
|
onLogout: () => void;
|
|
971
1019
|
logoutLabel?: string;
|