@m4l/components 9.20.0 → 9.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/components/AccountPopover/AccountPopover.d.ts.map +1 -1
  2. package/components/AccountPopover/AccountPopover.js +43 -39
  3. package/components/AccountPopover/constants.d.ts +3 -0
  4. package/components/AccountPopover/constants.d.ts.map +1 -1
  5. package/components/AccountPopover/constants.js +11 -3
  6. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +7 -7
  7. package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.d.ts.map +1 -1
  8. package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +45 -43
  9. package/components/AccountPopover/types.d.ts +9 -0
  10. package/components/AccountPopover/types.d.ts.map +1 -1
  11. package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
  12. package/components/AppBar/AppBar.d.ts +3 -18
  13. package/components/AppBar/AppBar.d.ts.map +1 -1
  14. package/components/AppBar/AppBar.js +64 -45
  15. package/components/AppBar/slots/AppBarEnum.d.ts +3 -1
  16. package/components/AppBar/slots/AppBarEnum.d.ts.map +1 -1
  17. package/components/AppBar/slots/AppBarEnum.js +2 -2
  18. package/components/AppBar/slots/AppBarSlots.d.ts +7 -1
  19. package/components/AppBar/slots/AppBarSlots.d.ts.map +1 -1
  20. package/components/AppBar/slots/AppBarSlots.js +30 -22
  21. package/components/AppBar/styles.d.ts.map +1 -1
  22. package/components/AppBar/styles.js +90 -47
  23. package/components/AppBar/types.d.ts +63 -29
  24. package/components/AppBar/types.d.ts.map +1 -1
  25. package/components/Card/constants.d.ts +1 -1
  26. package/components/CheckableList/slots/styled.d.ts +9 -9
  27. package/components/Chip/slots/ChipSlots.d.ts +4 -4
  28. package/components/ColorPicker/slots/ColorPickerSlots.d.ts +2 -2
  29. package/components/CommonActions/classes/index.d.ts +1 -1
  30. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  31. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  32. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.d.ts +1 -1
  33. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  34. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
  35. package/components/DateRangeCalendarPicker/constants.d.ts +1 -1
  36. package/components/DateTimeRangePicker/slots/DateTimeRangePickerSlots.d.ts +9 -9
  37. package/components/DaysOfMonthPicker/slots/DaysOfMonthPickerSlots.d.ts +1 -1
  38. package/components/DaysOfWeekPicker/constants.d.ts +1 -1
  39. package/components/DaysOfWeekPicker/slots/DaysOfWeekPickerSlots.d.ts +1 -1
  40. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +7 -7
  41. package/components/DynamicForm/constants.d.ts +1 -1
  42. package/components/DynamicForm/slots/DynamicFormSlots.d.ts +3 -3
  43. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +7 -7
  44. package/components/EditLabel/constants.d.ts +1 -1
  45. package/components/EditLabel/slots/EditLabelSlots.d.ts +4 -4
  46. package/components/GridLayout/classes/index.d.ts +1 -1
  47. package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
  48. package/components/ImageSelector/constants.d.ts +1 -1
  49. package/components/ImageSelector/slots/ImageSelectorSlots.d.ts +4 -4
  50. package/components/ImageText/constants.d.ts +1 -1
  51. package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
  52. package/components/Label/slots/LabelSlots.d.ts +2 -2
  53. package/components/LanguagePopover/LanguagePopover.d.ts +7 -7
  54. package/components/LanguagePopover/LanguagePopover.d.ts.map +1 -1
  55. package/components/LanguagePopover/LanguagePopover.js +40 -36
  56. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
  57. package/components/LanguagePopover/types.d.ts +12 -3
  58. package/components/LanguagePopover/types.d.ts.map +1 -1
  59. package/components/LoadingError/LoadingError.js +4 -4
  60. package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
  61. package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
  62. package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
  63. package/components/MenuActions/types.d.ts +1 -1
  64. package/components/MenuActions/types.d.ts.map +1 -1
  65. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
  66. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  67. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +2 -2
  68. package/components/Pager/slots/PagerSlots.d.ts +3 -3
  69. package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
  70. package/components/PropertyValue/slots/PropertyValueSlots.d.ts +1 -1
  71. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +3 -3
  72. package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
  73. package/components/Stepper/slots/StepperSlot.d.ts +4 -4
  74. package/components/TabsNavigator/constants.d.ts +1 -1
  75. package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +3 -3
  76. package/components/TimePicker/slots/TimePickerSlots.d.ts +8 -8
  77. package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
  78. package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
  79. package/components/WindowConfirm/WindowConfirm.js +10 -10
  80. package/components/WindowConfirm/WindowConfirm.styles.d.ts.map +1 -1
  81. package/components/WindowConfirm/WindowConfirm.styles.js +26 -5
  82. package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +5 -5
  83. package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +1 -2
  84. package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
  85. package/components/areas/components/AreasAdmin/AreasAdmin.js +295 -119
  86. package/components/areas/components/AreasAdmin/AreasAdmin.styles.d.ts.map +1 -1
  87. package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +309 -70
  88. package/components/areas/components/AreasAdmin/constants.d.ts +8 -0
  89. package/components/areas/components/AreasAdmin/constants.d.ts.map +1 -1
  90. package/components/areas/components/AreasAdmin/constants.js +10 -2
  91. package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.d.ts +19 -0
  92. package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.d.ts.map +1 -1
  93. package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.js +2 -2
  94. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +66 -9
  95. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts.map +1 -1
  96. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.js +176 -93
  97. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.d.ts +6 -0
  98. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.d.ts.map +1 -0
  99. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.js +191 -0
  100. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/index.d.ts +2 -0
  101. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/index.d.ts.map +1 -0
  102. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/types.d.ts +37 -0
  103. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/types.d.ts.map +1 -0
  104. package/components/areas/components/AreasAdmin/types.d.ts +29 -3
  105. package/components/areas/components/AreasAdmin/types.d.ts.map +1 -1
  106. package/components/areas/dictionary.d.ts +3 -0
  107. package/components/areas/dictionary.d.ts.map +1 -1
  108. package/components/areas/dictionary.js +4 -1
  109. package/components/areas/hooks/index.d.ts +1 -1
  110. package/components/areas/hooks/index.d.ts.map +1 -1
  111. package/components/areas/hooks/useAreas/index.d.ts +5 -0
  112. package/components/areas/hooks/useAreas/index.d.ts.map +1 -1
  113. package/components/areas/hooks/useAreas/index.js +16 -7
  114. package/components/areas/icons.js +3 -10
  115. package/components/datagrids/slots/DataGridSlot.d.ts +6 -6
  116. package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  117. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +5 -5
  118. package/components/extended/mui/Accordion/slots/AccordionSlots.d.ts +4 -4
  119. package/components/extended/mui/Autocomplete/constants.d.ts +1 -1
  120. package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.d.ts +6 -6
  121. package/components/extended/mui/Avatar/slots/AvatarSlots.d.ts +1 -1
  122. package/components/extended/mui/Badge/slots/BadgeSlots.d.ts +1 -1
  123. package/components/extended/mui/Button/slots/ButtonSlots.d.ts +2 -2
  124. package/components/extended/mui/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
  125. package/components/extended/mui/DatePicker/constants.d.ts +1 -1
  126. package/components/extended/mui/DatePicker/slots/DatePickerSlots.d.ts +3 -3
  127. package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
  128. package/components/extended/mui/Divider/slots/DividerSlots.d.ts +1 -1
  129. package/components/extended/mui/IconButton/slots/IconButtonSlots.d.ts +1 -1
  130. package/components/extended/mui/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  131. package/components/extended/mui/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
  132. package/components/extended/mui/MenuItem/slots/MenuItemSlots.d.ts +4 -4
  133. package/components/extended/mui/NavLink/slots/NavLinkSlots.d.ts +1 -1
  134. package/components/extended/mui/Popover/Popover.d.ts.map +1 -1
  135. package/components/extended/mui/Popover/Popover.js +41 -41
  136. package/components/extended/mui/Popper/slots/PopperStlots.d.ts +1 -1
  137. package/components/extended/mui/Radio/constants.d.ts +1 -1
  138. package/components/extended/mui/Radio/slots/styled.d.ts +2 -2
  139. package/components/extended/mui/Select/constants.d.ts +1 -1
  140. package/components/extended/mui/Select/slots/SelectSlots.d.ts +5 -5
  141. package/components/extended/mui/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  142. package/components/extended/mui/Stack/slots/StackSlot.d.ts +1 -1
  143. package/components/extended/mui/Switch/constants.d.ts +1 -1
  144. package/components/extended/mui/Switch/slots/SwitchSlots.d.ts +2 -2
  145. package/components/extended/mui/Tab/Slots/TabSlots.d.ts +4 -4
  146. package/components/extended/mui/Tab/constants.d.ts +1 -1
  147. package/components/extended/mui/Tabs/slots/TabsSlots.d.ts +1 -1
  148. package/components/extended/mui/TextField/constants.d.ts +1 -1
  149. package/components/extended/mui/TextField/slots/TextFieldSlots.d.ts +4 -4
  150. package/components/extended/mui/TimePicker/slots/TimePickerSlots.d.ts +3 -3
  151. package/components/extended/mui/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  152. package/components/extended/mui/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  153. package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
  154. package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
  155. package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
  156. package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
  157. package/components/formatters/ImageFormatter/constants.d.ts +1 -1
  158. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
  159. package/components/formatters/NestedFormatter/constants.d.ts +1 -1
  160. package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
  161. package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
  162. package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
  163. package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
  164. package/components/hook-form/RHFCheckableList/constants.d.ts +1 -1
  165. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  166. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +3 -3
  167. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  168. package/components/hook-form/RHFRadioGroup/constants.d.ts +1 -1
  169. package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +1 -1
  170. package/components/hook-form/RHFSelect/constants.d.ts +1 -1
  171. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  172. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  173. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
  174. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +3 -3
  175. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +1 -1
  176. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +7 -7
  177. package/components/hook-form/RHFormProvider/classes/index.d.ts +1 -1
  178. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +4 -4
  179. package/index.js +674 -673
  180. package/package.json +7 -7
  181. package/test/mocks/dictionary-mock.d.ts +1 -0
  182. package/test/mocks/dictionary-mock.d.ts.map +1 -1
  183. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +0 -171
  184. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.js +0 -45
  185. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +0 -69
  186. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +0 -149
@@ -1,169 +1,408 @@
1
- import { getSizeStyles as a } from "../../../../utils/getSizeStyles/getSizeStyles.js";
2
- const s = {
1
+ import { getSizeStyles as r } from "../../../../utils/getSizeStyles/getSizeStyles.js";
2
+ import { MENUITEM_CLASSES as a } from "../../../extended/mui/MenuItem/constants.js";
3
+ import { AREAS_MENU_MAX_VISIBLE_ITEMS as d } from "./constants.js";
4
+ const b = {
3
5
  /**
4
- * Root areas admin Styles
6
+ * Root Areas admin styles.
5
7
  */
6
- root: ({ theme: e }) => ({
7
- width: "100%",
8
+ root: ({ theme: e, ownerState: i }) => ({
9
+ alignItems: "center",
8
10
  display: "flex",
9
- flexDirection: "row",
10
- overflow: "auto",
11
- paddingRight: e.vars.size.baseSpacings["sp2-5"]
11
+ ...i?.orientation === "vertical" ? {
12
+ flexDirection: "column",
13
+ gap: e.vars.size.baseSpacings.sp4,
14
+ height: "100%",
15
+ width: "100%"
16
+ } : {
17
+ flexDirection: "row",
18
+ gap: e.vars.size.baseSpacings.sp3,
19
+ width: "100%"
20
+ }
12
21
  }),
13
22
  /**
14
- * Root areas admin content Styles
23
+ * Inner Areas admin layout styles.
15
24
  */
16
- areasAdminContent: () => ({
25
+ areasAdminContent: ({ theme: e, ownerState: i }) => ({
26
+ alignItems: "center",
17
27
  display: "flex",
18
- flexDirection: "row",
28
+ ...i?.orientation === "vertical" ? {
29
+ flex: 1,
30
+ flexDirection: "column",
31
+ gap: e.vars.size.baseSpacings.sp2,
32
+ justifyContent: "flex-start",
33
+ width: "100%"
34
+ } : {
35
+ flexDirection: "row",
36
+ gap: e.vars.size.baseSpacings["sp1-5"],
37
+ width: "100%"
38
+ }
39
+ }),
40
+ /**
41
+ * Legacy trigger wrapper styles retained for slot compatibility.
42
+ */
43
+ areasTrigger: ({ ownerState: e }) => ({
44
+ display: "flex",
45
+ justifyContent: e?.orientation === "vertical" ? "center" : "flex-start",
46
+ width: e?.orientation === "vertical" ? "100%" : "fit-content"
47
+ }),
48
+ /**
49
+ * Areas-menu trigger button styles.
50
+ */
51
+ areasTriggerButton: {},
52
+ /**
53
+ * Shared divider spacing used by the vertical AreasAdmin rail.
54
+ */
55
+ sectionDivider: ({ theme: e }) => ({
56
+ "&&": {
57
+ alignSelf: "stretch",
58
+ flexShrink: 0,
59
+ height: "auto",
60
+ minHeight: 0,
61
+ padding: e.vars.size.baseSpacings["sp1-5"],
62
+ width: e.vars.size.baseSpacings.sp4,
63
+ margin: "0 auto"
64
+ }
65
+ }),
66
+ /**
67
+ * Areas-menu content wrapper that keeps the footer outside the scroll body.
68
+ */
69
+ areasMenuContent: ({ theme: e }) => ({
70
+ display: "flex",
71
+ flexDirection: "column",
72
+ gap: e.vars.size.baseSpacings.sp1,
73
+ "& > .M4LAreasAdmin-areasMenuFooter": {
74
+ paddingLeft: e.vars.size.baseSpacings.sp4,
75
+ paddingRight: e.vars.size.baseSpacings.sp4
76
+ }
77
+ }),
78
+ /**
79
+ * Scrollable region that keeps the approved visible-items cap local to AreasAdmin.
80
+ */
81
+ areasMenuScrollArea: ({ theme: e, ownerState: i }) => {
82
+ const o = i?.size === "small" ? "small" : "medium", t = e.generalSettings.isMobile ? "mobile" : "desktop", l = e.vars.size[t][o].box, p = e.vars.size.baseSpacings.sp1, s = e.vars.size.baseSpacings.sp1, n = Number(
83
+ i?.maxVisibleItems ?? d
84
+ );
85
+ return {
86
+ overflowX: "hidden",
87
+ overflowY: "auto",
88
+ padding: s,
89
+ maxHeight: `calc((${l} * ${n}) + (${p} * ${n - 1}) + (${s} * 2))`,
90
+ "& .M4LMenuItem-root .M4LTypography-root": {
91
+ width: "100%",
92
+ // -webkit-line-clamp only truncates when the element is a -webkit-box;
93
+ // without display + box-orient the clamp is ignored and the text expands.
94
+ display: "-webkit-box",
95
+ WebkitBoxOrient: "vertical",
96
+ WebkitLineClamp: 2,
97
+ overflow: "hidden",
98
+ // normal wrapping lets the clamp count lines; break-spaces keeps long
99
+ // tokens from overflowing horizontally.
100
+ whiteSpace: "normal",
101
+ overflowWrap: "anywhere"
102
+ }
103
+ };
104
+ },
105
+ /**
106
+ * Local menu-list styling that mirrors the approved spacing and text wrapping.
107
+ */
108
+ areasMenuList: ({ theme: e }) => ({
109
+ paddingTop: e.vars.size.baseSpacings.sp3,
110
+ paddingBottom: e.vars.size.baseSpacings.sp3,
111
+ display: "flex",
112
+ flexDirection: "column",
113
+ gap: e.vars.size.baseSpacings.sp1,
114
+ [`& .${a.menuItemTypography}`]: {
115
+ display: "-webkit-box",
116
+ WebkitBoxOrient: "vertical",
117
+ WebkitLineClamp: 3,
118
+ whiteSpace: "normal",
119
+ overflow: "hidden",
120
+ overflowWrap: "anywhere"
121
+ }
122
+ }),
123
+ /**
124
+ * Footer action inside the areas menu.
125
+ */
126
+ areasMenuFooter: ({ theme: e }) => ({
127
+ display: "flex",
128
+ paddingTop: e.vars.size.baseSpacings.sp2,
19
129
  width: "100%"
20
130
  }),
21
131
  /**
22
- * Root container admin windows Styles
132
+ * Inline actions rendered inside the selected areas menu item.
133
+ */
134
+ areaMenuItemActions: ({ theme: e }) => ({
135
+ alignItems: "center",
136
+ display: "flex",
137
+ gap: e.vars.size.baseSpacings.sp1,
138
+ marginLeft: "auto"
139
+ }),
140
+ /**
141
+ * Icon button styles for the area edit/delete actions.
142
+ */
143
+ areaMenuActionButton: ({ theme: e }) => ({
144
+ "&&&": {
145
+ borderRadius: e.vars.size.borderRadius.r1,
146
+ minHeight: "auto",
147
+ minWidth: "auto",
148
+ padding: e.vars.size.baseSpacings["sp0-5"],
149
+ "& .M4LIcon-icon": {
150
+ backgroundColor: `${e.vars.palette.text.secondary} !important`
151
+ }
152
+ }
153
+ }),
154
+ /**
155
+ * Container styles for the module-switching section.
156
+ */
157
+ containerModulesRoot: ({ theme: e, ownerState: i }) => ({
158
+ alignItems: "center",
159
+ backgroundColor: e.vars.palette.background.default,
160
+ borderRadius: e.vars.size.borderRadius.r2,
161
+ display: "flex",
162
+ padding: e.vars.size.baseSpacings.sp1,
163
+ border: e.vars.size.borderStroke.container,
164
+ borderColor: e.vars.palette.border.disabled,
165
+ boxShadow: e.vars.customShadows.z1,
166
+ "&&& .M4LAreasAdmin-sectionDivider": {
167
+ padding: e.vars.size.baseSpacings["sp0-5"]
168
+ },
169
+ ...i?.orientation === "vertical" ? {
170
+ flexDirection: "column",
171
+ gap: e.vars.size.baseSpacings.sp2,
172
+ width: "100%"
173
+ } : {
174
+ flexDirection: "row",
175
+ gap: e.vars.size.baseSpacings.sp2
176
+ }
177
+ }),
178
+ /**
179
+ * Visible module items layout.
180
+ */
181
+ containerModulesItems: ({ theme: e, ownerState: i }) => ({
182
+ alignItems: "center",
183
+ display: "flex",
184
+ ...i?.orientation === "vertical" ? {
185
+ flexDirection: "column",
186
+ gap: e.vars.size.baseSpacings["sp1-5"],
187
+ width: "100%"
188
+ } : {
189
+ flexDirection: "row",
190
+ gap: e.vars.size.baseSpacings["sp1-5"]
191
+ }
192
+ }),
193
+ /**
194
+ * Legacy overflow wrapper styles retained for slot compatibility.
195
+ */
196
+ containerModulesOverflow: ({ ownerState: e }) => ({
197
+ display: "flex",
198
+ justifyContent: "center",
199
+ width: e?.orientation === "vertical" ? "100%" : "fit-content"
200
+ }),
201
+ /**
202
+ * Overflow trigger button styles.
203
+ */
204
+ containerModulesOverflowButton: ({ theme: e }) => ({
205
+ ...r(e, "medium", "base", (i) => ({
206
+ width: "inherit",
207
+ height: `${i}px!important`
208
+ }))
209
+ }),
210
+ /**
211
+ * Module-menu content wrapper with local hover-reveal affordances.
212
+ */
213
+ containerModulesMenuContent: ({ theme: e }) => ({
214
+ display: "flex",
215
+ flexDirection: "column",
216
+ gap: e.vars.size.baseSpacings.sp4,
217
+ [`& .${a.root}:hover .M4LAreasAdmin-containerModulesMenuEndAdornment, & .${a.root}.Mui-focusVisible .M4LAreasAdmin-containerModulesMenuEndAdornment, & .${a.root}:focus-visible .M4LAreasAdmin-containerModulesMenuEndAdornment`]: {
218
+ opacity: 1
219
+ }
220
+ }),
221
+ /**
222
+ * Module-menu header layout.
223
+ */
224
+ containerModulesMenuHeader: ({ theme: e }) => ({
225
+ alignItems: "center",
226
+ display: "flex",
227
+ gap: e.vars.size.baseSpacings.sp2,
228
+ justifyContent: "space-between",
229
+ paddingInline: e.vars.size.baseSpacings.sp2
230
+ }),
231
+ /**
232
+ * Module-menu header title styling.
233
+ */
234
+ containerModulesMenuHeaderTitle: ({ theme: e }) => ({
235
+ color: e.vars.palette.text.primary,
236
+ fontWeight: e.vars.size.typography.weight.bold700,
237
+ minWidth: 0
238
+ }),
239
+ /**
240
+ * Module-menu total-count chip wrapper.
241
+ */
242
+ containerModulesMenuHeaderCount: () => ({
243
+ flexShrink: 0
244
+ }),
245
+ /**
246
+ * Hover-revealed end-adornment icon button used by module menu items.
247
+ */
248
+ containerModulesMenuEndAdornment: () => ({
249
+ alignItems: "center",
250
+ display: "flex",
251
+ flexShrink: 0,
252
+ marginLeft: "auto",
253
+ opacity: 0,
254
+ pointerEvents: "none",
255
+ transition: "opacity 0.2s ease"
256
+ }),
257
+ /**
258
+ * Styles for visible module icon buttons.
259
+ */
260
+ moduleIconButton: {},
261
+ /**
262
+ * Legacy root container admin windows styles kept for compatibility.
23
263
  */
24
264
  containerAdminWindows: ({ theme: e }) => ({
265
+ alignItems: "center",
25
266
  display: "flex",
26
267
  flexDirection: "row",
27
- alignItems: "center",
28
268
  gap: e.vars.size.baseSpacings.sp2
29
269
  }),
30
270
  areaContainerChipIcon: () => ({
31
271
  width: "100%"
32
272
  }),
33
273
  /**
34
- * Root area container content chips
274
+ * Legacy desktop chip container retained for compatibility with older slots.
35
275
  */
36
276
  areaContainerContentChips: ({ theme: e }) => ({
277
+ alignItems: "center",
37
278
  display: "flex",
38
279
  flexDirection: "row",
39
- alignItems: "center",
40
280
  gap: e.vars.size.baseSpacings["sp2-5"]
41
281
  }),
42
282
  /**
43
- * Root area content chip Styles
283
+ * Legacy desktop chip list wrapper retained for compatibility.
44
284
  */
45
285
  areaContentChip: ({ theme: e }) => ({
46
- height: "100%",
286
+ alignItems: "center",
47
287
  display: "flex",
48
288
  flexDirection: "row",
49
289
  gap: e.vars.size.baseSpacings.sp1,
50
- alignItems: "center",
290
+ height: "100%",
51
291
  overflow: "auto hidden"
52
292
  }),
53
293
  /**
54
- * Root area chip Styles
294
+ * Legacy area-chip root layout retained for compatibility.
55
295
  */
56
296
  areaChipRoot: () => ({
57
- width: "fit-content",
58
- maxWidth: "fit-content",
59
297
  display: "flex",
60
- flexDirection: "row"
298
+ flexDirection: "row",
299
+ maxWidth: "fit-content",
300
+ width: "fit-content"
61
301
  }),
62
302
  /**
63
- * Root area container chip edit button
303
+ * Legacy inline edit-button wrapper for selected area chips.
64
304
  */
65
305
  areaContainerChipEditButton: ({ theme: e }) => ({
66
306
  display: "flex",
67
307
  flexDirection: "row",
68
308
  "& .M4LIcon-icon": {
69
- backgroundColor: `${e.vars.palette.primary.contrastText}!important`
309
+ backgroundColor: `${e.vars.palette.primary.contrastText} !important`
70
310
  }
71
311
  }),
72
312
  /**
73
- * Chip areas Styles
313
+ * Legacy desktop area chip styles.
74
314
  */
75
315
  chipAreas: ({ theme: e, ownerState: i }) => ({
76
316
  borderRadius: e.vars.size.borderRadius.r1,
77
- ...a(
78
- e,
79
- i?.size || "small",
80
- "action"
81
- ),
317
+ ...r(e, i?.size || "small", "action"),
82
318
  "&:hover > .M4LAreasAdmin-menuActionsChip": {
83
319
  opacity: 1,
84
320
  pointerEvents: "auto"
85
321
  },
86
322
  "& .M4LIcon-icon": {
87
- backgroundColor: i?.isAreaSelected ? `${e.vars.palette.primary.contrastText}!important` : `${e.vars.palette.text.secondary}!important`
323
+ backgroundColor: i?.isAreaSelected ? `${e.vars.palette.primary.contrastText} !important` : `${e.vars.palette.text.secondary} !important`
88
324
  }
89
325
  }),
90
326
  /**
91
- * Icon button add area Styles
327
+ * Legacy add-area trigger slot retained for compatibility.
92
328
  */
93
- iconButtonAddArea: ({ theme: e, ownerState: i }) => ({
94
- borderRadius: e.vars.size.borderRadius.r1,
95
- ...a(
96
- e,
97
- i?.size || "small",
98
- "action"
99
- ),
100
- "& .M4LIcon-icon": {
101
- backgroundColor: `${e.vars.palette.text.primary}!important`
102
- }
103
- }),
329
+ iconButtonAddArea: {},
104
330
  /**
105
- * Menu actions Styles
331
+ * Legacy chip overflow menu styles retained for compatibility.
106
332
  */
107
333
  menuActionsChip: () => ({
108
334
  opacity: 0,
109
335
  pointerEvents: "none"
110
336
  }),
111
337
  /**
112
- * Root area chip mobile Styles
338
+ * Mobile area-chip row layout.
113
339
  */
114
340
  areaChipMobileRoot: ({ theme: e }) => ({
341
+ alignItems: "center",
115
342
  display: "flex",
116
343
  flexDirection: "row",
117
- alignItems: "center",
118
344
  gap: e.vars.size.baseSpacings.sp1
119
345
  }),
120
346
  /**
121
- * Root chip mobile Styles
347
+ * Mobile chip container layout.
122
348
  */
123
349
  chipMobileRoot: ({ theme: e }) => ({
350
+ alignItems: "center",
124
351
  display: "flex",
125
352
  flexDirection: "row",
126
- alignItems: "center",
127
353
  gap: e.vars.size.baseSpacings.sp1
128
354
  }),
129
355
  /**
130
- * Root chip mobile content Styles
356
+ * Mobile chip content alignment and shape.
131
357
  */
132
358
  chipMobileContent: ({ theme: e }) => ({
133
- display: "flex",
134
- flexDirection: "row",
135
359
  alignItems: "center",
136
- borderRadius: e.vars.size.borderRadius.r1
360
+ borderRadius: e.vars.size.borderRadius.r1,
361
+ display: "flex",
362
+ flexDirection: "row"
137
363
  }),
138
- /**
139
- * Name area chip mobile Styles
140
- */
141
364
  nameChipMobile: ({ theme: e }) => ({
142
365
  padding: e.vars.size.baseSpacings.sp1
143
366
  }),
144
367
  /**
145
- * Root add areas mobile container
368
+ * Mobile add-area column wrapper.
146
369
  */
147
370
  addAreasMobileContainer: () => ({
148
371
  display: "flex",
149
372
  flexDirection: "column"
150
373
  }),
151
374
  /**
152
- * Root menu actions area chip mobile
375
+ * Mobile chip action menu layout.
153
376
  */
154
377
  menuActionsAreaChipMobile: ({ theme: e }) => ({
155
- display: "flex",
156
- flexDirection: "column",
157
- alignItems: "center",
158
378
  alignContent: "center",
379
+ alignItems: "center",
159
380
  borderRadius: e.vars.size.borderRadius.r1,
381
+ display: "flex",
382
+ flexDirection: "column",
160
383
  gap: e.vars.size.baseSpacings.sp1
161
384
  }),
385
+ /**
386
+ * Neutral full-width "add area" action rendered in the areas menu footer.
387
+ */
162
388
  buttonAddArea: ({ theme: e }) => ({
163
- color: e.vars.palette.primary.semanticText
389
+ "&&": {
390
+ backgroundColor: e.vars.palette.background.neutral,
391
+ borderRadius: e.vars.size.borderRadius.r2,
392
+ color: e.vars.palette.text.primary,
393
+ gap: e.vars.size.baseSpacings.sp2,
394
+ justifyContent: "center",
395
+ width: "100%",
396
+ "&:hover": {
397
+ backgroundColor: e.vars.palette.background.hover
398
+ },
399
+ "& .M4LIcon-icon": {
400
+ backgroundColor: `${e.vars.palette.text.primary} !important`
401
+ }
402
+ }
164
403
  }),
165
404
  /**
166
- * Root edit area chip container
405
+ * Inline edit-area form container styles.
167
406
  */
168
407
  editAreaChipContainer: ({ theme: e }) => ({
169
408
  borderRadius: e.vars.size.borderRadius.r1,
@@ -171,26 +410,26 @@ const s = {
171
410
  flexDirection: "column"
172
411
  }),
173
412
  /**
174
- * Root edit area header
413
+ * Inline edit-area popover header spacing.
175
414
  */
176
415
  editAreaHeader: ({ theme: e }) => ({
416
+ alignSelf: "stretch",
177
417
  display: "flex",
178
- padding: e.vars.size.baseSpacings.sp0,
179
418
  flexDirection: "column",
180
- justifyContent: "center",
181
419
  gap: e.vars.size.baseSpacings["sp0-5"],
182
- alignSelf: "stretch"
420
+ justifyContent: "center",
421
+ paddingBottom: e.vars.size.baseSpacings.sp2
183
422
  }),
184
423
  /**
185
- * Root edit area chip mobile container
424
+ * Mobile inline edit-area container styles.
186
425
  */
187
- editAreaChipMobileContainer: ({ theme: e }) => ({
188
- borderRadius: e.vars.size.borderRadius.r1,
426
+ editAreaChipMobileContainer: () => ({
427
+ borderRadius: "inherit",
189
428
  display: "flex",
190
429
  flexDirection: "column",
191
430
  width: "100%"
192
431
  })
193
432
  };
194
433
  export {
195
- s as areasAdminStyles
434
+ b as areasAdminStyles
196
435
  };
@@ -1,2 +1,10 @@
1
1
  export declare const AREAS_ADMIN_KEY_COMPONENT = "M4LAreasAdmin";
2
+ export declare const DEFAULT_VERTICAL_MODULE_ITEM_LIMIT = 3;
3
+ export declare const DEFAULT_HORIZONTAL_MODULE_ITEM_LIMIT = 3;
4
+ export declare const AREAS_MENU_MAX_VISIBLE_ITEMS = 5;
5
+ export declare const AREAS_ADMIN_TOOLTIP_ENTER_DELAY_MS = 3000;
6
+ export declare const AREAS_ADMIN_TOOLTIP_DELAY_PROPS: {
7
+ readonly enterDelay: 3000;
8
+ readonly enterNextDelay: 3000;
9
+ };
2
10
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,kBAAkB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,kCAAkC,IAAI,CAAC;AACpD,eAAO,MAAM,oCAAoC,IAAI,CAAC;AACtD,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,kCAAkC,OAAQ,CAAC;AACxD,eAAO,MAAM,+BAA+B;;;CAGlC,CAAC"}
@@ -1,4 +1,12 @@
1
- const A = "M4LAreasAdmin";
1
+ const _ = "M4LAreasAdmin", A = 3, E = 3, T = 5, I = 3e3, M = {
2
+ enterDelay: 3e3,
3
+ enterNextDelay: 3e3
4
+ };
2
5
  export {
3
- A as AREAS_ADMIN_KEY_COMPONENT
6
+ _ as AREAS_ADMIN_KEY_COMPONENT,
7
+ M as AREAS_ADMIN_TOOLTIP_DELAY_PROPS,
8
+ I as AREAS_ADMIN_TOOLTIP_ENTER_DELAY_MS,
9
+ T as AREAS_MENU_MAX_VISIBLE_ITEMS,
10
+ E as DEFAULT_HORIZONTAL_MODULE_ITEM_LIMIT,
11
+ A as DEFAULT_VERTICAL_MODULE_ITEM_LIMIT
4
12
  };
@@ -1,10 +1,29 @@
1
1
  export declare enum AreasAdminSlots {
2
2
  root = "root",
3
3
  areasAdminContent = "areasAdminContent",
4
+ areasTrigger = "areasTrigger",
5
+ areasTriggerButton = "areasTriggerButton",
6
+ sectionDivider = "sectionDivider",
7
+ areasMenuContent = "areasMenuContent",
8
+ areasMenuScrollArea = "areasMenuScrollArea",
9
+ areasMenuList = "areasMenuList",
10
+ areasMenuFooter = "areasMenuFooter",
11
+ areaMenuItemActions = "areaMenuItemActions",
12
+ areaMenuActionButton = "areaMenuActionButton",
4
13
  areaContainerChipIcon = "areaContainerChipIcon",
5
14
  areaContainerContentChips = "areaContainerContentChips",
6
15
  areaContentChip = "areaContentChip",
7
16
  containerAdminWindows = "containerAdminWindows",
17
+ containerModulesRoot = "containerModulesRoot",
18
+ containerModulesItems = "containerModulesItems",
19
+ containerModulesOverflow = "containerModulesOverflow",
20
+ containerModulesOverflowButton = "containerModulesOverflowButton",
21
+ containerModulesMenuContent = "containerModulesMenuContent",
22
+ containerModulesMenuHeader = "containerModulesMenuHeader",
23
+ containerModulesMenuHeaderTitle = "containerModulesMenuHeaderTitle",
24
+ containerModulesMenuHeaderCount = "containerModulesMenuHeaderCount",
25
+ containerModulesMenuEndAdornment = "containerModulesMenuEndAdornment",
26
+ moduleIconButton = "moduleIconButton",
8
27
  areaChipRoot = "areaChipRoot",
9
28
  areaContainerChipEditButton = "areaContainerChipEditButton",
10
29
  menuActionsChip = "menuActionsChip",
@@ -1 +1 @@
1
- {"version":3,"file":"AreasAdminEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/slots/AreasAdminEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAEzB,IAAI,SAAS;IACb,iBAAiB,sBAAsB;IACvC,qBAAqB,0BAA0B;IAC/C,yBAAyB,8BAA8B;IACvD,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;IAE/C,YAAY,iBAAiB;IAC7B,2BAA2B,gCAAgC;IAC3D,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;IAC/C,cAAc,mBAAmB;IAEjC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,yBAAyB,8BAA8B;IACvD,aAAa,kBAAkB;IAE/B,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;IACvC,2BAA2B,gCAAgC;IAC3D,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;CACxC"}
1
+ {"version":3,"file":"AreasAdminEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/slots/AreasAdminEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAEzB,IAAI,SAAS;IACb,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,mBAAmB,wBAAwB;IAC3C,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;IAC3C,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAC/C,yBAAyB,8BAA8B;IACvD,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;IAC/C,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAC/C,wBAAwB,6BAA6B;IACrD,8BAA8B,mCAAmC;IACjE,2BAA2B,gCAAgC;IAC3D,0BAA0B,+BAA+B;IACzD,+BAA+B,oCAAoC;IACnE,+BAA+B,oCAAoC;IACnE,gCAAgC,qCAAqC;IACrE,gBAAgB,qBAAqB;IAErC,YAAY,iBAAiB;IAC7B,2BAA2B,gCAAgC;IAC3D,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;IAC/C,cAAc,mBAAmB;IAEjC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,yBAAyB,8BAA8B;IACvD,aAAa,kBAAkB;IAE/B,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;IACvC,2BAA2B,gCAAgC;IAC3D,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;CACxC"}
@@ -1,4 +1,4 @@
1
- var i = /* @__PURE__ */ ((e) => (e.root = "root", e.areasAdminContent = "areasAdminContent", e.areaContainerChipIcon = "areaContainerChipIcon", e.areaContainerContentChips = "areaContainerContentChips", e.areaContentChip = "areaContentChip", e.containerAdminWindows = "containerAdminWindows", e.areaChipRoot = "areaChipRoot", e.areaContainerChipEditButton = "areaContainerChipEditButton", e.menuActionsChip = "menuActionsChip", e.editAreaChipContainer = "editAreaChipContainer", e.editAreaHeader = "editAreaHeader", e.areaChipMobileRoot = "areaChipMobileRoot", e.addAreasMobileContainer = "addAreasMobileContainer", e.menuActionsAreaChipMobile = "menuActionsAreaChipMobile", e.buttonAddArea = "buttonAddArea", e.chipMobileRoot = "chipMobileRoot", e.chipMobileContent = "chipMobileContent", e.editAreaChipMobileContainer = "editAreaChipMobileContainer", e.nameChipMobile = "nameChipMobile", e.chipAreas = "chipAreas", e.iconButtonAddArea = "iconButtonAddArea", e))(i || {});
1
+ var n = /* @__PURE__ */ ((e) => (e.root = "root", e.areasAdminContent = "areasAdminContent", e.areasTrigger = "areasTrigger", e.areasTriggerButton = "areasTriggerButton", e.sectionDivider = "sectionDivider", e.areasMenuContent = "areasMenuContent", e.areasMenuScrollArea = "areasMenuScrollArea", e.areasMenuList = "areasMenuList", e.areasMenuFooter = "areasMenuFooter", e.areaMenuItemActions = "areaMenuItemActions", e.areaMenuActionButton = "areaMenuActionButton", e.areaContainerChipIcon = "areaContainerChipIcon", e.areaContainerContentChips = "areaContainerContentChips", e.areaContentChip = "areaContentChip", e.containerAdminWindows = "containerAdminWindows", e.containerModulesRoot = "containerModulesRoot", e.containerModulesItems = "containerModulesItems", e.containerModulesOverflow = "containerModulesOverflow", e.containerModulesOverflowButton = "containerModulesOverflowButton", e.containerModulesMenuContent = "containerModulesMenuContent", e.containerModulesMenuHeader = "containerModulesMenuHeader", e.containerModulesMenuHeaderTitle = "containerModulesMenuHeaderTitle", e.containerModulesMenuHeaderCount = "containerModulesMenuHeaderCount", e.containerModulesMenuEndAdornment = "containerModulesMenuEndAdornment", e.moduleIconButton = "moduleIconButton", e.areaChipRoot = "areaChipRoot", e.areaContainerChipEditButton = "areaContainerChipEditButton", e.menuActionsChip = "menuActionsChip", e.editAreaChipContainer = "editAreaChipContainer", e.editAreaHeader = "editAreaHeader", e.areaChipMobileRoot = "areaChipMobileRoot", e.addAreasMobileContainer = "addAreasMobileContainer", e.menuActionsAreaChipMobile = "menuActionsAreaChipMobile", e.buttonAddArea = "buttonAddArea", e.chipMobileRoot = "chipMobileRoot", e.chipMobileContent = "chipMobileContent", e.editAreaChipMobileContainer = "editAreaChipMobileContainer", e.nameChipMobile = "nameChipMobile", e.chipAreas = "chipAreas", e.iconButtonAddArea = "iconButtonAddArea", e))(n || {});
2
2
  export {
3
- i as AreasAdminSlots
3
+ n as AreasAdminSlots
4
4
  };