persian-data-grid 0.5.0

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/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 hamidrezafallahi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
17
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,64 @@
1
+ # Persian Data Grid
2
+
3
+ [![npm version](https://img.shields.io/npm/v/persian-data-grid.svg)](https://www.npmjs.com/package/persian-data-grid)
4
+ [![npm downloads](https://img.shields.io/npm/dm/persian-data-grid.svg)](https://www.npmjs.com/package/persian-data-grid)
5
+ [![license](https://img.shields.io/npm/l/persian-data-grid.svg)](https://github.com/hamidrezafallahi/ERP-Table/blob/main/LICENSE)
6
+ [![React](https://img.shields.io/badge/React-17%20%7C%2018%20%7C%2019-61dafb)](https://react.dev/)
7
+ [![TypeScript](https://img.shields.io/badge/TypeScript-ready-3178c6)](https://www.typescriptlang.org/)
8
+
9
+ **Persian / Jalali ERP data grid for React** — event-sourced, IndexedDB storage, Excel/IDE keyboard navigation, RTL, and reactive cells that call your API.
10
+
11
+ > npm package: [`persian-data-grid`](https://www.npmjs.com/package/persian-data-grid) · Author: [Hamidreza Fallahi](https://github.com/hamidrezafallahi)
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm i persian-data-grid
17
+ # or
18
+ yarn add persian-data-grid
19
+ # or
20
+ pnpm add persian-data-grid
21
+ ```
22
+
23
+ **Peer dependencies:** `react` and `react-dom` (`^17` / `^18` / `^19`).
24
+
25
+ ```tsx
26
+ import { ERPTable } from 'persian-data-grid';
27
+
28
+ <ERPTable
29
+ store="erp"
30
+ tableKey={pageId}
31
+ actor={actor}
32
+ columns={columnConfig}
33
+ rows={rows}
34
+ tableHeight={tableHeight}
35
+ multiSelectConfig={multiSelectConfig}
36
+ onReady={setController}
37
+ />
38
+ ```
39
+
40
+ ## Docs
41
+
42
+ | Doc | Path |
43
+ |-----|------|
44
+ | Getting started | [docs/getting-started.md](./docs/getting-started.md) |
45
+ | Public API | [docs/public-api.md](./docs/public-api.md) |
46
+ | Components | [docs/components.md](./docs/components.md) |
47
+ | Event catalog | [docs/event-catalog.md](./docs/event-catalog.md) |
48
+
49
+ ## Local demo
50
+
51
+ ```bash
52
+ yarn install
53
+ yarn dev:docs # landing / live docs
54
+ yarn dev # ERPTable playground
55
+ yarn build # tsup → dist
56
+ ```
57
+
58
+ ## License
59
+
60
+ MIT © [Hamidreza Fallahi](https://github.com/hamidrezafallahi)
61
+
62
+ Repository: [github.com/hamidrezafallahi/ERP-Table](https://github.com/hamidrezafallahi/ERP-Table)
63
+ Issues: [GitHub Issues](https://github.com/hamidrezafallahi/ERP-Table/issues)
64
+ npm: [persian-data-grid](https://www.npmjs.com/package/persian-data-grid)