@ai-matrx/records-ui 0.115.95 → 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 +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +5 -2
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +5 -2
- package/dist/pickers.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
-
## 0.115.
|
|
3
|
+
## 0.115.97
|
|
4
4
|
|
|
5
5
|
UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
|
|
6
6
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
7
7
|
|
|
8
|
+
## 0.115.96
|
|
9
|
+
|
|
10
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
11
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
12
|
+
Diff: `git diff 92a4bf3391 3702c2122e -- apps/shared/records-ui/src`
|
|
13
|
+
|
|
14
|
+
Changed shipped source files (1):
|
|
15
|
+
- `apps/shared/records-ui/src/buttonCell.tsx`
|
|
16
|
+
|
|
8
17
|
## 0.115.94
|
|
9
18
|
|
|
10
19
|
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
package/dist/index.cjs
CHANGED
|
@@ -11157,11 +11157,14 @@ function ButtonValue({ field: field2, recordId, inCell }) {
|
|
|
11157
11157
|
const tableId = field2.entity_definition_id;
|
|
11158
11158
|
const press = async () => {
|
|
11159
11159
|
if (!client || !recordId) return setSaid({ kind: "public" });
|
|
11160
|
-
if (needs) return setSaid({ kind: "needs", says: needs });
|
|
11160
|
+
if (needs && b.do) return setSaid({ kind: "needs", says: needs });
|
|
11161
11161
|
setBusy(true);
|
|
11162
11162
|
const answered = await client.buttonPress({ record_id: recordId, field_id: field2.id });
|
|
11163
11163
|
setBusy(false);
|
|
11164
|
-
if (!answered.ok)
|
|
11164
|
+
if (!answered.ok) {
|
|
11165
|
+
if (needs && (answered.error.sqlstate === "22023" || answered.error.code === "invalid_argument")) return setSaid({ kind: "needs", says: needs });
|
|
11166
|
+
return setSaid({ kind: "refused", error: answered.error });
|
|
11167
|
+
}
|
|
11165
11168
|
const pressed = answered.data;
|
|
11166
11169
|
if (pressed.do === "open_url") {
|
|
11167
11170
|
const opened = typeof window !== "undefined" ? (0, import_outbound.openOutbound)(pressed.url, "_blank", "noopener") : null;
|
|
@@ -51294,6 +51297,7 @@ var import_react293 = require("react");
|
|
|
51294
51297
|
var import_react294 = require("@ai-matrx/records/react");
|
|
51295
51298
|
var import_core25 = require("@ai-matrx/records/core");
|
|
51296
51299
|
var import_download3 = require("@ai-matrx/kit/download");
|
|
51300
|
+
var import_format14 = require("@ai-matrx/kit/format");
|
|
51297
51301
|
var import_design_system145 = require("@ai-matrx/design-system");
|
|
51298
51302
|
var import_forms4 = require("@ai-matrx/records/forms");
|
|
51299
51303
|
|
|
@@ -51868,7 +51872,7 @@ function NumberBlockView({ block, viewerUserId, extra }) {
|
|
|
51868
51872
|
const read = useElementRows(block, viewerUserId, extra, false);
|
|
51869
51873
|
if (read.error) return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(RefusalLine, { error: read.error });
|
|
51870
51874
|
if (read.waiting || read.total === null) return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_design_system145.Skeleton, { className: "h-12 w-24" });
|
|
51871
|
-
return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("p", { className: "text-3xl font-semibold tabular-nums", "data-records-page-number": block.id, children: read.total
|
|
51875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("p", { className: "text-3xl font-semibold tabular-nums", "data-records-page-number": block.id, children: (0, import_format14.formatCount)(read.total) });
|
|
51872
51876
|
}
|
|
51873
51877
|
function LayoutBlockView({ block, viewerUserId, extra }) {
|
|
51874
51878
|
const door = useInterfaceDoor();
|
|
@@ -54728,7 +54732,7 @@ function TableReferenceDialog({
|
|
|
54728
54732
|
}
|
|
54729
54733
|
|
|
54730
54734
|
// src/TableDuplicate.tsx
|
|
54731
|
-
var
|
|
54735
|
+
var import_format15 = require("@ai-matrx/kit/format");
|
|
54732
54736
|
var import_react318 = require("react");
|
|
54733
54737
|
var import_react319 = require("@ai-matrx/records/react");
|
|
54734
54738
|
var import_design_system159 = require("@ai-matrx/design-system");
|
|
@@ -54737,7 +54741,7 @@ function copyNameFor(name) {
|
|
|
54737
54741
|
return `${name.trim() || "Table"} (copy)`;
|
|
54738
54742
|
}
|
|
54739
54743
|
function duplicateProgressWords(p) {
|
|
54740
|
-
if (p.records && p.records.total > 0) return `Copying records \xB7 ${(0,
|
|
54744
|
+
if (p.records && p.records.total > 0) return `Copying records \xB7 ${(0, import_format15.formatCount)(p.records.done)} of ${(0, import_format15.formatCount)(p.records.total)}`;
|
|
54741
54745
|
if (p.views.total > 0 && p.step === "views") return `Copying views \xB7 ${p.views.done} of ${p.views.total}`;
|
|
54742
54746
|
return "Copying columns\u2026";
|
|
54743
54747
|
}
|
|
@@ -54794,7 +54798,7 @@ function TableDuplicateDialog({ tableId, name, organizationId, open, onOpenChang
|
|
|
54794
54798
|
" columns, ",
|
|
54795
54799
|
phase.copy.copied.views,
|
|
54796
54800
|
" views",
|
|
54797
|
-
phase.copy.copied.withRecords ? `, ${(0,
|
|
54801
|
+
phase.copy.copied.withRecords ? `, ${(0, import_format15.formatCount)(phase.copy.copied.records)} records` : "",
|
|
54798
54802
|
"."
|
|
54799
54803
|
] }),
|
|
54800
54804
|
phase.copy.notCopied.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)("p", { className: "text-xs text-muted-foreground", children: [
|
|
@@ -56764,7 +56768,7 @@ function usePublicReadOnly(client, organizationId, tableId, table, rights) {
|
|
|
56764
56768
|
}
|
|
56765
56769
|
|
|
56766
56770
|
// src/entityViews.tsx
|
|
56767
|
-
var
|
|
56771
|
+
var import_format16 = require("@ai-matrx/kit/format");
|
|
56768
56772
|
var import_design_system163 = require("@ai-matrx/design-system");
|
|
56769
56773
|
var import_data_table25 = require("@ai-matrx/design-system/data-table");
|
|
56770
56774
|
var import_react325 = require("react");
|
|
@@ -56957,7 +56961,7 @@ function EntityTablePageBody({
|
|
|
56957
56961
|
return /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("div", { className: (0, import_design_system164.cn)("flex min-w-0 flex-col gap-2", className), "data-records-entity-page": source.token, children: [
|
|
56958
56962
|
presentation === "page" || boardable || entity.creatable ? /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
56959
56963
|
presentation === "page" ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("h2", { className: "truncate text-base font-semibold", children: entity.label ?? (entity.loading ? "Loading\u2026" : "Table") }) : null,
|
|
56960
|
-
presentation === "page" ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("span", { className: "text-xs tabular-nums text-muted-foreground", children: entity.loading || entity.total === null ? "" : (0,
|
|
56964
|
+
presentation === "page" ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("span", { className: "text-xs tabular-nums text-muted-foreground", children: entity.loading || entity.total === null ? "" : (0, import_format16.formatCount)(entity.total) }) : null,
|
|
56961
56965
|
/* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("span", { className: "ml-auto flex items-center gap-1", children: [
|
|
56962
56966
|
boardable ? /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(import_jsx_runtime182.Fragment, { children: [
|
|
56963
56967
|
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)(import_design_system164.Button, { size: "sm", variant: layout === "grid" ? "secondary" : "ghost", "aria-pressed": layout === "grid", onClick: () => choose("grid"), children: "Table" }),
|