@selfeesas/shared-components 0.4.18 → 0.4.19
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.
|
@@ -6,6 +6,7 @@ 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
|
|
|
@@ -389,6 +390,14 @@ export declare interface BreadcrumbConfig {
|
|
|
389
390
|
clearActions?: Array<(context: Context) => void>;
|
|
390
391
|
}
|
|
391
392
|
|
|
393
|
+
export declare interface BreadcrumbItem {
|
|
394
|
+
label: string;
|
|
395
|
+
dataCy: string;
|
|
396
|
+
color: string;
|
|
397
|
+
route: RouteLocationRaw;
|
|
398
|
+
clearActions?: Array<() => void>;
|
|
399
|
+
}
|
|
400
|
+
|
|
392
401
|
export declare interface BreadcrumbOptions {
|
|
393
402
|
entity: string;
|
|
394
403
|
dataCy: string;
|
|
@@ -432,7 +441,7 @@ export declare const CheckboxFilter: DefineComponent<ExtractPropTypes<__VLS_With
|
|
|
432
441
|
scrollAreaWidth: string;
|
|
433
442
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
434
443
|
|
|
435
|
-
declare interface CheckboxFilterProps {
|
|
444
|
+
export declare interface CheckboxFilterProps {
|
|
436
445
|
options: CheckboxOption[];
|
|
437
446
|
label?: string;
|
|
438
447
|
modelValue?: CheckboxOption[];
|
|
@@ -440,7 +449,7 @@ declare interface CheckboxFilterProps {
|
|
|
440
449
|
scrollAreaWidth?: string;
|
|
441
450
|
}
|
|
442
451
|
|
|
443
|
-
declare interface CheckboxOption {
|
|
452
|
+
export declare interface CheckboxOption {
|
|
444
453
|
value: string | number;
|
|
445
454
|
label: string;
|
|
446
455
|
disabled?: boolean;
|
|
@@ -454,7 +463,7 @@ export declare interface Context {
|
|
|
454
463
|
|
|
455
464
|
export declare function createBreadcrumb(options: BreadcrumbOptions): BreadcrumbConfig;
|
|
456
465
|
|
|
457
|
-
declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
|
|
466
|
+
export declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
|
|
458
467
|
activeColor?: string;
|
|
459
468
|
separatorIcon?: string;
|
|
460
469
|
separatorSize?: string;
|
|
@@ -468,11 +477,11 @@ declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
|
|
|
468
477
|
|
|
469
478
|
export declare const CustomTable: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
470
479
|
|
|
471
|
-
declare interface CustomTableConditionals {
|
|
480
|
+
export declare interface CustomTableConditionals {
|
|
472
481
|
shouldShowExpandButton?: (row: any) => boolean;
|
|
473
482
|
}
|
|
474
483
|
|
|
475
|
-
declare interface CustomTableProps {
|
|
484
|
+
export declare interface CustomTableProps {
|
|
476
485
|
columns: TableColumn[];
|
|
477
486
|
results: any[];
|
|
478
487
|
filter?: string;
|
|
@@ -483,9 +492,10 @@ declare interface CustomTableProps {
|
|
|
483
492
|
services?: CustomTableServices;
|
|
484
493
|
conditionals?: CustomTableConditionals;
|
|
485
494
|
actions?: TableAction[] | ((row: any) => TableAction[]);
|
|
495
|
+
showSkeleton?: boolean;
|
|
486
496
|
}
|
|
487
497
|
|
|
488
|
-
declare interface CustomTableServices {
|
|
498
|
+
export declare interface CustomTableServices {
|
|
489
499
|
fetchDetails?: (row: any) => Promise<any>;
|
|
490
500
|
redirectToPrm?: (row: any) => void;
|
|
491
501
|
}
|
|
@@ -536,7 +546,7 @@ export declare const DatePicker: DefineComponent<ExtractPropTypes<__VLS_WithDefa
|
|
|
536
546
|
closeLabel: string;
|
|
537
547
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
538
548
|
|
|
539
|
-
declare interface DatePickerProps {
|
|
549
|
+
export declare interface DatePickerProps {
|
|
540
550
|
label?: string;
|
|
541
551
|
date?: string;
|
|
542
552
|
required?: boolean;
|
|
@@ -618,7 +628,7 @@ export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefau
|
|
|
618
628
|
idCy: string;
|
|
619
629
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
620
630
|
|
|
621
|
-
declare interface DateRangeLocale {
|
|
631
|
+
export declare interface DateRangeLocale {
|
|
622
632
|
days?: string[];
|
|
623
633
|
daysShort?: string[];
|
|
624
634
|
months?: string[];
|
|
@@ -628,7 +638,7 @@ declare interface DateRangeLocale {
|
|
|
628
638
|
pluralDay?: string;
|
|
629
639
|
}
|
|
630
640
|
|
|
631
|
-
declare interface DateRangeProps {
|
|
641
|
+
export declare interface DateRangeProps {
|
|
632
642
|
from?: string;
|
|
633
643
|
to?: string;
|
|
634
644
|
labelStart?: string;
|
|
@@ -664,6 +674,10 @@ export declare function dateWithoutTimezone(date: Date): Date;
|
|
|
664
674
|
|
|
665
675
|
export declare const defaultLocale: DateRangeLocale;
|
|
666
676
|
|
|
677
|
+
export declare const defaultProjects: Project[];
|
|
678
|
+
|
|
679
|
+
export declare const defaultProps: Omit<ProjectSelectionProps, 'projects'>;
|
|
680
|
+
|
|
667
681
|
export declare type DisabledDate = string | DisabledDateObject;
|
|
668
682
|
|
|
669
683
|
export declare type DisabledDateObject = {
|
|
@@ -671,14 +685,23 @@ export declare type DisabledDateObject = {
|
|
|
671
685
|
end_date: string | Date;
|
|
672
686
|
};
|
|
673
687
|
|
|
674
|
-
declare interface
|
|
688
|
+
export declare interface EnergyDot {
|
|
689
|
+
size: number;
|
|
690
|
+
x: number;
|
|
691
|
+
y: number;
|
|
692
|
+
delay: number;
|
|
693
|
+
duration: number;
|
|
694
|
+
opacity: number;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export declare interface ExcelColumn<T = any> {
|
|
675
698
|
field: keyof T & string;
|
|
676
699
|
label: string;
|
|
677
700
|
format?: (value: T[keyof T]) => string | number | Date;
|
|
678
701
|
width?: number;
|
|
679
702
|
}
|
|
680
703
|
|
|
681
|
-
declare interface ExcelExportFilters {
|
|
704
|
+
export declare interface ExcelExportFilters {
|
|
682
705
|
[key: string]: string | number | boolean | null | undefined;
|
|
683
706
|
}
|
|
684
707
|
|
|
@@ -705,7 +728,7 @@ export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDe
|
|
|
705
728
|
filters: ExcelExportFilters;
|
|
706
729
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
707
730
|
|
|
708
|
-
declare interface ExportButtonProps<T = any> {
|
|
731
|
+
export declare interface ExportButtonProps<T = any> {
|
|
709
732
|
data: T[];
|
|
710
733
|
columns: Array<ExcelColumn<T>>;
|
|
711
734
|
fileNamePrefix: string;
|
|
@@ -724,15 +747,15 @@ export declare function isDateSelectable(date: DateInput, minDateProps?: DateInp
|
|
|
724
747
|
|
|
725
748
|
export declare const Layout: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
726
749
|
|
|
727
|
-
declare interface LayoutProps {
|
|
750
|
+
export declare interface LayoutProps {
|
|
728
751
|
view?: string;
|
|
729
752
|
layoutClass?: string;
|
|
730
753
|
pageContainerClass?: string;
|
|
731
754
|
}
|
|
732
755
|
|
|
733
|
-
declare type LoaderSize = 'small' | 'medium' | 'large';
|
|
756
|
+
export declare type LoaderSize = 'small' | 'medium' | 'large';
|
|
734
757
|
|
|
735
|
-
declare type LoaderVariant = 'spin' | 'pulse' | 'wave';
|
|
758
|
+
export declare type LoaderVariant = 'spin' | 'pulse' | 'wave';
|
|
736
759
|
|
|
737
760
|
export declare const LoginLayout: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
738
761
|
login: (credentials: {
|
|
@@ -760,7 +783,7 @@ export declare const NavButton: DefineComponent<ExtractPropTypes<__VLS_WithDefau
|
|
|
760
783
|
labelTo: string;
|
|
761
784
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
762
785
|
|
|
763
|
-
declare interface NavButtonProps {
|
|
786
|
+
export declare interface NavButtonProps {
|
|
764
787
|
from: string;
|
|
765
788
|
to?: string;
|
|
766
789
|
labelFrom: string;
|
|
@@ -768,11 +791,15 @@ declare interface NavButtonProps {
|
|
|
768
791
|
params?: RouteParamsRaw;
|
|
769
792
|
}
|
|
770
793
|
|
|
794
|
+
export declare interface NavContext {
|
|
795
|
+
setTabs: () => void;
|
|
796
|
+
}
|
|
797
|
+
|
|
771
798
|
export declare interface NavStore {
|
|
772
799
|
[key: string]: any;
|
|
773
800
|
}
|
|
774
801
|
|
|
775
|
-
declare interface Pagination {
|
|
802
|
+
export declare interface Pagination {
|
|
776
803
|
sortBy: string;
|
|
777
804
|
descending: boolean;
|
|
778
805
|
page: number;
|
|
@@ -781,14 +808,24 @@ declare interface Pagination {
|
|
|
781
808
|
rowsPerPageOptions?: number[];
|
|
782
809
|
}
|
|
783
810
|
|
|
784
|
-
declare interface
|
|
811
|
+
export declare interface Particle {
|
|
812
|
+
size: number;
|
|
813
|
+
x: number;
|
|
814
|
+
y: number;
|
|
815
|
+
delay: number;
|
|
816
|
+
duration: number;
|
|
817
|
+
color: string;
|
|
818
|
+
opacity: number;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
export declare interface Project {
|
|
785
822
|
id: string;
|
|
786
823
|
title: string;
|
|
787
824
|
description: string;
|
|
788
825
|
icon: string;
|
|
789
826
|
}
|
|
790
827
|
|
|
791
|
-
declare interface ProjectSelectionProps {
|
|
828
|
+
export declare interface ProjectSelectionProps {
|
|
792
829
|
title?: string;
|
|
793
830
|
subtitle?: string;
|
|
794
831
|
projects: Project[];
|
|
@@ -804,7 +841,7 @@ declare interface ProjectSelectionProps {
|
|
|
804
841
|
disabledIds?: string[];
|
|
805
842
|
}
|
|
806
843
|
|
|
807
|
-
declare interface SelectOption {
|
|
844
|
+
export declare interface SelectOption {
|
|
808
845
|
label: string;
|
|
809
846
|
value: string | number;
|
|
810
847
|
[key: string]: any;
|
|
@@ -876,7 +913,7 @@ export declare const SelectSearch: DefineComponent<ExtractPropTypes<__VLS_WithDe
|
|
|
876
913
|
modelValue: string | number | null;
|
|
877
914
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
878
915
|
|
|
879
|
-
declare interface SelectSearchProps {
|
|
916
|
+
export declare interface SelectSearchProps {
|
|
880
917
|
options?: SelectOption[];
|
|
881
918
|
fetchOptions?: (searchTerm: string) => Promise<SelectOption[]>;
|
|
882
919
|
label?: string;
|
|
@@ -885,7 +922,7 @@ declare interface SelectSearchProps {
|
|
|
885
922
|
|
|
886
923
|
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
924
|
|
|
888
|
-
declare interface SelfeeFooterProps {
|
|
925
|
+
export declare interface SelfeeFooterProps {
|
|
889
926
|
frontVersion: string;
|
|
890
927
|
backVersion: string;
|
|
891
928
|
platform: string;
|
|
@@ -893,7 +930,7 @@ declare interface SelfeeFooterProps {
|
|
|
893
930
|
|
|
894
931
|
export declare const SelfeeHeader: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
895
932
|
|
|
896
|
-
declare interface SelfeeHeaderProps {
|
|
933
|
+
export declare interface SelfeeHeaderProps {
|
|
897
934
|
logoSrc: string;
|
|
898
935
|
logoAlt?: string;
|
|
899
936
|
logoTo?: string;
|
|
@@ -919,7 +956,7 @@ export declare const SelfeeLoader: DefineComponent<ExtractPropTypes<__VLS_WithDe
|
|
|
919
956
|
speed: number;
|
|
920
957
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
921
958
|
|
|
922
|
-
declare interface SelfeeLoaderProps {
|
|
959
|
+
export declare interface SelfeeLoaderProps {
|
|
923
960
|
size?: LoaderSize;
|
|
924
961
|
variant?: LoaderVariant;
|
|
925
962
|
text?: string;
|
|
@@ -931,7 +968,7 @@ export declare interface Store {
|
|
|
931
968
|
[key: string]: any;
|
|
932
969
|
}
|
|
933
970
|
|
|
934
|
-
declare interface TableAction {
|
|
971
|
+
export declare interface TableAction {
|
|
935
972
|
id: string;
|
|
936
973
|
label?: string;
|
|
937
974
|
icon?: string;
|
|
@@ -949,7 +986,7 @@ declare interface TableAction {
|
|
|
949
986
|
isCancel?: boolean;
|
|
950
987
|
}
|
|
951
988
|
|
|
952
|
-
declare interface TableColumn {
|
|
989
|
+
export declare interface TableColumn {
|
|
953
990
|
name: string;
|
|
954
991
|
label: string;
|
|
955
992
|
field: string | ((row: any) => any);
|
|
@@ -958,14 +995,14 @@ declare interface TableColumn {
|
|
|
958
995
|
format?: (value: any) => string;
|
|
959
996
|
}
|
|
960
997
|
|
|
961
|
-
declare interface TableRequestProps {
|
|
998
|
+
export declare interface TableRequestProps {
|
|
962
999
|
pagination: Pagination;
|
|
963
1000
|
filter?: string;
|
|
964
1001
|
}
|
|
965
1002
|
|
|
966
1003
|
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
1004
|
|
|
968
|
-
declare interface UserAvatarProps {
|
|
1005
|
+
export declare interface UserAvatarProps {
|
|
969
1006
|
username: string;
|
|
970
1007
|
onLogout: () => void;
|
|
971
1008
|
logoutLabel?: string;
|