react-kd-grid 2.2.2 → 2.2.4
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/dist/components/GridHeader.d.ts +5 -1
- package/dist/components/GridRows.d.ts +4 -1
- package/dist/components/PaginationControls.d.ts +4 -1
- package/dist/components/SearchToolbar.d.ts +4 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/dateUtils.d.ts +16 -0
- package/package.json +1 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal inline date utilities — replaces the date-fns dependency so
|
|
3
|
+
* consumers don't need to install date-fns to use KDGrid.
|
|
4
|
+
*
|
|
5
|
+
* We only use two operations from date-fns across the entire library:
|
|
6
|
+
* format(date, "yyyy-MM-dd") → toYMD(date)
|
|
7
|
+
* parse(str, "yyyy-MM-dd", referenceDate) → fromYMD(str)
|
|
8
|
+
*
|
|
9
|
+
* These ~20 lines are far cheaper than shipping a 30 KB peer dependency.
|
|
10
|
+
*/
|
|
11
|
+
/** Format a Date to "yyyy-MM-dd" (ISO date portion only). */
|
|
12
|
+
export declare const toYMD: (d: Date) => string;
|
|
13
|
+
/** Parse a "yyyy-MM-dd" string into a Date (local midnight). Returns Invalid Date on failure. */
|
|
14
|
+
export declare const fromYMD: (s: string) => Date;
|
|
15
|
+
/** Format a Date to human-readable "dd-MM-yyyy" for display. */
|
|
16
|
+
export declare const toDMY: (d: Date) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-kd-grid",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "A feature-rich, performant React data grid component with virtualization, grouping, filtering, and export capabilities",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
"@types/file-saver": "^2.0.7",
|
|
66
66
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
67
67
|
"@typescript-eslint/parser": "^6.0.0",
|
|
68
|
-
"date-fns": "^3.6.0",
|
|
69
68
|
"eslint": "^8.0.0",
|
|
70
69
|
"eslint-plugin-react": "^7.32.0",
|
|
71
70
|
"eslint-plugin-react-hooks": "^4.6.0",
|