@v1nt1248/3nclient-lib 0.1.41 → 0.1.42

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.
@@ -45,6 +45,9 @@ export type Ui3nTableGroupActionsSlot = {
45
45
  export type Ui3nTableHeaderCellSlot<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> = {
46
46
  [p in `header-cell-${K}`]: () => VNode;
47
47
  };
48
+ export type Ui3nTableBodyRowEventHandlers<T extends Ui3nTableBodyBaseItem> = {
49
+ select: (row: T, withoutEvents?: boolean) => void;
50
+ };
48
51
  export type Ui3nTableBodyRowSlotScope<T extends Ui3nTableBodyBaseItem, K extends keyof T = keyof T> = {
49
52
  row: T;
50
53
  rowStyle?: Record<string, string>;
@@ -53,7 +56,7 @@ export type Ui3nTableBodyRowSlotScope<T extends Ui3nTableBodyBaseItem, K extends
53
56
  columnStyle?: {
54
57
  [P in Omit<K, 'id'> as string | number]: Record<string, string>;
55
58
  };
56
- events?: Record<string, (value: unknown) => unknown>;
59
+ eventHandlers?: Ui3nTableBodyRowEventHandlers<T>;
57
60
  };
58
61
  export type Ui3nTableBodyRowSlot<T extends Ui3nTableBodyBaseItem> = {
59
62
  row: (scope: Ui3nTableBodyRowSlotScope<T>) => VNode;
@@ -12974,7 +12974,7 @@ const mf = /* @__PURE__ */ Eg({
12974
12974
  rowIndex: CA,
12975
12975
  isRowSelected: KA(h)(O),
12976
12976
  columnStyle: (W = x.config) == null ? void 0 : W.columnStyle,
12977
- events: J
12977
+ "eventHandlers-": J
12978
12978
  })
12979
12979
  ], 2);
12980
12980
  }), 128)) : (eA(!0), DA(AB, { key: 1 }, gB(x.body.content, (O, CA) => (eA(), DA("div", {
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.41",
5
+ "version": "0.1.42",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -53,13 +53,17 @@ export type Ui3nTableHeaderCellSlot<T extends Ui3nTableBodyBaseItem, K extends s
53
53
  [p in `header-cell-${K}`]: () => VNode;
54
54
  };
55
55
 
56
+ export type Ui3nTableBodyRowEventHandlers<T extends Ui3nTableBodyBaseItem> = {
57
+ select: (row: T, withoutEvents?: boolean) => void;
58
+ };
59
+
56
60
  export type Ui3nTableBodyRowSlotScope<T extends Ui3nTableBodyBaseItem, K extends keyof T = keyof T> = {
57
61
  row: T;
58
62
  rowStyle?: Record<string, string>;
59
63
  rowIndex: number;
60
64
  isRowSelected?: boolean;
61
65
  columnStyle?: { [P in Omit<K, 'id'> as string | number]: Record<string, string> };
62
- events?: Record<string, (value: unknown) => unknown>;
66
+ eventHandlers?: Ui3nTableBodyRowEventHandlers<T>;
63
67
  };
64
68
 
65
69
  export type Ui3nTableBodyRowSlot<T extends Ui3nTableBodyBaseItem> = {
@@ -25,7 +25,7 @@
25
25
  changeSortOrder,
26
26
  } = useTable(props, emits);
27
27
 
28
- const eventsHandlers = {
28
+ const eventHandlers = {
29
29
  select: processSelection,
30
30
  };
31
31
  </script>
@@ -108,7 +108,7 @@
108
108
  :row-index="rowIndex"
109
109
  :is-row-selected="isRowSelected(row)"
110
110
  :column-style="config?.columnStyle"
111
- :events="eventsHandlers"
111
+ :event-handlers-="eventHandlers"
112
112
  />
113
113
  </div>
114
114
  </template>