@wirecore/wirelayer-vue 0.16.0 → 0.17.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/dist/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/data-table/types.d.ts +9 -0
- package/dist/data-table/types.d.ts.map +1 -1
- package/dist/data-table.js +1024 -1023
- package/llms-full.txt +27 -0
- package/llms.txt +1 -0
- package/package.json +2 -2
package/llms-full.txt
CHANGED
|
@@ -6957,6 +6957,33 @@ narrow screens). `minScrollHeight` keeps it from collapsing; below that the page
|
|
|
6957
6957
|
</main>
|
|
6958
6958
|
```
|
|
6959
6959
|
|
|
6960
|
+
### DataTable export (CSV, Excel)
|
|
6961
|
+
|
|
6962
|
+
`exportFilename` shows the export button, `exportFormats` picks CSV, Excel (.xlsx) or both; `generateCsv()` and
|
|
6963
|
+
`generateXlsx()` return the file instead of downloading it. The export has the filtered and sorted rows of all pages (or
|
|
6964
|
+
the selection) and the visible columns in their current order. Per column: `exportable: false` leaves it out,
|
|
6965
|
+
`exportHeader` and `exportValue` replace the name and the value, and `exportColumns` splits it into several columns at
|
|
6966
|
+
its position – the table keeps showing one column, and printing too:
|
|
6967
|
+
|
|
6968
|
+
```ts
|
|
6969
|
+
const columns: DataTableColumn<Person>[] = [
|
|
6970
|
+
{
|
|
6971
|
+
id: 'name',
|
|
6972
|
+
header: 'Name',
|
|
6973
|
+
accessor: (row) => `${row.lastName}, ${row.firstName}`, // shown: "Doe, Jane"
|
|
6974
|
+
exportColumns: [
|
|
6975
|
+
{ header: 'First name', value: (row) => row.firstName },
|
|
6976
|
+
{ header: 'Last name', value: (row) => row.lastName },
|
|
6977
|
+
],
|
|
6978
|
+
},
|
|
6979
|
+
{ id: 'club', header: 'Club' },
|
|
6980
|
+
];
|
|
6981
|
+
// CSV: First name;Last name;Club
|
|
6982
|
+
```
|
|
6983
|
+
|
|
6984
|
+
`exportColumns` takes precedence over `exportHeader` and `exportValue`. In Excel the aggregate and the footer of a split
|
|
6985
|
+
column go to its first part. The React Native DataTable exports the same way.
|
|
6986
|
+
|
|
6960
6987
|
### AI assistants (MCP, llms.txt)
|
|
6961
6988
|
|
|
6962
6989
|
So that Claude, Cursor and others use the components correctly, the API is available as text and as an MCP server:
|
package/llms.txt
CHANGED
|
@@ -302,6 +302,7 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
|
|
|
302
302
|
- Hooks and composables
|
|
303
303
|
- Blocks and ConditionBuilder
|
|
304
304
|
- DataTable feature modules
|
|
305
|
+
- DataTable export (CSV, Excel)
|
|
305
306
|
- AI assistants (MCP, llms.txt)
|
|
306
307
|
- Language and writing direction
|
|
307
308
|
- Server data and loading more
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecore/wirelayer-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "WireLayer components for Vue 3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"@ark-ui/vue": "^5.39.3",
|
|
167
167
|
"@internationalized/date": "^3.12.4",
|
|
168
168
|
"@lucide/vue": "^1.59.0",
|
|
169
|
-
"@wirecore/wirelayer-recipes": "^0.
|
|
169
|
+
"@wirecore/wirelayer-recipes": "^0.16.0",
|
|
170
170
|
"@wirecore/wirelayer-tokens": "^0.9.0"
|
|
171
171
|
},
|
|
172
172
|
"devDependencies": {
|