@m4l/components 0.2.26 → 0.2.28

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 (117) hide show
  1. package/components/AccountPopover/{index.e31fc908.js → index.7b7f3962.js} +1 -1
  2. package/components/AppBar/{index.4945897e.js → index.cb2f1763.js} +2 -2
  3. package/components/CommonActions/components/ActionCancel/{index.33a748be.js → index.e03455db.js} +2 -2
  4. package/components/CommonActions/components/ActionFormCancel/{index.9a965204.js → index.9120552e.js} +4 -4
  5. package/components/CommonActions/components/ActionFormIntro/{index.7add0125.js → index.48e7d28a.js} +2 -2
  6. package/components/CommonActions/components/ActionIntro/{index.ac7cd0ee.js → index.5ba2ef5f.js} +2 -2
  7. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.f731d23f.js → index.ce8c7b9c.js} +1 -1
  8. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.ad82747c.js → index.3a1ae54f.js} +1 -1
  9. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.64854fdd.js → index.de32e830.js} +1 -1
  10. package/components/DataGrid/{index.1c695ed3.js → index.690184a8.js} +3 -3
  11. package/components/DataGrid/subcomponents/Actions/{index.4a402633.js → index.339ccf42.js} +10 -10
  12. package/components/DragResizeWindow/{index.f84451f8.js → index.be2fc1e0.js} +1 -1
  13. package/components/DynamicFilter/{index.22ba3195.js → index.ad2460cf.js} +12 -10
  14. package/components/FieldLabel/{index.1da2a28d.js → index.61d55577.js} +1 -1
  15. package/components/GridLayout/subcomponents/Responsive/{index.0fd1b7f8.js → index.d2ec9ddb.js} +1 -0
  16. package/components/HamburgerMenu/{index.1663edef.js → index.9f99b7c1.js} +2 -2
  17. package/components/Icon/{index.8c744412.js → index.1976cb37.js} +8 -48
  18. package/components/Icon/types.d.ts +0 -5
  19. package/components/Image/classes/index.d.ts +7 -0
  20. package/components/Image/{utils/classes → classes}/types.d.ts +0 -5
  21. package/components/Image/index.fd6f2c5f.js +203 -0
  22. package/components/Image/tests/utils.d.ts +1 -1
  23. package/components/Image/types.d.ts +3 -43
  24. package/components/LanguagePopover/{index.80896e49.js → index.f90fd1dc.js} +2 -3
  25. package/components/LoadingError/{index.9c64680a.js → index.2aa5daba.js} +2 -2
  26. package/components/MFLoader/{index.7cd7c372.js → index.1e56a845.js} +1 -1
  27. package/components/ModalDialog/{index.ce0f4d16.js → index.86de725b.js} +2 -2
  28. package/components/NoItemSelected/{index.ffba558b.js → index.16ff4e09.js} +1 -1
  29. package/components/ObjectLogs/{index.dd6a5009.js → index.d200ba38.js} +5 -5
  30. package/components/PDFViewer/{index.093ddd35.js → index.3bffbae3.js} +1 -1
  31. package/components/Page/{index.1b20a73e.js → index.026d463c.js} +1 -1
  32. package/components/PaperForm/{index.42e78a24.js → index.fe630839.js} +1 -1
  33. package/components/Period/{index.6e8d92dc.js → index.b6fa6ce6.js} +2 -2
  34. package/components/PrintingSystem/{index.c2d21657.js → index.02517f9c.js} +12 -12
  35. package/components/PrintingSystem/subcomponents/BodyNode/{index.c7b59f3f.js → index.0abc77a8.js} +1 -1
  36. package/components/PrintingSystem/subcomponents/ChartNode/{index.263f02f0.js → index.293e44cd.js} +1 -1
  37. package/components/PrintingSystem/subcomponents/DividerNode/{index.f00c44f3.js → index.3a2363d4.js} +1 -1
  38. package/components/PrintingSystem/subcomponents/FooterNode/{index.fb323704.js → index.fc1466e0.js} +1 -1
  39. package/components/PrintingSystem/subcomponents/GridNode/{index.1ed935be.js → index.ca2cc635.js} +1 -1
  40. package/components/PrintingSystem/subcomponents/HeaderNode/{index.5173c74a.js → index.5ae4e58e.js} +1 -1
  41. package/components/PrintingSystem/subcomponents/PaperNode/{index.fad64696.js → index.251d9664.js} +1 -1
  42. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.3a3e5fd0.js → index.45054100.js} +1 -1
  43. package/components/PrintingSystem/subcomponents/SectionNode/{index.2890fc12.js → index.cfd21ea3.js} +1 -1
  44. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.148708e6.js → index.0f22f144.js} +1 -1
  45. package/components/PropertyValue/{index.4ea5af0f.js → index.041a0585.js} +1 -1
  46. package/components/SideBar/classes/index.d.ts +1 -0
  47. package/components/SideBar/classes/types.d.ts +1 -0
  48. package/components/SideBar/{index.141dac10.js → index.3ea827ea.js} +13 -29
  49. package/components/SideBar/subcomponents/ContentGroups/index.d.ts +1 -1
  50. package/components/ToastContainer/{index.98c4873e.js → index.ee15bfce.js} +2 -2
  51. package/components/areas/components/AreasAdmin/{index.debe3e3d.js → index.01ea7058.js} +13 -13
  52. package/components/areas/components/AreasViewer/{index.82a22acb.js → index.71038f0e.js} +75 -189
  53. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowHeaderSkeleton/index.d.ts +2 -0
  54. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowHeaderSkeleton/types.d.ts +3 -0
  55. package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
  56. package/components/areas/contexts/AreasContext/{index.0dc69929.js → index.cc89c1a7.js} +5 -5
  57. package/components/areas/hooks/useAreas/{index.ca15a4b6.js → index.32c7a909.js} +1 -1
  58. package/components/commercial/TopBar/{index.32a332c4.js → index.6493e8ab.js} +3 -3
  59. package/components/formatters/BooleanFormatter/{index.0703a256.js → index.477c6419.js} +2 -2
  60. package/components/formatters/{index.94be7098.js → index.ac0a547b.js} +1 -1
  61. package/components/hook-form/RHFAutocomplete/classes/types.d.ts +1 -0
  62. package/components/hook-form/RHFAutocomplete/{index.993794f8.js → index.24e4387c.js} +22 -15
  63. package/components/hook-form/RHFAutocomplete/types.d.ts +2 -1
  64. package/components/hook-form/RHFAutocompleteAsync/{index.924c6473.js → index.0cc78417.js} +1 -1
  65. package/components/hook-form/RHFCheckbox/classes/types.d.ts +2 -0
  66. package/components/hook-form/RHFCheckbox/{index.f1fd5789.js → index.22648b5a.js} +20 -3
  67. package/components/hook-form/RHFCheckbox/types.d.ts +2 -0
  68. package/components/hook-form/RHFColorPicker/classes/types.d.ts +2 -0
  69. package/components/hook-form/RHFColorPicker/{index.60b50052.js → index.d02de5ee.js} +24 -6
  70. package/components/hook-form/RHFColorPicker/types.d.ts +2 -0
  71. package/components/hook-form/RHFDateTime/classes/types.d.ts +1 -0
  72. package/components/hook-form/RHFDateTime/{index.2396ea4a.js → index.f02f1122.js} +19 -12
  73. package/components/hook-form/RHFDateTime/types.d.ts +2 -1
  74. package/components/hook-form/RHFPeriod/classes/index.d.ts +2 -1
  75. package/components/hook-form/RHFPeriod/classes/types.d.ts +2 -0
  76. package/components/hook-form/RHFPeriod/index.5ca467ac.js +112 -0
  77. package/components/hook-form/RHFPeriod/types.d.ts +4 -0
  78. package/components/hook-form/RHFTextField/classes/types.d.ts +1 -0
  79. package/components/hook-form/RHFTextField/{index.fb0d1cac.js → index.81c4b52b.js} +21 -15
  80. package/components/hook-form/RHFTextField/types.d.ts +2 -1
  81. package/components/hook-form/RHFUpload/{index.e5f734b8.js → index.f6c5027f.js} +2 -2
  82. package/components/modal/{WindowBase.dd1d2d7b.js → WindowBase.f38260ec.js} +3 -3
  83. package/components/modal/{WindowConfirm.4501497a.js → WindowConfirm.67ee36e9.js} +6 -6
  84. package/components/mui_extended/Accordion/{index.4393eca9.js → index.a55875a5.js} +2 -2
  85. package/components/mui_extended/Button/{index.93389adb.js → index.c6befaeb.js} +3 -7
  86. package/components/mui_extended/{CheckBox.840a443f.js → CheckBox.d676424c.js} +1 -1
  87. package/components/mui_extended/IconButton/classes/types.d.ts +0 -1
  88. package/components/mui_extended/IconButton/{index.383f5496.js → index.63a9d74c.js} +2 -5
  89. package/components/mui_extended/IconButton/types.d.ts +1 -1
  90. package/components/mui_extended/ImageButton/ImageButton.d.ts +1 -1
  91. package/components/mui_extended/MenuActions/{index.e6e3aac8.js → index.bca14ad9.js} +2 -2
  92. package/components/mui_extended/Pager/{index.5791276c.js → index.a024f67b.js} +1 -1
  93. package/components/mui_extended/ToggleButton/{index.4ac1f974.js → index.3f8bcf51.js} +1 -1
  94. package/components/mui_extended/ToggleIconButton/{index.8ca0114f.js → index.04375093.js} +1 -1
  95. package/contexts/ModalContext/{index.dde4e35a.js → index.e748f329.js} +1 -1
  96. package/hooks/index.d.ts +1 -0
  97. package/hooks/useFormAddEdit/{index.7fdad61d.js → index.649004a5.js} +2 -2
  98. package/hooks/useFormFocus/index.d.ts +7 -0
  99. package/hooks/useFormFocus/types.d.ts +8 -0
  100. package/hooks/useModal/{index.2f1d6a07.js → index.66a0c82e.js} +1 -1
  101. package/index.js +78 -77
  102. package/{node_modules.585eab0e.js → node_modules.4d80a09c.js} +1 -1
  103. package/package.json +1 -1
  104. package/{vendor.173d0b89.js → vendor.aa97e825.js} +79 -60
  105. package/components/Image/index.39b3b9d9.js +0 -387
  106. package/components/Image/subcomponents/BasicIntersectComponent/index.d.ts +0 -3
  107. package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +0 -7
  108. package/components/Image/subcomponents/Skeleton/index.d.ts +0 -2
  109. package/components/Image/subcomponents/Skeleton/types.d.ts +0 -6
  110. package/components/Image/utils/classes/index.d.ts +0 -12
  111. package/components/Image/utils/isIntersectionObserverAvailable.d.ts +0 -1
  112. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/skeleton.d.ts +0 -1
  113. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +0 -2
  114. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +0 -2
  115. package/components/hook-form/RHFPeriod/index.011965ef.js +0 -90
  116. package/components/CommonActions/components/Actions/{index.389f9b28.js → index.16946bfd.js} +11 -11
  117. /package/components/Image/{utils/classes → classes}/constant.d.ts +0 -0
@@ -6,28 +6,28 @@ import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
6
6
  import { shallow } from "zustand/shallow";
7
7
  import React__default, { useMemo, useEffect } from "react";
8
8
  import clsx from "clsx";
9
- import { u as useAreasStore } from "../../hooks/useAreas/index.ca15a4b6.js";
9
+ import { u as useAreasStore } from "../../hooks/useAreas/index.32c7a909.js";
10
10
  import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
11
- import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.e6e3aac8.js";
11
+ import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.bca14ad9.js";
12
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
12
13
  import { useResponsiveDesktop } from "@m4l/graphics";
13
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
14
14
  import { I as ICONS } from "../../icons.8266ccc8.js";
15
15
  import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
16
- import { I as IconButton } from "../../../mui_extended/IconButton/index.383f5496.js";
16
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.63a9d74c.js";
17
17
  import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.a0ad2d9e.js";
18
- import { I as Icon } from "../../../Icon/index.8c744412.js";
18
+ import { I as Icon } from "../../../Icon/index.1976cb37.js";
19
19
  import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
20
- import { M as MFLoader } from "../../../MFLoader/index.7cd7c372.js";
20
+ import { M as MFLoader } from "../../../MFLoader/index.1e56a845.js";
21
21
  import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
22
22
  import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
23
23
  import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
24
24
  import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
25
25
  import { g as getNameDataTestId } from "../../../../test/getNameDataTestId.14875ec7.js";
26
- import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.0dc69929.js";
26
+ import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.cc89c1a7.js";
27
27
  import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index.7669a2cd.js";
28
- import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.0fd1b7f8.js";
28
+ import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.d2ec9ddb.js";
29
29
  import { useLocation } from "react-router-dom";
30
- import { L as LoadingError } from "../../../LoadingError/index.9c64680a.js";
30
+ import { L as LoadingError } from "../../../LoadingError/index.2aa5daba.js";
31
31
  import { c as cjs } from "../../../../react-draggable.ee21cb7e.js";
32
32
  import { R as ResizeableWindow } from "../../../Resizeable/index.8db8f77d.js";
33
33
  const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
@@ -237,151 +237,72 @@ const AreasViewerRoot = styled("div")`
237
237
 
238
238
  ${(props) => props.theme.components?.M4LAreasViewer?.styleOverrides}
239
239
  `;
240
- styled("div")(({
241
- theme
242
- }) => ({
243
- display: "flex",
244
- alignItems: "center",
245
- position: "relative",
246
- borderBottom: `1px solid ${theme.palette.divider}`,
247
- height: "60px",
248
- minHeight: "60px",
249
- " > span": {
250
- marginRight: "12px"
251
- },
252
- "& > h5": {
253
- paddingRight: theme.spacing(3),
254
- borderRight: `1px solid ${theme.palette.divider}`
255
- },
256
- " > nav": {
257
- marginRight: "12px",
258
- flexGrow: 1
259
- },
260
- "& .splitactions.Mui-disabled": {
261
- color: theme.palette.primary.main
262
- },
263
- "& svg ": {
264
- width: "20px",
265
- height: "20px"
266
- }
267
- }));
268
- const Wrapper = styled("div")(({
269
- theme
270
- }) => ({
271
- display: "flex",
272
- justifyContent: "space-between",
273
- padding: `0 0`,
274
- borderBottom: `1px solid ${theme.palette.divider}`,
275
- minHeight: "60px"
276
- }));
277
- const ModuleTitleContent = styled("div")(({
278
- theme
279
- }) => ({
280
- display: "grid",
281
- gridTemplateColumns: "auto",
282
- gridGap: theme.spacing(1.75),
283
- alignItems: "center",
284
- width: "auto",
285
- height: "auto",
286
- [theme.breakpoints.up("sm")]: {
287
- gridTemplateColumns: "repeat(3, auto)"
288
- }
289
- }));
290
- const ModuleTitle = styled("div")(({
291
- theme
292
- }) => ({
293
- display: "grid",
294
- gridTemplateColumns: `${theme.spacing(3)} auto`,
295
- gridGap: theme.spacing(2),
296
- alignItems: "center",
297
- width: "auto",
298
- height: "auto"
299
- }));
300
- const Separator = styled("div")(({
301
- theme
302
- }) => ({
303
- display: "none",
304
- alignItems: "center",
305
- width: "1px",
306
- background: theme.palette.divider,
307
- height: "100%",
308
- margin: `0 ${theme.spacing(2)}`,
309
- [theme.breakpoints.up("sm")]: {
310
- display: "flex"
311
- }
312
- }));
313
- const Breadcrumbs = styled("div")(({
314
- theme
315
- }) => ({
316
- display: "grid",
317
- alignItems: "center",
318
- gridTemplateColumns: `repeat(3, auto)`,
319
- gridGap: theme.spacing(2)
320
- }));
321
- const ModuleActions = styled("div")(({
322
- theme
323
- }) => ({
324
- display: "grid",
325
- gridTemplateColumns: "auto",
326
- alignItems: "center",
327
- width: "auto",
328
- height: "auto",
329
- [theme.breakpoints.up("sm")]: {
330
- gridTemplateColumns: `repeat(3, ${theme.spacing(3)})`,
331
- gridGap: theme.spacing(2)
332
- }
333
- }));
334
- function SKTModuleHeader() {
335
- const isDesktop = useResponsiveDesktop();
336
- return /* @__PURE__ */ jsxs(Wrapper, {
337
- id: "HeaderSkeleton",
338
- children: [/* @__PURE__ */ jsxs(ModuleTitleContent, {
339
- children: [/* @__PURE__ */ jsxs(ModuleTitle, {
340
- children: [/* @__PURE__ */ jsx(Skeleton, {
341
- variant: "circular",
342
- width: 24,
343
- height: 24
344
- }), /* @__PURE__ */ jsx(Skeleton, {
345
- variant: "text",
346
- width: 120,
347
- height: 14
348
- })]
349
- }), /* @__PURE__ */ jsx(Separator, {}), /* @__PURE__ */ jsxs(Breadcrumbs, {
350
- children: [/* @__PURE__ */ jsx(Skeleton, {
351
- variant: "text",
352
- width: 68,
353
- height: 14
354
- }), /* @__PURE__ */ jsx(Skeleton, {
355
- variant: "circular",
356
- width: 4,
357
- height: 4
358
- }), /* @__PURE__ */ jsx(Skeleton, {
240
+ function WindowHeaderSkeleton(props) {
241
+ const {
242
+ colapsed
243
+ } = props;
244
+ return /* @__PURE__ */ jsx("div", {
245
+ className: clsx(areasViewerClasses.windowHeader),
246
+ children: /* @__PURE__ */ jsxs("div", {
247
+ className: areasViewerClasses.windowHeaderContent,
248
+ children: [/* @__PURE__ */ jsx(Skeleton, {
249
+ variant: "circular",
250
+ sx: {
251
+ margin: "0 5px",
252
+ minWidth: "18px",
253
+ minHeight: "18px"
254
+ }
255
+ }), /* @__PURE__ */ jsx("div", {
256
+ style: {
257
+ width: "100%"
258
+ },
259
+ children: /* @__PURE__ */ jsx(Skeleton, {
359
260
  variant: "text",
360
- width: 68,
361
- height: 14
362
- })]
363
- })]
364
- }), /* @__PURE__ */ jsx(ModuleActions, {
365
- children: isDesktop ? /* @__PURE__ */ jsxs(Fragment, {
366
- children: [/* @__PURE__ */ jsx(Skeleton, {
367
- variant: "circular",
368
- width: 24,
369
- height: 24
370
- }), /* @__PURE__ */ jsx(Skeleton, {
371
- variant: "circular",
372
- width: 24,
373
- height: 24
374
- }), /* @__PURE__ */ jsx(Skeleton, {
375
- variant: "circular",
376
- width: 24,
377
- height: 24
378
- })]
379
- }) : /* @__PURE__ */ jsx(Skeleton, {
261
+ width: 80,
262
+ height: 16
263
+ })
264
+ }), /* @__PURE__ */ jsx("div", {
265
+ className: areasViewerClasses.windowHeaderCancelHandle,
266
+ children: !colapsed && /* @__PURE__ */ jsxs(Fragment, {
267
+ children: [/* @__PURE__ */ jsx(Skeleton, {
268
+ variant: "circular",
269
+ sx: {
270
+ margin: "0 5px",
271
+ minWidth: "16px",
272
+ minHeight: "16px"
273
+ }
274
+ }), /* @__PURE__ */ jsx(Skeleton, {
275
+ variant: "circular",
276
+ sx: {
277
+ margin: "0 5px",
278
+ minWidth: "16px",
279
+ minHeight: "16px"
280
+ }
281
+ }), /* @__PURE__ */ jsx(Skeleton, {
282
+ variant: "circular",
283
+ sx: {
284
+ margin: "0 5px",
285
+ minWidth: "16px",
286
+ minHeight: "16px"
287
+ }
288
+ })]
289
+ })
290
+ }), /* @__PURE__ */ jsx(Skeleton, {
380
291
  variant: "circular",
381
- width: 24,
382
- height: 24
383
- })
384
- })]
292
+ sx: {
293
+ margin: "0 5px",
294
+ minWidth: "16px",
295
+ minHeight: "16px"
296
+ }
297
+ }), /* @__PURE__ */ jsx(Skeleton, {
298
+ variant: "circular",
299
+ sx: {
300
+ margin: "0 5px",
301
+ minWidth: "16px",
302
+ minHeight: "16px"
303
+ }
304
+ })]
305
+ })
385
306
  });
386
307
  }
387
308
  function getMainActions(isDesktop, moduleActions) {
@@ -480,38 +401,6 @@ function MainActions(props) {
480
401
  })
481
402
  });
482
403
  }
483
- const WindowPopUpsList = (props) => {
484
- const {
485
- areaId,
486
- windowId
487
- } = props;
488
- const windowsPopUps = useAreasStore((state) => state.hashAreas[areaId].layoutItemsIds.filter((li) => state.hashWindows[li].parentLayoutId === windowId && state.hashWindows[li].emergeType === "popup").map((lim) => {
489
- const w = state.hashWindows[lim];
490
- return {
491
- i: w.windowId,
492
- url_icon: w.url_icon,
493
- title: w.title
494
- };
495
- }), shallow);
496
- const {
497
- maximizeLayout
498
- } = useAreasStore((state) => state.areaActions);
499
- const onTouched = (layoutId) => {
500
- maximizeLayout(areaId, layoutId);
501
- };
502
- const menuActions = windowsPopUps ? windowsPopUps.map((element) => {
503
- return {
504
- onClick: () => onTouched(element.i),
505
- label: element.title,
506
- urlIcon: element.url_icon
507
- };
508
- }) : null;
509
- if (menuActions && menuActions.length > 0) {
510
- return /* @__PURE__ */ jsx(Fragment, {});
511
- } else {
512
- return null;
513
- }
514
- };
515
404
  function Header(props) {
516
405
  const {
517
406
  areaId,
@@ -592,7 +481,7 @@ function Header(props) {
592
481
  e.stopPropagation();
593
482
  };
594
483
  if (isSkeleton) {
595
- return /* @__PURE__ */ jsx(SKTModuleHeader, {});
484
+ return /* @__PURE__ */ jsx(WindowHeaderSkeleton, {});
596
485
  }
597
486
  return /* @__PURE__ */ jsxs("div", {
598
487
  className: clsx(areasViewerClasses.windowHeader, "m4l_draggable_handle"),
@@ -609,10 +498,7 @@ function Header(props) {
609
498
  className: areasViewerClasses.windowHeaderCancelHandle,
610
499
  children: [!colapsed && /* @__PURE__ */ jsx(MainActions, {
611
500
  windowId
612
- }), !colapsed ? /* @__PURE__ */ jsx(WindowPopUpsList, {
613
- areaId,
614
- windowId
615
- }) : null, !colapsed && menuActions.length > 0 && /* @__PURE__ */ jsx(MemonizedMenuActions, {
501
+ }), !colapsed && menuActions.length > 0 && /* @__PURE__ */ jsx(MemonizedMenuActions, {
616
502
  arrowType: "no-arrow",
617
503
  marginTop: "12px!important",
618
504
  marginLeft: "14px!important",
@@ -0,0 +1,2 @@
1
+ import { WindowHeaderSkeletonProps } from './types';
2
+ export declare function WindowHeaderSkeleton(props: WindowHeaderSkeletonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { WritableDraft } from 'immer/dist/internal';
2
2
  import type { Area, AreasStateWithActions } from './types';
3
3
  import type { WindowState, WindowStateProps } from '../../types';
4
- export declare const PADDING_GRIDLAYOUT = 8;
5
- export declare const MARGIN_GRIDLAYOUT = 8;
4
+ export declare const PADDING_GRIDLAYOUT = 10;
5
+ export declare const MARGIN_GRIDLAYOUT = 10;
6
6
  export declare const DEBOUCED_SAVE_TIME = 500;
7
7
  export declare const THROTTLE_RESIZE_TIME = 300;
8
8
  export declare const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
@@ -5,17 +5,17 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
5
5
  import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
6
6
  import { devtools } from "zustand/middleware";
7
7
  import { immer } from "zustand/middleware/immer";
8
- import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.82a22acb.js";
9
- import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.debe3e3d.js";
8
+ import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.71038f0e.js";
9
+ import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.01ea7058.js";
10
10
  import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.1607c78e.js";
11
11
  import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
12
- import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.0fd1b7f8.js";
12
+ import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.d2ec9ddb.js";
13
13
  import { debounce, cloneDeep } from "lodash";
14
14
  import { A as isEqualLayouts } from "../../../GridLayout/index.0996cd19.js";
15
15
  import { useNavigate } from "react-router-dom";
16
16
  import { jsx } from "react/jsx-runtime";
17
- const PADDING_GRIDLAYOUT = 8;
18
- const MARGIN_GRIDLAYOUT = 8;
17
+ const PADDING_GRIDLAYOUT = 10;
18
+ const MARGIN_GRIDLAYOUT = 10;
19
19
  const DEBOUCED_SAVE_TIME = 500;
20
20
  const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
21
21
  const COOKIE_WINDOWS = "windows";
@@ -1,6 +1,6 @@
1
1
  import { useContext } from "react";
2
2
  import { useStore } from "zustand";
3
- import { A as AreasContext } from "../../contexts/AreasContext/index.0dc69929.js";
3
+ import { A as AreasContext } from "../../contexts/AreasContext/index.cc89c1a7.js";
4
4
  function useAreasStore(selector, equalityFn) {
5
5
  const context = useContext(AreasContext);
6
6
  if (!context)
@@ -5,11 +5,11 @@ import { g as getComponentUtilityClass } from "../../../utils/index.de903261.js"
5
5
  import { createContext, useContext, useState } from "react";
6
6
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
7
7
  import { useEnvironment } from "@m4l/core";
8
- import { I as Icon } from "../../Icon/index.8c744412.js";
8
+ import { I as Icon } from "../../Icon/index.1976cb37.js";
9
9
  import clsx from "clsx";
10
10
  import { g as getNameDataTestId } from "../../../test/getNameDataTestId.14875ec7.js";
11
- import { A as Accordion } from "../../mui_extended/Accordion/index.4393eca9.js";
12
- import { B as Button } from "../../mui_extended/Button/index.93389adb.js";
11
+ import { A as Accordion } from "../../mui_extended/Accordion/index.a55875a5.js";
12
+ import { B as Button } from "../../mui_extended/Button/index.c6befaeb.js";
13
13
  import { P as Popover } from "../../mui_extended/Popover/index.d85de73b.js";
14
14
  const componentName = "M4LTopBar";
15
15
  const TopBarClasses = generateUtilityClasses(componentName, [
@@ -1,8 +1,8 @@
1
1
  import { useMemo } from "react";
2
2
  import { useModuleDictionary, useEnvironment } from "@m4l/core";
3
- import { I as Icon } from "../../Icon/index.8c744412.js";
3
+ import { I as Icon } from "../../Icon/index.1976cb37.js";
4
4
  import { W as WrapperComponent } from "../../WrapperComponent/index.5e872594.js";
5
- import { F as FormatterRoot, f as formatterClasses } from "../index.94be7098.js";
5
+ import { F as FormatterRoot, f as formatterClasses } from "../index.ac0a547b.js";
6
6
  import clsx from "clsx";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  const BOOLEAN_FORMATTER_DICTIONARY_KEY = `boolean_formatter`;
@@ -3,7 +3,7 @@ import "@mui/base";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { W as WrapperComponent } from "../WrapperComponent/index.5e872594.js";
5
5
  import { useModuleDictionary } from "@m4l/core";
6
- import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.0703a256.js";
6
+ import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.477c6419.js";
7
7
  const COMPONENT_CLASS_NAME = "M4LFormatter";
8
8
  const formatterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
9
9
  "root",
@@ -18,6 +18,7 @@ export interface RHFAutocompleteClassesType {
18
18
  sizeSmall: string;
19
19
  sizeMedium: string;
20
20
  isFocus: string;
21
+ isTabSelected: string;
21
22
  }
22
23
  export declare type RHFAutocompleteClassesKey = keyof RHFAutocompleteClassesType;
23
24
  export declare type Classes = ReturnType<typeof useUtilityClasses>;
@@ -1,7 +1,7 @@
1
1
  import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
3
  import { styled, Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, CircularProgress } from "@mui/material";
4
- import { I as Image } from "../../Image/index.39b3b9d9.js";
4
+ import { I as Image } from "../../Image/index.fd6f2c5f.js";
5
5
  import { useMemo, useRef, useState, useEffect } from "react";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
7
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
@@ -9,8 +9,9 @@ import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js
9
9
  import { unstable_composeClasses } from "@mui/base";
10
10
  import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
11
11
  import { useResponsiveDesktop } from "@m4l/graphics";
12
- import { F as FieldLabel } from "../../FieldLabel/index.1da2a28d.js";
13
- import { I as IconButton } from "../../mui_extended/IconButton/index.383f5496.js";
12
+ import { u as useFormFocus } from "../../../vendor.aa97e825.js";
13
+ import { F as FieldLabel } from "../../FieldLabel/index.61d55577.js";
14
+ import { I as IconButton } from "../../mui_extended/IconButton/index.63a9d74c.js";
14
15
  const AutocompleteRoot = styled("div")(({
15
16
  theme
16
17
  }) => ({
@@ -121,14 +122,15 @@ generateUtilityClasses(componentName, [
121
122
  "variantError",
122
123
  "sizeSmall",
123
124
  "sizeMedium",
124
- "isFocus"
125
+ "isFocus",
126
+ "isTabSelected"
125
127
  ]);
126
128
  function getRHFAutocompleteClassesUtilityClass(slot) {
127
129
  return generateUtilityClass(componentName, slot);
128
130
  }
129
131
  const useUtilityClasses = (ownerState) => {
130
132
  const slots = {
131
- root: ["root", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.focus && "isFocus", ownerState.disabled && "isDisabled", ownerState.semantics === "info" && "variantInfo", ownerState.semantics === "success" && "variantSuccess", ownerState.semantics === "warning" && "variantWarning", ownerState.semantics === "error" && "variantError", ownerState.imageWidthDefined && "imageWidthDefined"],
133
+ root: ["root", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.isFocus && "isFocus", ownerState.isTabSelected && "isTabSelected", ownerState.disabled && "isDisabled", ownerState.semantics === "info" && "variantInfo", ownerState.semantics === "success" && "variantSuccess", ownerState.semantics === "warning" && "variantWarning", ownerState.semantics === "error" && "variantError", ownerState.imageWidthDefined && "imageWidthDefined"],
132
134
  withImage: ["withImage"],
133
135
  skeleton: ["skeleton"],
134
136
  label: ["label"],
@@ -177,6 +179,13 @@ function RHFAutocomplete(props) {
177
179
  host_static_assets,
178
180
  environment_assets
179
181
  } = useEnvironment();
182
+ const {
183
+ isFocus,
184
+ isTabSelected,
185
+ handlerFocus,
186
+ handlerOnKeyUp,
187
+ handlerOnBlur
188
+ } = useFormFocus();
180
189
  const autocompleteRef = useRef(null);
181
190
  const [open, setOpen] = useState(false);
182
191
  const isDesktop = useResponsiveDesktop();
@@ -214,7 +223,6 @@ function RHFAutocomplete(props) {
214
223
  errors
215
224
  }
216
225
  } = useFormContext();
217
- const [isFocus, setIsFocus] = useState(false);
218
226
  const [currentVariant, setCurrentVariant] = useState(null);
219
227
  useEffect(() => {
220
228
  if (errors[nameRHF]) {
@@ -225,23 +233,23 @@ function RHFAutocomplete(props) {
225
233
  setCurrentVariant(null);
226
234
  }
227
235
  }, [errors[nameRHF], variant, control]);
228
- const handleFocus = () => {
229
- setIsFocus(true);
230
- };
231
- const handleBlur = () => {
232
- setIsFocus(false);
233
- };
234
236
  const ownerState = {
235
237
  size: !isDesktop ? "medium" : size,
236
- focus: isFocus,
238
+ isFocus: !isSkeleton ? isFocus : false,
239
+ isTabSelected: !isSkeleton ? isTabSelected : false,
237
240
  semantics: currentVariant,
238
241
  disabled,
239
242
  imageWidthDefined: imageWidth ? true : false
240
243
  };
241
244
  const classes = useUtilityClasses(ownerState);
245
+ console.log("classes ***", classes);
242
246
  const theme = useTheme();
243
247
  return /* @__PURE__ */ jsx(AutocompleteRoot, {
244
248
  className: classes.root,
249
+ tabIndex: 0,
250
+ onFocus: handlerFocus,
251
+ onBlur: handlerOnBlur,
252
+ onKeyUp: handlerOnKeyUp,
245
253
  ...process.env.NODE_ENV !== "production" ? {
246
254
  [TEST_PROP_ID]: `${RHFTAUTOCOMPLET_ROOT_TEST_ID}_${nameRHF}`
247
255
  } : {},
@@ -282,8 +290,6 @@ function RHFAutocomplete(props) {
282
290
  autoComplete: true,
283
291
  size,
284
292
  ref: autocompleteRef,
285
- onFocus: handleFocus,
286
- onBlur: handleBlur,
287
293
  autoSelect: false,
288
294
  options,
289
295
  getOptionLabel: getOptionLabelLocal,
@@ -358,6 +364,7 @@ function RHFAutocomplete(props) {
358
364
  className: classes.iconDown,
359
365
  src: `${host_static_assets}/${environment_assets}/frontend/components/RHFAutocompletarAsync/assets/icons/chevronDown.svg`,
360
366
  onClick: (event) => onOpenLocal(event),
367
+ disabled,
361
368
  size
362
369
  })
363
370
  })
@@ -25,7 +25,8 @@ export interface RHFAutocompleteProps<T> extends Omit<TextFieldProps, 'label' |
25
25
  imageHeight?: string | number;
26
26
  }
27
27
  export interface OwnerState extends Pick<RHFAutocompleteProps<any>, 'size' | 'disabled'> {
28
- focus: boolean;
28
+ isFocus: boolean;
29
+ isTabSelected: boolean;
29
30
  semantics: RHFAutocompleteVariants | 'error' | null;
30
31
  variant?: 'withImage';
31
32
  imageWidthDefined: boolean;
@@ -5,7 +5,7 @@ import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/mater
5
5
  import { unstable_composeClasses } from "@mui/base";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
7
  import { jsx } from "react/jsx-runtime";
8
- import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.993794f8.js";
8
+ import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.24e4387c.js";
9
9
  styled("div")(() => ({
10
10
  display: "flex",
11
11
  width: "100%",
@@ -6,5 +6,7 @@ export interface RHFCheckboxClassesType {
6
6
  medium: string;
7
7
  stateDisabled: string;
8
8
  stateError: string;
9
+ isFocus: string;
10
+ isTabSelected: string;
9
11
  }
10
12
  export declare type RHFCheckboxClassesKey = keyof RHFCheckboxClassesType;
@@ -4,8 +4,10 @@ import { unstable_composeClasses } from "@mui/base";
4
4
  import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
5
5
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
6
6
  import { useResponsiveDesktop } from "@m4l/graphics";
7
+ import { useModuleSkeleton } from "@m4l/core";
7
8
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
8
- import { C as CheckBox } from "../../mui_extended/CheckBox.840a443f.js";
9
+ import { u as useFormFocus } from "../../../vendor.aa97e825.js";
10
+ import { C as CheckBox } from "../../mui_extended/CheckBox.d676424c.js";
9
11
  const RHFCheckboxRoot = styled("div")(({
10
12
  theme
11
13
  }) => ({
@@ -33,14 +35,16 @@ generateUtilityClasses("M4LRHFCheckbox", [
33
35
  "small",
34
36
  "medium",
35
37
  "stateDisabled",
36
- "stateError"
38
+ "stateError",
39
+ "isFocus",
40
+ "isTabSelected"
37
41
  ]);
38
42
  function getRHFCheckboxUtilityClass(slot) {
39
43
  return generateUtilityClass("M4LRHFCheckbox", slot);
40
44
  }
41
45
  const useUtilityClasses = (ownerState) => {
42
46
  const slots = {
43
- root: ["root", ownerState.sizeCheck === "small" && "small", ownerState.sizeCheck === "medium" && "medium", ownerState.disabled && "stateDisabled", ownerState.error && "stateError"],
47
+ root: ["root", ownerState.isFocus && "isFocus", ownerState.isTabSelected && "isTabSelected", ownerState.sizeCheck === "small" && "small", ownerState.sizeCheck === "medium" && "medium", ownerState.disabled && "stateDisabled", ownerState.error && "stateError"],
44
48
  skeleton: ["skeleton"],
45
49
  checkTypography: ["checkTypography", ownerState.sizeCheck === "small" ? "small" : "medium", ownerState.disabled && "stateDisabled"]
46
50
  };
@@ -69,8 +73,18 @@ function RHFCheckbox(props) {
69
73
  errors
70
74
  }
71
75
  } = useFormContext();
76
+ const isSkeleton = useModuleSkeleton();
77
+ const {
78
+ isFocus,
79
+ isTabSelected,
80
+ handlerFocus,
81
+ handlerOnKeyUp,
82
+ handlerOnBlur
83
+ } = useFormFocus();
72
84
  const isDesktop = useResponsiveDesktop();
73
85
  const ownerState = {
86
+ isFocus: !isSkeleton ? isFocus : false,
87
+ isTabSelected: !isSkeleton ? isTabSelected : false,
74
88
  sizeCheck: !isDesktop ? "medium" : sizeCheck,
75
89
  disabled,
76
90
  error: errors[name] ? true : false
@@ -78,6 +92,9 @@ function RHFCheckbox(props) {
78
92
  const classes = useUtilityClasses(ownerState);
79
93
  return /* @__PURE__ */ jsx(RHFCheckboxRoot, {
80
94
  className: classes.root,
95
+ onFocus: handlerFocus,
96
+ onBlur: handlerOnBlur,
97
+ onKeyUp: handlerOnKeyUp,
81
98
  ...process.env.NODE_ENV !== "production" ? {
82
99
  [TEST_PROP_ID]: getNameDataTestId("root", name)
83
100
  } : {},
@@ -10,5 +10,7 @@ export interface RHFMultiCheckboxProps extends Omit<FormControlLabelProps, 'cont
10
10
  options: string[];
11
11
  }
12
12
  export interface OwnerState extends Pick<RHFCheckboxProps, 'sizeCheck' | 'disabled'> {
13
+ isFocus: boolean;
14
+ isTabSelected: boolean;
13
15
  error: boolean;
14
16
  }
@@ -8,6 +8,8 @@ export interface RHFColorPickerClassesType {
8
8
  skeleton: string;
9
9
  sizeSmall: string;
10
10
  sizeMedium: string;
11
+ isFocus: string;
12
+ isTabSelected: string;
11
13
  }
12
14
  export declare type RHFColorPickerClassesKey = keyof RHFColorPickerClassesType;
13
15
  export declare type Classes = ReturnType<typeof useUtilityClasses>;