@selfeesas/shared-components 0.7.0 → 1.0.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 +79 -2
- package/dist/shared-components.es.js +9350 -8977
- package/dist/shared-components.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -26,8 +26,24 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
|
|
|
26
26
|
conditionals: () => {};
|
|
27
27
|
actions: () => never[];
|
|
28
28
|
rowClasses: undefined;
|
|
29
|
-
|
|
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, {
|
|
30
44
|
"update:pagination": (...args: any[]) => void;
|
|
45
|
+
"update:selected": (...args: any[]) => void;
|
|
46
|
+
"selection-change": (...args: any[]) => void;
|
|
31
47
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_11<CustomTableProps>, {
|
|
32
48
|
filter: string;
|
|
33
49
|
loading: boolean;
|
|
@@ -36,8 +52,17 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
|
|
|
36
52
|
conditionals: () => {};
|
|
37
53
|
actions: () => never[];
|
|
38
54
|
rowClasses: undefined;
|
|
55
|
+
selection: string;
|
|
56
|
+
selected: () => never[];
|
|
57
|
+
selectable: () => true;
|
|
58
|
+
showSelectAll: boolean;
|
|
59
|
+
showSkeleton: boolean;
|
|
60
|
+
showColumnToggle: boolean;
|
|
61
|
+
columnStorageKey: undefined;
|
|
39
62
|
}>>> & Readonly<{
|
|
40
63
|
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
41
66
|
}>, {
|
|
42
67
|
filter: string;
|
|
43
68
|
loading: boolean;
|
|
@@ -45,7 +70,14 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
|
|
|
45
70
|
services: CustomTableServices;
|
|
46
71
|
conditionals: CustomTableConditionals;
|
|
47
72
|
actions: TableAction[] | ((row: any) => TableAction[]);
|
|
73
|
+
showSkeleton: boolean;
|
|
48
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;
|
|
49
81
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
50
82
|
|
|
51
83
|
declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_17<Props_2>, {
|
|
@@ -93,6 +125,7 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefa
|
|
|
93
125
|
flat: boolean;
|
|
94
126
|
dense: boolean;
|
|
95
127
|
rounded: boolean;
|
|
128
|
+
bordered: boolean;
|
|
96
129
|
title: string;
|
|
97
130
|
subtitle: string;
|
|
98
131
|
showHeader: boolean;
|
|
@@ -100,7 +133,6 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefa
|
|
|
100
133
|
shadowIntensity: "none" | "light" | "medium" | "heavy";
|
|
101
134
|
noPadding: boolean;
|
|
102
135
|
hoverable: boolean;
|
|
103
|
-
bordered: boolean;
|
|
104
136
|
centerTitle: boolean;
|
|
105
137
|
centerActions: boolean;
|
|
106
138
|
contentGap: boolean | string;
|
|
@@ -247,6 +279,10 @@ declare function __VLS_template_2(): {
|
|
|
247
279
|
declare function __VLS_template_3(): {
|
|
248
280
|
attrs: Partial<{}>;
|
|
249
281
|
slots: {
|
|
282
|
+
'selection-actions'?(_: {
|
|
283
|
+
selected: any[];
|
|
284
|
+
clearSelection: typeof clearSelection;
|
|
285
|
+
}): any;
|
|
250
286
|
'expand-button'?(_: {
|
|
251
287
|
row: any;
|
|
252
288
|
expanded: boolean;
|
|
@@ -256,6 +292,7 @@ declare function __VLS_template_3(): {
|
|
|
256
292
|
row: any;
|
|
257
293
|
col: any;
|
|
258
294
|
value: any;
|
|
295
|
+
badgeConfig: BadgeConfig | null;
|
|
259
296
|
}): any;
|
|
260
297
|
expanded?(_: {
|
|
261
298
|
row: any;
|
|
@@ -566,6 +603,16 @@ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
|
566
603
|
};
|
|
567
604
|
};
|
|
568
605
|
|
|
606
|
+
declare interface BadgeConfig {
|
|
607
|
+
color?: string;
|
|
608
|
+
label?: string;
|
|
609
|
+
outline?: boolean;
|
|
610
|
+
rounded?: boolean;
|
|
611
|
+
size?: 'sm' | 'md';
|
|
612
|
+
icon?: string;
|
|
613
|
+
class?: string;
|
|
614
|
+
}
|
|
615
|
+
|
|
569
616
|
export declare interface BreadcrumbConfig {
|
|
570
617
|
entity: string;
|
|
571
618
|
dataCy: string;
|
|
@@ -643,6 +690,8 @@ export declare interface CheckboxOption {
|
|
|
643
690
|
disabled?: boolean;
|
|
644
691
|
}
|
|
645
692
|
|
|
693
|
+
declare function clearSelection(): void;
|
|
694
|
+
|
|
646
695
|
export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_16<ConfirmDeleteDialogProps>, {
|
|
647
696
|
icon: string;
|
|
648
697
|
color: string;
|
|
@@ -702,6 +751,7 @@ export declare const CustomTable: __VLS_WithTemplateSlots_3<typeof __VLS_compone
|
|
|
702
751
|
|
|
703
752
|
export declare interface CustomTableConditionals {
|
|
704
753
|
shouldShowExpandButton?: (row: any) => boolean;
|
|
754
|
+
shouldShowSelectionColumn?: () => boolean;
|
|
705
755
|
}
|
|
706
756
|
|
|
707
757
|
export declare interface CustomTableProps {
|
|
@@ -717,6 +767,13 @@ export declare interface CustomTableProps {
|
|
|
717
767
|
actions?: TableAction[] | ((row: any) => TableAction[]);
|
|
718
768
|
showSkeleton?: boolean;
|
|
719
769
|
rowClasses?: string | ((row: any) => string);
|
|
770
|
+
selection?: 'single' | 'multiple' | 'none';
|
|
771
|
+
selected?: any[];
|
|
772
|
+
onSelectionChange?: (selected: any[]) => void;
|
|
773
|
+
selectable?: (row: any) => boolean;
|
|
774
|
+
showSelectAll?: boolean;
|
|
775
|
+
showColumnToggle?: boolean;
|
|
776
|
+
columnStorageKey?: string;
|
|
720
777
|
}
|
|
721
778
|
|
|
722
779
|
export declare interface CustomTableServices {
|
|
@@ -1296,6 +1353,22 @@ export declare interface TableColumn {
|
|
|
1296
1353
|
align?: 'left' | 'right' | 'center';
|
|
1297
1354
|
sortable?: boolean;
|
|
1298
1355
|
format?: (value: any) => string;
|
|
1356
|
+
isSelectionColumn?: boolean;
|
|
1357
|
+
hidden?: boolean;
|
|
1358
|
+
renderAsBadge?: boolean;
|
|
1359
|
+
badgeColor?: string | ((value: any, row: any) => string);
|
|
1360
|
+
badgeOutline?: boolean;
|
|
1361
|
+
badgeRounded?: boolean;
|
|
1362
|
+
badgeSize?: 'sm' | 'md';
|
|
1363
|
+
badgeClass?: string;
|
|
1364
|
+
badgeMapping?: {
|
|
1365
|
+
[key: string | number]: {
|
|
1366
|
+
color: string;
|
|
1367
|
+
label?: string;
|
|
1368
|
+
icon?: string;
|
|
1369
|
+
outline?: boolean;
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1299
1372
|
}
|
|
1300
1373
|
|
|
1301
1374
|
export declare interface TableRequestProps {
|
|
@@ -1303,6 +1376,10 @@ export declare interface TableRequestProps {
|
|
|
1303
1376
|
filter?: string;
|
|
1304
1377
|
}
|
|
1305
1378
|
|
|
1379
|
+
declare function toggleRowSelection(row: any, selected: boolean): void;
|
|
1380
|
+
|
|
1381
|
+
declare function toggleSelectAll(selected: boolean): void;
|
|
1382
|
+
|
|
1306
1383
|
export declare const UserAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToOption_7<UserAvatarProps>, {
|
|
1307
1384
|
logoutLabel: string;
|
|
1308
1385
|
showVersionInfo: boolean;
|