@chumsinc/sortable-tables 2.0.10 → 2.0.11
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/CHANGELOG.md +12 -1
- package/dist/DataTableRow.js.map +1 -1
- package/package.json +1 -1
- package/src/DataTableRow.tsx +1 -1
- package/src/types.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
9
9
|
|
|
10
|
-
#### [v2.0.
|
|
10
|
+
#### [v2.0.11](https://github.com/ChumsInc/sortable-tables/compare/v2.0.10...v2.0.11)
|
|
11
|
+
|
|
12
|
+
> 2025-07-08
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Commits
|
|
18
|
+
|
|
19
|
+
- [`83848ad`](https://github.com/ChumsInc/sortable-tables/commit/83848ad28bad0dcd659f3a4bcf2a9ee1ab44d860) fix: add stricter typing for onSelectRow MouseEvent<HTMLTableRowElement>
|
|
20
|
+
|
|
21
|
+
#### [v2.0.10](https://github.com/ChumsInc/sortable-tables/compare/v2.0.9...v2.0.10) - 2025-07-07
|
|
11
22
|
|
|
12
23
|
> 2025-07-07
|
|
13
24
|
|
package/dist/DataTableRow.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableRow.js","sourceRoot":"","sources":["../src/DataTableRow.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,IAAI,EAAC,MAAM,SAAS,CAAC;AAE7B,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAG5C,SAAS,YAAY,CAAc,EACmB,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,GAAG,EACH,KAAK,EACL,OAAO,GAAG,IAAI,EACd,GAAG,IAAI,EACY;IACrE,MAAM,YAAY,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"DataTableRow.js","sourceRoot":"","sources":["../src/DataTableRow.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,IAAI,EAAC,MAAM,SAAS,CAAC;AAE7B,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAG5C,SAAS,YAAY,CAAc,EACmB,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,GAAG,EACH,KAAK,EACL,OAAO,GAAG,IAAI,EACd,GAAG,IAAI,EACY;IACrE,MAAM,YAAY,GAAG,CAAC,EAAkC,EAAE,EAAE;QACxD,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC,CAAA;IAED,MAAM,UAAU,GAAG,OAAO,YAAY,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;IACzF,IAAI,CAAC,GAAG,EAAE,CAAC;QACP,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,aAAI,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,UAAU,CAAC,EAAC,cAAc,EAAE,QAAQ,EAAC,EAAE,SAAS,EAAE,UAAU,CAAC,EACxE,OAAO,EAAE,YAAY,KACjB,IAAI,YACP,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,KAAC,aAAa,IAAa,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,IAA7B,KAAK,CAA4B,CAAC,CAAC,GACrF,CACR,CAAA;AACL,CAAC;AAED,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAC1C,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
package/src/DataTableRow.tsx
CHANGED
package/src/types.ts
CHANGED
|
@@ -44,7 +44,7 @@ export interface DataTableProps<T = unknown> extends TableHTMLAttributes<HTMLTab
|
|
|
44
44
|
responsive?: boolean|"sm" | "md" | "lg" | "xl" | 'xxl';
|
|
45
45
|
rowClassName?: DataTableClassNames<T>;
|
|
46
46
|
renderRow?: (row: T) => React.ReactNode;
|
|
47
|
-
onSelectRow?: (row: T, ev?:MouseEvent) => T | void;
|
|
47
|
+
onSelectRow?: (row: T, ev?:MouseEvent<HTMLTableRowElement>) => T | void;
|
|
48
48
|
selected?: string | number | ((row: T) => boolean);
|
|
49
49
|
tfoot?: React.ReactElement<HTMLTableSectionElement>;
|
|
50
50
|
tableHeadProps?: DataTableHeadProps<T>;
|
|
@@ -73,7 +73,7 @@ export interface DataTableTBodyProps<T = unknown> extends TableHTMLAttributes<HT
|
|
|
73
73
|
keyField: keyof T | ((row: T) => string|number);
|
|
74
74
|
rowClassName?: DataTableClassNames<T>;
|
|
75
75
|
renderRow?: (row: T) => React.ReactNode;
|
|
76
|
-
onSelectRow?: (row: T, ev?:MouseEvent) => T | void;
|
|
76
|
+
onSelectRow?: (row: T, ev?:MouseEvent<HTMLTableRowElement>) => T | void;
|
|
77
77
|
selected?: string | number | ((row: T) => boolean);
|
|
78
78
|
children?: ReactNode;
|
|
79
79
|
}
|
|
@@ -84,7 +84,7 @@ export interface DataTableRowProps<T = unknown> extends Omit <TableHTMLAttribute
|
|
|
84
84
|
fields: DataTableField<T>[];
|
|
85
85
|
row: T;
|
|
86
86
|
trRef?: React.Ref<HTMLTableRowElement>;
|
|
87
|
-
onClick?: (ev?:MouseEvent) => void;
|
|
87
|
+
onClick?: (ev?:MouseEvent<HTMLTableRowElement>) => void;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export interface SortableTableProps<T = unknown> extends DataTableProps<T> {
|