@ai-matrx/records-ui 0.116.65 → 0.116.67
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 +11 -1
- package/dist/{chunk-GLSY7IZC.js → chunk-57CGHFPO.js} +12 -2
- package/dist/{chunk-GLSY7IZC.js.map → chunk-57CGHFPO.js.map} +1 -1
- package/dist/data-source.cjs +11 -1
- package/dist/data-source.cjs.map +1 -1
- package/dist/data-source.js +11 -1
- package/dist/data-source.js.map +1 -1
- package/dist/helpers.cjs +11 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +11 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +17 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -7939,6 +7939,12 @@ interface SectionCardProps {
|
|
|
7939
7939
|
}) => void) | undefined;
|
|
7940
7940
|
/** Never write, whatever the person's level. */
|
|
7941
7941
|
readOnly?: boolean | undefined;
|
|
7942
|
+
/**
|
|
7943
|
+
* A table with no rows: "line" (default) says "Nothing here yet."; "quiet" draws the header and its Add alone,
|
|
7944
|
+
* for a page of many sections that start empty together (a design system board an AI fills), so the same
|
|
7945
|
+
* sentence is never repeated down the page.
|
|
7946
|
+
*/
|
|
7947
|
+
empty?: "line" | "quiet" | undefined;
|
|
7942
7948
|
className?: string | undefined;
|
|
7943
7949
|
}
|
|
7944
7950
|
/** The columns the card draws, from what the host named and what the table holds. */
|
package/dist/index.d.ts
CHANGED
|
@@ -7939,6 +7939,12 @@ interface SectionCardProps {
|
|
|
7939
7939
|
}) => void) | undefined;
|
|
7940
7940
|
/** Never write, whatever the person's level. */
|
|
7941
7941
|
readOnly?: boolean | undefined;
|
|
7942
|
+
/**
|
|
7943
|
+
* A table with no rows: "line" (default) says "Nothing here yet."; "quiet" draws the header and its Add alone,
|
|
7944
|
+
* for a page of many sections that start empty together (a design system board an AI fills), so the same
|
|
7945
|
+
* sentence is never repeated down the page.
|
|
7946
|
+
*/
|
|
7947
|
+
empty?: "line" | "quiet" | undefined;
|
|
7942
7948
|
className?: string | undefined;
|
|
7943
7949
|
}
|
|
7944
7950
|
/** The columns the card draws, from what the host named and what the table holds. */
|
package/dist/index.js
CHANGED
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
withoutAddition,
|
|
188
188
|
withoutLeadingBlank,
|
|
189
189
|
workedOutErrorFor
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-57CGHFPO.js";
|
|
191
191
|
import {
|
|
192
192
|
CHART_PLOT_PX,
|
|
193
193
|
EMBEDDED_ROW_PX,
|
|
@@ -42884,7 +42884,7 @@ function EntitySectionBody(props) {
|
|
|
42884
42884
|
"Add"
|
|
42885
42885
|
] }) : null
|
|
42886
42886
|
] }),
|
|
42887
|
-
entity.error ? /* @__PURE__ */ jsx137("p", { className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: entity.error }) : entity.loading && entity.rows.length === 0 ? /* @__PURE__ */ jsx137("div", { className: "flex flex-col gap-1.5 px-5 pb-5 sm:px-6", "aria-busy": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx137("div", { className: "h-9 rounded-md bg-muted" }, i)) }) : entity.rows.length === 0 ? /* @__PURE__ */ jsx137(
|
|
42887
|
+
entity.error ? /* @__PURE__ */ jsx137("p", { className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: entity.error }) : entity.loading && entity.rows.length === 0 ? /* @__PURE__ */ jsx137("div", { className: "flex flex-col gap-1.5 px-5 pb-5 sm:px-6", "aria-busy": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx137("div", { className: "h-9 rounded-md bg-muted" }, i)) }) : entity.rows.length === 0 ? /* @__PURE__ */ jsx137(SectionEmpty, { empty: props.empty }) : /* @__PURE__ */ jsx137("div", { className: "-mb-px overflow-x-auto", children: groups.map((group) => /* @__PURE__ */ jsxs129("div", { "data-records-section-group": group.key, children: [
|
|
42888
42888
|
cols.group ? /* @__PURE__ */ jsxs129("div", { className: "flex items-center justify-between border-y border-border px-5 py-1 sm:px-6", children: [
|
|
42889
42889
|
/* @__PURE__ */ jsx137("span", { className: "text-xs font-semibold text-foreground", children: group.key || "No group" }),
|
|
42890
42890
|
mayAdd ? /* @__PURE__ */ jsx137(Button103, { type: "button", variant: "ghost", size: "sm", "aria-label": `Add to ${group.key || "no group"}`, onClick: () => setAdding(group.key), children: /* @__PURE__ */ jsx137(PlusIcon, { className: "h-4 w-4" }) }) : null
|
|
@@ -42933,6 +42933,10 @@ function EntitySectionBody(props) {
|
|
|
42933
42933
|
)
|
|
42934
42934
|
] });
|
|
42935
42935
|
}
|
|
42936
|
+
function SectionEmpty({ empty }) {
|
|
42937
|
+
if (empty === "quiet") return /* @__PURE__ */ jsx137("div", { "data-records-section-empty": "quiet", className: "pb-2" });
|
|
42938
|
+
return /* @__PURE__ */ jsx137("p", { "data-records-section-empty": "line", className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: "Nothing here yet." });
|
|
42939
|
+
}
|
|
42936
42940
|
|
|
42937
42941
|
// src/SectionCard.tsx
|
|
42938
42942
|
import { Fragment as Fragment59, jsx as jsx138, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
@@ -43407,7 +43411,7 @@ function TableSectionCard(props) {
|
|
|
43407
43411
|
] }),
|
|
43408
43412
|
mayWrite && nameField ? /* @__PURE__ */ jsx138(Button104, { type: "button", variant: "outline", icon: /* @__PURE__ */ jsx138(PlusIcon2, {}), onClick: () => setAdding(groups[groups.length - 1]?.key ?? UNGROUPED2), children: "Add" }) : null
|
|
43409
43413
|
] }),
|
|
43410
|
-
refused ? /* @__PURE__ */ jsx138("p", { className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: refusalSentence(refused) }) : !fieldsRead.data || page.loading && rows.length === 0 ? /* @__PURE__ */ jsx138("div", { className: "flex flex-col gap-1.5 px-5 pb-5 sm:px-6", "aria-busy": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx138("div", { className: "h-9 rounded-md bg-muted" }, i)) }) : rows.length === 0 ? /* @__PURE__ */ jsx138(
|
|
43414
|
+
refused ? /* @__PURE__ */ jsx138("p", { className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: refusalSentence(refused) }) : !fieldsRead.data || page.loading && rows.length === 0 ? /* @__PURE__ */ jsx138("div", { className: "flex flex-col gap-1.5 px-5 pb-5 sm:px-6", "aria-busy": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx138("div", { className: "h-9 rounded-md bg-muted" }, i)) }) : rows.length === 0 ? /* @__PURE__ */ jsx138(SectionEmpty, { empty: props.empty }) : /* @__PURE__ */ jsx138("div", { className: cn76("-mb-px", !narrow && "overflow-x-auto"), children: groups.map((group) => /* @__PURE__ */ jsxs130("div", { "data-records-section-group": group.key, className: "", children: [
|
|
43411
43415
|
cols.group ? /* @__PURE__ */ jsxs130("div", { className: "flex items-center justify-between border-y border-border px-5 py-1 sm:px-6", children: [
|
|
43412
43416
|
/* @__PURE__ */ jsx138("span", { className: "text-xs font-semibold text-foreground", children: group.key || "No group" }),
|
|
43413
43417
|
mayWrite ? /* @__PURE__ */ jsx138(Button104, { type: "button", variant: "quiet", icon: /* @__PURE__ */ jsx138(PlusIcon2, {}), "aria-label": `Add to ${group.key || "no group"}`, onClick: () => setAdding(group.key) }) : null
|