@m4l/components 9.2.54-beta.1 → 9.2.54
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/.storybook/utils/getStylesColorsByMode.d.ts +4 -4
- package/components/Chip/ChipStyles.js +1 -1
- package/components/DataGrid/constants.js +2 -2
- package/components/DataGrid/contexts/DataGridContext/index.js +1 -1
- package/components/DataGrid/contexts/FilterContext/index.js +1 -1
- package/components/DataGrid/dictionary.js +0 -3
- package/components/DataGrid/slots/DataGridEnum.js +2 -2
- package/components/DataGrid/slots/DataGridSlot.js +1 -1
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +2 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +2 -2
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +0 -1
- package/components/DynamicFilter/dictionary.js +0 -12
- package/components/DynamicFilter/store/DynamicFilterContext.js +1 -1
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicSort/dictionary.js +0 -5
- package/components/DynamicSort/slots/DynamicSortSlots.js +1 -1
- package/components/DynamicSort/store/DynamicSortContext.js +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/GridLayout/GridLayout.js +1 -1
- package/components/GridLayout/styles.js +1 -1
- package/components/GridLayout/subcomponents/GridItem/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/helper.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.js +3 -3
- package/components/GridLayout/subcomponents/withSizeProvider/index.js +1 -1
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/constants.js +2 -2
- package/components/Icon/slots/IconSlots.js +1 -1
- package/components/Image/Image.js +1 -1
- package/components/Image/constant.js +2 -2
- package/components/Image/slots/ImageSlots.js +1 -1
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/LanguagePopover/LanguagePopover.js +1 -1
- package/components/LoadingError/LoadingError.js +1 -1
- package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +1 -1
- package/components/NoItemSelected/NoItemSelected.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/NumberInputReducer.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- package/components/ObjectLogs/dictionary.js +0 -3
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +1 -1
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +1 -1
- package/components/Pager/Pager.styles.js +0 -8
- package/components/Pager/dicctionary.js +0 -5
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +1 -1
- package/components/PropertyValue/PropertyValue.js +2 -2
- package/components/ScrollBar/ScrollBar.js +1 -1
- package/components/SideBar/slots/SideBarEnum.js +4 -4
- package/components/SideBar/slots/SideBarSlots.js +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -1
- package/components/ToastContainer/ToastContainer.js +1 -1
- package/components/ToastContainer/ToastContainer.styles.js +2 -8
- package/components/WindowBase/WindowBase.js +2 -0
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts +2 -1
- package/components/WindowBase/index.d.ts +1 -1
- package/components/WindowBase/slots/WindowBaseSlots.js +1 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.d.ts +0 -26
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +29 -38
- package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
- package/components/WindowBase/subcomponents/Header/useButtonActions.d.ts +5 -0
- package/components/WindowBase/subcomponents/Header/useButtonActions.js +36 -0
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +4 -0
- package/components/WindowBase/types.d.ts +32 -37
- package/components/animate/variants/bounce.js +1 -1
- package/components/animate/variants/fade.js +1 -1
- package/components/animate/variants/transition.js +2 -2
- package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +8 -3
- package/components/areas/contexts/AreasContext/helpers/helper.js +14 -14
- package/components/areas/contexts/AreasContext/store.js +7 -6
- package/components/areas/contexts/AreasContext/types.d.ts +1 -1
- package/components/areas/icons.js +0 -8
- package/components/areas/types.d.ts +4 -0
- package/components/commercial/HamburgerMenu/classes/index.js +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.js +3 -3
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +1 -1
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.js +2 -2
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
- package/components/hook-form/RHFAutocompleteAsync/tests/common.d.ts +4 -2
- package/components/hook-form/RHFAutocompleteAsync/types.js +0 -6
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.js +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +1 -3
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +1 -1
- package/components/hook-form/RHFormContext/classes/index.js +1 -1
- package/components/hook-form/RHFormContext/index.js +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Accordion/slots/AccordionSlots.js +2 -2
- package/components/mui_extended/Autocomplete/Autocomplete.js +2 -11
- package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.js +11 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +4 -4
- package/components/mui_extended/CheckBox/CheckBox.js +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.js +2 -2
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.js +1 -1
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -1
- package/components/mui_extended/ImageButton/utils/Clases/index.js +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
- package/components/mui_extended/NavLink/NavLink.js +1 -1
- package/components/mui_extended/NavLink/constants.js +2 -2
- package/components/mui_extended/NavLink/slots/NavLinkSlots.js +1 -1
- package/components/mui_extended/Popover/Popover.js +1 -1
- package/components/mui_extended/Popover/Popover.styles.js +1 -5
- package/components/mui_extended/Popover/constants.js +2 -2
- package/components/mui_extended/Select/Select.js +1 -1
- package/components/mui_extended/Select/Select.styles.js +1 -1
- package/components/mui_extended/Select/constants.js +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Tab/Tab.js +1 -1
- package/components/mui_extended/TextField/constants.js +1 -1
- package/components/mui_extended/Tooltip/Tooltip.js +2 -2
- package/components/mui_extended/Tooltip/slots/TooltipSlots.js +2 -2
- package/components/mui_extended/Typography/Typography.js +1 -1
- package/components/mui_extended/Typography/constants.js +3 -3
- package/components/mui_extended/Typography/slots/typographySlots.js +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +2 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +6 -2
- package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups.js +1 -3
- package/components/popups/components/PopupsProvider/hooks/usePopups.d.ts +1 -0
- package/components/popups/components/PopupsProvider/hooks/usePopups.js +5 -2
- package/components/popups/components/PopupsViewer/icons.js +0 -1
- package/hooks/useDataGridPersistence/constants.js +2 -2
- package/hooks/useDataGridPersistence/useDataGridPersistence.js +1 -1
- package/hooks/useSvgColor/constants.js +2 -2
- package/hooks/useSvgColor/helpers.js +1 -1
- package/hooks/useSvgColor/useSvgColor.js +1 -1
- package/index.js +19 -19
- package/package.json +3 -3
|
@@ -192,23 +192,23 @@ function getSelectedAreaIdFromCookies(cookiesResponse) {
|
|
|
192
192
|
}
|
|
193
193
|
export {
|
|
194
194
|
COOKIE_WINDOW_SELECTED as C,
|
|
195
|
-
|
|
195
|
+
DEBOUCED_SAVE_TIME as D,
|
|
196
196
|
MARGIN_GRIDLAYOUT as M,
|
|
197
197
|
NORMALIZED_COLS as N,
|
|
198
198
|
PADDING_GRIDLAYOUT as P,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
199
|
+
RESPONSIVE_ROW_HEIGHTS as R,
|
|
200
|
+
RESPONSIVE_COLAPSED_HEIGHTS as a,
|
|
201
|
+
getDataFromResponse as b,
|
|
202
|
+
getParmsFromValue as c,
|
|
203
|
+
COOKIE_BREAKPOINT_LAYOUTS as d,
|
|
204
204
|
DEFAULT_WINDOW as e,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
COOKIE_WINDOWS as f,
|
|
206
|
+
getCookiesContainer as g,
|
|
207
|
+
deleteLayoutFromBreakPoints as h,
|
|
208
|
+
addArea as i,
|
|
209
|
+
DEFAULT_AREA as j,
|
|
210
|
+
getSelectedAreaIdFromCookies as k,
|
|
211
|
+
COOKIE_AREAS_ADMIN_CONTAINER_ID as l,
|
|
212
|
+
COOKIE_AREAS_ADMIN_ID as m,
|
|
213
213
|
setColapsedLayoutBreakPoints as s
|
|
214
214
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createStore } from "zustand";
|
|
2
2
|
import { devtools } from "zustand/middleware";
|
|
3
3
|
import { immer } from "zustand/middleware/immer";
|
|
4
|
-
import { b as
|
|
4
|
+
import { g as getCookiesContainer, b as getDataFromResponse, c as getParmsFromValue, s as setColapsedLayoutBreakPoints, d as COOKIE_BREAKPOINT_LAYOUTS, D as DEBOUCED_SAVE_TIME, e as DEFAULT_WINDOW, M as MARGIN_GRIDLAYOUT, f as COOKIE_WINDOWS, h as deleteLayoutFromBreakPoints, R as RESPONSIVE_ROW_HEIGHTS, P as PADDING_GRIDLAYOUT, N as NORMALIZED_COLS, i as addArea, j as DEFAULT_AREA, k as getSelectedAreaIdFromCookies, C as COOKIE_WINDOW_SELECTED, l as COOKIE_AREAS_ADMIN_CONTAINER_ID, m as COOKIE_AREAS_ADMIN_ID } from "./helpers/helper.js";
|
|
5
5
|
import { c as createDynamicMFStore } from "../../../WindowBase/contexts/DynamicMFParmsContext/store.js";
|
|
6
6
|
import cloneDeep from "lodash-es/cloneDeep";
|
|
7
7
|
import debounce from "lodash-es/debounce";
|
|
8
8
|
import { g as generateModuleCount } from "./helpers/generateModuleCount.js";
|
|
9
9
|
import { a as AREAS_STORE_ID } from "../../constants.js";
|
|
10
10
|
import { h as helperSelectLayout } from "./helpers/selectLayout.js";
|
|
11
|
-
import {
|
|
12
|
-
import { d as addLayoutItemToBreakPoints, e as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
11
|
+
import { d as deleteCookie, s as setCookie, g as getCookie } from "../../../../helpers/cookies/cookies.js";
|
|
13
12
|
import { k as isEqualLayouts } from "../../../GridLayout/utils.js";
|
|
13
|
+
import { d as cloneLayouts, e as addLayoutItemToBreakPoints } from "../../../GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
14
14
|
const createDevtools = (immerMiddlewere, config) => {
|
|
15
15
|
const { enabled = false } = config;
|
|
16
16
|
if (enabled && process.env.NODE_ENV === "development") {
|
|
@@ -441,8 +441,8 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
441
441
|
bounds: {
|
|
442
442
|
left: MARGIN_GRIDLAYOUT,
|
|
443
443
|
top: MARGIN_GRIDLAYOUT,
|
|
444
|
-
right: -
|
|
445
|
-
bottom: -
|
|
444
|
+
right: -11,
|
|
445
|
+
bottom: -11
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
}
|
|
@@ -667,11 +667,12 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
667
667
|
/**
|
|
668
668
|
* setActions
|
|
669
669
|
*/
|
|
670
|
-
setActions: (windowId, newActions, version) => {
|
|
670
|
+
setActions: (windowId, newActions, version, buildTime) => {
|
|
671
671
|
set((state) => {
|
|
672
672
|
if (state.hashWindows[windowId]) {
|
|
673
673
|
state.hashWindows[windowId].moduleActions = cloneDeep(newActions);
|
|
674
674
|
state.hashWindows[windowId].version = version;
|
|
675
|
+
state.hashWindows[windowId].buildTime = buildTime;
|
|
675
676
|
}
|
|
676
677
|
});
|
|
677
678
|
},
|
|
@@ -281,7 +281,7 @@ export interface AreasStoreStateWithActions extends AreasStoreState {
|
|
|
281
281
|
loadWindowsFromApi: (areaId: string) => void;
|
|
282
282
|
};
|
|
283
283
|
windowActions: {
|
|
284
|
-
setActions: (windowId: string, newActions: ModuleAction[], version?: string) => void;
|
|
284
|
+
setActions: (windowId: string, newActions: ModuleAction[], version?: string, buildTime?: string) => void;
|
|
285
285
|
getCookie: (windowId: string, id: string) => Record<string, any> | undefined;
|
|
286
286
|
getCookies: (windowId: string, type: CookieType) => Record<string, any>;
|
|
287
287
|
setCookie: (windowId: string, id: string, type: CookieType, cookie: Record<string, any>) => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const ICONS = {
|
|
2
|
-
CLOSE: "close.svg",
|
|
3
2
|
MAXIMIZE: "maximize.svg",
|
|
4
3
|
NORMALIZE: "normalize.svg",
|
|
5
4
|
COLAPSE: "colapse.svg",
|
|
@@ -8,16 +7,9 @@ const ICONS = {
|
|
|
8
7
|
SAVE_COOKIES: "save_cookies.svg",
|
|
9
8
|
DELETE_AREA: "delete_area.svg",
|
|
10
9
|
ADD_AREA: "add_area.svg",
|
|
11
|
-
LAYERS: "layers.svg",
|
|
12
|
-
NAVIGATE_ERROR: "navegate_error.svg",
|
|
13
10
|
EDIT_AREA: "edit.svg",
|
|
14
11
|
CHECK: "checkmarkInCircle.svg",
|
|
15
|
-
RESIZE: "controlSize.svg",
|
|
16
|
-
VERSION: "version.svg",
|
|
17
|
-
SHOW_OPTIONS: "showMoreVertical.svg",
|
|
18
12
|
CHEVRON_DOWN: "chevronDown.svg",
|
|
19
|
-
MODULE: "module.svg",
|
|
20
|
-
POPUP: "popup.svg",
|
|
21
13
|
PENDING_ORDER: "pending_order.svg",
|
|
22
14
|
MORE_VERTICAL: "more_vertical.svg"
|
|
23
15
|
};
|
|
@@ -43,6 +43,10 @@ export type WindowState = {
|
|
|
43
43
|
* version del Microfrontend, esta version es actualizada normalmente por el ModuleLayout del microfrontend
|
|
44
44
|
*/
|
|
45
45
|
version?: string;
|
|
46
|
+
/**
|
|
47
|
+
* buildTime del Microfrontend, esta buildTime es actualizada normalmente por el ModuleLayout del microfrontend
|
|
48
|
+
*/
|
|
49
|
+
buildTime?: string;
|
|
46
50
|
/**
|
|
47
51
|
* Acciones del módulo.
|
|
48
52
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { generateUtilityClass, generateUtilityClasses } from "@mui/material";
|
|
2
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
3
|
import { c as componentName } from "./constants.js";
|
|
4
4
|
generateUtilityClasses(componentName, ["root", "ImageLogo"]);
|
|
@@ -6,7 +6,7 @@ import clsx from "clsx";
|
|
|
6
6
|
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { B as BOOLEAN_FORMATTER_KEY_COMPONENT } from "./constants.js";
|
|
8
8
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
9
|
-
import { B as
|
|
9
|
+
import { B as BooleanFormatterRootStyled, a as BooleanFormatterIconStyled, b as BooleanFormatterChipStyled } from "./slots/BooleanFormatterSlots.js";
|
|
10
10
|
import { B as BooleanFormatterSlots } from "./slots/BooleanFormatterEnum.js";
|
|
11
11
|
function getFormatBoolean(presentationType, value = false, getLabel) {
|
|
12
12
|
if (presentationType === "string_yes_no") {
|
|
@@ -18,7 +18,7 @@ const BooleanFormatterChipStyled = styled(Chip, {
|
|
|
18
18
|
slot: BooleanFormatterSlots.chip
|
|
19
19
|
})(booleanFormatterStyles?.chip);
|
|
20
20
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
BooleanFormatterRootStyled as B,
|
|
22
|
+
BooleanFormatterIconStyled as a,
|
|
23
|
+
BooleanFormatterChipStyled as b
|
|
24
24
|
};
|
|
@@ -6,8 +6,8 @@ import clsx from "clsx";
|
|
|
6
6
|
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
8
8
|
import { d as dictionary } from "./dictionary.js";
|
|
9
|
+
import { P as PeriodFormatterRootStyled, a as PeriodFormatterSkeletonStyled } from "./slots/PeriodFormatterSlots.js";
|
|
9
10
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
10
|
-
import { P as PeriodFormatterSkeletonStyled, a as PeriodFormatterRootStyled } from "./slots/PeriodFormatterSlots.js";
|
|
11
11
|
import { P as PeriodFormatterSlots } from "./slots/PeriodFomatterEnum.js";
|
|
12
12
|
function useFormatPeriod(years, months, days) {
|
|
13
13
|
const { getLabel } = useModuleDictionary();
|
|
@@ -13,6 +13,6 @@ const PeriodFormatterSkeletonStyled = styled(Skeleton, {
|
|
|
13
13
|
slot: PeriodFormatterSlots.skeleton
|
|
14
14
|
})(periodFormatterStyles?.skeleton);
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
PeriodFormatterRootStyled as P,
|
|
17
|
+
PeriodFormatterSkeletonStyled as a
|
|
18
18
|
};
|
|
@@ -64,6 +64,11 @@ const RHFAutocompleteAsyncReducer = (onChangeFilterParms) => (state, action) =>
|
|
|
64
64
|
...state,
|
|
65
65
|
isOpen: false
|
|
66
66
|
};
|
|
67
|
+
// case actionsType.SET_SELECTED_OPTIONS_TO_AUTOCOMPLETE:
|
|
68
|
+
// return {
|
|
69
|
+
// ...state,
|
|
70
|
+
// selectedOptions: action.payload,
|
|
71
|
+
// };
|
|
67
72
|
default:
|
|
68
73
|
return state;
|
|
69
74
|
}
|
|
@@ -2,6 +2,7 @@ import { RHFAutocompleteAsyncProps } from '../types';
|
|
|
2
2
|
import { renderMaterialUI } from '../../../../test';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
export declare const FIELD_NAME = "rhf-autocomplete-async";
|
|
5
|
+
export declare const FIELD_NAME_AFTER_TIME_SELECTED = "rhf-autocomplete-async-after-time-selected";
|
|
5
6
|
export declare const FIELD_NAME_PRESELECTED = "rhf-autocomplete-async-preselected";
|
|
6
7
|
export declare const FIELD_NAME_PRESELECTED_NOT_IN_OPTIONS = "rhf-autocomplete-async-preselected-not-in-options";
|
|
7
8
|
export declare const FIELD_NAME_PRESELECTED_MULTIPLE = "rhf-autocomplete-async-preselected-multiple";
|
|
@@ -11,6 +12,7 @@ export interface OptionsTests {
|
|
|
11
12
|
name: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const mockItems: OptionsTests[];
|
|
15
|
+
export declare const mockItemAfterTimeSelected: OptionsTests;
|
|
14
16
|
export declare const mockItemPreselected: OptionsTests;
|
|
15
17
|
export declare const mockItemPreselectedMultiple: OptionsTests[];
|
|
16
18
|
export declare const mockItemPreselectedNotInOptions: OptionsTests;
|
|
@@ -34,8 +36,8 @@ export declare const onChangeFilterParms: (newValue: string) => {
|
|
|
34
36
|
/**
|
|
35
37
|
* Renderiza el componente con el contexto de EnvironmentProvider y RHFormProvider.
|
|
36
38
|
*/
|
|
37
|
-
export declare const renderWithContexts: (ui: React.ReactElement, initialValuesFormContext?: FieldValues, validationSchema?: any) => ReturnType<typeof renderMaterialUI>;
|
|
39
|
+
export declare const renderWithContexts: (ui: React.ReactElement, initialValuesFormContext?: FieldValues, validationSchema?: any, withFormChangeAuto?: boolean) => ReturnType<typeof renderMaterialUI>;
|
|
38
40
|
/**
|
|
39
41
|
* Renders the RHFAutocompleteAsync component with the provided props.
|
|
40
42
|
*/
|
|
41
|
-
export declare const renderRHFAutocompleteAsync: (fieldName: string, overrideProps?: Partial<RHFAutocompleteAsyncProps<OptionsTests
|
|
43
|
+
export declare const renderRHFAutocompleteAsync: (fieldName: string, overrideProps?: Partial<RHFAutocompleteAsyncProps<OptionsTests>>, initialValuesFormContext?: FieldValues, validationSchema?: any, withFormChangeAuto?: boolean) => ReturnType<typeof renderMaterialUI>;
|
|
@@ -21,12 +21,6 @@ const actionsType = {
|
|
|
21
21
|
* Indicate if the popover options are close.
|
|
22
22
|
*/
|
|
23
23
|
CLOSE: "CLOSE",
|
|
24
|
-
/**
|
|
25
|
-
* Reset the state options, allowFetchingOptionsAutocomplete (false)
|
|
26
|
-
* and loading (true) to initial state before fetching options
|
|
27
|
-
* to wait the response from the server.
|
|
28
|
-
*/
|
|
29
|
-
START_FETCHING_OPTIONS: "START_FETCHING_OPTIONS",
|
|
30
24
|
/**
|
|
31
25
|
* Set new options to list in autocomplete.
|
|
32
26
|
* For example, when the user is typing,
|
|
@@ -2,8 +2,8 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { r as rhfCheckBoxStyles } from "../RHFCheckBox.styles.js";
|
|
3
3
|
import { R as RHFCheckBoxSlots } from "./RHFCheckBoxEnum.js";
|
|
4
4
|
import { R as RHF_CHECKBOX_KEY_COMPONENT } from "../constants.js";
|
|
5
|
-
import { C as CheckBox } from "../../../mui_extended/CheckBox/CheckBox.js";
|
|
6
5
|
import { L as Label } from "../../../Label/Label.js";
|
|
6
|
+
import { C as CheckBox } from "../../../mui_extended/CheckBox/CheckBox.js";
|
|
7
7
|
const RHFCheckboxRoot = styled("div", {
|
|
8
8
|
name: RHF_CHECKBOX_KEY_COMPONENT,
|
|
9
9
|
slot: RHFCheckBoxSlots.root
|
|
@@ -9,8 +9,8 @@ import { R as RHF_PERIOD_KEY_COMPONENT } from "./constants.js";
|
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
11
11
|
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
12
|
-
import { R as RHFPeriodSlots } from "./slots/RHFPeriodEnum.js";
|
|
13
12
|
import { H as HelperError } from "../../HelperError/HelperError.js";
|
|
13
|
+
import { R as RHFPeriodSlots } from "./slots/RHFPeriodEnum.js";
|
|
14
14
|
const RHFPeriod = (props) => {
|
|
15
15
|
const {
|
|
16
16
|
name,
|
|
@@ -18,9 +18,7 @@ const rhfTextFieldStyles = {
|
|
|
18
18
|
/**
|
|
19
19
|
* Estilos personalizados para el componente Skeleton.
|
|
20
20
|
*/
|
|
21
|
-
helperErrorStyled: {}
|
|
22
|
-
skeletonTextFieldRoot: {},
|
|
23
|
-
wrapperSkeletonRHFTextField: {}
|
|
21
|
+
helperErrorStyled: {}
|
|
24
22
|
};
|
|
25
23
|
export {
|
|
26
24
|
rhfTextFieldStyles as r
|
|
@@ -2,9 +2,9 @@ import { styled } from "@mui/material";
|
|
|
2
2
|
import { R as RHFTextFieldPasswordSlots } from "./RHFTextFieldPasswordEnum.js";
|
|
3
3
|
import { R as RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT } from "../constanst.js";
|
|
4
4
|
import { r as rhfTextFieldPasswordStyles } from "../RHFTextFieldPassword.styles.js";
|
|
5
|
+
import { L as Label } from "../../../Label/Label.js";
|
|
5
6
|
import { T as TextField } from "../../../mui_extended/TextField/TextField.js";
|
|
6
7
|
import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
|
|
7
|
-
import { L as Label } from "../../../Label/Label.js";
|
|
8
8
|
const RHFTextFieldPasswordRoot = styled("div", {
|
|
9
9
|
name: RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT,
|
|
10
10
|
slot: RHFTextFieldPasswordSlots.root
|
|
@@ -3,7 +3,7 @@ import { useFormContext, Controller } from "react-hook-form";
|
|
|
3
3
|
import { U as UploadSingleFile } from "./subcomponents/UploadSingleFile/index.js";
|
|
4
4
|
import { R as RHFUploadSingleFileRootStyled, L as LabelStyled, H as HelperErrorStyled } from "./slots/RHFUploadSingleFileSlots.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import {
|
|
6
|
+
import { D as DEFAULT_MAX_FILE_SIZE, R as RHF_UPLOAD_SINGLE_FILE_KEY_COMPONENT } from "./constants.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
8
8
|
import { R as RHFUploadSingleFileSlots } from "./slots/RHFUploadSingleFileEnum.js";
|
|
9
9
|
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { generateUtilityClass, generateUtilityClasses } from "@mui/material";
|
|
2
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
3
|
import { c as componentName } from "./constants.js";
|
|
4
4
|
generateUtilityClasses(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
4
|
+
import { FormProvider, useForm } from "react-hook-form";
|
|
5
5
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
6
6
|
import { F as FormProviderRoot } from "./styles.js";
|
|
7
7
|
import { R as RHFormProviderUtilityClasses } from "./classes/index.js";
|
|
@@ -3,7 +3,7 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.js";
|
|
|
3
3
|
import { a as getNameDataTestId } from "../../../test/getNameDataTestId.js";
|
|
4
4
|
import { P as PATH_EXPANDED_ICON, A as ACCORDION_KEY } from "./constants.js";
|
|
5
5
|
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
6
|
-
import { A as AccordionRootStyled, a as AccordionSummaryStyled, I as
|
|
6
|
+
import { A as AccordionRootStyled, a as AccordionSummaryStyled, I as IconLabelStyled, L as LabelStyled, b as IconExpandedStyled, c as AccordionDetailsStyled } from "./slots/AccordionSlots.js";
|
|
7
7
|
import { forwardRef } from "react";
|
|
8
8
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
9
9
|
const Accordion = forwardRef((props, ref) => {
|
|
@@ -31,9 +31,9 @@ const AccordionDetailsStyled = styled(AccordionDetails, {
|
|
|
31
31
|
})(accordionStyles?.accordionDetails);
|
|
32
32
|
export {
|
|
33
33
|
AccordionRootStyled as A,
|
|
34
|
-
|
|
34
|
+
IconLabelStyled as I,
|
|
35
35
|
LabelStyled as L,
|
|
36
36
|
AccordionSummaryStyled as a,
|
|
37
|
-
|
|
37
|
+
IconExpandedStyled as b,
|
|
38
38
|
AccordionDetailsStyled as c
|
|
39
39
|
};
|
|
@@ -6,7 +6,7 @@ import { u as useValuesAndHandlers } from "./hooks/useValuesAndHandlers.js";
|
|
|
6
6
|
import { u as useStartAdornments } from "./hooks/useStartAdornments.js";
|
|
7
7
|
import { u as useEndAdornments } from "./hooks/useEndAdornments.js";
|
|
8
8
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
9
|
-
import { S as SkeletonAutocompleteStyled, A as AutocompleteRootStyled,
|
|
9
|
+
import { S as SkeletonAutocompleteStyled, A as AutocompleteRootStyled, R as RenderInputStyled, P as PopperComponentStyled } from "./slots/AutocompleteSlots.js";
|
|
10
10
|
import { T as Typography } from "../Typography/Typography.js";
|
|
11
11
|
const Autocomplete = forwardRef(function Autocomplete2(props, ref) {
|
|
12
12
|
const {
|
|
@@ -30,7 +30,6 @@ const Autocomplete = forwardRef(function Autocomplete2(props, ref) {
|
|
|
30
30
|
const {
|
|
31
31
|
open,
|
|
32
32
|
selectedValue,
|
|
33
|
-
selectedOption,
|
|
34
33
|
inputValue,
|
|
35
34
|
isOptionEqualToValueLocal,
|
|
36
35
|
handleDelete,
|
|
@@ -40,7 +39,6 @@ const Autocomplete = forwardRef(function Autocomplete2(props, ref) {
|
|
|
40
39
|
onCloseLocal,
|
|
41
40
|
onOpenLocal,
|
|
42
41
|
getOptionLabelLocal,
|
|
43
|
-
getOptionUrlImageLocal,
|
|
44
42
|
checkKeyDown,
|
|
45
43
|
scrollPositionOptionsRef
|
|
46
44
|
} = useValuesAndHandlers(props);
|
|
@@ -54,18 +52,11 @@ const Autocomplete = forwardRef(function Autocomplete2(props, ref) {
|
|
|
54
52
|
const startAdornments = useStartAdornments({
|
|
55
53
|
selectedValue,
|
|
56
54
|
multiple,
|
|
57
|
-
loading,
|
|
58
55
|
adjustedSize,
|
|
59
56
|
getOptionLabelLocal,
|
|
60
57
|
ownerState,
|
|
61
58
|
handleDelete,
|
|
62
|
-
|
|
63
|
-
selectedOption,
|
|
64
|
-
getOptionUrlImageLocal,
|
|
65
|
-
refresh,
|
|
66
|
-
handleRefresh,
|
|
67
|
-
disabled,
|
|
68
|
-
onOpenLocal
|
|
59
|
+
disabled
|
|
69
60
|
});
|
|
70
61
|
const endAdornments = useEndAdornments({
|
|
71
62
|
loading,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { useState, useRef,
|
|
1
|
+
import { useState, useRef, useEffect, useCallback } from "react";
|
|
2
|
+
import { deepEqual } from "fast-equals";
|
|
2
3
|
function useValuesAndHandlers(props) {
|
|
3
4
|
const {
|
|
4
5
|
getOptionLabel,
|
|
@@ -19,6 +20,15 @@ function useValuesAndHandlers(props) {
|
|
|
19
20
|
const [selectedValue, setSelectedValue] = useState(
|
|
20
21
|
value || (multiple ? [] : null)
|
|
21
22
|
);
|
|
23
|
+
const refValue = useRef(selectedValue);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (deepEqual(refValue.current, value)) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const newValue = value || (multiple ? [] : null);
|
|
29
|
+
refValue.current = newValue;
|
|
30
|
+
setSelectedValue(newValue);
|
|
31
|
+
}, [multiple, value]);
|
|
22
32
|
const isOptionEqualToValueLocal = useCallback(
|
|
23
33
|
(option, val) => {
|
|
24
34
|
if (val === null || val === void 0) {
|
|
@@ -5,13 +5,13 @@ import { I as Image } from "../../../Image/Image.js";
|
|
|
5
5
|
import { a as autocompleteSyles } from "../Autocomplete.styles.js";
|
|
6
6
|
import { A as AUTOCOMPLETE_KEY_COMPONENT } from "../constants.js";
|
|
7
7
|
import { A as AutocompleteSlots } from "./AutocompleteEnum.js";
|
|
8
|
-
import { I as IconButton } from "../../IconButton/IconButton.js";
|
|
9
|
-
import { T as TextField } from "../../TextField/TextField.js";
|
|
10
|
-
import { T as Typography } from "../../Typography/Typography.js";
|
|
11
8
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
9
|
+
import { T as TextField } from "../../TextField/TextField.js";
|
|
12
10
|
import { P as Popper } from "../../Popper/Popper.js";
|
|
13
|
-
import {
|
|
11
|
+
import { I as IconButton } from "../../IconButton/IconButton.js";
|
|
12
|
+
import { T as Typography } from "../../Typography/Typography.js";
|
|
14
13
|
import { C as CircularProgress } from "../../CircularProgress/CircularProgress.js";
|
|
14
|
+
import { M as MenuItem } from "../../MenuItem/MenuItem.js";
|
|
15
15
|
const AutocompleteRootStyled = styled(Autocomplete, {
|
|
16
16
|
name: AUTOCOMPLETE_KEY_COMPONENT,
|
|
17
17
|
slot: AutocompleteSlots.root
|
|
@@ -5,7 +5,7 @@ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js
|
|
|
5
5
|
import { C as CHECK_BOX_KEY_COMPONENT } from "./constants.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
|
-
import { C as CheckBoxRootStyled, M as MUICheckboxStyled, I as
|
|
8
|
+
import { C as CheckBoxRootStyled, M as MUICheckboxStyled, I as IconStyled, a as IconCheckedStyled, T as TypographyStyled, S as SkeletonStyled } from "./slots/CheckBoxSlots.js";
|
|
9
9
|
import { C as CheckBoxSlots } from "./slots/CheckBoxEnum.js";
|
|
10
10
|
const CheckBox = forwardRef((props, ref) => {
|
|
11
11
|
const {
|
|
@@ -31,9 +31,9 @@ const IconStyled = styled(Icon, {
|
|
|
31
31
|
})(checkBoxStyles.icon);
|
|
32
32
|
export {
|
|
33
33
|
CheckBoxRootStyled as C,
|
|
34
|
-
|
|
34
|
+
IconStyled as I,
|
|
35
35
|
MUICheckboxStyled as M,
|
|
36
36
|
SkeletonStyled as S,
|
|
37
37
|
TypographyStyled as T,
|
|
38
|
-
|
|
38
|
+
IconCheckedStyled as a
|
|
39
39
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled, Popper, Paper } from "@mui/material";
|
|
2
|
-
import {
|
|
2
|
+
import { PickersCalendarHeader, PickersDay, MobileDateTimePicker, DesktopDateTimePicker } from "@mui/x-date-pickers";
|
|
3
3
|
import { d as dateTimePickerStyles } from "../DateTimePicker.styles.js";
|
|
4
4
|
import { D as DATE_TIME_PICKER_KEY_COMPONENT } from "../constants.js";
|
|
5
5
|
import { D as DateTimePickerEnum } from "./DateTimePickerEnum.js";
|
|
@@ -3,8 +3,8 @@ import { styled } from "@mui/material/styles";
|
|
|
3
3
|
import { i as iconButtonStyles } from "../IconButton.styles.js";
|
|
4
4
|
import { a as ICON_BUTTON_KEY_COMPONENT } from "../constants.js";
|
|
5
5
|
import { I as IconButtonSlots } from "./IconButtonEnum.js";
|
|
6
|
-
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
7
6
|
import { I as Icon } from "../../../Icon/Icon.js";
|
|
7
|
+
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
8
8
|
const StyledMUIIconButton = styled(IconButton, {
|
|
9
9
|
name: ICON_BUTTON_KEY_COMPONENT,
|
|
10
10
|
slot: IconButtonSlots.styledMUIIconButton
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { generateUtilityClass, generateUtilityClasses } from "@mui/material";
|
|
2
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
3
|
import { c as componentName } from "./constants.js";
|
|
4
4
|
generateUtilityClasses(componentName, [
|
|
@@ -3,8 +3,8 @@ import { MenuItem } from "@mui/material";
|
|
|
3
3
|
import { a as MENUITEM_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { m as menuItemStyles } from "../MenuItem.styles.js";
|
|
5
5
|
import { M as MenuItemSlots } from "./MenuItemEnum.js";
|
|
6
|
-
import { T as Typography } from "../../Typography/Typography.js";
|
|
7
6
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
7
|
+
import { T as Typography } from "../../Typography/Typography.js";
|
|
8
8
|
import { I as Icon } from "../../../Icon/Icon.js";
|
|
9
9
|
const MenuItemRootStyled = styled(MenuItem, {
|
|
10
10
|
name: MENUITEM_KEY_COMPONENT,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { R as RouterNavLinkRootStyled, a as RouterNavLinkStyled, T as TypographyStyled, S as SkeletonStyled } from "./slots/NavLinkSlots.js";
|
|
3
3
|
import { useModuleSkeleton } from "@m4l/core";
|
|
4
|
-
import {
|
|
4
|
+
import { c as classNavLinkRoot, N as NAV_LINK_SPECIFY, a as NAV_LINK_KEY_COMPONENT } from "./constants.js";
|
|
5
5
|
import { N as NavLinkSlots } from "./slots/NavLinkEnum.js";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
@@ -4,7 +4,7 @@ const NAV_LINK_KEY_COMPONENT = "M4LNavLink";
|
|
|
4
4
|
const NAV_LINK_SPECIFY = "M4lclassCssSpecificity";
|
|
5
5
|
const classNavLinkRoot = getComponentClasses(NAV_LINK_KEY_COMPONENT, NavLinkSlots);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
NAV_LINK_SPECIFY as N,
|
|
8
|
+
NAV_LINK_KEY_COMPONENT as a,
|
|
9
9
|
classNavLinkRoot as c
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavLink } from "react-router-dom";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { N as NavLinkSlots } from "./NavLinkEnum.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as NAV_LINK_KEY_COMPONENT } from "../constants.js";
|
|
5
5
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
6
6
|
import { n as navLinkStyles } from "../NavLink.styles.js";
|
|
7
7
|
import { T as Typography } from "../../Typography/Typography.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
3
|
-
import { P as
|
|
3
|
+
import { P as POPOVER_PREFIX, a as POPOVER_CLASS_NAME_SPECIFY } from "./constants.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { P as PopoverRootStyled } from "./slots/PopoverSlots.js";
|
|
6
6
|
import { P as PopoverSlots } from "./slots/PopoverEnum.js";
|
|
@@ -2,7 +2,7 @@ const POPOVER_KEY_COMPONENT = "M4LPopover";
|
|
|
2
2
|
const POPOVER_PREFIX = "Popover";
|
|
3
3
|
const POPOVER_CLASS_NAME_SPECIFY = "M4lclassCssSpecificity";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
POPOVER_PREFIX as P,
|
|
6
|
+
POPOVER_CLASS_NAME_SPECIFY as a,
|
|
7
7
|
POPOVER_KEY_COMPONENT as b
|
|
8
8
|
};
|
|
@@ -4,7 +4,7 @@ import { useTheme } from "@mui/material";
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { forwardRef, useMemo, useState, useCallback } from "react";
|
|
6
6
|
import { A as ArrowDownStyled, a as AdormentStyled, S as SelectRootStyled, b as SkeletonSelectStyled, M as MenuItemListStyled, c as MenuItemNoOptionStyled, L as LabelPlaceholerStyled, R as RenderValueContainerStyled, d as RenderValueTypography } from "./slots/SelectSlots.js";
|
|
7
|
-
import {
|
|
7
|
+
import { I as ICON_ARROW_DOWN, S as SELECT_CLASSES, a as SELECT_KEY_COMPONENT } from "./constants.js";
|
|
8
8
|
import { S as SELECT_DICTIONARY } from "./dictionary.js";
|
|
9
9
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
10
10
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SELECT_CLASSES } from "./constants.js";
|
|
2
|
-
import {
|
|
2
|
+
import { g as getSizeStyles, a as getHeightSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
3
|
const selectStyles = {
|
|
4
4
|
/**
|
|
5
5
|
* Estilos para el componente Select
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as SelectComplementaryClasses, S as SelectSlots } from "./slots/SelectEnum.js";
|
|
3
3
|
const SELECT_KEY_COMPONENT = "M4LSelect";
|
|
4
4
|
const ICON_ARROW_DOWN = "frontend/components/select/arrow_down.svg";
|
|
5
5
|
const COMBINATED_TEXTFIELD_ENUMS = {
|
|
@@ -4,8 +4,8 @@ import { a as SELECT_KEY_COMPONENT } from "../constants.js";
|
|
|
4
4
|
import { s as selectStyles } from "../Select.styles.js";
|
|
5
5
|
import { S as SelectSlots } from "./SelectEnum.js";
|
|
6
6
|
import { I as IconButton } from "../../IconButton/IconButton.js";
|
|
7
|
-
import { M as MenuItem } from "../../MenuItem/MenuItem.js";
|
|
8
7
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
8
|
+
import { M as MenuItem } from "../../MenuItem/MenuItem.js";
|
|
9
9
|
import { T as Typography } from "../../Typography/Typography.js";
|
|
10
10
|
import { I as Icon } from "../../../Icon/Icon.js";
|
|
11
11
|
const SelectRootStyled = () => styled(Select, {
|
|
@@ -5,7 +5,7 @@ import { T as TabSlots } from "./Slots/TabEnum.js";
|
|
|
5
5
|
import { T as TAB_KEY_COMPONENT } from "./constants.js";
|
|
6
6
|
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
|
-
import { R as RootStyled,
|
|
8
|
+
import { R as RootStyled, I as IconStyled, T as TypographyStyled } from "./Slots/TabSlots.js";
|
|
9
9
|
function Tab(props) {
|
|
10
10
|
const {
|
|
11
11
|
size = "medium",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as TexFieldComplementaryClasses, T as TextFieldSlots } from "./slots/TextFieldEnum.js";
|
|
3
3
|
const TEXT_FIELD_KEY_COMPONENT = "M4LTextField";
|
|
4
4
|
const COMBINATED_TEXTFIELD_ENUMS = {
|
|
5
5
|
...TextFieldSlots,
|