@m4l/components 9.1.92 → 9.1.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +44 -35
- package/components/Chip/Chip.d.ts +2 -2
- package/components/Chip/ChipStyles.js +10 -10
- package/components/Chip/index.js +1 -0
- package/components/Chip/types.d.ts +3 -2
- package/components/Chip/types.js +1 -0
- package/components/Color/types.d.ts +8 -0
- package/components/CommonActions/components/ActionFormIntro/index.d.ts +2 -2
- package/components/DataGrid/dictionary.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.d.ts +1 -1
- package/components/MenuActions/MenuActions.d.ts +1 -1
- package/components/MenuActions/MenuActions.js +2 -1
- package/components/MenuActions/MenuActions.styles.js +19 -5
- package/components/MenuActions/types.d.ts +10 -7
- package/components/Pager/Pager.d.ts +2 -2
- package/components/Pager/Pager.styles.js +8 -8
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.d.ts +1 -1
- package/components/Pager/subcomponents/CustomTablePagination/types.d.ts +3 -3
- package/components/Pager/subcomponents/PagerActions/PagerActions.d.ts +1 -1
- package/components/PropertyValue/PropertyValue.js +1 -1
- package/components/ToastContainer/ToastContainer.d.ts +4 -0
- package/components/WindowBase/WindowBase.d.ts +1 -1
- package/components/WindowBase/WindowBase.js +36 -31
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.d.ts +1 -1
- package/components/WindowBase/types.d.ts +6 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +13 -0
- package/components/areas/components/AreasAdmin/AreasAdmin.js +163 -0
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.d.ts +2 -0
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +264 -0
- package/components/areas/components/AreasAdmin/classes/index.js +1 -2
- package/components/areas/components/AreasAdmin/constants.d.ts +1 -0
- package/components/areas/components/AreasAdmin/constants.js +4 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.d.ts +23 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.js +27 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +63 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.js +116 -0
- package/components/areas/components/AreasAdmin/slots/index.d.ts +2 -0
- package/components/areas/components/AreasAdmin/slots/index.js +1 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/{index.d.ts → AreaChip.d.ts} +4 -26
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/{index.js → AreaChip.js} +81 -88
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.d.ts +8 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.js +53 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +18 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/{index.d.ts → AreaChipMobile.d.ts} +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +81 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +2 -3
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +36 -78
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/{index.d.ts → PanelWindowPopUp.d.ts} +1 -1
- package/components/areas/components/AreasAdmin/test/AreasAdmin.test.d.ts +1 -0
- package/components/areas/components/AreasAdmin/types.d.ts +47 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +23 -3
- 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/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +1 -1
- package/components/areas/components/index.d.ts +1 -1
- package/components/areas/contexts/AreasContext/index.js +2 -0
- package/components/areas/contexts/AreasContext/store.d.ts +2 -2
- package/components/areas/contexts/AreasContext/store.js +166 -166
- package/components/areas/contexts/AreasContext/types.d.ts +6 -2
- package/components/areas/dictionary.d.ts +1 -0
- package/components/areas/dictionary.js +2 -1
- package/components/areas/icons.d.ts +2 -0
- package/components/areas/icons.js +3 -1
- package/components/areas/types.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +4 -4
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +2 -2
- package/components/hook-form/RHFCheckbox/RHFCheckbox.d.ts +5 -0
- package/components/hook-form/RHFDateTime/RHFDateTime.d.ts +2 -2
- package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +2 -2
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +1 -1
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +22 -14
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.d.ts +4 -0
- package/components/mui_extended/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +14 -14
- package/components/mui_extended/Divider/Divider.d.ts +4 -0
- package/components/mui_extended/IconButton/IconButton.styles.js +6 -6
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +39 -8
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
- package/components/mui_extended/NavLink/NavLink.d.ts +4 -0
- package/components/mui_extended/NavLink/NavLink.styles.js +28 -6
- package/components/mui_extended/Popover/Popover.styles.js +4 -4
- package/components/mui_extended/Select/Select.styles.js +5 -5
- package/components/mui_extended/Select/types.d.ts +6 -0
- package/components/mui_extended/Stack/Stack.d.ts +4 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/components/areas/components/AreasAdmin/index.d.ts +0 -10
- package/components/areas/components/AreasAdmin/index.js +0 -95
- package/components/areas/components/AreasAdmin/styles.js +0 -17
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.js +0 -29
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +0 -56
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.js +0 -96
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.js +0 -54
- package/components/areas/utils/useOnClickOutside/index.js +0 -22
|
@@ -32,8 +32,8 @@ const createAreasStore = (initProps) => {
|
|
|
32
32
|
* Inicializa el store de areas
|
|
33
33
|
* @author Bruce Escobar - automatic
|
|
34
34
|
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
35
|
-
* @updatedAt
|
|
36
|
-
* @updatedUser
|
|
35
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
36
|
+
* @updatedUser cesar - automatic
|
|
37
37
|
*/
|
|
38
38
|
init: () => {
|
|
39
39
|
if (get().ownerState.status !== "init") {
|
|
@@ -102,139 +102,11 @@ const createAreasStore = (initProps) => {
|
|
|
102
102
|
});
|
|
103
103
|
},
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
106
|
-
* @updatedUser Andrés Quintero - automatic
|
|
107
|
-
* @updatedUser Andrés Quintero - automatic
|
|
108
|
-
* @updatedUser Andrés Quintero - automatic
|
|
109
|
-
* @updatedUser Andrés Quintero - automatic
|
|
110
|
-
* @updatedUser Andrés Quintero - automatic
|
|
111
|
-
* @updatedUser Andrés Quintero - automatic
|
|
112
|
-
* @updatedUser Andrés Quintero - automatic
|
|
113
|
-
* @updatedUser Andrés Quintero - automatic
|
|
114
|
-
* @updatedUser Andrés Quintero - automatic
|
|
115
|
-
* @updatedUser Andrés Quintero - automatic
|
|
116
|
-
* @updatedUser Andrés Quintero - automatic
|
|
117
|
-
* @updatedUser Andrés Quintero - automatic
|
|
118
|
-
* @updatedUser Andrés Quintero - automatic
|
|
119
|
-
* @updatedUser Andrés Quintero - automatic
|
|
120
|
-
* @updatedUser Andrés Quintero - automatic
|
|
121
|
-
* @updatedUser Andrés Quintero - automatic
|
|
122
|
-
* @updatedUser Andrés Quintero - automatic
|
|
123
|
-
* @updatedUser Andrés Quintero - automatic
|
|
124
|
-
* @updatedUser Andrés Quintero - automatic
|
|
125
|
-
* @updatedUser Andrés Quintero - automatic
|
|
126
|
-
* @updatedUser Andrés Quintero - automatic
|
|
127
|
-
* @updatedUser Andrés Quintero - automatic
|
|
128
|
-
* @updatedUser Andrés Quintero - automatic
|
|
129
|
-
* @updatedUser Andrés Quintero - automatic
|
|
130
|
-
* @updatedUser Andrés Quintero - automatic
|
|
131
|
-
* @updatedUser Andrés Quintero - automatic
|
|
132
|
-
* @updatedUser Andrés Quintero - automatic
|
|
133
|
-
* @updatedUser Andrés Quintero - automatic
|
|
134
|
-
* @updatedUser Andrés Quintero - automatic
|
|
135
|
-
* @updatedUser Andrés Quintero - automatic
|
|
136
|
-
* @updatedUser Andrés Quintero - automatic
|
|
137
|
-
* @updatedUser Andrés Quintero - automatic
|
|
138
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
139
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
140
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
141
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
142
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
143
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
144
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
145
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
146
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
147
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
148
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
149
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
150
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
151
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
152
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
153
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
154
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
155
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
156
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
157
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
158
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
159
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
160
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
161
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
162
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
163
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
164
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
165
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
166
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
167
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
168
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
169
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
105
|
+
* Store Add Area
|
|
170
106
|
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
171
|
-
* @
|
|
172
|
-
* @
|
|
173
|
-
* @
|
|
174
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
175
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
176
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
177
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
178
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
179
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
180
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
181
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
182
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
183
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
184
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
185
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
186
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
187
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
188
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
189
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
190
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
191
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
192
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
193
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
194
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
195
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
196
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
197
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
198
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
199
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
200
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
201
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
202
|
-
* @author Andrés Quintero - automatic
|
|
203
|
-
* @author Andrés Quintero - automatic
|
|
204
|
-
* @author Andrés Quintero - automatic
|
|
205
|
-
* @author Andrés Quintero - automatic
|
|
206
|
-
* @author Andrés Quintero - automatic
|
|
207
|
-
* @author Andrés Quintero - automatic
|
|
208
|
-
* @author Andrés Quintero - automatic
|
|
209
|
-
* @author Andrés Quintero - automatic
|
|
210
|
-
* @author Andrés Quintero - automatic
|
|
211
|
-
* @author Andrés Quintero - automatic
|
|
212
|
-
* @author Andrés Quintero - automatic
|
|
213
|
-
* @author Andrés Quintero - automatic
|
|
214
|
-
* @author Andrés Quintero - automatic
|
|
215
|
-
* @author Andrés Quintero - automatic
|
|
216
|
-
* @author Andrés Quintero - automatic
|
|
217
|
-
* @author Andrés Quintero - automatic
|
|
218
|
-
* @author Andrés Quintero - automatic
|
|
219
|
-
* @author Andrés Quintero - automatic
|
|
220
|
-
* @author Andrés Quintero - automatic
|
|
221
|
-
* @author Andrés Quintero - automatic
|
|
222
|
-
* @author Andrés Quintero - automatic
|
|
223
|
-
* @author Andrés Quintero - automatic
|
|
224
|
-
* @author Andrés Quintero - automatic
|
|
225
|
-
* @author Andrés Quintero - automatic
|
|
226
|
-
* @author Andrés Quintero - automatic
|
|
227
|
-
* @author Andrés Quintero - automatic
|
|
228
|
-
* @author Andrés Quintero - automatic
|
|
229
|
-
* @author Andrés Quintero - automatic
|
|
230
|
-
* @author Andrés Quintero - automatic
|
|
231
|
-
* @author Andrés Quintero - automatic
|
|
232
|
-
* @author Andrés Quintero - automatic
|
|
233
|
-
* @author Andrés Quintero - automatic
|
|
234
|
-
* @author Andrés Quintero - automatic
|
|
235
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
236
|
-
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
237
|
-
* @updatedUser Andrés Quintero - automatic
|
|
107
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
108
|
+
* @updatedUser cesar - automatic
|
|
109
|
+
* @author cesar - automatic
|
|
238
110
|
*/
|
|
239
111
|
addArea: () => {
|
|
240
112
|
let newId = "";
|
|
@@ -245,7 +117,11 @@ const createAreasStore = (initProps) => {
|
|
|
245
117
|
return newId;
|
|
246
118
|
},
|
|
247
119
|
/**
|
|
248
|
-
*
|
|
120
|
+
* editArea store
|
|
121
|
+
* @author cesar - automatic
|
|
122
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
123
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
124
|
+
* @updatedUser cesar - automatic
|
|
249
125
|
*/
|
|
250
126
|
editArea: (areaId, newName) => {
|
|
251
127
|
set((state) => {
|
|
@@ -264,7 +140,11 @@ const createAreasStore = (initProps) => {
|
|
|
264
140
|
});
|
|
265
141
|
},
|
|
266
142
|
/**
|
|
267
|
-
*
|
|
143
|
+
* deleteArea store
|
|
144
|
+
* @author cesar - automatic
|
|
145
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
146
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
147
|
+
* @updatedUser cesar - automatic
|
|
268
148
|
*/
|
|
269
149
|
deleteArea: (areaId) => {
|
|
270
150
|
let selectNewAreaId = "";
|
|
@@ -301,7 +181,11 @@ const createAreasStore = (initProps) => {
|
|
|
301
181
|
}
|
|
302
182
|
},
|
|
303
183
|
/**
|
|
304
|
-
*
|
|
184
|
+
* selectArea store
|
|
185
|
+
* @author cesar - automatic
|
|
186
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
187
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
188
|
+
* @updatedUser cesar - automatic
|
|
305
189
|
*/
|
|
306
190
|
selectArea: (areaId) => {
|
|
307
191
|
set((state) => {
|
|
@@ -329,7 +213,11 @@ const createAreasStore = (initProps) => {
|
|
|
329
213
|
});
|
|
330
214
|
},
|
|
331
215
|
/**
|
|
332
|
-
*
|
|
216
|
+
* setHandlerGetLabel
|
|
217
|
+
* @author cesar - automatic
|
|
218
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
219
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
220
|
+
* @updatedUser cesar - automatic
|
|
333
221
|
*/
|
|
334
222
|
setHandlerGetLabel: (newHandler) => {
|
|
335
223
|
set((state) => {
|
|
@@ -337,7 +225,11 @@ const createAreasStore = (initProps) => {
|
|
|
337
225
|
});
|
|
338
226
|
},
|
|
339
227
|
/**
|
|
340
|
-
*
|
|
228
|
+
* setExternalState
|
|
229
|
+
* @author cesar - automatic
|
|
230
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
231
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
232
|
+
* @updatedUser cesar - automatic
|
|
341
233
|
*/
|
|
342
234
|
setExternalState: (newExternalState) => {
|
|
343
235
|
set((state) => {
|
|
@@ -348,7 +240,11 @@ const createAreasStore = (initProps) => {
|
|
|
348
240
|
},
|
|
349
241
|
areaActions: {
|
|
350
242
|
/**
|
|
351
|
-
*
|
|
243
|
+
* addWindow store
|
|
244
|
+
* @author cesar - automatic
|
|
245
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
246
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
247
|
+
* @updatedUser cesar - automatic
|
|
352
248
|
*/
|
|
353
249
|
addWindow: (newWindowProps) => {
|
|
354
250
|
const windowId = `${get().currentAreaId}_window_${(/* @__PURE__ */ new Date()).getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
|
|
@@ -359,7 +255,11 @@ const createAreasStore = (initProps) => {
|
|
|
359
255
|
}
|
|
360
256
|
},
|
|
361
257
|
/**
|
|
362
|
-
*
|
|
258
|
+
* addLayout store
|
|
259
|
+
* @author cesar - automatic
|
|
260
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
261
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
262
|
+
* @updatedUser cesar - automatic
|
|
363
263
|
*/
|
|
364
264
|
addLayout: (areaId, windowId, newWindowProps) => {
|
|
365
265
|
let previousId = windowId;
|
|
@@ -430,7 +330,11 @@ const createAreasStore = (initProps) => {
|
|
|
430
330
|
get().areaActions.bouncedSaveBreakpointsLayouts(areaId);
|
|
431
331
|
},
|
|
432
332
|
/**
|
|
433
|
-
*
|
|
333
|
+
* closeLayout
|
|
334
|
+
* @author cesar - automatic
|
|
335
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
336
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
337
|
+
* @updatedUser cesar - automatic
|
|
434
338
|
*/
|
|
435
339
|
closeLayout: (areaId, removeLayoutId) => {
|
|
436
340
|
set((state) => {
|
|
@@ -458,7 +362,11 @@ const createAreasStore = (initProps) => {
|
|
|
458
362
|
}
|
|
459
363
|
},
|
|
460
364
|
/**
|
|
461
|
-
*
|
|
365
|
+
* saveLayouts
|
|
366
|
+
* @author cesar - automatic
|
|
367
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
368
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
369
|
+
* @updatedUser cesar - automatic
|
|
462
370
|
*/
|
|
463
371
|
saveLayouts: (areaId) => {
|
|
464
372
|
let nrKeys = 0;
|
|
@@ -504,7 +412,11 @@ const createAreasStore = (initProps) => {
|
|
|
504
412
|
}
|
|
505
413
|
},
|
|
506
414
|
/**
|
|
507
|
-
*
|
|
415
|
+
* closeWindowModal
|
|
416
|
+
* @author cesar - automatic
|
|
417
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
418
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
419
|
+
* @updatedUser cesar - automatic
|
|
508
420
|
*/
|
|
509
421
|
closeWindowModal: (removeModalId) => {
|
|
510
422
|
set((state) => {
|
|
@@ -517,7 +429,11 @@ const createAreasStore = (initProps) => {
|
|
|
517
429
|
});
|
|
518
430
|
},
|
|
519
431
|
/**
|
|
520
|
-
*
|
|
432
|
+
* addWindowModal
|
|
433
|
+
* @author cesar - automatic
|
|
434
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
435
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
436
|
+
* @updatedUser cesar - automatic
|
|
521
437
|
*/
|
|
522
438
|
addWindowModal: (areaId, windowId, newWindowModalProps) => {
|
|
523
439
|
set((state) => {
|
|
@@ -573,7 +489,11 @@ const createAreasStore = (initProps) => {
|
|
|
573
489
|
}
|
|
574
490
|
),
|
|
575
491
|
/**
|
|
576
|
-
*
|
|
492
|
+
* onBreakpointsLayoutsChange
|
|
493
|
+
* @author cesar - automatic
|
|
494
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
495
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
496
|
+
* @updatedUser cesar - automatic
|
|
577
497
|
*/
|
|
578
498
|
onBreakpointsLayoutsChange: (areaId, _currentLayout, newAllLayouts) => {
|
|
579
499
|
if (!isEqualLayouts(get().hashAreas[areaId].layouts, newAllLayouts)) {
|
|
@@ -586,7 +506,11 @@ const createAreasStore = (initProps) => {
|
|
|
586
506
|
}
|
|
587
507
|
},
|
|
588
508
|
/**
|
|
589
|
-
*
|
|
509
|
+
* containerChange
|
|
510
|
+
* @author cesar - automatic
|
|
511
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
512
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
513
|
+
* @updatedUser cesar - automatic
|
|
590
514
|
*/
|
|
591
515
|
onContainerChange: (areaId, e) => {
|
|
592
516
|
set((state) => {
|
|
@@ -595,7 +519,11 @@ const createAreasStore = (initProps) => {
|
|
|
595
519
|
});
|
|
596
520
|
},
|
|
597
521
|
/**
|
|
598
|
-
*
|
|
522
|
+
* selectLayout
|
|
523
|
+
* @author cesar - automatic
|
|
524
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
525
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
526
|
+
* @updatedUser cesar - automatic
|
|
599
527
|
*/
|
|
600
528
|
selectLayout: (areaId, layoutId) => {
|
|
601
529
|
set((state) => {
|
|
@@ -622,7 +550,11 @@ const createAreasStore = (initProps) => {
|
|
|
622
550
|
});
|
|
623
551
|
},
|
|
624
552
|
/**
|
|
625
|
-
*
|
|
553
|
+
* unColapseLayoutItem
|
|
554
|
+
* @author cesar - automatic
|
|
555
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
556
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
557
|
+
* @updatedUser cesar - automatic
|
|
626
558
|
*/
|
|
627
559
|
unColapseLayoutItem: (areaId, layoutId) => {
|
|
628
560
|
set((state) => {
|
|
@@ -630,7 +562,11 @@ const createAreasStore = (initProps) => {
|
|
|
630
562
|
});
|
|
631
563
|
},
|
|
632
564
|
/**
|
|
633
|
-
*
|
|
565
|
+
* colapseLayoutItem
|
|
566
|
+
* @author cesar - automatic
|
|
567
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
568
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
569
|
+
* @updatedUser cesar - automatic
|
|
634
570
|
*/
|
|
635
571
|
colapseLayoutItem: (areaId, layoutId) => {
|
|
636
572
|
if (!get().hashAreas[areaId].maximizedId && get().hashWindows[layoutId]) {
|
|
@@ -640,7 +576,11 @@ const createAreasStore = (initProps) => {
|
|
|
640
576
|
}
|
|
641
577
|
},
|
|
642
578
|
/**
|
|
643
|
-
*
|
|
579
|
+
* minimizeLayout
|
|
580
|
+
* @author cesar - automatic
|
|
581
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
582
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
583
|
+
* @updatedUser cesar - automatic
|
|
644
584
|
*/
|
|
645
585
|
maximizeLayout: (areaId, layoutId) => {
|
|
646
586
|
set((state) => {
|
|
@@ -660,7 +600,11 @@ const createAreasStore = (initProps) => {
|
|
|
660
600
|
}
|
|
661
601
|
},
|
|
662
602
|
/**
|
|
663
|
-
*
|
|
603
|
+
* normalizeLayouts
|
|
604
|
+
* @author cesar - automatic
|
|
605
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
606
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
607
|
+
* @updatedUser cesar - automatic
|
|
664
608
|
*/
|
|
665
609
|
normalizeLayouts: (areaId) => {
|
|
666
610
|
set((state) => {
|
|
@@ -678,7 +622,11 @@ const createAreasStore = (initProps) => {
|
|
|
678
622
|
});
|
|
679
623
|
},
|
|
680
624
|
/**
|
|
681
|
-
*
|
|
625
|
+
* loadWindowsFromApi
|
|
626
|
+
* @author cesar - automatic
|
|
627
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
628
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
629
|
+
* @updatedUser cesar - automatic
|
|
682
630
|
*/
|
|
683
631
|
loadWindowsFromApi: (areaId) => {
|
|
684
632
|
const area = get().hashAreas[areaId];
|
|
@@ -877,7 +825,11 @@ const createAreasStore = (initProps) => {
|
|
|
877
825
|
},
|
|
878
826
|
windowActions: {
|
|
879
827
|
/**
|
|
880
|
-
*
|
|
828
|
+
* setActions
|
|
829
|
+
* @author cesar - automatic
|
|
830
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
831
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
832
|
+
* @updatedUser cesar - automatic
|
|
881
833
|
*/
|
|
882
834
|
setActions: (windowId, newActions, version) => {
|
|
883
835
|
set((state) => {
|
|
@@ -888,7 +840,11 @@ const createAreasStore = (initProps) => {
|
|
|
888
840
|
});
|
|
889
841
|
},
|
|
890
842
|
/**
|
|
891
|
-
*
|
|
843
|
+
* getCookie
|
|
844
|
+
* @author cesar - automatic
|
|
845
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
846
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
847
|
+
* @updatedUser cesar - automatic
|
|
892
848
|
*/
|
|
893
849
|
getCookie: (windowId, id) => {
|
|
894
850
|
if (get().hashWindows[windowId]) {
|
|
@@ -897,7 +853,11 @@ const createAreasStore = (initProps) => {
|
|
|
897
853
|
return {};
|
|
898
854
|
},
|
|
899
855
|
/**
|
|
900
|
-
*
|
|
856
|
+
* getCookies
|
|
857
|
+
* @author cesar - automatic
|
|
858
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
859
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
860
|
+
* @updatedUser cesar - automatic
|
|
901
861
|
*/
|
|
902
862
|
getCookies: (windowId, type) => {
|
|
903
863
|
if (get().hashWindows[windowId]) {
|
|
@@ -910,7 +870,11 @@ const createAreasStore = (initProps) => {
|
|
|
910
870
|
return {};
|
|
911
871
|
},
|
|
912
872
|
/**
|
|
913
|
-
*
|
|
873
|
+
* setCookie
|
|
874
|
+
* @author cesar - automatic
|
|
875
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
876
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
877
|
+
* @updatedUser cesar - automatic
|
|
914
878
|
*/
|
|
915
879
|
setCookie: (windowId, id, type, cookie) => {
|
|
916
880
|
set((state) => {
|
|
@@ -930,7 +894,11 @@ const createAreasStore = (initProps) => {
|
|
|
930
894
|
});
|
|
931
895
|
},
|
|
932
896
|
/**
|
|
933
|
-
*
|
|
897
|
+
* close window
|
|
898
|
+
* @author cesar - automatic
|
|
899
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
900
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
901
|
+
* @updatedUser cesar - automatic
|
|
934
902
|
*/
|
|
935
903
|
close: (windowId) => {
|
|
936
904
|
const hW = get().hashWindows[windowId];
|
|
@@ -942,7 +910,11 @@ const createAreasStore = (initProps) => {
|
|
|
942
910
|
}
|
|
943
911
|
},
|
|
944
912
|
/**
|
|
945
|
-
*
|
|
913
|
+
* startProgress
|
|
914
|
+
* @author cesar - automatic
|
|
915
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
916
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
917
|
+
* @updatedUser cesar - automatic
|
|
946
918
|
*/
|
|
947
919
|
startProgress: (windowId) => {
|
|
948
920
|
set((state) => {
|
|
@@ -952,7 +924,11 @@ const createAreasStore = (initProps) => {
|
|
|
952
924
|
});
|
|
953
925
|
},
|
|
954
926
|
/**
|
|
955
|
-
*
|
|
927
|
+
* stopProgress
|
|
928
|
+
* @author cesar - automatic
|
|
929
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
930
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
931
|
+
* @updatedUser cesar - automatic
|
|
956
932
|
*/
|
|
957
933
|
stopProgress: (windowId) => {
|
|
958
934
|
set((state) => {
|
|
@@ -962,7 +938,11 @@ const createAreasStore = (initProps) => {
|
|
|
962
938
|
});
|
|
963
939
|
},
|
|
964
940
|
/**
|
|
965
|
-
*
|
|
941
|
+
* loadCookiesFromApi
|
|
942
|
+
* @author cesar - automatic
|
|
943
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
944
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
945
|
+
* @updatedUser cesar - automatic
|
|
966
946
|
*/
|
|
967
947
|
loadCookiesFromApi: (windowId) => {
|
|
968
948
|
const hW = get().hashWindows[windowId];
|
|
@@ -1002,7 +982,11 @@ const createAreasStore = (initProps) => {
|
|
|
1002
982
|
}
|
|
1003
983
|
},
|
|
1004
984
|
/**
|
|
1005
|
-
*
|
|
985
|
+
* saveModuleCookies
|
|
986
|
+
* @author cesar - automatic
|
|
987
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
988
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
989
|
+
* @updatedUser cesar - automatic
|
|
1006
990
|
*/
|
|
1007
991
|
saveModuleCookies: (windowId) => {
|
|
1008
992
|
const hW = get().hashWindows[windowId];
|
|
@@ -1018,7 +1002,11 @@ const createAreasStore = (initProps) => {
|
|
|
1018
1002
|
}
|
|
1019
1003
|
},
|
|
1020
1004
|
/**
|
|
1021
|
-
*
|
|
1005
|
+
* setModuleCookies
|
|
1006
|
+
* @author cesar - automatic
|
|
1007
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1008
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
1009
|
+
* @updatedUser cesar - automatic
|
|
1022
1010
|
*/
|
|
1023
1011
|
resetModuleCookies: (windowId) => {
|
|
1024
1012
|
const hW = get().hashWindows[windowId];
|
|
@@ -1038,7 +1026,11 @@ const createAreasStore = (initProps) => {
|
|
|
1038
1026
|
}
|
|
1039
1027
|
},
|
|
1040
1028
|
/**
|
|
1041
|
-
*
|
|
1029
|
+
* setFnQueryClose
|
|
1030
|
+
* @author cesar - automatic
|
|
1031
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1032
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
1033
|
+
* @updatedUser cesar - automatic
|
|
1042
1034
|
*/
|
|
1043
1035
|
setFnQueryClose: (windowId, fnQueryClose) => {
|
|
1044
1036
|
set((state) => {
|
|
@@ -1046,7 +1038,11 @@ const createAreasStore = (initProps) => {
|
|
|
1046
1038
|
});
|
|
1047
1039
|
},
|
|
1048
1040
|
/**
|
|
1049
|
-
*
|
|
1041
|
+
* setWindowTitle
|
|
1042
|
+
* @author cesar - automatic
|
|
1043
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1044
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
1045
|
+
* @updatedUser cesar - automatic
|
|
1050
1046
|
*/
|
|
1051
1047
|
setWindowTitle: (windowId, title) => {
|
|
1052
1048
|
set((state) => {
|
|
@@ -1056,7 +1052,11 @@ const createAreasStore = (initProps) => {
|
|
|
1056
1052
|
},
|
|
1057
1053
|
areaAdminActions: {
|
|
1058
1054
|
/**
|
|
1059
|
-
*
|
|
1055
|
+
* setFocus
|
|
1056
|
+
* @author cesar - automatic
|
|
1057
|
+
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1058
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
1059
|
+
* @updatedUser cesar - automatic
|
|
1060
1060
|
*/
|
|
1061
1061
|
setFocus: (newValue) => {
|
|
1062
1062
|
set((state) => {
|
|
@@ -47,6 +47,10 @@ export type OwnerState = {
|
|
|
47
47
|
* "isSkeleton" indica si el componente está en skeleton.
|
|
48
48
|
*/
|
|
49
49
|
status: AreasStatus;
|
|
50
|
+
/**
|
|
51
|
+
* "readyForHooks" indica si el componente ejecutó el efecto de carga y se suscrubió al eventemitter. Utilizado normalmente en storybook
|
|
52
|
+
*/
|
|
53
|
+
readyForHooks: boolean;
|
|
50
54
|
/**
|
|
51
55
|
* "isMobile" cuando el navegador está en modo celular
|
|
52
56
|
*/
|
|
@@ -64,7 +68,7 @@ export type OwnerState = {
|
|
|
64
68
|
/**
|
|
65
69
|
* Estados que se actulizan por fuera del store, a través de hooks
|
|
66
70
|
*/
|
|
67
|
-
export type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
|
|
71
|
+
export type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton' | 'readyForHooks'>;
|
|
68
72
|
/**
|
|
69
73
|
* Interface que define el estado del componente (variables y funciones )
|
|
70
74
|
*/
|
|
@@ -171,7 +175,7 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
171
175
|
* @param newIsMobile
|
|
172
176
|
* @returns
|
|
173
177
|
*/
|
|
174
|
-
setExternalState: (newExternalState: ExternalOwnerState) => void;
|
|
178
|
+
setExternalState: (newExternalState: Partial<ExternalOwnerState>) => void;
|
|
175
179
|
};
|
|
176
180
|
areaActions: {
|
|
177
181
|
addWindow: (newWindow: NewWindowProps) => void;
|
|
@@ -21,6 +21,7 @@ export declare const AREAS_DICCTIONARY: {
|
|
|
21
21
|
readonly label_collapse_window: "label_collapse_window";
|
|
22
22
|
readonly label_uncollapse_window: "label_uncollapse_window";
|
|
23
23
|
readonly label_module_actions: "label_module_actions";
|
|
24
|
+
readonly label_window: "label_window";
|
|
24
25
|
};
|
|
25
26
|
export type AreasDictionaryType = typeof AREAS_DICCTIONARY;
|
|
26
27
|
export declare const getAreasDictionary: (key: keyof AreasDictionaryType) => string;
|
|
@@ -22,7 +22,8 @@ const AREAS_DICCTIONARY = {
|
|
|
22
22
|
label_minimize_window: "label_minimize_window",
|
|
23
23
|
label_collapse_window: "label_collapse_window",
|
|
24
24
|
label_uncollapse_window: "label_uncollapse_window",
|
|
25
|
-
label_module_actions: "label_module_actions"
|
|
25
|
+
label_module_actions: "label_module_actions",
|
|
26
|
+
label_window: "label_window"
|
|
26
27
|
};
|
|
27
28
|
const getAreasDictionary = (key) => {
|
|
28
29
|
return `${AREAS_DICTIONARY_ID}.${key}`;
|
|
@@ -17,7 +17,9 @@ const ICONS = {
|
|
|
17
17
|
SHOW_OPTIONS: "showMoreVertical.svg",
|
|
18
18
|
CHEVRON_DOWN: "chevronDown.svg",
|
|
19
19
|
MODULE: "module.svg",
|
|
20
|
-
POPUP: "popup.svg"
|
|
20
|
+
POPUP: "popup.svg",
|
|
21
|
+
PENDING_ORDER: "pending_order.svg",
|
|
22
|
+
MORE_VERTICAL: "more_vertical.svg"
|
|
21
23
|
};
|
|
22
24
|
export {
|
|
23
25
|
ICONS as I
|
|
@@ -107,7 +107,7 @@ export type WindowState = {
|
|
|
107
107
|
* @returns void
|
|
108
108
|
* @author Andrés Quintero - automatic
|
|
109
109
|
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
110
|
-
* @updatedAt 2025-01-
|
|
110
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
111
111
|
* @updatedUser cesar - automatic
|
|
112
112
|
*/
|
|
113
113
|
fnQueryClose?: () => void;
|
|
@@ -3,8 +3,8 @@ const rhfAutocompleteSyles = {
|
|
|
3
3
|
* Styles for the root component.
|
|
4
4
|
* @author Andrés Quintero - automatic
|
|
5
5
|
* @createdAt 2025-01-08 10:36:40 - automatic
|
|
6
|
-
* @updatedAt 2025-01-
|
|
7
|
-
* @updatedUser
|
|
6
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
7
|
+
* @updatedUser cesar - automatic
|
|
8
8
|
*/
|
|
9
9
|
autocompleteRoot: ({ theme }) => ({
|
|
10
10
|
display: "flex",
|
|
@@ -19,8 +19,8 @@ const rhfAutocompleteSyles = {
|
|
|
19
19
|
* @returns {object} The styles for the label.
|
|
20
20
|
* @author Andrés Quintero - automatic
|
|
21
21
|
* @createdAt 2025-01-08 10:36:40 - automatic
|
|
22
|
-
* @updatedAt 2025-01-
|
|
23
|
-
* @updatedUser
|
|
22
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
23
|
+
* @updatedUser cesar - automatic
|
|
24
24
|
*/
|
|
25
25
|
label: ({ theme, ownerState }) => ({
|
|
26
26
|
...ownerState.disabled === true && {
|
|
@@ -5,7 +5,7 @@ import { RHFAutocompleteProps } from './types';
|
|
|
5
5
|
* @returns The RHFAutocomplete component.
|
|
6
6
|
* @author Andrés Quintero - automatic
|
|
7
7
|
* @createdAt 2025-01-08 10:36:40 - automatic
|
|
8
|
-
* @updatedAt 2025-01-
|
|
9
|
-
* @updatedUser
|
|
8
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
9
|
+
* @updatedUser cesar - automatic
|
|
10
10
|
*/
|
|
11
11
|
export declare function RHFAutocomplete<T>(props: RHFAutocompleteProps<T>): import("react/jsx-runtime").JSX.Element;
|