@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { MouseEvent, ReactNode, FC, ReactElement, ComponentType, ChangeEvent, ComponentProps, SVGProps } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, R as RowId } from '../TableDesktop-
|
|
5
|
-
export { B as BulkChanges, j as BulkChangesDialogProps, E as EditableCellType, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-
|
|
4
|
+
import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, R as RowId } from '../TableDesktop-Z0KE59L4.cjs';
|
|
5
|
+
export { B as BulkChanges, j as BulkChangesDialogProps, E as EditableCellType, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-Z0KE59L4.cjs';
|
|
6
6
|
import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
7
7
|
import { UseMutateAsyncFunction } from 'react-query';
|
|
8
8
|
import { SxProps, Theme, SelectProps, MenuProps, Typography } from '@mui/material';
|
|
@@ -30,8 +30,6 @@ interface AlertDialogProps {
|
|
|
30
30
|
rejectCopy?: string;
|
|
31
31
|
acceptCopy?: string;
|
|
32
32
|
disabledContentPadding?: boolean;
|
|
33
|
-
disableEnforceFocus?: boolean;
|
|
34
|
-
disableRestoreFocus?: boolean;
|
|
35
33
|
}
|
|
36
34
|
declare const AlertDialog: React.FC<AlertDialogProps>;
|
|
37
35
|
|
|
@@ -196,7 +194,7 @@ interface IRoundButton {
|
|
|
196
194
|
className?: string;
|
|
197
195
|
disabled?: boolean;
|
|
198
196
|
focused?: boolean;
|
|
199
|
-
icon?: 'add' | 'apps' | 'arrowBack' | 'arrowForward' | 'avocado' | 'backspaceOutlined' | 'banana' | 'block' | 'bulk' | 'callSplit' | 'chevronRight' | 'chevronUp' | 'chevronDown' | 'close' | 'delete' | 'done' | 'edit' | 'email' | 'grape' | 'groupAdd' | 'history' | 'menu' | 'notes' | 'refresh' | 'remove' | 'search' | 'send' | 'strawberry' | 'thumbDown' | 'threeDots' | 'thumbUp' | 'undo' | 'play' | 'snail' | 'bus' | 'spoon' | 'fork' | 'car' | 'knife' | 'bicycle' | 'heart' | 'airplane' | 'threeDots';
|
|
197
|
+
icon?: 'add' | 'apps' | 'arrowBack' | 'arrowForward' | 'avocado' | 'backspaceOutlined' | 'banana' | 'block' | 'bulk' | 'callSplit' | 'chevronRight' | 'chevronUp' | 'chevronDown' | 'close' | 'delete' | 'done' | 'edit' | 'email' | 'grape' | 'groupAdd' | 'history' | 'menu' | 'notes' | 'refresh' | 'remove' | 'search' | 'send' | 'strawberry' | 'thumbDown' | 'threeDots' | 'thumbUp' | 'undo' | 'play' | 'snail' | 'bus' | 'spoon' | 'fork' | 'car' | 'knife' | 'bicycle' | 'heart' | 'airplane' | 'threeDots' | 'swapHoriz';
|
|
200
198
|
iconColor?: 'inherit' | 'disabled' | 'primary' | 'secondary' | 'action' | 'error';
|
|
201
199
|
isContrast?: boolean;
|
|
202
200
|
isTableButton?: boolean;
|
|
@@ -831,7 +829,7 @@ interface SearchWithFiltersForTableProps {
|
|
|
831
829
|
}
|
|
832
830
|
declare const _default$5: React.MemoExoticComponent<(props: SearchWithFiltersForTableProps) => react_jsx_runtime.JSX.Element>;
|
|
833
831
|
|
|
834
|
-
interface
|
|
832
|
+
interface ISectionName {
|
|
835
833
|
name: string;
|
|
836
834
|
tooltipDescription?: string;
|
|
837
835
|
sectionId?: string;
|
|
@@ -841,7 +839,7 @@ interface SectionNameProps {
|
|
|
841
839
|
buttonDisabled?: boolean;
|
|
842
840
|
openHistoryLog?: () => void;
|
|
843
841
|
}
|
|
844
|
-
declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }:
|
|
842
|
+
declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: ISectionName) => react_jsx_runtime.JSX.Element;
|
|
845
843
|
|
|
846
844
|
type Option = {
|
|
847
845
|
value?: string | number;
|
|
@@ -1074,4 +1072,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1074
1072
|
|
|
1075
1073
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1076
1074
|
|
|
1077
|
-
export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus,
|
|
1075
|
+
export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus, Order, _default$f as OutlinedButton, _default$e as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$d as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowId, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartMultipleSelect, SmartSelect, SmartTableHeader, SmartTableHeaderFilterMenu, SquareButton, _default$4 as SquareLabel, _default$3 as Switch, Table, TableDesktopCell, TableDesktopEditableField, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { MouseEvent, ReactNode, FC, ReactElement, ComponentType, ChangeEvent, ComponentProps, SVGProps } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, R as RowId } from '../TableDesktop-
|
|
5
|
-
export { B as BulkChanges, j as BulkChangesDialogProps, E as EditableCellType, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-
|
|
4
|
+
import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, R as RowId } from '../TableDesktop-Z0KE59L4.js';
|
|
5
|
+
export { B as BulkChanges, j as BulkChangesDialogProps, E as EditableCellType, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-Z0KE59L4.js';
|
|
6
6
|
import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
7
7
|
import { UseMutateAsyncFunction } from 'react-query';
|
|
8
8
|
import { SxProps, Theme, SelectProps, MenuProps, Typography } from '@mui/material';
|
|
@@ -30,8 +30,6 @@ interface AlertDialogProps {
|
|
|
30
30
|
rejectCopy?: string;
|
|
31
31
|
acceptCopy?: string;
|
|
32
32
|
disabledContentPadding?: boolean;
|
|
33
|
-
disableEnforceFocus?: boolean;
|
|
34
|
-
disableRestoreFocus?: boolean;
|
|
35
33
|
}
|
|
36
34
|
declare const AlertDialog: React.FC<AlertDialogProps>;
|
|
37
35
|
|
|
@@ -196,7 +194,7 @@ interface IRoundButton {
|
|
|
196
194
|
className?: string;
|
|
197
195
|
disabled?: boolean;
|
|
198
196
|
focused?: boolean;
|
|
199
|
-
icon?: 'add' | 'apps' | 'arrowBack' | 'arrowForward' | 'avocado' | 'backspaceOutlined' | 'banana' | 'block' | 'bulk' | 'callSplit' | 'chevronRight' | 'chevronUp' | 'chevronDown' | 'close' | 'delete' | 'done' | 'edit' | 'email' | 'grape' | 'groupAdd' | 'history' | 'menu' | 'notes' | 'refresh' | 'remove' | 'search' | 'send' | 'strawberry' | 'thumbDown' | 'threeDots' | 'thumbUp' | 'undo' | 'play' | 'snail' | 'bus' | 'spoon' | 'fork' | 'car' | 'knife' | 'bicycle' | 'heart' | 'airplane' | 'threeDots';
|
|
197
|
+
icon?: 'add' | 'apps' | 'arrowBack' | 'arrowForward' | 'avocado' | 'backspaceOutlined' | 'banana' | 'block' | 'bulk' | 'callSplit' | 'chevronRight' | 'chevronUp' | 'chevronDown' | 'close' | 'delete' | 'done' | 'edit' | 'email' | 'grape' | 'groupAdd' | 'history' | 'menu' | 'notes' | 'refresh' | 'remove' | 'search' | 'send' | 'strawberry' | 'thumbDown' | 'threeDots' | 'thumbUp' | 'undo' | 'play' | 'snail' | 'bus' | 'spoon' | 'fork' | 'car' | 'knife' | 'bicycle' | 'heart' | 'airplane' | 'threeDots' | 'swapHoriz';
|
|
200
198
|
iconColor?: 'inherit' | 'disabled' | 'primary' | 'secondary' | 'action' | 'error';
|
|
201
199
|
isContrast?: boolean;
|
|
202
200
|
isTableButton?: boolean;
|
|
@@ -831,7 +829,7 @@ interface SearchWithFiltersForTableProps {
|
|
|
831
829
|
}
|
|
832
830
|
declare const _default$5: React.MemoExoticComponent<(props: SearchWithFiltersForTableProps) => react_jsx_runtime.JSX.Element>;
|
|
833
831
|
|
|
834
|
-
interface
|
|
832
|
+
interface ISectionName {
|
|
835
833
|
name: string;
|
|
836
834
|
tooltipDescription?: string;
|
|
837
835
|
sectionId?: string;
|
|
@@ -841,7 +839,7 @@ interface SectionNameProps {
|
|
|
841
839
|
buttonDisabled?: boolean;
|
|
842
840
|
openHistoryLog?: () => void;
|
|
843
841
|
}
|
|
844
|
-
declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }:
|
|
842
|
+
declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: ISectionName) => react_jsx_runtime.JSX.Element;
|
|
845
843
|
|
|
846
844
|
type Option = {
|
|
847
845
|
value?: string | number;
|
|
@@ -1074,4 +1072,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
1074
1072
|
|
|
1075
1073
|
declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
1076
1074
|
|
|
1077
|
-
export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus,
|
|
1075
|
+
export { ActiveFiltersIconButton, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DynamicOverflowTooltip, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus, Order, _default$f as OutlinedButton, _default$e as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$d as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowId, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartMultipleSelect, SmartSelect, SmartTableHeader, SmartTableHeaderFilterMenu, SquareButton, _default$4 as SquareLabel, _default$3 as Switch, Table, TableDesktopCell, TableDesktopEditableField, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };
|
package/dist/components/index.js
CHANGED
|
@@ -369,9 +369,7 @@ var AlertDialog = ({
|
|
|
369
369
|
rejectCopy,
|
|
370
370
|
acceptCopy,
|
|
371
371
|
content,
|
|
372
|
-
disabledContentPadding
|
|
373
|
-
disableEnforceFocus,
|
|
374
|
-
disableRestoreFocus
|
|
372
|
+
disabledContentPadding
|
|
375
373
|
}) => {
|
|
376
374
|
const { classes } = useStyles();
|
|
377
375
|
return /* @__PURE__ */ jsx2(
|
|
@@ -382,8 +380,6 @@ var AlertDialog = ({
|
|
|
382
380
|
maxWidth,
|
|
383
381
|
fullScreen,
|
|
384
382
|
fullWidth,
|
|
385
|
-
disableEnforceFocus,
|
|
386
|
-
disableRestoreFocus,
|
|
387
383
|
children: /* @__PURE__ */ jsxs2(Box, { children: [
|
|
388
384
|
/* @__PURE__ */ jsxs2(Box, { className: classes.topSection, children: [
|
|
389
385
|
alertTitle ? /* @__PURE__ */ jsx2(Typography2, { variant: "h5", className: classes.title, children: alertTitle }) : null,
|
|
@@ -1898,7 +1894,8 @@ import {
|
|
|
1898
1894
|
Send,
|
|
1899
1895
|
ThumbDown,
|
|
1900
1896
|
ThumbUp,
|
|
1901
|
-
Undo
|
|
1897
|
+
Undo,
|
|
1898
|
+
SwapHoriz
|
|
1902
1899
|
} from "@mui/icons-material";
|
|
1903
1900
|
import { Fab, Tooltip as Tooltip5 } from "@mui/material";
|
|
1904
1901
|
import { makeStyles as makeStyles11 } from "tss-react/mui";
|
|
@@ -3288,7 +3285,8 @@ var RoundButton = ({
|
|
|
3288
3285
|
knife: /* @__PURE__ */ jsx70(IconKnife_default, {}),
|
|
3289
3286
|
bicycle: /* @__PURE__ */ jsx70(IconBicycle_default, {}),
|
|
3290
3287
|
heart: /* @__PURE__ */ jsx70(IconHeart_default, {}),
|
|
3291
|
-
airplane: /* @__PURE__ */ jsx70(IconAirplane_default, {})
|
|
3288
|
+
airplane: /* @__PURE__ */ jsx70(IconAirplane_default, {}),
|
|
3289
|
+
swapHoriz: /* @__PURE__ */ jsx70(SwapHoriz, { fontSize: iconSize })
|
|
3292
3290
|
};
|
|
3293
3291
|
const filteredSize = size === "double" ? void 0 : size;
|
|
3294
3292
|
const handleClick = (e) => {
|
|
@@ -4917,10 +4915,12 @@ var useStyles27 = makeStyles27()((theme) => ({
|
|
|
4917
4915
|
borderTop: `1px solid ${colors.neutral400}`,
|
|
4918
4916
|
width: "100%",
|
|
4919
4917
|
height: footerHeight,
|
|
4920
|
-
padding: theme.spacing(0, 2)
|
|
4918
|
+
padding: theme.spacing(0, 2),
|
|
4919
|
+
zIndex: 999
|
|
4921
4920
|
},
|
|
4922
4921
|
fixedOffset: {
|
|
4923
|
-
height: footerHeight
|
|
4922
|
+
height: footerHeight,
|
|
4923
|
+
backgroundColor: "white"
|
|
4924
4924
|
}
|
|
4925
4925
|
}));
|
|
4926
4926
|
var FixedFooter = ({ justifyContent, children }) => {
|
|
@@ -5587,7 +5587,8 @@ var useStyles33 = makeStyles33()((theme) => ({
|
|
|
5587
5587
|
left: 0
|
|
5588
5588
|
},
|
|
5589
5589
|
fixedOffset: {
|
|
5590
|
-
height: paginationHeight
|
|
5590
|
+
height: paginationHeight,
|
|
5591
|
+
backgroundColor: "white"
|
|
5591
5592
|
}
|
|
5592
5593
|
}));
|
|
5593
5594
|
var PaginationForTable = ({
|
|
@@ -6254,7 +6255,7 @@ var RenderAvatar_default = RenderAvatar;
|
|
|
6254
6255
|
|
|
6255
6256
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
6256
6257
|
import { useEffect as useEffect7, useState as useState11, useRef as useRef5 } from "react";
|
|
6257
|
-
import WarningAmber from "@mui/icons-material
|
|
6258
|
+
import { WarningAmber } from "@mui/icons-material";
|
|
6258
6259
|
import {
|
|
6259
6260
|
List,
|
|
6260
6261
|
ListItemButton,
|
|
@@ -6292,31 +6293,8 @@ var RenderContentList = ({
|
|
|
6292
6293
|
const { classes } = useStyles35();
|
|
6293
6294
|
const [active, setActive] = useState11(activeSection);
|
|
6294
6295
|
const observer = useRef5(null);
|
|
6295
|
-
const isScrolling = useRef5(false);
|
|
6296
|
-
const timeoutScrolling = useRef5(null);
|
|
6297
6296
|
useEffect7(() => {
|
|
6298
|
-
|
|
6299
|
-
return void 0;
|
|
6300
|
-
}
|
|
6301
|
-
isScrolling.current = true;
|
|
6302
|
-
const targetId = transformNameToID(activeSection);
|
|
6303
|
-
setActive(targetId);
|
|
6304
|
-
const element = document.getElementById(targetId);
|
|
6305
|
-
if (element) {
|
|
6306
|
-
element.scrollIntoView({
|
|
6307
|
-
behavior: "smooth",
|
|
6308
|
-
block: "start"
|
|
6309
|
-
});
|
|
6310
|
-
}
|
|
6311
|
-
if (timeoutScrolling.current) {
|
|
6312
|
-
clearTimeout(timeoutScrolling.current);
|
|
6313
|
-
}
|
|
6314
|
-
timeoutScrolling.current = setTimeout(() => {
|
|
6315
|
-
isScrolling.current = false;
|
|
6316
|
-
}, 1e3);
|
|
6317
|
-
return () => {
|
|
6318
|
-
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
6319
|
-
};
|
|
6297
|
+
setActive(activeSection);
|
|
6320
6298
|
}, [activeSection]);
|
|
6321
6299
|
useEffect7(() => {
|
|
6322
6300
|
const sections = items.map((item) => ({
|
|
@@ -6326,14 +6304,9 @@ var RenderContentList = ({
|
|
|
6326
6304
|
if (observer.current) {
|
|
6327
6305
|
observer.current.disconnect();
|
|
6328
6306
|
}
|
|
6329
|
-
if (sections.length === 0)
|
|
6330
|
-
return void 0;
|
|
6331
|
-
}
|
|
6307
|
+
if (sections.length === 0) return;
|
|
6332
6308
|
observer.current = new IntersectionObserver(
|
|
6333
6309
|
(entries) => {
|
|
6334
|
-
if (isScrolling.current) {
|
|
6335
|
-
return;
|
|
6336
|
-
}
|
|
6337
6310
|
const visibleSection = entries.find((entry) => entry.isIntersecting);
|
|
6338
6311
|
if (visibleSection) {
|
|
6339
6312
|
setActive(visibleSection.target.id);
|
|
@@ -6352,21 +6325,6 @@ var RenderContentList = ({
|
|
|
6352
6325
|
observer.current?.disconnect();
|
|
6353
6326
|
};
|
|
6354
6327
|
}, [items]);
|
|
6355
|
-
const handleMenuClick = (id) => {
|
|
6356
|
-
isScrolling.current = true;
|
|
6357
|
-
setActive(id);
|
|
6358
|
-
const element = document.getElementById(id);
|
|
6359
|
-
if (element) {
|
|
6360
|
-
element.scrollIntoView({
|
|
6361
|
-
behavior: "smooth",
|
|
6362
|
-
block: "start"
|
|
6363
|
-
});
|
|
6364
|
-
}
|
|
6365
|
-
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
6366
|
-
timeoutScrolling.current = setTimeout(() => {
|
|
6367
|
-
isScrolling.current = false;
|
|
6368
|
-
}, 1e3);
|
|
6369
|
-
};
|
|
6370
6328
|
return /* @__PURE__ */ jsx105(
|
|
6371
6329
|
List,
|
|
6372
6330
|
{
|
|
@@ -6380,7 +6338,16 @@ var RenderContentList = ({
|
|
|
6380
6338
|
{
|
|
6381
6339
|
selected: active === id,
|
|
6382
6340
|
classes: { root: classes.root, selected: classes.selected },
|
|
6383
|
-
onClick: () =>
|
|
6341
|
+
onClick: () => {
|
|
6342
|
+
setActive(id);
|
|
6343
|
+
const element = document.getElementById(id);
|
|
6344
|
+
if (element) {
|
|
6345
|
+
element.scrollIntoView({
|
|
6346
|
+
behavior: "smooth",
|
|
6347
|
+
block: "start"
|
|
6348
|
+
});
|
|
6349
|
+
}
|
|
6350
|
+
},
|
|
6384
6351
|
children: [
|
|
6385
6352
|
/* @__PURE__ */ jsx105(ListItemText4, { primary: item }),
|
|
6386
6353
|
(warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ jsx105(Tooltip7, { title: warningMessage, children: /* @__PURE__ */ jsx105(WarningAmber, { color: "warning" }) })
|
|
@@ -7013,8 +6980,7 @@ var SearchHeader = memo18(
|
|
|
7013
6980
|
);
|
|
7014
6981
|
|
|
7015
6982
|
// src/components/SectionName/SectionName.tsx
|
|
7016
|
-
import
|
|
7017
|
-
import InfoIcon from "@mui/icons-material/Info";
|
|
6983
|
+
import { History as History2, Info as InfoIcon } from "@mui/icons-material";
|
|
7018
6984
|
import { Box as Box34, Divider as Divider10, IconButton as IconButton4, Tooltip as Tooltip8, Typography as Typography27 } from "@mui/material";
|
|
7019
6985
|
import { makeStyles as makeStyles42 } from "tss-react/mui";
|
|
7020
6986
|
import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
@@ -7060,26 +7026,14 @@ var SectionName = ({
|
|
|
7060
7026
|
openHistoryLog
|
|
7061
7027
|
}) => {
|
|
7062
7028
|
const { classes } = useStyles42();
|
|
7063
|
-
const handleScroll = (e) => {
|
|
7064
|
-
e.preventDefault();
|
|
7065
|
-
if (sectionId) {
|
|
7066
|
-
const targetId = sectionId.startsWith("#") ? sectionId.slice(1) : sectionId;
|
|
7067
|
-
const element = document.getElementById(targetId);
|
|
7068
|
-
if (element) {
|
|
7069
|
-
element.scrollIntoView({
|
|
7070
|
-
behavior: "smooth",
|
|
7071
|
-
block: "start"
|
|
7072
|
-
});
|
|
7073
|
-
}
|
|
7074
|
-
}
|
|
7075
|
-
};
|
|
7076
7029
|
return /* @__PURE__ */ jsxs77(Box34, { className: classes.container, children: [
|
|
7077
7030
|
/* @__PURE__ */ jsxs77(Box34, { className: classes.titleContainer, children: [
|
|
7078
7031
|
/* @__PURE__ */ jsx113(
|
|
7079
7032
|
Typography27,
|
|
7080
7033
|
{
|
|
7081
7034
|
variant: "h5",
|
|
7082
|
-
|
|
7035
|
+
component: "a",
|
|
7036
|
+
href: sectionId,
|
|
7083
7037
|
className: classes.typography,
|
|
7084
7038
|
children: name
|
|
7085
7039
|
}
|
|
@@ -7108,7 +7062,7 @@ var SectionName = ({
|
|
|
7108
7062
|
}
|
|
7109
7063
|
) : null,
|
|
7110
7064
|
openHistoryLog && buttonText && /* @__PURE__ */ jsx113(Divider10, { orientation: "vertical", sx: { height: "24px" } }),
|
|
7111
|
-
openHistoryLog && /* @__PURE__ */ jsx113(IconButton4, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx113(
|
|
7065
|
+
openHistoryLog && /* @__PURE__ */ jsx113(IconButton4, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx113(History2, {}) })
|
|
7112
7066
|
] })
|
|
7113
7067
|
] });
|
|
7114
7068
|
};
|
|
@@ -8298,12 +8252,12 @@ var TableDesktop = ({
|
|
|
8298
8252
|
setIsBulkChangesMode(checked);
|
|
8299
8253
|
if (!checked) {
|
|
8300
8254
|
resetSelectedRows();
|
|
8301
|
-
refetchData?.();
|
|
8302
8255
|
}
|
|
8303
8256
|
};
|
|
8304
8257
|
useEffect11(() => {
|
|
8305
8258
|
if (isRowsFromAllPagesSelected) {
|
|
8306
8259
|
selectAllRowsInPage();
|
|
8260
|
+
selectAllRowsInPage();
|
|
8307
8261
|
}
|
|
8308
8262
|
}, [isRowsFromAllPagesSelected, data]);
|
|
8309
8263
|
const renderBody = () => {
|
|
@@ -9043,7 +8997,6 @@ var TableDesktopToolbar = ({
|
|
|
9043
8997
|
disableBulkChangesMode = false,
|
|
9044
8998
|
isBulkChangesMode,
|
|
9045
8999
|
onChangeBulkChangesMode,
|
|
9046
|
-
onActivateBulkChangesMode,
|
|
9047
9000
|
refetchData,
|
|
9048
9001
|
renderExportCsvDialog,
|
|
9049
9002
|
renderBulkChangesDialog,
|
|
@@ -9068,8 +9021,8 @@ var TableDesktopToolbar = ({
|
|
|
9068
9021
|
const handleChangeBulkChangesMode = (_, checked) => {
|
|
9069
9022
|
setBulkChanges([]);
|
|
9070
9023
|
onChangeBulkChangesMode(checked);
|
|
9071
|
-
if (checked) {
|
|
9072
|
-
|
|
9024
|
+
if (!checked) {
|
|
9025
|
+
refetchData?.();
|
|
9073
9026
|
}
|
|
9074
9027
|
};
|
|
9075
9028
|
const handleUpdateEditableCell = ({
|
|
@@ -9523,7 +9476,11 @@ var useStyles49 = makeStyles49()((theme) => ({
|
|
|
9523
9476
|
topBar: {
|
|
9524
9477
|
display: "flex",
|
|
9525
9478
|
gap: theme.spacing(1),
|
|
9526
|
-
backgroundColor: colors.topBar
|
|
9479
|
+
backgroundColor: colors.topBar,
|
|
9480
|
+
maxWidth: 2e3,
|
|
9481
|
+
margin: "0 auto",
|
|
9482
|
+
left: 0,
|
|
9483
|
+
right: 0
|
|
9527
9484
|
}
|
|
9528
9485
|
}));
|
|
9529
9486
|
var TheToolbar = ({
|