@selfeesas/shared-components 1.2.2 → 1.3.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.
- package/dist/assets/shared-components.css +1 -1
- package/dist/shared-components.cjs.js +26 -26
- package/dist/shared-components.cjs.js.map +1 -1
- package/dist/shared-components.d.ts +275 -0
- package/dist/shared-components.es.js +10354 -9510
- package/dist/shared-components.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -159,6 +159,104 @@ declare const __VLS_component_6: DefineComponent<ExtractPropTypes<__VLS_WithDefa
|
|
|
159
159
|
activeHiddenCount: number;
|
|
160
160
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
161
161
|
|
|
162
|
+
declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_23<CustomTableProps_2>, {
|
|
163
|
+
filter: null;
|
|
164
|
+
loading: boolean;
|
|
165
|
+
pagination: () => {
|
|
166
|
+
page: number;
|
|
167
|
+
rowsPerPage: number;
|
|
168
|
+
rowsNumber: number;
|
|
169
|
+
rowsPerPageOptions: number[];
|
|
170
|
+
};
|
|
171
|
+
rowKey: string;
|
|
172
|
+
services: () => {};
|
|
173
|
+
conditionals: () => {};
|
|
174
|
+
actions: () => never[];
|
|
175
|
+
rowClasses: undefined;
|
|
176
|
+
selection: string;
|
|
177
|
+
selected: () => never[];
|
|
178
|
+
selectable: () => true;
|
|
179
|
+
showSelectAll: boolean;
|
|
180
|
+
showSkeleton: boolean;
|
|
181
|
+
showColumnToggle: boolean;
|
|
182
|
+
columnStorageKey: undefined;
|
|
183
|
+
useBuiltInPagination: boolean;
|
|
184
|
+
fetchDataFn: undefined;
|
|
185
|
+
persistKey: string;
|
|
186
|
+
defaultRowsPerPage: number;
|
|
187
|
+
initialParams: () => {};
|
|
188
|
+
filterSelected: () => {};
|
|
189
|
+
}>>, {
|
|
190
|
+
clearSelection: typeof clearSelection_2;
|
|
191
|
+
getSelectedRows: () => any[];
|
|
192
|
+
toggleRowSelection: typeof toggleRowSelection_2;
|
|
193
|
+
toggleSelectAll: typeof toggleSelectAll_2;
|
|
194
|
+
toggleColumnVisibility: (columnName: string) => void;
|
|
195
|
+
resetColumns: () => void;
|
|
196
|
+
refresh: () => Promise<void>;
|
|
197
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
198
|
+
"update:pagination": (...args: any[]) => void;
|
|
199
|
+
"update:selected": (...args: any[]) => void;
|
|
200
|
+
"selection-change": (...args: any[]) => void;
|
|
201
|
+
"data-loaded": (...args: any[]) => void;
|
|
202
|
+
"loading-change": (...args: any[]) => void;
|
|
203
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_23<CustomTableProps_2>, {
|
|
204
|
+
filter: null;
|
|
205
|
+
loading: boolean;
|
|
206
|
+
pagination: () => {
|
|
207
|
+
page: number;
|
|
208
|
+
rowsPerPage: number;
|
|
209
|
+
rowsNumber: number;
|
|
210
|
+
rowsPerPageOptions: number[];
|
|
211
|
+
};
|
|
212
|
+
rowKey: string;
|
|
213
|
+
services: () => {};
|
|
214
|
+
conditionals: () => {};
|
|
215
|
+
actions: () => never[];
|
|
216
|
+
rowClasses: undefined;
|
|
217
|
+
selection: string;
|
|
218
|
+
selected: () => never[];
|
|
219
|
+
selectable: () => true;
|
|
220
|
+
showSelectAll: boolean;
|
|
221
|
+
showSkeleton: boolean;
|
|
222
|
+
showColumnToggle: boolean;
|
|
223
|
+
columnStorageKey: undefined;
|
|
224
|
+
useBuiltInPagination: boolean;
|
|
225
|
+
fetchDataFn: undefined;
|
|
226
|
+
persistKey: string;
|
|
227
|
+
defaultRowsPerPage: number;
|
|
228
|
+
initialParams: () => {};
|
|
229
|
+
filterSelected: () => {};
|
|
230
|
+
}>>> & Readonly<{
|
|
231
|
+
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
|
232
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
233
|
+
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
234
|
+
"onData-loaded"?: ((...args: any[]) => any) | undefined;
|
|
235
|
+
"onLoading-change"?: ((...args: any[]) => any) | undefined;
|
|
236
|
+
}>, {
|
|
237
|
+
filter: string | null;
|
|
238
|
+
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";
|
|
247
|
+
selected: any[];
|
|
248
|
+
selectable: (row: any) => boolean;
|
|
249
|
+
showSelectAll: boolean;
|
|
250
|
+
showColumnToggle: boolean;
|
|
251
|
+
columnStorageKey: string;
|
|
252
|
+
persistKey: string;
|
|
253
|
+
defaultRowsPerPage: number;
|
|
254
|
+
useBuiltInPagination: boolean;
|
|
255
|
+
fetchDataFn: (params: Record<string, any>) => Promise< ResponseAPI<any>>;
|
|
256
|
+
initialParams: Record<string, any>;
|
|
257
|
+
filterSelected: Record<string, any>;
|
|
258
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
259
|
+
|
|
162
260
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
163
261
|
|
|
164
262
|
declare type __VLS_NonUndefinedable_10<T> = T extends undefined ? never : T;
|
|
@@ -189,6 +287,8 @@ declare type __VLS_NonUndefinedable_21<T> = T extends undefined ? never : T;
|
|
|
189
287
|
|
|
190
288
|
declare type __VLS_NonUndefinedable_22<T> = T extends undefined ? never : T;
|
|
191
289
|
|
|
290
|
+
declare type __VLS_NonUndefinedable_23<T> = T extends undefined ? never : T;
|
|
291
|
+
|
|
192
292
|
declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
|
|
193
293
|
|
|
194
294
|
declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
|
|
@@ -235,6 +335,10 @@ declare type __VLS_PrettifyLocal_16<T> = {
|
|
|
235
335
|
[K in keyof T]: T[K];
|
|
236
336
|
} & {};
|
|
237
337
|
|
|
338
|
+
declare type __VLS_PrettifyLocal_17<T> = {
|
|
339
|
+
[K in keyof T]: T[K];
|
|
340
|
+
} & {};
|
|
341
|
+
|
|
238
342
|
declare type __VLS_PrettifyLocal_2<T> = {
|
|
239
343
|
[K in keyof T]: T[K];
|
|
240
344
|
} & {};
|
|
@@ -379,6 +483,32 @@ declare function __VLS_template_6(): {
|
|
|
379
483
|
rootEl: HTMLDivElement;
|
|
380
484
|
};
|
|
381
485
|
|
|
486
|
+
declare function __VLS_template_7(): {
|
|
487
|
+
attrs: Partial<{}>;
|
|
488
|
+
slots: {
|
|
489
|
+
'selection-actions'?(_: {
|
|
490
|
+
selected: any[];
|
|
491
|
+
clearSelection: typeof clearSelection_2;
|
|
492
|
+
}): any;
|
|
493
|
+
'expand-button'?(_: {
|
|
494
|
+
row: any;
|
|
495
|
+
expanded: boolean;
|
|
496
|
+
toggle: () => Promise<void>;
|
|
497
|
+
}): any;
|
|
498
|
+
'body-cell'?(_: {
|
|
499
|
+
row: any;
|
|
500
|
+
col: any;
|
|
501
|
+
value: any;
|
|
502
|
+
badgeConfig: BadgeConfig_2 | null;
|
|
503
|
+
}): any;
|
|
504
|
+
expanded?(_: {
|
|
505
|
+
row: any;
|
|
506
|
+
}): any;
|
|
507
|
+
};
|
|
508
|
+
refs: {};
|
|
509
|
+
rootEl: any;
|
|
510
|
+
};
|
|
511
|
+
|
|
382
512
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
383
513
|
|
|
384
514
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
@@ -391,6 +521,8 @@ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
|
391
521
|
|
|
392
522
|
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
393
523
|
|
|
524
|
+
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
525
|
+
|
|
394
526
|
declare type __VLS_TypePropsToOption<T> = {
|
|
395
527
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
396
528
|
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
@@ -526,6 +658,15 @@ declare type __VLS_TypePropsToOption_22<T> = {
|
|
|
526
658
|
};
|
|
527
659
|
};
|
|
528
660
|
|
|
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
|
+
|
|
529
670
|
declare type __VLS_TypePropsToOption_3<T> = {
|
|
530
671
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
531
672
|
type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
|
|
@@ -637,6 +778,12 @@ declare type __VLS_WithDefaults_16<P, D> = {
|
|
|
637
778
|
}> : P[K];
|
|
638
779
|
};
|
|
639
780
|
|
|
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
|
+
|
|
640
787
|
declare type __VLS_WithDefaults_2<P, D> = {
|
|
641
788
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_2<P[K] & {
|
|
642
789
|
default: D[K];
|
|
@@ -721,6 +868,12 @@ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
|
721
868
|
};
|
|
722
869
|
};
|
|
723
870
|
|
|
871
|
+
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
872
|
+
new (): {
|
|
873
|
+
$slots: S;
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
|
|
724
877
|
declare interface BadgeConfig {
|
|
725
878
|
color?: string;
|
|
726
879
|
label?: string;
|
|
@@ -731,6 +884,16 @@ declare interface BadgeConfig {
|
|
|
731
884
|
class?: string;
|
|
732
885
|
}
|
|
733
886
|
|
|
887
|
+
declare interface BadgeConfig_2 {
|
|
888
|
+
color?: string;
|
|
889
|
+
label?: string;
|
|
890
|
+
outline?: boolean;
|
|
891
|
+
rounded?: boolean;
|
|
892
|
+
size?: 'sm' | 'md';
|
|
893
|
+
icon?: string;
|
|
894
|
+
class?: string;
|
|
895
|
+
}
|
|
896
|
+
|
|
734
897
|
export declare interface BreadcrumbConfig {
|
|
735
898
|
entity: string;
|
|
736
899
|
dataCy: string;
|
|
@@ -810,6 +973,8 @@ export declare interface CheckboxOption {
|
|
|
810
973
|
|
|
811
974
|
declare function clearSelection(): void;
|
|
812
975
|
|
|
976
|
+
declare function clearSelection_2(): void;
|
|
977
|
+
|
|
813
978
|
export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<ConfirmDeleteDialogProps>, {
|
|
814
979
|
icon: string;
|
|
815
980
|
color: string;
|
|
@@ -872,6 +1037,11 @@ export declare interface CustomTableConditionals {
|
|
|
872
1037
|
shouldShowSelectionColumn?: () => boolean;
|
|
873
1038
|
}
|
|
874
1039
|
|
|
1040
|
+
declare interface CustomTableConditionals_2 {
|
|
1041
|
+
shouldShowExpandButton?: (row: any) => boolean;
|
|
1042
|
+
shouldShowSelectionColumn?: () => boolean;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
875
1045
|
export declare interface CustomTableProps {
|
|
876
1046
|
columns: TableColumn[];
|
|
877
1047
|
results: any[];
|
|
@@ -892,6 +1062,36 @@ export declare interface CustomTableProps {
|
|
|
892
1062
|
showSelectAll?: boolean;
|
|
893
1063
|
showColumnToggle?: boolean;
|
|
894
1064
|
columnStorageKey?: string;
|
|
1065
|
+
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
|
+
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;
|
|
1084
|
+
selectable?: (row: any) => boolean;
|
|
1085
|
+
showSelectAll?: boolean;
|
|
1086
|
+
showColumnToggle?: boolean;
|
|
1087
|
+
columnStorageKey?: string;
|
|
1088
|
+
onRowDblClick?: (row: any) => void;
|
|
1089
|
+
useBuiltInPagination?: boolean;
|
|
1090
|
+
fetchDataFn?: (params: Record<string, any>) => Promise<ResponseAPI<any>>;
|
|
1091
|
+
persistKey?: string;
|
|
1092
|
+
defaultRowsPerPage?: number;
|
|
1093
|
+
initialParams?: Record<string, any>;
|
|
1094
|
+
filterSelected?: Record<string, any>;
|
|
895
1095
|
}
|
|
896
1096
|
|
|
897
1097
|
export declare interface CustomTableServices {
|
|
@@ -899,6 +1099,13 @@ export declare interface CustomTableServices {
|
|
|
899
1099
|
redirectToPrm?: (row: any) => void;
|
|
900
1100
|
}
|
|
901
1101
|
|
|
1102
|
+
declare interface CustomTableServices_2 {
|
|
1103
|
+
fetchDetails?: (row: any) => Promise<any>;
|
|
1104
|
+
redirectToPrm?: (row: any) => void;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
export declare const CustomTableTest: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
1108
|
+
|
|
902
1109
|
export declare const DATE_FORMAT_REGEX: RegExp;
|
|
903
1110
|
|
|
904
1111
|
declare type DateInput = string | Date;
|
|
@@ -1311,6 +1518,15 @@ export declare interface Pagination {
|
|
|
1311
1518
|
rowsPerPageOptions?: number[];
|
|
1312
1519
|
}
|
|
1313
1520
|
|
|
1521
|
+
declare interface Pagination_2 {
|
|
1522
|
+
sortBy?: string;
|
|
1523
|
+
descending?: boolean;
|
|
1524
|
+
page: number;
|
|
1525
|
+
rowsPerPage: number;
|
|
1526
|
+
rowsNumber?: number;
|
|
1527
|
+
rowsPerPageOptions?: number[];
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1314
1530
|
export declare function parseDate(dateStr: string): Date;
|
|
1315
1531
|
|
|
1316
1532
|
export declare interface Particle {
|
|
@@ -1454,6 +1670,13 @@ export declare const ResetFiltersButton: DefineComponent<ExtractPropTypes<__VLS_
|
|
|
1454
1670
|
onReset?: (() => any) | undefined;
|
|
1455
1671
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1456
1672
|
|
|
1673
|
+
declare interface ResponseAPI<T> {
|
|
1674
|
+
results?: T[];
|
|
1675
|
+
count?: number;
|
|
1676
|
+
next?: string | null;
|
|
1677
|
+
previous?: string | null;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1457
1680
|
export declare interface SelectOption<T = any> {
|
|
1458
1681
|
label: string;
|
|
1459
1682
|
value: string | number | T;
|
|
@@ -1660,6 +1883,24 @@ export declare interface TableAction {
|
|
|
1660
1883
|
isCancel?: boolean;
|
|
1661
1884
|
}
|
|
1662
1885
|
|
|
1886
|
+
declare interface TableAction_2 {
|
|
1887
|
+
id: string;
|
|
1888
|
+
label?: string;
|
|
1889
|
+
icon?: string;
|
|
1890
|
+
color?: string;
|
|
1891
|
+
size?: string;
|
|
1892
|
+
class?: string;
|
|
1893
|
+
disabled?: boolean | ((row: any) => boolean);
|
|
1894
|
+
visible?: boolean | ((row: any) => boolean);
|
|
1895
|
+
handler: (row: any) => void;
|
|
1896
|
+
isButton?: boolean;
|
|
1897
|
+
buttonProps?: Record<string, any>;
|
|
1898
|
+
position?: 'row' | 'cell' | 'both';
|
|
1899
|
+
columnName?: string;
|
|
1900
|
+
testId?: string | ((row: any) => string);
|
|
1901
|
+
isCancel?: boolean;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1663
1904
|
export declare interface TableColumn {
|
|
1664
1905
|
name: string;
|
|
1665
1906
|
label: string;
|
|
@@ -1685,15 +1926,49 @@ export declare interface TableColumn {
|
|
|
1685
1926
|
};
|
|
1686
1927
|
}
|
|
1687
1928
|
|
|
1929
|
+
declare interface TableColumn_2 {
|
|
1930
|
+
name: string;
|
|
1931
|
+
label: string;
|
|
1932
|
+
field: string | ((row: any) => any);
|
|
1933
|
+
align?: 'left' | 'right' | 'center';
|
|
1934
|
+
sortable?: boolean;
|
|
1935
|
+
format?: (value: any) => string;
|
|
1936
|
+
isSelectionColumn?: boolean;
|
|
1937
|
+
hidden?: boolean;
|
|
1938
|
+
renderAsBadge?: boolean;
|
|
1939
|
+
badgeColor?: string | ((value: any, row: any) => string);
|
|
1940
|
+
badgeOutline?: boolean;
|
|
1941
|
+
badgeRounded?: boolean;
|
|
1942
|
+
badgeSize?: 'sm' | 'md';
|
|
1943
|
+
badgeClass?: string;
|
|
1944
|
+
badgeMapping?: {
|
|
1945
|
+
[key: string | number]: {
|
|
1946
|
+
color: string;
|
|
1947
|
+
label?: string;
|
|
1948
|
+
icon?: string;
|
|
1949
|
+
outline?: boolean;
|
|
1950
|
+
};
|
|
1951
|
+
};
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1688
1954
|
export declare interface TableRequestProps {
|
|
1689
1955
|
pagination: Pagination;
|
|
1690
1956
|
filter?: string;
|
|
1691
1957
|
}
|
|
1692
1958
|
|
|
1959
|
+
declare interface TableRequestProps_2 {
|
|
1960
|
+
pagination: Pagination_2;
|
|
1961
|
+
filter?: string;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1693
1964
|
declare function toggleRowSelection(row: any, selected: boolean): void;
|
|
1694
1965
|
|
|
1966
|
+
declare function toggleRowSelection_2(row: any, selected: boolean): void;
|
|
1967
|
+
|
|
1695
1968
|
declare function toggleSelectAll(selected: boolean): void;
|
|
1696
1969
|
|
|
1970
|
+
declare function toggleSelectAll_2(selected: boolean): void;
|
|
1971
|
+
|
|
1697
1972
|
export declare const UserAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToOption_8<UserAvatarProps>, {
|
|
1698
1973
|
logoutLabel: string;
|
|
1699
1974
|
showVersionInfo: boolean;
|