@m4l/components 9.3.26 → 9.3.27-BE071125-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 (166) hide show
  1. package/@types/types.d.ts +18 -5
  2. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +1 -1
  3. package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +1 -1
  4. package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
  5. package/components/Card/constants.d.ts +1 -1
  6. package/components/Chip/constants.d.ts +1 -1
  7. package/components/Chip/slots/ChipSlots.d.ts +1 -1
  8. package/components/Color/slots/ColorSlots.d.ts +1 -1
  9. package/components/ContainerFlow/constants.d.ts +1 -1
  10. package/components/DataGrid/subcomponents/editors/EditLabelEditor/formatter.d.ts +8 -0
  11. package/components/DataGrid/subcomponents/editors/EditLabelEditor/index.d.ts +3 -0
  12. package/components/DataGrid/subcomponents/editors/EditLabelEditor/types.d.ts +5 -0
  13. package/components/DataGrid/subcomponents/editors/EditLabelEditor/useColumnEditLabel.d.ts +9 -0
  14. package/components/DataGrid/tests/helpers/types.d.ts +2 -0
  15. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
  16. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
  17. package/components/EditLabel/EditLabel.d.ts +7 -0
  18. package/components/EditLabel/EditLabel.styles.d.ts +2 -0
  19. package/components/EditLabel/constants.d.ts +2 -0
  20. package/components/EditLabel/hooks/types.d.ts +17 -0
  21. package/components/EditLabel/hooks/useEditLabel.d.ts +7 -0
  22. package/components/EditLabel/icons.d.ts +5 -0
  23. package/components/EditLabel/index.d.ts +2 -0
  24. package/components/EditLabel/slots/EditLabelEnum.d.ts +8 -0
  25. package/components/EditLabel/slots/EditLabelSlots.d.ts +18 -0
  26. package/components/EditLabel/test/EditLabel.test.d.ts +1 -0
  27. package/components/EditLabel/types.d.ts +43 -0
  28. package/components/FormContainer/constants.d.ts +1 -1
  29. package/components/Icon/Icon.js +6 -3
  30. package/components/Icon/types.d.ts +4 -0
  31. package/components/Image/constant.d.ts +1 -1
  32. package/components/ImageText/ImageText.styles.js +1 -1
  33. package/components/ImageText/constants.d.ts +1 -1
  34. package/components/LanguagePopover/LanguagePopover.js +2 -0
  35. package/components/MFIsolationApp/MFIsolationApp.js +13 -8
  36. package/components/MFIsolationApp/MFIsolationApp.styles.d.ts +2 -0
  37. package/components/MFIsolationApp/MFIsolationApp.styles.js +22 -0
  38. package/components/MFIsolationApp/constants.d.ts +1 -0
  39. package/components/MFIsolationApp/constants.js +4 -0
  40. package/components/MFIsolationApp/icons.d.ts +3 -0
  41. package/components/MFIsolationApp/icons.js +6 -0
  42. package/components/MFIsolationApp/slots/MFIsolationAppEnum.d.ts +4 -0
  43. package/components/MFIsolationApp/slots/MFIsolationAppEnum.js +8 -0
  44. package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -0
  45. package/components/MFIsolationApp/slots/MFIsolationAppSlots.js +17 -0
  46. package/components/MFIsolationApp/subcomponents/AppBarSettings/AppBarSettings.js +21 -0
  47. package/components/MFIsolationApp/subcomponents/AppBarSettings/index.js +1 -0
  48. package/components/MFIsolationApp/types.d.ts +8 -0
  49. package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.js +137 -0
  50. package/components/MFIsolationAppStorybook/index.js +1 -0
  51. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/MFAuthAppStorybook.js +44 -0
  52. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/index.js +1 -0
  53. package/components/MFIsolationAppStorybook/types.d.ts +0 -4
  54. package/components/MenuActions/MenuActions.js +1 -1
  55. package/components/MenuActions/constants.d.ts +1 -1
  56. package/components/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
  57. package/components/ModalDialog/ModalDialog.js +1 -0
  58. package/components/NoItemSelected/constant.d.ts +1 -1
  59. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  60. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
  61. package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
  62. package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
  63. package/components/WindowBase/constants.d.ts +1 -1
  64. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
  65. package/components/areas/contexts/AreasContext/store.js +2 -2
  66. package/components/extended/React-Json-Viewer/constants.d.ts +1 -1
  67. package/components/extended/React-resizable-panels/SplitLayout.js +1 -1
  68. package/components/formatters/ChipStatusFormatter/constants.d.ts +1 -1
  69. package/components/formatters/EditLabelFormatter/EditLabelFormatter.d.ts +5 -0
  70. package/components/formatters/EditLabelFormatter/EditLabelFormatter.styles.d.ts +2 -0
  71. package/components/formatters/EditLabelFormatter/constants.d.ts +5 -0
  72. package/components/formatters/EditLabelFormatter/index.d.ts +2 -0
  73. package/components/formatters/EditLabelFormatter/slots/EditLabelFormatterEnum.d.ts +4 -0
  74. package/components/formatters/EditLabelFormatter/slots/EditLabelFormatterSlots.d.ts +5 -0
  75. package/components/formatters/EditLabelFormatter/test/EditLabelFormatter.test.d.ts +1 -0
  76. package/components/formatters/EditLabelFormatter/types.d.ts +23 -0
  77. package/components/formatters/TagsFormatter/constants.d.ts +1 -1
  78. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +1 -1
  79. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +7 -1
  80. package/components/hook-form/RHFAutocomplete/constants.d.ts +1 -1
  81. package/components/hook-form/RHFAutocomplete/types.d.ts +13 -0
  82. package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.js +7 -1
  83. package/components/hook-form/RHFAutocompleteAsync/slots/RHFAutocompleteSlotsAsync.d.ts +1 -1
  84. package/components/hook-form/RHFCheckbox/constants.d.ts +1 -1
  85. package/components/hook-form/RHFSelect/constants.d.ts +1 -1
  86. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
  87. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
  88. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +25 -1
  89. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.js +5 -1
  90. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +1 -1
  91. package/components/hook-form/RHFormContext/index.d.ts +110 -10
  92. package/components/hook-form/RHFormContext/index.js +23 -21
  93. package/components/hook-form/RHFormContext/types.d.ts +64 -1
  94. package/components/index.d.ts +1 -0
  95. package/components/mui_extended/Autocomplete/Autocomplete.d.ts +4 -8
  96. package/components/mui_extended/Autocomplete/Autocomplete.js +24 -112
  97. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +41 -12
  98. package/components/mui_extended/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts +26 -0
  99. package/components/mui_extended/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +166 -0
  100. package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +2 -1
  101. package/components/mui_extended/Autocomplete/hooks/useMultipleChips.d.ts +17 -0
  102. package/components/mui_extended/Autocomplete/hooks/useMultipleChips.js +108 -0
  103. package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.d.ts +0 -2
  104. package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.js +11 -17
  105. package/components/mui_extended/Autocomplete/slots/AutocompleteEnum.d.ts +2 -1
  106. package/components/mui_extended/Autocomplete/slots/AutocompleteEnum.js +1 -0
  107. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +4 -1
  108. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +5 -0
  109. package/components/mui_extended/Autocomplete/subcomponents/LoadingText/LoadingText.d.ts +2 -0
  110. package/components/mui_extended/Autocomplete/subcomponents/LoadingText/LoadingText.js +14 -0
  111. package/components/mui_extended/Autocomplete/subcomponents/LoadingText/index.d.ts +1 -0
  112. package/components/mui_extended/Autocomplete/subcomponents/LoadingText/index.js +1 -0
  113. package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/NoOptionsText.d.ts +2 -0
  114. package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/NoOptionsText.js +14 -0
  115. package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/index.d.ts +1 -0
  116. package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/index.js +1 -0
  117. package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/PopperComponent.d.ts +8 -0
  118. package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/PopperComponent.js +23 -0
  119. package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/index.d.ts +2 -0
  120. package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/index.js +1 -0
  121. package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/types.d.ts +7 -0
  122. package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/types.js +1 -0
  123. package/components/mui_extended/Autocomplete/subcomponents/RenderAdornment/RenderAdornment.d.ts +6 -0
  124. package/components/mui_extended/Autocomplete/subcomponents/RenderAdornment/RenderAdornment.js +45 -0
  125. package/components/mui_extended/Autocomplete/subcomponents/renderOptions/index.d.ts +9 -0
  126. package/components/mui_extended/Autocomplete/subcomponents/renderOptions/index.js +61 -0
  127. package/components/mui_extended/Autocomplete/subcomponents/renderOptions/types.d.ts +7 -0
  128. package/components/mui_extended/Autocomplete/types.d.ts +21 -1
  129. package/components/mui_extended/Button/Button.js +15 -4
  130. package/components/mui_extended/Button/ButtonStyles.js +165 -82
  131. package/components/mui_extended/Button/{constans.d.ts → constants.d.ts} +1 -0
  132. package/components/mui_extended/Button/constants.js +8 -0
  133. package/components/mui_extended/Button/slots/ButtonSlots.js +1 -1
  134. package/components/mui_extended/Button/types.d.ts +1 -1
  135. package/components/mui_extended/CheckBox/CheckBox.js +1 -0
  136. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +1 -1
  137. package/components/mui_extended/IconButton/constants.d.ts +1 -1
  138. package/components/mui_extended/IconButton/constants.js +4 -1
  139. package/components/mui_extended/MenuItem/MenuItem.js +1 -1
  140. package/components/mui_extended/MenuItem/MenuItem.styles.js +4 -1
  141. package/components/mui_extended/MenuItem/constants.d.ts +1 -1
  142. package/components/mui_extended/NavLink/constants.d.ts +1 -1
  143. package/components/mui_extended/Select/Select.js +71 -29
  144. package/components/mui_extended/Select/Select.styles.js +41 -6
  145. package/components/mui_extended/Select/constants.d.ts +1 -1
  146. package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
  147. package/components/mui_extended/Select/types.d.ts +6 -1
  148. package/components/mui_extended/TextField/constants.d.ts +1 -1
  149. package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +1 -1
  150. package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  151. package/components/mui_extended/Tooltip/Tooltip.styles.js +16 -4
  152. package/components/mui_extended/Tooltip/constants.d.ts +1 -1
  153. package/components/mui_extended/Typography/constants.d.ts +1 -1
  154. package/components/mui_extended/Typography/types.d.ts +2 -1
  155. package/components/mui_extended/Typography/typography.styles.js +4 -9
  156. package/contexts/AppearanceComponentContext/AppearanceComponentContext.js +9 -1
  157. package/index.js +12 -10
  158. package/package.json +1 -1
  159. package/utils/getComponentSlotRoot.d.ts +3 -1
  160. package/components/mui_extended/Autocomplete/hooks/useStartAdornments.d.ts +0 -21
  161. package/components/mui_extended/Autocomplete/hooks/useStartAdornments.js +0 -31
  162. package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +0 -22
  163. package/components/mui_extended/Autocomplete/renderOptions/index.js +0 -24
  164. package/components/mui_extended/Button/constans.js +0 -4
  165. /package/components/{MFIsolationAppStorybook → MFIsolationApp}/subcomponents/AppBarSettings/AppBarSettings.d.ts +0 -0
  166. /package/components/{MFIsolationAppStorybook → MFIsolationApp}/subcomponents/AppBarSettings/index.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ export { EditLabel } from './EditLabel';
2
+ export type { EditLabelProps, EditLabelOwnerState } from './types';
@@ -0,0 +1,8 @@
1
+ export declare enum EditLabelSlots {
2
+ root = "root",
3
+ textField = "textField",
4
+ label = "label",
5
+ iconButtonEdit = "iconButtonEdit",
6
+ containerActions = "containerActions",
7
+ iconButton = "iconButton"
8
+ }
@@ -0,0 +1,18 @@
1
+ export declare const EditLabelRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
2
+ ownerState?: (Partial<import('..').EditLabelOwnerState> & Record<string, unknown>) | undefined;
3
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
4
+ export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "label" | "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" | "dataTestId" | "autoComplete" | "maxLength" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "SelectProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
5
+ ownerState?: (Partial<import('..').EditLabelOwnerState> & Record<string, unknown>) | undefined;
6
+ }, {}, {}>;
7
+ export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
8
+ ownerState?: (Partial<import('..').EditLabelOwnerState> & Record<string, unknown>) | undefined;
9
+ }, {}, {}>;
10
+ export declare const IconButtonEditStyled: 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" | "ariaLabel" | "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> & {
11
+ ownerState?: (Partial<import('..').EditLabelOwnerState> & Record<string, unknown>) | undefined;
12
+ }, {}, {}>;
13
+ export declare const ContainerActionsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
14
+ ownerState?: (Partial<import('..').EditLabelOwnerState> & Record<string, unknown>) | undefined;
15
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
16
+ export declare const IconButtonStyled: 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" | "ariaLabel" | "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> & {
17
+ ownerState?: (Partial<import('..').EditLabelOwnerState> & Record<string, unknown>) | undefined;
18
+ }, {}, {}>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,43 @@
1
+ import { Sizes } from '@m4l/styles';
2
+ import { EditLabelSlots } from './slots/EditLabelEnum';
3
+ import { EDIT_LABEL_KEY_COMPONENT } from './constants';
4
+ import { Theme } from '@mui/material/styles';
5
+ import { M4LOverridesStyleRules } from '../../@types/augmentations';
6
+ export interface EditLabelProps {
7
+ /**
8
+ * The label to display
9
+ */
10
+ label: string;
11
+ /**
12
+ * The function to call when the label is changed
13
+ */
14
+ onChange: (value: string) => void;
15
+ /**
16
+ * The size of the label
17
+ */
18
+ size?: Extract<Sizes, 'small' | 'medium'>;
19
+ /**
20
+ * Custom class name
21
+ */
22
+ className?: string;
23
+ /**
24
+ * The width of the input
25
+ */
26
+ fieldWidth?: string;
27
+ }
28
+ export interface EditLabelOwnerState {
29
+ /**
30
+ * The size of the label
31
+ */
32
+ size?: Extract<Sizes, 'small' | 'medium'>;
33
+ /**
34
+ * The state of the edition
35
+ */
36
+ inEdition?: boolean;
37
+ /**
38
+ * The width of the input
39
+ */
40
+ fieldWidth?: string;
41
+ }
42
+ export type EditLabelSlotsType = keyof typeof EditLabelSlots;
43
+ export type EditLabelStyles = M4LOverridesStyleRules<EditLabelSlotsType, typeof EDIT_LABEL_KEY_COMPONENT, Theme>;
@@ -1,2 +1,2 @@
1
1
  export declare const FORM_CONTAINER_COMPONENT_KEY = "M4LFormContainer";
2
- export declare const FORM_CONTAINER_CLASSES: Record<string, string>;
2
+ export declare const FORM_CONTAINER_CLASSES: Record<"root" | "formContainer" | "buttonGroup", string>;
@@ -20,7 +20,8 @@ const Icon = (props) => {
20
20
  disabled,
21
21
  selected,
22
22
  enabledSelected,
23
- onClick
23
+ onClick,
24
+ ariaLabel
24
25
  } = props;
25
26
  const { currentSize } = useComponentSize(size);
26
27
  const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
@@ -71,7 +72,8 @@ const Icon = (props) => {
71
72
  className: clsx(classKey.icon, getComponentSlotRoot("M4LIconClass")),
72
73
  role: "icon",
73
74
  ownerState: { ...ownerState },
74
- ...getPropDataTestId(ICON_PREFIX, IconSlots.icon, instaceDataTestId)
75
+ ...getPropDataTestId(ICON_PREFIX, IconSlots.icon, instaceDataTestId),
76
+ "aria-label": ariaLabel || "icon"
75
77
  }
76
78
  ) }),
77
79
  isSkeleton && /* @__PURE__ */ jsx(
@@ -81,7 +83,8 @@ const Icon = (props) => {
81
83
  role: "icon-skeleton",
82
84
  size: adjustedSize,
83
85
  variant: "rectangular",
84
- ownerState: { ...ownerState }
86
+ ownerState: { ...ownerState },
87
+ "aria-label": ariaLabel || "icon"
85
88
  }
86
89
  )
87
90
  ] });
@@ -56,6 +56,10 @@ export interface IconProps extends Pick<TooltipProps, 'placement'> {
56
56
  * Funcion que se ejecuta al hacer clic en el icono.
57
57
  */
58
58
  onClick?: (event: React.MouseEvent<any, MouseEvent>) => void;
59
+ /**
60
+ * Aria label for the icon component.
61
+ */
62
+ ariaLabel?: string;
59
63
  }
60
64
  /**
61
65
  * Define las las propiedades usadas para estilizar el componente desde el css.
@@ -3,4 +3,4 @@ export declare const svgDataUriSkeleton = "data:image/svg+xml,%3Csvg width='36'
3
3
  /**
4
4
  * Clases de los slots del componente Image
5
5
  */
6
- export declare const IMAGE_CLASSES: Record<string, string>;
6
+ export declare const IMAGE_CLASSES: Record<"root" | "intersectComponent" | "scrollIntersectRoot" | "skeletonComponent" | "divContainerSkeleton" | "imgSkeleton", string>;
@@ -14,7 +14,7 @@ const imageTextContainerStyles = {
14
14
  padding: "10px",
15
15
  gap: theme.vars.size.baseSpacings.sp2,
16
16
  minHeight: "60px",
17
- backgroundColor: theme.palette.background.default
17
+ backgroundColor: theme.vars.palette.background.default
18
18
  }),
19
19
  /**
20
20
  * Estilos para el contenedor de la imagen.
@@ -5,7 +5,7 @@ export declare const IMAGE_TEXT_KEY_COMPONENT = "M4LImageText";
5
5
  /**
6
6
  * Clases del componente ImageTextContainer.
7
7
  */
8
- export declare const IMAGE_TEXT_CLASSES: Record<string, string>;
8
+ export declare const IMAGE_TEXT_CLASSES: Record<"title" | "message" | "root" | "img" | "imageContainer" | "wrapperTitleMessage", string>;
9
9
  /**
10
10
  * URL de la imagen por defecto.
11
11
  */
@@ -70,6 +70,8 @@ function LanguagePopover(props) {
70
70
  ownerState: {
71
71
  size: currentSize
72
72
  },
73
+ role: "button",
74
+ "aria-label": "Language selector",
73
75
  size: currentSize,
74
76
  className: classRoot,
75
77
  ...getPropDataTestId(LANGUAGE_POPOVER_KEY_COMPONENT, LanguagePopoverSlots.root),
@@ -4,15 +4,18 @@ import { unstable_HistoryRouter } from "react-router-dom";
4
4
  import { createBrowserHistory } from "history";
5
5
  import EventEmitter from "eventemitter3";
6
6
  import NProgress from "nprogress";
7
- import { DeviceTypeProvider, LocalesProvider, getLocaleFromNetwork } from "@m4l/graphics";
7
+ import { DeviceTypeProvider, ThemeSettingsProvider, LocalesProvider, getLocaleFromNetwork } from "@m4l/graphics";
8
8
  import { EnvironmentProvider, HostToolsProvider, NetworkProvider, axiosOperation, AuthProvider } from "@m4l/core";
9
9
  import { A as AppearanceComponentProvider } from "../../contexts/AppearanceComponentContext/AppearanceComponentContext.js";
10
+ import { W as WrapperAppBarContentChildrenStyled, a as WrapperContentChildrenStyled } from "./slots/MFIsolationAppSlots.js";
10
11
  import { c as createToaster } from "../ToastContainer/helpers/toaster.js";
11
12
  import { M as MFAuthApp } from "./subcomponents/MFAuthApp/MFAuthApp.js";
12
13
  import { B as BaseModule } from "../BaseModule/BaseModule.js";
14
+ import { S as SettingsLayout } from "../SettingsLayout/SettingsLayout.js";
13
15
  import { T as ToastContainer } from "../ToastContainer/ToastContainer.js";
14
16
  import { P as PopupsProvider } from "../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
15
17
  import { A as AreasProvider } from "../areas/contexts/AreasContext/index.js";
18
+ import { A as AppBarSettings } from "./subcomponents/AppBarSettings/AppBarSettings.js";
16
19
  const history = createBrowserHistory({ window });
17
20
  function MFIsolationApp(props) {
18
21
  const {
@@ -39,7 +42,8 @@ function MFIsolationApp(props) {
39
42
  moduleDictionaryLoaded,
40
43
  forcedDeviceType,
41
44
  areasStoreId,
42
- areasStoreDevtoolsEnabled
45
+ areasStoreDevtoolsEnabled,
46
+ appBarSettings = true
43
47
  } = props;
44
48
  const eventEmitter = useMemo(() => new EventEmitter(), []);
45
49
  const events_add_listener = useCallback(
@@ -103,7 +107,7 @@ function MFIsolationApp(props) {
103
107
  // eslint-disable-next-line react-hooks/exhaustive-deps
104
108
  []
105
109
  );
106
- return /* @__PURE__ */ jsx(EnvironmentProvider, { ...environment, children: /* @__PURE__ */ jsx(HostToolsProvider, { ...hostTools, children: /* @__PURE__ */ jsx(NetworkProvider, { axiosOperation, children: /* @__PURE__ */ jsx(unstable_HistoryRouter, { history, children: /* @__PURE__ */ jsx(DeviceTypeProvider, { forcedDeviceType, children: /* @__PURE__ */ jsx(AuthProvider, { children: /* @__PURE__ */ jsx(MFAuthApp, { user, pwd, children: /* @__PURE__ */ jsx(LocalesProvider, { isMicroFrontEnd: false, getLocaleFromNetwork, children: /* @__PURE__ */ jsx(
110
+ return /* @__PURE__ */ jsx(EnvironmentProvider, { ...environment, children: /* @__PURE__ */ jsx(HostToolsProvider, { ...hostTools, children: /* @__PURE__ */ jsx(NetworkProvider, { axiosOperation, children: /* @__PURE__ */ jsx(unstable_HistoryRouter, { history, children: /* @__PURE__ */ jsx(DeviceTypeProvider, { forcedDeviceType, children: /* @__PURE__ */ jsx(AuthProvider, { children: /* @__PURE__ */ jsx(MFAuthApp, { user, pwd, children: /* @__PURE__ */ jsx(ThemeSettingsProvider, { children: /* @__PURE__ */ jsx(LocalesProvider, { isMicroFrontEnd: false, getLocaleFromNetwork, children: /* @__PURE__ */ jsx(
107
111
  BaseModule,
108
112
  {
109
113
  moduleId,
@@ -113,6 +117,7 @@ function MFIsolationApp(props) {
113
117
  moduleNameField,
114
118
  moduleDictionaryLoaded,
115
119
  children: /* @__PURE__ */ jsxs(AppearanceComponentProvider, { children: [
120
+ /* @__PURE__ */ jsx(SettingsLayout, {}),
116
121
  /* @__PURE__ */ jsx(ToastContainer, { containerId: toastContainerId }),
117
122
  " ",
118
123
  /* @__PURE__ */ jsx(
@@ -129,17 +134,17 @@ function MFIsolationApp(props) {
129
134
  onLoad,
130
135
  loadAreasFromNetwork: activeAreasNetwork,
131
136
  loadCookiesFromNetwork: activeCookiesFromNetwork,
132
- onSelectLayout: (modId) => {
133
- console.log("onSelectLayout", modId);
134
- },
135
- children
137
+ children: /* @__PURE__ */ jsxs(WrapperAppBarContentChildrenStyled, { children: [
138
+ appBarSettings && /* @__PURE__ */ jsx(AppBarSettings, {}),
139
+ /* @__PURE__ */ jsx(WrapperContentChildrenStyled, { children })
140
+ ] })
136
141
  }
137
142
  )
138
143
  }
139
144
  )
140
145
  ] })
141
146
  }
142
- ) }) }) }) }) }) }) }) });
147
+ ) }) }) }) }) }) }) }) }) });
143
148
  }
144
149
  export {
145
150
  MFIsolationApp as M
@@ -0,0 +1,2 @@
1
+ import { MFIsolationAppStyles } from './types';
2
+ export declare const mfIsolationAppStyles: MFIsolationAppStyles;
@@ -0,0 +1,22 @@
1
+ const mfIsolationAppStyles = {
2
+ /**
3
+ * Estilos para el contenedor del AppBar y el children de la app.
4
+ */
5
+ wrapperAppBarContentChildren: () => ({
6
+ width: "100%",
7
+ height: "100%",
8
+ flexDirection: "column"
9
+ }),
10
+ /**
11
+ * Estilos para el contenedor del children de la app.
12
+ */
13
+ wrapperContentChildren: () => ({
14
+ width: "100%",
15
+ flexGrow: 1,
16
+ flexDirection: "column",
17
+ position: "relative"
18
+ })
19
+ };
20
+ export {
21
+ mfIsolationAppStyles as m
22
+ };
@@ -1 +1,2 @@
1
1
  export declare const TOAST_CONTAINER_ID = "toast-host";
2
+ export declare const MF_ISOLATION_APP_KEY = "MFIsolationApp";
@@ -0,0 +1,4 @@
1
+ const MF_ISOLATION_APP_KEY = "MFIsolationApp";
2
+ export {
3
+ MF_ISOLATION_APP_KEY as M
4
+ };
@@ -0,0 +1,3 @@
1
+ export declare const PATH_ICONS: {
2
+ SETTINGS: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ const PATH_ICONS = {
2
+ SETTINGS: "frontend/components/account_popover/assets/icons/configuration.svg"
3
+ };
4
+ export {
5
+ PATH_ICONS as P
6
+ };
@@ -0,0 +1,4 @@
1
+ export declare enum MFIsolationAppSlots {
2
+ wrapperAppBarContentChildren = "wrapperAppBarContentChildren",
3
+ wrapperContentChildren = "wrapperContentChildren"
4
+ }
@@ -0,0 +1,8 @@
1
+ var MFIsolationAppSlots = /* @__PURE__ */ ((MFIsolationAppSlots2) => {
2
+ MFIsolationAppSlots2["wrapperAppBarContentChildren"] = "wrapperAppBarContentChildren";
3
+ MFIsolationAppSlots2["wrapperContentChildren"] = "wrapperContentChildren";
4
+ return MFIsolationAppSlots2;
5
+ })(MFIsolationAppSlots || {});
6
+ export {
7
+ MFIsolationAppSlots as M
8
+ };
@@ -0,0 +1,2 @@
1
+ export declare const WrapperAppBarContentChildrenStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Stack').StackProps, keyof import('../../mui_extended/Stack').StackProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
2
+ export declare const WrapperContentChildrenStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Stack').StackProps, keyof import('../../mui_extended/Stack').StackProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
@@ -0,0 +1,17 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { M as MF_ISOLATION_APP_KEY } from "../constants.js";
3
+ import { M as MFIsolationAppSlots } from "./MFIsolationAppEnum.js";
4
+ import { m as mfIsolationAppStyles } from "../MFIsolationApp.styles.js";
5
+ import { S as Stack } from "../../mui_extended/Stack/Stack.js";
6
+ const WrapperAppBarContentChildrenStyled = styled(Stack, {
7
+ name: MF_ISOLATION_APP_KEY,
8
+ slot: MFIsolationAppSlots.wrapperAppBarContentChildren
9
+ })(mfIsolationAppStyles.wrapperAppBarContentChildren);
10
+ const WrapperContentChildrenStyled = styled(Stack, {
11
+ name: MF_ISOLATION_APP_KEY,
12
+ slot: MFIsolationAppSlots.wrapperContentChildren
13
+ })(mfIsolationAppStyles.wrapperContentChildren);
14
+ export {
15
+ WrapperAppBarContentChildrenStyled as W,
16
+ WrapperContentChildrenStyled as a
17
+ };
@@ -0,0 +1,21 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useThemeSettingsStore } from "@m4l/graphics";
3
+ import { P as PATH_ICONS } from "../../icons.js";
4
+ import { useEnvironment } from "@m4l/core";
5
+ import { S as Stack } from "../../../mui_extended/Stack/Stack.js";
6
+ import { L as LanguagePopover } from "../../../LanguagePopover/LanguagePopover.js";
7
+ import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
8
+ function AppBarSettings() {
9
+ const handleOpen = useThemeSettingsStore((state) => state.settingsActions.handleOpen);
10
+ const { host_static_assets, environment_assets } = useEnvironment();
11
+ return /* @__PURE__ */ jsxs(Stack, { width: "100%", height: "40px", justifyContent: "space-between", flexDirection: "row", overflow: "hidden", position: "relative", padding: [0, 2], children: [
12
+ /* @__PURE__ */ jsx(Stack, { width: "100%", height: "100%" }),
13
+ /* @__PURE__ */ jsxs(Stack, { flexDirection: "row", gap: 2, height: "100%", width: "auto", alignItems: "center", children: [
14
+ /* @__PURE__ */ jsx(LanguagePopover, {}),
15
+ /* @__PURE__ */ jsx(IconButton, { role: "button", "aria-label": "Toggle App Bar Settings", src: `${host_static_assets}/${environment_assets}/${PATH_ICONS.SETTINGS}`, onClick: handleOpen })
16
+ ] })
17
+ ] });
18
+ }
19
+ export {
20
+ AppBarSettings as A
21
+ };
@@ -1,6 +1,10 @@
1
1
  import { ModuleDictionary } from '@m4l/core';
2
2
  import { BaseModuleProps } from '../BaseModule';
3
3
  import { DeviceType } from '@m4l/graphics';
4
+ import { MFIsolationAppSlots } from './slots/MFIsolationAppEnum';
5
+ import { MF_ISOLATION_APP_KEY } from './constants';
6
+ import { Theme } from '@mui/material/styles';
7
+ import { M4LOverridesStyleRules } from '../../@types/augmentations';
4
8
  export type MFIsolationAppProps = BaseModuleProps & {
5
9
  user: string;
6
10
  pwd: string;
@@ -13,6 +17,7 @@ export type MFIsolationAppProps = BaseModuleProps & {
13
17
  onLoad: () => void;
14
18
  activeAreasNetwork?: boolean;
15
19
  activeCookiesFromNetwork?: boolean;
20
+ appBarSettings?: boolean;
16
21
  /**
17
22
  * Diccionario de componentes, se puede proporcionar ya el diccionario cargado, para evitar que se llame al endpoint nuevamente.
18
23
  */
@@ -30,3 +35,6 @@ export type MFIsolationAppProps = BaseModuleProps & {
30
35
  */
31
36
  areasStoreDevtoolsEnabled?: boolean;
32
37
  };
38
+ export type MFIsolationAppSlotsType = keyof typeof MFIsolationAppSlots;
39
+ export type MFIsolationAppOwnerState = {};
40
+ export type MFIsolationAppStyles = M4LOverridesStyleRules<MFIsolationAppSlotsType, typeof MF_ISOLATION_APP_KEY, Theme>;
@@ -0,0 +1,137 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useMemo, useCallback, useId } from "react";
3
+ import { createBrowserHistory } from "history";
4
+ import EventEmitter from "eventemitter3";
5
+ import NProgress from "nprogress";
6
+ import { DeviceTypeProvider, ThemeSettingsProvider, LocalesProvider } from "@m4l/graphics";
7
+ import { EnvironmentProvider, HostToolsProvider, NetworkProvider, axiosOperation } from "@m4l/core";
8
+ import { A as AppearanceComponentProvider } from "../../contexts/AppearanceComponentContext/AppearanceComponentContext.js";
9
+ import enLocale from "date-fns/locale/en-US";
10
+ import { c as createToaster } from "../ToastContainer/helpers/toaster.js";
11
+ import { M as MFAuthAppStorybook } from "./subcomponents/MFAuthAppStorybook/MFAuthAppStorybook.js";
12
+ import { B as BaseModule } from "../BaseModule/BaseModule.js";
13
+ import { S as SettingsLayout } from "../SettingsLayout/SettingsLayout.js";
14
+ import { T as ToastContainer } from "../ToastContainer/ToastContainer.js";
15
+ import { P as PopupsProvider } from "../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
16
+ const LOCALE_HOST_EN = {
17
+ lang: "en",
18
+ script: void 0,
19
+ region: "US",
20
+ name: "English US",
21
+ urlIcon: "https://s3.amazonaws.com/static.made4labs/environments/d1/frontend/commons/assets/icons/langs/lang_en.svg",
22
+ module: enLocale,
23
+ localeString: "en-US"
24
+ };
25
+ const history = createBrowserHistory({ window });
26
+ function MFIsolationAppStorybook(props) {
27
+ const {
28
+ children,
29
+ database = "domain",
30
+ // 'domain
31
+ host_api_local,
32
+ host_api_icons = "https://s3.amazonaws.com/static.made4labs/environments/d1/frontend/components/gclick/my_device_status/assets/icons",
33
+ //'https://dev1.gclick.co/api/v1/main/na/icons',
34
+ host_api_remote,
35
+ host_static_assets,
36
+ environment_assets,
37
+ moduleId,
38
+ skeletonFlags,
39
+ moduleNameField,
40
+ privileges,
41
+ componentsDictionary,
42
+ // observedDivRef,
43
+ moduleDictionaryLoaded,
44
+ forcedDeviceType,
45
+ areasStoreId,
46
+ areasStoreDevtoolsEnabled
47
+ } = props;
48
+ const eventEmitter = useMemo(() => new EventEmitter(), []);
49
+ const events_add_listener = useCallback(
50
+ (eventName, handler) => {
51
+ eventEmitter.on(eventName, handler);
52
+ },
53
+ [eventEmitter]
54
+ );
55
+ const events_remove_listener = useCallback(
56
+ (eventName, handler) => {
57
+ if (handler === null) {
58
+ eventEmitter.removeListener(eventName);
59
+ return;
60
+ }
61
+ eventEmitter.removeListener(eventName, handler);
62
+ },
63
+ [eventEmitter]
64
+ );
65
+ const events_emit = useCallback(
66
+ (eventName, arg) => {
67
+ eventEmitter.emit(eventName, arg);
68
+ },
69
+ [eventEmitter]
70
+ );
71
+ const startProgress = () => {
72
+ NProgress.configure({
73
+ showSpinner: true
74
+ });
75
+ NProgress.start();
76
+ };
77
+ const stopProgress = () => {
78
+ NProgress.done();
79
+ };
80
+ const environment = useMemo(
81
+ () => ({
82
+ host: "",
83
+ isLocalhost: true,
84
+ domain_token: "lab1",
85
+ database,
86
+ host_api_local,
87
+ host_api_icons,
88
+ host_api_remote,
89
+ host_static_assets,
90
+ environment_assets
91
+ }),
92
+ // eslint-disable-next-line react-hooks/exhaustive-deps
93
+ []
94
+ );
95
+ const toastContainerId = useId();
96
+ const toaster = createToaster(toastContainerId);
97
+ const hostTools = useMemo(
98
+ () => ({
99
+ history,
100
+ toast: toaster,
101
+ startProgress,
102
+ stopProgress,
103
+ events_add_listener,
104
+ events_remove_listener,
105
+ events_emit
106
+ }),
107
+ // eslint-disable-next-line react-hooks/exhaustive-deps
108
+ []
109
+ );
110
+ return /* @__PURE__ */ jsx(EnvironmentProvider, { ...environment, children: /* @__PURE__ */ jsx(HostToolsProvider, { ...hostTools, children: /* @__PURE__ */ jsx(NetworkProvider, { axiosOperation, children: /* @__PURE__ */ jsx(DeviceTypeProvider, { forcedDeviceType, children: /* @__PURE__ */ jsx(MFAuthAppStorybook, { children: /* @__PURE__ */ jsx(ThemeSettingsProvider, { children: /* @__PURE__ */ jsx(LocalesProvider, { isMicroFrontEnd: true, localeHost: LOCALE_HOST_EN, children: /* @__PURE__ */ jsx(
111
+ BaseModule,
112
+ {
113
+ moduleId,
114
+ privileges,
115
+ skeletonFlags,
116
+ componentsDictionary,
117
+ moduleNameField,
118
+ moduleDictionaryLoaded,
119
+ children: /* @__PURE__ */ jsxs(AppearanceComponentProvider, { children: [
120
+ /* @__PURE__ */ jsx(SettingsLayout, {}),
121
+ /* @__PURE__ */ jsx(ToastContainer, { containerId: toastContainerId }),
122
+ /* @__PURE__ */ jsx(
123
+ PopupsProvider,
124
+ {
125
+ baseZindex: 1e3,
126
+ storeId: areasStoreId,
127
+ storeDevtoolsEnabled: areasStoreDevtoolsEnabled,
128
+ children
129
+ }
130
+ )
131
+ ] })
132
+ }
133
+ ) }) }) }) }) }) }) });
134
+ }
135
+ export {
136
+ MFIsolationAppStorybook as M
137
+ };
@@ -0,0 +1,44 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { format } from "date-fns";
3
+ import { DomainCountryProvider } from "@m4l/core";
4
+ import { HostThemeProvider, FormatterProvider } from "@m4l/graphics";
5
+ import { fnComponentsOverrides, getUserThemeOptions } from "@m4l/styles";
6
+ function MFAuthAppStorybook(props) {
7
+ const { children } = props;
8
+ const domianCountry = {
9
+ currency: "USD",
10
+ currency_decimal_digits: 2
11
+ };
12
+ const domainCountry = {
13
+ id: 1,
14
+ currency: "USD",
15
+ currency_decimal_digits: 2,
16
+ decimal_symbol: ".",
17
+ thousands_symbol: ","
18
+ };
19
+ return /* @__PURE__ */ jsx(
20
+ HostThemeProvider,
21
+ {
22
+ hostThemeOptions: getUserThemeOptions("light", "patronus"),
23
+ fnComponentsOverrides,
24
+ isMicroFrontEnd: true,
25
+ children: /* @__PURE__ */ jsx(DomainCountryProvider, { ...domainCountry, isMicroFrontEnd: false, children: /* @__PURE__ */ jsx(
26
+ FormatterProvider,
27
+ {
28
+ isMicroFrontEnd: false,
29
+ dateFormatter: {
30
+ formatDate: format
31
+ },
32
+ currencyFormatter: {
33
+ code: domianCountry.currency,
34
+ decimalDigits: domianCountry.currency_decimal_digits
35
+ },
36
+ children
37
+ }
38
+ ) })
39
+ }
40
+ );
41
+ }
42
+ export {
43
+ MFAuthAppStorybook as M
44
+ };
@@ -8,10 +8,6 @@ export type MFIsolationAppStorybookProps = BaseModuleProps & {
8
8
  host_api_remote: string;
9
9
  host_static_assets: string;
10
10
  environment_assets: string;
11
- onLoad: () => void;
12
- activeAreasNetwork?: boolean;
13
- activeCookiesFromNetwork?: boolean;
14
- appBarSettings?: boolean;
15
11
  /**
16
12
  * Diccionario de componentes, se puede proporcionar ya el diccionario cargado, para evitar que se llame al endpoint nuevamente.
17
13
  */