@m4l/components 9.2.64 → 9.2.65-JT18072025.beta.1

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.
Files changed (130) hide show
  1. package/components/AppBar/AppBar.js +12 -10
  2. package/components/AppBar/constants.d.ts +1 -1
  3. package/components/AppBar/constants.js +1 -1
  4. package/components/AppBar/slots/AppBarEnum.d.ts +1 -5
  5. package/components/AppBar/slots/AppBarEnum.js +0 -4
  6. package/components/AppBar/slots/AppBarSlots.d.ts +4 -18
  7. package/components/AppBar/slots/AppBarSlots.js +3 -27
  8. package/components/AppBar/styles.js +0 -42
  9. package/components/AppBar/types.d.ts +8 -0
  10. package/components/Chip/ChipStyles.js +1 -1
  11. package/components/DataGrid/Datagrid.styles.js +112 -9
  12. package/components/DataGrid/formatters/ColumnBooleanFormatter/formatter.d.ts +2 -1
  13. package/components/DataGrid/formatters/ColumnBooleanFormatter/formatter.js +2 -3
  14. package/components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.d.ts +1 -1
  15. package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.d.ts +2 -1
  16. package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js +5 -4
  17. package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.d.ts +1 -1
  18. package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.d.ts +2 -1
  19. package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.js +11 -4
  20. package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.d.ts +1 -1
  21. package/components/DataGrid/formatters/ColumnDateFormatter/formatter.d.ts +2 -1
  22. package/components/DataGrid/formatters/ColumnDateFormatter/formatter.js +13 -4
  23. package/components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.d.ts +1 -1
  24. package/components/DataGrid/formatters/ColumnIconFormatter/formatter.d.ts +2 -1
  25. package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +2 -2
  26. package/components/DataGrid/formatters/ColumnIconFormatter/useColumnIcon.d.ts +1 -1
  27. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/types.d.ts +2 -2
  28. package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.d.ts +2 -1
  29. package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js +4 -3
  30. package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +1 -1
  31. package/components/DataGrid/formatters/ColumnPointsFormatter/formatter.d.ts +2 -1
  32. package/components/DataGrid/formatters/ColumnPointsFormatter/formatter.js +13 -5
  33. package/components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.d.ts +1 -1
  34. package/components/DataGrid/formatters/ColumnPriceFormatter/formatter.d.ts +2 -1
  35. package/components/DataGrid/formatters/ColumnPriceFormatter/formatter.js +11 -4
  36. package/components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.d.ts +1 -1
  37. package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.d.ts +2 -2
  38. package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js +1 -1
  39. package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.d.ts +1 -1
  40. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.d.ts +2 -1
  41. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.js +15 -6
  42. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.d.ts +1 -1
  43. package/components/DataGrid/index.d.ts +1 -1
  44. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +4 -5
  45. package/components/DataGrid/subcomponents/Table/hooks/getDragHeaderRenderer.d.ts +2 -2
  46. package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.d.ts +2 -2
  47. package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.js +15 -6
  48. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +13 -7
  49. package/components/DataGrid/subcomponents/Table/index.d.ts +3 -1
  50. package/components/DataGrid/subcomponents/Table/index.js +38 -9
  51. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
  52. package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.d.ts +2 -2
  53. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.d.ts +2 -2
  54. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +10 -8
  55. package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
  56. package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +7 -7
  57. package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +15 -5
  58. package/components/DataGrid/types.d.ts +9 -4
  59. package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
  60. package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
  61. package/components/SideBar/SideBar.js +6 -2
  62. package/components/SideBar/constants.d.ts +8 -6
  63. package/components/SideBar/constants.js +8 -8
  64. package/components/SideBar/context/sideBarContext/index.js +9 -10
  65. package/components/SideBar/context/sideBarContext/types.d.ts +2 -10
  66. package/components/SideBar/slots/SideBarEnum.d.ts +8 -7
  67. package/components/SideBar/slots/SideBarEnum.js +6 -5
  68. package/components/SideBar/slots/SideBarSlots.d.ts +12 -9
  69. package/components/SideBar/slots/SideBarSlots.js +36 -28
  70. package/components/SideBar/styles.js +3 -3
  71. package/components/SideBar/subcomponents/ContentComponent/index.js +12 -68
  72. package/components/SideBar/subcomponents/ContentComponent/style.js +134 -107
  73. package/components/SideBar/subcomponents/{Promotion → FooterComponent}/index.d.ts +1 -1
  74. package/components/SideBar/subcomponents/{Promotion → FooterComponent}/index.js +4 -4
  75. package/components/SideBar/subcomponents/{Promotion → FooterComponent}/styles.js +8 -2
  76. package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.d.ts +5 -0
  77. package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.js +37 -0
  78. package/components/SideBar/subcomponents/HeaderComponent/index.d.ts +1 -0
  79. package/components/SideBar/subcomponents/HeaderComponent/index.js +1 -0
  80. package/components/SideBar/subcomponents/HeaderComponent/styles.d.ts +2 -0
  81. package/components/SideBar/subcomponents/HeaderComponent/styles.js +40 -0
  82. package/components/SideBar/subcomponents/SideBarDesktop/index.js +4 -3
  83. package/components/SideBar/subcomponents/SideBarDesktop/styles.js +4 -32
  84. package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
  85. package/components/SideBar/subcomponents/TreeGroupItems/index.js +4 -3
  86. package/components/SideBar/subcomponents/TreeGroupItems/styles.js +112 -2
  87. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.d.ts +7 -0
  88. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.js +12 -0
  89. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/types.d.ts +4 -0
  90. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +9 -7
  91. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +1 -0
  92. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +11 -6
  93. package/components/SideBar/types.d.ts +12 -7
  94. package/components/areas/contexts/AreasContext/store.js +2 -2
  95. package/components/commercial/HamburgerMenu/HamburgerMenu.js +1 -2
  96. package/components/formatters/BooleanFormatter/BooleanFormatter.styles.js +1 -1
  97. package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
  98. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +4 -4
  99. package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.d.ts +1 -1
  100. package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +7 -6
  101. package/components/mui_extended/MenuItem/MenuItem.js +3 -2
  102. package/components/mui_extended/MenuItem/types.d.ts +4 -0
  103. package/components/mui_extended/TabContent/TabContent.js +2 -2
  104. package/components/mui_extended/TabContent/TabContent.styles.js +1 -1
  105. package/components/mui_extended/TabContent/types.d.ts +13 -1
  106. package/package.json +2 -2
  107. package/storybook/components/DataGrid/DataGrid.stories.d.ts +4 -0
  108. package/storybook/components/DataGrid/helpers/types.d.ts +3 -2
  109. package/storybook/components/SideBar/SideBar.stories.d.ts +5 -11
  110. package/storybook/components/SideBar/subcomponents/FooterComponentHost/FooterComponentHost.d.ts +4 -0
  111. package/storybook/components/SideBar/subcomponents/FooterComponentHost/index.d.ts +1 -0
  112. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.d.ts +4 -0
  113. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.stories.d.ts +14 -0
  114. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/constants.d.ts +1 -0
  115. package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/index.d.ts +1 -0
  116. package/storybook/components/SideBar/subcomponents/HeaderComponentHost/HeaderComponentHost.d.ts +5 -0
  117. package/storybook/components/SideBar/subcomponents/HeaderComponentHost/constants.d.ts +1 -0
  118. package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/HeaderComponentMicrofrontend.d.ts +5 -0
  119. package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/constants.d.ts +1 -0
  120. package/utils/getSizeStyles/getSizeStyles.d.ts +1 -1
  121. package/components/SideBar/subcomponents/HeaderSidebar/index.d.ts +0 -6
  122. package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +0 -2
  123. package/components/SideBar/subcomponents/HeaderSidebar/styles.js +0 -24
  124. package/components/SideBar/subcomponents/HeaderSidebar/types.d.ts +0 -5
  125. package/helpers/getFieldValueWithRow.js +0 -10
  126. package/storybook/components/SideBar/subcomponents/FooterPromotion/FooterPromotion.d.ts +0 -4
  127. package/storybook/components/SideBar/subcomponents/FooterPromotion/index.d.ts +0 -1
  128. /package/components/SideBar/subcomponents/{Promotion → FooterComponent}/styles.d.ts +0 -0
  129. /package/components/SideBar/subcomponents/{Promotion → FooterComponent}/types.d.ts +0 -0
  130. /package/storybook/components/SideBar/subcomponents/{FooterPromotion → FooterComponentHost}/constants.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- import { HeaderRendererProps } from 'react-data-grid';
2
- interface DraggableHeaderRendererProps<TRow> extends HeaderRendererProps<TRow> {
1
+ import { RenderHeaderCellProps } from 'react-data-grid';
2
+ interface DraggableHeaderRendererProps<TRow> extends RenderHeaderCellProps<TRow> {
3
3
  onColumnsReorder: (sourceKey: string, targetKey: string) => void;
4
4
  openPopover?: (anchorEl: HTMLElement, columnKey: string) => void;
5
5
  }
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { useModuleDictionary, useEnvironment } from "@m4l/core";
4
4
  import { useDrag, useDrop } from "react-dnd";
5
- import { HeaderRenderer } from "react-data-grid";
5
+ import { renderHeaderCell } from "react-data-grid";
6
6
  import { u as useFocusRef } from "../hooks/useFocusRef.js";
7
7
  import { u as useFilters } from "../../../hooks/useFilters.js";
8
8
  import { N as NameColumnIconStyled, n as NameColumnStyled, I as IconColumnStyled, o as DraggableHeaderRootStyled, B as ButtonHeaderActionsStyled, p as DraggableWrapperInputBaseStyled, q as IconSearchStyled, H as HeaderInputBaseStyled } from "../../../slots/DataGridSlot.js";
@@ -13,12 +13,13 @@ function DraggableHeaderRenderer(props) {
13
13
  const {
14
14
  onColumnsReorder,
15
15
  column,
16
- isCellSelected,
16
+ tabIndex: headerTabIndex,
17
17
  openPopover,
18
- onSort,
19
18
  ...others
20
19
  } = props;
21
- const { ref, tabIndex } = useFocusRef(isCellSelected);
20
+ const { ref, tabIndex } = useFocusRef(
21
+ headerTabIndex !== void 0 && headerTabIndex >= 0
22
+ );
22
23
  const { getLabel } = useModuleDictionary();
23
24
  const { size, classes, externalSortSettings, externalFilterSettings } = useDataGrid();
24
25
  const { host_static_assets, environment_assets } = useEnvironment();
@@ -133,6 +134,9 @@ function DraggableHeaderRenderer(props) {
133
134
  opacity: isDragging ? 0.5 : 1,
134
135
  backgroundColor: isOver ? "#ececec" : void 0
135
136
  },
137
+ onClick: (e) => {
138
+ e.stopPropagation();
139
+ },
136
140
  children: [
137
141
  /* @__PURE__ */ jsx(
138
142
  ButtonHeaderActionsStyled,
@@ -143,12 +147,10 @@ function DraggableHeaderRenderer(props) {
143
147
  openPopover?.(e.currentTarget, column.key);
144
148
  },
145
149
  children: /* @__PURE__ */ jsx(
146
- HeaderRenderer,
150
+ renderHeaderCell,
147
151
  {
148
152
  column: newColumn,
149
- isCellSelected,
150
- onSort: () => {
151
- },
153
+ tabIndex: headerTabIndex,
152
154
  ...others
153
155
  }
154
156
  )
@@ -128,7 +128,7 @@ function HeaderRenderClick(props) {
128
128
  paper: {
129
129
  ...paperProps,
130
130
  sx: {
131
- mt: !activeFilters ? 0.3 : 6.5,
131
+ mt: !activeFilters ? 0.3 : 5.6,
132
132
  ...paperProps?.sx
133
133
  }
134
134
  }
@@ -5,13 +5,13 @@ import { d as DATAGRID_SELECT_COLUMN_KEY } from "../../../constants.js";
5
5
  const filterColumnClassName = "filter-cell";
6
6
  const filterHeight = 35;
7
7
  function SelectGroupFormatter(props) {
8
- const [isRowSelected, onRowSelectionChange] = useRowSelection();
8
+ const { isRowSelected, onRowSelectionChange } = useRowSelection();
9
9
  const onChange = (checked) => {
10
10
  onRowSelectionChange({ row: props.row, checked, isShiftClick: false });
11
11
  };
12
12
  const cellFormater = SelectCellFormatter({
13
13
  value: isRowSelected,
14
- isCellSelected: props.isCellSelected,
14
+ tabIndex: props.tabIndex,
15
15
  onChange,
16
16
  "aria-label": "Select Group"
17
17
  });
@@ -32,7 +32,7 @@ function SelectFormatter(props) {
32
32
  SelectCellFormatter,
33
33
  {
34
34
  value: checkedRows?.has(rowKeyGetter(props.row)) || false,
35
- isCellSelected: props.isCellSelected,
35
+ tabIndex: props.tabIndex,
36
36
  onChange,
37
37
  "aria-label": "Select"
38
38
  }
@@ -53,7 +53,7 @@ const SelectColumnHeaderRenderer = (props) => {
53
53
  const allRowsChecked = rows.length === checkedRows?.size;
54
54
  return SelectCellFormatter({
55
55
  "aria-label": "Select All",
56
- isCellSelected: props.isCellSelected,
56
+ tabIndex: props.tabIndex,
57
57
  value: allRowsChecked,
58
58
  onChange: onAllRowsCheckedChange
59
59
  });
@@ -68,9 +68,9 @@ const SelectColumn = {
68
68
  sortable: false,
69
69
  frozen: true,
70
70
  type: "boolean",
71
- headerRenderer: SelectColumnHeaderRenderer,
72
- formatter: SelectFormatter,
73
- groupFormatter: SelectGroupFormatter
71
+ renderHeaderCell: SelectColumnHeaderRenderer,
72
+ renderCell: SelectFormatter,
73
+ renderGroupCell: SelectGroupFormatter
74
74
  };
75
75
  export {
76
76
  SelectColumn as S,
@@ -1,10 +1,20 @@
1
- import { EditorProps } from 'react-data-grid';
1
+ import { RenderEditCellProps } from 'react-data-grid';
2
2
  /**
3
- * TODO: Documentar
3
+ * Editor para campos de texto en el DataGrid.
4
+ * Permite editar valores de texto con navegación por teclado.
5
+ * @param row - Fila actual del DataGrid
6
+ * @param column - Columna actual del DataGrid
7
+ * @param onRowChange - Función para actualizar la fila
8
+ * @param onClose - Función para cerrar el editor
4
9
  */
5
- export declare function TextEditor<TRow, TSummaryRow>({ row, column, onRowChange, onClose, }: EditorProps<TRow, TSummaryRow>): import("react/jsx-runtime").JSX.Element;
10
+ export declare function TextEditor<TRow, TSummaryRow>({ row, column, onRowChange, onClose, }: RenderEditCellProps<TRow, TSummaryRow>): import("react/jsx-runtime").JSX.Element;
6
11
  /**
7
- * TODO: Documentar
12
+ * Editor para campos numéricos en el DataGrid.
13
+ * Permite editar valores numéricos con validación y navegación por teclado.
14
+ * @param row - Fila actual del DataGrid
15
+ * @param column - Columna actual del DataGrid
16
+ * @param onRowChange - Función para actualizar la fila
17
+ * @param onClose - Función para cerrar el editor
8
18
  */
9
- export declare function NumberEditor<TRow, TSummaryRow>({ row, column, onRowChange, onClose, }: EditorProps<TRow, TSummaryRow>): import("react/jsx-runtime").JSX.Element;
19
+ export declare function NumberEditor<TRow, TSummaryRow>({ row, column, onRowChange, onClose, }: RenderEditCellProps<TRow, TSummaryRow>): import("react/jsx-runtime").JSX.Element;
10
20
  export default TextEditor;
@@ -1,6 +1,6 @@
1
1
  import { Maybe } from '@m4l/core';
2
2
  import { Theme } from '@mui/material/styles';
3
- import { Column, RowsChangeData, FormatterProps } from 'react-data-grid';
3
+ import { Column, RowsChangeData, RenderCellProps, DataGridProps as NativeDataGridProps } from 'react-data-grid';
4
4
  import { MenuAction } from '../MenuActions/types';
5
5
  import { ActionsSlots, ColumnIconFormatterSlots, ColumnsConfigSlots, ControlNavigateSlots, DataGridSlots, RowsCountSlots, TableSlots, TextEditorSlots } from './slots/DataGridEnum';
6
6
  import { OverridesStyleRules } from '@mui/material/styles/overrides';
@@ -9,7 +9,8 @@ import { IGridConfig } from './contexts/DataGridContext/types';
9
9
  import { Sizes } from '@m4l/styles';
10
10
  import { PagerProps } from '../Pager';
11
11
  import { SettingsProps } from './subcomponents/HeaderActions/subcomponents/Settings/types';
12
- export type GridFormatterPropss<T, SR> = FormatterProps<T, SR>;
12
+ import { ReactNode } from 'react';
13
+ export type GridFormatterPropss<T, SR> = RenderCellProps<T, SR>;
13
14
  export type { ColumnUncertaintyFormatter, ColumnPointsFormatter, ColumnNestedValueFormatter, } from './formatters';
14
15
  export declare type ColumnType = 'string' | 'date' | 'number' | 'boolean' | 'custom';
15
16
  export declare type ColumnAlign = 'left' | 'center' | 'right';
@@ -31,9 +32,13 @@ declare module 'react-data-grid' {
31
32
  align?: ColumnAlign;
32
33
  isDraggable?: boolean;
33
34
  withFilter?: boolean;
34
- withinHeaderRenderer?: React.FunctionComponent<HeaderRendererProps<TRow, TSummaryRow>>;
35
+ withinHeaderRenderer?: React.FunctionComponent<RenderHeaderCellProps<TRow, TSummaryRow>>;
35
36
  customFilter?: (row: TRow, value: string) => boolean;
36
37
  customSort?: (a: TRow, b: TRow) => number;
38
+ /** @deprecated Usa renderCell en lugar de formatter. Este atributo será removido en una futura versión. */
39
+ formatter?: (props: any) => JSX.Element;
40
+ /** @deprecated Usa renderEditCell en lugar de editor. Este atributo será removido en una futura versión. */
41
+ editor?: Maybe<(props: RenderEditCellProps<TRow, TSummaryRow>) => ReactNode>;
37
42
  }
38
43
  }
39
44
  export declare type RowKey = string | number;
@@ -107,7 +112,7 @@ export interface FilterSettings {
107
112
  onChange: (event: FilterChangeEvent) => void;
108
113
  }
109
114
  /**--------------------Termina tipado de filtros-------------------------------------------- */
110
- export interface GridProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> {
115
+ export interface GridProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends Omit<NativeDataGridProps<TRow, TSummaryRow>, 'rowKeyGetter' | 'rows' | 'columns' | 'onRowsChange' | 'selectedRows' | 'onSelectedRowsChange' | 'renderers'> {
111
116
  id: string;
112
117
  withActions?: boolean;
113
118
  columns: readonly Column<TRow, TSummaryRow>[];
@@ -3,8 +3,8 @@ import { L as LOADING_ERROR_KEY_COMPONENT } from "../constants.js";
3
3
  import { L as LoadingErrorSlots } from "./LoadingErrorEnum.js";
4
4
  import { l as loadingErrorStyles } from "../LoadingError.styles.js";
5
5
  import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
6
- import { T as Typography } from "../../mui_extended/Typography/Typography.js";
7
6
  import { I as Image } from "../../Image/Image.js";
7
+ import { T as Typography } from "../../mui_extended/Typography/Typography.js";
8
8
  const LoadingErrorRootStyled = styled("div", {
9
9
  name: LOADING_ERROR_KEY_COMPONENT,
10
10
  slot: LoadingErrorSlots.root
@@ -56,11 +56,9 @@ const useNumberInput = (parameters) => {
56
56
  (event, field, fieldValue, reason) => {
57
57
  if (field === "value" && typeof fieldValue !== "string") {
58
58
  switch (reason) {
59
- // only a blur event will dispatch `numberInput:clamp`
60
59
  case "numberInput:inputChange":
61
60
  onChange?.(event, fieldValue);
62
61
  break;
63
- // only a blur event will dispatch `numberInput:clamp`
64
62
  case "numberInput:clamp":
65
63
  onChange?.(event, fieldValue);
66
64
  break;
@@ -24,7 +24,9 @@ const SideBar = memo((props) => {
24
24
  companyName,
25
25
  companySlogan,
26
26
  urlIconPrefix = `${host_static_assets}/${environment_assets}${PATH_ICONS}`,
27
- promotion
27
+ headerComponent,
28
+ footerComponent,
29
+ variant = "host"
28
30
  } = props;
29
31
  const menuDataWithState = useMemo(() => getMenuDataWithState({ menuData: menuData ?? getDataToSkeleton(), moduleSelectedId }), [menuData, moduleSelectedId]);
30
32
  const isMobile = useIsMobile();
@@ -46,7 +48,9 @@ const SideBar = memo((props) => {
46
48
  companyName,
47
49
  companySlogan,
48
50
  urlIconPrefix,
49
- promotion
51
+ variant,
52
+ headerComponent,
53
+ footerComponent
50
54
  },
51
55
  children: !isMobile ? /* @__PURE__ */ jsx(SideBarDesktop, {}) : /* @__PURE__ */ jsx(SideBarMobile, {})
52
56
  }
@@ -4,29 +4,31 @@ export declare const CONTAINER_BTN_ANCHORED = "M4LSideBarButtonAnchored";
4
4
  export declare const LIST_MENU_ITEM = "M4LListMenuItem";
5
5
  export declare const PATH_ICONS = "/frontend/domain/microfrontends/";
6
6
  export declare const PATH_ARROW_DOWN_ICON = "frontend/components/sidebar/assets/icons/ChevronRight.svg";
7
- export declare const PATH_ARROW_RIGHT_ICON = "frontend/components/sidebar/assets/icons/arrow_right.svg";
7
+ export declare const PATH_ARROW_RIGHT_ICON = "frontend/components/sidebar/assets/icons/panel-left-close.svg";
8
8
  export declare const ALL_SIDEBAR_SLOTS: {
9
9
  contentComponentRoot: ContentComponentSlots.contentComponentRoot;
10
- contentComponentHide: ContentComponentSlots.contentComponentHide;
11
- containerTreeItemsAndPromotion: ContentComponentSlots.containerTreeItemsAndPromotion;
10
+ containerTreeItemsHeaderFooter: ContentComponentSlots.containerTreeItemsHeaderFooter;
12
11
  containerNodeMenuItem: ContentComponentSlots.containerNodeMenuItem;
13
12
  containerNodeMenuItemMain: ContentComponentSlots.containerNodeMenuItemMain;
14
13
  menuItemMain: ContentComponentSlots.menuItemMain;
15
14
  containerFooter: SideBarFooterSlots.containerFooter;
16
- containerHeaderSidebarRoot: HeaderSidebarSlots.containerHeaderSidebarRoot;
17
- containerTitleSubtitle: HeaderSidebarSlots.containerTitleSubtitle;
15
+ headerContainerComponent: HeaderSidebarSlots.headerContainerComponent;
16
+ buttonAnchored: HeaderSidebarSlots.buttonAnchored;
18
17
  containerTreeGroupItems: ContentGroupsSlots.containerTreeGroupItems;
19
18
  containerContentGroups: ContentGroupsSlots.containerContentGroups;
20
19
  containerContentTitle: ContentGroupsSlots.containerContentTitle;
21
20
  containerContentNavItems: ContentGroupsSlots.containerContentNavItems;
22
21
  containerContentItem: ContentGroupsSlots.containerContentItem;
23
22
  containerArrowIconRoot: ContentGroupsSlots.containerArrowIconRoot;
23
+ containerAdornmentIcon: ContentGroupsSlots.containerAdornmentIcon;
24
+ wrapperMenuItem: ContentGroupsSlots.wrapperMenuItem;
25
+ backgroundAdornmentIcon: ContentGroupsSlots.backgroundAdornmentIcon;
24
26
  containerSideBarMobile: SideBarMobileSlots.containerSideBarMobile;
25
27
  containerDesktopRoot: SideBarDesktopSlots.containerDesktopRoot;
26
28
  containerDesktopContent: SideBarDesktopSlots.containerDesktopContent;
27
- containerBtnAnchored: SideBarDesktopSlots.containerBtnAnchored;
28
29
  };
29
30
  export declare const CLASS_NAME_IS_ROOT = "is-root";
30
31
  export declare const CLASS_NAME_MENU_ACTIVE = "menu-active";
31
32
  export declare const CLASS_NAME_ITEM_IN_TREE_ACTIVE = "item-in-tree-active";
32
33
  export declare const CLASS_NAME_HAS_CHILDREN = "has-children";
34
+ export declare const CLASS_NAME_ITEM_CLOSED = "item-closed";
@@ -1,9 +1,8 @@
1
1
  import { C as ContentComponentSlots, S as SideBarFooterSlots, H as HeaderSidebarSlots, a as ContentGroupsSlots, b as SideBarMobileSlots, c as SideBarDesktopSlots } from "./slots/SideBarEnum.js";
2
2
  const SIDEBAR_KEY_COMPONENT = "M4LSideBar";
3
- const CONTAINER_BTN_ANCHORED = "M4LSideBarButtonAnchored";
4
3
  const PATH_ICONS = "/frontend/domain/microfrontends/";
5
4
  const PATH_ARROW_DOWN_ICON = "frontend/components/sidebar/assets/icons/ChevronRight.svg";
6
- const PATH_ARROW_RIGHT_ICON = "frontend/components/sidebar/assets/icons/arrow_right.svg";
5
+ const PATH_ARROW_RIGHT_ICON = "frontend/components/sidebar/assets/icons/panel-left-close.svg";
7
6
  const ALL_SIDEBAR_SLOTS = {
8
7
  ...SideBarDesktopSlots,
9
8
  ...SideBarMobileSlots,
@@ -16,15 +15,16 @@ const CLASS_NAME_IS_ROOT = "is-root";
16
15
  const CLASS_NAME_MENU_ACTIVE = "menu-active";
17
16
  const CLASS_NAME_ITEM_IN_TREE_ACTIVE = "item-in-tree-active";
18
17
  const CLASS_NAME_HAS_CHILDREN = "has-children";
18
+ const CLASS_NAME_ITEM_CLOSED = "item-closed";
19
19
  export {
20
20
  ALL_SIDEBAR_SLOTS as A,
21
- CONTAINER_BTN_ANCHORED as C,
21
+ CLASS_NAME_IS_ROOT as C,
22
22
  PATH_ICONS as P,
23
23
  SIDEBAR_KEY_COMPONENT as S,
24
- PATH_ARROW_RIGHT_ICON as a,
25
- CLASS_NAME_IS_ROOT as b,
26
- CLASS_NAME_MENU_ACTIVE as c,
27
- CLASS_NAME_ITEM_IN_TREE_ACTIVE as d,
28
- CLASS_NAME_HAS_CHILDREN as e,
24
+ CLASS_NAME_MENU_ACTIVE as a,
25
+ CLASS_NAME_ITEM_IN_TREE_ACTIVE as b,
26
+ CLASS_NAME_HAS_CHILDREN as c,
27
+ CLASS_NAME_ITEM_CLOSED as d,
28
+ PATH_ARROW_RIGHT_ICON as e,
29
29
  PATH_ARROW_DOWN_ICON as f
30
30
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx, Fragment } from "react/jsx-runtime";
2
- import { useState, createContext } from "react";
2
+ import { createContext } from "react";
3
3
  import { g as getComponentClasses } from "../../../../utils/getComponentSlotRoot.js";
4
4
  import { A as ALL_SIDEBAR_SLOTS, S as SIDEBAR_KEY_COMPONENT } from "../../constants.js";
5
5
  const classes = getComponentClasses(SIDEBAR_KEY_COMPONENT, ALL_SIDEBAR_SLOTS);
@@ -19,15 +19,12 @@ const initialState = {
19
19
  companyName: "",
20
20
  companySlogan: "",
21
21
  classes,
22
- promotion: /* @__PURE__ */ jsx(Fragment, {}),
23
- isHover: false,
24
- setIsHover: (_isHover) => {
25
- }
22
+ headerComponent: /* @__PURE__ */ jsx(Fragment, {}),
23
+ footerComponent: /* @__PURE__ */ jsx(Fragment, {})
26
24
  };
27
25
  const SideBarContext = createContext(initialState);
28
26
  const SideBarProvider = (props) => {
29
27
  const { value, children } = props;
30
- const [isHover, setIsHover] = useState(false);
31
28
  const {
32
29
  anchored,
33
30
  visible,
@@ -42,7 +39,9 @@ const SideBarProvider = (props) => {
42
39
  companyName,
43
40
  companySlogan,
44
41
  urlIconPrefix,
45
- promotion
42
+ headerComponent,
43
+ footerComponent,
44
+ variant
46
45
  } = value;
47
46
  return (
48
47
  // Proporcionar el contexto con las propiedades desestructuradas
@@ -64,9 +63,9 @@ const SideBarProvider = (props) => {
64
63
  companySlogan,
65
64
  urlIconPrefix,
66
65
  classes,
67
- promotion,
68
- isHover,
69
- setIsHover
66
+ headerComponent,
67
+ footerComponent,
68
+ variant
70
69
  },
71
70
  children
72
71
  }
@@ -17,15 +17,7 @@ export interface SideBarProviderValue extends SideBarProps {
17
17
  /**
18
18
  * Promoción del sidebar, se renderiza en el footer del sidebar
19
19
  */
20
- promotion: SideBarProps['promotion'];
21
- /**
22
- * Indica si el sidebar está siendo hoverado
23
- */
24
- isHover: boolean;
25
- /**
26
- * Función para establecer el estado de hover
27
- */
28
- setIsHover: (value: boolean) => void;
20
+ footerComponent: SideBarProps['footerComponent'];
29
21
  }
30
22
  /**
31
23
  * Propiedades para el proveedor del contexto Sidebar.
@@ -38,5 +30,5 @@ export interface SideBarProviderProps {
38
30
  /**
39
31
  * Promoción del sidebar, se renderiza en el footer del sidebar
40
32
  */
41
- promotion?: SideBarProps['promotion'];
33
+ promotion?: SideBarProps['footerComponent'];
42
34
  }
@@ -1,7 +1,6 @@
1
1
  export declare enum SideBarDesktopSlots {
2
2
  containerDesktopRoot = "containerDesktopRoot",
3
- containerDesktopContent = "containerDesktopContent",
4
- containerBtnAnchored = "containerBtnAnchored"
3
+ containerDesktopContent = "containerDesktopContent"
5
4
  }
6
5
  export declare enum SideBarMobileSlots {
7
6
  containerSideBarMobile = "containerSideBarMobile"
@@ -12,19 +11,21 @@ export declare enum ContentGroupsSlots {
12
11
  containerContentTitle = "containerContentTitle",
13
12
  containerContentNavItems = "containerContentNavItems",
14
13
  containerContentItem = "containerContentItem",
15
- containerArrowIconRoot = "containerArrowIconRoot"
14
+ containerArrowIconRoot = "containerArrowIconRoot",
15
+ containerAdornmentIcon = "containerAdornmentIcon",
16
+ wrapperMenuItem = "wrapperMenuItem",
17
+ backgroundAdornmentIcon = "backgroundAdornmentIcon"
16
18
  }
17
19
  export declare enum HeaderSidebarSlots {
18
- containerHeaderSidebarRoot = "containerHeaderSidebarRoot",
19
- containerTitleSubtitle = "containerTitleSubtitle"
20
+ headerContainerComponent = "headerContainerComponent",
21
+ buttonAnchored = "buttonAnchored"
20
22
  }
21
23
  export declare enum SideBarFooterSlots {
22
24
  containerFooter = "containerFooter"
23
25
  }
24
26
  export declare enum ContentComponentSlots {
25
27
  contentComponentRoot = "contentComponentRoot",
26
- contentComponentHide = "contentComponentHide",
27
- containerTreeItemsAndPromotion = "containerTreeItemsAndPromotion",
28
+ containerTreeItemsHeaderFooter = "containerTreeItemsHeaderFooter",
28
29
  containerNodeMenuItem = "containerNodeMenuItem",
29
30
  containerNodeMenuItemMain = "containerNodeMenuItemMain",
30
31
  menuItemMain = "menuItemMain"
@@ -1,7 +1,6 @@
1
1
  var SideBarDesktopSlots = /* @__PURE__ */ ((SideBarDesktopSlots2) => {
2
2
  SideBarDesktopSlots2["containerDesktopRoot"] = "containerDesktopRoot";
3
3
  SideBarDesktopSlots2["containerDesktopContent"] = "containerDesktopContent";
4
- SideBarDesktopSlots2["containerBtnAnchored"] = "containerBtnAnchored";
5
4
  return SideBarDesktopSlots2;
6
5
  })(SideBarDesktopSlots || {});
7
6
  var SideBarMobileSlots = /* @__PURE__ */ ((SideBarMobileSlots2) => {
@@ -15,11 +14,14 @@ var ContentGroupsSlots = /* @__PURE__ */ ((ContentGroupsSlots2) => {
15
14
  ContentGroupsSlots2["containerContentNavItems"] = "containerContentNavItems";
16
15
  ContentGroupsSlots2["containerContentItem"] = "containerContentItem";
17
16
  ContentGroupsSlots2["containerArrowIconRoot"] = "containerArrowIconRoot";
17
+ ContentGroupsSlots2["containerAdornmentIcon"] = "containerAdornmentIcon";
18
+ ContentGroupsSlots2["wrapperMenuItem"] = "wrapperMenuItem";
19
+ ContentGroupsSlots2["backgroundAdornmentIcon"] = "backgroundAdornmentIcon";
18
20
  return ContentGroupsSlots2;
19
21
  })(ContentGroupsSlots || {});
20
22
  var HeaderSidebarSlots = /* @__PURE__ */ ((HeaderSidebarSlots2) => {
21
- HeaderSidebarSlots2["containerHeaderSidebarRoot"] = "containerHeaderSidebarRoot";
22
- HeaderSidebarSlots2["containerTitleSubtitle"] = "containerTitleSubtitle";
23
+ HeaderSidebarSlots2["headerContainerComponent"] = "headerContainerComponent";
24
+ HeaderSidebarSlots2["buttonAnchored"] = "buttonAnchored";
23
25
  return HeaderSidebarSlots2;
24
26
  })(HeaderSidebarSlots || {});
25
27
  var SideBarFooterSlots = /* @__PURE__ */ ((SideBarFooterSlots2) => {
@@ -28,8 +30,7 @@ var SideBarFooterSlots = /* @__PURE__ */ ((SideBarFooterSlots2) => {
28
30
  })(SideBarFooterSlots || {});
29
31
  var ContentComponentSlots = /* @__PURE__ */ ((ContentComponentSlots2) => {
30
32
  ContentComponentSlots2["contentComponentRoot"] = "contentComponentRoot";
31
- ContentComponentSlots2["contentComponentHide"] = "contentComponentHide";
32
- ContentComponentSlots2["containerTreeItemsAndPromotion"] = "containerTreeItemsAndPromotion";
33
+ ContentComponentSlots2["containerTreeItemsHeaderFooter"] = "containerTreeItemsHeaderFooter";
33
34
  ContentComponentSlots2["containerNodeMenuItem"] = "containerNodeMenuItem";
34
35
  ContentComponentSlots2["containerNodeMenuItemMain"] = "containerNodeMenuItemMain";
35
36
  ContentComponentSlots2["menuItemMain"] = "menuItemMain";
@@ -4,9 +4,6 @@ export declare const ContainerDesktopRootStyled: import('@emotion/styled').Style
4
4
  export declare const ContainerDesktopContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
5
5
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
6
6
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
7
- export declare const ContainerBtnAnchoredStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
8
- ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
9
- }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
10
7
  export declare const ContainerTreeGroupItemsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
11
8
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
12
9
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
@@ -25,12 +22,21 @@ export declare const ContainerContentItemStyled: import('@emotion/styled').Style
25
22
  export declare const ContainerArrowIconRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
26
23
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
27
24
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
28
- export declare const ContainerHeaderSidebarRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
25
+ export declare const HeaderContainerComponentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
29
26
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
30
27
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
31
- export declare const ContainerTitleSubtitleStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
28
+ export declare const WrapperMenuItemStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
29
+ ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
30
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
31
+ export declare const ContainerAdornmentIconStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
32
+ ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
33
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
34
+ export declare const BackgroundAdornmentIconStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
32
35
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
33
36
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
37
+ export declare const ButtonAnchoredStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "placement" | "rotationAngle" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
38
+ ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
39
+ }, {}, {}>;
34
40
  export declare const ContainerFooterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
35
41
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
36
42
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
@@ -40,10 +46,7 @@ export declare const ContainerSideBarMobileStyled: import('@emotion/styled').Sty
40
46
  export declare const ContentComponentRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
41
47
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
42
48
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
43
- export declare const ContentComponentHideStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
44
- ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
45
- }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
46
- export declare const ContainerTreeItemsAndPromotionStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
49
+ export declare const ContainerTreeItemsHeaderFooterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
47
50
  ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
48
51
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
49
52
  export declare const ContainerNodeMenuItemStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
@@ -1,7 +1,8 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { c as SideBarDesktopSlots, b as SideBarMobileSlots, C as ContentComponentSlots, S as SideBarFooterSlots, a as ContentGroupsSlots, H as HeaderSidebarSlots } from "./SideBarEnum.js";
2
+ import { c as SideBarDesktopSlots, b as SideBarMobileSlots, C as ContentComponentSlots, S as SideBarFooterSlots, H as HeaderSidebarSlots, a as ContentGroupsSlots } from "./SideBarEnum.js";
3
3
  import { S as SIDEBAR_KEY_COMPONENT } from "../constants.js";
4
4
  import { s as sideBarStyles } from "../styles.js";
5
+ import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
5
6
  import { M as MenuItem } from "../../mui_extended/MenuItem/MenuItem.js";
6
7
  const ContainerDesktopRootStyled = styled("section", {
7
8
  name: SIDEBAR_KEY_COMPONENT,
@@ -11,10 +12,6 @@ const ContainerDesktopContentStyled = styled("div", {
11
12
  name: SIDEBAR_KEY_COMPONENT,
12
13
  slot: SideBarDesktopSlots.containerDesktopContent
13
14
  })(sideBarStyles?.containerDesktopContent);
14
- const ContainerBtnAnchoredStyled = styled("div", {
15
- name: SIDEBAR_KEY_COMPONENT,
16
- slot: SideBarDesktopSlots.containerBtnAnchored
17
- })(sideBarStyles?.containerBtnAnchored);
18
15
  const ContainerTreeGroupItemsStyled = styled("section", {
19
16
  name: SIDEBAR_KEY_COMPONENT,
20
17
  slot: ContentGroupsSlots.containerTreeGroupItems
@@ -39,14 +36,26 @@ const ContainerArrowIconRootStyled = styled("div", {
39
36
  name: SIDEBAR_KEY_COMPONENT,
40
37
  slot: ContentGroupsSlots.containerArrowIconRoot
41
38
  })(sideBarStyles?.containerArrowIconRoot);
42
- styled("section", {
39
+ const HeaderContainerComponentStyled = styled("section", {
43
40
  name: SIDEBAR_KEY_COMPONENT,
44
- slot: HeaderSidebarSlots.containerHeaderSidebarRoot
45
- })(sideBarStyles?.containerHeaderSidebarRoot);
46
- styled("div", {
41
+ slot: HeaderSidebarSlots.headerContainerComponent
42
+ })(sideBarStyles?.headerContainerComponent);
43
+ const WrapperMenuItemStyled = styled("div", {
44
+ name: SIDEBAR_KEY_COMPONENT,
45
+ slot: ContentGroupsSlots.wrapperMenuItem
46
+ })(sideBarStyles?.wrapperMenuItem);
47
+ const ContainerAdornmentIconStyled = styled("div", {
47
48
  name: SIDEBAR_KEY_COMPONENT,
48
- slot: HeaderSidebarSlots.containerTitleSubtitle
49
- })(sideBarStyles?.containerTitleSubtitle);
49
+ slot: ContentGroupsSlots.containerAdornmentIcon
50
+ })(sideBarStyles?.containerAdornmentIcon);
51
+ const BackgroundAdornmentIconStyled = styled("div", {
52
+ name: SIDEBAR_KEY_COMPONENT,
53
+ slot: ContentGroupsSlots.backgroundAdornmentIcon
54
+ })(sideBarStyles?.backgroundAdornmentIcon);
55
+ const ButtonAnchoredStyled = styled(IconButton, {
56
+ name: SIDEBAR_KEY_COMPONENT,
57
+ slot: HeaderSidebarSlots.buttonAnchored
58
+ })(sideBarStyles?.buttonAnchored);
50
59
  const ContainerFooterStyled = styled("div", {
51
60
  name: SIDEBAR_KEY_COMPONENT,
52
61
  slot: SideBarFooterSlots.containerFooter
@@ -59,14 +68,10 @@ const ContentComponentRootStyled = styled("div", {
59
68
  name: SIDEBAR_KEY_COMPONENT,
60
69
  slot: ContentComponentSlots.contentComponentRoot
61
70
  })(sideBarStyles?.contentComponentRoot);
62
- const ContentComponentHideStyled = styled("div", {
63
- name: SIDEBAR_KEY_COMPONENT,
64
- slot: ContentComponentSlots.contentComponentHide
65
- })(sideBarStyles?.contentComponentHide);
66
- const ContainerTreeItemsAndPromotionStyled = styled("div", {
71
+ const ContainerTreeItemsHeaderFooterStyled = styled("div", {
67
72
  name: SIDEBAR_KEY_COMPONENT,
68
- slot: ContentComponentSlots.containerTreeItemsAndPromotion
69
- })(sideBarStyles?.containerTreeItemsAndPromotion);
73
+ slot: ContentComponentSlots.containerTreeItemsHeaderFooter
74
+ })(sideBarStyles?.containerTreeItemsHeaderFooter);
70
75
  const ContainerNodeMenuItemStyled = styled("div", {
71
76
  name: SIDEBAR_KEY_COMPONENT,
72
77
  slot: ContentComponentSlots.containerNodeMenuItem
@@ -80,18 +85,21 @@ const MenuItemMainStyled = styled(MenuItem, {
80
85
  slot: ContentComponentSlots.menuItemMain
81
86
  })(sideBarStyles?.menuItemMain);
82
87
  export {
88
+ ButtonAnchoredStyled as B,
83
89
  ContentComponentRootStyled as C,
90
+ HeaderContainerComponentStyled as H,
84
91
  MenuItemMainStyled as M,
85
- ContainerBtnAnchoredStyled as a,
86
- ContentComponentHideStyled as b,
87
- ContainerTreeItemsAndPromotionStyled as c,
88
- ContainerFooterStyled as d,
89
- ContainerDesktopContentStyled as e,
90
- ContainerDesktopRootStyled as f,
91
- ContainerSideBarMobileStyled as g,
92
- ContainerTreeGroupItemsStyled as h,
93
- ContainerContentGroupsStyled as i,
94
- ContainerContentTitleStyled as j,
92
+ WrapperMenuItemStyled as W,
93
+ ContainerTreeItemsHeaderFooterStyled as a,
94
+ ContainerFooterStyled as b,
95
+ ContainerDesktopContentStyled as c,
96
+ ContainerDesktopRootStyled as d,
97
+ ContainerSideBarMobileStyled as e,
98
+ ContainerTreeGroupItemsStyled as f,
99
+ ContainerContentGroupsStyled as g,
100
+ ContainerContentTitleStyled as h,
101
+ ContainerAdornmentIconStyled as i,
102
+ BackgroundAdornmentIconStyled as j,
95
103
  ContainerArrowIconRootStyled as k,
96
104
  ContainerNodeMenuItemStyled as l,
97
105
  ContainerNodeMenuItemMainStyled as m