@selfeesas/shared-components 0.7.0 → 0.9.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.
@@ -26,8 +26,19 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
26
26
  conditionals: () => {};
27
27
  actions: () => never[];
28
28
  rowClasses: undefined;
29
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
29
+ selection: string;
30
+ selected: () => never[];
31
+ selectable: () => true;
32
+ showSelectAll: boolean;
33
+ }>>, {
34
+ clearSelection: typeof clearSelection;
35
+ getSelectedRows: () => any[];
36
+ toggleRowSelection: typeof toggleRowSelection;
37
+ toggleSelectAll: typeof toggleSelectAll;
38
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
30
39
  "update:pagination": (...args: any[]) => void;
40
+ "update:selected": (...args: any[]) => void;
41
+ "selection-change": (...args: any[]) => void;
31
42
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_11<CustomTableProps>, {
32
43
  filter: string;
33
44
  loading: boolean;
@@ -36,8 +47,14 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
36
47
  conditionals: () => {};
37
48
  actions: () => never[];
38
49
  rowClasses: undefined;
50
+ selection: string;
51
+ selected: () => never[];
52
+ selectable: () => true;
53
+ showSelectAll: boolean;
39
54
  }>>> & Readonly<{
40
55
  "onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
56
+ "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
57
+ "onSelection-change"?: ((...args: any[]) => any) | undefined;
41
58
  }>, {
42
59
  filter: string;
43
60
  loading: boolean;
@@ -46,6 +63,10 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
46
63
  conditionals: CustomTableConditionals;
47
64
  actions: TableAction[] | ((row: any) => TableAction[]);
48
65
  rowClasses: string | ((row: any) => string);
66
+ selection: "single" | "multiple" | "none";
67
+ selected: any[];
68
+ selectable: (row: any) => boolean;
69
+ showSelectAll: boolean;
49
70
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
50
71
 
51
72
  declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_17<Props_2>, {
@@ -93,6 +114,7 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefa
93
114
  flat: boolean;
94
115
  dense: boolean;
95
116
  rounded: boolean;
117
+ bordered: boolean;
96
118
  title: string;
97
119
  subtitle: string;
98
120
  showHeader: boolean;
@@ -100,7 +122,6 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefa
100
122
  shadowIntensity: "none" | "light" | "medium" | "heavy";
101
123
  noPadding: boolean;
102
124
  hoverable: boolean;
103
- bordered: boolean;
104
125
  centerTitle: boolean;
105
126
  centerActions: boolean;
106
127
  contentGap: boolean | string;
@@ -247,6 +268,10 @@ declare function __VLS_template_2(): {
247
268
  declare function __VLS_template_3(): {
248
269
  attrs: Partial<{}>;
249
270
  slots: {
271
+ 'selection-actions'?(_: {
272
+ selected: any[];
273
+ clearSelection: typeof clearSelection;
274
+ }): any;
250
275
  'expand-button'?(_: {
251
276
  row: any;
252
277
  expanded: boolean;
@@ -643,6 +668,8 @@ export declare interface CheckboxOption {
643
668
  disabled?: boolean;
644
669
  }
645
670
 
671
+ declare function clearSelection(): void;
672
+
646
673
  export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_16<ConfirmDeleteDialogProps>, {
647
674
  icon: string;
648
675
  color: string;
@@ -702,6 +729,7 @@ export declare const CustomTable: __VLS_WithTemplateSlots_3<typeof __VLS_compone
702
729
 
703
730
  export declare interface CustomTableConditionals {
704
731
  shouldShowExpandButton?: (row: any) => boolean;
732
+ shouldShowSelectionColumn?: () => boolean;
705
733
  }
706
734
 
707
735
  export declare interface CustomTableProps {
@@ -717,6 +745,11 @@ export declare interface CustomTableProps {
717
745
  actions?: TableAction[] | ((row: any) => TableAction[]);
718
746
  showSkeleton?: boolean;
719
747
  rowClasses?: string | ((row: any) => string);
748
+ selection?: 'single' | 'multiple' | 'none';
749
+ selected?: any[];
750
+ onSelectionChange?: (selected: any[]) => void;
751
+ selectable?: (row: any) => boolean;
752
+ showSelectAll?: boolean;
720
753
  }
721
754
 
722
755
  export declare interface CustomTableServices {
@@ -1296,6 +1329,7 @@ export declare interface TableColumn {
1296
1329
  align?: 'left' | 'right' | 'center';
1297
1330
  sortable?: boolean;
1298
1331
  format?: (value: any) => string;
1332
+ isSelectionColumn?: boolean;
1299
1333
  }
1300
1334
 
1301
1335
  export declare interface TableRequestProps {
@@ -1303,6 +1337,10 @@ export declare interface TableRequestProps {
1303
1337
  filter?: string;
1304
1338
  }
1305
1339
 
1340
+ declare function toggleRowSelection(row: any, selected: boolean): void;
1341
+
1342
+ declare function toggleSelectAll(selected: boolean): void;
1343
+
1306
1344
  export declare const UserAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToOption_7<UserAvatarProps>, {
1307
1345
  logoutLabel: string;
1308
1346
  showVersionInfo: boolean;