@v1nt1248/3nclient-lib 0.1.60 → 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.
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.60",
5
+ "version": "0.1.62",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -102,7 +102,7 @@
102
102
  "vue": "3.5.13",
103
103
  "vue-tsc": "2.2.0"
104
104
  },
105
- "packageManager": "pnpm@9.15.3",
105
+ "packageManager": "pnpm@10.2.1",
106
106
  "pnpm": {
107
107
  "peerDependencyRules": {
108
108
  "ignoreMissing": [
@@ -35,6 +35,7 @@ export interface Ui3nEditableProps {
35
35
 
36
36
  export interface Ui3nEditableEmits {
37
37
  (event: 'update:modelValue', value: Nullable<string>): void;
38
+ (event: 'toggle:editMode', value: boolean): void;
38
39
  (event: 'done'): void;
39
40
  (event: 'cancel'): void;
40
41
  (event: 'focusin', value: FocusEvent): void;
@@ -117,6 +117,13 @@
117
117
  }
118
118
  },
119
119
  );
120
+
121
+ watch(
122
+ () => inEdit.value,
123
+ val => {
124
+ emits('toggle:editMode', val);
125
+ },
126
+ );
120
127
  </script>
121
128
 
122
129
  <template>
@@ -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>;