@natoora-libs/core 0.2.12-dev-doug-2 → 0.2.12-dev-doug-4
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.
|
@@ -6559,7 +6559,6 @@ var RenderContentList = ({
|
|
|
6559
6559
|
if (timeoutScrolling.current) {
|
|
6560
6560
|
clearTimeout(timeoutScrolling.current);
|
|
6561
6561
|
}
|
|
6562
|
-
;
|
|
6563
6562
|
timeoutScrolling.current = setTimeout(() => {
|
|
6564
6563
|
isScrolling.current = false;
|
|
6565
6564
|
}, 1e3);
|
|
@@ -7254,7 +7253,8 @@ var SearchHeader = (0, import_react33.memo)(
|
|
|
7254
7253
|
);
|
|
7255
7254
|
|
|
7256
7255
|
// src/components/SectionName/SectionName.tsx
|
|
7257
|
-
var
|
|
7256
|
+
var import_History = __toESM(require("@mui/icons-material/History"), 1);
|
|
7257
|
+
var import_Info = __toESM(require("@mui/icons-material/Info"), 1);
|
|
7258
7258
|
var import_material61 = require("@mui/material");
|
|
7259
7259
|
var import_mui48 = require("tss-react/mui");
|
|
7260
7260
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
@@ -7300,20 +7300,32 @@ var SectionName = ({
|
|
|
7300
7300
|
openHistoryLog
|
|
7301
7301
|
}) => {
|
|
7302
7302
|
const { classes } = useStyles43();
|
|
7303
|
+
const handleScroll = (e) => {
|
|
7304
|
+
e.preventDefault();
|
|
7305
|
+
if (sectionId) {
|
|
7306
|
+
const targetId = sectionId.startsWith("#") ? sectionId.slice(1) : sectionId;
|
|
7307
|
+
const element = document.getElementById(targetId);
|
|
7308
|
+
if (element) {
|
|
7309
|
+
element.scrollIntoView({
|
|
7310
|
+
behavior: "smooth",
|
|
7311
|
+
block: "start"
|
|
7312
|
+
});
|
|
7313
|
+
}
|
|
7314
|
+
}
|
|
7315
|
+
};
|
|
7303
7316
|
return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.container, children: [
|
|
7304
7317
|
/* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.titleContainer, children: [
|
|
7305
7318
|
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7306
7319
|
import_material61.Typography,
|
|
7307
7320
|
{
|
|
7308
7321
|
variant: "h5",
|
|
7309
|
-
|
|
7310
|
-
href: sectionId,
|
|
7322
|
+
onClick: handleScroll,
|
|
7311
7323
|
className: classes.typography,
|
|
7312
7324
|
children: name
|
|
7313
7325
|
}
|
|
7314
7326
|
),
|
|
7315
7327
|
tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7316
|
-
|
|
7328
|
+
import_Info.default,
|
|
7317
7329
|
{
|
|
7318
7330
|
fontSize: "small",
|
|
7319
7331
|
"data-testid": "InfoIcon",
|
|
@@ -7336,7 +7348,7 @@ var SectionName = ({
|
|
|
7336
7348
|
}
|
|
7337
7349
|
) : null,
|
|
7338
7350
|
openHistoryLog && buttonText && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Divider, { orientation: "vertical", sx: { height: "24px" } }),
|
|
7339
|
-
openHistoryLog && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.IconButton, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7351
|
+
openHistoryLog && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.IconButton, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_History.default, {}) })
|
|
7340
7352
|
] })
|
|
7341
7353
|
] });
|
|
7342
7354
|
};
|
|
@@ -9441,7 +9453,7 @@ var TableDesktopToolbar = ({
|
|
|
9441
9453
|
|
|
9442
9454
|
// src/components/TableHeader/TableHeader.tsx
|
|
9443
9455
|
var import_react48 = require("react");
|
|
9444
|
-
var
|
|
9456
|
+
var import_icons_material10 = require("@mui/icons-material");
|
|
9445
9457
|
var import_material80 = require("@mui/material");
|
|
9446
9458
|
var import_mui53 = require("tss-react/mui");
|
|
9447
9459
|
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
@@ -9494,7 +9506,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
9494
9506
|
{
|
|
9495
9507
|
className: classes.sortLabel,
|
|
9496
9508
|
direction: cell?.direction || "asc",
|
|
9497
|
-
IconComponent:
|
|
9509
|
+
IconComponent: import_icons_material10.ImportExport,
|
|
9498
9510
|
onClick: () => handleSortClick(cell),
|
|
9499
9511
|
children: cell.label
|
|
9500
9512
|
}
|