@selfeesas/shared-components 1.2.3 → 1.3.1
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 +274 -0
- package/dist/shared-components.es.js +10347 -9508
- 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[];
|
|
@@ -895,11 +1065,45 @@ export declare interface CustomTableProps {
|
|
|
895
1065
|
onRowDblClick?: (row: any) => void;
|
|
896
1066
|
}
|
|
897
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>;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
898
1097
|
export declare interface CustomTableServices {
|
|
899
1098
|
fetchDetails?: (row: any) => Promise<any>;
|
|
900
1099
|
redirectToPrm?: (row: any) => void;
|
|
901
1100
|
}
|
|
902
1101
|
|
|
1102
|
+
declare interface CustomTableServices_2 {
|
|
1103
|
+
fetchDetails?: (row: any) => Promise<any>;
|
|
1104
|
+
redirectToPrm?: (row: any) => void;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
903
1107
|
export declare const DATE_FORMAT_REGEX: RegExp;
|
|
904
1108
|
|
|
905
1109
|
declare type DateInput = string | Date;
|
|
@@ -1312,6 +1516,15 @@ export declare interface Pagination {
|
|
|
1312
1516
|
rowsPerPageOptions?: number[];
|
|
1313
1517
|
}
|
|
1314
1518
|
|
|
1519
|
+
declare interface Pagination_2 {
|
|
1520
|
+
sortBy?: string;
|
|
1521
|
+
descending?: boolean;
|
|
1522
|
+
page: number;
|
|
1523
|
+
rowsPerPage: number;
|
|
1524
|
+
rowsNumber?: number;
|
|
1525
|
+
rowsPerPageOptions?: number[];
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1315
1528
|
export declare function parseDate(dateStr: string): Date;
|
|
1316
1529
|
|
|
1317
1530
|
export declare interface Particle {
|
|
@@ -1455,6 +1668,13 @@ export declare const ResetFiltersButton: DefineComponent<ExtractPropTypes<__VLS_
|
|
|
1455
1668
|
onReset?: (() => any) | undefined;
|
|
1456
1669
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1457
1670
|
|
|
1671
|
+
declare interface ResponseAPI<T> {
|
|
1672
|
+
results?: T[];
|
|
1673
|
+
count?: number;
|
|
1674
|
+
next?: string | null;
|
|
1675
|
+
previous?: string | null;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1458
1678
|
export declare interface SelectOption<T = any> {
|
|
1459
1679
|
label: string;
|
|
1460
1680
|
value: string | number | T;
|
|
@@ -1630,6 +1850,8 @@ export declare interface SelfeeLoaderProps {
|
|
|
1630
1850
|
speed?: number;
|
|
1631
1851
|
}
|
|
1632
1852
|
|
|
1853
|
+
export declare const SelfeeTable: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
1854
|
+
|
|
1633
1855
|
export declare const SmartFilters: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
1634
1856
|
|
|
1635
1857
|
declare interface SmartFiltersProps {
|
|
@@ -1661,6 +1883,24 @@ export declare interface TableAction {
|
|
|
1661
1883
|
isCancel?: boolean;
|
|
1662
1884
|
}
|
|
1663
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
|
+
|
|
1664
1904
|
export declare interface TableColumn {
|
|
1665
1905
|
name: string;
|
|
1666
1906
|
label: string;
|
|
@@ -1686,15 +1926,49 @@ export declare interface TableColumn {
|
|
|
1686
1926
|
};
|
|
1687
1927
|
}
|
|
1688
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
|
+
|
|
1689
1954
|
export declare interface TableRequestProps {
|
|
1690
1955
|
pagination: Pagination;
|
|
1691
1956
|
filter?: string;
|
|
1692
1957
|
}
|
|
1693
1958
|
|
|
1959
|
+
declare interface TableRequestProps_2 {
|
|
1960
|
+
pagination: Pagination_2;
|
|
1961
|
+
filter?: string;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1694
1964
|
declare function toggleRowSelection(row: any, selected: boolean): void;
|
|
1695
1965
|
|
|
1966
|
+
declare function toggleRowSelection_2(row: any, selected: boolean): void;
|
|
1967
|
+
|
|
1696
1968
|
declare function toggleSelectAll(selected: boolean): void;
|
|
1697
1969
|
|
|
1970
|
+
declare function toggleSelectAll_2(selected: boolean): void;
|
|
1971
|
+
|
|
1698
1972
|
export declare const UserAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToOption_8<UserAvatarProps>, {
|
|
1699
1973
|
logoutLabel: string;
|
|
1700
1974
|
showVersionInfo: boolean;
|