@agile-team/mach-table-xlsx 0.18.1 → 0.19.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 +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agile-team/mach-table-xlsx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "Optional, engine-agnostic XLSX import and export extension for MachTable",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-grid",
|
|
@@ -48,12 +48,13 @@
|
|
|
48
48
|
],
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@agile-team/mach-table": "0.
|
|
51
|
+
"@agile-team/mach-table": "0.19.1"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsup",
|
|
55
55
|
"typecheck": "tsc --noEmit",
|
|
56
56
|
"test": "vitest run",
|
|
57
57
|
"test:coverage": "vitest run --coverage"
|
|
58
|
-
}
|
|
58
|
+
},
|
|
59
|
+
"readme": "# @agile-team/mach-table-xlsx\n\nOptional XLSX import/export for MachTable. The workbook engine is injected and can be dynamically imported, so normal table pages do not download Excel code.\n\n```bash\npnpm add @agile-team/mach-table-xlsx xlsx\n```\n\n```ts\nimport { createXlsxExtension } from \"@agile-team/mach-table-xlsx\";\n\nconst xlsx = createXlsxExtension(() => import(\"xlsx\"));\nawait xlsx.export(api, { fileName: \"orders.xlsx\", sheetName: \"Orders\" });\n\nawait xlsx.import(api, await file.arrayBuffer(), {\n sheet: 0,\n mode: \"replace\",\n coerceNumbers: true\n});\n```\n\nThe extension reuses Core CSV selection, header, formula-protection and safe import rules. `xlsx` is an example engine, not a bundled dependency; an approved compatible engine can be injected instead.\n\nDocumentation: [XLSX guide](https://github.com/ChenyCHENYU/MachTable/blob/main/docs/recipes/xlsx.md) · [Enterprise integration](https://github.com/ChenyCHENYU/MachTable/blob/main/docs/guide/enterprise-integration.md)\n\nSource-available © ChenyCHENYU (Agile Team). Any use requires prior written authorization. See the [license](https://github.com/ChenyCHENYU/MachTable/blob/main/LICENSE) and [authorization process](https://github.com/ChenyCHENYU/MachTable/blob/main/LICENSING.md).\n"
|
|
59
60
|
}
|