@alfadocs/ui-kit 1.126.0 → 1.127.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/_chunks/{balance-badge-cell-DtxbGJcA.js → balance-badge-cell-BtFge7Y6.js} +3 -3
- package/dist/_chunks/{bill-line-table-HrynB7ND.js → bill-line-table-BRxX0Awq.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-CiCmsBCH.js → calendar-appointment-editor-dialog-B-zYgCgH.js} +2 -2
- package/dist/_chunks/{data-grid-C71BhGDw.js → data-grid-bzvkQ3kc.js} +446 -423
- package/dist/_chunks/{data-table-DhYx-hCD.js → data-table-BCfkcPti.js} +2 -2
- package/dist/_chunks/{default-tabs-RvCI5uN0.js → default-tabs-yEfqAPuT.js} +3 -3
- package/dist/_chunks/{file-manager-DNq-sEsy.js → file-manager-Dpwv0qs-.js} +2 -2
- package/dist/_chunks/{heatmap-BurtKmeu.js → heatmap-Ds5DJBUL.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-C95s5Q7m.js → invoice-upload-list-CgS_TBuX.js} +12 -12
- package/dist/_chunks/{link-cell-renderer-BEaLczk2.js → link-cell-renderer-CC9VHU68.js} +2 -2
- package/dist/_chunks/{parts-CcyRkB8t.js → parts-tGzYz0uG.js} +42 -36
- package/dist/_chunks/{toolbar-Dznu_Dou.js → toolbar-Co46MEn9.js} +3 -3
- package/dist/_chunks/warehouse-load-summary-DkAKXcw0.js +289 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/data-grid/data-grid.variants.d.ts +3 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/warehouse-load-summary/index.js +1 -1
- package/dist/components/warehouse-load-summary/types.d.ts +6 -0
- package/dist/components/warehouse-load-summary/warehouse-load-summary.d.ts +1 -1
- package/dist/core.css +1 -1
- package/dist/host-legacy.css +9 -0
- package/dist/index.js +12 -12
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/warehouse-load-summary-D88M4Ii7.js +0 -255
|
@@ -9,7 +9,7 @@ import { ModuleRegistry as Wt, AllCommunityModule as qt } from "ag-grid-communit
|
|
|
9
9
|
import { I as Bt } from "./icon-button-group-BKtkVZ1W.js";
|
|
10
10
|
import { u as Ut } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
11
11
|
import { I as We } from "./icon-button-S8_weU3g.js";
|
|
12
|
-
import { T as jt, c as Kt } from "./parts-
|
|
12
|
+
import { T as jt, c as Kt } from "./parts-tGzYz0uG.js";
|
|
13
13
|
import { m as zt, h as Ht, a as Qt, w as Xt } from "./export-files-BByoK9Cg.js";
|
|
14
14
|
import $t from "i18next";
|
|
15
15
|
import { S as qe } from "./state-backed-text-input-DVETOhSS.js";
|
|
@@ -1691,4 +1691,4 @@ export {
|
|
|
1691
1691
|
P as i,
|
|
1692
1692
|
fr as r
|
|
1693
1693
|
};
|
|
1694
|
-
//# sourceMappingURL=data-table-
|
|
1694
|
+
//# sourceMappingURL=data-table-BCfkcPti.js.map
|
|
@@ -2,8 +2,8 @@ import { jsxs as T, jsx as l, Fragment as ne } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId as Pe, useMemo as M, createElement as mt, forwardRef as ft, useRef as K, useState as yt, useImperativeHandle as ht, useCallback as gt } from "react";
|
|
3
3
|
import { useTranslation as v } from "react-i18next";
|
|
4
4
|
import { u as Tt } from "./registry-DvAUVLHh.js";
|
|
5
|
-
import { D as St, e as vt } from "./data-grid-
|
|
6
|
-
import { D as N } from "./toolbar-
|
|
5
|
+
import { D as St, e as vt } from "./data-grid-bzvkQ3kc.js";
|
|
6
|
+
import { D as N } from "./toolbar-Co46MEn9.js";
|
|
7
7
|
import { I as wt } from "./icon-button-group-BKtkVZ1W.js";
|
|
8
8
|
import { c as w } from "./index-D2ZczOXr.js";
|
|
9
9
|
import { b as It, a as kt } from "./accessible-target-D3j6F-AG.js";
|
|
@@ -2211,4 +2211,4 @@ export {
|
|
|
2211
2211
|
ii as m,
|
|
2212
2212
|
Ka as u
|
|
2213
2213
|
};
|
|
2214
|
-
//# sourceMappingURL=default-tabs-
|
|
2214
|
+
//# sourceMappingURL=default-tabs-yEfqAPuT.js.map
|
|
@@ -18,7 +18,7 @@ import { F as Ft } from "./file-text-5yv6r2ls.js";
|
|
|
18
18
|
import { F as Tt } from "./file-spreadsheet-DmwyfV4O.js";
|
|
19
19
|
import { F as At } from "./file-BuG1VMAy.js";
|
|
20
20
|
import { C as Dt } from "./chevron-right-I9AeSxH2.js";
|
|
21
|
-
import { D as Fe } from "./data-table-
|
|
21
|
+
import { D as Fe } from "./data-table-BCfkcPti.js";
|
|
22
22
|
import { A as Rt, a as It } from "./actions-cell-renderer-DTaIQKp9.js";
|
|
23
23
|
import { B as $e } from "./badge-BUk4RjTS.js";
|
|
24
24
|
import { D as Ue } from "./download-CfYKJO_j.js";
|
|
@@ -1744,4 +1744,4 @@ export {
|
|
|
1744
1744
|
hn as F,
|
|
1745
1745
|
Gt as f
|
|
1746
1746
|
};
|
|
1747
|
-
//# sourceMappingURL=file-manager-
|
|
1747
|
+
//# sourceMappingURL=file-manager-Dpwv0qs-.js.map
|
|
@@ -2824,7 +2824,7 @@ const an = Mn(
|
|
|
2824
2824
|
}
|
|
2825
2825
|
);
|
|
2826
2826
|
an.displayName = "HeatmapLegend";
|
|
2827
|
-
const rn = () => import("./data-table-
|
|
2827
|
+
const rn = () => import("./data-table-BCfkcPti.js").then((e) => e.h).then((e) => {
|
|
2828
2828
|
const t = e.DataTable;
|
|
2829
2829
|
function n(o) {
|
|
2830
2830
|
const { t: r } = wt("ui");
|
|
@@ -3666,4 +3666,4 @@ export {
|
|
|
3666
3666
|
Dn as b,
|
|
3667
3667
|
io as h
|
|
3668
3668
|
};
|
|
3669
|
-
//# sourceMappingURL=heatmap-
|
|
3669
|
+
//# sourceMappingURL=heatmap-Ds5DJBUL.js.map
|
|
@@ -4,8 +4,8 @@ import { useTranslation as L } from "react-i18next";
|
|
|
4
4
|
import { u as Ve } from "./registry-DvAUVLHh.js";
|
|
5
5
|
import { B as Be } from "./button-DohK_Ak_.js";
|
|
6
6
|
import { V as x } from "./visually-hidden-BHxEUGyT.js";
|
|
7
|
-
import { e as Me } from "./data-grid-
|
|
8
|
-
import { D as g } from "./toolbar-
|
|
7
|
+
import { e as Me } from "./data-grid-bzvkQ3kc.js";
|
|
8
|
+
import { D as g } from "./toolbar-Co46MEn9.js";
|
|
9
9
|
import { a as se } from "./format-number-DdzqwMs1.js";
|
|
10
10
|
import { c as v } from "./index-D2ZczOXr.js";
|
|
11
11
|
import { R as Fe } from "./row-actions-Dpf9CrCP.js";
|
|
@@ -462,7 +462,7 @@ function Rt({
|
|
|
462
462
|
hideable: !1,
|
|
463
463
|
reorderable: !1,
|
|
464
464
|
pinnable: !1,
|
|
465
|
-
size:
|
|
465
|
+
size: 176,
|
|
466
466
|
minSize: 160,
|
|
467
467
|
value: (t) => t.fileName,
|
|
468
468
|
exportValue: (t) => t.fileName,
|
|
@@ -472,7 +472,7 @@ function Rt({
|
|
|
472
472
|
{
|
|
473
473
|
id: "supplier",
|
|
474
474
|
header: s("invoiceUploadList.column.supplier", "Supplier"),
|
|
475
|
-
size:
|
|
475
|
+
size: 144,
|
|
476
476
|
minSize: 160,
|
|
477
477
|
value: (t) => {
|
|
478
478
|
var r;
|
|
@@ -497,8 +497,8 @@ function Rt({
|
|
|
497
497
|
{
|
|
498
498
|
id: "date",
|
|
499
499
|
header: s("invoiceUploadList.column.date", "Date"),
|
|
500
|
-
size:
|
|
501
|
-
responsiveTier:
|
|
500
|
+
size: 120,
|
|
501
|
+
responsiveTier: 2,
|
|
502
502
|
// A calendar day `YYYY-MM-DD`; DataGrid formats it for export.
|
|
503
503
|
value: (t) => t.date,
|
|
504
504
|
sort: "date",
|
|
@@ -510,8 +510,8 @@ function Rt({
|
|
|
510
510
|
id: "lineCount",
|
|
511
511
|
header: s("invoiceUploadList.column.lineCount", "Lines"),
|
|
512
512
|
align: "end",
|
|
513
|
-
size:
|
|
514
|
-
responsiveTier:
|
|
513
|
+
size: 80,
|
|
514
|
+
responsiveTier: 3,
|
|
515
515
|
value: (t) => t.lineCount,
|
|
516
516
|
sort: "number",
|
|
517
517
|
sortDescFirst: !0,
|
|
@@ -522,7 +522,7 @@ function Rt({
|
|
|
522
522
|
id: "total",
|
|
523
523
|
header: s("invoiceUploadList.column.total", "Total"),
|
|
524
524
|
align: "end",
|
|
525
|
-
size:
|
|
525
|
+
size: 96,
|
|
526
526
|
responsiveTier: 1,
|
|
527
527
|
value: (t) => {
|
|
528
528
|
const r = de(t.total);
|
|
@@ -537,7 +537,7 @@ function Rt({
|
|
|
537
537
|
{
|
|
538
538
|
id: "status",
|
|
539
539
|
header: s("invoiceUploadList.column.status", "Status"),
|
|
540
|
-
size:
|
|
540
|
+
size: 184,
|
|
541
541
|
minSize: 160,
|
|
542
542
|
wrap: !0,
|
|
543
543
|
value: (t) => t.status,
|
|
@@ -560,7 +560,7 @@ function Rt({
|
|
|
560
560
|
header: /* @__PURE__ */ a(x, { children: c }),
|
|
561
561
|
headerLabel: c,
|
|
562
562
|
pin: "end",
|
|
563
|
-
size:
|
|
563
|
+
size: 56,
|
|
564
564
|
hideable: !1,
|
|
565
565
|
reorderable: !1,
|
|
566
566
|
pinnable: !1,
|
|
@@ -949,4 +949,4 @@ export {
|
|
|
949
949
|
kt as d,
|
|
950
950
|
et as i
|
|
951
951
|
};
|
|
952
|
-
//# sourceMappingURL=invoice-upload-list-
|
|
952
|
+
//# sourceMappingURL=invoice-upload-list-CgS_TBuX.js.map
|
|
@@ -3,7 +3,7 @@ import { useState as x, useEffect as w, useCallback as ee, useMemo as k, useRef
|
|
|
3
3
|
import { useGridFilter as B } from "ag-grid-react";
|
|
4
4
|
import { D as ae } from "./date-range-picker-2Up_FRrM.js";
|
|
5
5
|
import { f as L, d as le, t as q, b as se, c as oe, g as ie, n as ce, i as ue } from "./export-files-BByoK9Cg.js";
|
|
6
|
-
import { r as I } from "./data-table-
|
|
6
|
+
import { r as I } from "./data-table-BCfkcPti.js";
|
|
7
7
|
import { useTranslation as M } from "react-i18next";
|
|
8
8
|
import { C as de } from "./checkbox-DV4sNDeB.js";
|
|
9
9
|
import { B as j } from "./button-DohK_Ak_.js";
|
|
@@ -797,4 +797,4 @@ export {
|
|
|
797
797
|
Ce as f,
|
|
798
798
|
Xe as g
|
|
799
799
|
};
|
|
800
|
-
//# sourceMappingURL=link-cell-renderer-
|
|
800
|
+
//# sourceMappingURL=link-cell-renderer-CC9VHU68.js.map
|
|
@@ -7,7 +7,7 @@ import { I as H } from "./icon-button-S8_weU3g.js";
|
|
|
7
7
|
import { P as oe } from "./popover-CN5IsOeS.js";
|
|
8
8
|
import { C as Ve } from "./checkbox-DV4sNDeB.js";
|
|
9
9
|
import { T as Qe } from "./text-input-B6iAgCr3.js";
|
|
10
|
-
import { T as
|
|
10
|
+
import { T as Te } from "./tag-BNlcEJfE.js";
|
|
11
11
|
import { D as U } from "./dropdown-menu-Dw6sgQwJ.js";
|
|
12
12
|
import { a as me } from "./format-number-DdzqwMs1.js";
|
|
13
13
|
import { g as Le } from "./date-locale-OG-MupVD.js";
|
|
@@ -147,7 +147,7 @@ function it(a, e) {
|
|
|
147
147
|
}
|
|
148
148
|
function ot(a, e, d = {}) {
|
|
149
149
|
if (!a || typeof a != "object") return "";
|
|
150
|
-
const t = a, u = typeof t.type == "string" ? t.type : "", F = d.kitWording === !0, E = (
|
|
150
|
+
const t = a, u = typeof t.type == "string" ? t.type : "", F = d.kitWording === !0, E = (T) => F && typeof t.filter == "string" && at(T) ? st(T, e) : it(T, e), I = (T) => typeof T == "number" && d.number ? d.number(T) : String(T), M = (T) => d.day ? d.day(T) : T, N = e("dataTable.numberFilter.from", "From"), Y = e("dataTable.numberFilter.to", "To");
|
|
151
151
|
if (u === "blank" || u === "notBlank") return E(u);
|
|
152
152
|
const Q = typeof t.filter == "string" || typeof t.filter == "number", ee = typeof t.filterTo == "string" || typeof t.filterTo == "number";
|
|
153
153
|
if (u === "inRange" && (Q || ee))
|
|
@@ -155,10 +155,10 @@ function ot(a, e, d = {}) {
|
|
|
155
155
|
if (Q)
|
|
156
156
|
return u ? `${E(u)} ${I(t.filter)}` : I(t.filter);
|
|
157
157
|
if (F) {
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
160
|
-
if (
|
|
161
|
-
return L ? `${N} ${M(
|
|
158
|
+
const T = typeof t.dateFrom == "string" && t.dateFrom ? t.dateFrom : "", D = typeof t.dateTo == "string" && t.dateTo ? t.dateTo : "", L = u === "inRange" || u === "";
|
|
159
|
+
if (T && D) return `${M(T)} – ${M(D)}`;
|
|
160
|
+
if (T)
|
|
161
|
+
return L ? `${N} ${M(T)}` : `${E(u)} ${M(T)}`;
|
|
162
162
|
if (D) return `${Y} ${M(D)}`;
|
|
163
163
|
} else if (typeof t.dateFrom == "string")
|
|
164
164
|
return typeof t.dateTo == "string" && t.dateTo ? `${t.dateFrom} – ${t.dateTo}` : String(t.dateFrom);
|
|
@@ -204,7 +204,10 @@ const ct = Z([
|
|
|
204
204
|
// `flex-nowrap` + `min-w-0` so the row stays single-line at every common
|
|
205
205
|
// desktop width (1024 / 1280 / 1440): the QuickSearch slot shrinks via
|
|
206
206
|
// its own `min-w-0` instead of pushing the trailing Actions to a new row.
|
|
207
|
-
|
|
207
|
+
// `items-start`: when FilterBar grows a second row (the FacetFilter tabs),
|
|
208
|
+
// Actions stay on the first row beside the search box instead of floating
|
|
209
|
+
// between the two rows.
|
|
210
|
+
"ds:flex ds:flex-wrap ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
208
211
|
"ds:sm:flex-nowrap ds:min-w-0"
|
|
209
212
|
// No card surface: the toolbar sits directly on the page background,
|
|
210
213
|
// matching the header-tools layout the Patients / Care Plan List
|
|
@@ -227,6 +230,9 @@ const ct = Z([
|
|
|
227
230
|
defaultVariants: { hiddenQuery: !1 }
|
|
228
231
|
}), mt = Z([
|
|
229
232
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
233
|
+
// One control row tall (the sm control height), so the buttons share the
|
|
234
|
+
// centre line of the search box; a taller icon button overflows evenly.
|
|
235
|
+
"ds:h-[var(--row-height-compact)] ds:content-center",
|
|
230
236
|
"ds:ms-auto"
|
|
231
237
|
]), ft = Z(
|
|
232
238
|
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs,var(--spacing-xs))] ds:transition-colors",
|
|
@@ -359,7 +365,7 @@ function Vt(a) {
|
|
|
359
365
|
Q.displayName = `${e}.Refresh.MenuItem`;
|
|
360
366
|
const ee = Object.assign(M, {
|
|
361
367
|
overflowMenuItem: Y
|
|
362
|
-
}),
|
|
368
|
+
}), T = Object.assign(N, {
|
|
363
369
|
overflowMenuItem: Q
|
|
364
370
|
}), D = ({
|
|
365
371
|
placeholder: n,
|
|
@@ -370,15 +376,15 @@ function Vt(a) {
|
|
|
370
376
|
l ? ["quickFilter", "filter", "columns"] : []
|
|
371
377
|
), b = l && we(o), [k, m] = A(
|
|
372
378
|
() => l && !we(o) ? o.getQuickFilter() : ""
|
|
373
|
-
),
|
|
379
|
+
), x = _(l ? o.getQuickFilter() : ""), f = _(b), y = _(void 0), [$, S] = A(!1), W = Ge(), g = _(null);
|
|
374
380
|
X(() => {
|
|
375
381
|
if (!l) return;
|
|
376
382
|
const h = o.getQuickFilter();
|
|
377
383
|
if (f.current !== b) {
|
|
378
|
-
f.current = b,
|
|
384
|
+
f.current = b, x.current = h, m(b ? "" : h);
|
|
379
385
|
return;
|
|
380
386
|
}
|
|
381
|
-
h !==
|
|
387
|
+
h !== x.current && (y.current && (window.clearTimeout(y.current), y.current = void 0, S(!1)), x.current = h, m(b && h !== "" ? "" : h));
|
|
382
388
|
}, [l, o, v, b]), X(
|
|
383
389
|
() => () => {
|
|
384
390
|
y.current && window.clearTimeout(y.current);
|
|
@@ -388,8 +394,8 @@ function Vt(a) {
|
|
|
388
394
|
const R = (h) => {
|
|
389
395
|
y.current && window.clearTimeout(y.current), S(!0), y.current = window.setTimeout(() => {
|
|
390
396
|
if (y.current = void 0, S(!1), l) {
|
|
391
|
-
if (o.getQuickFilter() !==
|
|
392
|
-
|
|
397
|
+
if (o.getQuickFilter() !== x.current || h === x.current) return;
|
|
398
|
+
x.current = h;
|
|
393
399
|
}
|
|
394
400
|
o.setQuickFilter(h);
|
|
395
401
|
}, c);
|
|
@@ -449,12 +455,12 @@ function Vt(a) {
|
|
|
449
455
|
K(i, ["filter", "quickFilter", "columns"]);
|
|
450
456
|
const [, o] = Ae((g) => g + 1, 0), l = i.getFilterModel() ?? {}, v = i.getColumns(), b = new Map(
|
|
451
457
|
v.map((g) => [g.id, g])
|
|
452
|
-
), k = i.features.formatsFilterValues === !0, m = (g, R) => k ? n("dataTable.filterChips.chip", { column: g, value: R }) : `${g}: ${R}`,
|
|
458
|
+
), k = i.features.formatsFilterValues === !0, m = (g, R) => k ? n("dataTable.filterChips.chip", { column: g, value: R }) : `${g}: ${R}`, x = [];
|
|
453
459
|
for (const g of Object.keys(l)) {
|
|
454
460
|
const R = b.get(g);
|
|
455
461
|
if (!R) {
|
|
456
462
|
const h = (W = i.getFilterLabel) == null ? void 0 : W.call(i, g);
|
|
457
|
-
|
|
463
|
+
x.push({ key: g, label: h ?? g });
|
|
458
464
|
continue;
|
|
459
465
|
}
|
|
460
466
|
const O = R.masked ? "" : ot(
|
|
@@ -462,10 +468,10 @@ function Vt(a) {
|
|
|
462
468
|
n,
|
|
463
469
|
nt(R, k, c.language)
|
|
464
470
|
), w = R.label || g;
|
|
465
|
-
|
|
471
|
+
x.push({ key: g, label: O ? m(w, O) : w });
|
|
466
472
|
}
|
|
467
473
|
const f = i.getQuickFilter(), y = n("dataTable.quickSearch.label", "Quick search"), $ = v.some((g) => g.masked === !0) ? y : m(y, f);
|
|
468
|
-
return
|
|
474
|
+
return x.length + (f ? 1 : 0) === 0 ? null : /* @__PURE__ */ G(
|
|
469
475
|
"div",
|
|
470
476
|
{
|
|
471
477
|
role: "group",
|
|
@@ -473,7 +479,7 @@ function Vt(a) {
|
|
|
473
479
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
474
480
|
children: [
|
|
475
481
|
f && /* @__PURE__ */ r(
|
|
476
|
-
|
|
482
|
+
Te,
|
|
477
483
|
{
|
|
478
484
|
label: $,
|
|
479
485
|
size: "sm",
|
|
@@ -484,8 +490,8 @@ function Vt(a) {
|
|
|
484
490
|
}
|
|
485
491
|
}
|
|
486
492
|
),
|
|
487
|
-
|
|
488
|
-
|
|
493
|
+
x.map((g) => /* @__PURE__ */ r(
|
|
494
|
+
Te,
|
|
489
495
|
{
|
|
490
496
|
label: g.label,
|
|
491
497
|
size: "sm",
|
|
@@ -521,7 +527,7 @@ function Vt(a) {
|
|
|
521
527
|
X(() => {
|
|
522
528
|
v && m(null);
|
|
523
529
|
}, [v, b]);
|
|
524
|
-
const
|
|
530
|
+
const x = k ? k.value : v ? ((y = l.getFacet) == null ? void 0 : y.call(l, n)) ?? null : null;
|
|
525
531
|
function f($) {
|
|
526
532
|
m({ value: $ }), l.setFacet(n, $);
|
|
527
533
|
}
|
|
@@ -530,9 +536,9 @@ function Vt(a) {
|
|
|
530
536
|
{
|
|
531
537
|
role: "group",
|
|
532
538
|
"aria-label": i ?? o("dataTable.facetFilter.label", "Filter"),
|
|
533
|
-
className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
539
|
+
className: "ds:flex ds:w-full ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
534
540
|
children: c.map(($) => {
|
|
535
|
-
const S =
|
|
541
|
+
const S = x === $.value;
|
|
536
542
|
return /* @__PURE__ */ r(
|
|
537
543
|
ie,
|
|
538
544
|
{
|
|
@@ -606,7 +612,7 @@ function Vt(a) {
|
|
|
606
612
|
he.displayName = `${e}.ExportMenu.Item`;
|
|
607
613
|
const de = V(
|
|
608
614
|
function({ label: c, icon: i, footer: o, header: l, intent: v = "outline", ...b }, k) {
|
|
609
|
-
const { t: m, i18n:
|
|
615
|
+
const { t: m, i18n: x } = q("ui"), f = t("ColumnToggle"), y = f.features.keyboardReorder, $ = f.features.toolbarAnnouncesColumnMoves === !0, [S, W] = A(!1), [g, R] = A(""), O = K(f, S ? ["columns"] : []), [w, h] = A([]), [ve, ce] = A(null), [Me, te] = A(null), J = _(/* @__PURE__ */ new Map()), re = _(
|
|
610
616
|
null
|
|
611
617
|
), j = se(
|
|
612
618
|
() => f.getColumns().filter((s) => s.hiddenByPrivacy !== !0),
|
|
@@ -631,7 +637,7 @@ function Vt(a) {
|
|
|
631
637
|
f.isReady() && (f.setColumnVisible(s, C), h(j()));
|
|
632
638
|
},
|
|
633
639
|
[f, j]
|
|
634
|
-
),
|
|
640
|
+
), xe = se(
|
|
635
641
|
(s, C) => {
|
|
636
642
|
if (!f.isReady()) return;
|
|
637
643
|
const B = f.getColumns().find((pe) => pe.id === s);
|
|
@@ -650,19 +656,19 @@ function Vt(a) {
|
|
|
650
656
|
R(
|
|
651
657
|
m("dataGrid.announce.columnMoved", {
|
|
652
658
|
column: ae,
|
|
653
|
-
position: me(p + 1,
|
|
654
|
-
total: me(P.length,
|
|
659
|
+
position: me(p + 1, x.language),
|
|
660
|
+
total: me(P.length, x.language)
|
|
655
661
|
})
|
|
656
662
|
);
|
|
657
663
|
},
|
|
658
|
-
[f, j, $, m,
|
|
664
|
+
[f, j, $, m, x.language]
|
|
659
665
|
), ue = se(
|
|
660
666
|
(s, C) => {
|
|
661
667
|
if (s === C) return;
|
|
662
668
|
const B = f.getColumns().findIndex((P) => P.id === C);
|
|
663
|
-
B < 0 ||
|
|
669
|
+
B < 0 || xe(s, B);
|
|
664
670
|
},
|
|
665
|
-
[f,
|
|
671
|
+
[f, xe]
|
|
666
672
|
), ne = c ?? m("dataTable.columnToggle");
|
|
667
673
|
return /* @__PURE__ */ G(oe.Root, { open: S, onOpenChange: W, children: [
|
|
668
674
|
/* @__PURE__ */ r(oe.Trigger, { asChild: !0, children: /* @__PURE__ */ r(
|
|
@@ -815,8 +821,8 @@ function Vt(a) {
|
|
|
815
821
|
({ label: n, icon: c, onAction: i, variant: o = "default", size: l = "sm", ...v }, b) => {
|
|
816
822
|
const { t: k } = q("ui"), m = t("BulkAction");
|
|
817
823
|
K(m, ["selection"]);
|
|
818
|
-
const
|
|
819
|
-
return
|
|
824
|
+
const x = m.getSelectionCount();
|
|
825
|
+
return x === 0 ? null : /* @__PURE__ */ G(
|
|
820
826
|
ie,
|
|
821
827
|
{
|
|
822
828
|
ref: b,
|
|
@@ -825,7 +831,7 @@ function Vt(a) {
|
|
|
825
831
|
size: l,
|
|
826
832
|
startIcon: lt(c),
|
|
827
833
|
onClick: () => i(dt(m)),
|
|
828
|
-
"aria-label": `${n} (${k("dataTable.bulkAction", { count:
|
|
834
|
+
"aria-label": `${n} (${k("dataTable.bulkAction", { count: x })})`,
|
|
829
835
|
...v,
|
|
830
836
|
children: [
|
|
831
837
|
/* @__PURE__ */ r("span", { children: n }),
|
|
@@ -834,7 +840,7 @@ function Vt(a) {
|
|
|
834
840
|
{
|
|
835
841
|
"aria-hidden": "true",
|
|
836
842
|
className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
|
|
837
|
-
children: k("dataTable.bulkAction", { count:
|
|
843
|
+
children: k("dataTable.bulkAction", { count: x })
|
|
838
844
|
}
|
|
839
845
|
)
|
|
840
846
|
]
|
|
@@ -850,7 +856,7 @@ function Vt(a) {
|
|
|
850
856
|
FilterBar: F,
|
|
851
857
|
Actions: E,
|
|
852
858
|
Print: ee,
|
|
853
|
-
Refresh:
|
|
859
|
+
Refresh: T,
|
|
854
860
|
QuickSearch: D,
|
|
855
861
|
FilterChips: L,
|
|
856
862
|
FacetFilter: fe,
|
|
@@ -866,4 +872,4 @@ export {
|
|
|
866
872
|
dt as a,
|
|
867
873
|
Vt as c
|
|
868
874
|
};
|
|
869
|
-
//# sourceMappingURL=parts-
|
|
875
|
+
//# sourceMappingURL=parts-tGzYz0uG.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as M, useEffect as G, forwardRef as m, useCallback as w } from "react";
|
|
3
3
|
import { useTranslation as I } from "react-i18next";
|
|
4
|
-
import { T as v, c as N, a as R } from "./parts-
|
|
4
|
+
import { T as v, c as N, a as R } from "./parts-tGzYz0uG.js";
|
|
5
5
|
import { e as k, s as P, w as A, a as B } from "./export-files-BByoK9Cg.js";
|
|
6
6
|
import { i as O } from "./is-development-CLUAnsU7.js";
|
|
7
7
|
import { d as j, g as Q, u as _ } from "./grid-context-jn9y8tNE.js";
|
|
8
|
-
import { g as U } from "./data-grid-
|
|
8
|
+
import { g as U } from "./data-grid-bzvkQ3kc.js";
|
|
9
9
|
function S() {
|
|
10
10
|
var t;
|
|
11
11
|
return ((t = _()) == null ? void 0 : t.toolbarSeam) ?? null;
|
|
@@ -156,4 +156,4 @@ export {
|
|
|
156
156
|
Z as D,
|
|
157
157
|
Y as a
|
|
158
158
|
};
|
|
159
|
-
//# sourceMappingURL=toolbar-
|
|
159
|
+
//# sourceMappingURL=toolbar-Co46MEn9.js.map
|