@wirecore/wirelayer-vue 0.15.1 → 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/{RecipesProvider-z4RUE-Pk.js → RecipesProvider-BsuOKVkQ.js} +78 -72
- package/dist/{Tree-BD13Var1.js → Tree-8KjrR3Z-.js} +67 -61
- package/dist/components/Banner/Banner.vue.d.ts +6 -1
- package/dist/components/Banner/Banner.vue.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/TabsContent.vue.d.ts.map +1 -1
- package/dist/components/Tabs/context.d.ts +5 -0
- package/dist/components/Tabs/context.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- 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 +1025 -1024
- package/dist/index.js +5 -3
- package/dist/pdf.js +1 -1
- package/llms-full.txt +29 -1
- package/llms.txt +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./recipes-CD2Ibsv9.js";
|
|
2
|
-
import { C as o, S as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as ee } from "./RecipesProvider-
|
|
2
|
+
import { C as o, S as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as ee } from "./RecipesProvider-BsuOKVkQ.js";
|
|
3
3
|
import { t as te } from "./attrs-KNjeRUCf.js";
|
|
4
4
|
import { t as k } from "./Button-WA6BonwF.js";
|
|
5
5
|
import { t as ne } from "./Checkbox-DILwucBG.js";
|
|
@@ -9,7 +9,7 @@ import { n as A, t as se } from "./Input-DqFiLzOR.js";
|
|
|
9
9
|
import { t as ce } from "./label-for-eQvYjsM5.js";
|
|
10
10
|
import { i as le, n as ue, r as de, t as fe } from "./Select-B5c6Y3mf.js";
|
|
11
11
|
import { a as pe, i as me, n as he, r as ge, t as _e } from "./Highlight-BM-J3Jj0.js";
|
|
12
|
-
import { a as ve, c as ye, i as be, l as xe, n as Se, o as Ce, r as we, s as Te, t as Ee } from "./Tree-
|
|
12
|
+
import { a as ve, c as ye, i as be, l as xe, n as Se, o as Ce, r as we, s as Te, t as Ee } from "./Tree-8KjrR3Z-.js";
|
|
13
13
|
import { t as De } from "./Slider-Z-rsNeI1.js";
|
|
14
14
|
import { t as Oe } from "./CopyButton-BVRwSCRj.js";
|
|
15
15
|
import { Fragment as j, Teleport as ke, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as Ae, createTextVNode as L, createVNode as R, customRef as je, defineComponent as z, getCurrentInstance as Me, getCurrentScope as Ne, guardReactiveProps as B, h as Pe, inject as Fe, isRef as Ie, mergeProps as V, nextTick as Le, normalizeClass as H, normalizeProps as U, normalizeStyle as W, onBeforeUnmount as Re, onMounted as ze, onScopeDispose as Be, onUpdated as Ve, openBlock as G, provide as He, reactive as Ue, ref as K, renderList as q, renderSlot as J, resolveComponent as We, resolveDynamicComponent as Y, shallowRef as Ge, toDisplayString as X, toValue as Ke, unref as Z, useAttrs as Q, useId as qe, useSlots as Je, useTemplateRef as Ye, watch as Xe, watchEffect as Ze, withCtx as $, withKeys as Qe, withModifiers as $e } from "vue";
|
|
@@ -13632,6 +13632,7 @@ var Vg = /* @__PURE__ */ z({
|
|
|
13632
13632
|
variant: {},
|
|
13633
13633
|
title: {},
|
|
13634
13634
|
position: {},
|
|
13635
|
+
solid: { type: Boolean },
|
|
13635
13636
|
dismissible: { type: Boolean },
|
|
13636
13637
|
open: {
|
|
13637
13638
|
type: Boolean,
|
|
@@ -13647,7 +13648,8 @@ var Vg = /* @__PURE__ */ z({
|
|
|
13647
13648
|
setup(e, { emit: t }) {
|
|
13648
13649
|
let i = e, a = n("banner", ir, () => i.classes), o = t, s = Je(), c = Q(), l = r(), u = M(() => a({
|
|
13649
13650
|
variant: i.variant,
|
|
13650
|
-
position: i.position
|
|
13651
|
+
position: i.position,
|
|
13652
|
+
solid: i.solid
|
|
13651
13653
|
})), d = {
|
|
13652
13654
|
info: Mt,
|
|
13653
13655
|
success: xt,
|
package/dist/pdf.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a as e, n as t, o as n } from "./recipes-CD2Ibsv9.js";
|
|
|
2
2
|
import { t as r } from "./Button-WA6BonwF.js";
|
|
3
3
|
import { t as i } from "./Field-xVx6PoU7.js";
|
|
4
4
|
import { i as a, t as o } from "./Select-B5c6Y3mf.js";
|
|
5
|
-
import { c as s, i as c, l, n as u, o as d, r as ee, s as te, t as ne } from "./Tree-
|
|
5
|
+
import { c as s, i as c, l, n as u, o as d, r as ee, s as te, t as ne } from "./Tree-8KjrR3Z-.js";
|
|
6
6
|
import { Fragment as f, computed as p, createBlock as re, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, mergeProps as ie, nextTick as ae, normalizeClass as b, normalizeStyle as oe, onBeforeUnmount as se, onMounted as ce, openBlock as x, reactive as le, ref as S, renderList as ue, resolveDynamicComponent as de, toDisplayString as C, unref as w, useAttrs as fe, useId as pe, useTemplateRef as T, vModelText as me, watch as E, withCtx as D, withDirectives as he, withModifiers as ge } from "vue";
|
|
7
7
|
import { CaseSensitive as _e, ChevronDown as ve, ChevronUp as ye, Download as be, FileWarning as xe, Maximize as Se, Minimize as Ce, PanelLeft as we, Printer as Te, RotateCw as Ee, Search as De, X as Oe, ZoomIn as ke, ZoomOut as Ae } from "@lucide/vue";
|
|
8
8
|
import { PDF_ZOOM_MAX as je, PDF_ZOOM_MIN as Me, clampPdfPage as Ne, clampPdfZoom as Pe, downloadBytes as Fe, input as Ie, normalizePdfRotation as O, parsePdfPage as Le, pdfFileName as Re, pdfKeyAction as ze, pdfPrintDocument as k, pdfSearchText as Be, pdfThumbnailSize as Ve, pdfTools as A, pdfViewer as He, pdfZoomFromKey as Ue, pdfZoomKey as We, pdfZoomStep as Ge, pdfZoomSteps as j, pdfZoomSteps as Ke, resolvePdfTools as qe, setupToolbar as Je } from "@wirecore/wirelayer-recipes";
|
package/llms-full.txt
CHANGED
|
@@ -419,7 +419,8 @@ Page-wide notice: message in a live region (role="alert" for danger, else "statu
|
|
|
419
419
|
| --- | --- | --- |
|
|
420
420
|
| variant? | `BannerVariant` | info (default), success, warn, danger or neutral |
|
|
421
421
|
| title? | `string` | Bold text before the message |
|
|
422
|
-
| position? | `BannerPosition` | `inline` (default): in the flow; `top`/`bottom`: fixed to that edge of the window |
|
|
422
|
+
| position? | `BannerPosition` | `inline` (default): in the flow; `top`/`bottom`: fixed to that edge of the window; `sticky`: in the flow, stays at the top edge while the page scrolls (opaque, below dialogs and drawers) |
|
|
423
|
+
| solid? | `boolean` | Full fill in the colour of the variant (opaque) – for permanent notices like "TEST SYSTEM" or maintenance |
|
|
423
424
|
| dismissible? | `boolean` | Shows a close button |
|
|
424
425
|
| v-model:open? | `boolean` | Controlled visibility – use with v-model:open |
|
|
425
426
|
| storage-key? | `string` | Remembers the dismissal in localStorage under this key – the banner stays hidden on the next visit |
|
|
@@ -6956,6 +6957,33 @@ narrow screens). `minScrollHeight` keeps it from collapsing; below that the page
|
|
|
6956
6957
|
</main>
|
|
6957
6958
|
```
|
|
6958
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
|
+
|
|
6959
6987
|
### AI assistants (MCP, llms.txt)
|
|
6960
6988
|
|
|
6961
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": {
|