@m4l/components 9.3.1 → 9.3.2-B04082025-beta.3
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 +9 -1
- package/components/DataGrid/Datagrid.styles.js +1 -1
- package/components/DragResizeWindowRND/constants.d.ts +44 -0
- package/components/DragResizeWindowRND/constants.js +46 -1
- package/components/DragResizeWindowRND/index.d.ts +1 -0
- package/components/DynamicFilter/DynamicFilter.styles.js +2 -2
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +3 -0
- package/components/DynamicSort/DynamicSort.styles.js +2 -2
- package/components/ImageText/components/ImageTextContainer/ImageTextContainer.d.ts +7 -0
- package/components/ImageText/components/ImageTextContainer/ImageTextContainer.js +25 -0
- package/components/ImageText/components/ImageTextContainer/ImageTextContainerStyle.d.ts +2 -0
- package/components/ImageText/components/ImageTextContainer/ImageTextContainerStyle.js +22 -0
- package/components/ImageText/components/ImageTextContainer/constants.d.ts +8 -0
- package/components/ImageText/components/ImageTextContainer/constants.js +8 -0
- package/components/ImageText/components/ImageTextContainer/index.d.ts +1 -0
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerEnum.d.ts +3 -0
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerEnum.js +7 -0
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerSlots.d.ts +3 -0
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerSlots.js +12 -0
- package/components/ImageText/components/ImageTextContainer/types.d.ts +22 -0
- package/components/ImageText/components/NoItemPrivileges/NoItemPrivileges.d.ts +7 -0
- package/components/ImageText/components/NoItemPrivileges/NoItemPrivileges.js +65 -0
- package/components/ImageText/components/NoItemPrivileges/NoItemPrivilegesStyles.d.ts +5 -0
- package/components/ImageText/components/NoItemPrivileges/NoItemPrivilegesStyles.js +62 -0
- package/components/ImageText/components/NoItemPrivileges/constants.d.ts +4 -0
- package/components/ImageText/components/NoItemPrivileges/constants.js +11 -0
- package/components/ImageText/components/NoItemPrivileges/dictionary.d.ts +5 -0
- package/components/ImageText/components/NoItemPrivileges/dictionary.js +12 -0
- package/components/ImageText/components/NoItemPrivileges/index.d.ts +3 -0
- package/components/ImageText/components/NoItemPrivileges/index.js +1 -0
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.d.ts +7 -0
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.js +11 -0
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.d.ts +15 -0
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.js +33 -0
- package/components/ImageText/components/NoItemPrivileges/test/NoItemPrivileges.test.d.ts +1 -0
- package/components/ImageText/components/NoItemPrivileges/types.d.ts +36 -0
- package/components/ImageText/components/NoItemSelected/NoItemSelected.js +62 -0
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/NoItemSelected.styles.js +4 -20
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/constant.js +1 -1
- package/components/ImageText/components/NoItemSelected/index.js +1 -0
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/slots/NoItemSelectedEnum.d.ts +0 -1
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/slots/NoItemSelectedEnum.js +0 -1
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/slots/NoItemSelectedSlots.d.ts +4 -7
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/slots/NoItemSelectedSlots.js +5 -10
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/types.d.ts +2 -2
- package/components/ImageText/hooks/useIsVisible/index.d.ts +6 -0
- package/components/ImageText/hooks/useIsVisible/index.js +24 -0
- package/components/ImageText/index.d.ts +3 -0
- package/components/ImageText/index.js +1 -0
- package/components/ObjectLogs/helpers/Fields/filterFields.d.ts +5 -0
- package/components/ObjectLogs/helpers/Fields/filterFields.js +81 -0
- package/components/ObjectLogs/hooks/useDetailFormatter.js +1 -1
- package/components/ObjectLogs/hooks/useFilterAndSort.d.ts +15 -0
- package/components/ObjectLogs/hooks/useFilterAndSort.js +51 -0
- package/components/ObjectLogs/slots/ObjectLogsSlots.js +1 -2
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +39 -88
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +30 -104
- package/components/PropertyValue/PropertyValue.styles.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/styles.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.js +4 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +50 -47
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +2 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +5 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +12 -7
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -0
- package/components/formatters/ChipStatusFormatter/ChipStatusFormatter.js +7 -1
- package/components/formatters/ChipStatusFormatter/types.d.ts +9 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/index.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Autocomplete/Autocomplete.js +2 -1
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.d.ts +1 -0
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +4 -2
- package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.js +1 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Tab.styles.js +4 -4
- package/components/mui_extended/TabContent/TabContent.styles.js +0 -1
- package/components/mui_extended/TextField/TextField.js +16 -3
- package/components/mui_extended/TextField/TextField.styles.js +20 -4
- package/components/mui_extended/TextField/constants.d.ts +3 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/getLimitCharacters.d.ts +7 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/getLimitCharacters.js +11 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/index.d.ts +1 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/index.js +1 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/test/getLimitCharacters.test.d.ts +1 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/types.d.ts +5 -0
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +4 -1
- package/components/mui_extended/TextField/slots/TextFieldEnum.js +3 -0
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +13 -0
- package/components/mui_extended/TextField/slots/TextFieldSlots.js +17 -2
- package/components/mui_extended/TextField/types.d.ts +9 -0
- package/hooks/useDynamicFilterAndSort/types.d.ts +2 -0
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +5 -3
- package/index.js +42 -34
- package/mockServiceWorker.js +1 -1
- package/package.json +3 -3
- package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/PopupButton.d.ts +1 -1
- package/storybook/components/NoItemPrivileges/NoItemPrivileges.stories.d.ts +12 -0
- package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +1 -1
- package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +7 -0
- package/components/NoItemSelected/NoItemSelected.js +0 -77
- /package/components/{NoItemSelected → ImageText/components/ImageTextContainer}/index.js +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/NoItemSelected.d.ts +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/NoItemSelected.styles.d.ts +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/constant.d.ts +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/dictionary.d.ts +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/dictionary.js +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/index.d.ts +0 -0
package/@types/types.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ import { ActionFormCancelOwnerState, ActionFormCancelSlotsType } from '../compon
|
|
|
134
134
|
import { AreasAdminOwnerState, AreasAdminType } from '../components/areas/components/AreasAdmin/types';
|
|
135
135
|
import { DateTimePickerOwnerState, DateTimePickerSlotsType } from '../components/mui_extended/DateTimePicker/types';
|
|
136
136
|
import { DividerOwnerState, DividerSlotsType } from '../components/mui_extended/Divider/types';
|
|
137
|
-
import { NoItemSelectedOwnerState, NoItemSelectedSlotsType } from '../components/NoItemSelected/types';
|
|
137
|
+
import { NoItemSelectedOwnerState, NoItemSelectedSlotsType } from '../components/ImageText/components/NoItemSelected/types';
|
|
138
138
|
import { ActionFormIntroOwnerState, ActionFormIntroSlotsType } from '../components/CommonActions/components/ActionFormIntro/types';
|
|
139
139
|
import { AreasViewerOwnerState, AreasViewerType } from '../components/areas/components/AreasViewer/types';
|
|
140
140
|
import { TimePickerOwnerState, TimePickerSlotsType } from '../components/mui_extended/TimePicker/types';
|
|
@@ -150,6 +150,7 @@ import { SplitLayoutOwnerState } from '../components/extended/React-resizable-pa
|
|
|
150
150
|
import { ObjectLogsOwnerState, ObjectLogsSlotsType } from '../components/ObjectLogs/types';
|
|
151
151
|
import { LanguagePopoverOwnerState, LanguagePopoverSlotsType } from '../components/LanguagePopover/types';
|
|
152
152
|
import { ContainerFlowOwnerState, ContainerFlowSlotsType } from '../components/ContainerFlow/types';
|
|
153
|
+
import { NoItemPrivilegesOwnerState, NoItemPrivilegesSlotsType } from '../components/ImageText/components/NoItemPrivileges/types';
|
|
153
154
|
declare module '@mui/material/styles' {
|
|
154
155
|
// Define the slots in the theme
|
|
155
156
|
interface ComponentNameToClassKey {
|
|
@@ -230,6 +231,7 @@ declare module '@mui/material/styles' {
|
|
|
230
231
|
M4LObjectLogs: ObjectLogsSlotsType;
|
|
231
232
|
M4LLanguagePopover: LanguagePopoverSlotsType;
|
|
232
233
|
M4LContainerFlow: ContainerFlowSlotsType;
|
|
234
|
+
M4LNoItemPrivileges: NoItemPrivilegesSlotsType;
|
|
233
235
|
}
|
|
234
236
|
interface ComponentsPropsList {
|
|
235
237
|
// Extend ComponentsProps or ComponentsOwnerState(this extend ComponentProps)
|
|
@@ -310,6 +312,7 @@ declare module '@mui/material/styles' {
|
|
|
310
312
|
M4LObjectLogs: Partial<ObjectLogsOwnerState>;
|
|
311
313
|
M4LLanguagePopover: Partial<LanguagePopoverOwnerState>;
|
|
312
314
|
M4LContainerFlow: Partial<ContainerFlowOwnerState>;
|
|
315
|
+
M4LNoItemPrivileges: Partial<NoItemPrivilegesOwnerState>;
|
|
313
316
|
}
|
|
314
317
|
interface Components {
|
|
315
318
|
M4LDynamicFilter?: {
|
|
@@ -707,5 +710,10 @@ declare module '@mui/material/styles' {
|
|
|
707
710
|
styleOverrides?: ComponentsOverrides<Theme>['M4LContainerFlow'];
|
|
708
711
|
variants?: ComponentsVariants['M4LContainerFlow'];
|
|
709
712
|
};
|
|
713
|
+
M4LNoItemPrivileges?: {
|
|
714
|
+
defaultProps?: ComponentsPropsList['M4LNoItemPrivileges'];
|
|
715
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LNoItemPrivileges'];
|
|
716
|
+
variants?: ComponentsVariants['M4LNoItemPrivileges'];
|
|
717
|
+
};
|
|
710
718
|
}
|
|
711
719
|
}
|
|
@@ -14,7 +14,7 @@ const dataGridStyles = {
|
|
|
14
14
|
//inset: theme.vars.size.baseSpacings.sp0,
|
|
15
15
|
//overflow: 'hidden',
|
|
16
16
|
container: "container / inline-size",
|
|
17
|
-
background:
|
|
17
|
+
background: "transparent",
|
|
18
18
|
//boxShadow: 'unset',
|
|
19
19
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
20
20
|
position: "relative",
|
|
@@ -1,3 +1,47 @@
|
|
|
1
1
|
export declare const COMPONENT_TEST_ID = "M4LDragResizeWindowRND";
|
|
2
2
|
export declare const COMPONENT_KEY_COMPONENT = "M4LDragResizeWindowRND";
|
|
3
3
|
export declare const DEFAULT_TRANSFORM_SCALE = 1;
|
|
4
|
+
export declare const WINDOW_SIZES: {
|
|
5
|
+
horizontal: {
|
|
6
|
+
large: {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
medium: {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
};
|
|
14
|
+
small: {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
vertical: {
|
|
20
|
+
large: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
};
|
|
24
|
+
medium: {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
28
|
+
small: {
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
square: {
|
|
34
|
+
large: {
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
};
|
|
38
|
+
medium: {
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
};
|
|
42
|
+
small: {
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
const COMPONENT_KEY_COMPONENT = "M4LDragResizeWindowRND";
|
|
2
2
|
const DEFAULT_TRANSFORM_SCALE = 1;
|
|
3
|
+
const WINDOW_SIZES = {
|
|
4
|
+
horizontal: {
|
|
5
|
+
large: {
|
|
6
|
+
width: 1e3,
|
|
7
|
+
height: 600
|
|
8
|
+
},
|
|
9
|
+
medium: {
|
|
10
|
+
width: 900,
|
|
11
|
+
height: 480
|
|
12
|
+
},
|
|
13
|
+
small: {
|
|
14
|
+
width: 750,
|
|
15
|
+
height: 380
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
vertical: {
|
|
19
|
+
large: {
|
|
20
|
+
width: 400,
|
|
21
|
+
height: 900
|
|
22
|
+
},
|
|
23
|
+
medium: {
|
|
24
|
+
width: 400,
|
|
25
|
+
height: 700
|
|
26
|
+
},
|
|
27
|
+
small: {
|
|
28
|
+
width: 400,
|
|
29
|
+
height: 500
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
square: {
|
|
33
|
+
large: {
|
|
34
|
+
width: 800,
|
|
35
|
+
height: 800
|
|
36
|
+
},
|
|
37
|
+
medium: {
|
|
38
|
+
width: 600,
|
|
39
|
+
height: 600
|
|
40
|
+
},
|
|
41
|
+
small: {
|
|
42
|
+
width: 400,
|
|
43
|
+
height: 400
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
3
47
|
export {
|
|
4
48
|
COMPONENT_KEY_COMPONENT as C,
|
|
5
|
-
DEFAULT_TRANSFORM_SCALE as D
|
|
49
|
+
DEFAULT_TRANSFORM_SCALE as D,
|
|
50
|
+
WINDOW_SIZES as W
|
|
6
51
|
};
|
|
@@ -33,7 +33,7 @@ const dynamicFilterStyles = {
|
|
|
33
33
|
height: "fit-content",
|
|
34
34
|
borderRadius: theme.vars.size.borderRadius.r2,
|
|
35
35
|
background: theme.vars.palette.background.default,
|
|
36
|
-
boxShadow: ownerState?.isValid ? `inset 0px 0px 0px 1px ${theme.vars.palette.border.
|
|
36
|
+
boxShadow: ownerState?.isValid ? `inset 0px 0px 0px 1px ${theme.vars.palette.border.secondary}` : `inset 0px 0px 0px 1px ${theme.vars.palette.error.enabled}`,
|
|
37
37
|
overflow: "hidden",
|
|
38
38
|
'&:has([aria-expanded="true"])': {
|
|
39
39
|
boxShadow: ownerState?.isValid ? `inset 0px 0px 0px 1.3px ${theme.vars.palette.border.main}` : `inset 0px 0px 0px 1px ${theme.vars.palette.error.enabled}`
|
|
@@ -173,7 +173,7 @@ const dynamicFilterStyles = {
|
|
|
173
173
|
alignItems: "center",
|
|
174
174
|
borderTopRightRadius: theme.vars.size.borderRadius.r1,
|
|
175
175
|
borderBottomRightRadius: theme.vars.size.borderRadius.r1,
|
|
176
|
-
boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.border.
|
|
176
|
+
boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.border.secondary}`,
|
|
177
177
|
...!ownerState?.visibleRefresh && !ownerState?.isDirty && {
|
|
178
178
|
display: "none"
|
|
179
179
|
},
|
|
@@ -20,6 +20,8 @@ function FilterActions() {
|
|
|
20
20
|
canShowRemoveAction && /* @__PURE__ */ jsx(
|
|
21
21
|
ActionsClearButtonStyled,
|
|
22
22
|
{
|
|
23
|
+
role: "button",
|
|
24
|
+
"aria-label": "clear-filters",
|
|
23
25
|
icon: clearIconUrl,
|
|
24
26
|
size,
|
|
25
27
|
onClick: onClickClearFilters,
|
|
@@ -31,6 +33,7 @@ function FilterActions() {
|
|
|
31
33
|
{
|
|
32
34
|
icon: filterIconUrl,
|
|
33
35
|
size,
|
|
36
|
+
role: "button",
|
|
34
37
|
"aria-label": "refresh",
|
|
35
38
|
tooltip: getLabel(filterButtonDictionaryTooltip),
|
|
36
39
|
onClick: onClickFilter,
|
|
@@ -33,7 +33,7 @@ const dynamicSortStyles = {
|
|
|
33
33
|
height: "fit-content",
|
|
34
34
|
borderRadius: theme.vars.size.borderRadius.r2,
|
|
35
35
|
background: theme.vars.palette.background.default,
|
|
36
|
-
boxShadow: ownerState?.isValid ? `inset 0px 0px 0px 1px ${theme.vars.palette.border.
|
|
36
|
+
boxShadow: ownerState?.isValid ? `inset 0px 0px 0px 1px ${theme.vars.palette.border.secondary}` : `inset 0px 0px 0px 1px ${theme.vars.palette.error.enabled}`,
|
|
37
37
|
overflow: "hidden",
|
|
38
38
|
'&:has([aria-expanded="true"])': {
|
|
39
39
|
boxShadow: ownerState?.isValid ? `inset 0px 0px 0px 1.3px ${theme.vars.palette.border.main}` : `inset 0px 0px 0px 1px ${theme.vars.palette.error.enabled}`
|
|
@@ -172,7 +172,7 @@ const dynamicSortStyles = {
|
|
|
172
172
|
alignItems: "center",
|
|
173
173
|
borderTopRightRadius: theme.vars.size.borderRadius.r1,
|
|
174
174
|
borderBottomRightRadius: theme.vars.size.borderRadius.r1,
|
|
175
|
-
boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.border.
|
|
175
|
+
boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.border.secondary}`,
|
|
176
176
|
...!ownerState?.visibleRefresh && !ownerState?.isDirty && {
|
|
177
177
|
display: "none"
|
|
178
178
|
},
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ImageTextContainerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente que representa un contenedor agrupar mensajes con imagen y texto.
|
|
4
|
+
* @param props - Propiedades del componente.
|
|
5
|
+
* @returns Un componente de tipo ReactNode.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ImageTextContainer: (props: ImageTextContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { I as ImageTextContainerSlots } from "./slots/ImageTextContainerEnum.js";
|
|
3
|
+
import { I as ImageTextContainerRoot } from "./slots/ImageTextContainerSlots.js";
|
|
4
|
+
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
5
|
+
import { I as IMAGE_TEXT_CONTAINER_CLASSES, a as IMAGE_TEXT_CONTAINER_KEY_COMPONENT } from "./constants.js";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
|
+
const ImageTextContainer = (props) => {
|
|
8
|
+
const { className, dataTestId, children, ...others } = props;
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
ImageTextContainerRoot,
|
|
11
|
+
{
|
|
12
|
+
...others,
|
|
13
|
+
...getPropDataTestId(
|
|
14
|
+
IMAGE_TEXT_CONTAINER_KEY_COMPONENT,
|
|
15
|
+
ImageTextContainerSlots.root,
|
|
16
|
+
dataTestId
|
|
17
|
+
),
|
|
18
|
+
className: clsx(IMAGE_TEXT_CONTAINER_CLASSES.root, className),
|
|
19
|
+
children
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
ImageTextContainer as I
|
|
25
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const imageTextContainerStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Estilos para el contenedor principal del componente ImageTextContainer.
|
|
4
|
+
*/
|
|
5
|
+
root: ({ theme }) => ({
|
|
6
|
+
display: "flex",
|
|
7
|
+
flexDirection: "column",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
justifyContent: "center",
|
|
10
|
+
height: "80%",
|
|
11
|
+
width: "100%",
|
|
12
|
+
maxWidth: "600px",
|
|
13
|
+
minWidth: "200px",
|
|
14
|
+
padding: "10px",
|
|
15
|
+
gap: theme.vars.size.baseSpacings.sp2,
|
|
16
|
+
minHeight: "60px",
|
|
17
|
+
backgroundColor: theme.palette.background.default
|
|
18
|
+
})
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
imageTextContainerStyles as i
|
|
22
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clave del componente ImageTextContainer.
|
|
3
|
+
*/
|
|
4
|
+
export declare const IMAGE_TEXT_CONTAINER_KEY_COMPONENT = "M4LImageTextContainer";
|
|
5
|
+
/**
|
|
6
|
+
* Clases del componente ImageTextContainer.
|
|
7
|
+
*/
|
|
8
|
+
export declare const IMAGE_TEXT_CONTAINER_CLASSES: Record<string, string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { g as getComponentClasses } from "../../../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { I as ImageTextContainerSlots } from "./slots/ImageTextContainerEnum.js";
|
|
3
|
+
const IMAGE_TEXT_CONTAINER_KEY_COMPONENT = "M4LImageTextContainer";
|
|
4
|
+
const IMAGE_TEXT_CONTAINER_CLASSES = getComponentClasses(IMAGE_TEXT_CONTAINER_KEY_COMPONENT, ImageTextContainerSlots);
|
|
5
|
+
export {
|
|
6
|
+
IMAGE_TEXT_CONTAINER_CLASSES as I,
|
|
7
|
+
IMAGE_TEXT_CONTAINER_KEY_COMPONENT as a
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ImageTextContainer } from './ImageTextContainer';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const ImageTextContainerRoot: import('@emotion/styled').StyledComponent<Pick<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>>, "title" | "id" | "hidden" | "content" | "style" | "translate" | "className" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, {}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { Box } from "@mui/material";
|
|
3
|
+
import { a as IMAGE_TEXT_CONTAINER_KEY_COMPONENT } from "../constants.js";
|
|
4
|
+
import { I as ImageTextContainerSlots } from "./ImageTextContainerEnum.js";
|
|
5
|
+
import { i as imageTextContainerStyles } from "../ImageTextContainerStyle.js";
|
|
6
|
+
const ImageTextContainerRoot = styled(Box, {
|
|
7
|
+
name: IMAGE_TEXT_CONTAINER_KEY_COMPONENT,
|
|
8
|
+
slot: ImageTextContainerSlots.root
|
|
9
|
+
})(imageTextContainerStyles?.root);
|
|
10
|
+
export {
|
|
11
|
+
ImageTextContainerRoot as I
|
|
12
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ImageTextContainerSlots } from './slots/ImageTextContainerEnum';
|
|
3
|
+
import { M4LOverridesStyleRules } from '../../../../@types/augmentations';
|
|
4
|
+
import { IMAGE_TEXT_CONTAINER_KEY_COMPONENT } from './constants';
|
|
5
|
+
import { Theme } from '@mui/material';
|
|
6
|
+
export interface ImageTextContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
/**
|
|
8
|
+
* Contenido del componente.
|
|
9
|
+
*/
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Clase del componente.
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* ID de prueba.
|
|
17
|
+
*/
|
|
18
|
+
dataTestId?: string;
|
|
19
|
+
}
|
|
20
|
+
export type ImageTextContainerOwnerState = {};
|
|
21
|
+
export type ImageTextContainerSlotsType = keyof typeof ImageTextContainerSlots;
|
|
22
|
+
export type ImageTextContainerStyles = M4LOverridesStyleRules<ImageTextContainerSlotsType, typeof IMAGE_TEXT_CONTAINER_KEY_COMPONENT, Theme>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NoItemPrivilegesProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente que muestra un mensaje de que no hay privilegios para el item seleccionado.
|
|
4
|
+
* @param props - Propiedades del componente.
|
|
5
|
+
* @returns Componente NoItemPrivileges.
|
|
6
|
+
*/
|
|
7
|
+
export declare const NoItemPrivileges: (props: NoItemPrivilegesProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
|
+
import { I as ImageContainerStyled, a as ImgStyled, W as WrapperTitleMessageStyled, T as TypographyStyledTitle, b as TypographyStyledMessage } from "./slots/NoItemPrivilegesSlots.js";
|
|
4
|
+
import { D as DICTIONARY } from "./dictionary.js";
|
|
5
|
+
import { I as IMG_ALT, D as DEFAULT_IMAGE_URL, N as NO_ITEM_PRIVILEGES_CLASSES } from "./constants.js";
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import { useRef } from "react";
|
|
8
|
+
import { u as useIsVisible } from "../../hooks/useIsVisible/index.js";
|
|
9
|
+
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
10
|
+
import { I as ImageTextContainer } from "../ImageTextContainer/ImageTextContainer.js";
|
|
11
|
+
const NoItemPrivileges = (props) => {
|
|
12
|
+
const { image, title, message, className, dataTestId, size } = props;
|
|
13
|
+
const { getLabel } = useModuleDictionary();
|
|
14
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
15
|
+
const imageUrl = image || `${host_static_assets}/${environment_assets}/${DEFAULT_IMAGE_URL}`;
|
|
16
|
+
const titleText = title || getLabel(DICTIONARY.LABEL_TITLE);
|
|
17
|
+
const messageText = message || getLabel(DICTIONARY.LABEL_MESSAGE);
|
|
18
|
+
const { currentSize } = useComponentSize(size);
|
|
19
|
+
const containerRef = useRef(null);
|
|
20
|
+
const isVisible = useIsVisible(containerRef);
|
|
21
|
+
return /* @__PURE__ */ jsxs(
|
|
22
|
+
ImageTextContainer,
|
|
23
|
+
{
|
|
24
|
+
className: clsx(className, NO_ITEM_PRIVILEGES_CLASSES.root),
|
|
25
|
+
dataTestId,
|
|
26
|
+
role: "alert",
|
|
27
|
+
"aria-label": "NoItemPrivileges",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ jsx(ImageContainerStyled, { ref: containerRef, ownerState: { isVisible }, children: /* @__PURE__ */ jsx(
|
|
30
|
+
ImgStyled,
|
|
31
|
+
{
|
|
32
|
+
src: imageUrl,
|
|
33
|
+
alt: IMG_ALT,
|
|
34
|
+
role: "presentation",
|
|
35
|
+
"aria-label": "illustration no item privileges",
|
|
36
|
+
ownerState: { isVisible }
|
|
37
|
+
}
|
|
38
|
+
) }),
|
|
39
|
+
/* @__PURE__ */ jsxs(WrapperTitleMessageStyled, { children: [
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
TypographyStyledTitle,
|
|
42
|
+
{
|
|
43
|
+
size: currentSize,
|
|
44
|
+
skeletonWidth: 100,
|
|
45
|
+
variant: "bodyDens",
|
|
46
|
+
children: titleText
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
50
|
+
TypographyStyledMessage,
|
|
51
|
+
{
|
|
52
|
+
size: currentSize,
|
|
53
|
+
skeletonWidth: 200,
|
|
54
|
+
variant: "body",
|
|
55
|
+
children: messageText
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
NoItemPrivileges as N
|
|
65
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const noItemPrivilegesStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Estilos para el contenedor de la imagen.
|
|
4
|
+
*/
|
|
5
|
+
imageContainer: ({ ownerState }) => ({
|
|
6
|
+
visibility: ownerState?.isVisible ? "visible" : "hidden",
|
|
7
|
+
display: "flex",
|
|
8
|
+
justifyContent: "center",
|
|
9
|
+
height: "100%",
|
|
10
|
+
width: "100%",
|
|
11
|
+
maxWidth: "150px",
|
|
12
|
+
maxHeight: "106px",
|
|
13
|
+
minWidth: "70px",
|
|
14
|
+
'& [class*="M4LImage-imgSkeleton"]': {
|
|
15
|
+
opacity: 0
|
|
16
|
+
},
|
|
17
|
+
'& [class*="M4LImage"]': {
|
|
18
|
+
width: "100%",
|
|
19
|
+
height: "auto ",
|
|
20
|
+
maxWidth: "150px",
|
|
21
|
+
maxHeight: "106px",
|
|
22
|
+
minWidth: "70px",
|
|
23
|
+
minHeight: "50px"
|
|
24
|
+
}
|
|
25
|
+
}),
|
|
26
|
+
/**
|
|
27
|
+
* Estilos para la imagen.
|
|
28
|
+
*/
|
|
29
|
+
img: {},
|
|
30
|
+
/**
|
|
31
|
+
* Estilos para el wrapper de la typography de NoItemPrivileges.
|
|
32
|
+
*/
|
|
33
|
+
wrapperTitleMessage: ({ theme }) => ({
|
|
34
|
+
display: "flex",
|
|
35
|
+
justifyContent: "center",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
flexDirection: "column",
|
|
38
|
+
gap: theme.vars.size.baseSpacings["sp0-5"],
|
|
39
|
+
"& .MuiTypography-root": {
|
|
40
|
+
width: "auto"
|
|
41
|
+
}
|
|
42
|
+
}),
|
|
43
|
+
/**
|
|
44
|
+
* Estilos para la typography de NoItemPrivileges.
|
|
45
|
+
*/
|
|
46
|
+
typographyStyledTitle: ({ theme }) => ({
|
|
47
|
+
"&&&": {
|
|
48
|
+
color: theme.vars.palette.primary.semanticText
|
|
49
|
+
}
|
|
50
|
+
}),
|
|
51
|
+
/**
|
|
52
|
+
* Estilos para la typography del mensaje de NoItemPrivileges.
|
|
53
|
+
*/
|
|
54
|
+
typographyStyledMessage: ({ theme }) => ({
|
|
55
|
+
"&&&": {
|
|
56
|
+
color: theme.vars.palette.text.secondary
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
noItemPrivilegesStyles as n
|
|
62
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const NO_ITEM_PRIVILEGES_KEY_COMPONENT = "M4LNoItemPrivileges";
|
|
2
|
+
export declare const NO_ITEM_PRIVILEGES_CLASSES: Record<string, string>;
|
|
3
|
+
export declare const DEFAULT_IMAGE_URL = "frontend/components/no_item_privileges/assets/img/ProtectionIllustration.svg";
|
|
4
|
+
export declare const IMG_ALT = "No item privileges";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { g as getComponentClasses } from "../../../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { N as NoItemPrivilegesSlots } from "./slots/NoItemPrivilegesEnum.js";
|
|
3
|
+
const NO_ITEM_PRIVILEGES_KEY_COMPONENT = "M4LNoItemPrivileges";
|
|
4
|
+
const NO_ITEM_PRIVILEGES_CLASSES = getComponentClasses(NO_ITEM_PRIVILEGES_KEY_COMPONENT, [...Object.values(NoItemPrivilegesSlots), "root"]);
|
|
5
|
+
const DEFAULT_IMAGE_URL = "frontend/components/no_item_privileges/assets/img/ProtectionIllustration.svg";
|
|
6
|
+
const IMG_ALT = "No item privileges";
|
|
7
|
+
export {
|
|
8
|
+
DEFAULT_IMAGE_URL as D,
|
|
9
|
+
IMG_ALT as I,
|
|
10
|
+
NO_ITEM_PRIVILEGES_CLASSES as N
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const NO_ITEM_PRIVILEGES_DICTIONARY_KEY = "no_item_privileges";
|
|
2
|
+
const getNoItemPrivilegesComponentsDictionary = () => {
|
|
3
|
+
return [NO_ITEM_PRIVILEGES_DICTIONARY_KEY];
|
|
4
|
+
};
|
|
5
|
+
const DICTIONARY = {
|
|
6
|
+
LABEL_TITLE: `${NO_ITEM_PRIVILEGES_DICTIONARY_KEY}.label_title`,
|
|
7
|
+
LABEL_MESSAGE: `${NO_ITEM_PRIVILEGES_DICTIONARY_KEY}.label_message`
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
DICTIONARY as D,
|
|
11
|
+
getNoItemPrivilegesComponentsDictionary as g
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var NoItemPrivilegesSlots = /* @__PURE__ */ ((NoItemPrivilegesSlots2) => {
|
|
2
|
+
NoItemPrivilegesSlots2["imageContainer"] = "imageContainer";
|
|
3
|
+
NoItemPrivilegesSlots2["img"] = "img";
|
|
4
|
+
NoItemPrivilegesSlots2["wrapperTitleMessage"] = "wrapperTitleMessage";
|
|
5
|
+
NoItemPrivilegesSlots2["typographyStyledTitle"] = "typographyStyledTitle";
|
|
6
|
+
NoItemPrivilegesSlots2["typographyStyledMessage"] = "typographyStyledMessage";
|
|
7
|
+
return NoItemPrivilegesSlots2;
|
|
8
|
+
})(NoItemPrivilegesSlots || {});
|
|
9
|
+
export {
|
|
10
|
+
NoItemPrivilegesSlots as N
|
|
11
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const ImageContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
2
|
+
ownerState?: (Partial<import('..').NoItemPrivilegesOwnerState> & Record<string, unknown>) | undefined;
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const ImgStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../../Image').ImageProps, keyof import('../../../../Image').ImageProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
5
|
+
ownerState?: (Partial<import('..').NoItemPrivilegesOwnerState> & Record<string, unknown>) | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export declare const WrapperTitleMessageStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
8
|
+
ownerState?: (Partial<import('..').NoItemPrivilegesOwnerState> & Record<string, unknown>) | undefined;
|
|
9
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
|
+
export declare const TypographyStyledTitle: import('@emotion/styled').StyledComponent<Pick<import('../../../../mui_extended/Typography/types').TypographyProps, keyof import('../../../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
11
|
+
ownerState?: (Partial<import('..').NoItemPrivilegesOwnerState> & Record<string, unknown>) | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export declare const TypographyStyledMessage: import('@emotion/styled').StyledComponent<Pick<import('../../../../mui_extended/Typography/types').TypographyProps, keyof import('../../../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
14
|
+
ownerState?: (Partial<import('..').NoItemPrivilegesOwnerState> & Record<string, unknown>) | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { N as NoItemPrivilegesSlots } from "./NoItemPrivilegesEnum.js";
|
|
3
|
+
import { N as NO_ITEM_SELECT_KEY_COMPONENT } from "../../NoItemSelected/constant.js";
|
|
4
|
+
import { n as noItemPrivilegesStyles } from "../NoItemPrivilegesStyles.js";
|
|
5
|
+
import { T as Typography } from "../../../../mui_extended/Typography/Typography.js";
|
|
6
|
+
import { I as Image } from "../../../../Image/Image.js";
|
|
7
|
+
const ImageContainerStyled = styled("div", {
|
|
8
|
+
name: NO_ITEM_SELECT_KEY_COMPONENT,
|
|
9
|
+
slot: NoItemPrivilegesSlots.imageContainer
|
|
10
|
+
})(noItemPrivilegesStyles?.imageContainer);
|
|
11
|
+
const ImgStyled = styled(Image, {
|
|
12
|
+
name: NO_ITEM_SELECT_KEY_COMPONENT,
|
|
13
|
+
slot: NoItemPrivilegesSlots.img
|
|
14
|
+
})(noItemPrivilegesStyles?.img);
|
|
15
|
+
const WrapperTitleMessageStyled = styled("div", {
|
|
16
|
+
name: NO_ITEM_SELECT_KEY_COMPONENT,
|
|
17
|
+
slot: NoItemPrivilegesSlots.wrapperTitleMessage
|
|
18
|
+
})(noItemPrivilegesStyles?.wrapperTitleMessage);
|
|
19
|
+
const TypographyStyledTitle = styled(Typography, {
|
|
20
|
+
name: NO_ITEM_SELECT_KEY_COMPONENT,
|
|
21
|
+
slot: NoItemPrivilegesSlots.typographyStyledTitle
|
|
22
|
+
})(noItemPrivilegesStyles?.typographyStyledTitle);
|
|
23
|
+
const TypographyStyledMessage = styled(Typography, {
|
|
24
|
+
name: NO_ITEM_SELECT_KEY_COMPONENT,
|
|
25
|
+
slot: NoItemPrivilegesSlots.typographyStyledMessage
|
|
26
|
+
})(noItemPrivilegesStyles?.typographyStyledMessage);
|
|
27
|
+
export {
|
|
28
|
+
ImageContainerStyled as I,
|
|
29
|
+
TypographyStyledTitle as T,
|
|
30
|
+
WrapperTitleMessageStyled as W,
|
|
31
|
+
ImgStyled as a,
|
|
32
|
+
TypographyStyledMessage as b
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|