@m4l/components 9.3.25 → 9.3.27
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 +18 -5
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +1 -1
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +1 -1
- package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
- package/components/Card/constants.d.ts +1 -1
- package/components/Chip/constants.d.ts +1 -1
- package/components/Chip/slots/ChipSlots.d.ts +1 -1
- package/components/Color/slots/ColorSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +17 -8
- package/components/CommonActions/components/ActionFormCancel/types.d.ts +9 -0
- package/components/ContainerFlow/constants.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnIconFormatter/index.d.ts +1 -0
- package/components/DataGrid/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/formatter.d.ts +8 -0
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/index.d.ts +3 -0
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/types.d.ts +5 -0
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/useColumnEditLabel.d.ts +9 -0
- package/components/DataGrid/tests/helpers/types.d.ts +2 -0
- package/components/DataGrid/types.d.ts +2 -0
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/EditLabel/EditLabel.d.ts +7 -0
- package/components/EditLabel/EditLabel.styles.d.ts +2 -0
- package/components/EditLabel/constants.d.ts +2 -0
- package/components/EditLabel/hooks/types.d.ts +17 -0
- package/components/EditLabel/hooks/useEditLabel.d.ts +7 -0
- package/components/EditLabel/icons.d.ts +5 -0
- package/components/EditLabel/index.d.ts +2 -0
- package/components/EditLabel/slots/EditLabelEnum.d.ts +8 -0
- package/components/EditLabel/slots/EditLabelSlots.d.ts +18 -0
- package/components/EditLabel/test/EditLabel.test.d.ts +1 -0
- package/components/EditLabel/types.d.ts +43 -0
- package/components/FormContainer/constants.d.ts +1 -1
- package/components/Icon/Icon.js +6 -3
- package/components/Icon/types.d.ts +4 -0
- package/components/Image/constant.d.ts +1 -1
- package/components/ImageText/ImageText.styles.js +1 -1
- package/components/ImageText/constants.d.ts +1 -1
- package/components/Label/Label.js +1 -1
- package/components/LanguagePopover/LanguagePopover.js +2 -0
- package/components/MFIsolationApp/MFIsolationApp.js +13 -8
- package/components/MFIsolationApp/MFIsolationApp.styles.d.ts +2 -0
- package/components/MFIsolationApp/MFIsolationApp.styles.js +22 -0
- package/components/MFIsolationApp/constants.d.ts +1 -0
- package/components/MFIsolationApp/constants.js +4 -0
- package/components/MFIsolationApp/icons.d.ts +3 -0
- package/components/MFIsolationApp/icons.js +6 -0
- package/components/MFIsolationApp/slots/MFIsolationAppEnum.d.ts +4 -0
- package/components/MFIsolationApp/slots/MFIsolationAppEnum.js +8 -0
- package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -0
- package/components/MFIsolationApp/slots/MFIsolationAppSlots.js +17 -0
- package/components/MFIsolationApp/subcomponents/AppBarSettings/AppBarSettings.js +21 -0
- package/components/MFIsolationApp/subcomponents/AppBarSettings/index.js +1 -0
- package/components/MFIsolationApp/types.d.ts +8 -0
- package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.js +137 -0
- package/components/MFIsolationAppStorybook/index.js +1 -0
- package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/MFAuthAppStorybook.js +44 -0
- package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/index.js +1 -0
- package/components/MFIsolationAppStorybook/types.d.ts +0 -4
- package/components/MenuActions/MenuActions.js +1 -1
- package/components/MenuActions/constants.d.ts +1 -1
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/components/ModalDialog/ModalDialog.js +1 -0
- package/components/NoItemSelected/constant.d.ts +1 -1
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
- package/components/PaperForm/PaperForm.js +1 -1
- package/components/PaperForm/components/Header.js +9 -7
- package/components/PaperForm/styles.js +9 -4
- package/components/PaperForm/types.d.ts +3 -2
- package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
- package/components/Stepper/Stepper.styles.js +2 -0
- package/components/Stepper/dictionary.js +0 -1
- package/components/Stepper/subcomponents/StepArea/hooks/useStepArea.d.ts +13 -0
- package/components/Stepper/subcomponents/StepArea/hooks/useStepArea.js +111 -0
- package/components/Stepper/subcomponents/StepArea/hooks/useVisibileSteps.d.ts +8 -0
- package/components/Stepper/subcomponents/StepArea/hooks/useVisibileSteps.js +79 -0
- package/components/Stepper/subcomponents/StepArea/index.js +7 -115
- package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.d.ts +2 -2
- package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.js +3 -53
- package/components/Stepper/subcomponents/StepperButtons/StepperNextButton/index.js +3 -2
- package/components/Stepper/subcomponents/StepperButtons/StepperPrevButton/index.js +3 -2
- package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js +24 -5
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/hooks/useIsStepVisible.d.ts +8 -0
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/hooks/useIsStepVisible.js +93 -0
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js +2 -51
- package/components/Stepper/types.d.ts +4 -0
- package/components/ToastContainer/ToastContainer.js +1 -0
- package/components/ToastContainer/constants.d.ts +1 -1
- package/components/ToastContainer/constants.js +1 -1
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/WindowBase/constants.d.ts +1 -1
- package/components/WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js +47 -3
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts +1 -1
- package/components/WindowBase/subcomponents/Component/index.d.ts +12 -1
- package/components/WindowBase/subcomponents/Component/index.js +56 -2
- package/components/WindowBase/subcomponents/Component/types.d.ts +1 -0
- package/components/WindowBase/types.d.ts +1 -1
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +1 -1
- package/components/areas/contexts/AreasContext/store.js +5 -1
- package/components/areas/contexts/AreasContext/types.d.ts +1 -1
- package/components/extended/React-Json-Viewer/constants.d.ts +1 -1
- package/components/extended/React-resizable-panels/SplitLayout.js +1 -1
- package/components/formatters/ChipStatusFormatter/constants.d.ts +1 -1
- package/components/formatters/EditLabelFormatter/EditLabelFormatter.d.ts +5 -0
- package/components/formatters/EditLabelFormatter/EditLabelFormatter.styles.d.ts +2 -0
- package/components/formatters/EditLabelFormatter/constants.d.ts +5 -0
- package/components/formatters/EditLabelFormatter/index.d.ts +2 -0
- package/components/formatters/EditLabelFormatter/slots/EditLabelFormatterEnum.d.ts +4 -0
- package/components/formatters/EditLabelFormatter/slots/EditLabelFormatterSlots.d.ts +5 -0
- package/components/formatters/EditLabelFormatter/test/EditLabelFormatter.test.d.ts +1 -0
- package/components/formatters/EditLabelFormatter/types.d.ts +23 -0
- package/components/formatters/TagsFormatter/constants.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +7 -1
- package/components/hook-form/RHFAutocomplete/constants.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/types.d.ts +13 -0
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.js +7 -1
- package/components/hook-form/RHFAutocompleteAsync/slots/RHFAutocompleteSlotsAsync.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/constants.d.ts +1 -1
- package/components/hook-form/RHFSelect/constants.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +25 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.js +5 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +1 -1
- package/components/hook-form/RHFormContext/index.d.ts +109 -9
- package/components/hook-form/RHFormContext/index.js +23 -21
- package/components/hook-form/RHFormContext/styles.js +2 -1
- package/components/hook-form/RHFormContext/types.d.ts +64 -1
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Autocomplete/Autocomplete.d.ts +4 -8
- package/components/mui_extended/Autocomplete/Autocomplete.js +24 -112
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +41 -12
- package/components/mui_extended/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts +26 -0
- package/components/mui_extended/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +166 -0
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +2 -1
- package/components/mui_extended/Autocomplete/hooks/useMultipleChips.d.ts +17 -0
- package/components/mui_extended/Autocomplete/hooks/useMultipleChips.js +108 -0
- package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.d.ts +0 -2
- package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.js +11 -17
- package/components/mui_extended/Autocomplete/slots/AutocompleteEnum.d.ts +2 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteEnum.js +1 -0
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +4 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +5 -0
- package/components/mui_extended/Autocomplete/subcomponents/LoadingText/LoadingText.d.ts +2 -0
- package/components/mui_extended/Autocomplete/subcomponents/LoadingText/LoadingText.js +14 -0
- package/components/mui_extended/Autocomplete/subcomponents/LoadingText/index.d.ts +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/LoadingText/index.js +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/NoOptionsText.d.ts +2 -0
- package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/NoOptionsText.js +14 -0
- package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/index.d.ts +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/index.js +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/PopperComponent.d.ts +8 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/PopperComponent.js +23 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/index.d.ts +2 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/index.js +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/types.d.ts +7 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/types.js +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/RenderAdornment/RenderAdornment.d.ts +6 -0
- package/components/mui_extended/Autocomplete/subcomponents/RenderAdornment/RenderAdornment.js +45 -0
- package/components/mui_extended/Autocomplete/subcomponents/renderOptions/index.d.ts +9 -0
- package/components/mui_extended/Autocomplete/subcomponents/renderOptions/index.js +61 -0
- package/components/mui_extended/Autocomplete/subcomponents/renderOptions/types.d.ts +7 -0
- package/components/mui_extended/Autocomplete/types.d.ts +21 -1
- package/components/mui_extended/Button/Button.js +15 -4
- package/components/mui_extended/Button/ButtonStyles.js +165 -82
- package/components/mui_extended/Button/{constans.d.ts → constants.d.ts} +1 -0
- package/components/mui_extended/Button/constants.js +8 -0
- package/components/mui_extended/Button/slots/ButtonSlots.js +1 -1
- package/components/mui_extended/Button/types.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.js +1 -0
- package/components/mui_extended/CircularProgress/types.d.ts +1 -1
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/constants.d.ts +1 -1
- package/components/mui_extended/IconButton/constants.js +4 -1
- package/components/mui_extended/MenuItem/MenuItem.js +1 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +4 -1
- package/components/mui_extended/MenuItem/constants.d.ts +1 -1
- package/components/mui_extended/NavLink/constants.d.ts +1 -1
- package/components/mui_extended/Select/Select.js +2 -2
- package/components/mui_extended/Select/constants.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/TextField/constants.d.ts +1 -1
- package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/mui_extended/Tooltip/Tooltip.styles.js +16 -4
- package/components/mui_extended/Tooltip/constants.d.ts +1 -1
- package/components/mui_extended/Typography/constants.d.ts +1 -1
- package/components/mui_extended/Typography/types.d.ts +2 -1
- package/components/mui_extended/Typography/typography.styles.js +4 -9
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +5 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +1 -1
- package/components/popups/components/PopupsProvider/hooks/usePopups.d.ts +2 -4
- package/components/popups/components/PopupsProvider/hooks/usePopups.js +19 -7
- package/components/popups/components/PopupsViewer/PopupsViewer.js +1 -1
- package/components/popups/components/PopupsViewer/PopupsViewer.styles.js +1 -1
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +32 -21
- package/contexts/AppearanceComponentContext/AppearanceComponentContext.js +9 -1
- package/index.js +74 -70
- package/package.json +1 -1
- package/utils/getComponentSlotRoot.d.ts +3 -1
- package/components/mui_extended/Autocomplete/hooks/useStartAdornments.d.ts +0 -21
- package/components/mui_extended/Autocomplete/hooks/useStartAdornments.js +0 -31
- package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +0 -22
- package/components/mui_extended/Autocomplete/renderOptions/index.js +0 -24
- package/components/mui_extended/Button/constans.js +0 -4
- /package/components/{MFIsolationAppStorybook → MFIsolationApp}/subcomponents/AppBarSettings/AppBarSettings.d.ts +0 -0
- /package/components/{MFIsolationAppStorybook → MFIsolationApp}/subcomponents/AppBarSettings/index.d.ts +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ToggleIconButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../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> & Partial<import('..').ToggleIconButtonOwnerState> & Record<string, unknown> & {
|
|
1
|
+
export declare const ToggleIconButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../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> & Partial<import('..').ToggleIconButtonOwnerState> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('..').ToggleIconButtonOwnerState> & Record<string, unknown>;
|
|
3
3
|
}, {}, {}>;
|
|
@@ -8,6 +8,7 @@ const tooltipStyles = {
|
|
|
8
8
|
* Estilos del texto del componente Tooltip
|
|
9
9
|
*/
|
|
10
10
|
text: ({ theme, ownerState }) => ({
|
|
11
|
+
color: theme.vars.palette.text.contrastText,
|
|
11
12
|
...getTypographyStyles(
|
|
12
13
|
theme.generalSettings.isMobile,
|
|
13
14
|
ownerState?.size || "medium",
|
|
@@ -18,14 +19,25 @@ const tooltipStyles = {
|
|
|
18
19
|
* Estilos del componente Tooltip
|
|
19
20
|
*/
|
|
20
21
|
tooltip: ({ theme }) => ({
|
|
21
|
-
background: theme.vars.palette.background.
|
|
22
|
+
background: theme.vars.palette.background.contrastDefault,
|
|
22
23
|
padding: theme.vars.size.baseSpacings.sp2,
|
|
23
24
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
24
25
|
boxShadow: theme.vars.customShadows.z3,
|
|
25
|
-
".MuiTooltip-arrow": {
|
|
26
|
+
"&.MuiTooltip-tooltipPlacementLeft .MuiTooltip-arrow": {
|
|
27
|
+
marginRight: "-0.6em"
|
|
28
|
+
},
|
|
29
|
+
"&.MuiTooltip-tooltipPlacementTop .MuiTooltip-arrow": {
|
|
30
|
+
marginBottom: "-0.6em"
|
|
31
|
+
},
|
|
32
|
+
"&&& .MuiTooltip-arrow": {
|
|
33
|
+
overflow: "visible",
|
|
26
34
|
"&::before": {
|
|
27
|
-
backgroundColor: theme.vars.palette.background.
|
|
28
|
-
borderRadius: theme.vars.size.borderRadius["
|
|
35
|
+
backgroundColor: theme.vars.palette.background.contrastDefault,
|
|
36
|
+
borderRadius: theme.vars.size.borderRadius["r1"],
|
|
37
|
+
width: theme.vars.size.baseSpacings.sp3,
|
|
38
|
+
height: theme.vars.size.baseSpacings.sp3,
|
|
39
|
+
border: "unset",
|
|
40
|
+
margin: "unset"
|
|
29
41
|
}
|
|
30
42
|
}
|
|
31
43
|
})
|
|
@@ -2,7 +2,7 @@ export declare const TOOLTIP_KEY_COMPONENT = "M4LTooltip";
|
|
|
2
2
|
/**
|
|
3
3
|
* Clases del componente Tooltip
|
|
4
4
|
*/
|
|
5
|
-
export declare const TOOLTIP_CLASSES: Record<
|
|
5
|
+
export declare const TOOLTIP_CLASSES: Record<"text" | "tooltip" | "root", string>;
|
|
6
6
|
/**
|
|
7
7
|
* Desplazamiento predeterminado del tooltip (X, Y)
|
|
8
8
|
*/
|
|
@@ -10,7 +10,7 @@ export declare const TYPOGRAPHY_CLASS_NAME_SPECIFY = "M4lclassCssSpecificity";
|
|
|
10
10
|
/**
|
|
11
11
|
* Inventario de clases CSS para el componente Typography.
|
|
12
12
|
*/
|
|
13
|
-
export declare const TYPOGRAPHY_CLASSES: Record<
|
|
13
|
+
export declare const TYPOGRAPHY_CLASSES: Record<"skeleton" | "root", string>;
|
|
14
14
|
export declare const TYPOGRAPHY_FONTS: {
|
|
15
15
|
Inter: string;
|
|
16
16
|
Jura: string;
|
|
@@ -3,6 +3,7 @@ import { Sizes, TypographyVariants } from '@m4l/styles';
|
|
|
3
3
|
import { TypographySlots } from './slots/typographyEnum';
|
|
4
4
|
import { TYPOGRAPHY_KEY_COMPONENT } from './constants';
|
|
5
5
|
import { M4LOverridesStyleRules } from '../../../@types/augmentations';
|
|
6
|
+
import { DeepKeyOf } from '../../../utils/types';
|
|
6
7
|
/**
|
|
7
8
|
* Define los colores de tipografía disponibles para el componente.
|
|
8
9
|
*/
|
|
@@ -23,7 +24,7 @@ export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'var
|
|
|
23
24
|
/**
|
|
24
25
|
* Opción de color usada para pintar el componente.
|
|
25
26
|
*/
|
|
26
|
-
color?:
|
|
27
|
+
color?: DeepKeyOf<Theme['vars']['palette']> | string;
|
|
27
28
|
/**
|
|
28
29
|
* Opciones de tamaño del componente.
|
|
29
30
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getPropertyByString } from "@m4l/core";
|
|
1
2
|
import { g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
3
|
import { g as getTypographyStyles } from "../../../utils/getTypographyStyles.js";
|
|
3
4
|
const typographyStyles = {
|
|
@@ -19,17 +20,11 @@ const typographyStyles = {
|
|
|
19
20
|
flexDirection: "column"
|
|
20
21
|
},
|
|
21
22
|
// Override de estilos generales de MUI 🚫
|
|
22
|
-
// color text.primary 🎨
|
|
23
|
-
...ownerState?.color === "text.primary" && {
|
|
24
|
-
color: theme.vars.palette.text.primary
|
|
25
|
-
},
|
|
26
|
-
// color text.secondary 🎨
|
|
27
|
-
...ownerState?.color === "text.secondary" && {
|
|
28
|
-
color: theme.vars.palette.text.secondary
|
|
29
|
-
},
|
|
30
23
|
// color text.disabled 🎨
|
|
31
|
-
...
|
|
24
|
+
...ownerState?.disabled || ownerState?.color === "text.disabled" ? {
|
|
32
25
|
color: theme.vars.palette.text.disabled
|
|
26
|
+
} : {
|
|
27
|
+
color: getPropertyByString(theme.vars.palette, ownerState?.color || "text.primary", "text.primary")
|
|
33
28
|
},
|
|
34
29
|
...getTypographyStyles(
|
|
35
30
|
theme.generalSettings.isMobile,
|
|
@@ -262,10 +262,14 @@ const createPopupsStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
262
262
|
/**
|
|
263
263
|
* closePopup: Cierra un popup
|
|
264
264
|
*/
|
|
265
|
-
close: (popupId) => {
|
|
265
|
+
close: (popupId, useFnQueryClose = true) => {
|
|
266
266
|
if (!get().hashPopups[popupId]) {
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
|
+
if (get().hashPopups[popupId].fnQueryClose && useFnQueryClose) {
|
|
270
|
+
get().hashPopups[popupId].fnQueryClose?.();
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
269
273
|
set((state) => {
|
|
270
274
|
state.hashPopups[popupId].status = "closing";
|
|
271
275
|
});
|
|
@@ -296,7 +296,7 @@ export interface PopupsProviderStoreStateWithActions extends PopupsProviderStore
|
|
|
296
296
|
/**
|
|
297
297
|
* pasa el status a closing para que las las transiciones se ejecuten.
|
|
298
298
|
*/
|
|
299
|
-
close: (popupId: string) => void;
|
|
299
|
+
close: (popupId: string, useFnQueryClose?: boolean) => void;
|
|
300
300
|
/**
|
|
301
301
|
* Modifica un popup espeficio
|
|
302
302
|
*/
|
|
@@ -5,9 +5,6 @@ import { WindowToolsMF } from '../../../../WindowBase/contexts';
|
|
|
5
5
|
* Este hook encapsula la lógica relacionada con el estado y las funciones necesarias
|
|
6
6
|
* para el componente Popup. Retorna un objeto con el estado, las acciones y las herramientas
|
|
7
7
|
* de la ventana popup.
|
|
8
|
-
* @param {string} areaId - Identificador del área.
|
|
9
|
-
* @param {string} popupId - Identificador del popup.
|
|
10
|
-
* @returns {Object} Objeto con estado, acciones y herramientas del popup.
|
|
11
8
|
*/
|
|
12
9
|
export declare const usePopups: (popupId: string) => {
|
|
13
10
|
winType: "component" | "microfrontend";
|
|
@@ -17,7 +14,8 @@ export declare const usePopups: (popupId: string) => {
|
|
|
17
14
|
iconUrl: string;
|
|
18
15
|
selected: boolean;
|
|
19
16
|
mfProps: import('../../../../MFLoader/types').MFBaseProps | undefined;
|
|
20
|
-
component: import('../../../../WindowBase').JSX_REACT_NODE;
|
|
17
|
+
component: import('../../../../WindowBase').JSX_REACT_NODE | undefined;
|
|
18
|
+
componentProps: Record<string, any> | undefined;
|
|
21
19
|
loading: boolean | undefined;
|
|
22
20
|
status: import('../../PopupsViewer/types').PopupStatus;
|
|
23
21
|
version: string | undefined;
|
|
@@ -43,6 +43,10 @@ const usePopups = (popupId) => {
|
|
|
43
43
|
(state) => state.hashPopups[popupId].winType === "component" ? state.hashPopups[popupId].component : void 0,
|
|
44
44
|
shallow
|
|
45
45
|
);
|
|
46
|
+
const componentProps = usePopupsStore(
|
|
47
|
+
(state) => state.hashPopups[popupId].winType === "component" ? state.hashPopups[popupId].componentProps : void 0,
|
|
48
|
+
shallow
|
|
49
|
+
);
|
|
46
50
|
const selectedPopupId = usePopupsStore(
|
|
47
51
|
(state) => state.hashGroups[state.hashPopups[popupId].groupId].selectedPopupId,
|
|
48
52
|
shallow
|
|
@@ -65,16 +69,21 @@ const usePopups = (popupId) => {
|
|
|
65
69
|
setActions: (newActions, newVersion, newBuildTime) => {
|
|
66
70
|
setActions(popupId, newActions, newVersion, newBuildTime);
|
|
67
71
|
},
|
|
72
|
+
/**
|
|
73
|
+
* TODO: Implementar
|
|
74
|
+
*/
|
|
68
75
|
getCookie: () => {
|
|
69
|
-
|
|
76
|
+
return void 0;
|
|
70
77
|
},
|
|
78
|
+
/**
|
|
79
|
+
* TODO: Implementar
|
|
80
|
+
*/
|
|
71
81
|
getCookies: () => {
|
|
72
|
-
|
|
82
|
+
return {};
|
|
73
83
|
},
|
|
74
|
-
setCookie: (
|
|
75
|
-
throw new Error(`setCookie not implemented: ${key}, ${value}`);
|
|
84
|
+
setCookie: (_key, _value) => {
|
|
76
85
|
},
|
|
77
|
-
close: () => close(popupId),
|
|
86
|
+
close: (useFnQueryClose = true) => close(popupId, useFnQueryClose),
|
|
78
87
|
startProgress: () => startProgress(popupId),
|
|
79
88
|
stopProgress: () => stopProgress(popupId),
|
|
80
89
|
setFnQueryClose: (fnQueryClose) => setFnQueryClose(popupId, fnQueryClose),
|
|
@@ -89,7 +98,6 @@ const usePopups = (popupId) => {
|
|
|
89
98
|
}),
|
|
90
99
|
[
|
|
91
100
|
popupId,
|
|
92
|
-
buildTime,
|
|
93
101
|
setActions,
|
|
94
102
|
//getCookie,
|
|
95
103
|
//getCookies,
|
|
@@ -97,7 +105,10 @@ const usePopups = (popupId) => {
|
|
|
97
105
|
close,
|
|
98
106
|
startProgress,
|
|
99
107
|
stopProgress,
|
|
100
|
-
setFnQueryClose
|
|
108
|
+
setFnQueryClose,
|
|
109
|
+
update,
|
|
110
|
+
hide,
|
|
111
|
+
show
|
|
101
112
|
]
|
|
102
113
|
);
|
|
103
114
|
const memoizedActions = useHeaderActionsPopups({
|
|
@@ -112,6 +123,7 @@ const usePopups = (popupId) => {
|
|
|
112
123
|
selected: selectedPopupId === popupId,
|
|
113
124
|
mfProps,
|
|
114
125
|
component,
|
|
126
|
+
componentProps,
|
|
115
127
|
loading,
|
|
116
128
|
status,
|
|
117
129
|
version,
|
|
@@ -33,7 +33,7 @@ const PopupsViewer = (props) => {
|
|
|
33
33
|
return /* @__PURE__ */ jsx(
|
|
34
34
|
CSSTransition,
|
|
35
35
|
{
|
|
36
|
-
timeout: { appear: 0, enter:
|
|
36
|
+
timeout: { appear: 0, enter: 0, exit: 0 },
|
|
37
37
|
nodeRef: popupRefsMap.current[id],
|
|
38
38
|
unmountOnExit: true,
|
|
39
39
|
onEntered: () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useRef, useEffect } from "react";
|
|
2
|
+
import { forwardRef, useRef, useEffect, useMemo } from "react";
|
|
3
3
|
import { shallow } from "zustand/shallow";
|
|
4
4
|
import { u as usePopupsStore } from "../../../PopupsProvider/hooks/usePopupsStore.js";
|
|
5
5
|
import { P as PopupDragWindowRootStyled } from "../../slots/popupsViewerSlots.js";
|
|
@@ -9,10 +9,11 @@ import { a as POPUPS_VIEWER_CLASS_NAME } from "../../constants.js";
|
|
|
9
9
|
import { a as getNameDataTestId } from "../../../../../../test/getNameDataTestId.js";
|
|
10
10
|
import { M as MemonizedWindowBaseMicroFrontend } from "../../../../../WindowBase/subcomponents/MicroFrontend/MicroFrontend.js";
|
|
11
11
|
import { W as WindowBaseComponent } from "../../../../../WindowBase/subcomponents/Component/index.js";
|
|
12
|
+
import { d as deepShallow } from "../../../../../../utils/deepShallow.js";
|
|
12
13
|
import { W as WindowBase } from "../../../../../WindowBase/WindowBase.js";
|
|
13
14
|
const Popup = forwardRef((props, ref) => {
|
|
14
15
|
const { popupId, containerElement, containerSize, style, onResizeStart, onResizeStop, onDragStart, onDragStop, loggedUser } = props;
|
|
15
|
-
const popup = usePopupsStore((state) => state.hashPopups[popupId],
|
|
16
|
+
const popup = usePopupsStore((state) => state.hashPopups[popupId], deepShallow);
|
|
16
17
|
const { bringPopupOnFront } = usePopupsStore((state) => state.popupsActions, shallow);
|
|
17
18
|
const { close } = usePopupsStore((state) => state.popupActions, shallow);
|
|
18
19
|
const refHandler = useRef(null);
|
|
@@ -32,6 +33,7 @@ const Popup = forwardRef((props, ref) => {
|
|
|
32
33
|
windowTools,
|
|
33
34
|
mfProps,
|
|
34
35
|
component,
|
|
36
|
+
componentProps,
|
|
35
37
|
//onTouch,
|
|
36
38
|
memoizedActions,
|
|
37
39
|
loading,
|
|
@@ -75,6 +77,33 @@ const Popup = forwardRef((props, ref) => {
|
|
|
75
77
|
refHandler.current?.ensureVisible();
|
|
76
78
|
}
|
|
77
79
|
}, [popup.enforceVisibleCount, popupId]);
|
|
80
|
+
const memoComponent = useMemo(() => {
|
|
81
|
+
if (winType === "microfrontend") {
|
|
82
|
+
return /* @__PURE__ */ jsx(
|
|
83
|
+
MemonizedWindowBaseMicroFrontend,
|
|
84
|
+
{
|
|
85
|
+
emergeType: "popup",
|
|
86
|
+
moduleId,
|
|
87
|
+
dynamicMFStore,
|
|
88
|
+
windowTools,
|
|
89
|
+
loggedUser,
|
|
90
|
+
...mfProps ?? { debugPort: 0, prefix: "" }
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
} else {
|
|
94
|
+
return /* @__PURE__ */ jsx(
|
|
95
|
+
WindowBaseComponent,
|
|
96
|
+
{
|
|
97
|
+
id: popupId,
|
|
98
|
+
emergeType: "popup",
|
|
99
|
+
dynamicMFStore,
|
|
100
|
+
windowTools,
|
|
101
|
+
component,
|
|
102
|
+
componentProps
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
}, [winType, component, componentProps, moduleId, dynamicMFStore, windowTools, loggedUser, mfProps, popupId]);
|
|
78
107
|
if (!popup) {
|
|
79
108
|
return null;
|
|
80
109
|
}
|
|
@@ -126,25 +155,7 @@ const Popup = forwardRef((props, ref) => {
|
|
|
126
155
|
"root"
|
|
127
156
|
)
|
|
128
157
|
} : {},
|
|
129
|
-
children:
|
|
130
|
-
MemonizedWindowBaseMicroFrontend,
|
|
131
|
-
{
|
|
132
|
-
emergeType: "popup",
|
|
133
|
-
moduleId,
|
|
134
|
-
dynamicMFStore,
|
|
135
|
-
windowTools,
|
|
136
|
-
loggedUser,
|
|
137
|
-
...mfProps ?? { debugPort: 0, prefix: "" }
|
|
138
|
-
}
|
|
139
|
-
) : /* @__PURE__ */ jsx(
|
|
140
|
-
WindowBaseComponent,
|
|
141
|
-
{
|
|
142
|
-
emergeType: "popup",
|
|
143
|
-
dynamicMFStore,
|
|
144
|
-
windowTools,
|
|
145
|
-
component
|
|
146
|
-
}
|
|
147
|
-
)
|
|
158
|
+
children: memoComponent
|
|
148
159
|
}
|
|
149
160
|
)
|
|
150
161
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useRef } from "react";
|
|
2
|
+
import { createContext, useRef, useEffect } from "react";
|
|
3
3
|
import { DEFAULT_SIZE } from "@m4l/styles";
|
|
4
4
|
import { c as createAppearanceComponentStore } from "./AppearanceComponentStore.js";
|
|
5
5
|
const AppearanceComponentContext = createContext(null);
|
|
@@ -12,6 +12,14 @@ function AppearanceComponentProvider(props) {
|
|
|
12
12
|
storeId
|
|
13
13
|
}, storeDevtoolsEnabled);
|
|
14
14
|
}
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
if (appearanceComponentStoreRef.current && defaultSize) {
|
|
17
|
+
const currentStoreSize = appearanceComponentStoreRef.current.getState().defaultSize;
|
|
18
|
+
if (currentStoreSize !== defaultSize) {
|
|
19
|
+
appearanceComponentStoreRef.current.getState().actions.setDefaultSize(defaultSize);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}, [defaultSize]);
|
|
15
23
|
return /* @__PURE__ */ jsx(AppearanceComponentContext.Provider, { value: appearanceComponentStoreRef.current, children });
|
|
16
24
|
}
|
|
17
25
|
export {
|
package/index.js
CHANGED
|
@@ -43,22 +43,23 @@ import { u as u3 } from "./components/DataGrid/formatters/ColumnConcatenatedValu
|
|
|
43
43
|
import { C as C6 } from "./components/DataGrid/formatters/ColumnDateFormatter/formatter.js";
|
|
44
44
|
import { u as u4 } from "./components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.js";
|
|
45
45
|
import { C as C7 } from "./components/DataGrid/formatters/ColumnIconFormatter/formatter.js";
|
|
46
|
+
import { u as u5 } from "./components/DataGrid/formatters/ColumnIconFormatter/useColumnIcon.js";
|
|
46
47
|
import { C as C8 } from "./components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
47
|
-
import { u as
|
|
48
|
+
import { u as u6 } from "./components/DataGrid/formatters/ColumnInteractiveCheckFormatter/useColumnInteractiveCheck.js";
|
|
48
49
|
import { C as C9 } from "./components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js";
|
|
49
|
-
import { u as
|
|
50
|
+
import { u as u7 } from "./components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js";
|
|
50
51
|
import { C as C10 } from "./components/DataGrid/formatters/ColumnPointsFormatter/formatter.js";
|
|
51
|
-
import { u as
|
|
52
|
+
import { u as u8 } from "./components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.js";
|
|
52
53
|
import { C as C11 } from "./components/DataGrid/formatters/ColumnPriceFormatter/formatter.js";
|
|
53
|
-
import { u as
|
|
54
|
+
import { u as u9 } from "./components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.js";
|
|
54
55
|
import { C as C12 } from "./components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js";
|
|
55
|
-
import { u as
|
|
56
|
+
import { u as u10 } from "./components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.js";
|
|
56
57
|
import { C as C13 } from "./components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.js";
|
|
57
|
-
import { u as
|
|
58
|
+
import { u as u11 } from "./components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js";
|
|
58
59
|
import { C as C14 } from "./components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js";
|
|
59
|
-
import { u as
|
|
60
|
+
import { u as u12 } from "./components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js";
|
|
60
61
|
import { C as C15 } from "./components/DataGrid/formatters/ColumnTagsFormatter/formatter.js";
|
|
61
|
-
import { u as
|
|
62
|
+
import { u as u13 } from "./components/DataGrid/formatters/ColumnTagsFormatter/useColumnTags.js";
|
|
62
63
|
import { D as D3 } from "./components/DragResizeWindowRND/DragResizeWindowRND.js";
|
|
63
64
|
import { d as d2 } from "./components/DragResizeWindowRND/classes/index.js";
|
|
64
65
|
import { W } from "./components/DragResizeWindowRND/constants.js";
|
|
@@ -119,13 +120,13 @@ import { D as D8, g as g12 } from "./components/formatters/DateFormatter/DateFor
|
|
|
119
120
|
import { U, g as g13 } from "./components/formatters/UncertaintyFormatter/UncertaintyFormatter.js";
|
|
120
121
|
import { P as P3, g as g14 } from "./components/formatters/PointsFormatter/PointsFormatter.js";
|
|
121
122
|
import { C as C18, g as g15 } from "./components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
|
|
122
|
-
import { P as P4, u as
|
|
123
|
+
import { P as P4, u as u14 } from "./components/formatters/PeriodFormatter/PeriodFormatter.js";
|
|
123
124
|
import { P as P5, g as g16 } from "./components/formatters/PriceFormatter/PriceFormatter.js";
|
|
124
125
|
import { T as T17 } from "./components/formatters/TagsFormatter/TagsFormatter.js";
|
|
125
126
|
import { C as C19 } from "./components/formatters/ChipStatusFormatter/ChipStatusFormatter.js";
|
|
126
127
|
import { g as g17 } from "./components/formatters/DistanceToNowFormatter/dictionary.js";
|
|
127
128
|
import { D as D9 } from "./components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js";
|
|
128
|
-
import { u as
|
|
129
|
+
import { u as u15 } from "./components/formatters/DistanceToNowFormatter/hooks/useDistanceToNowFormatter.js";
|
|
129
130
|
import { g as g18 } from "./components/formatters/dictionary.js";
|
|
130
131
|
import { F as F2 } from "./components/FormContainer/FormContainer.js";
|
|
131
132
|
import { G } from "./components/GridLayout/GridLayout.js";
|
|
@@ -168,7 +169,8 @@ import { g as g22 } from "./components/LoadingError/dictionary.js";
|
|
|
168
169
|
import { g as g23 } from "./components/MenuActions/dictionary.js";
|
|
169
170
|
import { a as a9, M as M3 } from "./components/MenuActions/MenuActions.js";
|
|
170
171
|
import { M as M4 } from "./components/MFIsolationApp/MFIsolationApp.js";
|
|
171
|
-
import { M as M5 } from "./components/
|
|
172
|
+
import { M as M5 } from "./components/MFIsolationAppStorybook/MFIsolationAppStorybook.js";
|
|
173
|
+
import { M as M6 } from "./components/MFLoader/MFLoader.js";
|
|
172
174
|
import { g as g24 } from "./components/MFLoader/dictionary.js";
|
|
173
175
|
import { I as I6 } from "./components/ImageText/ImageText.js";
|
|
174
176
|
import { N as N4 } from "./components/NoItemSelected/NoItemSelected.js";
|
|
@@ -179,7 +181,7 @@ import { g as g27 } from "./components/ObjectLogs/dictionary.js";
|
|
|
179
181
|
import { O } from "./components/ObjectLogs/ObjectLogs.js";
|
|
180
182
|
import { P as P7 } from "./components/PaperForm/PaperForm.js";
|
|
181
183
|
import { P as P8 } from "./components/PDFViewer/PDFViewer.js";
|
|
182
|
-
import { u as
|
|
184
|
+
import { u as u16 } from "./components/popups/components/PopupsProvider/hooks/usePopupsStore.js";
|
|
183
185
|
import { a as a10, P as P9 } from "./components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
|
|
184
186
|
import { P as P10 } from "./components/popups/components/PopupsViewer/PopupsViewer.js";
|
|
185
187
|
import { P as P11 } from "./components/PrintingSystem/PrintingSystem.js";
|
|
@@ -189,17 +191,17 @@ import { S as S9 } from "./components/SideBar/SideBar.js";
|
|
|
189
191
|
import { T as T18 } from "./components/ToastContainer/ToastContainer.js";
|
|
190
192
|
import { T as T19 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
|
|
191
193
|
import { W as W2 } from "./components/WindowBase/WindowBase.js";
|
|
192
|
-
import { u as
|
|
193
|
-
import { u as
|
|
194
|
-
import { M as
|
|
194
|
+
import { u as u17 } from "./components/WindowBase/hooks/useWindowToolsMF/index.js";
|
|
195
|
+
import { u as u18, a as a11 } from "./components/WindowBase/hooks/useDynamicMFParameters/index.js";
|
|
196
|
+
import { M as M7, W as W3, a as a12 } from "./components/WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js";
|
|
195
197
|
import { c as c3 } from "./components/WindowBase/contexts/DynamicMFParmsContext/store.js";
|
|
196
|
-
import { D as D10, a as a13, M as
|
|
198
|
+
import { D as D10, a as a13, M as M8 } from "./components/WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
|
|
197
199
|
import { W as W4 } from "./components/WindowConfirm/WindowConfirm.js";
|
|
198
200
|
import { a as a14, g as g28 } from "./components/ModalDialog/dictionary.js";
|
|
199
|
-
import { M as
|
|
201
|
+
import { M as M9 } from "./components/ModalDialog/ModalDialog.js";
|
|
200
202
|
import { S as S10 } from "./components/SettingsLayout/SettingsLayout.js";
|
|
201
203
|
import { P as P13 } from "./components/Pager/Pager.js";
|
|
202
|
-
import { u as
|
|
204
|
+
import { u as u19 } from "./components/Stepper/hooks/useStepper/index.js";
|
|
203
205
|
import { S as S11 } from "./components/Stepper/Stepper.js";
|
|
204
206
|
import { S as S12 } from "./components/Stepper/subcomponents/StepperContent/index.js";
|
|
205
207
|
import { S as S13 } from "./components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js";
|
|
@@ -212,27 +214,27 @@ import { S as S19 } from "./components/Stepper/subcomponents/StepperButtons/Step
|
|
|
212
214
|
import { S as S20 } from "./components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js";
|
|
213
215
|
import { e as e2 } from "./components/Stepper/helpers/evaluateVisibilityStepCondition/index.js";
|
|
214
216
|
import { g as g29 } from "./components/Stepper/dictionary.js";
|
|
215
|
-
import { F as F3, R as R23, u as
|
|
217
|
+
import { F as F3, R as R23, u as u20 } from "./components/hook-form/RHFormContext/index.js";
|
|
216
218
|
import { g as g30 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
217
|
-
import { u as
|
|
219
|
+
import { u as u21 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
218
220
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
219
|
-
import { a as a15, M as
|
|
220
|
-
import { u as
|
|
221
|
-
import { u as
|
|
222
|
-
import { u as
|
|
221
|
+
import { a as a15, M as M10 } from "./contexts/ModalContext/index.js";
|
|
222
|
+
import { u as u22 } from "./hooks/useFormAddEdit/index.js";
|
|
223
|
+
import { u as u23 } from "./hooks/useModal/index.js";
|
|
224
|
+
import { u as u24 } from "./hooks/useTab/index.js";
|
|
223
225
|
import { g as g31 } from "./hooks/useFormAddEdit/dictionary.js";
|
|
224
|
-
import { u as
|
|
225
|
-
import { u as
|
|
226
|
-
import { u as
|
|
227
|
-
import { u as
|
|
228
|
-
import { u as
|
|
226
|
+
import { u as u25 } from "./hooks/useFormFocus/index.js";
|
|
227
|
+
import { u as u26 } from "./hooks/useInterval/index.js";
|
|
228
|
+
import { u as u27 } from "./hooks/useComponentSize/useComponentSize.js";
|
|
229
|
+
import { u as u28 } from "./hooks/useFormReadyForUpdate/index.js";
|
|
230
|
+
import { u as u29 } from "./hooks/useStateRef/index.js";
|
|
229
231
|
import { S as S21 } from "./hooks/useSvgColor/constants.js";
|
|
230
|
-
import { u as
|
|
231
|
-
import { u as
|
|
232
|
-
import { u as
|
|
233
|
-
import { u as
|
|
234
|
-
import { u as
|
|
235
|
-
import { u as
|
|
232
|
+
import { u as u30 } from "./hooks/useSvgColor/useSvgColor.js";
|
|
233
|
+
import { u as u31 } from "./hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js";
|
|
234
|
+
import { u as u32 } from "./hooks/useDataGridPersistence/useDataGridPersistence.js";
|
|
235
|
+
import { u as u33 } from "./hooks/usePopoverContainer/usePopoverContainer.js";
|
|
236
|
+
import { u as u34 } from "./hooks/useIsVisible/useIsVisible.js";
|
|
237
|
+
import { u as u35 } from "./hooks/useSizeContainer/index.js";
|
|
236
238
|
import { c as c4 } from "./utils/capitalizeFirstLetter.js";
|
|
237
239
|
import { i as i2 } from "./utils/isValidDate.js";
|
|
238
240
|
import { g as g32 } from "./utils/getComponentUtilityClass.js";
|
|
@@ -329,14 +331,15 @@ export {
|
|
|
329
331
|
L10 as LoadingError,
|
|
330
332
|
L as LoadingScreen,
|
|
331
333
|
M4 as MFIsolationApp,
|
|
332
|
-
M5 as
|
|
333
|
-
|
|
334
|
+
M5 as MFIsolationAppStorybook,
|
|
335
|
+
M6 as MFLoader,
|
|
336
|
+
M8 as MemonizedDynamicMFParmsProvider,
|
|
334
337
|
a9 as MemonizedMenuActions,
|
|
335
|
-
|
|
338
|
+
M7 as MemonizedWindowToolsMFContext,
|
|
336
339
|
M3 as MenuActions,
|
|
337
340
|
a15 as ModalContext,
|
|
338
|
-
|
|
339
|
-
|
|
341
|
+
M9 as ModalDialog,
|
|
342
|
+
M10 as ModalProvider,
|
|
340
343
|
M as MotionContainer,
|
|
341
344
|
M2 as MotionLazyContainer,
|
|
342
345
|
N2 as NavLink,
|
|
@@ -496,41 +499,42 @@ export {
|
|
|
496
499
|
r as rhfPeriodStyles,
|
|
497
500
|
t as toggleButtonStyles,
|
|
498
501
|
t2 as toggleIconButtonStyles,
|
|
499
|
-
|
|
502
|
+
u21 as useAppearanceComponentStore,
|
|
500
503
|
u as useAreasStore,
|
|
501
504
|
u2 as useColumnBoolean,
|
|
502
|
-
|
|
505
|
+
u12 as useColumnChipStatus,
|
|
503
506
|
u3 as useColumnConcatenatedValue,
|
|
504
507
|
u4 as useColumnDate,
|
|
505
|
-
u5 as
|
|
506
|
-
u6 as
|
|
507
|
-
u7 as
|
|
508
|
-
u8 as
|
|
509
|
-
u9 as
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
508
|
+
u5 as useColumnIcon,
|
|
509
|
+
u6 as useColumnInteractiveCheck,
|
|
510
|
+
u7 as useColumnNestedValue,
|
|
511
|
+
u8 as useColumnPoints,
|
|
512
|
+
u9 as useColumnPrice,
|
|
513
|
+
u10 as useColumnSetCheck,
|
|
514
|
+
u13 as useColumnTags,
|
|
515
|
+
u11 as useColumnUncertanity,
|
|
516
|
+
u27 as useComponentSize,
|
|
517
|
+
u20 as useCustomForm,
|
|
518
|
+
u32 as useDataGridPersistence,
|
|
519
|
+
u15 as useDistanceToNowFormatter,
|
|
520
|
+
u31 as useDynamicFilterAndSort,
|
|
521
|
+
u18 as useDynamicMFParameters,
|
|
518
522
|
a11 as useDynamicMFParametersStore,
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
523
|
+
u22 as useFormAddEdit,
|
|
524
|
+
u25 as useFormFocus,
|
|
525
|
+
u28 as useFormReadyForUpdate,
|
|
526
|
+
u14 as useFormatPeriod,
|
|
527
|
+
u26 as useInterval,
|
|
528
|
+
u34 as useIsVisible,
|
|
529
|
+
u23 as useModal,
|
|
530
|
+
u33 as usePopoverContainer,
|
|
531
|
+
u16 as usePopupsStore,
|
|
532
|
+
u35 as useSizeContainer,
|
|
533
|
+
u29 as useStateRef,
|
|
534
|
+
u19 as useStepper,
|
|
535
|
+
u30 as useSvgColor,
|
|
536
|
+
u24 as useTab,
|
|
537
|
+
u17 as useWindowToolsMF,
|
|
534
538
|
v2 as varBounce,
|
|
535
539
|
v3 as varContainer,
|
|
536
540
|
v as varFade,
|