@ai-matrx/records-ui 0.102.16 → 0.102.17
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 +6 -0
- package/dist/index.cjs +33 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +33 -15
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7225,18 +7225,23 @@ function GridCell({
|
|
|
7225
7225
|
const editable = Boolean(editing) && canWrite && fieldIsEditable(field2);
|
|
7226
7226
|
if (open && editing) {
|
|
7227
7227
|
return /* @__PURE__ */ jsxs23("span", { "data-records-open-cell": "", className: "relative block w-full min-w-0", children: [
|
|
7228
|
-
/* @__PURE__ */
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7228
|
+
/* @__PURE__ */ jsxs23("span", { "aria-hidden": "true", inert: true, "data-records-cell-ghost": "", className: "pointer-events-none invisible flex w-full min-w-0 select-none items-center gap-1", children: [
|
|
7229
|
+
/* @__PURE__ */ jsx28("span", { className: "block min-w-0 flex-1 truncate px-1 py-0.5", children: /* @__PURE__ */ jsx28(
|
|
7230
|
+
RecordValue,
|
|
7231
|
+
{
|
|
7232
|
+
inCell: true,
|
|
7233
|
+
field: field2,
|
|
7234
|
+
value: row.document?.[field2.key],
|
|
7235
|
+
document: row.document,
|
|
7236
|
+
recordId: row.id,
|
|
7237
|
+
withheld: withheldNoticeOf(row.hidden, field2.key),
|
|
7238
|
+
...format ? { format } : {}
|
|
7239
|
+
}
|
|
7240
|
+
) }),
|
|
7241
|
+
onAskWhoChanged ? /* @__PURE__ */ jsx28(WhoBadge, { field: field2, row, onAskWhoChanged: () => {
|
|
7242
|
+
}, onPressedTwice: () => {
|
|
7243
|
+
} }) : null
|
|
7244
|
+
] }),
|
|
7240
7245
|
/* @__PURE__ */ jsx28(
|
|
7241
7246
|
OpenCell,
|
|
7242
7247
|
{
|
|
@@ -23043,8 +23048,11 @@ function GridBody({
|
|
|
23043
23048
|
const rowMemoryKey = `${tableId}:${embedded ? "embedded" : "page"}:${openingKey}`;
|
|
23044
23049
|
const rowsAnswered = Boolean(records.data) && !records.loading && !table.loading && !fields.loading;
|
|
23045
23050
|
useEffect47(() => {
|
|
23046
|
-
if (rowsAnswered)
|
|
23047
|
-
|
|
23051
|
+
if (rowsAnswered) {
|
|
23052
|
+
rememberRowCount(rowMemoryKey, rows.length);
|
|
23053
|
+
if (!embedded) rememberRowCount(`${tableId}:page:last`, rows.length);
|
|
23054
|
+
}
|
|
23055
|
+
}, [rowsAnswered, rowMemoryKey, rows.length, embedded, tableId]);
|
|
23048
23056
|
if (table.error) return /* @__PURE__ */ jsx70(RefusalNotice, { error: table.error, className });
|
|
23049
23057
|
if (fields.error) return /* @__PURE__ */ jsx70(RefusalNotice, { error: fields.error, className });
|
|
23050
23058
|
const nothingToShowYet = table.loading || fields.loading || !rights.known || records.loading && rows.length === 0 || // The page read has neither answered nor refused: nothing has been said yet, so nothing is empty.
|
|
@@ -48422,7 +48430,17 @@ function TablePage({
|
|
|
48422
48430
|
children: cameFromLine(cameFrom, activeGroupField ?? null, askedInWords)
|
|
48423
48431
|
}
|
|
48424
48432
|
) : null,
|
|
48425
|
-
faceUnknown ?
|
|
48433
|
+
faceUnknown ? (
|
|
48434
|
+
/* REVIEW-FIX 10: a full page paints the rows this table showed last time (else fills). */
|
|
48435
|
+
/* @__PURE__ */ jsx155(
|
|
48436
|
+
RecordsSkeleton,
|
|
48437
|
+
{
|
|
48438
|
+
layout: skeletonLayoutFor(shownLayout),
|
|
48439
|
+
embedded,
|
|
48440
|
+
...embedded ? {} : { rows: rememberedRowCount(`${tableId}:page:last`, 100, "fill") }
|
|
48441
|
+
}
|
|
48442
|
+
)
|
|
48443
|
+
) : /* @__PURE__ */ jsx155(
|
|
48426
48444
|
ViewSwitcher,
|
|
48427
48445
|
{
|
|
48428
48446
|
chooser: false,
|