@natoora-libs/core 0.2.12-dev-doug-3 → 0.2.12-dev-po
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/{TableDesktop-BrpwT-lM.d.cts → TableDesktop-Z0KE59L4.d.cts} +0 -1
- package/dist/{TableDesktop-BrpwT-lM.d.ts → TableDesktop-Z0KE59L4.d.ts} +0 -1
- package/dist/components/index.cjs +44 -89
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +6 -8
- package/dist/components/index.d.ts +6 -8
- package/dist/components/index.js +36 -80
- package/dist/components/index.js.map +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -55,7 +55,6 @@ type TableDesktopToolbarProps = {
|
|
|
55
55
|
disableBulkChangesMode?: boolean;
|
|
56
56
|
isBulkChangesMode: boolean;
|
|
57
57
|
onChangeBulkChangesMode: (checked: boolean) => void;
|
|
58
|
-
onActivateBulkChangesMode?: () => void;
|
|
59
58
|
renderExportCsvDialog?: (props: ExportCsvDialogProps) => ReactNode;
|
|
60
59
|
renderBulkChangesDialog?: (props: BulkChangesDialogProps) => ReactNode;
|
|
61
60
|
renderTableColumnConfigurationMenu?: (props: TableColumnConfigurationMenuProps) => ReactNode;
|
|
@@ -55,7 +55,6 @@ type TableDesktopToolbarProps = {
|
|
|
55
55
|
disableBulkChangesMode?: boolean;
|
|
56
56
|
isBulkChangesMode: boolean;
|
|
57
57
|
onChangeBulkChangesMode: (checked: boolean) => void;
|
|
58
|
-
onActivateBulkChangesMode?: () => void;
|
|
59
58
|
renderExportCsvDialog?: (props: ExportCsvDialogProps) => ReactNode;
|
|
60
59
|
renderBulkChangesDialog?: (props: BulkChangesDialogProps) => ReactNode;
|
|
61
60
|
renderTableColumnConfigurationMenu?: (props: TableColumnConfigurationMenuProps) => ReactNode;
|
|
@@ -480,9 +480,7 @@ var AlertDialog = ({
|
|
|
480
480
|
rejectCopy,
|
|
481
481
|
acceptCopy,
|
|
482
482
|
content,
|
|
483
|
-
disabledContentPadding
|
|
484
|
-
disableEnforceFocus,
|
|
485
|
-
disableRestoreFocus
|
|
483
|
+
disabledContentPadding
|
|
486
484
|
}) => {
|
|
487
485
|
const { classes } = useStyles();
|
|
488
486
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
@@ -493,8 +491,6 @@ var AlertDialog = ({
|
|
|
493
491
|
maxWidth,
|
|
494
492
|
fullScreen,
|
|
495
493
|
fullWidth,
|
|
496
|
-
disableEnforceFocus,
|
|
497
|
-
disableRestoreFocus,
|
|
498
494
|
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_material2.Box, { children: [
|
|
499
495
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_material2.Box, { className: classes.topSection, children: [
|
|
500
496
|
alertTitle ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Typography, { variant: "h5", className: classes.title, children: alertTitle }) : null,
|
|
@@ -3563,7 +3559,8 @@ var RoundButton = ({
|
|
|
3563
3559
|
knife: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(IconKnife_default, {}),
|
|
3564
3560
|
bicycle: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(IconBicycle_default, {}),
|
|
3565
3561
|
heart: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(IconHeart_default, {}),
|
|
3566
|
-
airplane: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(IconAirplane_default, {})
|
|
3562
|
+
airplane: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(IconAirplane_default, {}),
|
|
3563
|
+
swapHoriz: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_icons_material5.SwapHoriz, { fontSize: iconSize })
|
|
3567
3564
|
};
|
|
3568
3565
|
const filteredSize = size === "double" ? void 0 : size;
|
|
3569
3566
|
const handleClick = (e) => {
|
|
@@ -5148,10 +5145,12 @@ var useStyles27 = (0, import_mui29.makeStyles)()((theme) => ({
|
|
|
5148
5145
|
borderTop: `1px solid ${colors.neutral400}`,
|
|
5149
5146
|
width: "100%",
|
|
5150
5147
|
height: footerHeight,
|
|
5151
|
-
padding: theme.spacing(0, 2)
|
|
5148
|
+
padding: theme.spacing(0, 2),
|
|
5149
|
+
zIndex: 999
|
|
5152
5150
|
},
|
|
5153
5151
|
fixedOffset: {
|
|
5154
|
-
height: footerHeight
|
|
5152
|
+
height: footerHeight,
|
|
5153
|
+
backgroundColor: "white"
|
|
5155
5154
|
}
|
|
5156
5155
|
}));
|
|
5157
5156
|
var FixedFooter = ({ justifyContent, children }) => {
|
|
@@ -5846,7 +5845,8 @@ var useStyles34 = (0, import_mui36.makeStyles)()((theme) => ({
|
|
|
5846
5845
|
left: 0
|
|
5847
5846
|
},
|
|
5848
5847
|
fixedOffset: {
|
|
5849
|
-
height: paginationHeight
|
|
5848
|
+
height: paginationHeight,
|
|
5849
|
+
backgroundColor: "white"
|
|
5850
5850
|
}
|
|
5851
5851
|
}));
|
|
5852
5852
|
var PaginationForTable = ({
|
|
@@ -6508,7 +6508,7 @@ var RenderAvatar_default = RenderAvatar;
|
|
|
6508
6508
|
|
|
6509
6509
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
6510
6510
|
var import_react29 = require("react");
|
|
6511
|
-
var
|
|
6511
|
+
var import_icons_material8 = require("@mui/icons-material");
|
|
6512
6512
|
var import_material53 = require("@mui/material");
|
|
6513
6513
|
var import_mui41 = require("tss-react/mui");
|
|
6514
6514
|
|
|
@@ -6540,32 +6540,8 @@ var RenderContentList = ({
|
|
|
6540
6540
|
const { classes } = useStyles36();
|
|
6541
6541
|
const [active, setActive] = (0, import_react29.useState)(activeSection);
|
|
6542
6542
|
const observer = (0, import_react29.useRef)(null);
|
|
6543
|
-
const isScrolling = (0, import_react29.useRef)(false);
|
|
6544
|
-
const timeoutScrolling = (0, import_react29.useRef)(null);
|
|
6545
6543
|
(0, import_react29.useEffect)(() => {
|
|
6546
|
-
|
|
6547
|
-
return void 0;
|
|
6548
|
-
}
|
|
6549
|
-
isScrolling.current = true;
|
|
6550
|
-
const targetId = transformNameToID(activeSection);
|
|
6551
|
-
setActive(targetId);
|
|
6552
|
-
const element = document.getElementById(targetId);
|
|
6553
|
-
if (element) {
|
|
6554
|
-
element.scrollIntoView({
|
|
6555
|
-
behavior: "smooth",
|
|
6556
|
-
block: "start"
|
|
6557
|
-
});
|
|
6558
|
-
}
|
|
6559
|
-
if (timeoutScrolling.current) {
|
|
6560
|
-
clearTimeout(timeoutScrolling.current);
|
|
6561
|
-
}
|
|
6562
|
-
;
|
|
6563
|
-
timeoutScrolling.current = setTimeout(() => {
|
|
6564
|
-
isScrolling.current = false;
|
|
6565
|
-
}, 1e3);
|
|
6566
|
-
return () => {
|
|
6567
|
-
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
6568
|
-
};
|
|
6544
|
+
setActive(activeSection);
|
|
6569
6545
|
}, [activeSection]);
|
|
6570
6546
|
(0, import_react29.useEffect)(() => {
|
|
6571
6547
|
const sections = items.map((item) => ({
|
|
@@ -6575,14 +6551,9 @@ var RenderContentList = ({
|
|
|
6575
6551
|
if (observer.current) {
|
|
6576
6552
|
observer.current.disconnect();
|
|
6577
6553
|
}
|
|
6578
|
-
if (sections.length === 0)
|
|
6579
|
-
return void 0;
|
|
6580
|
-
}
|
|
6554
|
+
if (sections.length === 0) return;
|
|
6581
6555
|
observer.current = new IntersectionObserver(
|
|
6582
6556
|
(entries) => {
|
|
6583
|
-
if (isScrolling.current) {
|
|
6584
|
-
return;
|
|
6585
|
-
}
|
|
6586
6557
|
const visibleSection = entries.find((entry) => entry.isIntersecting);
|
|
6587
6558
|
if (visibleSection) {
|
|
6588
6559
|
setActive(visibleSection.target.id);
|
|
@@ -6601,21 +6572,6 @@ var RenderContentList = ({
|
|
|
6601
6572
|
observer.current?.disconnect();
|
|
6602
6573
|
};
|
|
6603
6574
|
}, [items]);
|
|
6604
|
-
const handleMenuClick = (id) => {
|
|
6605
|
-
isScrolling.current = true;
|
|
6606
|
-
setActive(id);
|
|
6607
|
-
const element = document.getElementById(id);
|
|
6608
|
-
if (element) {
|
|
6609
|
-
element.scrollIntoView({
|
|
6610
|
-
behavior: "smooth",
|
|
6611
|
-
block: "start"
|
|
6612
|
-
});
|
|
6613
|
-
}
|
|
6614
|
-
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
6615
|
-
timeoutScrolling.current = setTimeout(() => {
|
|
6616
|
-
isScrolling.current = false;
|
|
6617
|
-
}, 1e3);
|
|
6618
|
-
};
|
|
6619
6575
|
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6620
6576
|
import_material53.List,
|
|
6621
6577
|
{
|
|
@@ -6629,10 +6585,19 @@ var RenderContentList = ({
|
|
|
6629
6585
|
{
|
|
6630
6586
|
selected: active === id,
|
|
6631
6587
|
classes: { root: classes.root, selected: classes.selected },
|
|
6632
|
-
onClick: () =>
|
|
6588
|
+
onClick: () => {
|
|
6589
|
+
setActive(id);
|
|
6590
|
+
const element = document.getElementById(id);
|
|
6591
|
+
if (element) {
|
|
6592
|
+
element.scrollIntoView({
|
|
6593
|
+
behavior: "smooth",
|
|
6594
|
+
block: "start"
|
|
6595
|
+
});
|
|
6596
|
+
}
|
|
6597
|
+
},
|
|
6633
6598
|
children: [
|
|
6634
6599
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_material53.ListItemText, { primary: item }),
|
|
6635
|
-
(warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_material53.Tooltip, { title: warningMessage, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6600
|
+
(warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_material53.Tooltip, { title: warningMessage, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_icons_material8.WarningAmber, { color: "warning" }) })
|
|
6636
6601
|
]
|
|
6637
6602
|
},
|
|
6638
6603
|
id
|
|
@@ -6880,7 +6845,7 @@ var import_mui45 = require("tss-react/mui");
|
|
|
6880
6845
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
6881
6846
|
var import_react31 = require("react");
|
|
6882
6847
|
var React6 = __toESM(require("react"), 1);
|
|
6883
|
-
var
|
|
6848
|
+
var import_icons_material9 = require("@mui/icons-material");
|
|
6884
6849
|
var import_material56 = require("@mui/material");
|
|
6885
6850
|
var import_mui44 = require("tss-react/mui");
|
|
6886
6851
|
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
@@ -6944,7 +6909,7 @@ var SearchWithFilters = ({
|
|
|
6944
6909
|
setSearchText(searchValue);
|
|
6945
6910
|
}, [searchValue]);
|
|
6946
6911
|
return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_material56.Paper, { className: classes.searchContainer, children: [
|
|
6947
|
-
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6912
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_icons_material9.Search, { className: classes.icon, fontSize: "small" }),
|
|
6948
6913
|
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6949
6914
|
import_material56.InputBase,
|
|
6950
6915
|
{
|
|
@@ -6966,7 +6931,7 @@ var SearchWithFilters = ({
|
|
|
6966
6931
|
disabled,
|
|
6967
6932
|
children: [
|
|
6968
6933
|
"Filters",
|
|
6969
|
-
showFilters ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6934
|
+
showFilters ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_icons_material9.ArrowDropUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_icons_material9.ArrowDropDown, {})
|
|
6970
6935
|
]
|
|
6971
6936
|
}
|
|
6972
6937
|
)
|
|
@@ -7041,7 +7006,7 @@ var import_mui47 = require("tss-react/mui");
|
|
|
7041
7006
|
|
|
7042
7007
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
7043
7008
|
var import_react32 = require("react");
|
|
7044
|
-
var
|
|
7009
|
+
var import_icons_material10 = require("@mui/icons-material");
|
|
7045
7010
|
var import_material58 = require("@mui/material");
|
|
7046
7011
|
var import_mui46 = require("tss-react/mui");
|
|
7047
7012
|
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
@@ -7118,9 +7083,9 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7118
7083
|
enterPressedInSearch();
|
|
7119
7084
|
}
|
|
7120
7085
|
};
|
|
7121
|
-
const ArrowIcon = isOpen ?
|
|
7086
|
+
const ArrowIcon = isOpen ? import_icons_material10.ArrowDropUp : import_icons_material10.ArrowDropDown;
|
|
7122
7087
|
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_material58.Paper, { className: classes.c_search, children: [
|
|
7123
|
-
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Box, { className: classes.c_search__icon, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
7088
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Box, { className: classes.c_search__icon, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_icons_material10.Search, { className: classes.icon, fontSize: "small" }) }),
|
|
7124
7089
|
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
7125
7090
|
import_material58.InputBase,
|
|
7126
7091
|
{
|
|
@@ -7254,8 +7219,7 @@ var SearchHeader = (0, import_react33.memo)(
|
|
|
7254
7219
|
);
|
|
7255
7220
|
|
|
7256
7221
|
// src/components/SectionName/SectionName.tsx
|
|
7257
|
-
var
|
|
7258
|
-
var import_Info = __toESM(require("@mui/icons-material/Info"), 1);
|
|
7222
|
+
var import_icons_material11 = require("@mui/icons-material");
|
|
7259
7223
|
var import_material61 = require("@mui/material");
|
|
7260
7224
|
var import_mui48 = require("tss-react/mui");
|
|
7261
7225
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
@@ -7301,32 +7265,20 @@ var SectionName = ({
|
|
|
7301
7265
|
openHistoryLog
|
|
7302
7266
|
}) => {
|
|
7303
7267
|
const { classes } = useStyles43();
|
|
7304
|
-
const handleScroll = (e) => {
|
|
7305
|
-
e.preventDefault();
|
|
7306
|
-
if (sectionId) {
|
|
7307
|
-
const targetId = sectionId.startsWith("#") ? sectionId.slice(1) : sectionId;
|
|
7308
|
-
const element = document.getElementById(targetId);
|
|
7309
|
-
if (element) {
|
|
7310
|
-
element.scrollIntoView({
|
|
7311
|
-
behavior: "smooth",
|
|
7312
|
-
block: "start"
|
|
7313
|
-
});
|
|
7314
|
-
}
|
|
7315
|
-
}
|
|
7316
|
-
};
|
|
7317
7268
|
return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.container, children: [
|
|
7318
7269
|
/* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.titleContainer, children: [
|
|
7319
7270
|
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7320
7271
|
import_material61.Typography,
|
|
7321
7272
|
{
|
|
7322
7273
|
variant: "h5",
|
|
7323
|
-
|
|
7274
|
+
component: "a",
|
|
7275
|
+
href: sectionId,
|
|
7324
7276
|
className: classes.typography,
|
|
7325
7277
|
children: name
|
|
7326
7278
|
}
|
|
7327
7279
|
),
|
|
7328
7280
|
tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7329
|
-
|
|
7281
|
+
import_icons_material11.Info,
|
|
7330
7282
|
{
|
|
7331
7283
|
fontSize: "small",
|
|
7332
7284
|
"data-testid": "InfoIcon",
|
|
@@ -7349,7 +7301,7 @@ var SectionName = ({
|
|
|
7349
7301
|
}
|
|
7350
7302
|
) : null,
|
|
7351
7303
|
openHistoryLog && buttonText && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Divider, { orientation: "vertical", sx: { height: "24px" } }),
|
|
7352
|
-
openHistoryLog && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.IconButton, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7304
|
+
openHistoryLog && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.IconButton, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_icons_material11.History, {}) })
|
|
7353
7305
|
] })
|
|
7354
7306
|
] });
|
|
7355
7307
|
};
|
|
@@ -8497,12 +8449,12 @@ var TableDesktop = ({
|
|
|
8497
8449
|
setIsBulkChangesMode(checked);
|
|
8498
8450
|
if (!checked) {
|
|
8499
8451
|
resetSelectedRows();
|
|
8500
|
-
refetchData?.();
|
|
8501
8452
|
}
|
|
8502
8453
|
};
|
|
8503
8454
|
(0, import_react41.useEffect)(() => {
|
|
8504
8455
|
if (isRowsFromAllPagesSelected) {
|
|
8505
8456
|
selectAllRowsInPage();
|
|
8457
|
+
selectAllRowsInPage();
|
|
8506
8458
|
}
|
|
8507
8459
|
}, [isRowsFromAllPagesSelected, data]);
|
|
8508
8460
|
const renderBody = () => {
|
|
@@ -9221,7 +9173,6 @@ var TableDesktopToolbar = ({
|
|
|
9221
9173
|
disableBulkChangesMode = false,
|
|
9222
9174
|
isBulkChangesMode,
|
|
9223
9175
|
onChangeBulkChangesMode,
|
|
9224
|
-
onActivateBulkChangesMode,
|
|
9225
9176
|
refetchData,
|
|
9226
9177
|
renderExportCsvDialog,
|
|
9227
9178
|
renderBulkChangesDialog,
|
|
@@ -9246,8 +9197,8 @@ var TableDesktopToolbar = ({
|
|
|
9246
9197
|
const handleChangeBulkChangesMode = (_, checked) => {
|
|
9247
9198
|
setBulkChanges([]);
|
|
9248
9199
|
onChangeBulkChangesMode(checked);
|
|
9249
|
-
if (checked) {
|
|
9250
|
-
|
|
9200
|
+
if (!checked) {
|
|
9201
|
+
refetchData?.();
|
|
9251
9202
|
}
|
|
9252
9203
|
};
|
|
9253
9204
|
const handleUpdateEditableCell = ({
|
|
@@ -9454,7 +9405,7 @@ var TableDesktopToolbar = ({
|
|
|
9454
9405
|
|
|
9455
9406
|
// src/components/TableHeader/TableHeader.tsx
|
|
9456
9407
|
var import_react48 = require("react");
|
|
9457
|
-
var
|
|
9408
|
+
var import_icons_material12 = require("@mui/icons-material");
|
|
9458
9409
|
var import_material80 = require("@mui/material");
|
|
9459
9410
|
var import_mui53 = require("tss-react/mui");
|
|
9460
9411
|
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
@@ -9507,7 +9458,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
9507
9458
|
{
|
|
9508
9459
|
className: classes.sortLabel,
|
|
9509
9460
|
direction: cell?.direction || "asc",
|
|
9510
|
-
IconComponent:
|
|
9461
|
+
IconComponent: import_icons_material12.ImportExport,
|
|
9511
9462
|
onClick: () => handleSortClick(cell),
|
|
9512
9463
|
children: cell.label
|
|
9513
9464
|
}
|
|
@@ -9701,7 +9652,11 @@ var useStyles50 = (0, import_mui56.makeStyles)()((theme) => ({
|
|
|
9701
9652
|
topBar: {
|
|
9702
9653
|
display: "flex",
|
|
9703
9654
|
gap: theme.spacing(1),
|
|
9704
|
-
backgroundColor: colors.topBar
|
|
9655
|
+
backgroundColor: colors.topBar,
|
|
9656
|
+
maxWidth: 2e3,
|
|
9657
|
+
margin: "0 auto",
|
|
9658
|
+
left: 0,
|
|
9659
|
+
right: 0
|
|
9705
9660
|
}
|
|
9706
9661
|
}));
|
|
9707
9662
|
var TheToolbar = ({
|