@m4l/components 0.1.76 → 0.1.77

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 (112) hide show
  1. package/@types/export.d.ts +19 -0
  2. package/components/AccountPopover/{index.47cf6c43.js → index.3a79c395.js} +7 -6
  3. package/components/AppBar/{index.f04f5e45.js → index.71b38ee9.js} +7 -6
  4. package/components/CommonActions/components/ActionCancel/{index.453c2d24.js → index.b748a38e.js} +2 -2
  5. package/components/CommonActions/components/ActionFormCancel/{index.c2a2fd55.js → index.27ad09e1.js} +18 -18
  6. package/components/CommonActions/components/ActionFormIntro/{index.25d33912.js → index.2556f054.js} +2 -2
  7. package/components/CommonActions/components/ActionIntro/{index.c653a266.js → index.a7d92e66.js} +2 -2
  8. package/components/CommonActions/components/Actions/{index.e376a68e.js → index.3eba9d91.js} +16 -17
  9. package/components/DataGrid/{index.ffaf000e.js → index.545b492f.js} +42 -30
  10. package/components/DataGrid/types.d.ts +5 -1
  11. package/components/DraggableWindow/{index.b08af1dc.js → index.c702d3f2.js} +1 -1
  12. package/components/DynamicFilter/{index.d7c03a61.js → index.d7be0f37.js} +40 -33
  13. package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +2 -1
  14. package/components/DynamicFilter/subcomponents/InnerForHooks/types.d.ts +2 -0
  15. package/components/DynamicFilter/tests/contants.d.ts +1 -1
  16. package/components/DynamicFilter/types.d.ts +4 -0
  17. package/components/GridLayout/GridLayout.d.ts +6 -0
  18. package/components/GridLayout/Responsive/index.a12a8cec.js +335 -0
  19. package/components/GridLayout/WidthProvider/index.8ff65909.js +67 -0
  20. package/components/GridLayout/calculateUtils.d.ts +42 -0
  21. package/components/GridLayout/index.4ba3767a.js +1400 -0
  22. package/components/GridLayout/index.d.ts +6 -0
  23. package/components/GridLayout/subcomponents/GridItem/index.d.ts +25 -0
  24. package/components/GridLayout/subcomponents/GridItem/types.d.ts +76 -0
  25. package/components/GridLayout/subcomponents/Responsive/index.d.ts +3 -0
  26. package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +61 -0
  27. package/components/GridLayout/subcomponents/Responsive/types.d.ts +71 -0
  28. package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +16 -0
  29. package/components/GridLayout/types.d.ts +355 -0
  30. package/components/GridLayout/utils.d.ts +123 -0
  31. package/components/HelperText/{index.9864f773.js → index.ef31df1f.js} +7 -6
  32. package/components/Icon/{index.9dae8337.js → index.ecb63e65.js} +1 -1
  33. package/components/LanguagePopover/{index.938c6675.js → index.0023d069.js} +7 -6
  34. package/components/LinearProgressIndeterminate/{index.d34d398f.js → index.60dabc06.js} +1 -1
  35. package/components/ModalDialog/{index.d9c5d400.js → index.d880e685.js} +8 -56
  36. package/components/NavLink/{index.21c8fd90.js → index.cd92eceb.js} +7 -6
  37. package/components/ObjectLogs/{index.a2709fc2.js → index.f174c542.js} +19 -19
  38. package/components/PaperForm/{index.5e1bc99f.js → index.1bd86ee5.js} +1 -1
  39. package/components/Period/{index.526791a3.js → index.711db043.js} +21 -22
  40. package/components/Resizeable/{index.f6e48e56.js → index.9a9c79a4.js} +1 -1
  41. package/components/SideBar/{index.9e1a5b96.js → index.c5ce0bad.js} +5 -5
  42. package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
  43. package/components/areas/components/AreasAdmin/classes/types.d.ts +2 -0
  44. package/components/areas/components/AreasAdmin/{index.946eebb9.js → index.cc4cbf56.js} +120 -46
  45. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +0 -1
  46. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +3 -0
  47. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/types.d.ts +3 -0
  48. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  49. package/components/areas/components/AreasViewer/classes/types.d.ts +2 -0
  50. package/components/areas/components/AreasViewer/{index.bf4191ea.js → index.9c2aaaeb.js} +258 -259
  51. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/index.d.ts +1 -1
  52. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
  53. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -7
  54. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +3 -0
  55. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +2 -0
  56. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/types.d.ts +6 -0
  57. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +1 -1
  58. package/components/areas/components/{index.2bb534cb.js → index.0f7ac464.js} +11 -10
  59. package/components/areas/contexts/AreasContext/helper.d.ts +6 -16
  60. package/components/areas/contexts/AreasContext/{index.f0397b7c.js → index.c8147e8e.js} +244 -339
  61. package/components/areas/contexts/AreasContext/types.d.ts +23 -20
  62. package/components/areas/contexts/{index.1809650a.js → index.02336412.js} +1 -1
  63. package/components/areas/{dictionary.3fabae50.js → dictionary.afb7e3d9.js} +5 -2
  64. package/components/areas/dictionary.d.ts +4 -1
  65. package/components/areas/hooks/useAreas/{index.40917e99.js → index.3406a6cb.js} +1 -1
  66. package/components/areas/{icons.19cde4b4.js → icons.8266ccc8.js} +5 -1
  67. package/components/areas/icons.d.ts +4 -0
  68. package/components/areas/{index.9bd48013.js → index.6f2e5dab.js} +11 -10
  69. package/components/areas/types.d.ts +30 -22
  70. package/components/formatters/BooleanFormatter/{index.431dc923.js → index.5268b024.js} +1 -1
  71. package/components/formatters/{index.e1af75e6.js → index.137169d8.js} +2 -2
  72. package/components/hook-form/RHFAutocomplete/{index.a063dc44.js → index.ac2b1fae.js} +8 -7
  73. package/components/hook-form/RHFAutocompleteAsync/{index.ddfd9cc9.js → index.8b4ccc8d.js} +1 -1
  74. package/components/hook-form/RHFCheckbox/{index.7e7f220b.js → index.acef119c.js} +1 -1
  75. package/components/hook-form/RHFDateTime/{index.d330709b.js → index.5b080342.js} +9 -8
  76. package/components/hook-form/RHFPeriod/{index.e2b1293b.js → index.5304e3bd.js} +2 -2
  77. package/components/hook-form/RHFTextField/{index.e5336d09.js → index.e751dca7.js} +5 -5
  78. package/components/hook-form/RHFUpload/{index.17e7f9eb.js → index.25db0511.js} +8 -7
  79. package/components/index.d.ts +1 -0
  80. package/components/modal/{WindowBase.7acb9f1d.js → WindowBase.850ea31a.js} +9 -8
  81. package/components/modal/{WindowConfirm.9b829837.js → WindowConfirm.cb37bc58.js} +18 -18
  82. package/components/modal/classes/index.d.ts +1 -0
  83. package/components/modal/classes/types.d.ts +1 -0
  84. package/components/modal/{index.1b25b61d.js → index.a0978193.js} +18 -16
  85. package/components/mui_extended/Accordion/{index.3faafd8b.js → index.12b1339a.js} +2 -2
  86. package/components/mui_extended/Badge/Badge.d.ts +3 -0
  87. package/components/mui_extended/Badge/classes/constants.d.ts +1 -0
  88. package/components/mui_extended/Badge/classes/index.d.ts +6 -0
  89. package/components/mui_extended/Badge/classes/types.d.ts +6 -0
  90. package/components/mui_extended/Badge/index.8c2b8b66.js +36 -0
  91. package/components/mui_extended/Badge/index.d.ts +2 -0
  92. package/components/mui_extended/Badge/tests/constants.d.ts +1 -0
  93. package/components/mui_extended/Badge/tests/utils.d.ts +2 -0
  94. package/components/mui_extended/Badge/types.d.ts +4 -0
  95. package/components/mui_extended/Button/{index.fdb5dcbd.js → index.4288f9fc.js} +8 -3
  96. package/components/mui_extended/IconButton/{index.1a9d4fa5.js → index.fc5b7c2d.js} +1 -1
  97. package/components/mui_extended/MenuActions/{index.ba1da3b3.js → index.f5b1c022.js} +28 -9
  98. package/components/mui_extended/MenuActions/types.d.ts +8 -0
  99. package/components/mui_extended/Pager/{index.67bda2c5.js → index.435af0df.js} +1 -1
  100. package/components/mui_extended/{index.73e536de.js → index.83979b6a.js} +7 -6
  101. package/components/mui_extended/index.d.ts +1 -0
  102. package/contexts/ModalContext/{index.699f95fa.js → index.dee85a61.js} +1 -1
  103. package/hooks/useModal/{index.7b7d26ba.js → index.de522a10.js} +1 -1
  104. package/index.js +94 -83
  105. package/node_modules.d73a220d.js +363 -0
  106. package/package.json +4 -3
  107. package/{react-draggable.6d7949a3.js → react-draggable.7abb5d0a.js} +3 -2
  108. package/{react-resizable.b6f8e04a.js → react-resizable.ba08699a.js} +13 -12
  109. package/utils/{index.008b4c2a.js → index.c43a95f4.js} +0 -15
  110. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +0 -4
  111. package/components/modal/ModalDialog/types.d.ts +0 -7
  112. /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/types.d.ts +0 -0
@@ -1,63 +1,63 @@
1
- import { I as IconButton } from "../../../mui_extended/IconButton/index.1a9d4fa5.js";
2
- import { u as useAreasStore } from "../../hooks/useAreas/index.40917e99.js";
1
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.fc5b7c2d.js";
2
+ import { u as useAreasStore } from "../../hooks/useAreas/index.3406a6cb.js";
3
3
  import { useEnvironment, useModuleDictionary } from "@m4l/core";
4
4
  import { useState, useRef, useMemo } from "react";
5
5
  import * as Yup from "yup";
6
6
  import { generateUtilityClasses, useTheme } from "@mui/material";
7
- import "../../../mui_extended/Accordion/index.3faafd8b.js";
8
- import { I as Icon } from "../../../Icon/index.9dae8337.js";
7
+ import "../../../mui_extended/Accordion/index.12b1339a.js";
8
+ import { I as Icon } from "../../../Icon/index.ecb63e65.js";
9
9
  import clsx from "clsx";
10
10
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
11
11
  import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
12
12
  import "../../../mui_extended/Avatar/index.75e6ed57.js";
13
13
  import "react-router-dom";
14
14
  import "@mui/material/Button";
15
- import "../../../mui_extended/Button/index.fdb5dcbd.js";
15
+ import { B as Button } from "../../../mui_extended/Button/index.4288f9fc.js";
16
+ import "../../../mui_extended/Badge/index.8c2b8b66.js";
16
17
  import "../../../Image/index.c18ebf5a.js";
17
18
  import "@mui/lab";
18
19
  import { P as Popover } from "../../../mui_extended/Popover/index.9f35d0eb.js";
19
- import { M as MenuActions } from "../../../mui_extended/MenuActions/index.ba1da3b3.js";
20
- import "../../../mui_extended/Pager/index.67bda2c5.js";
20
+ import { M as MenuActions } from "../../../mui_extended/MenuActions/index.f5b1c022.js";
21
+ import "../../../mui_extended/Pager/index.435af0df.js";
21
22
  import "../../../mui_extended/Tab/index.9e2f6e34.js";
22
23
  import "../../../mui_extended/Tooltip/index.5a795dcd.js";
23
24
  import { unstable_composeClasses } from "@mui/base";
24
- import { g as getComponentUtilityClass } from "../../../../utils/index.008b4c2a.js";
25
+ import { g as getComponentUtilityClass } from "../../../../utils/index.c43a95f4.js";
25
26
  import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
26
- import { I as ICONS } from "../../icons.19cde4b4.js";
27
+ import { I as ICONS } from "../../icons.8266ccc8.js";
27
28
  import "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
28
- import "../../../../contexts/ModalContext/index.699f95fa.js";
29
+ import "../../../../contexts/ModalContext/index.dee85a61.js";
29
30
  import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.fe175bab.js";
30
31
  import "react-hook-form";
31
- import "../../../hook-form/RHFAutocomplete/index.a063dc44.js";
32
- import "../../../HelperText/index.9864f773.js";
32
+ import "../../../hook-form/RHFAutocomplete/index.ac2b1fae.js";
33
+ import "../../../HelperText/index.ef31df1f.js";
33
34
  import "lodash/debounce";
34
- import "../../../hook-form/RHFAutocompleteAsync/index.ddfd9cc9.js";
35
- import "../../../hook-form/RHFCheckbox/index.7e7f220b.js";
35
+ import "../../../hook-form/RHFAutocompleteAsync/index.8b4ccc8d.js";
36
+ import "../../../hook-form/RHFCheckbox/index.acef119c.js";
36
37
  import "@mui/x-date-pickers";
37
- import "../../../hook-form/RHFDateTime/index.d330709b.js";
38
+ import "../../../hook-form/RHFDateTime/index.5b080342.js";
38
39
  import { useResponsiveDesktop } from "@m4l/graphics";
39
- import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.e5336d09.js";
40
- import "../../../hook-form/RHFPeriod/index.e2b1293b.js";
41
- import "../../../Period/index.526791a3.js";
42
- import { A as Actions } from "../../../CommonActions/components/Actions/index.e376a68e.js";
43
- import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.453c2d24.js";
44
- import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.c653a266.js";
45
- import "../../../../react-draggable.6d7949a3.js";
46
- import "../../../ModalDialog/index.d9c5d400.js";
47
- import "../../../Resizeable/index.f6e48e56.js";
48
- import "../../../modal/index.1b25b61d.js";
40
+ import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.e751dca7.js";
41
+ import "../../../hook-form/RHFPeriod/index.5304e3bd.js";
42
+ import "../../../Period/index.711db043.js";
43
+ import { A as Actions } from "../../../CommonActions/components/Actions/index.3eba9d91.js";
44
+ import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.b748a38e.js";
45
+ import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.a7d92e66.js";
46
+ import "../../../../react-draggable.7abb5d0a.js";
47
+ import "../../../Resizeable/index.9a9c79a4.js";
48
+ import "../../../modal/index.a0978193.js";
49
49
  import { shallow } from "zustand/shallow";
50
50
  import { styled } from "@mui/material/styles";
51
51
  import { S as ScrollBar } from "../../../ScrollBar/index.bbe48f4d.js";
52
- import "../AreasViewer/index.bf4191ea.js";
53
- import "../../../LinearProgressIndeterminate/index.d34d398f.js";
54
- import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.3fabae50.js";
55
- import "../../contexts/AreasContext/index.f0397b7c.js";
52
+ import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.afb7e3d9.js";
53
+ import "../AreasViewer/index.9c2aaaeb.js";
54
+ import "../../../LinearProgressIndeterminate/index.60dabc06.js";
55
+ import "../../contexts/AreasContext/index.c8147e8e.js";
56
56
  import "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
57
57
  import "zustand";
58
58
  import "lodash/isString";
59
59
  import "react-dropzone";
60
- import "../../../hook-form/RHFUpload/index.17e7f9eb.js";
60
+ import "../../../hook-form/RHFUpload/index.25db0511.js";
61
61
  const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
62
62
  "root",
63
63
  "areaChipRoot",
@@ -71,6 +71,8 @@ const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
71
71
  "areaChipMobileIconContainer",
72
72
  "areaIconLayer",
73
73
  "areaChipEditButton",
74
+ "areasPopoverMobileOptions",
75
+ "areasPopoverListWindows",
74
76
  "selected",
75
77
  "isMobile",
76
78
  "disabled"
@@ -88,7 +90,9 @@ const useAreasAdminUtilityClasses = (ownerState) => {
88
90
  areaContainerChipEditButton: ["areaContainerChipEditButton"],
89
91
  areaChipDeleteButton: ["areaChipDeleteButton"],
90
92
  areaChipEditButton: ["areaChipEditButton"],
91
- areasAddButton: ["areasAddButton"]
93
+ areasAddButton: ["areasAddButton"],
94
+ areasPopoverMobileOptions: ["areasPopoverMobileOptions"],
95
+ areasPopoverListWindows: ["areasPopoverListWindows"]
92
96
  };
93
97
  return unstable_composeClasses(slots, getComponentUtilityClass(AREAS_ADMIN_CLASS_NAME), {});
94
98
  };
@@ -164,7 +168,6 @@ const AreaChip = (props) => {
164
168
  const {
165
169
  areaId,
166
170
  selected,
167
- areaName,
168
171
  disabled
169
172
  } = props;
170
173
  const {
@@ -176,6 +179,7 @@ const AreaChip = (props) => {
176
179
  selectArea,
177
180
  editArea
178
181
  } = useAreasStore((state) => state.areasActions);
182
+ const areaName = useAreasStore((state) => state.hashAreas[areaId].name, shallow);
179
183
  const [open, setOpen] = useState(false);
180
184
  const {
181
185
  getLabel
@@ -199,7 +203,7 @@ const AreaChip = (props) => {
199
203
  inputEditArea: areaName
200
204
  };
201
205
  const validationSchema = useMemo(() => Yup.object().shape({
202
- inputEditArea: Yup.string().required(getLabel(getAreasDictionary("validation_edit_area")))
206
+ inputEditArea: Yup.string().required(getLabel(getAreasDictionary(DICCTIONARY.validation_edit_area)))
203
207
  }), [getLabel]);
204
208
  return /* @__PURE__ */ jsxs("div", {
205
209
  role: "presentation",
@@ -251,7 +255,7 @@ const AreaChip = (props) => {
251
255
  validationSchema,
252
256
  children: [/* @__PURE__ */ jsxs(EditAreaHeader, {
253
257
  children: [/* @__PURE__ */ jsx(Typography, {
254
- children: getLabel(getAreasDictionary(DICCTIONARY.label_edit_area))
258
+ children: getLabel(DICCTIONARY.label_edit_area)
255
259
  }), /* @__PURE__ */ jsx(IconButton, {
256
260
  src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`,
257
261
  size: "small",
@@ -292,12 +296,70 @@ const AreasAdminRoot = styled("div")`
292
296
 
293
297
 
294
298
  `;
299
+ const PanelWindowPopUp = (props) => {
300
+ const {
301
+ currentAreaId
302
+ } = props;
303
+ const {
304
+ host_static_assets,
305
+ environment_assets
306
+ } = useEnvironment();
307
+ const windowsLayouts = useAreasStore((state) => state.hashAreas[currentAreaId].hashLayoutItems.filter((li) => state.hashWindows[li].emergeType === "layout").map((lim) => {
308
+ const w = state.hashWindows[lim];
309
+ return {
310
+ i: w.windowId,
311
+ url_icon: w.url_icon,
312
+ title: w.title
313
+ };
314
+ }), shallow);
315
+ const theme = useTheme();
316
+ const {
317
+ maximizeLayout
318
+ } = useAreasStore((state) => state.areaActions);
319
+ const onTouched = (layoutId) => {
320
+ maximizeLayout(currentAreaId, layoutId);
321
+ };
322
+ const menuActions = windowsLayouts.map((element) => {
323
+ return {
324
+ onClick: () => onTouched(element.i),
325
+ label: element.title,
326
+ urlIcon: element.url_icon
327
+ };
328
+ });
329
+ return /* @__PURE__ */ jsx(MenuActions, {
330
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MODULE}`,
331
+ arrowType: "no-arrow",
332
+ marginTop: "12px!important",
333
+ marginLeft: "14px!important",
334
+ anchorOrigin: {
335
+ vertical: "bottom",
336
+ horizontal: "right"
337
+ },
338
+ transformOrigin: {
339
+ vertical: "top",
340
+ horizontal: "right"
341
+ },
342
+ menuActions,
343
+ className: areasAdminClasses.areasPopoverListWindows,
344
+ menuActionSx: theme.components?.M4LAreasAdminMobilePopoverOptions?.styleOverrides
345
+ });
346
+ };
295
347
  const AreaChipMobile = () => {
296
- const areas = useAreasStore((state) => state.areas, shallow);
348
+ const areas = useAreasStore((state) => state.areas.map((a) => ({
349
+ id: a,
350
+ name: state.hashAreas[a].name
351
+ })), shallow);
297
352
  const {
298
353
  selectArea
299
354
  } = useAreasStore((state) => state.areasActions);
300
355
  const currentAreaId = useAreasStore((state) => state.currentAreaId, shallow);
356
+ const {
357
+ addArea
358
+ } = useAreasStore((state) => state.areasActions, shallow);
359
+ const {
360
+ getLabel
361
+ } = useModuleDictionary();
362
+ const theme = useTheme();
301
363
  const currentArea = areas.find((area) => area.id === currentAreaId);
302
364
  const {
303
365
  host_static_assets,
@@ -316,11 +378,12 @@ const AreaChipMobile = () => {
316
378
  children: [currentArea ? /* @__PURE__ */ jsx(AreaChip, {
317
379
  areaId: currentArea.id,
318
380
  selected: true,
319
- areaName: currentArea.name,
320
381
  disabled: true
321
- }, currentArea.id) : null, menuActions.length > 0 ? /* @__PURE__ */ jsx("div", {
382
+ }, currentArea.id) : null, menuActions.length > 0 ? /* @__PURE__ */ jsxs("div", {
322
383
  className: areasAdminClasses.areaChipMobileIconContainer,
323
- children: /* @__PURE__ */ jsx(MenuActions, {
384
+ children: [currentArea ? /* @__PURE__ */ jsx(PanelWindowPopUp, {
385
+ currentAreaId: currentArea.id
386
+ }) : null, /* @__PURE__ */ jsx(MenuActions, {
324
387
  urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CHEVRON_DOWN}`,
325
388
  arrowType: "no-arrow",
326
389
  marginTop: "12px!important",
@@ -333,8 +396,18 @@ const AreaChipMobile = () => {
333
396
  vertical: "top",
334
397
  horizontal: "right"
335
398
  },
336
- menuActions
337
- })
399
+ menuActions,
400
+ className: areasAdminClasses.areasPopoverMobileOptions,
401
+ menuActionSx: theme.components?.M4LAreasAdminMobilePopoverOptions?.styleOverrides,
402
+ endListElement: /* @__PURE__ */ jsx(Button, {
403
+ onClick: addArea,
404
+ variant: "outlined",
405
+ startIcon: /* @__PURE__ */ jsx(Icon, {
406
+ src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`
407
+ }),
408
+ children: getLabel(getAreasDictionary(DICCTIONARY.area_add_new))
409
+ })
410
+ })]
338
411
  }) : null]
339
412
  });
340
413
  };
@@ -342,6 +415,7 @@ function AreasAdmin() {
342
415
  const areas = useAreasStore((state) => state.areas, shallow);
343
416
  const currentArea = useAreasStore((state) => state.currentAreaId, shallow);
344
417
  const status = useAreasStore((state) => state.ownerState.status);
418
+ const testStore = useAreasStore((state) => state);
345
419
  const classesRoot = useAreasStore((state) => state.adminClasses.root);
346
420
  const areasLength = useAreasStore((state) => state.areas.length);
347
421
  const isDesktop = useResponsiveDesktop();
@@ -352,6 +426,7 @@ function AreasAdmin() {
352
426
  host_static_assets,
353
427
  environment_assets
354
428
  } = useEnvironment();
429
+ console.log("test areas estore bruce", testStore);
355
430
  console.log("Render AreasAdmin", areas);
356
431
  if (status !== "loaded") {
357
432
  return null;
@@ -368,19 +443,18 @@ function AreasAdmin() {
368
443
  children: isDesktop ? /* @__PURE__ */ jsx(ScrollBar, {
369
444
  children: /* @__PURE__ */ jsx(Fragment, {
370
445
  children: areas.map((area) => /* @__PURE__ */ jsx(AreaChip, {
371
- areaId: area.id,
372
- selected: area.id === currentArea,
373
- areaName: area.name,
446
+ areaId: area,
447
+ selected: area === currentArea,
374
448
  disabled: areasLength === 1
375
- }, area.id))
449
+ }, area))
376
450
  })
377
451
  }) : /* @__PURE__ */ jsx(AreaChipMobile, {})
378
- }), /* @__PURE__ */ jsx(IconButton, {
452
+ }), isDesktop ? /* @__PURE__ */ jsx(IconButton, {
379
453
  className: areasAdminClasses.areasAddButton,
380
454
  src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`,
381
455
  size: "small",
382
456
  onClick: addArea
383
- })]
457
+ }) : null]
384
458
  });
385
459
  }
386
460
  export {
@@ -1,7 +1,6 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
2
  export interface AreaChipProps {
3
3
  areaId: string;
4
- areaName: string;
5
4
  selected: boolean;
6
5
  disabled: boolean;
7
6
  }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PanelWindowPopUpProps } from "./types";
3
+ export declare const PanelWindowPopUp: (props: PanelWindowPopUpProps) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export interface PanelWindowPopUpProps {
2
+ currentAreaId: string;
3
+ }
@@ -1,5 +1,5 @@
1
1
  import { AreasViewerClasses } from './types';
2
2
  import { OwnerState } from '../../../contexts/AreasContext/types';
3
3
  export declare const areasViewerClasses: AreasViewerClasses;
4
- export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "windowLinearProgressBar" | "areaRoot" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowLinearProgressRoot" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastiesContainerTostys" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
4
+ export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "windowLinearProgressBar" | "areaRoot" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "areasWindowPopUpList" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowLinearProgressRoot" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastiesContainerTostys" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
5
5
  export declare type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
@@ -12,6 +12,7 @@ export interface AreasViewerClasses {
12
12
  areaGridLayoutPanelContainer: string;
13
13
  areaGridLayout: string;
14
14
  areaGridLayoutPopupsContainer: string;
15
+ areasWindowPopUpList: string;
15
16
  windowRoot: string;
16
17
  windowHeader: string;
17
18
  windowHeaderContent: string;
@@ -35,6 +36,7 @@ export interface AreasViewerClasses {
35
36
  panelWindowsButtonContainer: string;
36
37
  selected: string;
37
38
  selectedWindow: string;
39
+ colapsed: string;
38
40
  isMobile: string;
39
41
  loading: string;
40
42
  pinIn: string;