@selfeesas/shared-components 0.9.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.
@@ -30,11 +30,16 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
30
30
  selected: () => never[];
31
31
  selectable: () => true;
32
32
  showSelectAll: boolean;
33
+ showSkeleton: boolean;
34
+ showColumnToggle: boolean;
35
+ columnStorageKey: undefined;
33
36
  }>>, {
34
37
  clearSelection: typeof clearSelection;
35
38
  getSelectedRows: () => any[];
36
39
  toggleRowSelection: typeof toggleRowSelection;
37
40
  toggleSelectAll: typeof toggleSelectAll;
41
+ toggleColumnVisibility: (columnName: string) => void;
42
+ resetColumns: () => void;
38
43
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
39
44
  "update:pagination": (...args: any[]) => void;
40
45
  "update:selected": (...args: any[]) => void;
@@ -51,6 +56,9 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
51
56
  selected: () => never[];
52
57
  selectable: () => true;
53
58
  showSelectAll: boolean;
59
+ showSkeleton: boolean;
60
+ showColumnToggle: boolean;
61
+ columnStorageKey: undefined;
54
62
  }>>> & Readonly<{
55
63
  "onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
56
64
  "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
@@ -62,11 +70,14 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
62
70
  services: CustomTableServices;
63
71
  conditionals: CustomTableConditionals;
64
72
  actions: TableAction[] | ((row: any) => TableAction[]);
73
+ showSkeleton: boolean;
65
74
  rowClasses: string | ((row: any) => string);
66
75
  selection: "single" | "multiple" | "none";
67
76
  selected: any[];
68
77
  selectable: (row: any) => boolean;
69
78
  showSelectAll: boolean;
79
+ showColumnToggle: boolean;
80
+ columnStorageKey: string;
70
81
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
71
82
 
72
83
  declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_17<Props_2>, {
@@ -281,6 +292,7 @@ declare function __VLS_template_3(): {
281
292
  row: any;
282
293
  col: any;
283
294
  value: any;
295
+ badgeConfig: BadgeConfig | null;
284
296
  }): any;
285
297
  expanded?(_: {
286
298
  row: any;
@@ -591,6 +603,16 @@ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
591
603
  };
592
604
  };
593
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
+
594
616
  export declare interface BreadcrumbConfig {
595
617
  entity: string;
596
618
  dataCy: string;
@@ -750,6 +772,8 @@ export declare interface CustomTableProps {
750
772
  onSelectionChange?: (selected: any[]) => void;
751
773
  selectable?: (row: any) => boolean;
752
774
  showSelectAll?: boolean;
775
+ showColumnToggle?: boolean;
776
+ columnStorageKey?: string;
753
777
  }
754
778
 
755
779
  export declare interface CustomTableServices {
@@ -1330,6 +1354,21 @@ export declare interface TableColumn {
1330
1354
  sortable?: boolean;
1331
1355
  format?: (value: any) => string;
1332
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
+ };
1333
1372
  }
1334
1373
 
1335
1374
  export declare interface TableRequestProps {