@homebound/beam 4.12.1 → 4.13.1
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 +47 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +47 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -14393,23 +14393,32 @@ function GridTable(props) {
|
|
|
14393
14393
|
}
|
|
14394
14394
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TableStateContext.Provider, { value: rowStateContext, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(PresentationProvider, { fieldProps, wrap: style?.presentationSettings?.wrap, children: [
|
|
14395
14395
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ref: resizeRef, ...(0, import_runtime42.trussProps)(getTableRefWidthStyles(as === "virtual", inDocumentScrollLayout)), ...tid.probe }),
|
|
14396
|
-
loading && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...(0, import_runtime42.trussProps)({
|
|
14397
|
-
position: "fixed",
|
|
14398
|
-
top: "top0",
|
|
14399
|
-
right: "r_0",
|
|
14400
|
-
bottom: "bot_0",
|
|
14401
|
-
left: "l_0",
|
|
14402
|
-
display: "df",
|
|
14403
|
-
alignItems: "aic",
|
|
14404
|
-
justifyContent: "jcc",
|
|
14405
|
-
pointerEvents: "pen",
|
|
14406
|
-
zIndex: ["z_var", {
|
|
14407
|
-
"--zIndex": (0, import_runtime42.maybeCssVar)(zIndices.tableLoadingOverlay)
|
|
14408
|
-
}]
|
|
14409
|
-
}), ...tid.loadingOverlay, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Loader, { ...tid.loadingSpinner }) }),
|
|
14396
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...(0, import_runtime42.trussProps)(loadingOverlayCss), ...tid.loadingOverlay, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Loader, { ...tid.loadingSpinner }) }),
|
|
14410
14397
|
as === "card" ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition, loading }) : _as === "virtual" ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(VirtualGridTableView, { style: tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, persistScrollPosition, loading }) : renders[_as](tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, loading, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
14411
14398
|
] }) });
|
|
14412
14399
|
}
|
|
14400
|
+
var loadingOverlayCss = {
|
|
14401
|
+
position: "fixed",
|
|
14402
|
+
top: ["top_var", {
|
|
14403
|
+
"--top": (0, import_runtime42.maybeCssVar)(__maybeInc12(stickyTableHeaderOffset()))
|
|
14404
|
+
}],
|
|
14405
|
+
bottom: ["bottom_var", {
|
|
14406
|
+
"--bottom": (0, import_runtime42.maybeCssVar)(__maybeInc12(getFloatingBottomOffset()))
|
|
14407
|
+
}],
|
|
14408
|
+
left: ["left_var", {
|
|
14409
|
+
"--left": (0, import_runtime42.maybeCssVar)(__maybeInc12(documentScrollChromeLeft()))
|
|
14410
|
+
}],
|
|
14411
|
+
width: ["w_var", {
|
|
14412
|
+
"--width": (0, import_runtime42.maybeCssVar)(__maybeInc12(`calc(${documentScrollChromeWidth()} - var(${beamRightPaneWidthVar}, 0px))`))
|
|
14413
|
+
}],
|
|
14414
|
+
display: "df",
|
|
14415
|
+
alignItems: "aic",
|
|
14416
|
+
justifyContent: "jcc",
|
|
14417
|
+
pointerEvents: "pen",
|
|
14418
|
+
zIndex: ["z_var", {
|
|
14419
|
+
"--zIndex": (0, import_runtime42.maybeCssVar)(zIndices.tableLoadingOverlay)
|
|
14420
|
+
}]
|
|
14421
|
+
};
|
|
14413
14422
|
var renders = {
|
|
14414
14423
|
table: renderTable,
|
|
14415
14424
|
div: renderDiv
|
|
@@ -15344,10 +15353,11 @@ var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
|
15344
15353
|
function AiLoadingPanel(props) {
|
|
15345
15354
|
const {
|
|
15346
15355
|
title = "Importing Details...",
|
|
15347
|
-
|
|
15348
|
-
|
|
15356
|
+
omitBg = false,
|
|
15357
|
+
progressText
|
|
15349
15358
|
} = props;
|
|
15350
15359
|
const tid = useTestIds(props, "aiLoadingPanel");
|
|
15360
|
+
const message = props.message ?? `${progressText === void 0 ? "This process can take a few minutes. " : ""}Feel free to keep working in another tab. Once imported, you may edit or add to content before saving.`;
|
|
15351
15361
|
const card = (
|
|
15352
15362
|
// `status` rather than `alert` so assistive tech waits for a pause instead of interrupting, and
|
|
15353
15363
|
// `aria-busy` so it knows the surrounding content is still settling.
|
|
@@ -15362,12 +15372,31 @@ function AiLoadingPanel(props) {
|
|
|
15362
15372
|
"--color": "var(--b-on-surface)"
|
|
15363
15373
|
}],
|
|
15364
15374
|
textAlign: "tac"
|
|
15365
|
-
}), ...tid.message, children: message })
|
|
15375
|
+
}), ...tid.message, children: message }),
|
|
15376
|
+
progressText !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { ...(0, import_runtime51.trussProps)({
|
|
15377
|
+
width: "w100",
|
|
15378
|
+
display: "df",
|
|
15379
|
+
alignItems: "aic",
|
|
15380
|
+
justifyContent: "jcc",
|
|
15381
|
+
gap: "g_1",
|
|
15382
|
+
marginTop: "mt1",
|
|
15383
|
+
paddingTop: "pt2",
|
|
15384
|
+
borderTopStyle: "bts_solid",
|
|
15385
|
+
borderTopWidth: "btw_1px",
|
|
15386
|
+
borderColor: ["bc_var", {
|
|
15387
|
+
"--borderColor": "var(--b-surface-separator)"
|
|
15388
|
+
}],
|
|
15389
|
+
fontWeight: "fw4",
|
|
15390
|
+
fontSize: "fz_12px",
|
|
15391
|
+
lineHeight: "lh_16px"
|
|
15392
|
+
}), children: [
|
|
15393
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { icon: "time", inc: 2 }),
|
|
15394
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { ...tid.progressText, children: progressText })
|
|
15395
|
+
] })
|
|
15366
15396
|
] }) })
|
|
15367
15397
|
);
|
|
15368
15398
|
return omitBg ? card : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AiPanel, { padding: "lg", ...tid, children: card });
|
|
15369
15399
|
}
|
|
15370
|
-
var defaultMessage = "This process can take a few minutes. Feel free to keep working in another tab. Once imported, you may edit or add to content before saving.";
|
|
15371
15400
|
|
|
15372
15401
|
// src/components/AiSlimBanner.tsx
|
|
15373
15402
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|