@m4l/components 9.2.62-B09072025beta.1 → 9.2.62-B10072025beta.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.
- package/@types/types.d.ts +0 -8
- 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/Image/Image.js +2 -4
- package/components/Image/image.styles.js +3 -6
- package/components/Image/types.d.ts +0 -2
- package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/PropertyValue/PropertyValue.styles.js +1 -1
- package/components/SideBar/SideBar.js +6 -2
- package/components/SideBar/constants.d.ts +7 -6
- package/components/SideBar/constants.js +7 -7
- 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 +7 -7
- package/components/SideBar/slots/SideBarEnum.js +5 -5
- package/components/SideBar/slots/SideBarSlots.d.ts +9 -9
- package/components/SideBar/slots/SideBarSlots.js +31 -28
- package/components/SideBar/styles.js +3 -3
- package/components/SideBar/subcomponents/ContentComponent/index.js +12 -68
- package/components/SideBar/subcomponents/ContentComponent/style.js +122 -103
- 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/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/HeaderComponent/styles.js +44 -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 +90 -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 +6 -4
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +1 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +8 -3
- package/components/SideBar/types.d.ts +12 -7
- package/components/commercial/HamburgerMenu/HamburgerMenu.js +1 -2
- package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +5 -4
- package/components/index.d.ts +0 -1
- package/components/mui_extended/Accordion/styles.js +5 -3
- 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 -4
- package/components/mui_extended/TabContent/constants.d.ts +0 -1
- package/components/mui_extended/TabContent/constants.js +0 -2
- package/components/mui_extended/TabContent/types.d.ts +1 -1
- package/components/mui_extended/Typography/Typography.js +1 -3
- package/components/mui_extended/Typography/types.d.ts +0 -5
- package/components/mui_extended/Typography/typography.styles.js +1 -7
- package/index.js +30 -32
- package/package.json +3 -3
- 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/ContainerFlow/ContainerFlow.d.ts +0 -7
- package/components/ContainerFlow/ContainerFlow.js +0 -25
- package/components/ContainerFlow/ContainerFlow.styles.d.ts +0 -2
- package/components/ContainerFlow/ContainerFlow.styles.js +0 -46
- package/components/ContainerFlow/constants.d.ts +0 -8
- package/components/ContainerFlow/constants.js +0 -19
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.d.ts +0 -7
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.js +0 -10
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.test.d.ts +0 -1
- package/components/ContainerFlow/index.d.ts +0 -2
- package/components/ContainerFlow/slots/ContainerFlowEnum.d.ts +0 -4
- package/components/ContainerFlow/slots/ContainerFlowEnum.js +0 -8
- package/components/ContainerFlow/slots/ContainerFlowSlots.d.ts +0 -6
- package/components/ContainerFlow/slots/ContainerFlowSlots.js +0 -16
- package/components/ContainerFlow/slots/index.d.ts +0 -0
- package/components/ContainerFlow/tests/ContainerFlow.test.d.ts +0 -1
- package/components/ContainerFlow/types.d.ts +0 -41
- 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/ContainerFlow/ContainerFlow.stories.d.ts +0 -32
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn1Wrappers/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn2Wrappers/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn3Wrappers/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexWrap/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderGridLayout/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/wrapperItems/index.d.ts +0 -10
- 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/components/{ContainerFlow → SideBar/subcomponents/HeaderComponent}/index.js +0 -0
- /package/storybook/components/SideBar/subcomponents/{FooterPromotion → FooterComponentHost}/constants.d.ts +0 -0
package/@types/types.d.ts
CHANGED
|
@@ -149,7 +149,6 @@ import { ScrollBarOwnerState, ScrollBarSlotsType } from '../components/ScrollBar
|
|
|
149
149
|
import { SplitLayoutOwnerState } from '../components/extended/React-resizable-panels/types';
|
|
150
150
|
import { ObjectLogsOwnerState, ObjectLogsSlotsType } from '../components/ObjectLogs/types';
|
|
151
151
|
import { LanguagePopoverOwnerState, LanguagePopoverSlotsType } from '../components/LanguagePopover/types';
|
|
152
|
-
import { ContainerFlowOwnerState, ContainerFlowSlotsType } from '../components/ContainerFlow/types';
|
|
153
152
|
declare module '@mui/material/styles' {
|
|
154
153
|
// Define the slots in the theme
|
|
155
154
|
interface ComponentNameToClassKey {
|
|
@@ -229,7 +228,6 @@ declare module '@mui/material/styles' {
|
|
|
229
228
|
M4LSplitLayout: SplitLayoutOwnerState;
|
|
230
229
|
M4LObjectLogs: ObjectLogsSlotsType;
|
|
231
230
|
M4LLanguagePopover: LanguagePopoverSlotsType;
|
|
232
|
-
M4LContainerFlow: ContainerFlowSlotsType;
|
|
233
231
|
}
|
|
234
232
|
interface ComponentsPropsList {
|
|
235
233
|
// Extend ComponentsProps or ComponentsOwnerState(this extend ComponentProps)
|
|
@@ -309,7 +307,6 @@ declare module '@mui/material/styles' {
|
|
|
309
307
|
M4LSplitLayout: Partial<SplitLayoutOwnerState>;
|
|
310
308
|
M4LObjectLogs: Partial<ObjectLogsOwnerState>;
|
|
311
309
|
M4LLanguagePopover: Partial<LanguagePopoverOwnerState>;
|
|
312
|
-
M4LContainerFlow: Partial<ContainerFlowOwnerState>;
|
|
313
310
|
}
|
|
314
311
|
interface Components {
|
|
315
312
|
M4LDynamicFilter?: {
|
|
@@ -702,10 +699,5 @@ declare module '@mui/material/styles' {
|
|
|
702
699
|
styleOverrides?: ComponentsOverrides<Theme>['M4LLanguagePopover'];
|
|
703
700
|
variants?: ComponentsVariants['M4LLanguagePopover'];
|
|
704
701
|
};
|
|
705
|
-
M4LContainerFlow?: {
|
|
706
|
-
defaultProps?: ComponentsPropsList['M4LContainerFlow'];
|
|
707
|
-
styleOverrides?: ComponentsOverrides<Theme>['M4LContainerFlow'];
|
|
708
|
-
variants?: ComponentsVariants['M4LContainerFlow'];
|
|
709
|
-
};
|
|
710
702
|
}
|
|
711
703
|
}
|
|
@@ -3,11 +3,11 @@ import { useIsMobile } from "@m4l/graphics";
|
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
|
|
5
5
|
import { g as getNameDataTestId } from "./tests/utils.js";
|
|
6
|
-
import { A as AppBarRootStyled,
|
|
6
|
+
import { A as AppBarRootStyled, M as MenuIconButtonStyled, C as ContentStyled } from "./slots/AppBarSlots.js";
|
|
7
7
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
8
8
|
import { P as PATH_IMG_HAMBURGUER, A as APP_BAR_KEY } from "./constants.js";
|
|
9
9
|
const AppBar = (props) => {
|
|
10
|
-
const { onToggleVisible,
|
|
10
|
+
const { onToggleVisible, onToggleAnchored, sidebarAnchored, children, dataTestid, size } = props;
|
|
11
11
|
const isMobile = useIsMobile();
|
|
12
12
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
13
13
|
const { getLabel } = useModuleDictionary();
|
|
@@ -22,13 +22,6 @@ const AppBar = (props) => {
|
|
|
22
22
|
className: classRoot,
|
|
23
23
|
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId(dataTestid) } : {},
|
|
24
24
|
children: [
|
|
25
|
-
!isMobile ? /* @__PURE__ */ jsxs(ContainerIsotypeNameStyled, { children: [
|
|
26
|
-
/* @__PURE__ */ jsxs(ContentIsotypeStyled, { children: [
|
|
27
|
-
companyLogo && /* @__PURE__ */ jsx(ImageIsotypeStyled, { alt: "logo", src: companyLogo, size }),
|
|
28
|
-
/* @__PURE__ */ jsx(CompanyNameStyled, { variant: "bodyDens", skeletonWidth: "100px", size, children: companyName })
|
|
29
|
-
] }),
|
|
30
|
-
/* @__PURE__ */ jsx(DividerStyled, { orientation: "vertical", flexItem: true })
|
|
31
|
-
] }) : null,
|
|
32
25
|
isMobile ? /* @__PURE__ */ jsx(
|
|
33
26
|
MenuIconButtonStyled,
|
|
34
27
|
{
|
|
@@ -37,7 +30,16 @@ const AppBar = (props) => {
|
|
|
37
30
|
src: `${host_static_assets}/${environment_assets}/${PATH_IMG_HAMBURGUER}`,
|
|
38
31
|
onClick: onToggleVisible
|
|
39
32
|
}
|
|
40
|
-
) :
|
|
33
|
+
) : /* @__PURE__ */ jsx(
|
|
34
|
+
MenuIconButtonStyled,
|
|
35
|
+
{
|
|
36
|
+
src: `${host_static_assets}/${environment_assets}/${PATH_IMG_HAMBURGUER}`,
|
|
37
|
+
onClick: onToggleAnchored,
|
|
38
|
+
rotationAngle: sidebarAnchored ? 0 : 180,
|
|
39
|
+
variant: "contained",
|
|
40
|
+
role: "anchored-button"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
41
43
|
/* @__PURE__ */ jsx(
|
|
42
44
|
ContentStyled,
|
|
43
45
|
{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const APP_BAR_KEY = "M4LAppBar";
|
|
2
|
-
export declare const PATH_IMG_HAMBURGUER = "frontend/components/
|
|
2
|
+
export declare const PATH_IMG_HAMBURGUER = "frontend/components/sidebar/assets/icons/panel-left-close.svg";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const APP_BAR_KEY = "M4LAppBar";
|
|
2
|
-
const PATH_IMG_HAMBURGUER = "frontend/components/
|
|
2
|
+
const PATH_IMG_HAMBURGUER = "frontend/components/sidebar/assets/icons/panel-left-close.svg";
|
|
3
3
|
export {
|
|
4
4
|
APP_BAR_KEY as A,
|
|
5
5
|
PATH_IMG_HAMBURGUER as P
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export declare enum AppBarSlots {
|
|
2
2
|
appBarRoot = "appBarRoot",
|
|
3
3
|
containerIsotypeName = "containerIsotypeName",
|
|
4
|
-
imageIsotype = "imageIsotype",
|
|
5
|
-
companyName = "companyName",
|
|
6
4
|
menuIconButton = "menuIconButton",
|
|
7
|
-
content = "content"
|
|
8
|
-
contentIsoType = "contentIsoType",
|
|
9
|
-
divider = "divider"
|
|
5
|
+
content = "content"
|
|
10
6
|
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
var AppBarSlots = /* @__PURE__ */ ((AppBarSlots2) => {
|
|
2
2
|
AppBarSlots2["appBarRoot"] = "appBarRoot";
|
|
3
3
|
AppBarSlots2["containerIsotypeName"] = "containerIsotypeName";
|
|
4
|
-
AppBarSlots2["imageIsotype"] = "imageIsotype";
|
|
5
|
-
AppBarSlots2["companyName"] = "companyName";
|
|
6
4
|
AppBarSlots2["menuIconButton"] = "menuIconButton";
|
|
7
5
|
AppBarSlots2["content"] = "content";
|
|
8
|
-
AppBarSlots2["contentIsoType"] = "contentIsoType";
|
|
9
|
-
AppBarSlots2["divider"] = "divider";
|
|
10
6
|
return AppBarSlots2;
|
|
11
7
|
})(AppBarSlots || {});
|
|
12
8
|
export {
|
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
export declare const AppBarRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
1
|
+
export declare const AppBarRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
2
2
|
ownerState?: (Partial<import('../types').AppBarOwnerState> & Record<string, unknown>) | undefined;
|
|
3
3
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
|
|
4
|
-
export declare const ContainerIsotypeNameStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
4
|
+
export declare const ContainerIsotypeNameStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
5
5
|
ownerState?: (Partial<import('../types').AppBarOwnerState> & 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
|
|
7
|
+
export declare const MenuIconButtonStyled: 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> & {
|
|
8
8
|
ownerState?: (Partial<import('../types').AppBarOwnerState> & Record<string, unknown>) | undefined;
|
|
9
9
|
}, {}, {}>;
|
|
10
|
-
export declare const
|
|
11
|
-
ownerState?: (Partial<import('../types').AppBarOwnerState> & Record<string, unknown>) | undefined;
|
|
12
|
-
}, {}, {}>;
|
|
13
|
-
export declare const MenuIconButtonStyled: 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').Theme> & Record<string, unknown> & {
|
|
14
|
-
ownerState?: (Partial<import('../types').AppBarOwnerState> & Record<string, unknown>) | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
export declare const ContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
10
|
+
export declare const ContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
17
11
|
ownerState?: (Partial<import('../types').AppBarOwnerState> & Record<string, unknown>) | undefined;
|
|
18
12
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
|
-
export declare const ContentIsotypeStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
20
|
-
ownerState?: (Partial<import('../types').AppBarOwnerState> & Record<string, unknown>) | undefined;
|
|
21
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
22
|
-
export declare const DividerStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').DividerOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
23
|
-
ref?: ((instance: HTMLHRElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLHRElement> | null | undefined;
|
|
24
|
-
}, "children" | "light" | "style" | "absolute" | "variant" | "textAlign" | "className" | "classes" | "sx" | "orientation" | "flexItem">, "children" | "ref" | "title" | "id" | "light" | "hidden" | "color" | "content" | "style" | "absolute" | "variant" | "textAlign" | "translate" | "className" | "classes" | "sx" | "slot" | "key" | "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" | "orientation" | "flexItem"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
25
|
-
ownerState?: (Partial<import('../types').AppBarOwnerState> & Record<string, unknown>) | undefined;
|
|
26
|
-
}, {}, {}>;
|
|
@@ -2,26 +2,15 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { A as APP_BAR_KEY } from "../constants.js";
|
|
3
3
|
import { A as AppBarSlots } from "./AppBarEnum.js";
|
|
4
4
|
import { a as appBarStyles } from "../styles.js";
|
|
5
|
-
import { Divider } from "@mui/material";
|
|
6
|
-
import { I as Image } from "../../Image/Image.js";
|
|
7
|
-
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
8
5
|
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
9
6
|
const AppBarRootStyled = styled("header", {
|
|
10
7
|
name: APP_BAR_KEY,
|
|
11
8
|
slot: AppBarSlots.appBarRoot
|
|
12
9
|
})(appBarStyles?.appBarRoot);
|
|
13
|
-
|
|
10
|
+
styled("div", {
|
|
14
11
|
name: APP_BAR_KEY,
|
|
15
12
|
slot: AppBarSlots.containerIsotypeName
|
|
16
13
|
})(appBarStyles?.containerIsotypeName);
|
|
17
|
-
const ImageIsotypeStyled = styled(Image, {
|
|
18
|
-
name: APP_BAR_KEY,
|
|
19
|
-
slot: AppBarSlots.imageIsotype
|
|
20
|
-
})(appBarStyles?.imageIsotype);
|
|
21
|
-
const CompanyNameStyled = styled(Typography, {
|
|
22
|
-
name: APP_BAR_KEY,
|
|
23
|
-
slot: AppBarSlots.companyName
|
|
24
|
-
})(appBarStyles?.companyName);
|
|
25
14
|
const MenuIconButtonStyled = styled(IconButton, {
|
|
26
15
|
name: APP_BAR_KEY,
|
|
27
16
|
slot: AppBarSlots.menuIconButton
|
|
@@ -30,21 +19,8 @@ const ContentStyled = styled("div", {
|
|
|
30
19
|
name: APP_BAR_KEY,
|
|
31
20
|
slot: AppBarSlots.content
|
|
32
21
|
})(appBarStyles?.content);
|
|
33
|
-
const ContentIsotypeStyled = styled("div", {
|
|
34
|
-
name: APP_BAR_KEY,
|
|
35
|
-
slot: AppBarSlots.contentIsoType
|
|
36
|
-
})(appBarStyles?.contentIsoType);
|
|
37
|
-
const DividerStyled = styled(Divider, {
|
|
38
|
-
name: APP_BAR_KEY,
|
|
39
|
-
slot: AppBarSlots.divider
|
|
40
|
-
})(appBarStyles?.divider);
|
|
41
22
|
export {
|
|
42
23
|
AppBarRootStyled as A,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
ImageIsotypeStyled as I,
|
|
46
|
-
MenuIconButtonStyled as M,
|
|
47
|
-
ContentIsotypeStyled as a,
|
|
48
|
-
CompanyNameStyled as b,
|
|
49
|
-
ContentStyled as c
|
|
24
|
+
ContentStyled as C,
|
|
25
|
+
MenuIconButtonStyled as M
|
|
50
26
|
};
|
|
@@ -35,26 +35,6 @@ const appBarStyles = {
|
|
|
35
35
|
width: "204px",
|
|
36
36
|
minWidth: "204px"
|
|
37
37
|
}),
|
|
38
|
-
/**
|
|
39
|
-
* ****************************************************
|
|
40
|
-
* Estilos para la imagen del logotipo de la empresa.
|
|
41
|
-
* ****************************************************
|
|
42
|
-
*/
|
|
43
|
-
imageIsotype: ({ theme }) => ({
|
|
44
|
-
width: `${theme.vars.size.baseSpacings.sp6} !important`,
|
|
45
|
-
height: `${theme.vars.size.baseSpacings.sp6} !important`,
|
|
46
|
-
border: `1px solid ${theme.vars.palette.border.default}`
|
|
47
|
-
}),
|
|
48
|
-
/**
|
|
49
|
-
* ****************************************************
|
|
50
|
-
* Estilos para el nombre de la empresa.
|
|
51
|
-
* ****************************************************
|
|
52
|
-
*/
|
|
53
|
-
companyName: ({ theme }) => ({
|
|
54
|
-
display: "grid",
|
|
55
|
-
placeContent: "center",
|
|
56
|
-
color: theme.vars.palette.text.primary
|
|
57
|
-
}),
|
|
58
38
|
/**
|
|
59
39
|
* ****************************************************
|
|
60
40
|
* Estilos para el botón de menú de la barra de app
|
|
@@ -79,28 +59,6 @@ const appBarStyles = {
|
|
|
79
59
|
flex: "1",
|
|
80
60
|
height: theme.vars.size.baseSpacings.sp12,
|
|
81
61
|
overflow: "auto"
|
|
82
|
-
}),
|
|
83
|
-
/**
|
|
84
|
-
* **************************************************************
|
|
85
|
-
* Estilos para el contenedor del contenido del logotipo y nombre
|
|
86
|
-
* **************************************************************
|
|
87
|
-
*/
|
|
88
|
-
contentIsoType: ({ theme }) => ({
|
|
89
|
-
display: "flex",
|
|
90
|
-
flexDirection: "row",
|
|
91
|
-
alignItems: "center",
|
|
92
|
-
gap: theme.vars.size.baseSpacings.sp3,
|
|
93
|
-
height: theme.vars.size.baseSpacings.sp6
|
|
94
|
-
}),
|
|
95
|
-
/**
|
|
96
|
-
* **************************************************************
|
|
97
|
-
* Estilos para el divisor entre el logotipo y el contenido
|
|
98
|
-
* **************************************************************
|
|
99
|
-
*/
|
|
100
|
-
divider: ({ theme, ownerState }) => ({
|
|
101
|
-
height: "100%",
|
|
102
|
-
borderColor: theme.vars.palette.border.secondary,
|
|
103
|
-
borderRightWidth: ownerState?.isMobile ? "thin" : "none"
|
|
104
62
|
})
|
|
105
63
|
};
|
|
106
64
|
export {
|
|
@@ -25,10 +25,18 @@ export interface AppBarProps {
|
|
|
25
25
|
* Opción de aparición de la barra de aplicaciones.
|
|
26
26
|
*/
|
|
27
27
|
variant?: 'standard';
|
|
28
|
+
/**
|
|
29
|
+
* Indica si la barra lateral está anclada.
|
|
30
|
+
*/
|
|
31
|
+
sidebarAnchored: boolean;
|
|
28
32
|
/**
|
|
29
33
|
* Función que activa la visualización del menú de la aplicación en la vista móvil.
|
|
30
34
|
*/
|
|
31
35
|
onToggleVisible: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* Función que activa la visualización del menú de la aplicación en la vista móvil.
|
|
38
|
+
*/
|
|
39
|
+
onToggleAnchored: () => void;
|
|
32
40
|
/**
|
|
33
41
|
* Elementos secundarios de la barra de aplicaciones.
|
|
34
42
|
*/
|
|
@@ -13,14 +13,12 @@ function Image(props) {
|
|
|
13
13
|
threshold = 100,
|
|
14
14
|
dataTestId,
|
|
15
15
|
className,
|
|
16
|
-
cover,
|
|
17
16
|
...others
|
|
18
17
|
} = props;
|
|
19
18
|
const isSkeleton = useModuleSkeleton();
|
|
20
19
|
const ownerState = useMemo(() => ({
|
|
21
|
-
isSkeleton
|
|
22
|
-
|
|
23
|
-
}), [cover, isSkeleton]);
|
|
20
|
+
isSkeleton
|
|
21
|
+
}), [isSkeleton]);
|
|
24
22
|
const lazyLoadComponent = useMemo(() => {
|
|
25
23
|
return /* @__PURE__ */ jsx(
|
|
26
24
|
LazyLoadComponent,
|
|
@@ -2,14 +2,11 @@ const imageStyles = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Estilos para Image.
|
|
4
4
|
*/
|
|
5
|
-
root:
|
|
5
|
+
root: {
|
|
6
6
|
display: "flex",
|
|
7
7
|
flexDirection: "column",
|
|
8
|
-
alignItems: "flex-start"
|
|
9
|
-
|
|
10
|
-
objectFit: "cover"
|
|
11
|
-
}
|
|
12
|
-
}),
|
|
8
|
+
alignItems: "flex-start"
|
|
9
|
+
},
|
|
13
10
|
/**
|
|
14
11
|
* Estilos para el intersectComponente o para el 'span'
|
|
15
12
|
*/
|
|
@@ -31,11 +31,9 @@ export interface ImageProps extends Omit<IntersectComponentProps, 'setIsVisible'
|
|
|
31
31
|
enableIntersectionObserver?: boolean;
|
|
32
32
|
className?: string;
|
|
33
33
|
dataTestId?: string;
|
|
34
|
-
cover?: boolean;
|
|
35
34
|
}
|
|
36
35
|
export type ImageSlotsType = keyof typeof ImageSlots;
|
|
37
36
|
export interface ImageOwnerState {
|
|
38
37
|
isSkeleton?: boolean;
|
|
39
|
-
cover?: boolean;
|
|
40
38
|
}
|
|
41
39
|
export type ImageStyles = M4LOverridesStyleRules<ImageSlots, typeof IMAGE_KEY_COMPONENT, 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
|
|
@@ -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,30 @@ 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
|
+
backgroundAdornmentIcon: ContentGroupsSlots.backgroundAdornmentIcon;
|
|
24
25
|
containerSideBarMobile: SideBarMobileSlots.containerSideBarMobile;
|
|
25
26
|
containerDesktopRoot: SideBarDesktopSlots.containerDesktopRoot;
|
|
26
27
|
containerDesktopContent: SideBarDesktopSlots.containerDesktopContent;
|
|
27
|
-
containerBtnAnchored: SideBarDesktopSlots.containerBtnAnchored;
|
|
28
28
|
};
|
|
29
29
|
export declare const CLASS_NAME_IS_ROOT = "is-root";
|
|
30
30
|
export declare const CLASS_NAME_MENU_ACTIVE = "menu-active";
|
|
31
31
|
export declare const CLASS_NAME_ITEM_IN_TREE_ACTIVE = "item-in-tree-active";
|
|
32
32
|
export declare const CLASS_NAME_HAS_CHILDREN = "has-children";
|
|
33
|
+
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
|
-
|
|
24
|
+
CLASS_NAME_MENU_ACTIVE as a,
|
|
25
|
+
CLASS_NAME_HAS_CHILDREN as b,
|
|
26
|
+
CLASS_NAME_ITEM_CLOSED as c,
|
|
27
27
|
CLASS_NAME_ITEM_IN_TREE_ACTIVE as d,
|
|
28
|
-
|
|
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,20 @@ 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
|
+
backgroundAdornmentIcon = "backgroundAdornmentIcon"
|
|
16
17
|
}
|
|
17
18
|
export declare enum HeaderSidebarSlots {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
headerContainerComponent = "headerContainerComponent",
|
|
20
|
+
buttonAnchored = "buttonAnchored"
|
|
20
21
|
}
|
|
21
22
|
export declare enum SideBarFooterSlots {
|
|
22
23
|
containerFooter = "containerFooter"
|
|
23
24
|
}
|
|
24
25
|
export declare enum ContentComponentSlots {
|
|
25
26
|
contentComponentRoot = "contentComponentRoot",
|
|
26
|
-
|
|
27
|
-
containerTreeItemsAndPromotion = "containerTreeItemsAndPromotion",
|
|
27
|
+
containerTreeItemsHeaderFooter = "containerTreeItemsHeaderFooter",
|
|
28
28
|
containerNodeMenuItem = "containerNodeMenuItem",
|
|
29
29
|
containerNodeMenuItemMain = "containerNodeMenuItemMain",
|
|
30
30
|
menuItemMain = "menuItemMain"
|