@ai-matrx/records-ui 0.115.96 → 0.115.97
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 +10 -1
- package/dist/index.cjs +7 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -51224,6 +51224,7 @@ import {
|
|
|
51224
51224
|
} from "@ai-matrx/records/react";
|
|
51225
51225
|
import { exportCsv as exportCsv2, onRecordChanged as onRecordChanged2 } from "@ai-matrx/records/core";
|
|
51226
51226
|
import { downloadFile as downloadFile3 } from "@ai-matrx/kit/download";
|
|
51227
|
+
import { formatCount as formatCount7 } from "@ai-matrx/kit/format";
|
|
51227
51228
|
import { BasicInput as BasicInput35, Button as Button108, Checkbox as Checkbox19, Skeleton as Skeleton40, cn as cn93 } from "@ai-matrx/design-system";
|
|
51228
51229
|
import { formFromSummary as formFromSummary2 } from "@ai-matrx/records/forms";
|
|
51229
51230
|
|
|
@@ -51798,7 +51799,7 @@ function NumberBlockView({ block, viewerUserId, extra }) {
|
|
|
51798
51799
|
const read = useElementRows(block, viewerUserId, extra, false);
|
|
51799
51800
|
if (read.error) return /* @__PURE__ */ jsx164(RefusalLine, { error: read.error });
|
|
51800
51801
|
if (read.waiting || read.total === null) return /* @__PURE__ */ jsx164(Skeleton40, { className: "h-12 w-24" });
|
|
51801
|
-
return /* @__PURE__ */ jsx164("p", { className: "text-3xl font-semibold tabular-nums", "data-records-page-number": block.id, children: read.total
|
|
51802
|
+
return /* @__PURE__ */ jsx164("p", { className: "text-3xl font-semibold tabular-nums", "data-records-page-number": block.id, children: formatCount7(read.total) });
|
|
51802
51803
|
}
|
|
51803
51804
|
function LayoutBlockView({ block, viewerUserId, extra }) {
|
|
51804
51805
|
const door = useInterfaceDoor();
|
|
@@ -54689,7 +54690,7 @@ function TableReferenceDialog({
|
|
|
54689
54690
|
}
|
|
54690
54691
|
|
|
54691
54692
|
// src/TableDuplicate.tsx
|
|
54692
|
-
import { formatCount as
|
|
54693
|
+
import { formatCount as formatCount8 } from "@ai-matrx/kit/format";
|
|
54693
54694
|
import { useState as useState152 } from "react";
|
|
54694
54695
|
import { tableShapeChanged as tableShapeChanged14, useRecordsClient as useRecordsClient107 } from "@ai-matrx/records/react";
|
|
54695
54696
|
import { Button as Button120, Dialog as Dialog22, DialogContent as DialogContent22, DialogFooter as DialogFooter13, DialogHeader as DialogHeader22, DialogTitle as DialogTitle22, ErrorBox as ErrorBox8, Input as Input11, Switch as Switch7 } from "@ai-matrx/design-system";
|
|
@@ -54698,7 +54699,7 @@ function copyNameFor(name) {
|
|
|
54698
54699
|
return `${name.trim() || "Table"} (copy)`;
|
|
54699
54700
|
}
|
|
54700
54701
|
function duplicateProgressWords(p) {
|
|
54701
|
-
if (p.records && p.records.total > 0) return `Copying records \xB7 ${
|
|
54702
|
+
if (p.records && p.records.total > 0) return `Copying records \xB7 ${formatCount8(p.records.done)} of ${formatCount8(p.records.total)}`;
|
|
54702
54703
|
if (p.views.total > 0 && p.step === "views") return `Copying views \xB7 ${p.views.done} of ${p.views.total}`;
|
|
54703
54704
|
return "Copying columns\u2026";
|
|
54704
54705
|
}
|
|
@@ -54755,7 +54756,7 @@ function TableDuplicateDialog({ tableId, name, organizationId, open, onOpenChang
|
|
|
54755
54756
|
" columns, ",
|
|
54756
54757
|
phase.copy.copied.views,
|
|
54757
54758
|
" views",
|
|
54758
|
-
phase.copy.copied.withRecords ? `, ${
|
|
54759
|
+
phase.copy.copied.withRecords ? `, ${formatCount8(phase.copy.copied.records)} records` : "",
|
|
54759
54760
|
"."
|
|
54760
54761
|
] }),
|
|
54761
54762
|
phase.copy.notCopied.length > 0 ? /* @__PURE__ */ jsxs166("p", { className: "text-xs text-muted-foreground", children: [
|
|
@@ -56725,7 +56726,7 @@ function usePublicReadOnly(client, organizationId, tableId, table, rights) {
|
|
|
56725
56726
|
}
|
|
56726
56727
|
|
|
56727
56728
|
// src/entityViews.tsx
|
|
56728
|
-
import { formatCount as
|
|
56729
|
+
import { formatCount as formatCount9 } from "@ai-matrx/kit/format";
|
|
56729
56730
|
import { TapTargetSearchGroup as TapTargetSearchGroup2, TooltipProvider } from "@ai-matrx/design-system";
|
|
56730
56731
|
import { MatrxTableCardShowMore as MatrxTableCardShowMore3 } from "@ai-matrx/design-system/data-table";
|
|
56731
56732
|
import { useEffect as useEffect132, useMemo as useMemo86, useRef as useRef69, useState as useState156 } from "react";
|
|
@@ -56918,7 +56919,7 @@ function EntityTablePageBody({
|
|
|
56918
56919
|
return /* @__PURE__ */ jsxs170("div", { className: cn104("flex min-w-0 flex-col gap-2", className), "data-records-entity-page": source.token, children: [
|
|
56919
56920
|
presentation === "page" || boardable || entity.creatable ? /* @__PURE__ */ jsxs170("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
56920
56921
|
presentation === "page" ? /* @__PURE__ */ jsx182("h2", { className: "truncate text-base font-semibold", children: entity.label ?? (entity.loading ? "Loading\u2026" : "Table") }) : null,
|
|
56921
|
-
presentation === "page" ? /* @__PURE__ */ jsx182("span", { className: "text-xs tabular-nums text-muted-foreground", children: entity.loading || entity.total === null ? "" :
|
|
56922
|
+
presentation === "page" ? /* @__PURE__ */ jsx182("span", { className: "text-xs tabular-nums text-muted-foreground", children: entity.loading || entity.total === null ? "" : formatCount9(entity.total) }) : null,
|
|
56922
56923
|
/* @__PURE__ */ jsxs170("span", { className: "ml-auto flex items-center gap-1", children: [
|
|
56923
56924
|
boardable ? /* @__PURE__ */ jsxs170(Fragment76, { children: [
|
|
56924
56925
|
/* @__PURE__ */ jsx182(Button123, { size: "sm", variant: layout === "grid" ? "secondary" : "ghost", "aria-pressed": layout === "grid", onClick: () => choose("grid"), children: "Table" }),
|