@v1nt1248/3nclient-lib 0.1.61 → 0.1.62

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.
@@ -43,8 +43,10 @@ export interface Ui3nTableEmits<T extends Ui3nTableBodyBaseItem> {
43
43
  export type Ui3nTableNoDataSlot = {
44
44
  'no-data': () => VNode;
45
45
  };
46
- export type Ui3nTableGroupActionsSlot = {
47
- 'group-actions': () => VNode;
46
+ export type Ui3nTableGroupActionsSlot<T extends Ui3nTableBodyBaseItem> = {
47
+ 'group-actions': ({ selectedRows }: {
48
+ selectedRows: T[];
49
+ }) => VNode;
48
50
  };
49
51
  export type Ui3nTableHeaderCellSlot<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> = {
50
52
  [p in `header-cell-${K}`]: () => VNode;
@@ -76,7 +78,7 @@ export type Ui3nTableBodyRowCellSlotScope<T extends Ui3nTableBodyBaseItem, K ext
76
78
  export type Ui3nTableBodyRowCellSlot<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> = {
77
79
  [p in `row-cell-${K}`]: (scope: Ui3nTableBodyRowCellSlotScope<T, K>) => VNode;
78
80
  };
79
- export type Ui3nTableSlots<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> = Ui3nTableNoDataSlot & Ui3nTableGroupActionsSlot & Ui3nTableHeaderCellSlot<T, K> & Ui3nTableBodyRowSlot<T> & Ui3nTableBodyRowCellSlot<T, K>;
81
+ export type Ui3nTableSlots<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> = Ui3nTableNoDataSlot & Ui3nTableGroupActionsSlot<T> & Ui3nTableHeaderCellSlot<T, K> & Ui3nTableBodyRowSlot<T> & Ui3nTableBodyRowCellSlot<T, K>;
80
82
  export interface Ui3nTableSortIconProps {
81
83
  size?: string | number;
82
84
  color?: string;
@@ -10,7 +10,7 @@ declare const _default: <T extends Ui3nTableBodyBaseItem>(__VLS_props: NonNullab
10
10
  closeGroupActionsRow: () => void;
11
11
  }>): void;
12
12
  attrs: any;
13
- slots: Readonly<import('./types').Ui3nTableNoDataSlot & import('./types').Ui3nTableGroupActionsSlot & import('./types').Ui3nTableHeaderCellSlot<T, string & keyof T> & import('./types').Ui3nTableBodyRowSlot<T> & import('./types').Ui3nTableBodyRowCellSlot<T, string & keyof T>> & import('./types').Ui3nTableNoDataSlot & import('./types').Ui3nTableGroupActionsSlot & import('./types').Ui3nTableHeaderCellSlot<T, string & keyof T> & import('./types').Ui3nTableBodyRowSlot<T> & import('./types').Ui3nTableBodyRowCellSlot<T, string & keyof T>;
13
+ slots: Readonly<import('./types').Ui3nTableNoDataSlot & import('./types').Ui3nTableGroupActionsSlot<T> & import('./types').Ui3nTableHeaderCellSlot<T, string & keyof T> & import('./types').Ui3nTableBodyRowSlot<T> & import('./types').Ui3nTableBodyRowCellSlot<T, string & keyof T>> & import('./types').Ui3nTableNoDataSlot & import('./types').Ui3nTableGroupActionsSlot<T> & import('./types').Ui3nTableHeaderCellSlot<T, string & keyof T> & import('./types').Ui3nTableBodyRowSlot<T> & import('./types').Ui3nTableBodyRowCellSlot<T, string & keyof T>;
14
14
  emit: Ui3nTableEmits<T>;
15
15
  }>) => import('vue').VNode & {
16
16
  __ctx?: Awaited<typeof __VLS_setup>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.1.61",
5
+ "version": "0.1.62",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -51,8 +51,8 @@ export type Ui3nTableNoDataSlot = {
51
51
  'no-data': () => VNode;
52
52
  };
53
53
 
54
- export type Ui3nTableGroupActionsSlot = {
55
- 'group-actions': () => VNode;
54
+ export type Ui3nTableGroupActionsSlot<T extends Ui3nTableBodyBaseItem> = {
55
+ 'group-actions': ({ selectedRows }: { selectedRows: T[] }) => VNode;
56
56
  };
57
57
 
58
58
  export type Ui3nTableHeaderCellSlot<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> = {
@@ -87,7 +87,7 @@ export type Ui3nTableBodyRowCellSlot<T extends Ui3nTableBodyBaseItem, K extends
87
87
  };
88
88
 
89
89
  export type Ui3nTableSlots<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> = Ui3nTableNoDataSlot &
90
- Ui3nTableGroupActionsSlot &
90
+ Ui3nTableGroupActionsSlot<T> &
91
91
  Ui3nTableHeaderCellSlot<T, K> &
92
92
  Ui3nTableBodyRowSlot<T> &
93
93
  Ui3nTableBodyRowCellSlot<T, K>;