@m4l/components 9.1.98 → 9.1.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +4 -4
- package/components/DynamicFilter/DynamicFIlter.styles.js +3 -245
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +28 -30
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +4 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +5 -7
- package/components/PropertyValue/PropertyValue.js +4 -2
- package/components/PropertyValue/PropertyValue.styles.js +3 -1
- package/components/PropertyValue/types.d.ts +1 -1
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +1 -1
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +4 -4
- package/components/WindowBase/WindowBase.d.ts +1 -1
- package/components/WindowBase/WindowBase.js +2 -0
- package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
- package/components/WindowBase/types.d.ts +24 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index.d.ts +4 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/InnerForHooks/index.d.ts +4 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/InnerForHooks/index.js +4 -10
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/useHeaderActions.d.ts +32 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/useHeaderActions.js +163 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow/useWindow.d.ts +35 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow/useWindow.js +88 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +14 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.js +47 -113
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +12 -8
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.js +3 -16
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +7 -1
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +4 -0
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts +36 -0
- package/components/areas/contexts/AreasContext/index.d.ts +2 -2
- package/components/areas/contexts/AreasContext/store.d.ts +1 -1
- package/components/areas/contexts/AreasContext/store.js +37 -33
- package/components/areas/contexts/AreasContext/types.d.ts +53 -2
- package/components/areas/types.d.ts +7 -1
- package/components/extended/React-Splitter/SplitLayout/types.d.ts +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +1 -1
- package/components/mui_extended/Select/Select.js +6 -1
- package/package.json +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.js +0 -99
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/styles.js +0 -69
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.js +0 -154
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.js +0 -44
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowHeaderSkeleton/index.js +0 -57
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +0 -9
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +0 -2
|
@@ -33,7 +33,7 @@ const createAreasStore = (initProps) => {
|
|
|
33
33
|
* Inicializa el store de areas
|
|
34
34
|
* @author Bruce Escobar - automatic
|
|
35
35
|
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
36
|
-
* @updatedAt 2025-
|
|
36
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
37
37
|
* @updatedUser cesar - automatic
|
|
38
38
|
*/
|
|
39
39
|
init: () => {
|
|
@@ -104,6 +104,10 @@ const createAreasStore = (initProps) => {
|
|
|
104
104
|
},
|
|
105
105
|
/**
|
|
106
106
|
* Acción encargada de añadir un área de trabajo en blanco
|
|
107
|
+
* @author cesar - automatic
|
|
108
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
109
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
110
|
+
* @updatedUser cesar - automatic
|
|
107
111
|
*/
|
|
108
112
|
addArea: () => {
|
|
109
113
|
let newId = "";
|
|
@@ -117,7 +121,7 @@ const createAreasStore = (initProps) => {
|
|
|
117
121
|
* editArea store
|
|
118
122
|
* @author cesar - automatic
|
|
119
123
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
120
|
-
* @updatedAt 2025-
|
|
124
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
121
125
|
* @updatedUser cesar - automatic
|
|
122
126
|
*/
|
|
123
127
|
editArea: (areaId, newName) => {
|
|
@@ -140,7 +144,7 @@ const createAreasStore = (initProps) => {
|
|
|
140
144
|
* deleteArea store
|
|
141
145
|
* @author cesar - automatic
|
|
142
146
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
143
|
-
* @updatedAt 2025-
|
|
147
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
144
148
|
* @updatedUser cesar - automatic
|
|
145
149
|
*/
|
|
146
150
|
deleteArea: (areaId) => {
|
|
@@ -182,7 +186,7 @@ const createAreasStore = (initProps) => {
|
|
|
182
186
|
* selectArea store
|
|
183
187
|
* @author cesar - automatic
|
|
184
188
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
185
|
-
* @updatedAt 2025-
|
|
189
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
186
190
|
* @updatedUser cesar - automatic
|
|
187
191
|
*/
|
|
188
192
|
selectArea: (areaId) => {
|
|
@@ -214,7 +218,7 @@ const createAreasStore = (initProps) => {
|
|
|
214
218
|
* setHandlerGetLabel
|
|
215
219
|
* @author cesar - automatic
|
|
216
220
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
217
|
-
* @updatedAt 2025-
|
|
221
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
218
222
|
* @updatedUser cesar - automatic
|
|
219
223
|
*/
|
|
220
224
|
setHandlerGetLabel: (newHandler) => {
|
|
@@ -226,7 +230,7 @@ const createAreasStore = (initProps) => {
|
|
|
226
230
|
* setExternalState
|
|
227
231
|
* @author cesar - automatic
|
|
228
232
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
229
|
-
* @updatedAt 2025-
|
|
233
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
230
234
|
* @updatedUser cesar - automatic
|
|
231
235
|
*/
|
|
232
236
|
setExternalState: (newExternalState) => {
|
|
@@ -241,7 +245,7 @@ const createAreasStore = (initProps) => {
|
|
|
241
245
|
* addWindow store
|
|
242
246
|
* @author cesar - automatic
|
|
243
247
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
244
|
-
* @updatedAt 2025-
|
|
248
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
245
249
|
* @updatedUser cesar - automatic
|
|
246
250
|
*/
|
|
247
251
|
addWindow: (newWindowProps) => {
|
|
@@ -256,7 +260,7 @@ const createAreasStore = (initProps) => {
|
|
|
256
260
|
* addLayout store
|
|
257
261
|
* @author cesar - automatic
|
|
258
262
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
259
|
-
* @updatedAt 2025-
|
|
263
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
260
264
|
* @updatedUser cesar - automatic
|
|
261
265
|
*/
|
|
262
266
|
addLayout: (areaId, windowId, newWindowProps) => {
|
|
@@ -333,7 +337,7 @@ const createAreasStore = (initProps) => {
|
|
|
333
337
|
* closeLayout
|
|
334
338
|
* @author cesar - automatic
|
|
335
339
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
336
|
-
* @updatedAt 2025-
|
|
340
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
337
341
|
* @updatedUser cesar - automatic
|
|
338
342
|
*/
|
|
339
343
|
closeLayout: (areaId, removeLayoutId) => {
|
|
@@ -365,7 +369,7 @@ const createAreasStore = (initProps) => {
|
|
|
365
369
|
* saveLayouts
|
|
366
370
|
* @author cesar - automatic
|
|
367
371
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
368
|
-
* @updatedAt 2025-
|
|
372
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
369
373
|
* @updatedUser cesar - automatic
|
|
370
374
|
*/
|
|
371
375
|
saveLayouts: (areaId) => {
|
|
@@ -415,7 +419,7 @@ const createAreasStore = (initProps) => {
|
|
|
415
419
|
* closeWindowModal
|
|
416
420
|
* @author cesar - automatic
|
|
417
421
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
418
|
-
* @updatedAt 2025-
|
|
422
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
419
423
|
* @updatedUser cesar - automatic
|
|
420
424
|
*/
|
|
421
425
|
closeWindowModal: (removeModalId) => {
|
|
@@ -432,7 +436,7 @@ const createAreasStore = (initProps) => {
|
|
|
432
436
|
* addWindowModal
|
|
433
437
|
* @author cesar - automatic
|
|
434
438
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
435
|
-
* @updatedAt 2025-
|
|
439
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
436
440
|
* @updatedUser cesar - automatic
|
|
437
441
|
*/
|
|
438
442
|
addWindowModal: (areaId, windowId, newWindowModalProps) => {
|
|
@@ -494,7 +498,7 @@ const createAreasStore = (initProps) => {
|
|
|
494
498
|
* onBreakpointsLayoutsChange
|
|
495
499
|
* @author cesar - automatic
|
|
496
500
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
497
|
-
* @updatedAt 2025-
|
|
501
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
498
502
|
* @updatedUser cesar - automatic
|
|
499
503
|
*/
|
|
500
504
|
onBreakpointsLayoutsChange: (areaId, _currentLayout, newAllLayouts) => {
|
|
@@ -511,7 +515,7 @@ const createAreasStore = (initProps) => {
|
|
|
511
515
|
* containerChange
|
|
512
516
|
* @author cesar - automatic
|
|
513
517
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
514
|
-
* @updatedAt 2025-
|
|
518
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
515
519
|
* @updatedUser cesar - automatic
|
|
516
520
|
*/
|
|
517
521
|
onContainerChange: (areaId, e) => {
|
|
@@ -524,7 +528,7 @@ const createAreasStore = (initProps) => {
|
|
|
524
528
|
* selectLayout
|
|
525
529
|
* @author cesar - automatic
|
|
526
530
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
527
|
-
* @updatedAt 2025-
|
|
531
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
528
532
|
* @updatedUser cesar - automatic
|
|
529
533
|
*/
|
|
530
534
|
selectLayout: (areaId, layoutId) => {
|
|
@@ -555,7 +559,7 @@ const createAreasStore = (initProps) => {
|
|
|
555
559
|
* unColapseLayoutItem
|
|
556
560
|
* @author cesar - automatic
|
|
557
561
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
558
|
-
* @updatedAt 2025-
|
|
562
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
559
563
|
* @updatedUser cesar - automatic
|
|
560
564
|
*/
|
|
561
565
|
unColapseLayoutItem: (areaId, layoutId) => {
|
|
@@ -567,7 +571,7 @@ const createAreasStore = (initProps) => {
|
|
|
567
571
|
* colapseLayoutItem
|
|
568
572
|
* @author cesar - automatic
|
|
569
573
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
570
|
-
* @updatedAt 2025-
|
|
574
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
571
575
|
* @updatedUser cesar - automatic
|
|
572
576
|
*/
|
|
573
577
|
colapseLayoutItem: (areaId, layoutId) => {
|
|
@@ -581,7 +585,7 @@ const createAreasStore = (initProps) => {
|
|
|
581
585
|
* minimizeLayout
|
|
582
586
|
* @author cesar - automatic
|
|
583
587
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
584
|
-
* @updatedAt 2025-
|
|
588
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
585
589
|
* @updatedUser cesar - automatic
|
|
586
590
|
*/
|
|
587
591
|
maximizeLayout: (areaId, layoutId) => {
|
|
@@ -605,7 +609,7 @@ const createAreasStore = (initProps) => {
|
|
|
605
609
|
* normalizeLayouts
|
|
606
610
|
* @author cesar - automatic
|
|
607
611
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
608
|
-
* @updatedAt 2025-
|
|
612
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
609
613
|
* @updatedUser cesar - automatic
|
|
610
614
|
*/
|
|
611
615
|
normalizeLayouts: (areaId) => {
|
|
@@ -627,7 +631,7 @@ const createAreasStore = (initProps) => {
|
|
|
627
631
|
* loadWindowsFromApi
|
|
628
632
|
* @author cesar - automatic
|
|
629
633
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
630
|
-
* @updatedAt 2025-
|
|
634
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
631
635
|
* @updatedUser cesar - automatic
|
|
632
636
|
*/
|
|
633
637
|
loadWindowsFromApi: (areaId) => {
|
|
@@ -830,7 +834,7 @@ const createAreasStore = (initProps) => {
|
|
|
830
834
|
* setActions
|
|
831
835
|
* @author cesar - automatic
|
|
832
836
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
833
|
-
* @updatedAt 2025-
|
|
837
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
834
838
|
* @updatedUser cesar - automatic
|
|
835
839
|
*/
|
|
836
840
|
setActions: (windowId, newActions, version) => {
|
|
@@ -845,7 +849,7 @@ const createAreasStore = (initProps) => {
|
|
|
845
849
|
* getCookie
|
|
846
850
|
* @author cesar - automatic
|
|
847
851
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
848
|
-
* @updatedAt 2025-
|
|
852
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
849
853
|
* @updatedUser cesar - automatic
|
|
850
854
|
*/
|
|
851
855
|
getCookie: (windowId, id) => {
|
|
@@ -858,7 +862,7 @@ const createAreasStore = (initProps) => {
|
|
|
858
862
|
* getCookies
|
|
859
863
|
* @author cesar - automatic
|
|
860
864
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
861
|
-
* @updatedAt 2025-
|
|
865
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
862
866
|
* @updatedUser cesar - automatic
|
|
863
867
|
*/
|
|
864
868
|
getCookies: (windowId, type) => {
|
|
@@ -875,7 +879,7 @@ const createAreasStore = (initProps) => {
|
|
|
875
879
|
* setCookie
|
|
876
880
|
* @author cesar - automatic
|
|
877
881
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
878
|
-
* @updatedAt 2025-
|
|
882
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
879
883
|
* @updatedUser cesar - automatic
|
|
880
884
|
*/
|
|
881
885
|
setCookie: (windowId, id, type, cookie) => {
|
|
@@ -899,7 +903,7 @@ const createAreasStore = (initProps) => {
|
|
|
899
903
|
* close window
|
|
900
904
|
* @author cesar - automatic
|
|
901
905
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
902
|
-
* @updatedAt 2025-
|
|
906
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
903
907
|
* @updatedUser cesar - automatic
|
|
904
908
|
*/
|
|
905
909
|
close: (windowId) => {
|
|
@@ -915,7 +919,7 @@ const createAreasStore = (initProps) => {
|
|
|
915
919
|
* startProgress
|
|
916
920
|
* @author cesar - automatic
|
|
917
921
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
918
|
-
* @updatedAt 2025-
|
|
922
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
919
923
|
* @updatedUser cesar - automatic
|
|
920
924
|
*/
|
|
921
925
|
startProgress: (windowId) => {
|
|
@@ -929,7 +933,7 @@ const createAreasStore = (initProps) => {
|
|
|
929
933
|
* stopProgress
|
|
930
934
|
* @author cesar - automatic
|
|
931
935
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
932
|
-
* @updatedAt 2025-
|
|
936
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
933
937
|
* @updatedUser cesar - automatic
|
|
934
938
|
*/
|
|
935
939
|
stopProgress: (windowId) => {
|
|
@@ -943,7 +947,7 @@ const createAreasStore = (initProps) => {
|
|
|
943
947
|
* loadCookiesFromApi
|
|
944
948
|
* @author cesar - automatic
|
|
945
949
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
946
|
-
* @updatedAt 2025-
|
|
950
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
947
951
|
* @updatedUser cesar - automatic
|
|
948
952
|
*/
|
|
949
953
|
loadCookiesFromApi: (windowId) => {
|
|
@@ -987,7 +991,7 @@ const createAreasStore = (initProps) => {
|
|
|
987
991
|
* saveModuleCookies
|
|
988
992
|
* @author cesar - automatic
|
|
989
993
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
990
|
-
* @updatedAt 2025-
|
|
994
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
991
995
|
* @updatedUser cesar - automatic
|
|
992
996
|
*/
|
|
993
997
|
saveModuleCookies: (windowId) => {
|
|
@@ -1007,7 +1011,7 @@ const createAreasStore = (initProps) => {
|
|
|
1007
1011
|
* setModuleCookies
|
|
1008
1012
|
* @author cesar - automatic
|
|
1009
1013
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1010
|
-
* @updatedAt 2025-
|
|
1014
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1011
1015
|
* @updatedUser cesar - automatic
|
|
1012
1016
|
*/
|
|
1013
1017
|
resetModuleCookies: (windowId) => {
|
|
@@ -1031,7 +1035,7 @@ const createAreasStore = (initProps) => {
|
|
|
1031
1035
|
* setFnQueryClose
|
|
1032
1036
|
* @author cesar - automatic
|
|
1033
1037
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1034
|
-
* @updatedAt 2025-
|
|
1038
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1035
1039
|
* @updatedUser cesar - automatic
|
|
1036
1040
|
*/
|
|
1037
1041
|
setFnQueryClose: (windowId, fnQueryClose) => {
|
|
@@ -1043,7 +1047,7 @@ const createAreasStore = (initProps) => {
|
|
|
1043
1047
|
* setWindowTitle
|
|
1044
1048
|
* @author cesar - automatic
|
|
1045
1049
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1046
|
-
* @updatedAt 2025-
|
|
1050
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1047
1051
|
* @updatedUser cesar - automatic
|
|
1048
1052
|
*/
|
|
1049
1053
|
setWindowTitle: (windowId, title) => {
|
|
@@ -1057,7 +1061,7 @@ const createAreasStore = (initProps) => {
|
|
|
1057
1061
|
* setFocus
|
|
1058
1062
|
* @author cesar - automatic
|
|
1059
1063
|
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1060
|
-
* @updatedAt 2025-
|
|
1064
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1061
1065
|
* @updatedUser cesar - automatic
|
|
1062
1066
|
*/
|
|
1063
1067
|
setFocus: (newValue) => {
|
|
@@ -26,12 +26,12 @@ export interface Area {
|
|
|
26
26
|
loadWindows: boolean;
|
|
27
27
|
/**
|
|
28
28
|
* "containerHeight" Altura del contendor de area, se deja en cada área porque solo llegan en eventos de resize cuando está diferente a display "none"
|
|
29
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
29
30
|
*/
|
|
30
31
|
containerHeight?: number;
|
|
31
32
|
currentBreakpoint?: Breakpoint;
|
|
32
33
|
layouts: Layouts;
|
|
33
34
|
maximizedId?: string | undefined;
|
|
34
|
-
/** Son los ids de las ventanas, iterar con keys, destruye los componentes en un map */
|
|
35
35
|
layoutItemsIds: string[];
|
|
36
36
|
currentLayoutId: string;
|
|
37
37
|
currentPopUpId: string;
|
|
@@ -40,19 +40,24 @@ export interface Area {
|
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* estado de carga de las areaS de trabajo.
|
|
43
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
43
44
|
*/
|
|
44
45
|
export type AreasStatus = 'init' | 'loading' | 'loaded' | 'error';
|
|
45
46
|
export type OwnerState = {
|
|
46
47
|
/**
|
|
47
48
|
* "isSkeleton" indica si el componente está en skeleton.
|
|
49
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
50
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
48
51
|
*/
|
|
49
52
|
status: AreasStatus;
|
|
50
53
|
/**
|
|
51
54
|
* "readyForHooks" indica si el componente ejecutó el efecto de carga y se suscrubió al eventemitter. Utilizado normalmente en storybook
|
|
55
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
52
56
|
*/
|
|
53
57
|
readyForHooks: boolean;
|
|
54
58
|
/**
|
|
55
59
|
* "isMobile" cuando el navegador está en modo celular
|
|
60
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
56
61
|
*/
|
|
57
62
|
isMobile: boolean;
|
|
58
63
|
/**
|
|
@@ -61,70 +66,88 @@ export type OwnerState = {
|
|
|
61
66
|
isSkeleton: boolean;
|
|
62
67
|
/**
|
|
63
68
|
* focus: Estado de selección asignado por el usuario.
|
|
64
|
-
*
|
|
69
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
65
70
|
*/
|
|
66
71
|
focus: boolean;
|
|
67
72
|
};
|
|
68
73
|
/**
|
|
69
74
|
* Estados que se actulizan por fuera del store, a través de hooks
|
|
75
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
70
76
|
*/
|
|
71
77
|
export type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton' | 'readyForHooks'>;
|
|
72
78
|
/**
|
|
73
79
|
* Interface que define el estado del componente (variables y funciones )
|
|
80
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
74
81
|
*/
|
|
75
82
|
export interface AreasState {
|
|
76
83
|
/**
|
|
77
84
|
* "loadAreasFromNetwork" Indica si se deben cargar/grabar las áreas de trabajo en la API
|
|
85
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
78
86
|
*/
|
|
79
87
|
loadAreasFromNetwork: boolean;
|
|
80
88
|
/**
|
|
81
89
|
* "loadCookiesFromNetwork" Indica si se deben cargar/grabar las cookies en la API
|
|
90
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
82
91
|
*/
|
|
83
92
|
loadCookiesFromNetwork: boolean;
|
|
84
93
|
/**
|
|
85
94
|
* "currentAreaId" Area de trabajo seleccionada
|
|
95
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
86
96
|
*/
|
|
87
97
|
currentAreaId: string;
|
|
88
98
|
/**
|
|
89
99
|
* "currentModuleId" Módulo seleccionado
|
|
100
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
90
101
|
*/
|
|
91
102
|
currentModuleId: string;
|
|
92
103
|
/**
|
|
93
104
|
* "ownerState" enfocado al funcionamiento de las clases
|
|
105
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
94
106
|
*/
|
|
95
107
|
ownerState: OwnerState;
|
|
96
108
|
/**
|
|
97
109
|
* "viwerClasses" enfocado al funcionamiento de las clases a nivel de viewer
|
|
110
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
98
111
|
*/
|
|
99
112
|
viwerClasses: ViwerClasses;
|
|
100
113
|
/**
|
|
101
114
|
* "adminClasses" enfocado al funcionamiento de las clases a nivel de Admin
|
|
115
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
102
116
|
*/
|
|
103
117
|
adminClasses: AdminClasses;
|
|
104
118
|
/**
|
|
105
119
|
* "windowsModals" id de ventans modales abiertas
|
|
120
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
106
121
|
*/
|
|
107
122
|
windowsModals: string[];
|
|
108
123
|
hashWindowsModals: HashWindowsByModals;
|
|
109
124
|
windowModal?: ModalStateProps;
|
|
110
125
|
/**
|
|
111
126
|
* "areasIds" Areas de trabajo para saber en que orden se muestran en el AreasAdmin
|
|
127
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
112
128
|
*/
|
|
113
129
|
areasIds: string[];
|
|
114
130
|
/**
|
|
115
131
|
* "hashAreas" Areas de trabajo
|
|
132
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
116
133
|
*/
|
|
117
134
|
hashAreas: Record<string, Area>;
|
|
118
135
|
/**
|
|
119
136
|
* "hashWindows" Todas las ventanas de todas las áreas cagadas
|
|
137
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
120
138
|
*/
|
|
121
139
|
hashWindows: Record<string, WindowStateProps>;
|
|
122
140
|
/**
|
|
123
141
|
* "networkOperation" funcion que usará el Store para enviar las peticiones de red
|
|
142
|
+
* @author cesar - automatic
|
|
143
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
144
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
145
|
+
* @updatedUser cesar - automatic
|
|
124
146
|
*/
|
|
125
147
|
networkOperation: (props: NetworkProps) => Promise<any>;
|
|
126
148
|
/**
|
|
127
149
|
* "getLabel" funcion que usará para traducir las etiquetas de diccionario
|
|
150
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
128
151
|
*/
|
|
129
152
|
getLabel: GetLabelType;
|
|
130
153
|
}
|
|
@@ -134,18 +157,30 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
134
157
|
* inicializa el store cargando las áreas de trabajo.
|
|
135
158
|
* Una vez termina el proceso, actualiza el estado de carga (ownerState.status) a "loaded".
|
|
136
159
|
* Normalmente es asyncrono en producción por el llamado al endpoint áreas.
|
|
160
|
+
* @author cesar - automatic
|
|
161
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
162
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
163
|
+
* @updatedUser cesar - automatic
|
|
137
164
|
*/
|
|
138
165
|
init: () => void;
|
|
139
166
|
/**
|
|
140
167
|
* Arega un area de trabajo y la selecciona. Adiconalmente limpia el currentModuleId
|
|
141
168
|
* Si esta habilitado "loadAreasFromNetwork" invoca al endpoint de POST de areas
|
|
142
169
|
* @returns id del ara de trabajo
|
|
170
|
+
* @author cesar - automatic
|
|
171
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
172
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
173
|
+
* @updatedUser cesar - automatic
|
|
143
174
|
*/
|
|
144
175
|
addArea: () => string;
|
|
145
176
|
/**
|
|
146
177
|
* Edita el nombre del área de trabajo.
|
|
147
178
|
* Si está habilitado y sincroniza los cambios en la API.
|
|
148
179
|
* @returns nombre del area de trabajo
|
|
180
|
+
* @author cesar - automatic
|
|
181
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
182
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
183
|
+
* @updatedUser cesar - automatic
|
|
149
184
|
*/
|
|
150
185
|
editArea: (idArea: string, newName: string) => void;
|
|
151
186
|
/**
|
|
@@ -155,12 +190,20 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
155
190
|
* Carga adicionalmente las ventanas cuando se seleccione por primera vez si eestá habilitado el uso de API (loadAreasFromNetwork)
|
|
156
191
|
* @param newAreaId Id de area a seleccionar
|
|
157
192
|
* @returns
|
|
193
|
+
* @author cesar - automatic
|
|
194
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
195
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
196
|
+
* @updatedUser cesar - automatic
|
|
158
197
|
*/
|
|
159
198
|
selectArea: (newAreaId: string) => void;
|
|
160
199
|
/**
|
|
161
200
|
* Borra un area de trabajo, si esta activa "loadAreasFromNetwork" llama a la API.
|
|
162
201
|
* @param areaId Id de area a borrar
|
|
163
202
|
* @returns void
|
|
203
|
+
* @author cesar - automatic
|
|
204
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
205
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
206
|
+
* @updatedUser cesar - automatic
|
|
164
207
|
*/
|
|
165
208
|
deleteArea: (areaId: string) => void;
|
|
166
209
|
/**
|
|
@@ -168,12 +211,20 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
168
211
|
* @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
|
|
169
212
|
* cambia por el useCallback, cuando el diccionario se carga.
|
|
170
213
|
* @returns void
|
|
214
|
+
* @author cesar - automatic
|
|
215
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
216
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
217
|
+
* @updatedUser cesar - automatic
|
|
171
218
|
*/
|
|
172
219
|
setHandlerGetLabel: (newHandler: GetLabelType) => void;
|
|
173
220
|
/**
|
|
174
221
|
* Modifica los estados que se actualizan externamente al Store
|
|
175
222
|
* @param newIsMobile
|
|
176
223
|
* @returns
|
|
224
|
+
* @author cesar - automatic
|
|
225
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
226
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
227
|
+
* @updatedUser cesar - automatic
|
|
177
228
|
*/
|
|
178
229
|
setExternalState: (newExternalState: Partial<ExternalOwnerState>) => void;
|
|
179
230
|
};
|
|
@@ -27,6 +27,11 @@ export interface AreaWindowAction extends Extract<MenuAction, {
|
|
|
27
27
|
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
28
28
|
*/
|
|
29
29
|
className?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Icono opcional para la acción de ventana.
|
|
32
|
+
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
33
|
+
*/
|
|
34
|
+
iconUrl?: string;
|
|
30
35
|
}
|
|
31
36
|
/**
|
|
32
37
|
* Tipo que representa el tipo de ventana: microfrontend o componente.
|
|
@@ -107,13 +112,14 @@ export type WindowState = {
|
|
|
107
112
|
* @returns void
|
|
108
113
|
* @author Andrés Quintero - automatic
|
|
109
114
|
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
110
|
-
* @updatedAt 2025-
|
|
115
|
+
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
111
116
|
* @updatedUser cesar - automatic
|
|
112
117
|
*/
|
|
113
118
|
fnQueryClose?: () => void;
|
|
114
119
|
/**
|
|
115
120
|
* moduleCount representa el identificador de
|
|
116
121
|
* la ventana cuando se repite un módulo en una misma área
|
|
122
|
+
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
117
123
|
*/
|
|
118
124
|
moduleCount?: number;
|
|
119
125
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
|
-
import { M4LOverridesStyleRules } from '
|
|
3
|
+
import { M4LOverridesStyleRules } from '../../../../@types/augmentations';
|
|
4
4
|
import { SplitLayoutSlots as slots } from './slots/SplitLayoutEnum';
|
|
5
5
|
import { SPLIT_LAYOUT_KEY_COMPONENT } from './constants';
|
|
6
6
|
export type SplitPosition = 'vertical' | 'horizontal' | 'none';
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEnvironment, useModuleSkeleton, useModuleDictionary, getPropertyByString } from "@m4l/core";
|
|
3
3
|
import { useTheme } from "@mui/material";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { forwardRef, useState, useMemo } from "react";
|
|
5
|
+
import { forwardRef, useState, useEffect, useMemo } from "react";
|
|
6
6
|
import { A as ArrowDownStyled, S as SkeletonSelectStyled, a as SelectRootStyled, M as MenuItemListStyled, b as MenuItemNoOptionStyled, c as AdormentStyled, L as LabelPlaceholerStyled, R as RenderValueContainerStyled, d as RenderValueTypography } from "./slots/SelectSlots.js";
|
|
7
7
|
import { S as SELECT_CLASSES, a as SELECT_KEY_COMPONENT, I as ICON_ARROW_DOWN } from "./constants.js";
|
|
8
8
|
import { S as SELECT_DICTIONARY } from "./dictionary.js";
|
|
@@ -32,6 +32,11 @@ const Select = forwardRef((props, ref) => {
|
|
|
32
32
|
const [selectedValue, setSelectedValue] = useState(value ?? "");
|
|
33
33
|
const [open, setOpen] = useState(false);
|
|
34
34
|
const theme = useTheme();
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (value && value !== selectedValue) {
|
|
37
|
+
setSelectedValue(value);
|
|
38
|
+
}
|
|
39
|
+
}, [value, selectedValue]);
|
|
35
40
|
const paletteColor = getPropertyByString(
|
|
36
41
|
theme.vars.palette,
|
|
37
42
|
disabled ? "default" : error ? "error" : "primary",
|