@selfeesas/shared-components 1.3.3 → 1.4.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.
@@ -5,6 +5,7 @@ import { ExtractPropTypes } from 'vue';
5
5
  import { PropType } from 'vue';
6
6
  import { PublicProps } from 'vue';
7
7
  import { QBreadcrumbsProps } from 'quasar';
8
+ import { Ref } from 'vue';
8
9
  import { RouteLocationNormalizedLoaded } from 'vue-router';
9
10
  import { RouteLocationRaw } from 'vue-router';
10
11
  import { RouteParamsRaw } from 'vue-router';
@@ -18,72 +19,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_TypePropsT
18
19
 
19
20
  declare const __VLS_component_2: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_9<LayoutProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_9<LayoutProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
20
21
 
21
- declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToOption_12<CustomTableProps>, {
22
- filter: null;
23
- loading: boolean;
24
- rowKey: string;
25
- services: () => {};
26
- conditionals: () => {};
27
- actions: () => never[];
28
- rowClasses: undefined;
29
- selection: string;
30
- selected: () => never[];
31
- selectable: () => true;
32
- showSelectAll: boolean;
33
- showSkeleton: boolean;
34
- showColumnToggle: boolean;
35
- columnStorageKey: undefined;
36
- }>>, {
37
- clearSelection: typeof clearSelection;
38
- getSelectedRows: () => any[];
39
- toggleRowSelection: typeof toggleRowSelection;
40
- toggleSelectAll: typeof toggleSelectAll;
41
- toggleColumnVisibility: (columnName: string) => void;
42
- resetColumns: () => void;
43
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
44
- "update:pagination": (...args: any[]) => void;
45
- "update:selected": (...args: any[]) => void;
46
- "selection-change": (...args: any[]) => void;
47
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToOption_12<CustomTableProps>, {
48
- filter: null;
49
- loading: boolean;
50
- rowKey: string;
51
- services: () => {};
52
- conditionals: () => {};
53
- actions: () => never[];
54
- rowClasses: undefined;
55
- selection: string;
56
- selected: () => never[];
57
- selectable: () => true;
58
- showSelectAll: boolean;
59
- showSkeleton: boolean;
60
- showColumnToggle: boolean;
61
- columnStorageKey: undefined;
62
- }>>> & Readonly<{
63
- "onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
64
- "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
65
- "onSelection-change"?: ((...args: any[]) => any) | undefined;
66
- }>, {
67
- filter: string | null;
68
- loading: boolean;
69
- rowKey: string;
70
- services: CustomTableServices;
71
- conditionals: CustomTableConditionals;
72
- actions: TableAction[] | ((row: any) => TableAction[]);
73
- showSkeleton: boolean;
74
- rowClasses: string | ((row: any) => string);
75
- selection: "single" | "multiple" | "none";
76
- selected: any[];
77
- selectable: (row: any) => boolean;
78
- showSelectAll: boolean;
79
- showColumnToggle: boolean;
80
- columnStorageKey: string;
81
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
82
-
83
- declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_19<Props_2>, {
22
+ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<Props_2>, {
84
23
  to: string;
85
24
  useDiv: boolean;
86
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_19<Props_2>, {
25
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<Props_2>, {
87
26
  to: string;
88
27
  useDiv: boolean;
89
28
  }>>> & Readonly<{}>, {
@@ -91,7 +30,7 @@ declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefa
91
30
  useDiv: boolean;
92
31
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
93
32
 
94
- declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_20<SelfeeCardProps>, {
33
+ declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_19<SelfeeCardProps>, {
95
34
  showHeader: boolean;
96
35
  colorScheme: string;
97
36
  shadowIntensity: string;
@@ -106,7 +45,7 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefa
106
45
  subtitle: string;
107
46
  title: string;
108
47
  contentGap: boolean;
109
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_20<SelfeeCardProps>, {
48
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_19<SelfeeCardProps>, {
110
49
  showHeader: boolean;
111
50
  colorScheme: string;
112
51
  shadowIntensity: string;
@@ -126,26 +65,26 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefa
126
65
  dense: boolean;
127
66
  rounded: boolean;
128
67
  title: string;
129
- bordered: boolean;
130
68
  subtitle: string;
131
69
  showHeader: boolean;
132
70
  colorScheme: "primary" | "secondary" | "accent" | "info" | "warning" | "error" | "success" | "neutral";
133
71
  shadowIntensity: "none" | "light" | "medium" | "heavy";
134
72
  noPadding: boolean;
135
73
  hoverable: boolean;
74
+ bordered: boolean;
136
75
  centerTitle: boolean;
137
76
  centerActions: boolean;
138
77
  contentGap: boolean | string;
139
78
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
140
79
 
141
- declare const __VLS_component_6: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<SmartFiltersProps>, {
80
+ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_20<SmartFiltersProps>, {
142
81
  containerClass: string;
143
82
  rowClass: string;
144
83
  activeHiddenCount: number;
145
84
  hasActiveFilters: boolean;
146
85
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
147
86
  reset: () => void;
148
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<SmartFiltersProps>, {
87
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_20<SmartFiltersProps>, {
149
88
  containerClass: string;
150
89
  rowClass: string;
151
90
  activeHiddenCount: number;
@@ -159,7 +98,7 @@ declare const __VLS_component_6: DefineComponent<ExtractPropTypes<__VLS_WithDefa
159
98
  activeHiddenCount: number;
160
99
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
161
100
 
162
- declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_23<CustomTableProps_2>, {
101
+ declare const __VLS_component_6: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<CustomTableProps>, {
163
102
  filter: null;
164
103
  loading: boolean;
165
104
  pagination: () => {
@@ -186,21 +125,28 @@ declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefa
186
125
  defaultRowsPerPage: number;
187
126
  initialParams: () => {};
188
127
  filterSelected: () => {};
128
+ multiSort: boolean;
129
+ maxSortFields: number;
189
130
  }>>, {
190
- clearSelection: typeof clearSelection_2;
131
+ clearSelection: typeof clearSelection;
191
132
  getSelectedRows: () => any[];
192
- toggleRowSelection: typeof toggleRowSelection_2;
193
- toggleSelectAll: typeof toggleSelectAll_2;
133
+ toggleRowSelection: typeof toggleRowSelection;
134
+ toggleSelectAll: typeof toggleSelectAll;
194
135
  toggleColumnVisibility: (columnName: string) => void;
195
136
  resetColumns: () => void;
196
137
  refresh: () => Promise<void>;
138
+ getSortIndicator: (columnName: string) => {
139
+ direction: "asc" | "desc" | null;
140
+ order: number;
141
+ };
142
+ clearSort: () => void;
197
143
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
198
144
  "update:pagination": (...args: any[]) => void;
199
145
  "update:selected": (...args: any[]) => void;
200
146
  "selection-change": (...args: any[]) => void;
201
147
  "data-loaded": (...args: any[]) => void;
202
148
  "loading-change": (...args: any[]) => void;
203
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_23<CustomTableProps_2>, {
149
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<CustomTableProps>, {
204
150
  filter: null;
205
151
  loading: boolean;
206
152
  pagination: () => {
@@ -227,6 +173,8 @@ declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefa
227
173
  defaultRowsPerPage: number;
228
174
  initialParams: () => {};
229
175
  filterSelected: () => {};
176
+ multiSort: boolean;
177
+ maxSortFields: number;
230
178
  }>>> & Readonly<{
231
179
  "onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
232
180
  "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
@@ -236,21 +184,23 @@ declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefa
236
184
  }>, {
237
185
  filter: string | null;
238
186
  loading: boolean;
239
- pagination: Pagination_2;
240
- rowKey: string;
241
- services: CustomTableServices_2;
242
- conditionals: CustomTableConditionals_2;
243
- actions: TableAction_2[] | ((row: any) => TableAction_2[]);
244
- showSkeleton: boolean;
245
- rowClasses: string | ((row: any) => string);
246
- selection: "single" | "multiple" | "none";
187
+ persistKey: string;
188
+ pagination: Pagination;
189
+ defaultRowsPerPage: number;
247
190
  selected: any[];
191
+ rowKey: string;
192
+ selection: SelectionMode_2;
248
193
  selectable: (row: any) => boolean;
249
194
  showSelectAll: boolean;
195
+ rowClasses: string | ((row: any) => string);
196
+ services: CustomTableServices;
197
+ conditionals: CustomTableConditionals;
198
+ actions: TableAction[] | ((row: any) => TableAction[]);
199
+ showSkeleton: boolean;
250
200
  showColumnToggle: boolean;
251
201
  columnStorageKey: string;
252
- persistKey: string;
253
- defaultRowsPerPage: number;
202
+ multiSort: boolean;
203
+ maxSortFields: number;
254
204
  useBuiltInPagination: boolean;
255
205
  fetchDataFn: (params?: Record<string, any>) => Promise<any> | void;
256
206
  initialParams: Record<string, any>;
@@ -287,8 +237,6 @@ declare type __VLS_NonUndefinedable_21<T> = T extends undefined ? never : T;
287
237
 
288
238
  declare type __VLS_NonUndefinedable_22<T> = T extends undefined ? never : T;
289
239
 
290
- declare type __VLS_NonUndefinedable_23<T> = T extends undefined ? never : T;
291
-
292
240
  declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
293
241
 
294
242
  declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
@@ -335,10 +283,6 @@ declare type __VLS_PrettifyLocal_16<T> = {
335
283
  [K in keyof T]: T[K];
336
284
  } & {};
337
285
 
338
- declare type __VLS_PrettifyLocal_17<T> = {
339
- [K in keyof T]: T[K];
340
- } & {};
341
-
342
286
  declare type __VLS_PrettifyLocal_2<T> = {
343
287
  [K in keyof T]: T[K];
344
288
  } & {};
@@ -426,32 +370,6 @@ declare function __VLS_template_2(): {
426
370
  };
427
371
 
428
372
  declare function __VLS_template_3(): {
429
- attrs: Partial<{}>;
430
- slots: {
431
- 'selection-actions'?(_: {
432
- selected: any[];
433
- clearSelection: typeof clearSelection;
434
- }): any;
435
- 'expand-button'?(_: {
436
- row: any;
437
- expanded: boolean;
438
- toggle: () => Promise<void>;
439
- }): any;
440
- 'body-cell'?(_: {
441
- row: any;
442
- col: any;
443
- value: any;
444
- badgeConfig: BadgeConfig | null;
445
- }): any;
446
- expanded?(_: {
447
- row: any;
448
- }): any;
449
- };
450
- refs: {};
451
- rootEl: any;
452
- };
453
-
454
- declare function __VLS_template_4(): {
455
373
  attrs: Partial<{}>;
456
374
  slots: {
457
375
  default?(_: {}): any;
@@ -461,7 +379,7 @@ declare function __VLS_template_4(): {
461
379
  rootEl: any;
462
380
  };
463
381
 
464
- declare function __VLS_template_5(): {
382
+ declare function __VLS_template_4(): {
465
383
  attrs: Partial<{}>;
466
384
  slots: {
467
385
  header?(_: {}): any;
@@ -472,7 +390,7 @@ declare function __VLS_template_5(): {
472
390
  rootEl: any;
473
391
  };
474
392
 
475
- declare function __VLS_template_6(): {
393
+ declare function __VLS_template_5(): {
476
394
  attrs: Partial<{}>;
477
395
  slots: {
478
396
  visible?(_: {}): any;
@@ -483,12 +401,12 @@ declare function __VLS_template_6(): {
483
401
  rootEl: HTMLDivElement;
484
402
  };
485
403
 
486
- declare function __VLS_template_7(): {
404
+ declare function __VLS_template_6(): {
487
405
  attrs: Partial<{}>;
488
406
  slots: {
489
407
  'selection-actions'?(_: {
490
408
  selected: any[];
491
- clearSelection: typeof clearSelection_2;
409
+ clearSelection: typeof clearSelection;
492
410
  }): any;
493
411
  'expand-button'?(_: {
494
412
  row: any;
@@ -521,8 +439,6 @@ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
521
439
 
522
440
  declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
523
441
 
524
- declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
525
-
526
442
  declare type __VLS_TypePropsToOption<T> = {
527
443
  [K in keyof T]-?: {} extends Pick<T, K> ? {
528
444
  type: PropType<__VLS_NonUndefinedable<T[K]>>;
@@ -658,15 +574,6 @@ declare type __VLS_TypePropsToOption_22<T> = {
658
574
  };
659
575
  };
660
576
 
661
- declare type __VLS_TypePropsToOption_23<T> = {
662
- [K in keyof T]-?: {} extends Pick<T, K> ? {
663
- type: PropType<__VLS_NonUndefinedable_23<T[K]>>;
664
- } : {
665
- type: PropType<T[K]>;
666
- required: true;
667
- };
668
- };
669
-
670
577
  declare type __VLS_TypePropsToOption_3<T> = {
671
578
  [K in keyof T]-?: {} extends Pick<T, K> ? {
672
579
  type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
@@ -778,12 +685,6 @@ declare type __VLS_WithDefaults_16<P, D> = {
778
685
  }> : P[K];
779
686
  };
780
687
 
781
- declare type __VLS_WithDefaults_17<P, D> = {
782
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_17<P[K] & {
783
- default: D[K];
784
- }> : P[K];
785
- };
786
-
787
688
  declare type __VLS_WithDefaults_2<P, D> = {
788
689
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_2<P[K] & {
789
690
  default: D[K];
@@ -868,18 +769,16 @@ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
868
769
  };
869
770
  };
870
771
 
871
- declare type __VLS_WithTemplateSlots_7<T, S> = T & {
872
- new (): {
873
- $slots: S;
874
- };
875
- };
772
+ export declare type ActionPosition = 'row' | 'cell' | 'both';
876
773
 
877
- declare interface BadgeConfig {
774
+ export declare type Align = 'left' | 'right' | 'center';
775
+
776
+ export declare interface BadgeConfig {
878
777
  color?: string;
879
778
  label?: string;
880
779
  outline?: boolean;
881
780
  rounded?: boolean;
882
- size?: 'sm' | 'md';
781
+ size?: BadgeSize;
883
782
  icon?: string;
884
783
  class?: string;
885
784
  }
@@ -894,6 +793,8 @@ declare interface BadgeConfig_2 {
894
793
  class?: string;
895
794
  }
896
795
 
796
+ export declare type BadgeSize = 'sm' | 'md';
797
+
897
798
  export declare interface BreadcrumbConfig {
898
799
  entity: string;
899
800
  dataCy: string;
@@ -973,9 +874,11 @@ export declare interface CheckboxOption {
973
874
 
974
875
  declare function clearSelection(): void;
975
876
 
976
- declare function clearSelection_2(): void;
877
+ export declare interface ColumnVisibilityState {
878
+ [columnName: string]: boolean;
879
+ }
977
880
 
978
- export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<ConfirmDeleteDialogProps>, {
881
+ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_17<ConfirmDeleteDialogProps>, {
979
882
  icon: string;
980
883
  color: string;
981
884
  confirmLabel: string;
@@ -984,7 +887,7 @@ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS
984
887
  "update:modelValue": (value: boolean) => void;
985
888
  confirm: () => void;
986
889
  cancel: () => void;
987
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<ConfirmDeleteDialogProps>, {
890
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_17<ConfirmDeleteDialogProps>, {
988
891
  icon: string;
989
892
  color: string;
990
893
  confirmLabel: string;
@@ -1030,62 +933,34 @@ export declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
1030
933
  breadcrumbConfig: BreadcrumbConfig[];
1031
934
  }
1032
935
 
1033
- export declare const CustomTable: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1034
-
1035
936
  export declare interface CustomTableConditionals {
1036
- shouldShowExpandButton?: (row: any) => boolean;
1037
- shouldShowSelectionColumn?: () => boolean;
1038
- }
1039
-
1040
- declare interface CustomTableConditionals_2 {
1041
- shouldShowExpandButton?: (row: any) => boolean;
937
+ shouldShowExpandButton?: (row: Record<string, any>) => boolean;
1042
938
  shouldShowSelectionColumn?: () => boolean;
1043
939
  }
1044
940
 
1045
941
  export declare interface CustomTableProps {
1046
942
  columns: TableColumn[];
1047
- results: any[];
1048
- filter?: string | null;
943
+ results?: any[];
1049
944
  pagination: Pagination;
1050
945
  loading?: boolean;
1051
- onRequest?: (props: TableRequestProps) => void;
1052
- rowKey?: string;
1053
- services?: CustomTableServices;
1054
- conditionals?: CustomTableConditionals;
1055
- actions?: TableAction[] | ((row: any) => TableAction[]);
1056
- showSkeleton?: boolean;
1057
- rowClasses?: string | ((row: any) => string);
1058
- selection?: 'single' | 'multiple' | 'none';
946
+ filter?: string | null;
1059
947
  selected?: any[];
948
+ onRequest?: (props: TableRequestProps) => void;
1060
949
  onSelectionChange?: (selected: any[]) => void;
1061
- selectable?: (row: any) => boolean;
1062
- showSelectAll?: boolean;
1063
- showColumnToggle?: boolean;
1064
- columnStorageKey?: string;
1065
950
  onRowDblClick?: (row: any) => void;
1066
- }
1067
-
1068
- declare interface CustomTableProps_2 {
1069
- columns: TableColumn_2[];
1070
- results?: any[];
1071
- filter?: string | null;
1072
- pagination: Pagination_2;
1073
- loading?: boolean;
1074
- onRequest?: (props: TableRequestProps_2) => void;
1075
951
  rowKey?: string;
1076
- services?: CustomTableServices_2;
1077
- conditionals?: CustomTableConditionals_2;
1078
- actions?: TableAction_2[] | ((row: any) => TableAction_2[]);
1079
- showSkeleton?: boolean;
1080
- rowClasses?: string | ((row: any) => string);
1081
- selection?: 'single' | 'multiple' | 'none';
1082
- selected?: any[];
1083
- onSelectionChange?: (selected: any[]) => void;
952
+ selection?: SelectionMode_2;
1084
953
  selectable?: (row: any) => boolean;
1085
954
  showSelectAll?: boolean;
955
+ rowClasses?: string | ((row: any) => string);
956
+ services?: CustomTableServices;
957
+ conditionals?: CustomTableConditionals;
958
+ actions?: TableAction[] | ((row: any) => TableAction[]);
959
+ showSkeleton?: boolean;
1086
960
  showColumnToggle?: boolean;
1087
961
  columnStorageKey?: string;
1088
- onRowDblClick?: (row: any) => void;
962
+ multiSort?: boolean;
963
+ maxSortFields?: number;
1089
964
  useBuiltInPagination?: boolean;
1090
965
  fetchDataFn?: (params?: Record<string, any>) => Promise<any> | void;
1091
966
  persistKey?: string;
@@ -1095,13 +970,8 @@ declare interface CustomTableProps_2 {
1095
970
  }
1096
971
 
1097
972
  export declare interface CustomTableServices {
1098
- fetchDetails?: (row: any) => Promise<any>;
1099
- redirectToPrm?: (row: any) => void;
1100
- }
1101
-
1102
- declare interface CustomTableServices_2 {
1103
- fetchDetails?: (row: any) => Promise<any>;
1104
- redirectToPrm?: (row: any) => void;
973
+ fetchDetails?: (row: Record<string, any>) => Promise<any>;
974
+ redirectToPrm?: (row: Record<string, any>) => void;
1105
975
  }
1106
976
 
1107
977
  export declare const DATE_FORMAT_REGEX: RegExp;
@@ -1376,7 +1246,7 @@ export declare type DisabledDateObject = {
1376
1246
  end_date: string | Date;
1377
1247
  };
1378
1248
 
1379
- export declare const DynamicTeleport: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1249
+ export declare const DynamicTeleport: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1380
1250
 
1381
1251
  export declare interface EnergyDot {
1382
1252
  size: number;
@@ -1398,7 +1268,7 @@ export declare interface ExcelExportFilters {
1398
1268
  [key: string]: string | number | boolean | string[] | null | undefined;
1399
1269
  }
1400
1270
 
1401
- export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_13<__VLS_Props_3>, {
1271
+ export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToOption_12<__VLS_Props_3>, {
1402
1272
  label: string;
1403
1273
  color: string;
1404
1274
  disabled: boolean;
@@ -1406,7 +1276,7 @@ export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDe
1406
1276
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1407
1277
  success: () => void;
1408
1278
  error: (error: unknown) => void;
1409
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_13<__VLS_Props_3>, {
1279
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToOption_12<__VLS_Props_3>, {
1410
1280
  label: string;
1411
1281
  color: string;
1412
1282
  disabled: boolean;
@@ -1461,12 +1331,12 @@ export declare type LoaderSize = 'small' | 'medium' | 'large';
1461
1331
 
1462
1332
  export declare type LoaderVariant = 'spin' | 'pulse' | 'wave';
1463
1333
 
1464
- export declare const LoginLayout: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_14<__VLS_Props_4>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1334
+ export declare const LoginLayout: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_13<__VLS_Props_4>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1465
1335
  login: (credentials: {
1466
1336
  username: string;
1467
1337
  password: string;
1468
1338
  }) => void;
1469
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_14<__VLS_Props_4>>> & Readonly<{
1339
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_13<__VLS_Props_4>>> & Readonly<{
1470
1340
  onLogin?: ((credentials: {
1471
1341
  username: string;
1472
1342
  password: string;
@@ -1508,21 +1378,17 @@ export declare interface NavStore {
1508
1378
  }
1509
1379
 
1510
1380
  export declare interface Pagination {
1511
- sortBy?: string;
1512
- descending?: boolean;
1513
1381
  page: number;
1514
1382
  rowsPerPage: number;
1515
1383
  rowsNumber?: number;
1516
1384
  rowsPerPageOptions?: number[];
1385
+ sortBy?: string | string[];
1386
+ descending?: boolean | boolean[];
1517
1387
  }
1518
1388
 
1519
- declare interface Pagination_2 {
1520
- sortBy?: string;
1521
- descending?: boolean;
1522
- page: number;
1523
- rowsPerPage: number;
1524
- rowsNumber?: number;
1525
- rowsPerPageOptions?: number[];
1389
+ export declare interface PaginationOptions {
1390
+ persistKey?: string;
1391
+ defaultRowsPerPage?: number;
1526
1392
  }
1527
1393
 
1528
1394
  export declare function parseDate(dateStr: string): Date;
@@ -1537,7 +1403,7 @@ export declare interface Particle {
1537
1403
  opacity: number;
1538
1404
  }
1539
1405
 
1540
- export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<PersistentDateRangeProps>, {
1406
+ export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<PersistentDateRangeProps>, {
1541
1407
  modelValue: () => {
1542
1408
  from: string;
1543
1409
  to: string;
@@ -1572,7 +1438,7 @@ export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS
1572
1438
  "update:modelValue": (value: DateRangeValue) => void;
1573
1439
  clear: () => void;
1574
1440
  "update:dateRange": (value: DateRangeValue) => void;
1575
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<PersistentDateRangeProps>, {
1441
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<PersistentDateRangeProps>, {
1576
1442
  modelValue: () => {
1577
1443
  from: string;
1578
1444
  to: string;
@@ -1662,12 +1528,23 @@ declare interface Props_2 {
1662
1528
  to?: string;
1663
1529
  }
1664
1530
 
1665
- export declare const ResetFiltersButton: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_17<Props>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1531
+ export declare const ResetFiltersButton: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_16<Props>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1666
1532
  reset: () => void;
1667
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_17<Props>>> & Readonly<{
1533
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_16<Props>>> & Readonly<{
1668
1534
  onReset?: (() => any) | undefined;
1669
1535
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1670
1536
 
1537
+ export declare interface ResponseAPI<T> {
1538
+ results?: T[];
1539
+ result?: T;
1540
+ count?: number;
1541
+ next?: string | null;
1542
+ previous?: string | null;
1543
+ }
1544
+
1545
+ declare type SelectionMode_2 = 'single' | 'multiple' | 'none';
1546
+ export { SelectionMode_2 as SelectionMode }
1547
+
1671
1548
  export declare interface SelectOption<T = any> {
1672
1549
  label: string;
1673
1550
  value: string | number | T;
@@ -1681,7 +1558,7 @@ export declare interface SelectOptionYear {
1681
1558
  endYear?: number;
1682
1559
  }
1683
1560
 
1684
- export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_15<ProjectSelectionProps>, {
1561
+ export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_14<ProjectSelectionProps>, {
1685
1562
  projects: () => Project[];
1686
1563
  disabledIds: () => never[];
1687
1564
  title?: string | undefined;
@@ -1697,7 +1574,7 @@ export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS
1697
1574
  particleColor?: string | undefined;
1698
1575
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1699
1576
  "project-click": (project: Project) => void;
1700
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_15<ProjectSelectionProps>, {
1577
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_14<ProjectSelectionProps>, {
1701
1578
  projects: () => Project[];
1702
1579
  disabledIds: () => never[];
1703
1580
  title?: string | undefined;
@@ -1772,7 +1649,7 @@ export declare const SelectYear: DefineComponent<ExtractPropTypes<__VLS_WithDefa
1772
1649
  label: string;
1773
1650
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1774
1651
 
1775
- export declare const SelfeeCard: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1652
+ export declare const SelfeeCard: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1776
1653
 
1777
1654
  declare interface SelfeeCardProps {
1778
1655
  title?: string;
@@ -1815,13 +1692,13 @@ export declare interface SelfeeHeaderProps {
1815
1692
  environment?: string;
1816
1693
  }
1817
1694
 
1818
- export declare const SelfeeLoader: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_16<SelfeeLoaderProps>, {
1695
+ export declare const SelfeeLoader: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_15<SelfeeLoaderProps>, {
1819
1696
  size: string;
1820
1697
  variant: string;
1821
1698
  text: string;
1822
1699
  logoUrl: string;
1823
1700
  speed: number;
1824
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_16<SelfeeLoaderProps>, {
1701
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_15<SelfeeLoaderProps>, {
1825
1702
  size: string;
1826
1703
  variant: string;
1827
1704
  text: string;
@@ -1843,17 +1720,35 @@ export declare interface SelfeeLoaderProps {
1843
1720
  speed?: number;
1844
1721
  }
1845
1722
 
1846
- export declare const SelfeeTable: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1723
+ export declare const SelfeeTable: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1847
1724
 
1848
- export declare const SmartFilters: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1725
+ export declare const SmartFilters: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1849
1726
 
1850
- declare interface SmartFiltersProps {
1727
+ export declare interface SmartFiltersProps {
1851
1728
  containerClass?: string;
1852
1729
  rowClass?: string;
1853
1730
  activeHiddenCount?: number;
1854
1731
  hasActiveFilters?: boolean;
1855
1732
  }
1856
1733
 
1734
+ export declare type SortDirection = 'asc' | 'desc' | null;
1735
+
1736
+ export declare interface SortIndicator {
1737
+ direction: SortDirection;
1738
+ order: number;
1739
+ }
1740
+
1741
+ export declare interface SortItem {
1742
+ field: string;
1743
+ direction: 'asc' | 'desc';
1744
+ order: number;
1745
+ }
1746
+
1747
+ export declare interface SortState {
1748
+ sortBy?: string | string[];
1749
+ descending?: boolean | boolean[];
1750
+ }
1751
+
1857
1752
  export declare interface Store {
1858
1753
  [key: string]: any;
1859
1754
  }
@@ -1870,25 +1765,7 @@ export declare interface TableAction {
1870
1765
  handler: (row: any) => void;
1871
1766
  isButton?: boolean;
1872
1767
  buttonProps?: Record<string, any>;
1873
- position?: 'row' | 'cell' | 'both';
1874
- columnName?: string;
1875
- testId?: string | ((row: any) => string);
1876
- isCancel?: boolean;
1877
- }
1878
-
1879
- declare interface TableAction_2 {
1880
- id: string;
1881
- label?: string;
1882
- icon?: string;
1883
- color?: string;
1884
- size?: string;
1885
- class?: string;
1886
- disabled?: boolean | ((row: any) => boolean);
1887
- visible?: boolean | ((row: any) => boolean);
1888
- handler: (row: any) => void;
1889
- isButton?: boolean;
1890
- buttonProps?: Record<string, any>;
1891
- position?: 'row' | 'cell' | 'both';
1768
+ position?: ActionPosition;
1892
1769
  columnName?: string;
1893
1770
  testId?: string | ((row: any) => string);
1894
1771
  isCancel?: boolean;
@@ -1898,69 +1775,44 @@ export declare interface TableColumn {
1898
1775
  name: string;
1899
1776
  label: string;
1900
1777
  field: string | ((row: any) => any);
1901
- align?: 'left' | 'right' | 'center';
1902
- sortable?: boolean;
1903
- format?: (value: any) => string;
1904
- isSelectionColumn?: boolean;
1905
- hidden?: boolean;
1906
- renderAsBadge?: boolean;
1907
- badgeColor?: string | ((value: any, row: any) => string);
1908
- badgeOutline?: boolean;
1909
- badgeRounded?: boolean;
1910
- badgeSize?: 'sm' | 'md';
1911
- badgeClass?: string;
1912
- badgeMapping?: {
1913
- [key: string | number]: {
1914
- color: string;
1915
- label?: string;
1916
- icon?: string;
1917
- outline?: boolean;
1918
- };
1919
- };
1920
- }
1921
-
1922
- declare interface TableColumn_2 {
1923
- name: string;
1924
- label: string;
1925
- field: string | ((row: any) => any);
1926
- align?: 'left' | 'right' | 'center';
1778
+ align?: Align;
1927
1779
  sortable?: boolean;
1780
+ sortField?: string;
1928
1781
  format?: (value: any) => string;
1929
1782
  isSelectionColumn?: boolean;
1930
1783
  hidden?: boolean;
1931
1784
  renderAsBadge?: boolean;
1932
- badgeColor?: string | ((value: any, row: any) => string);
1785
+ badgeColor?: string | ((value: any, row: Record<string, any>) => string);
1933
1786
  badgeOutline?: boolean;
1934
1787
  badgeRounded?: boolean;
1935
- badgeSize?: 'sm' | 'md';
1788
+ badgeSize?: BadgeSize;
1936
1789
  badgeClass?: string;
1937
- badgeMapping?: {
1938
- [key: string | number]: {
1939
- color: string;
1940
- label?: string;
1941
- icon?: string;
1942
- outline?: boolean;
1943
- };
1944
- };
1790
+ badgeMapping?: Record<string | number, {
1791
+ color: string;
1792
+ label?: string;
1793
+ icon?: string;
1794
+ outline?: boolean;
1795
+ }>;
1945
1796
  }
1946
1797
 
1947
1798
  export declare interface TableRequestProps {
1948
- pagination: Pagination;
1949
- filter?: string;
1950
- }
1951
-
1952
- declare interface TableRequestProps_2 {
1953
- pagination: Pagination_2;
1954
- filter?: string;
1799
+ pagination: Required<Pick<Pagination, 'page' | 'rowsPerPage'>> & Partial<Pick<Pagination, 'sortBy' | 'descending'>>;
1800
+ filter?: string | null;
1801
+ force?: boolean;
1955
1802
  }
1956
1803
 
1957
1804
  declare function toggleRowSelection(row: any, selected: boolean): void;
1958
1805
 
1959
- declare function toggleRowSelection_2(row: any, selected: boolean): void;
1960
-
1961
1806
  declare function toggleSelectAll(selected: boolean): void;
1962
1807
 
1963
- declare function toggleSelectAll_2(selected: boolean): void;
1808
+ export declare interface UsePaginationReturn<T> {
1809
+ results: Ref<T[]>;
1810
+ pagination: Ref<Pagination>;
1811
+ loading: Ref<boolean>;
1812
+ filter: Ref<string | null>;
1813
+ filterSelected: Ref<Record<string, string | number | null | string[] | boolean>>;
1814
+ onRequest: (props: TableRequestProps) => Promise<void>;
1815
+ }
1964
1816
 
1965
1817
  export declare const UserAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToOption_8<UserAvatarProps>, {
1966
1818
  logoutLabel: string;