@natoora-libs/core 0.2.12-dev-doug-4 → 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 -88
- 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 -79
- 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,31 +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
|
-
timeoutScrolling.current = setTimeout(() => {
|
|
6563
|
-
isScrolling.current = false;
|
|
6564
|
-
}, 1e3);
|
|
6565
|
-
return () => {
|
|
6566
|
-
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
6567
|
-
};
|
|
6544
|
+
setActive(activeSection);
|
|
6568
6545
|
}, [activeSection]);
|
|
6569
6546
|
(0, import_react29.useEffect)(() => {
|
|
6570
6547
|
const sections = items.map((item) => ({
|
|
@@ -6574,14 +6551,9 @@ var RenderContentList = ({
|
|
|
6574
6551
|
if (observer.current) {
|
|
6575
6552
|
observer.current.disconnect();
|
|
6576
6553
|
}
|
|
6577
|
-
if (sections.length === 0)
|
|
6578
|
-
return void 0;
|
|
6579
|
-
}
|
|
6554
|
+
if (sections.length === 0) return;
|
|
6580
6555
|
observer.current = new IntersectionObserver(
|
|
6581
6556
|
(entries) => {
|
|
6582
|
-
if (isScrolling.current) {
|
|
6583
|
-
return;
|
|
6584
|
-
}
|
|
6585
6557
|
const visibleSection = entries.find((entry) => entry.isIntersecting);
|
|
6586
6558
|
if (visibleSection) {
|
|
6587
6559
|
setActive(visibleSection.target.id);
|
|
@@ -6600,21 +6572,6 @@ var RenderContentList = ({
|
|
|
6600
6572
|
observer.current?.disconnect();
|
|
6601
6573
|
};
|
|
6602
6574
|
}, [items]);
|
|
6603
|
-
const handleMenuClick = (id) => {
|
|
6604
|
-
isScrolling.current = true;
|
|
6605
|
-
setActive(id);
|
|
6606
|
-
const element = document.getElementById(id);
|
|
6607
|
-
if (element) {
|
|
6608
|
-
element.scrollIntoView({
|
|
6609
|
-
behavior: "smooth",
|
|
6610
|
-
block: "start"
|
|
6611
|
-
});
|
|
6612
|
-
}
|
|
6613
|
-
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
6614
|
-
timeoutScrolling.current = setTimeout(() => {
|
|
6615
|
-
isScrolling.current = false;
|
|
6616
|
-
}, 1e3);
|
|
6617
|
-
};
|
|
6618
6575
|
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6619
6576
|
import_material53.List,
|
|
6620
6577
|
{
|
|
@@ -6628,10 +6585,19 @@ var RenderContentList = ({
|
|
|
6628
6585
|
{
|
|
6629
6586
|
selected: active === id,
|
|
6630
6587
|
classes: { root: classes.root, selected: classes.selected },
|
|
6631
|
-
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
|
+
},
|
|
6632
6598
|
children: [
|
|
6633
6599
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_material53.ListItemText, { primary: item }),
|
|
6634
|
-
(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" }) })
|
|
6635
6601
|
]
|
|
6636
6602
|
},
|
|
6637
6603
|
id
|
|
@@ -6879,7 +6845,7 @@ var import_mui45 = require("tss-react/mui");
|
|
|
6879
6845
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
6880
6846
|
var import_react31 = require("react");
|
|
6881
6847
|
var React6 = __toESM(require("react"), 1);
|
|
6882
|
-
var
|
|
6848
|
+
var import_icons_material9 = require("@mui/icons-material");
|
|
6883
6849
|
var import_material56 = require("@mui/material");
|
|
6884
6850
|
var import_mui44 = require("tss-react/mui");
|
|
6885
6851
|
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
@@ -6943,7 +6909,7 @@ var SearchWithFilters = ({
|
|
|
6943
6909
|
setSearchText(searchValue);
|
|
6944
6910
|
}, [searchValue]);
|
|
6945
6911
|
return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_material56.Paper, { className: classes.searchContainer, children: [
|
|
6946
|
-
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6912
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_icons_material9.Search, { className: classes.icon, fontSize: "small" }),
|
|
6947
6913
|
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6948
6914
|
import_material56.InputBase,
|
|
6949
6915
|
{
|
|
@@ -6965,7 +6931,7 @@ var SearchWithFilters = ({
|
|
|
6965
6931
|
disabled,
|
|
6966
6932
|
children: [
|
|
6967
6933
|
"Filters",
|
|
6968
|
-
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, {})
|
|
6969
6935
|
]
|
|
6970
6936
|
}
|
|
6971
6937
|
)
|
|
@@ -7040,7 +7006,7 @@ var import_mui47 = require("tss-react/mui");
|
|
|
7040
7006
|
|
|
7041
7007
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
7042
7008
|
var import_react32 = require("react");
|
|
7043
|
-
var
|
|
7009
|
+
var import_icons_material10 = require("@mui/icons-material");
|
|
7044
7010
|
var import_material58 = require("@mui/material");
|
|
7045
7011
|
var import_mui46 = require("tss-react/mui");
|
|
7046
7012
|
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
@@ -7117,9 +7083,9 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7117
7083
|
enterPressedInSearch();
|
|
7118
7084
|
}
|
|
7119
7085
|
};
|
|
7120
|
-
const ArrowIcon = isOpen ?
|
|
7086
|
+
const ArrowIcon = isOpen ? import_icons_material10.ArrowDropUp : import_icons_material10.ArrowDropDown;
|
|
7121
7087
|
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_material58.Paper, { className: classes.c_search, children: [
|
|
7122
|
-
/* @__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" }) }),
|
|
7123
7089
|
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
7124
7090
|
import_material58.InputBase,
|
|
7125
7091
|
{
|
|
@@ -7253,8 +7219,7 @@ var SearchHeader = (0, import_react33.memo)(
|
|
|
7253
7219
|
);
|
|
7254
7220
|
|
|
7255
7221
|
// src/components/SectionName/SectionName.tsx
|
|
7256
|
-
var
|
|
7257
|
-
var import_Info = __toESM(require("@mui/icons-material/Info"), 1);
|
|
7222
|
+
var import_icons_material11 = require("@mui/icons-material");
|
|
7258
7223
|
var import_material61 = require("@mui/material");
|
|
7259
7224
|
var import_mui48 = require("tss-react/mui");
|
|
7260
7225
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
@@ -7300,32 +7265,20 @@ var SectionName = ({
|
|
|
7300
7265
|
openHistoryLog
|
|
7301
7266
|
}) => {
|
|
7302
7267
|
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
|
-
};
|
|
7316
7268
|
return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.container, children: [
|
|
7317
7269
|
/* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.titleContainer, children: [
|
|
7318
7270
|
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7319
7271
|
import_material61.Typography,
|
|
7320
7272
|
{
|
|
7321
7273
|
variant: "h5",
|
|
7322
|
-
|
|
7274
|
+
component: "a",
|
|
7275
|
+
href: sectionId,
|
|
7323
7276
|
className: classes.typography,
|
|
7324
7277
|
children: name
|
|
7325
7278
|
}
|
|
7326
7279
|
),
|
|
7327
7280
|
tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7328
|
-
|
|
7281
|
+
import_icons_material11.Info,
|
|
7329
7282
|
{
|
|
7330
7283
|
fontSize: "small",
|
|
7331
7284
|
"data-testid": "InfoIcon",
|
|
@@ -7348,7 +7301,7 @@ var SectionName = ({
|
|
|
7348
7301
|
}
|
|
7349
7302
|
) : null,
|
|
7350
7303
|
openHistoryLog && buttonText && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Divider, { orientation: "vertical", sx: { height: "24px" } }),
|
|
7351
|
-
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, {}) })
|
|
7352
7305
|
] })
|
|
7353
7306
|
] });
|
|
7354
7307
|
};
|
|
@@ -8496,12 +8449,12 @@ var TableDesktop = ({
|
|
|
8496
8449
|
setIsBulkChangesMode(checked);
|
|
8497
8450
|
if (!checked) {
|
|
8498
8451
|
resetSelectedRows();
|
|
8499
|
-
refetchData?.();
|
|
8500
8452
|
}
|
|
8501
8453
|
};
|
|
8502
8454
|
(0, import_react41.useEffect)(() => {
|
|
8503
8455
|
if (isRowsFromAllPagesSelected) {
|
|
8504
8456
|
selectAllRowsInPage();
|
|
8457
|
+
selectAllRowsInPage();
|
|
8505
8458
|
}
|
|
8506
8459
|
}, [isRowsFromAllPagesSelected, data]);
|
|
8507
8460
|
const renderBody = () => {
|
|
@@ -9220,7 +9173,6 @@ var TableDesktopToolbar = ({
|
|
|
9220
9173
|
disableBulkChangesMode = false,
|
|
9221
9174
|
isBulkChangesMode,
|
|
9222
9175
|
onChangeBulkChangesMode,
|
|
9223
|
-
onActivateBulkChangesMode,
|
|
9224
9176
|
refetchData,
|
|
9225
9177
|
renderExportCsvDialog,
|
|
9226
9178
|
renderBulkChangesDialog,
|
|
@@ -9245,8 +9197,8 @@ var TableDesktopToolbar = ({
|
|
|
9245
9197
|
const handleChangeBulkChangesMode = (_, checked) => {
|
|
9246
9198
|
setBulkChanges([]);
|
|
9247
9199
|
onChangeBulkChangesMode(checked);
|
|
9248
|
-
if (checked) {
|
|
9249
|
-
|
|
9200
|
+
if (!checked) {
|
|
9201
|
+
refetchData?.();
|
|
9250
9202
|
}
|
|
9251
9203
|
};
|
|
9252
9204
|
const handleUpdateEditableCell = ({
|
|
@@ -9453,7 +9405,7 @@ var TableDesktopToolbar = ({
|
|
|
9453
9405
|
|
|
9454
9406
|
// src/components/TableHeader/TableHeader.tsx
|
|
9455
9407
|
var import_react48 = require("react");
|
|
9456
|
-
var
|
|
9408
|
+
var import_icons_material12 = require("@mui/icons-material");
|
|
9457
9409
|
var import_material80 = require("@mui/material");
|
|
9458
9410
|
var import_mui53 = require("tss-react/mui");
|
|
9459
9411
|
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
@@ -9506,7 +9458,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
9506
9458
|
{
|
|
9507
9459
|
className: classes.sortLabel,
|
|
9508
9460
|
direction: cell?.direction || "asc",
|
|
9509
|
-
IconComponent:
|
|
9461
|
+
IconComponent: import_icons_material12.ImportExport,
|
|
9510
9462
|
onClick: () => handleSortClick(cell),
|
|
9511
9463
|
children: cell.label
|
|
9512
9464
|
}
|
|
@@ -9700,7 +9652,11 @@ var useStyles50 = (0, import_mui56.makeStyles)()((theme) => ({
|
|
|
9700
9652
|
topBar: {
|
|
9701
9653
|
display: "flex",
|
|
9702
9654
|
gap: theme.spacing(1),
|
|
9703
|
-
backgroundColor: colors.topBar
|
|
9655
|
+
backgroundColor: colors.topBar,
|
|
9656
|
+
maxWidth: 2e3,
|
|
9657
|
+
margin: "0 auto",
|
|
9658
|
+
left: 0,
|
|
9659
|
+
right: 0
|
|
9704
9660
|
}
|
|
9705
9661
|
}));
|
|
9706
9662
|
var TheToolbar = ({
|