@ai-matrx/design-system 0.19.16 → 0.19.18
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/CHANGELOG.md +16 -2
- package/dist/content-transfer.cjs +6 -4
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.js +6 -4
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/copy-helpers.d.cts +1 -1
- package/dist/data-table/copy-helpers.d.ts +1 -1
- package/dist/data-table/data-row-inspector.cjs +6 -4
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +6 -4
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +6 -4
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +6 -4
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/filter-engine.d.cts +1 -1
- package/dist/data-table/filter-engine.d.ts +1 -1
- package/dist/data-table/host.d.cts +1 -1
- package/dist/data-table/host.d.ts +1 -1
- package/dist/data-table/index.cjs +21 -14
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +2 -2
- package/dist/data-table/index.d.ts +2 -2
- package/dist/data-table/index.js +21 -14
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/infer-filter.d.cts +1 -1
- package/dist/data-table/infer-filter.d.ts +1 -1
- package/dist/data-table/layered-filters.d.cts +1 -1
- package/dist/data-table/layered-filters.d.ts +1 -1
- package/dist/data-table/query-control.d.cts +1 -1
- package/dist/data-table/query-control.d.ts +1 -1
- package/dist/data-table/types.cjs.map +1 -1
- package/dist/data-table/types.d.cts +1 -1
- package/dist/data-table/types.d.ts +1 -1
- package/dist/data-table/url-state.d.cts +1 -1
- package/dist/data-table/url-state.d.ts +1 -1
- package/dist/data-table/xlsx.d.cts +1 -1
- package/dist/data-table/xlsx.d.ts +1 -1
- package/dist/{types-DqlfNcC5.d.cts → types-CRCy-Zy_.d.cts} +1 -1
- package/dist/{types-lNw7TnTM.d.ts → types-Ch60uNn-.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { g as MatrxDataTableProps, h as TableViewSnapshot } from '../types-
|
|
4
|
-
export { A as AnyOfColumnSearch, i as CellEditType, j as CellEditsMap, e as ColumnFilterKind, a as ColumnFilterValue, C as ColumnFiltersState, M as MatrxColumnDef, f as MatrxDataTableCopyConfig, c as MatrxDataTableDensity, k as MatrxDataTableDetailConfig, l as MatrxDataTableEditConfig, m as MatrxDataTableEmptyState, n as MatrxDataTableFilterUi, o as MatrxDataTableHierarchyConfig, p as MatrxDataTableHierarchyMove, q as MatrxDataTableMobileCardControls, r as MatrxDataTableQueryControl, d as MatrxDataTableQueryState, s as MatrxDataTableRecordControls, t as MatrxDataTableSelectionConfig, u as MatrxDataTableSourceProcessing, v as MatrxDataTableToolbar, w as MatrxDataTableUrlStateConfig, x as MatrxDataTableWindowConfig, y as MatrxTablePagination, z as SortDirection, S as SortState, b as TableSavedViewsProps, T as TableSearchMatchMode, B as TableViewQuery, D as TextFilterMode, E as ToolbarFacet } from '../types-
|
|
3
|
+
import { g as MatrxDataTableProps, h as TableViewSnapshot } from '../types-CRCy-Zy_.cjs';
|
|
4
|
+
export { A as AnyOfColumnSearch, i as CellEditType, j as CellEditsMap, e as ColumnFilterKind, a as ColumnFilterValue, C as ColumnFiltersState, M as MatrxColumnDef, f as MatrxDataTableCopyConfig, c as MatrxDataTableDensity, k as MatrxDataTableDetailConfig, l as MatrxDataTableEditConfig, m as MatrxDataTableEmptyState, n as MatrxDataTableFilterUi, o as MatrxDataTableHierarchyConfig, p as MatrxDataTableHierarchyMove, q as MatrxDataTableMobileCardControls, r as MatrxDataTableQueryControl, d as MatrxDataTableQueryState, s as MatrxDataTableRecordControls, t as MatrxDataTableSelectionConfig, u as MatrxDataTableSourceProcessing, v as MatrxDataTableToolbar, w as MatrxDataTableUrlStateConfig, x as MatrxDataTableWindowConfig, y as MatrxTablePagination, z as SortDirection, S as SortState, b as TableSavedViewsProps, T as TableSearchMatchMode, B as TableViewQuery, D as TextFilterMode, E as ToolbarFacet } from '../types-CRCy-Zy_.cjs';
|
|
5
5
|
export { MatrxDataTableHost, MatrxDataTableProvider, TableDoors, TableEntityRefProps, TableLinkProps, TablePeekProps, TableSidePanelProps, TableToolbarActionProps, TableWindowPanelProps, useMatrxDataTableHost } from './host.cjs';
|
|
6
6
|
export { DataRowInspector } from './data-row-inspector.cjs';
|
|
7
7
|
export { DataRowWindow, DataRowWindowProps, DataRowWindowTab } from './data-row-window.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { g as MatrxDataTableProps, h as TableViewSnapshot } from '../types-
|
|
4
|
-
export { A as AnyOfColumnSearch, i as CellEditType, j as CellEditsMap, e as ColumnFilterKind, a as ColumnFilterValue, C as ColumnFiltersState, M as MatrxColumnDef, f as MatrxDataTableCopyConfig, c as MatrxDataTableDensity, k as MatrxDataTableDetailConfig, l as MatrxDataTableEditConfig, m as MatrxDataTableEmptyState, n as MatrxDataTableFilterUi, o as MatrxDataTableHierarchyConfig, p as MatrxDataTableHierarchyMove, q as MatrxDataTableMobileCardControls, r as MatrxDataTableQueryControl, d as MatrxDataTableQueryState, s as MatrxDataTableRecordControls, t as MatrxDataTableSelectionConfig, u as MatrxDataTableSourceProcessing, v as MatrxDataTableToolbar, w as MatrxDataTableUrlStateConfig, x as MatrxDataTableWindowConfig, y as MatrxTablePagination, z as SortDirection, S as SortState, b as TableSavedViewsProps, T as TableSearchMatchMode, B as TableViewQuery, D as TextFilterMode, E as ToolbarFacet } from '../types-
|
|
3
|
+
import { g as MatrxDataTableProps, h as TableViewSnapshot } from '../types-Ch60uNn-.js';
|
|
4
|
+
export { A as AnyOfColumnSearch, i as CellEditType, j as CellEditsMap, e as ColumnFilterKind, a as ColumnFilterValue, C as ColumnFiltersState, M as MatrxColumnDef, f as MatrxDataTableCopyConfig, c as MatrxDataTableDensity, k as MatrxDataTableDetailConfig, l as MatrxDataTableEditConfig, m as MatrxDataTableEmptyState, n as MatrxDataTableFilterUi, o as MatrxDataTableHierarchyConfig, p as MatrxDataTableHierarchyMove, q as MatrxDataTableMobileCardControls, r as MatrxDataTableQueryControl, d as MatrxDataTableQueryState, s as MatrxDataTableRecordControls, t as MatrxDataTableSelectionConfig, u as MatrxDataTableSourceProcessing, v as MatrxDataTableToolbar, w as MatrxDataTableUrlStateConfig, x as MatrxDataTableWindowConfig, y as MatrxTablePagination, z as SortDirection, S as SortState, b as TableSavedViewsProps, T as TableSearchMatchMode, B as TableViewQuery, D as TextFilterMode, E as ToolbarFacet } from '../types-Ch60uNn-.js';
|
|
5
5
|
export { MatrxDataTableHost, MatrxDataTableProvider, TableDoors, TableEntityRefProps, TableLinkProps, TablePeekProps, TableSidePanelProps, TableToolbarActionProps, TableWindowPanelProps, useMatrxDataTableHost } from './host.js';
|
|
6
6
|
export { DataRowInspector } from './data-row-inspector.js';
|
|
7
7
|
export { DataRowWindow, DataRowWindowProps, DataRowWindowTab } from './data-row-window.js';
|
package/dist/data-table/index.js
CHANGED
|
@@ -183,6 +183,9 @@ var Button = React.forwardRef(
|
|
|
183
183
|
);
|
|
184
184
|
Button.displayName = "Button";
|
|
185
185
|
|
|
186
|
+
// src/data-table/MatrxDataTable.tsx
|
|
187
|
+
import { formatCount as formatCount3 } from "@ai-matrx/kit/format";
|
|
188
|
+
|
|
186
189
|
// src/checkbox.tsx
|
|
187
190
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
188
191
|
import * as React2 from "react";
|
|
@@ -2106,6 +2109,7 @@ import {
|
|
|
2106
2109
|
normalizeTransferJson,
|
|
2107
2110
|
sealTransferArtifact as sealTransferArtifact2
|
|
2108
2111
|
} from "@ai-matrx/kit/content-transfer";
|
|
2112
|
+
import { formatCount as formatCount2 } from "@ai-matrx/kit/format";
|
|
2109
2113
|
|
|
2110
2114
|
// src/content-transfer/index.tsx
|
|
2111
2115
|
import * as React13 from "react";
|
|
@@ -2132,6 +2136,7 @@ import {
|
|
|
2132
2136
|
transformRows,
|
|
2133
2137
|
undoDraft
|
|
2134
2138
|
} from "@ai-matrx/kit/content-transfer";
|
|
2139
|
+
import { formatCount } from "@ai-matrx/kit/format";
|
|
2135
2140
|
|
|
2136
2141
|
// src/popover.tsx
|
|
2137
2142
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
@@ -3177,7 +3182,7 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
3177
3182
|
void preflight();
|
|
3178
3183
|
}
|
|
3179
3184
|
}, children: [
|
|
3180
|
-
/* @__PURE__ */ jsx23(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ jsx23(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ jsx23(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass" }) : /* @__PURE__ */ jsx23(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ jsx23(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent" }) }),
|
|
3185
|
+
/* @__PURE__ */ jsx23(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ jsx23(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ jsx23(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass", disabled }) : /* @__PURE__ */ jsx23(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ jsx23(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent", disabled }) }),
|
|
3181
3186
|
/* @__PURE__ */ jsxs15(PopoverContent, { align: "end", className: "matrx-alchemy-menu matrx-alchemy-palette", "aria-label": "Alchemy output options", onCloseAutoFocus: () => triggerRef.current?.focus(), children: [
|
|
3182
3187
|
menuStatus === "loading" ? /* @__PURE__ */ jsx23("p", { className: "matrx-alchemy-palette-status", children: "Inspecting content\u2026" }) : menuStatus !== "idle" ? /* @__PURE__ */ jsx23("p", { className: "matrx-alchemy-error", children: menuStatus }) : null,
|
|
3183
3188
|
copyAvailable || downloadAvailable ? /* @__PURE__ */ jsxs15("section", { className: "matrx-alchemy-output", children: [
|
|
@@ -3536,7 +3541,7 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
3536
3541
|
const formats = COPIES.filter((f) => supportsBuiltIn(f, state.draft.payload));
|
|
3537
3542
|
const workspaceAdapters = adapters.filter((adapter) => adapter.supports(state.draft.payload));
|
|
3538
3543
|
const displayedOmissions = preparedArtifact?.omissions ?? state.draft.omissions;
|
|
3539
|
-
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${Number(value)
|
|
3544
|
+
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${formatCount(Number(value))}`).join(" \xB7 ");
|
|
3540
3545
|
return /* @__PURE__ */ jsx23(Dialog, { open, onOpenChange: (next) => {
|
|
3541
3546
|
if (!next) close();
|
|
3542
3547
|
}, children: /* @__PURE__ */ jsxs15(DialogContent, { onCloseAutoFocus: (event) => {
|
|
@@ -4289,10 +4294,10 @@ function SourceConfiguration({
|
|
|
4289
4294
|
] }) : null
|
|
4290
4295
|
] }),
|
|
4291
4296
|
/* @__PURE__ */ jsxs16("p", { children: [
|
|
4292
|
-
text.length
|
|
4297
|
+
formatCount2(text.length),
|
|
4293
4298
|
" characters \xB7 approximately",
|
|
4294
4299
|
" ",
|
|
4295
|
-
Math.ceil(text.length / 4)
|
|
4300
|
+
formatCount2(Math.ceil(text.length / 4)),
|
|
4296
4301
|
" tokens"
|
|
4297
4302
|
] }),
|
|
4298
4303
|
error || buildError ? /* @__PURE__ */ jsx24("p", { role: "alert", children: error ?? buildError }) : null
|
|
@@ -5609,7 +5614,7 @@ function ColumnHeaderCell({
|
|
|
5609
5614
|
"."
|
|
5610
5615
|
] })
|
|
5611
5616
|
] }) : /* @__PURE__ */ jsx28("span", { className: "truncate text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: label }),
|
|
5612
|
-
filterKind ? /* @__PURE__ */ jsxs19("div", { className: "inline-flex items-center", children: [
|
|
5617
|
+
filterKind || sortable ? /* @__PURE__ */ jsxs19("div", { className: "inline-flex items-center", children: [
|
|
5613
5618
|
/* @__PURE__ */ jsxs19(Popover, { open: filterOpen, onOpenChange: setFilterOpen, children: [
|
|
5614
5619
|
/* @__PURE__ */ jsxs19(Tooltip, { children: [
|
|
5615
5620
|
/* @__PURE__ */ jsx28(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx28(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx28(
|
|
@@ -5622,12 +5627,7 @@ function ColumnHeaderCell({
|
|
|
5622
5627
|
"rounded p-0.5 transition-colors",
|
|
5623
5628
|
filterActive ? "text-primary hover:text-primary/80" : "text-muted-foreground/40 hover:text-muted-foreground"
|
|
5624
5629
|
),
|
|
5625
|
-
children: /* @__PURE__ */ jsx28(
|
|
5626
|
-
ListFilter,
|
|
5627
|
-
{
|
|
5628
|
-
className: cn("h-3 w-3", filterActive && "fill-primary/20")
|
|
5629
|
-
}
|
|
5630
|
-
)
|
|
5630
|
+
children: filterKind ? /* @__PURE__ */ jsx28(ListFilter, { className: cn("h-3 w-3", filterActive && "fill-primary/20") }) : /* @__PURE__ */ jsx28(ArrowUpDown, { className: "h-3 w-3" })
|
|
5631
5631
|
}
|
|
5632
5632
|
) }) }),
|
|
5633
5633
|
/* @__PURE__ */ jsx28(TooltipContent, { children: menuLabel })
|
|
@@ -9556,7 +9556,14 @@ function MatrxDataTableCore({
|
|
|
9556
9556
|
] }) : null
|
|
9557
9557
|
] }) : null,
|
|
9558
9558
|
renderedFacets ? /* @__PURE__ */ jsx38(ToolbarFacets, { facets: renderedFacets }) : null,
|
|
9559
|
-
toolbar?.leading
|
|
9559
|
+
toolbar?.leading ? /* @__PURE__ */ jsx38(
|
|
9560
|
+
"div",
|
|
9561
|
+
{
|
|
9562
|
+
"data-matrx-table-toolbar-extras": true,
|
|
9563
|
+
className: "order-last flex w-full min-w-0 flex-wrap items-center gap-2",
|
|
9564
|
+
children: toolbar.leading
|
|
9565
|
+
}
|
|
9566
|
+
) : null,
|
|
9560
9567
|
/* @__PURE__ */ jsxs28(
|
|
9561
9568
|
"div",
|
|
9562
9569
|
{
|
|
@@ -9700,7 +9707,7 @@ function MatrxDataTableCore({
|
|
|
9700
9707
|
),
|
|
9701
9708
|
selection && selectionCount > 0 ? /* @__PURE__ */ jsxs28("div", { className: "flex shrink-0 flex-wrap items-center gap-2 rounded-md border border-primary/30 bg-primary/5 px-2 py-1.5", children: [
|
|
9702
9709
|
/* @__PURE__ */ jsxs28("span", { className: "text-xs font-medium text-foreground", children: [
|
|
9703
|
-
selectionCount
|
|
9710
|
+
formatCount3(selectionCount),
|
|
9704
9711
|
" ",
|
|
9705
9712
|
selectionNoun,
|
|
9706
9713
|
selectionCount === 1 ? "" : "s",
|
|
@@ -10379,7 +10386,7 @@ function MatrxDataTableCore({
|
|
|
10379
10386
|
}
|
|
10380
10387
|
) : null,
|
|
10381
10388
|
/* @__PURE__ */ jsxs28("div", { className: "min-w-0 flex-1", children: [
|
|
10382
|
-
/* @__PURE__ */ jsx38("p", { className: "font-medium text-foreground", children: isLoading ? "Loading rows\u2026" : `${data.length
|
|
10389
|
+
/* @__PURE__ */ jsx38("p", { className: "font-medium text-foreground", children: isLoading ? "Loading rows\u2026" : `${formatCount3(data.length)} loaded${appendQuery.pagination.totalItems === void 0 ? "" : ` of ${formatCount3(appendQuery.pagination.totalItems)}`}` }),
|
|
10383
10390
|
appendQuery.pagination.sourceUntil ? /* @__PURE__ */ jsxs28("p", { children: [
|
|
10384
10391
|
"Source fixed through",
|
|
10385
10392
|
" ",
|