@wirecore/wirelayer-vue 0.13.0 → 0.14.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.
@@ -1,6 +1,6 @@
1
1
  import { a as e, n as t, o as n, r } from "./recipes-CD2Ibsv9.js";
2
- import { _ as i, a, b as o, i as s, n as c, o as ee, r as l, t as te, v as u, y as d } from "./RecipesProvider-DDJst6Pj.js";
3
- import { t as f } from "./Button-WA6BonwF.js";
2
+ import { _ as i, a, b as o, i as s, n as c, o as ee, r as l, t as u, v as d, y as f } from "./RecipesProvider-DzlYvZ-I.js";
3
+ import { t as te } from "./Button-WA6BonwF.js";
4
4
  import { t as ne } from "./Checkbox-DILwucBG.js";
5
5
  import { n as p, t as re } from "./Input-CH-ntEjv.js";
6
6
  import { i as ie, t as ae } from "./Select-B5c6Y3mf.js";
@@ -81,10 +81,10 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
81
81
  }] : (r.options ?? []).map((e) => typeof e == "string" ? {
82
82
  value: e,
83
83
  label: e
84
- } : e)]), te = h(() => r.modelValue === null || r.modelValue === void 0 ? "" : String(r.modelValue)), u = (e) => Array.isArray(e) && (e[0] || e[1]) ? {
84
+ } : e)]), u = h(() => r.modelValue === null || r.modelValue === void 0 ? "" : String(r.modelValue)), d = (e) => Array.isArray(e) && (e[0] || e[1]) ? {
85
85
  start: e[0] ?? null,
86
86
  end: e[1] ?? null
87
- } : null, f = (e) => [e?.start ?? null, e?.end ?? null], p = (e) => e && Number.isFinite(Number(e)) ? Number(e) : null, ie = h(() => ee.value ? r.modelValue ?? (r.any ? "" : null) : te.value);
87
+ } : null, te = (e) => [e?.start ?? null, e?.end ?? null], p = (e) => e && Number.isFinite(Number(e)) ? Number(e) : null, ie = h(() => ee.value ? r.modelValue ?? (r.any ? "" : null) : u.value);
88
88
  return (t, n) => e.range && (e.type === "date" || e.type === "datetime") && M(c).dateRangeInput ? (D(), g(ve(M(c).dateRangeInput), {
89
89
  key: 0,
90
90
  size: "sm",
@@ -92,8 +92,8 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
92
92
  invalid: e.invalid,
93
93
  placeholder: e.inputProps?.placeholder,
94
94
  "with-time": e.type === "datetime",
95
- "model-value": u(e.modelValue),
96
- "onUpdate:modelValue": n[0] ||= (e) => i("update:modelValue", f(e))
95
+ "model-value": d(e.modelValue),
96
+ "onUpdate:modelValue": n[0] ||= (e) => i("update:modelValue", te(e))
97
97
  }, null, 8, [
98
98
  "aria-label",
99
99
  "invalid",
@@ -106,20 +106,20 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
106
106
  "aria-label": e.label,
107
107
  invalid: e.invalid,
108
108
  placeholder: e.inputProps?.placeholder ?? (e.filter ? M(o).filterText : void 0),
109
- "model-value": te.value,
109
+ "model-value": u.value,
110
110
  "onUpdate:modelValue": n[1] ||= (e) => i("update:modelValue", e ?? "")
111
111
  }, null, 8, [
112
112
  "aria-label",
113
113
  "invalid",
114
114
  "placeholder",
115
115
  "model-value"
116
- ])) : e.type === "textarea" ? (D(), g(d, {
116
+ ])) : e.type === "textarea" ? (D(), g(f, {
117
117
  key: 2,
118
118
  size: "sm",
119
119
  "auto-resize": "",
120
120
  "aria-label": e.label,
121
121
  invalid: e.invalid,
122
- "model-value": te.value,
122
+ "model-value": u.value,
123
123
  "onUpdate:modelValue": n[2] ||= (e) => i("update:modelValue", e ?? "")
124
124
  }, null, 8, [
125
125
  "aria-label",
@@ -159,7 +159,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
159
159
  invalid: e.invalid,
160
160
  placeholder: e.inputProps?.placeholder,
161
161
  "with-time": e.type === "datetime",
162
- "model-value": te.value || null,
162
+ "model-value": u.value || null,
163
163
  "onUpdate:modelValue": n[5] ||= (e) => i("update:modelValue", e)
164
164
  }, null, 8, [
165
165
  "aria-label",
@@ -173,7 +173,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
173
173
  size: "sm",
174
174
  "aria-label": e.label,
175
175
  invalid: e.invalid,
176
- "model-value": te.value.slice(0, e.type === "date" ? 10 : 16),
176
+ "model-value": u.value.slice(0, e.type === "date" ? 10 : 16),
177
177
  "onUpdate:modelValue": n[6] ||= (e) => i("update:modelValue", e || null)
178
178
  }, null, 8, [
179
179
  "type",
@@ -253,33 +253,33 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
253
253
  },
254
254
  emits: ["update:modelValue"],
255
255
  setup(r, { emit: i }) {
256
- let a = r, o = t("dataTable", dt), s = i, c = n().dataTable, ee = e(), l = o(), te = O(!1), u = O(gt(a.type)), d = h(() => Dt(a.modelValue)), ne = h(() => Pt(a.type, a.matchModes)), re = h(() => ne.value.map((e) => ({
256
+ let a = r, o = t("dataTable", dt), s = i, c = n().dataTable, ee = e(), l = o(), u = O(!1), d = O(gt(a.type)), f = h(() => Dt(a.modelValue)), ne = h(() => Pt(a.type, a.matchModes)), re = h(() => ne.value.map((e) => ({
257
257
  value: e,
258
258
  label: Nt(e, c.matchModes, ee.value.locale)
259
259
  }))), ie = (e) => Mt(e)?.input ?? a.type, oe = fe(Jn, {}), se = (e) => !!oe.dateRangeInput && ["date", "datetime"].includes(ie(e)), S = (e) => JSON.parse(JSON.stringify(e));
260
260
  function ue(e) {
261
- e && (u.value = S(mn(a.modelValue ?? gt(a.type), a.type))), te.value = e;
261
+ e && (d.value = S(mn(a.modelValue ?? gt(a.type), a.type))), u.value = e;
262
262
  }
263
263
  function de(e, t) {
264
- let n = u.value.constraints[e];
264
+ let n = d.value.constraints[e];
265
265
  Ot(t) !== Ot(n.matchMode) && (n.value = Ot(t) ? [null, null] : null), n.matchMode = t;
266
266
  }
267
267
  function w(e, t, n) {
268
- let r = u.value.constraints[e], i = Array.isArray(r.value) ? [...r.value] : [null, null];
268
+ let r = d.value.constraints[e], i = Array.isArray(r.value) ? [...r.value] : [null, null];
269
269
  i[t] = n, r.value = i;
270
270
  }
271
271
  function pe() {
272
- s("update:modelValue", Dt(u.value) ? S(u.value) : void 0), te.value = !1;
272
+ s("update:modelValue", Dt(d.value) ? S(d.value) : void 0), u.value = !1;
273
273
  }
274
274
  function E() {
275
- s("update:modelValue", void 0), te.value = !1;
275
+ s("update:modelValue", void 0), u.value = !1;
276
276
  }
277
277
  let me = {
278
278
  placement: "bottom-end",
279
279
  gutter: 4
280
280
  };
281
281
  return (e, t) => (D(), g(M(bn).Root, {
282
- open: te.value,
282
+ open: u.value,
283
283
  positioning: me,
284
284
  "lazy-mount": "",
285
285
  "unmount-on-exit": "",
@@ -287,8 +287,8 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
287
287
  }, {
288
288
  default: N(() => [x(M(bn).Trigger, {
289
289
  class: T(M(l).headButton()),
290
- "aria-label": M(c).filterMenu(r.header, d.value),
291
- "data-active": d.value || void 0
290
+ "aria-label": M(c).filterMenu(r.header, f.value),
291
+ "data-active": f.value || void 0
292
292
  }, {
293
293
  default: N(() => [x(M(Re), {
294
294
  class: T(M(l).headButtonIcon()),
@@ -308,7 +308,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
308
308
  class: T(M(l).filterForm()),
309
309
  onSubmit: Te(pe, ["prevent"])
310
310
  }, [
311
- u.value.constraints.length > 1 ? (D(), g(ae, {
311
+ d.value.constraints.length > 1 ? (D(), g(ae, {
312
312
  key: 0,
313
313
  "aria-label": M(c).operator,
314
314
  items: [{
@@ -318,14 +318,14 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
318
318
  value: "or",
319
319
  label: M(c).matchAny
320
320
  }],
321
- "model-value": u.value.operator,
322
- "onUpdate:modelValue": t[0] ||= (e) => u.value.operator = e === "or" ? "or" : "and"
321
+ "model-value": d.value.operator,
322
+ "onUpdate:modelValue": t[0] ||= (e) => d.value.operator = e === "or" ? "or" : "and"
323
323
  }, null, 8, [
324
324
  "aria-label",
325
325
  "items",
326
326
  "model-value"
327
327
  ])) : _("", !0),
328
- (D(!0), v(m, null, k(u.value.constraints, (t, n) => (D(), v("div", {
328
+ (D(!0), v(m, null, k(d.value.constraints, (t, n) => (D(), v("div", {
329
329
  key: n,
330
330
  class: T(M(l).filterRule())
331
331
  }, [y("div", { class: T(M(l).filterRuleHead()) }, [ne.value.length > 1 ? (D(), g(ae, {
@@ -341,13 +341,13 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
341
341
  "items",
342
342
  "model-value",
343
343
  "onUpdate:modelValue"
344
- ])) : _("", !0), u.value.constraints.length > 1 ? (D(), g(p, {
344
+ ])) : _("", !0), d.value.constraints.length > 1 ? (D(), g(p, {
345
345
  key: 1,
346
346
  icon: M(Ye),
347
347
  label: M(c).removeRule(n),
348
348
  variant: "text",
349
349
  size: "sm",
350
- onClick: (e) => u.value.constraints.splice(n, 1)
350
+ onClick: (e) => d.value.constraints.splice(n, 1)
351
351
  }, null, 8, [
352
352
  "icon",
353
353
  "label",
@@ -421,13 +421,13 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
421
421
  "model-value",
422
422
  "onUpdate:modelValue"
423
423
  ]))], 2))), 128)),
424
- u.value.constraints.length < r.maxConstraints ? (D(), g(f, {
424
+ d.value.constraints.length < r.maxConstraints ? (D(), g(te, {
425
425
  key: 1,
426
426
  variant: "text",
427
427
  size: "sm",
428
428
  class: T(M(l).filterAdd()),
429
429
  "leading-icon": M(P),
430
- onClick: t[1] ||= (e) => u.value.constraints.push({
430
+ onClick: t[1] ||= (e) => d.value.constraints.push({
431
431
  matchMode: ne.value[0],
432
432
  value: null
433
433
  })
@@ -435,14 +435,14 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
435
435
  default: N(() => [b(j(M(c).addRule), 1)]),
436
436
  _: 1
437
437
  }, 8, ["class", "leading-icon"])) : _("", !0),
438
- y("div", { class: T(M(l).filterActions()) }, [x(f, {
438
+ y("div", { class: T(M(l).filterActions()) }, [x(te, {
439
439
  variant: "outline",
440
440
  size: "sm",
441
441
  onClick: E
442
442
  }, {
443
443
  default: N(() => [b(j(M(c).clear), 1)]),
444
444
  _: 1
445
- }), x(f, {
445
+ }), x(te, {
446
446
  type: "submit",
447
447
  size: "sm"
448
448
  }, {
@@ -699,7 +699,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
699
699
  },
700
700
  emits: /* @__PURE__ */ "update:page.update:first.update:showFilters.update:allSelection.selectedRowsChange.update:selectedRows.rowClick.update:pageSize.update:sorting.update:selection.update:expanded.update:globalFilter.update:advancedFilterValue.update:filters.update:hiddenColumns.update:columnOrder.update:pinnedColumns.update:groupBy.update:size.cellEdit.rowEdit.rowReorder.rowAction.loadMore.scrollEnd.scroll.cellSelectionChange.cellPaste.save".split("."),
701
701
  setup(a, { expose: s, emit: ee }) {
702
- let l = n(), d = e(), S = a, ue = t("dataTable", dt, () => S.classes), fe = r("dataTable", dt), pe = (e) => S[e] ?? !!fe()[e], Te = t("menu", zt), P = ee, Ye = be(), F = Se(), ut = xe(), I = l.dataTable, gt = Object.assign({}, ...S.features ?? []);
702
+ let l = n(), f = e(), S = a, ue = t("dataTable", dt, () => S.classes), fe = r("dataTable", dt), pe = (e) => S[e] ?? !!fe()[e], Te = t("menu", zt), P = ee, Ye = be(), F = Se(), ut = xe(), I = l.dataTable, gt = Object.assign({}, ...S.features ?? []);
703
703
  _e(Jn, gt);
704
704
  let Nt = (e, t) => typeof e == "function" ? e(t) : e, Pt = (e) => e == null ? "" : String(e), Vt = (e) => e === void 0 ? [] : Array.isArray(e) ? e : [e], Ht = (e) => e ? Array.isArray(e) ? e : [e] : [], on = (e) => Object.fromEntries(e.filter((e) => Dt(e.value)).map((e) => [e.id, e.value])), mn = (e) => Object.entries(e).filter(([, e]) => Dt(e)).map(([e, t]) => ({
705
705
  id: e,
@@ -735,7 +735,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
735
735
  let r = (e, n) => {
736
736
  let r = t.get(n);
737
737
  return r ? Un(r, e) : e[n];
738
- }, i = new Intl.NumberFormat(d.value.locale, { maximumFractionDigits: 2 });
738
+ }, i = new Intl.NumberFormat(f.value.locale, { maximumFractionDigits: 2 });
739
739
  return Qt(Zt(S.data ?? wn, e, r, (e, n, r) => {
740
740
  let i = t.get(n)?.format;
741
741
  return i ? i(r, e) : Pt(r);
@@ -754,7 +754,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
754
754
  he(() => {
755
755
  S.advancedFilter && !F.advancedFilter && yn("DataTable: `advancedFilter` has no editor, so the toolbar button is hidden – fill the `#advancedFilter` slot with ConditionBuilder from @wirecore/wirelayer-blocks-vue");
756
756
  });
757
- let In = h(() => kn.value ? kn.value.rows : S.dataSource ? En.value.items : Nn.value && !S.manual ? (S.data ?? wn).filter((e) => It(e, An.value, Mn.value, d.value.locale)) : S.data ?? wn), Ln = h(() => kn.value ? kn.value.columns : S.columns), Rn = h(() => !!S.manual || !!S.dataSource), zn = h(() => S.dataSource ? En.value.totalCount ?? En.value.items.length : S.rowCount), Bn = h(() => !!S.dataSource && En.value.status === "error"), Vn = h(() => !!S.loading || !!S.dataSource && En.value.status === "loading"), Hn = h(() => {
757
+ let In = h(() => kn.value ? kn.value.rows : S.dataSource ? En.value.items : Nn.value && !S.manual ? (S.data ?? wn).filter((e) => It(e, An.value, Mn.value, f.value.locale)) : S.data ?? wn), Ln = h(() => kn.value ? kn.value.columns : S.columns), Rn = h(() => !!S.manual || !!S.dataSource), zn = h(() => S.dataSource ? En.value.totalCount ?? En.value.items.length : S.rowCount), Bn = h(() => !!S.dataSource && En.value.status === "error"), Vn = h(() => !!S.loading || !!S.dataSource && En.value.status === "loading"), Hn = h(() => {
758
758
  let e = (t) => t.flatMap((t) => t.columns ? e(t.columns) : [t]);
759
759
  return e(Ln.value);
760
760
  }), z = h(() => {
@@ -831,7 +831,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
831
831
  text: Kn(e) ? B(e, t.getValue(n), t.original) : "",
832
832
  row: t.original,
833
833
  type: e.filter,
834
- locale: d.value.locale,
834
+ locale: f.value.locale,
835
835
  filterFn: e.filterFn,
836
836
  byValue: Gn(e)
837
837
  }, r),
@@ -846,7 +846,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
846
846
  features: qn,
847
847
  columns: ti,
848
848
  data: In,
849
- meta: h(() => ({ locale: d.value.locale })),
849
+ meta: h(() => ({ locale: f.value.locale })),
850
850
  getRowId: (e, t) => kn.value ? e.id : S.getRowId?.(e, t) ?? String(t),
851
851
  state: h(() => ({
852
852
  sorting: V.value,
@@ -895,7 +895,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
895
895
  U.value = Nt(e, U.value), P("update:groupBy", U.value);
896
896
  },
897
897
  globalFilterFn: (e, t, n) => {
898
- let r = z.value.get(t), i = d.value.locale;
898
+ let r = z.value.get(t), i = f.value.locale;
899
899
  return S.rowKeywords && !kn.value && Lt(S.rowKeywords(e.original), n, i) ? !0 : r?.searchable !== !1 && Rt([B(r, e.getValue(t), e.original)], n, i);
900
900
  },
901
901
  getColumnCanGlobalFilter: (e) => !!S.rowKeywords || z.value.get(e.id)?.searchable !== !1,
@@ -1284,7 +1284,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
1284
1284
  return Z.value.filter((e) => e.kind === "row").forEach((t, n) => e.set(t.row.id, Ra.value + n + 1)), e;
1285
1285
  }), Ba = (e) => pe("striped") ? String(((za.value.get(e.id) ?? 0) - Ra.value) % 2 == 0) : void 0, Va = (e) => `${ut}-details-${e.id}`, Ha = h(() => K.getIsAllRowsExpanded()), Ua = h(() => Hn.value.some((e) => e.aggregate)), Wa = h(() => Hn.value.some((e) => e.aggregate || e.footer || F[`footer-${e.id}`]));
1286
1286
  function Ga(e, t, n) {
1287
- return t == null ? "" : e.format && n ? e.format(t, n) : typeof t == "number" ? new Intl.NumberFormat(d.value.locale, { maximumFractionDigits: 2 }).format(t) : Pt(t);
1287
+ return t == null ? "" : e.format && n ? e.format(t, n) : typeof t == "number" ? new Intl.NumberFormat(f.value.locale, { maximumFractionDigits: 2 }).format(t) : Pt(t);
1288
1288
  }
1289
1289
  function Ka(e, t) {
1290
1290
  if (!e.aggregate) return "";
@@ -1748,7 +1748,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
1748
1748
  continue;
1749
1749
  }
1750
1750
  let r = qt(e.text, Bo(t), {
1751
- locale: d.value.locale,
1751
+ locale: f.value.locale,
1752
1752
  choices: t.editOptions
1753
1753
  });
1754
1754
  if ("error" in r) {
@@ -1816,7 +1816,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
1816
1816
  columnId: t.id,
1817
1817
  text: Ts(e, t.id)
1818
1818
  }))
1819
- })), Ns.value, d.value.locale) : []), Rs = h(() => Ls.value.length ? Ls.value[Math.min(Ps.value, Ls.value.length - 1)] : void 0), zs = h(() => new Set(Ls.value.map((e) => `${e.rowId}\u0000${e.columnId}`)));
1819
+ })), Ns.value, f.value.locale) : []), Rs = h(() => Ls.value.length ? Ls.value[Math.min(Ps.value, Ls.value.length - 1)] : void 0), zs = h(() => new Set(Ls.value.map((e) => `${e.rowId}\u0000${e.columnId}`)));
1820
1820
  function Bs(e, t) {
1821
1821
  return Fs.value ? Rs.value?.rowId === e && Rs.value.columnId === t ? J.value.findCurrent() : zs.value.has(`${e}\u0000${t}`) ? J.value.findMatch() : "" : "";
1822
1822
  }
@@ -1896,7 +1896,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
1896
1896
  }
1897
1897
  let Qs = (e, t) => S.editMode === "batch" && !!Xt(So.value, e.id, t);
1898
1898
  function $s(e = {}) {
1899
- let t = K.getVisibleLeafColumns().map((e) => z.value.get(e.id)).filter((e) => e.exportable !== !1), n = (e.selectionOnly ? K.getSelectedRowModel().flatRows : K.getSortedRowModel().flatRows).filter((e) => !e.getIsGrouped()).map((e) => t.map((t) => t.exportValue ? t.exportValue(e.original) : B(t, e.getValue(t.id), e.original))), r = e.separator ?? S.csvSeparator ?? ct(d.value.locale), i = pn([t.map((e) => e.exportHeader ?? e.header), ...n], r);
1899
+ let t = K.getVisibleLeafColumns().map((e) => z.value.get(e.id)).filter((e) => e.exportable !== !1), n = (e.selectionOnly ? K.getSelectedRowModel().flatRows : K.getSortedRowModel().flatRows).filter((e) => !e.getIsGrouped()).map((e) => t.map((t) => t.exportValue ? t.exportValue(e.original) : B(t, e.getValue(t.id), e.original))), r = e.separator ?? S.csvSeparator ?? ct(f.value.locale), i = pn([t.map((e) => e.exportHeader ?? e.header), ...n], r);
1900
1900
  return e.bom === !1 ? i.slice(1) : i;
1901
1901
  }
1902
1902
  function ec(e = !1) {
@@ -2006,7 +2006,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2006
2006
  $t(en({
2007
2007
  title: e.title ?? S.caption,
2008
2008
  caption: S.caption,
2009
- lang: d.value.locale,
2009
+ lang: f.value.locale,
2010
2010
  dir: getComputedStyle(zo.value ?? document.body).direction === "rtl" ? "rtl" : "ltr",
2011
2011
  head: n,
2012
2012
  body: r,
@@ -2193,7 +2193,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2193
2193
  let Kc = h(() => !!S.pageSize), qc = h(() => Rn.value ? zn.value ?? In.value.length : K.getPrePaginatedRowModel().rows.length), Jc = h(() => (S.pageSizeOptions ?? []).map((e) => ({
2194
2194
  value: String(e),
2195
2195
  label: String(e)
2196
- }))), Yc = h(() => !!S.find || !!S.search || !!S.columnToggle || !!S.exportFilename || !!S.densityToggle || !!S.fullscreenToggle || !!S.filterToggle || !!S.filterReset || Fn.value || !!F.toolbar || !!F.toolbarStart || !!F.toolbarEnd), Xc = h(() => S.highlightSearch ? W.value : ""), Zc = h(() => Fs.value ? Ns.value.trim() : Xc.value), Qc = h(() => Wi.value ? Wi.value : S.dataSource ? Bn.value ? "" : lt(En.value, l, d.value.locale) : ua.value ? I.results(K.getFilteredRowModel().rows.length) : ""), $c = h(() => Vn.value && S.loadingVariant === "skeleton"), el = h(() => Math.min(Z.value.length || S.pageSize || 5, 50)), tl = h(() => ua.value && (Rn.value || In.value.length > 0) && (!!F.noResults || S.noResultsText !== void 0)), nl = h(() => {
2196
+ }))), Yc = h(() => !!S.find || !!S.search || !!S.columnToggle || !!S.exportFilename || !!S.densityToggle || !!S.fullscreenToggle || !!S.filterToggle || !!S.filterReset || Fn.value || !!F.toolbar || !!F.toolbarStart || !!F.toolbarEnd), Xc = h(() => S.highlightSearch ? W.value : ""), Zc = h(() => Fs.value ? Ns.value.trim() : Xc.value), Qc = h(() => Wi.value ? Wi.value : S.dataSource ? Bn.value ? "" : lt(En.value, l, f.value.locale) : ua.value ? I.results(K.getFilteredRowModel().rows.length) : ""), $c = h(() => Vn.value && S.loadingVariant === "skeleton"), el = h(() => Math.min(Z.value.length || S.pageSize || 5, 50)), tl = h(() => ua.value && (Rn.value || In.value.length > 0) && (!!F.noResults || S.noResultsText !== void 0)), nl = h(() => {
2197
2197
  if (!S.statusBar) return [];
2198
2198
  let e = K.getSelectedRowModel().flatRows.filter((e) => !e.getIsGrouped());
2199
2199
  return e.length ? Y.value.flatMap((t) => {
@@ -2274,15 +2274,24 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2274
2274
  key: 0,
2275
2275
  class: T(J.value.toolbar())
2276
2276
  }, [
2277
- e.$slots.toolbarStart ? (D(), g(te, {
2277
+ hi.value ? (D(), v("div", {
2278
+ key: 0,
2279
+ class: T(J.value.toolbarStart())
2280
+ }, [e.$slots.toolbarStart ? (D(), g(u, {
2278
2281
  key: 0,
2279
2282
  recipes: M(ul)
2280
2283
  }, {
2281
2284
  default: N(() => [A(e.$slots, "toolbarStart")]),
2282
2285
  _: 3
2286
+ }, 8, ["recipes"])) : _("", !0)], 2)) : e.$slots.toolbarStart ? (D(), g(u, {
2287
+ key: 1,
2288
+ recipes: M(ul)
2289
+ }, {
2290
+ default: N(() => [A(e.$slots, "toolbarStart")]),
2291
+ _: 3
2283
2292
  }, 8, ["recipes"])) : _("", !0),
2284
2293
  a.search ? (D(), g(re, {
2285
- key: 1,
2294
+ key: 2,
2286
2295
  type: "search",
2287
2296
  size: "sm",
2288
2297
  "leading-icon": M(qe),
@@ -2298,23 +2307,30 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2298
2307
  "aria-label",
2299
2308
  "model-value"
2300
2309
  ])) : _("", !0),
2301
- e.$slots.toolbar ? (D(), g(te, {
2302
- key: 2,
2310
+ e.$slots.toolbar && !hi.value ? (D(), g(u, {
2311
+ key: 3,
2303
2312
  recipes: M(ul)
2304
2313
  }, {
2305
2314
  default: N(() => [A(e.$slots, "toolbar")]),
2306
2315
  _: 3
2307
2316
  }, 8, ["recipes"])) : _("", !0),
2308
2317
  y("div", { class: T(J.value.toolbarEnd()) }, [
2309
- e.$slots.toolbarEnd ? (D(), g(te, {
2318
+ e.$slots.toolbar && hi.value ? (D(), g(u, {
2310
2319
  key: 0,
2311
2320
  recipes: M(ul)
2321
+ }, {
2322
+ default: N(() => [A(e.$slots, "toolbar")]),
2323
+ _: 3
2324
+ }, 8, ["recipes"])) : _("", !0),
2325
+ e.$slots.toolbarEnd ? (D(), g(u, {
2326
+ key: 1,
2327
+ recipes: M(ul)
2312
2328
  }, {
2313
2329
  default: N(() => [A(e.$slots, "toolbarEnd")]),
2314
2330
  _: 3
2315
2331
  }, 8, ["recipes"])) : _("", !0),
2316
2332
  a.find ? (D(), g(p, {
2317
- key: 1,
2333
+ key: 2,
2318
2334
  "data-find-toggle": "",
2319
2335
  icon: M(Je),
2320
2336
  label: M(I).find,
@@ -2327,8 +2343,8 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2327
2343
  "label",
2328
2344
  "aria-expanded"
2329
2345
  ])) : _("", !0),
2330
- Fn.value ? (D(), g(f, {
2331
- key: 2,
2346
+ Fn.value ? (D(), g(te, {
2347
+ key: 3,
2332
2348
  variant: "outline",
2333
2349
  size: "sm",
2334
2350
  "leading-icon": M(Ve),
@@ -2344,7 +2360,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2344
2360
  "aria-controls"
2345
2361
  ])) : _("", !0),
2346
2362
  a.filterToggle ? (D(), g(p, {
2347
- key: 3,
2363
+ key: 4,
2348
2364
  icon: M(Re),
2349
2365
  label: M(I).filterToggle,
2350
2366
  variant: "outline",
@@ -2357,7 +2373,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2357
2373
  "aria-pressed"
2358
2374
  ])) : _("", !0),
2359
2375
  a.filterReset ? (D(), g(p, {
2360
- key: 4,
2376
+ key: 5,
2361
2377
  icon: M(ze),
2362
2378
  label: M(I).resetFilters,
2363
2379
  variant: "outline",
@@ -2370,7 +2386,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2370
2386
  "disabled"
2371
2387
  ])) : _("", !0),
2372
2388
  a.densityToggle ? (D(), g(M(L).Root, {
2373
- key: 5,
2389
+ key: 6,
2374
2390
  positioning: ll,
2375
2391
  "lazy-mount": "",
2376
2392
  "unmount-on-exit": ""
@@ -2419,13 +2435,13 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2419
2435
  _: 1
2420
2436
  })) : _("", !0),
2421
2437
  a.columnToggle ? (D(), g(M(L).Root, {
2422
- key: 6,
2438
+ key: 7,
2423
2439
  positioning: ll,
2424
2440
  "lazy-mount": "",
2425
2441
  "unmount-on-exit": ""
2426
2442
  }, {
2427
2443
  default: N(() => [x(M(L).Trigger, { "as-child": "" }, {
2428
- default: N(() => [x(f, {
2444
+ default: N(() => [x(te, {
2429
2445
  variant: "outline",
2430
2446
  size: "sm",
2431
2447
  "leading-icon": M(Fe)
@@ -2515,12 +2531,12 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2515
2531
  })]))]),
2516
2532
  _: 1
2517
2533
  })) : _("", !0),
2518
- a.exportFilename ? (D(), v(m, { key: 7 }, [dc.value.length > 1 ? (D(), g(o, {
2534
+ a.exportFilename ? (D(), v(m, { key: 8 }, [dc.value.length > 1 ? (D(), g(o, {
2519
2535
  key: 0,
2520
2536
  items: dc.value,
2521
2537
  onSelect: pc
2522
2538
  }, {
2523
- default: N(() => [x(f, {
2539
+ default: N(() => [x(te, {
2524
2540
  variant: "outline",
2525
2541
  size: "sm",
2526
2542
  "leading-icon": M(Ie)
@@ -2529,7 +2545,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2529
2545
  _: 1
2530
2546
  }, 8, ["leading-icon"])]),
2531
2547
  _: 1
2532
- }, 8, ["items"])) : (D(), g(f, {
2548
+ }, 8, ["items"])) : (D(), g(te, {
2533
2549
  key: 1,
2534
2550
  variant: "outline",
2535
2551
  size: "sm",
@@ -2540,7 +2556,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2540
2556
  _: 1
2541
2557
  }, 8, ["leading-icon"]))], 64)) : _("", !0),
2542
2558
  a.fullscreenToggle ? (D(), g(p, {
2543
- key: 8,
2559
+ key: 9,
2544
2560
  "data-fullscreen-toggle": "",
2545
2561
  icon: pi.value ? M(Ue) : M(He),
2546
2562
  label: pi.value ? M(I).exitFullscreen : M(I).fullscreen,
@@ -2625,7 +2641,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2625
2641
  class: T(J.value.batchBar())
2626
2642
  }, [
2627
2643
  y("span", { class: T(J.value.batchCount()) }, j(M(I).changes(jo.value)), 3),
2628
- x(f, {
2644
+ x(te, {
2629
2645
  variant: "text",
2630
2646
  size: "sm",
2631
2647
  "leading-icon": M(Xe),
@@ -2635,7 +2651,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2635
2651
  default: N(() => [b(j(M(I).undo), 1)]),
2636
2652
  _: 1
2637
2653
  }, 8, ["leading-icon", "disabled"]),
2638
- x(f, {
2654
+ x(te, {
2639
2655
  variant: "text",
2640
2656
  size: "sm",
2641
2657
  "leading-icon": M(Ge),
@@ -2645,7 +2661,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2645
2661
  default: N(() => [b(j(M(I).redo), 1)]),
2646
2662
  _: 1
2647
2663
  }, 8, ["leading-icon", "disabled"]),
2648
- x(f, {
2664
+ x(te, {
2649
2665
  variant: "outline",
2650
2666
  size: "sm",
2651
2667
  disabled: !jo.value,
@@ -2654,7 +2670,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2654
2670
  default: N(() => [b(j(M(I).discardChanges), 1)]),
2655
2671
  _: 1
2656
2672
  }, 8, ["disabled"]),
2657
- x(f, {
2673
+ x(te, {
2658
2674
  size: "sm",
2659
2675
  disabled: !jo.value,
2660
2676
  onClick: No
@@ -2684,7 +2700,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
2684
2700
  "aria-label",
2685
2701
  "items",
2686
2702
  "model-value"
2687
- ])], 2)) : _("", !0), x(u, {
2703
+ ])], 2)) : _("", !0), x(d, {
2688
2704
  count: qc.value,
2689
2705
  "page-size": H.value.pageSize,
2690
2706
  page: H.value.pageIndex + 1,
@@ -3089,7 +3105,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
3089
3105
  }, [Bn.value ? (D(), v("span", {
3090
3106
  key: 0,
3091
3107
  class: T(J.value.errorContent())
3092
- }, [y("span", gr, j(M(l).dataSource.error), 1), x(f, {
3108
+ }, [y("span", gr, j(M(l).dataSource.error), 1), x(te, {
3093
3109
  variant: "outline",
3094
3110
  size: "sm",
3095
3111
  onClick: lc
@@ -3478,7 +3494,7 @@ var Gn = /* @__PURE__ */ new Map(), Kn = (e) => {
3478
3494
  "aria-label",
3479
3495
  "items",
3480
3496
  "model-value"
3481
- ])], 2)) : _("", !0), x(u, {
3497
+ ])], 2)) : _("", !0), x(d, {
3482
3498
  count: qc.value,
3483
3499
  "page-size": H.value.pageSize,
3484
3500
  page: H.value.pageIndex + 1,
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, x as D, y as O } from "./RecipesProvider-DDJst6Pj.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, x as D, y as O } from "./RecipesProvider-DzlYvZ-I.js";
3
3
  import { t as ee } from "./attrs-KNjeRUCf.js";
4
4
  import { t as k } from "./Button-WA6BonwF.js";
5
5
  import { t as te } from "./Checkbox-DILwucBG.js";
package/llms-full.txt CHANGED
@@ -1728,7 +1728,7 @@ Data table on TanStack Table: sorting (also by several columns), search, filter
1728
1728
  | v-model:advanced-filter-value? | `ConditionGroup` | The condition tree of the advanced filter (controlled together with onAdvancedFilterValueChange) |
1729
1729
  | sortable? | `boolean` | Every column with a value can be sorted, unless the column sets `sortable: false`; columns without a value (only a slot, e.g. actions) stay out. App-wide: `dataTable: { defaultVariants: { sortable: true } }` |
1730
1730
  | search? | `boolean` | Search field above the table: filters over all columns (v-model:global-filter) |
1731
- | search-align? | `'start' \| 'center'` | Place of the search field: `start` (default) after the controls of the toolbar start, `center` in the middle between them and the controls at the end. App-wide: `dataTable: { defaultVariants: { searchCentered: true } }` |
1731
+ | search-align? | `'start' \| 'center'` | Place of the search field: `start` (default) after the controls of the toolbar start, `center` in the middle of the toolbar – also when there are no controls at the start; own `toolbar` controls then join the end group. App-wide: `dataTable: { defaultVariants: { searchCentered: true } }` |
1732
1732
  | v-model:global-filter? | `string` | |
1733
1733
  | row-keywords? | `(row: T) => string \| readonly string[] \| null \| undefined` | More text the search finds a row by, besides its columns – e.g. fields without a column of their own (not in server mode: there the server searches) |
1734
1734
  | highlight-search? | `boolean` | Marks the search hits in the cells |
@@ -1892,7 +1892,8 @@ Date field: type the digits one after another (the separators come from the loca
1892
1892
  | default-value? | `T` | |
1893
1893
  | selection-mode? | `'single' \| 'multiple'` | One date or several dates (the field lists them, the calendar toggles days) |
1894
1894
  | value-type? | `DateValueType` | What v-model gets: ISO strings (default) or Date objects |
1895
- | with-time? | `boolean` | Adds hour and minute to the field |
1895
+ | with-time? | `boolean` | Adds hour and minute to the field and below the calendar (picking a day keeps it open, Escape discards) |
1896
+ | time-in-popup? | `boolean` | withTime: the time below the calendar as well (default true); false: in the field only |
1896
1897
  | min? | `DateLike` | Earliest selectable date (ISO or Date) |
1897
1898
  | max? | `DateLike` | Latest selectable date (ISO or Date) |
1898
1899
  | is-date-unavailable? | `(date: string) => boolean` | Dates that cannot be chosen, e.g. weekends – receives the ISO date |
@@ -1941,7 +1942,8 @@ Start and end in one field ("10/20/2026 – 10/24/2026"); the calendar picks sta
1941
1942
  | v-model? (modelValue) | `T \| null` | Start and end – use with v-model; Date objects and ISO strings with offset are accepted too |
1942
1943
  | default-value? | `T \| null` | |
1943
1944
  | value-type? | `DateValueType` | What v-model gets: ISO strings (default) or Date objects |
1944
- | with-time? | `boolean` | Adds hour and minute to both dates |
1945
+ | with-time? | `boolean` | Adds hour and minute to both dates, in the field and below the calendar ("Start", "End"); a new range keeps the times, without them start 00:00 and end 23:59 |
1946
+ | time-in-popup? | `boolean` | withTime: the times below the calendar as well (default true); false: in the field only |
1945
1947
  | min? | `DateLike` | Earliest selectable date (ISO or Date) |
1946
1948
  | max? | `DateLike` | Latest selectable date (ISO or Date) |
1947
1949
  | is-date-unavailable? | `(date: string) => boolean` | Dates that cannot be chosen, e.g. weekends – receives the ISO date |
@@ -2057,7 +2059,7 @@ The modal window of a Dialog: title, description, focus trap, Escape closes
2057
2059
  | default-maximized? | `boolean` | |
2058
2060
  | draggable? | `boolean` | Moved by dragging the header; the keyboard moves it with Alt + arrow keys (Shift: larger steps) |
2059
2061
  | closable? | `boolean` | Shows the close button in the header |
2060
- | scroll-behavior? | `'inside' \| 'outside'` | `inside`: only the body scrolls, header and footer stay in place; `outside` (default): the whole dialog scrolls |
2062
+ | scroll-behavior? | `'inside' \| 'outside'` | `inside`: only the body scrolls, header and footer stay in place (long forms keep title and buttons in view); `outside` (default): the whole dialog scrolls – taller than the window, it starts at the top |
2061
2063
  | responsive? | `boolean` | Full width on small screens (below 640px) |
2062
2064
  | close-label? | `string` | Accessible name of the close button |
2063
2065
  | maximize-label? | `string` | Accessible names of the maximize button: maximize / restore |
@@ -7520,6 +7522,24 @@ contrast themes) the system scrollbars stay.
7520
7522
  | `--wc-scrollbar-thumb-hover` | `var(--wc-muted)` | Thumb under the pointer (Safari; other browsers darken it themselves) |
7521
7523
  | `--wc-scrollbar-track` | `transparent` | Track |
7522
7524
  | `--wc-scrollbar-width` | `thin` | `scrollbar-width` (`auto` for the wide ones) |
7525
+ | `--wc-scrollbar-size` | `6px` | Width of the stroke with `data-scrollbars="slim"` |
7523
7526
 
7524
7527
  `<html data-scrollbars="native">` keeps the browser's own scrollbars on the whole page. The rules sit in the base layer,
7525
7528
  so a utility on a single element still wins (e.g. `[scrollbar-width:none]`).
7529
+
7530
+ ### Slim scrollbars
7531
+
7532
+ `thin` is drawn by the browser: in Chrome and Edge (above all on Windows) a narrow but system-like bar, depending on the
7533
+ version with arrow buttons and a square thumb. `data-scrollbars="slim"` – on `<html>` for the whole page, or on any
7534
+ element for that part – draws a narrow, rounded stroke instead: `--wc-scrollbar-size` wide (6px), 2px off the edge, no
7535
+ arrow buttons, the track transparent; under the pointer and while dragging the thumb takes the full 10px and the
7536
+ `--wc-scrollbar-thumb-hover` colour, so it is easy to grab. The colours are the same tokens as above – at least 3:1
7537
+ against the surfaces, in light and dark and in parts with their own `data-mode`.
7538
+
7539
+ ```html
7540
+ <html data-scrollbars="slim"></html>
7541
+ ```
7542
+
7543
+ Chromium and Safari get it through `::-webkit-scrollbar` (Chromium ignores those rules while `scrollbar-width` or
7544
+ `scrollbar-color` is set, so slim sets both to `auto` there); Firefox has no `::-webkit-scrollbar` and keeps `thin` in
7545
+ the theme colours. With forced colors (Windows contrast themes) the system scrollbars stay.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecore/wirelayer-vue",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "WireLayer components for Vue 3",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -166,8 +166,8 @@
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.12.0",
170
- "@wirecore/wirelayer-tokens": "^0.8.0"
169
+ "@wirecore/wirelayer-recipes": "^0.13.0",
170
+ "@wirecore/wirelayer-tokens": "^0.9.0"
171
171
  },
172
172
  "devDependencies": {
173
173
  "@storybook/addon-a11y": "^10.6.2",