@m4l/components 9.2.62-B10072025beta.2 → 9.2.62-B11072025beta.2
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/components/AppBar/AppBar.js +12 -10
- package/components/AppBar/constants.d.ts +1 -1
- package/components/AppBar/constants.js +1 -1
- package/components/AppBar/slots/AppBarEnum.d.ts +1 -5
- package/components/AppBar/slots/AppBarEnum.js +0 -4
- package/components/AppBar/slots/AppBarSlots.d.ts +4 -18
- package/components/AppBar/slots/AppBarSlots.js +3 -27
- package/components/AppBar/styles.js +0 -42
- package/components/AppBar/types.d.ts +8 -0
- package/components/Chip/ChipStyles.js +1 -1
- package/components/DataGrid/Datagrid.styles.js +21 -10
- package/components/DataGrid/formatters/ColumnIconFormatter/formatter.d.ts +2 -1
- package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +6 -42
- package/components/DataGrid/formatters/ColumnIconFormatter/helpers/renderIcon.d.ts +8 -0
- package/components/DataGrid/formatters/ColumnIconFormatter/helpers/renderIcon.js +58 -0
- package/components/DataGrid/formatters/ColumnIconFormatter/helpers/renderMultipleIcons.d.ts +7 -0
- package/components/DataGrid/formatters/ColumnIconFormatter/helpers/renderMultipleIcons.js +19 -0
- package/components/DataGrid/formatters/ColumnIconFormatter/types.d.ts +10 -3
- package/components/DataGrid/formatters/ColumnIconFormatter/useColumnIcon.d.ts +2 -2
- package/components/DataGrid/slots/DataGridEnum.d.ts +3 -0
- package/components/DataGrid/slots/DataGridEnum.js +6 -1
- package/components/DataGrid/slots/DataGridSlot.d.ts +6 -0
- package/components/DataGrid/slots/DataGridSlot.js +24 -19
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +1 -1
- package/components/DataGrid/subcomponents/HeaderActions/index.js +1 -1
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/index.js +2 -1
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/RowsCount/index.js +1 -1
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +1 -1
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.js +1 -1
- package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.js +2 -1
- package/components/DataGrid/subcomponents/Table/index.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +14 -2
- package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
- package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
- package/components/DataGrid/types.d.ts +3 -2
- package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/ObjectLogs/ObjectLogs.styles.js +2 -1
- package/components/ObjectLogs/slots/ObjectLogsEnum.d.ts +1 -0
- package/components/ObjectLogs/slots/ObjectLogsEnum.js +1 -0
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +3 -0
- package/components/ObjectLogs/slots/ObjectLogsSlots.js +7 -2
- package/components/PropertyValue/PropertyValue.styles.js +1 -1
- package/components/SideBar/SideBar.js +6 -2
- package/components/SideBar/constants.d.ts +8 -6
- package/components/SideBar/constants.js +8 -8
- package/components/SideBar/context/sideBarContext/index.js +9 -10
- package/components/SideBar/context/sideBarContext/types.d.ts +2 -10
- package/components/SideBar/slots/SideBarEnum.d.ts +8 -7
- package/components/SideBar/slots/SideBarEnum.js +6 -5
- package/components/SideBar/slots/SideBarSlots.d.ts +12 -9
- package/components/SideBar/slots/SideBarSlots.js +36 -28
- package/components/SideBar/styles.js +3 -3
- package/components/SideBar/subcomponents/ContentComponent/index.js +12 -68
- package/components/SideBar/subcomponents/ContentComponent/style.js +134 -107
- package/components/SideBar/subcomponents/{Promotion → FooterComponent}/index.d.ts +1 -1
- package/components/SideBar/subcomponents/{Promotion → FooterComponent}/index.js +4 -4
- package/components/SideBar/subcomponents/{Promotion → FooterComponent}/styles.js +8 -2
- package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.d.ts +5 -0
- package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.js +37 -0
- package/components/SideBar/subcomponents/HeaderComponent/index.d.ts +1 -0
- package/components/SideBar/subcomponents/HeaderComponent/index.js +1 -0
- package/components/SideBar/subcomponents/HeaderComponent/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/HeaderComponent/styles.js +40 -0
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +4 -3
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +4 -32
- package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/index.js +4 -3
- package/components/SideBar/subcomponents/TreeGroupItems/styles.js +112 -2
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.d.ts +7 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.js +12 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/types.d.ts +4 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +9 -7
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +1 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +11 -6
- package/components/SideBar/types.d.ts +12 -7
- package/components/commercial/HamburgerMenu/HamburgerMenu.js +1 -2
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +7 -4
- package/components/formatters/BooleanFormatter/BooleanFormatter.styles.js +9 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterEnum.d.ts +2 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterEnum.js +1 -0
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +3 -0
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.js +6 -1
- package/components/formatters/BooleanFormatter/types.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +1 -2
- package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +1 -2
- package/components/hook-form/RHFDateTime/styles.d.ts +1 -0
- package/components/hook-form/RHFNumberInput/RHFNumberInput.styles.js +1 -2
- package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +5 -2
- package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js +6 -6
- package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +7 -8
- package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +5 -4
- package/components/hook-form/RHFPeriod/subcomponents/Period/types.d.ts +2 -2
- package/components/hook-form/RHFSelect/RHFSelect.styles.js +1 -2
- package/components/mui_extended/MenuItem/MenuItem.js +1 -1
- package/components/mui_extended/TabContent/TabContent.js +2 -2
- package/components/mui_extended/TabContent/TabContent.styles.js +1 -1
- package/components/mui_extended/TabContent/types.d.ts +1 -1
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +1 -1
- package/index.js +8 -8
- package/package.json +3 -3
- package/storybook/components/DataGrid/DataGrid.stories.d.ts +8 -0
- package/storybook/components/DataGrid/helpers/icons.d.ts +6 -0
- package/storybook/components/DataGrid/helpers/types.d.ts +12 -0
- package/storybook/components/DataGrid/helpers/useColumns.d.ts +2 -1
- package/storybook/components/DataGrid/helpers/useSeed.d.ts +1 -1
- package/storybook/components/SideBar/SideBar.stories.d.ts +5 -11
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/FooterComponentHost.d.ts +4 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/index.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.d.ts +4 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.stories.d.ts +14 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/constants.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/index.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentHost/HeaderComponentHost.d.ts +5 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentHost/constants.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/HeaderComponentMicrofrontend.d.ts +5 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/constants.d.ts +1 -0
- package/utils/getSizeStyles/getSizeStyles.d.ts +1 -1
- package/components/SideBar/subcomponents/HeaderSidebar/index.d.ts +0 -6
- package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/HeaderSidebar/styles.js +0 -24
- package/components/SideBar/subcomponents/HeaderSidebar/types.d.ts +0 -5
- package/storybook/components/SideBar/subcomponents/FooterPromotion/FooterPromotion.d.ts +0 -4
- package/storybook/components/SideBar/subcomponents/FooterPromotion/index.d.ts +0 -1
- /package/components/SideBar/subcomponents/{Promotion → FooterComponent}/styles.d.ts +0 -0
- /package/components/SideBar/subcomponents/{Promotion → FooterComponent}/types.d.ts +0 -0
- /package/storybook/components/SideBar/subcomponents/{FooterPromotion → FooterComponentHost}/constants.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { MenuList, InputBase } from "@mui/material";
|
|
3
3
|
import { D as DATAGRID_PREFIX_NAME } from "../constants.js";
|
|
4
|
-
import { D as DataGridSlots, T as TextEditorSlots, A as ActionsSlots, b as TableSlots, C as ControlNavigateSlots, R as RowsCountSlots, a as ColumnsConfigSlots } from "./DataGridEnum.js";
|
|
4
|
+
import { D as DataGridSlots, T as TextEditorSlots, A as ActionsSlots, b as TableSlots, C as ControlNavigateSlots, c as ColumnIconFormatterSlots, R as RowsCountSlots, a as ColumnsConfigSlots } from "./DataGridEnum.js";
|
|
5
5
|
import { d as dataGridStyles } from "../Datagrid.styles.js";
|
|
6
6
|
import { I as Icon } from "../../Icon/Icon.js";
|
|
7
7
|
const DataGridRootStyled = styled("div", {
|
|
@@ -120,6 +120,10 @@ const ControlNavigateStyled = styled("div", {
|
|
|
120
120
|
name: DATAGRID_PREFIX_NAME,
|
|
121
121
|
slot: ControlNavigateSlots.controlNavigate
|
|
122
122
|
})(dataGridStyles.controlNavigate);
|
|
123
|
+
const ColumnIconFormatterStyled = styled("div", {
|
|
124
|
+
name: DATAGRID_PREFIX_NAME,
|
|
125
|
+
slot: ColumnIconFormatterSlots.columnIconFormatter
|
|
126
|
+
})(dataGridStyles.columnIconFormatter);
|
|
123
127
|
export {
|
|
124
128
|
ActionsRootStyled as A,
|
|
125
129
|
ButtonHeaderActionsStyled as B,
|
|
@@ -132,22 +136,23 @@ export {
|
|
|
132
136
|
RowsCountRootStyled as R,
|
|
133
137
|
TableWrapperDataGridStyled as T,
|
|
134
138
|
WrapperSkeletonStyled as W,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
139
|
+
ColumnIconFormatterStyled as a,
|
|
140
|
+
ControlNavigateStyled as b,
|
|
141
|
+
ActionsConfigContainerStyled as c,
|
|
142
|
+
ContainerLeftActionsStyled as d,
|
|
143
|
+
ContainerRightActionsStyled as e,
|
|
144
|
+
RowsCountLabelStyled as f,
|
|
145
|
+
RowsCountValueStyled as g,
|
|
146
|
+
ColumnsConfigWrapperStyled as h,
|
|
147
|
+
ColumnsConfigDataGridStyled as i,
|
|
148
|
+
ColumnsConfigSelColumnsStyled as j,
|
|
149
|
+
ColumnsConfigActiosStyled as k,
|
|
150
|
+
ContentModalSettingStyled as l,
|
|
151
|
+
TableContainerStyled as m,
|
|
152
|
+
NameColumnStyled as n,
|
|
153
|
+
DraggableHeaderRootStyled as o,
|
|
154
|
+
DraggableWrapperInputBaseStyled as p,
|
|
155
|
+
IconSearchStyled as q,
|
|
156
|
+
HeaderRenderClickStyled as r,
|
|
157
|
+
InputTextEditorStyled as s
|
|
153
158
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIsMobile } from "@m4l/graphics";
|
|
3
|
-
import {
|
|
3
|
+
import { b as ControlNavigateStyled } from "../../slots/DataGridSlot.js";
|
|
4
4
|
import { R as RowsCount } from "../HeaderActions/subcomponents/RowsCount/index.js";
|
|
5
5
|
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
6
6
|
import { P as Pager } from "../../../Pager/Pager.js";
|
|
@@ -5,7 +5,7 @@ import { D as Density } from "./subcomponents/Density/index.js";
|
|
|
5
5
|
import { u as useDataGrid } from "../../hooks/useDataGrid.js";
|
|
6
6
|
import { useIsMobile } from "@m4l/graphics";
|
|
7
7
|
import { M as MobileMenuActions } from "./subcomponents/MobileMenuActions/index.js";
|
|
8
|
-
import { A as ActionsRootStyled,
|
|
8
|
+
import { A as ActionsRootStyled, c as ActionsConfigContainerStyled, d as ContainerLeftActionsStyled, e as ContainerRightActionsStyled } from "../../slots/DataGridSlot.js";
|
|
9
9
|
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
10
10
|
function HeaderActions(props) {
|
|
11
11
|
const {
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
4
|
import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
|
|
5
|
-
import { R as RowsCountRootStyled,
|
|
5
|
+
import { R as RowsCountRootStyled, f as RowsCountLabelStyled, g as RowsCountValueStyled } from "../../../../slots/DataGridSlot.js";
|
|
6
6
|
function RowsCount() {
|
|
7
7
|
const { rowsCount, size } = useDataGrid();
|
|
8
8
|
const { getLabel } = useModuleDictionary();
|
|
@@ -4,7 +4,7 @@ import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
|
4
4
|
import DataGrid from "react-data-grid";
|
|
5
5
|
import { I as IconButton } from "../../../../../../../mui_extended/IconButton/IconButton.js";
|
|
6
6
|
import { p as pathIcons } from "../../../../../../icons.js";
|
|
7
|
-
import {
|
|
7
|
+
import { h as ColumnsConfigWrapperStyled, i as ColumnsConfigDataGridStyled, j as ColumnsConfigSelColumnsStyled, T as TableWrapperDataGridStyled, k as ColumnsConfigActiosStyled } from "../../../../../../slots/DataGridSlot.js";
|
|
8
8
|
import { D as DICTIONARY } from "../../../../../../dictionary.js";
|
|
9
9
|
import { C as ColumnInteractiveCheckFormatter } from "../../../../../../formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
10
10
|
function getRowsFromColumnsConfig(columnsConfig, columns) {
|
|
@@ -5,7 +5,7 @@ import { useRef, useCallback } from "react";
|
|
|
5
5
|
import { u as useDataGrid } from "../../../../../hooks/useDataGrid.js";
|
|
6
6
|
import { u as useModal } from "../../../../../../../hooks/useModal/index.js";
|
|
7
7
|
import { C as ColumnsConfig } from "../../Settings/subcomponents/ColumnsConfig/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { l as ContentModalSettingStyled, D as DataGridRootStyled } from "../../../../../slots/DataGridSlot.js";
|
|
9
9
|
import { p as pathIcons } from "../../../../../icons.js";
|
|
10
10
|
import { A as ActionsContainer } from "../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
11
11
|
import { W as WindowBase } from "../../../../../../WindowBase/WindowBase.js";
|
|
@@ -8,7 +8,7 @@ import { a as filterHeight } from "./subcomponents/SelectColumn.js";
|
|
|
8
8
|
import { u as useSortColumnsRows } from "./hooks/useSortColumnsRows.js";
|
|
9
9
|
import { u as useFilters } from "../../hooks/useFilters.js";
|
|
10
10
|
import { u as useDataGrid } from "../../hooks/useDataGrid.js";
|
|
11
|
-
import {
|
|
11
|
+
import { m as TableContainerStyled, T as TableWrapperDataGridStyled } from "../../slots/DataGridSlot.js";
|
|
12
12
|
import { u as useHeaderMenuActions } from "./hooks/useHeaderMenuActions.js";
|
|
13
13
|
import { H as HeaderRenderClick } from "./subcomponents/HeaderRenderClick/HeaderRenderClick.js";
|
|
14
14
|
function Table(props) {
|
|
@@ -5,7 +5,7 @@ import { useDrag, useDrop } from "react-dnd";
|
|
|
5
5
|
import { HeaderRenderer } 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
|
-
import { N as NameColumnIconStyled,
|
|
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";
|
|
9
9
|
import { p as pathIcons } from "../../../icons.js";
|
|
10
10
|
import { u as useDataGrid } from "../../../hooks/useDataGrid.js";
|
|
11
11
|
import { I as Icon } from "../../../../Icon/Icon.js";
|
|
@@ -103,7 +103,19 @@ function DraggableHeaderRenderer(props) {
|
|
|
103
103
|
if (!newColumn.withinHeaderRenderer) {
|
|
104
104
|
const columnIcons = getColumnIcons();
|
|
105
105
|
if (columnIcons) {
|
|
106
|
-
|
|
106
|
+
const getJustifyContent = () => {
|
|
107
|
+
switch (column.align) {
|
|
108
|
+
case "left":
|
|
109
|
+
return "flex-start";
|
|
110
|
+
case "center":
|
|
111
|
+
return "center";
|
|
112
|
+
case "right":
|
|
113
|
+
return "flex-end";
|
|
114
|
+
default:
|
|
115
|
+
return "flex-start";
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
newColumn.name = /* @__PURE__ */ jsxs(NameColumnIconStyled, { style: { justifyContent: getJustifyContent() }, children: [
|
|
107
119
|
/* @__PURE__ */ jsx(NameColumnStyled, { children: newColumn.name }),
|
|
108
120
|
/* @__PURE__ */ jsx(IconColumnStyled, { children: columnIcons })
|
|
109
121
|
] });
|
package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useMemo, useEffect, useCallback } from "react";
|
|
3
3
|
import { useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { M as MenuItem } from "../../../../../mui_extended/MenuItem/MenuItem.js";
|
|
5
|
-
import { M as MenuListStyled,
|
|
5
|
+
import { M as MenuListStyled, r as HeaderRenderClickStyled } from "../../../../slots/DataGridSlot.js";
|
|
6
6
|
import { M as MenuDivider } from "../../../../../mui_extended/MenuDivider/MenuDivider.js";
|
|
7
7
|
import { P as Popover } from "../../../../../mui_extended/Popover/Popover.js";
|
|
8
8
|
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { s as InputTextEditorStyled } from "../../../slots/DataGridSlot.js";
|
|
3
3
|
function autoFocusAndSelect(input) {
|
|
4
4
|
input?.focus();
|
|
5
5
|
input?.select();
|
|
@@ -2,7 +2,7 @@ import { Maybe } from '@m4l/core';
|
|
|
2
2
|
import { Theme } from '@mui/material/styles';
|
|
3
3
|
import { Column, RowsChangeData, FormatterProps } from 'react-data-grid';
|
|
4
4
|
import { MenuAction } from '../MenuActions/types';
|
|
5
|
-
import { ActionsSlots, ColumnsConfigSlots, ControlNavigateSlots, DataGridSlots, RowsCountSlots, TableSlots, TextEditorSlots } from './slots/DataGridEnum';
|
|
5
|
+
import { ActionsSlots, ColumnIconFormatterSlots, ColumnsConfigSlots, ControlNavigateSlots, DataGridSlots, RowsCountSlots, TableSlots, TextEditorSlots } from './slots/DataGridEnum';
|
|
6
6
|
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
7
7
|
import { DATAGRID_PREFIX_NAME } from './constants';
|
|
8
8
|
import { IGridConfig } from './contexts/DataGridContext/types';
|
|
@@ -71,6 +71,7 @@ export type SortAction = 'add' | 'remove';
|
|
|
71
71
|
export type SortChangeAdd = {
|
|
72
72
|
action: 'add';
|
|
73
73
|
columnKey: string;
|
|
74
|
+
label: string;
|
|
74
75
|
direction: Lowercase<SortDirection>;
|
|
75
76
|
};
|
|
76
77
|
export type SortChangeRemove = {
|
|
@@ -164,5 +165,5 @@ export interface ActionsProps {
|
|
|
164
165
|
rightActions?: React.ReactNode;
|
|
165
166
|
}
|
|
166
167
|
export type DataGridOwnerState<TRow, TSummaryRow, TKey extends RowKey = RowKey> = Pick<DataGridProps<TRow, TSummaryRow, TKey>, 'visibleCustomHeader'>;
|
|
167
|
-
export type DataGridSlotsType = DataGridSlots | TextEditorSlots | ActionsSlots | RowsCountSlots | ColumnsConfigSlots | TableSlots | ControlNavigateSlots;
|
|
168
|
+
export type DataGridSlotsType = DataGridSlots | TextEditorSlots | ActionsSlots | RowsCountSlots | ColumnsConfigSlots | TableSlots | ControlNavigateSlots | ColumnIconFormatterSlots;
|
|
168
169
|
export type DataGridStyles = OverridesStyleRules<DataGridSlotsType, typeof DATAGRID_PREFIX_NAME, Theme>;
|
|
@@ -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
|
|
@@ -8,6 +8,7 @@ var ObjectLogsSlots = /* @__PURE__ */ ((ObjectLogsSlots2) => {
|
|
|
8
8
|
ObjectLogsSlots2["tooltipStyled"] = "tooltipStyled";
|
|
9
9
|
ObjectLogsSlots2["iconButtonStyled"] = "iconButtonStyled";
|
|
10
10
|
ObjectLogsSlots2["iconStyled"] = "iconStyled";
|
|
11
|
+
ObjectLogsSlots2["iconClickeableStyled"] = "iconClickeableStyled";
|
|
11
12
|
ObjectLogsSlots2["reactJsonSlot"] = "reactJsonSlot";
|
|
12
13
|
return ObjectLogsSlots2;
|
|
13
14
|
})(ObjectLogsSlots || {});
|
|
@@ -25,6 +25,9 @@ export declare const IconButtonStyled: import('@emotion/styled').StyledComponent
|
|
|
25
25
|
export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
26
26
|
ownerState?: (Partial<import('../types').ObjectLogsOwnerState> & Record<string, unknown>) | undefined;
|
|
27
27
|
}, {}, {}>;
|
|
28
|
+
export declare const IconClickeableStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
29
|
+
ownerState?: (Partial<import('../types').ObjectLogsOwnerState> & Record<string, unknown>) | undefined;
|
|
30
|
+
}, {}, {}>;
|
|
28
31
|
export declare const ReactJsonSlot: import('@emotion/styled').StyledComponent<Pick<import('@microlink/react-json-view').ReactJsonViewProps, keyof import('@microlink/react-json-view').ReactJsonViewProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
29
32
|
ownerState?: (Partial<import('../types').ObjectLogsOwnerState> & Record<string, unknown>) | undefined;
|
|
30
33
|
}, {}, {}>;
|
|
@@ -45,6 +45,10 @@ const IconStyled = styled(Icon, {
|
|
|
45
45
|
name: OBJECT_LOGS_KEY_COMPONENT,
|
|
46
46
|
slot: ObjectLogsSlots.iconStyled
|
|
47
47
|
})(objectLogsStyles?.iconStyled);
|
|
48
|
+
const IconClickeableStyled = styled(Icon, {
|
|
49
|
+
name: OBJECT_LOGS_KEY_COMPONENT,
|
|
50
|
+
slot: ObjectLogsSlots.iconClickeableStyled
|
|
51
|
+
})(objectLogsStyles?.iconClickeableStyled);
|
|
48
52
|
styled(ReactJson, {
|
|
49
53
|
name: OBJECT_LOGS_KEY_COMPONENT,
|
|
50
54
|
slot: ObjectLogsSlots.reactJsonSlot
|
|
@@ -54,7 +58,8 @@ export {
|
|
|
54
58
|
ContainerWrapperStyled as C,
|
|
55
59
|
DetailDialogComponent as D,
|
|
56
60
|
GridWrapperStyled as G,
|
|
57
|
-
|
|
61
|
+
IconClickeableStyled as I,
|
|
58
62
|
StackStyled as S,
|
|
59
|
-
WindowBaseStyled as W
|
|
63
|
+
WindowBaseStyled as W,
|
|
64
|
+
IconStyled as a
|
|
60
65
|
};
|
|
@@ -85,7 +85,7 @@ const propertyValueStyles = {
|
|
|
85
85
|
width: "100%",
|
|
86
86
|
display: "flex",
|
|
87
87
|
justifyContent: "flex-start",
|
|
88
|
-
alignItems: "
|
|
88
|
+
alignItems: "center",
|
|
89
89
|
overflow: "hidden",
|
|
90
90
|
height: ownerState?.valueHeight ? ownerState?.valueHeight : "auto",
|
|
91
91
|
...ownerState?.isForm && {
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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/
|
|
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
|
-
|
|
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
|
-
|
|
17
|
-
|
|
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/
|
|
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
|
-
|
|
21
|
+
CLASS_NAME_IS_ROOT as C,
|
|
22
22
|
PATH_ICONS as P,
|
|
23
23
|
SIDEBAR_KEY_COMPONENT as S,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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 {
|
|
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
|
-
|
|
23
|
-
|
|
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
|
-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
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['
|
|
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
|
-
|
|
19
|
-
|
|
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
|
-
|
|
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["
|
|
22
|
-
HeaderSidebarSlots2["
|
|
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["
|
|
32
|
-
ContentComponentSlots2["containerTreeItemsAndPromotion"] = "containerTreeItemsAndPromotion";
|
|
33
|
+
ContentComponentSlots2["containerTreeItemsHeaderFooter"] = "containerTreeItemsHeaderFooter";
|
|
33
34
|
ContentComponentSlots2["containerNodeMenuItem"] = "containerNodeMenuItem";
|
|
34
35
|
ContentComponentSlots2["containerNodeMenuItemMain"] = "containerNodeMenuItemMain";
|
|
35
36
|
ContentComponentSlots2["menuItemMain"] = "menuItemMain";
|