@den4ik92/ng2-smart-table 20.7.0 → 21.7.1
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@den4ik92/ng2-smart-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.7.1",
|
|
4
4
|
"description": "Angular Smart Table",
|
|
5
5
|
"author": "Den4ik92",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,21 +8,22 @@
|
|
|
8
8
|
"tslib": "^2.6.1"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/common": "^
|
|
12
|
-
"@angular/core": "^
|
|
13
|
-
"@angular/forms": "^
|
|
14
|
-
"@angular/cdk": "^
|
|
11
|
+
"@angular/common": "^21.2.9",
|
|
12
|
+
"@angular/core": "^21.2.9",
|
|
13
|
+
"@angular/forms": "^21.2.9",
|
|
14
|
+
"@angular/cdk": "^21.2.6"
|
|
15
15
|
},
|
|
16
16
|
"module": "fesm2022/den4ik92-ng2-smart-table.mjs",
|
|
17
|
-
"typings": "
|
|
17
|
+
"typings": "types/den4ik92-ng2-smart-table.d.ts",
|
|
18
18
|
"exports": {
|
|
19
19
|
"./package.json": {
|
|
20
20
|
"default": "./package.json"
|
|
21
21
|
},
|
|
22
22
|
".": {
|
|
23
|
-
"types": "./
|
|
23
|
+
"types": "./types/den4ik92-ng2-smart-table.d.ts",
|
|
24
24
|
"default": "./fesm2022/den4ik92-ng2-smart-table.mjs"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
"sideEffects": false
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"type": "module"
|
|
28
29
|
}
|
|
@@ -239,7 +239,9 @@ interface SmartTableDefaultEvent<T extends BaseDataType = any> {
|
|
|
239
239
|
source: DataSource<T>;
|
|
240
240
|
}
|
|
241
241
|
type SmartTableConfirmDeleteEvent<T extends BaseDataType = any> = SmartTableDefaultEvent<T>;
|
|
242
|
-
|
|
242
|
+
interface SmartTableRowClickedEvent<T extends BaseDataType = any> extends Omit<SmartTableDefaultEvent<T>, 'confirm'> {
|
|
243
|
+
event: MouseEvent;
|
|
244
|
+
}
|
|
243
245
|
interface SmartTableCustomEvent<T extends BaseDataType = any> extends Omit<SmartTableDefaultEvent<T>, 'confirm'> {
|
|
244
246
|
action: string;
|
|
245
247
|
}
|
|
@@ -557,7 +559,10 @@ declare class Ng2SmartTableComponent<T extends BaseDataType = any> implements On
|
|
|
557
559
|
protected multipleSelectRow(row: Row): void;
|
|
558
560
|
protected onSelectAllRows(): void;
|
|
559
561
|
protected onSelectRow(row: Row, state: boolean): void;
|
|
560
|
-
protected emitUserRowClicked(row
|
|
562
|
+
protected emitUserRowClicked({ row, event }: {
|
|
563
|
+
row: Row;
|
|
564
|
+
event: MouseEvent;
|
|
565
|
+
}): void;
|
|
561
566
|
protected customActionEmitted(event: SmartTableCustomEvent<T>): void;
|
|
562
567
|
protected editEmitted(row: Row): void;
|
|
563
568
|
protected editConfirmed(row: Row): void;
|