@natoora-libs/core 0.2.13 → 0.2.15

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.
@@ -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-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';
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-BrpwT-lM.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-BrpwT-lM.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,6 +30,8 @@ interface AlertDialogProps {
30
30
  rejectCopy?: string;
31
31
  acceptCopy?: string;
32
32
  disabledContentPadding?: boolean;
33
+ disableEnforceFocus?: boolean;
34
+ disableRestoreFocus?: boolean;
33
35
  }
34
36
  declare const AlertDialog: React.FC<AlertDialogProps>;
35
37
 
@@ -194,7 +196,7 @@ interface IRoundButton {
194
196
  className?: string;
195
197
  disabled?: boolean;
196
198
  focused?: boolean;
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';
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' | 'swapHoriz';
198
200
  iconColor?: 'inherit' | 'disabled' | 'primary' | 'secondary' | 'action' | 'error';
199
201
  isContrast?: boolean;
200
202
  isTableButton?: boolean;
@@ -829,7 +831,7 @@ interface SearchWithFiltersForTableProps {
829
831
  }
830
832
  declare const _default$5: React.MemoExoticComponent<(props: SearchWithFiltersForTableProps) => react_jsx_runtime.JSX.Element>;
831
833
 
832
- interface ISectionName {
834
+ interface SectionNameProps {
833
835
  name: string;
834
836
  tooltipDescription?: string;
835
837
  sectionId?: string;
@@ -839,7 +841,7 @@ interface ISectionName {
839
841
  buttonDisabled?: boolean;
840
842
  openHistoryLog?: () => void;
841
843
  }
842
- declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: ISectionName) => react_jsx_runtime.JSX.Element;
844
+ declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: SectionNameProps) => react_jsx_runtime.JSX.Element;
843
845
 
844
846
  type Option = {
845
847
  value?: string | number;
@@ -1072,4 +1074,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
1072
1074
 
1073
1075
  declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1074
1076
 
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 };
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, type Option, 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-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';
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-BrpwT-lM.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-BrpwT-lM.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,6 +30,8 @@ interface AlertDialogProps {
30
30
  rejectCopy?: string;
31
31
  acceptCopy?: string;
32
32
  disabledContentPadding?: boolean;
33
+ disableEnforceFocus?: boolean;
34
+ disableRestoreFocus?: boolean;
33
35
  }
34
36
  declare const AlertDialog: React.FC<AlertDialogProps>;
35
37
 
@@ -194,7 +196,7 @@ interface IRoundButton {
194
196
  className?: string;
195
197
  disabled?: boolean;
196
198
  focused?: boolean;
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';
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' | 'swapHoriz';
198
200
  iconColor?: 'inherit' | 'disabled' | 'primary' | 'secondary' | 'action' | 'error';
199
201
  isContrast?: boolean;
200
202
  isTableButton?: boolean;
@@ -829,7 +831,7 @@ interface SearchWithFiltersForTableProps {
829
831
  }
830
832
  declare const _default$5: React.MemoExoticComponent<(props: SearchWithFiltersForTableProps) => react_jsx_runtime.JSX.Element>;
831
833
 
832
- interface ISectionName {
834
+ interface SectionNameProps {
833
835
  name: string;
834
836
  tooltipDescription?: string;
835
837
  sectionId?: string;
@@ -839,7 +841,7 @@ interface ISectionName {
839
841
  buttonDisabled?: boolean;
840
842
  openHistoryLog?: () => void;
841
843
  }
842
- declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: ISectionName) => react_jsx_runtime.JSX.Element;
844
+ declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: SectionNameProps) => react_jsx_runtime.JSX.Element;
843
845
 
844
846
  type Option = {
845
847
  value?: string | number;
@@ -1072,4 +1074,4 @@ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
1072
1074
 
1073
1075
  declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1074
1076
 
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 };
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, type Option, 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 };
@@ -369,7 +369,9 @@ var AlertDialog = ({
369
369
  rejectCopy,
370
370
  acceptCopy,
371
371
  content,
372
- disabledContentPadding
372
+ disabledContentPadding,
373
+ disableEnforceFocus,
374
+ disableRestoreFocus
373
375
  }) => {
374
376
  const { classes } = useStyles();
375
377
  return /* @__PURE__ */ jsx2(
@@ -380,6 +382,8 @@ var AlertDialog = ({
380
382
  maxWidth,
381
383
  fullScreen,
382
384
  fullWidth,
385
+ disableEnforceFocus,
386
+ disableRestoreFocus,
383
387
  children: /* @__PURE__ */ jsxs2(Box, { children: [
384
388
  /* @__PURE__ */ jsxs2(Box, { className: classes.topSection, children: [
385
389
  alertTitle ? /* @__PURE__ */ jsx2(Typography2, { variant: "h5", className: classes.title, children: alertTitle }) : null,
@@ -1894,7 +1898,8 @@ import {
1894
1898
  Send,
1895
1899
  ThumbDown,
1896
1900
  ThumbUp,
1897
- Undo
1901
+ Undo,
1902
+ SwapHoriz
1898
1903
  } from "@mui/icons-material";
1899
1904
  import { Fab, Tooltip as Tooltip5 } from "@mui/material";
1900
1905
  import { makeStyles as makeStyles11 } from "tss-react/mui";
@@ -3284,7 +3289,8 @@ var RoundButton = ({
3284
3289
  knife: /* @__PURE__ */ jsx70(IconKnife_default, {}),
3285
3290
  bicycle: /* @__PURE__ */ jsx70(IconBicycle_default, {}),
3286
3291
  heart: /* @__PURE__ */ jsx70(IconHeart_default, {}),
3287
- airplane: /* @__PURE__ */ jsx70(IconAirplane_default, {})
3292
+ airplane: /* @__PURE__ */ jsx70(IconAirplane_default, {}),
3293
+ swapHoriz: /* @__PURE__ */ jsx70(SwapHoriz, { fontSize: iconSize })
3288
3294
  };
3289
3295
  const filteredSize = size === "double" ? void 0 : size;
3290
3296
  const handleClick = (e) => {
@@ -4913,10 +4919,12 @@ var useStyles27 = makeStyles27()((theme) => ({
4913
4919
  borderTop: `1px solid ${colors.neutral400}`,
4914
4920
  width: "100%",
4915
4921
  height: footerHeight,
4916
- padding: theme.spacing(0, 2)
4922
+ padding: theme.spacing(0, 2),
4923
+ zIndex: 999
4917
4924
  },
4918
4925
  fixedOffset: {
4919
- height: footerHeight
4926
+ height: footerHeight,
4927
+ backgroundColor: "white"
4920
4928
  }
4921
4929
  }));
4922
4930
  var FixedFooter = ({ justifyContent, children }) => {
@@ -5583,7 +5591,8 @@ var useStyles33 = makeStyles33()((theme) => ({
5583
5591
  left: 0
5584
5592
  },
5585
5593
  fixedOffset: {
5586
- height: paginationHeight
5594
+ height: paginationHeight,
5595
+ backgroundColor: "white"
5587
5596
  }
5588
5597
  }));
5589
5598
  var PaginationForTable = ({
@@ -6250,7 +6259,7 @@ var RenderAvatar_default = RenderAvatar;
6250
6259
 
6251
6260
  // src/components/RenderContentList/RenderContentList.tsx
6252
6261
  import { useEffect as useEffect7, useState as useState11, useRef as useRef5 } from "react";
6253
- import { WarningAmber } from "@mui/icons-material";
6262
+ import WarningAmber from "@mui/icons-material/WarningAmber";
6254
6263
  import {
6255
6264
  List,
6256
6265
  ListItemButton,
@@ -6288,8 +6297,31 @@ var RenderContentList = ({
6288
6297
  const { classes } = useStyles35();
6289
6298
  const [active, setActive] = useState11(activeSection);
6290
6299
  const observer = useRef5(null);
6300
+ const isScrolling = useRef5(false);
6301
+ const timeoutScrolling = useRef5(null);
6291
6302
  useEffect7(() => {
6292
- setActive(activeSection);
6303
+ if (!activeSection) {
6304
+ return void 0;
6305
+ }
6306
+ isScrolling.current = true;
6307
+ const targetId = transformNameToID(activeSection);
6308
+ setActive(targetId);
6309
+ const element = document.getElementById(targetId);
6310
+ if (element) {
6311
+ element.scrollIntoView({
6312
+ behavior: "smooth",
6313
+ block: "start"
6314
+ });
6315
+ }
6316
+ if (timeoutScrolling.current) {
6317
+ clearTimeout(timeoutScrolling.current);
6318
+ }
6319
+ timeoutScrolling.current = setTimeout(() => {
6320
+ isScrolling.current = false;
6321
+ }, 1e3);
6322
+ return () => {
6323
+ if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
6324
+ };
6293
6325
  }, [activeSection]);
6294
6326
  useEffect7(() => {
6295
6327
  const sections = items.map((item) => ({
@@ -6299,9 +6331,14 @@ var RenderContentList = ({
6299
6331
  if (observer.current) {
6300
6332
  observer.current.disconnect();
6301
6333
  }
6302
- if (sections.length === 0) return;
6334
+ if (sections.length === 0) {
6335
+ return void 0;
6336
+ }
6303
6337
  observer.current = new IntersectionObserver(
6304
6338
  (entries) => {
6339
+ if (isScrolling.current) {
6340
+ return;
6341
+ }
6305
6342
  const visibleSection = entries.find((entry) => entry.isIntersecting);
6306
6343
  if (visibleSection) {
6307
6344
  setActive(visibleSection.target.id);
@@ -6320,6 +6357,21 @@ var RenderContentList = ({
6320
6357
  observer.current?.disconnect();
6321
6358
  };
6322
6359
  }, [items]);
6360
+ const handleMenuClick = (id) => {
6361
+ isScrolling.current = true;
6362
+ setActive(id);
6363
+ const element = document.getElementById(id);
6364
+ if (element) {
6365
+ element.scrollIntoView({
6366
+ behavior: "smooth",
6367
+ block: "start"
6368
+ });
6369
+ }
6370
+ if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
6371
+ timeoutScrolling.current = setTimeout(() => {
6372
+ isScrolling.current = false;
6373
+ }, 1e3);
6374
+ };
6323
6375
  return /* @__PURE__ */ jsx105(
6324
6376
  List,
6325
6377
  {
@@ -6333,16 +6385,7 @@ var RenderContentList = ({
6333
6385
  {
6334
6386
  selected: active === id,
6335
6387
  classes: { root: classes.root, selected: classes.selected },
6336
- onClick: () => {
6337
- setActive(id);
6338
- const element = document.getElementById(id);
6339
- if (element) {
6340
- element.scrollIntoView({
6341
- behavior: "smooth",
6342
- block: "start"
6343
- });
6344
- }
6345
- },
6388
+ onClick: () => handleMenuClick(id),
6346
6389
  children: [
6347
6390
  /* @__PURE__ */ jsx105(ListItemText4, { primary: item }),
6348
6391
  (warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ jsx105(Tooltip7, { title: warningMessage, children: /* @__PURE__ */ jsx105(WarningAmber, { color: "warning" }) })
@@ -6975,7 +7018,8 @@ var SearchHeader = memo18(
6975
7018
  );
6976
7019
 
6977
7020
  // src/components/SectionName/SectionName.tsx
6978
- import { History as History2, Info as InfoIcon } from "@mui/icons-material";
7021
+ import HistoryIcon from "@mui/icons-material/History";
7022
+ import InfoIcon from "@mui/icons-material/Info";
6979
7023
  import { Box as Box34, Divider as Divider10, IconButton as IconButton4, Tooltip as Tooltip8, Typography as Typography27 } from "@mui/material";
6980
7024
  import { makeStyles as makeStyles42 } from "tss-react/mui";
6981
7025
  import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
@@ -7021,14 +7065,26 @@ var SectionName = ({
7021
7065
  openHistoryLog
7022
7066
  }) => {
7023
7067
  const { classes } = useStyles42();
7068
+ const handleScroll = (e) => {
7069
+ e.preventDefault();
7070
+ if (sectionId) {
7071
+ const targetId = sectionId.startsWith("#") ? sectionId.slice(1) : sectionId;
7072
+ const element = document.getElementById(targetId);
7073
+ if (element) {
7074
+ element.scrollIntoView({
7075
+ behavior: "smooth",
7076
+ block: "start"
7077
+ });
7078
+ }
7079
+ }
7080
+ };
7024
7081
  return /* @__PURE__ */ jsxs77(Box34, { className: classes.container, children: [
7025
7082
  /* @__PURE__ */ jsxs77(Box34, { className: classes.titleContainer, children: [
7026
7083
  /* @__PURE__ */ jsx113(
7027
7084
  Typography27,
7028
7085
  {
7029
7086
  variant: "h5",
7030
- component: "a",
7031
- href: sectionId,
7087
+ onClick: handleScroll,
7032
7088
  className: classes.typography,
7033
7089
  children: name
7034
7090
  }
@@ -7057,7 +7113,7 @@ var SectionName = ({
7057
7113
  }
7058
7114
  ) : null,
7059
7115
  openHistoryLog && buttonText && /* @__PURE__ */ jsx113(Divider10, { orientation: "vertical", sx: { height: "24px" } }),
7060
- openHistoryLog && /* @__PURE__ */ jsx113(IconButton4, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx113(History2, {}) })
7116
+ openHistoryLog && /* @__PURE__ */ jsx113(IconButton4, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx113(HistoryIcon, {}) })
7061
7117
  ] })
7062
7118
  ] });
7063
7119
  };
@@ -8247,12 +8303,12 @@ var TableDesktop = ({
8247
8303
  setIsBulkChangesMode(checked);
8248
8304
  if (!checked) {
8249
8305
  resetSelectedRows();
8306
+ refetchData?.();
8250
8307
  }
8251
8308
  };
8252
8309
  useEffect11(() => {
8253
8310
  if (isRowsFromAllPagesSelected) {
8254
8311
  selectAllRowsInPage();
8255
- selectAllRowsInPage();
8256
8312
  }
8257
8313
  }, [isRowsFromAllPagesSelected, data]);
8258
8314
  const renderBody = () => {
@@ -8992,6 +9048,7 @@ var TableDesktopToolbar = ({
8992
9048
  disableBulkChangesMode = false,
8993
9049
  isBulkChangesMode,
8994
9050
  onChangeBulkChangesMode,
9051
+ onActivateBulkChangesMode,
8995
9052
  refetchData,
8996
9053
  renderExportCsvDialog,
8997
9054
  renderBulkChangesDialog,
@@ -9016,8 +9073,8 @@ var TableDesktopToolbar = ({
9016
9073
  const handleChangeBulkChangesMode = (_, checked) => {
9017
9074
  setBulkChanges([]);
9018
9075
  onChangeBulkChangesMode(checked);
9019
- if (!checked) {
9020
- refetchData?.();
9076
+ if (checked) {
9077
+ onActivateBulkChangesMode?.();
9021
9078
  }
9022
9079
  };
9023
9080
  const handleUpdateEditableCell = ({