@homebound/beam 3.37.0 → 3.38.0
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/dist/index.cjs +29 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +29 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16564,6 +16564,7 @@ function TableCard(props) {
|
|
|
16564
16564
|
let title;
|
|
16565
16565
|
let eyebrow;
|
|
16566
16566
|
let badge;
|
|
16567
|
+
let badgeTags;
|
|
16567
16568
|
let status;
|
|
16568
16569
|
const dataBlocks = [];
|
|
16569
16570
|
let progress;
|
|
@@ -16581,6 +16582,7 @@ function TableCard(props) {
|
|
|
16581
16582
|
break;
|
|
16582
16583
|
case "badge":
|
|
16583
16584
|
badge = slot.text;
|
|
16585
|
+
badgeTags = slot.tags;
|
|
16584
16586
|
break;
|
|
16585
16587
|
case "status":
|
|
16586
16588
|
status = slot.tag;
|
|
@@ -16597,7 +16599,7 @@ function TableCard(props) {
|
|
|
16597
16599
|
}
|
|
16598
16600
|
}
|
|
16599
16601
|
if (!title) return null;
|
|
16600
|
-
const card = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TableCardView, { ...tid, imgSrc: rs.row.imgSrc ?? "", title, eyebrow, badge, status, data: dataBlocks, progress });
|
|
16602
|
+
const card = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TableCardView, { ...tid, imgSrc: rs.row.imgSrc ?? "", title, eyebrow, badge, badgeTags, status, data: dataBlocks, progress });
|
|
16601
16603
|
const to = rowStyle?.rowLink?.(rs.row);
|
|
16602
16604
|
if (to) {
|
|
16603
16605
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_router_dom4.Link, { to, ...(0, import_runtime55.mergeProps)(navLink, void 0, {
|
|
@@ -16616,6 +16618,7 @@ function TableCardView(props) {
|
|
|
16616
16618
|
imgSrc,
|
|
16617
16619
|
eyebrow,
|
|
16618
16620
|
badge,
|
|
16621
|
+
badgeTags,
|
|
16619
16622
|
data,
|
|
16620
16623
|
status,
|
|
16621
16624
|
progress
|
|
@@ -16649,7 +16652,10 @@ function TableCardView(props) {
|
|
|
16649
16652
|
title,
|
|
16650
16653
|
" "
|
|
16651
16654
|
] }),
|
|
16652
|
-
badge && /* @__PURE__ */ (0, import_jsx_runtime86.
|
|
16655
|
+
(badge || badgeTags?.length) && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "dif aic gap1 fs0", ...tid.badge, children: [
|
|
16656
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "fw4 fz_14px lh_20px wsnw", children: badge }),
|
|
16657
|
+
badgeTags?.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Tag, { ...tag }, tag.text))
|
|
16658
|
+
] })
|
|
16653
16659
|
] })
|
|
16654
16660
|
] }),
|
|
16655
16661
|
data && data?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dl", { className: "dg gtc_repeat_2_minmax_0_1fr fw4 fz_14px lh_20px", children: data.map((d, idx) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { ...(0, import_runtime55.trussProps)({
|
|
@@ -16989,13 +16995,12 @@ function GridTable(props) {
|
|
|
16989
16995
|
}, [contentWidth, inDocumentScrollLayout, style, tableWidth]);
|
|
16990
16996
|
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(TableStateContext.Provider, { value: rowStateContext, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(PresentationProvider, { fieldProps, wrap: style?.presentationSettings?.wrap, children: [
|
|
16991
16997
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { ref: resizeRef, ...(0, import_runtime56.trussProps)(getTableRefWidthStyles(as === "virtual", inDocumentScrollLayout)) }),
|
|
16992
|
-
as === "card" ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition }) : renders[_as](tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
16998
|
+
as === "card" ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition }) : _as === "virtual" ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(VirtualGridTableView, { style: tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, persistScrollPosition }) : renders[_as](tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
16993
16999
|
] }) });
|
|
16994
17000
|
}
|
|
16995
17001
|
var renders = {
|
|
16996
17002
|
table: renderTable,
|
|
16997
|
-
div: renderDiv
|
|
16998
|
-
virtual: renderVirtual
|
|
17003
|
+
div: renderDiv
|
|
16999
17004
|
};
|
|
17000
17005
|
function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, _virtuosoRef, _virtuosoRangeRef, tableHeadRows, stickyOffset, _infiniteScroll, tableContainerRef, _persistScrollPosition) {
|
|
17001
17006
|
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { ref: tableContainerRef, ...(0, import_runtime56.trussProps)({
|
|
@@ -17090,7 +17095,23 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, pinn
|
|
|
17090
17095
|
] })
|
|
17091
17096
|
] });
|
|
17092
17097
|
}
|
|
17093
|
-
function
|
|
17098
|
+
function VirtualGridTableView({
|
|
17099
|
+
style,
|
|
17100
|
+
id,
|
|
17101
|
+
columns,
|
|
17102
|
+
visibleDataRows,
|
|
17103
|
+
keptSelectedRows,
|
|
17104
|
+
pinnedRows,
|
|
17105
|
+
firstRowMessage,
|
|
17106
|
+
stickyHeader,
|
|
17107
|
+
xss,
|
|
17108
|
+
virtuosoRef,
|
|
17109
|
+
virtuosoRangeRef,
|
|
17110
|
+
tableHeadRows,
|
|
17111
|
+
stickyOffset,
|
|
17112
|
+
infiniteScroll,
|
|
17113
|
+
persistScrollPosition = infiniteScroll === void 0
|
|
17114
|
+
}) {
|
|
17094
17115
|
const customScrollParent = useVirtualizedScrollParent();
|
|
17095
17116
|
const inDocumentScrollLayout = useDocumentScrollLayout();
|
|
17096
17117
|
const [fetchMoreInProgress, setFetchMoreInProgress] = (0, import_react81.useState)(false);
|
|
@@ -24579,8 +24600,8 @@ function cardTitleSlot(text) {
|
|
|
24579
24600
|
function cardEyebrowSlot(text) {
|
|
24580
24601
|
return { kind: "eyebrow", text };
|
|
24581
24602
|
}
|
|
24582
|
-
function cardBadgeSlot(text) {
|
|
24583
|
-
return { kind: "badge", text };
|
|
24603
|
+
function cardBadgeSlot(text, tags) {
|
|
24604
|
+
return { kind: "badge", text, tags };
|
|
24584
24605
|
}
|
|
24585
24606
|
function cardStatusSlot(tag) {
|
|
24586
24607
|
return { kind: "status", tag };
|