@m4l/components 0.1.80 → 0.1.82
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/export.d.ts +9 -1
- package/components/AccountPopover/AccountPopover.d.ts +21 -0
- package/components/AccountPopover/classes/types.d.ts +1 -1
- package/components/AccountPopover/{index.00d1d15f.js → index.0ba26726.js} +68 -72
- package/components/AccountPopover/subcomponents/MyAvatar/index.d.ts +2 -2
- package/components/AccountPopover/subcomponents/MyAvatar/types.d.ts +7 -0
- package/components/AccountPopover/subcomponents/PopOver/index.d.ts +6 -0
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +5 -4
- package/components/AccountPopover/types.d.ts +3 -4
- package/components/AppBar/{index.c85b100d.js → index.fadcefc6.js} +7 -7
- package/components/CommonActions/components/ActionCancel/{index.1051a117.js → index.6cf96d04.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.a0d727b2.js → index.a0335cbf.js} +15 -15
- package/components/CommonActions/components/ActionFormIntro/{index.a20dc88d.js → index.273b1b9f.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.bfe3256c.js → index.856df8ef.js} +2 -2
- package/components/CommonActions/components/Actions/{index.19d67bc6.js → index.5abb6ac4.js} +13 -13
- package/components/DataGrid/classes/index.d.ts +1 -0
- package/components/DataGrid/classes/types.d.ts +1 -0
- package/components/DataGrid/constants.d.ts +1 -0
- package/components/DataGrid/{index.2f175eba.js → index.03ad08af.js} +28 -681
- package/components/DataGrid/subcomponents/Actions/index.db54ec98.js +621 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js +64 -0
- package/components/DynamicFilter/constants.d.ts +1 -1
- package/components/DynamicFilter/{index.c1f9d560.js → index.9b72180b.js} +28 -28
- package/components/GridLayout/GridLayout.d.ts +1 -0
- package/components/GridLayout/classes/index.d.ts +4 -0
- package/components/GridLayout/classes/types.d.ts +17 -0
- package/components/GridLayout/constants.d.ts +26 -0
- package/components/GridLayout/{index.a792aacb.js → index.76bccc4f.js} +322 -575
- package/components/GridLayout/index.d.ts +4 -3
- package/components/GridLayout/subcomponents/Griditem/index.01fc14c3.js +370 -0
- package/components/GridLayout/subcomponents/Griditem/index.d.ts +9 -0
- package/components/GridLayout/subcomponents/Griditem/types.d.ts +103 -0
- package/components/GridLayout/subcomponents/Responsive/helper.d.ts +10 -0
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +15 -2
- package/components/GridLayout/{Responsive/index.1671380a.js → subcomponents/Responsive/index.e589d8bf.js} +95 -139
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +3 -6
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +114 -33
- package/components/GridLayout/{WidthProvider/index.9a26dfe4.js → subcomponents/WidthProvider/index.50dafd87.js} +5 -5
- package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +4 -5
- package/components/GridLayout/types.d.ts +83 -18
- package/components/GridLayout/utils.d.ts +15 -12
- package/components/HelperText/{index.6ef76993.js → index.6c3adb40.js} +7 -7
- package/components/Icon/{index.9fcd1476.js → index.2414ff25.js} +1 -1
- package/components/LanguagePopover/{index.1564bd08.js → index.66e11634.js} +7 -7
- package/components/ModalDialog/{index.fbc4cd71.js → index.4dc1c8ed.js} +4 -4
- package/components/NavLink/{index.6c9c2588.js → index.5859e048.js} +7 -7
- package/components/ObjectLogs/{index.eab1c15f.js → index.51de2deb.js} +17 -17
- package/components/PaperForm/{index.ba38a0bd.js → index.f931dc02.js} +1 -1
- package/components/Period/{index.26071a16.js → index.4fd9df2a.js} +14 -14
- package/components/PropertyValue/{index.18d3c0fd.js → index.1b09f426.js} +1 -1
- package/components/ScrollBar/{index.bbe48f4d.js → index.d4410cb5.js} +5 -0
- package/components/SideBar/{index.2f497e6c.js → index.72564ef2.js} +11 -6
- package/components/animate/AnimatedScroll/animatedScroll.d.ts +3 -0
- package/components/animate/AnimatedScroll/index.d.ts +1 -0
- package/components/animate/AnimatedScroll/types.d.ts +5 -0
- package/components/animate/index.4e9774a6.js +150 -0
- package/components/animate/index.d.ts +1 -0
- package/components/areas/components/AreasAdmin/{index.7a0dabbe.js → index.f011d49d.js} +60 -49
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/{index.fd49f06c.js → index.51a52736.js} +41 -153
- package/components/areas/components/{index.7756928a.js → index.f496660b.js} +11 -11
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.0a08a08b.js → index.9820bc7f.js} +12 -6
- package/components/areas/contexts/AreasContext/types.d.ts +4 -4
- package/components/areas/contexts/{index.b303b664.js → index.361acb6f.js} +1 -1
- package/components/areas/hooks/useAreas/{index.c6eb2569.js → index.b403f383.js} +1 -1
- package/components/areas/{index.6e67d89a.js → index.eacab372.js} +11 -11
- package/components/formatters/BooleanFormatter/{index.e8de8e4c.js → index.32de0803.js} +1 -1
- package/components/formatters/{index.67aeb049.js → index.d16d2331.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.d1bbb015.js → index.6edb51b1.js} +8 -8
- package/components/hook-form/RHFAutocompleteAsync/{index.f9a9ef48.js → index.c2ca5c66.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.7b4a21d7.js → index.c6c3933b.js} +8 -8
- package/components/hook-form/RHFDateTime/{index.46cf616e.js → index.3add0fa4.js} +8 -8
- package/components/hook-form/RHFPeriod/{index.ce513149.js → index.72edef4d.js} +2 -2
- package/components/hook-form/RHFTextField/{index.f7ee202c.js → index.20daa95e.js} +3 -3
- package/components/hook-form/RHFUpload/{index.1befd5bb.js → index.cc5adc15.js} +8 -8
- package/components/modal/{WindowBase.7e19843e.js → WindowBase.4016485b.js} +9 -9
- package/components/modal/{WindowConfirm.12a9608a.js → WindowConfirm.f148e495.js} +16 -16
- package/components/modal/{index.b0a7236c.js → index.e9fece72.js} +13 -13
- package/components/mui_extended/Accordion/{index.a6447bf8.js → index.42cef1c7.js} +3 -3
- package/components/mui_extended/Avatar/types.d.ts +3 -1
- package/components/mui_extended/Button/classes/types.d.ts +3 -0
- package/components/mui_extended/Button/{index.4288f9fc.js → index.40af964e.js} +8 -3
- package/components/mui_extended/Button/types.d.ts +2 -1
- package/components/mui_extended/IconButton/{index.12f1a3c3.js → index.a318316e.js} +1 -1
- package/components/mui_extended/MenuActions/{index.43a2e1ae.js → index.f6bfdd40.js} +2 -2
- package/components/mui_extended/Pager/classes/index.d.ts +12 -0
- package/components/mui_extended/Pager/classes/types.d.ts +12 -4
- package/components/mui_extended/Pager/{index.82e89328.js → index.da26e9d4.js} +114 -62
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/index.d.ts +3 -0
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/types.d.ts +12 -0
- package/components/mui_extended/Pager/{components → subcomponents}/PagerActions/types.d.ts +2 -0
- package/components/mui_extended/Tab/{index.c39a6681.js → index.0d5f96e6.js} +1 -1
- package/components/mui_extended/{index.d78bde19.js → index.f6a356b9.js} +7 -7
- package/contexts/ModalContext/{index.89805978.js → index.efc1135a.js} +1 -1
- package/contexts/RHFormContext/{index.fe175bab.js → index.b9266262.js} +1 -1
- package/hooks/useModal/{index.e1c5c31e.js → index.9b0cc3fe.js} +1 -1
- package/index.js +92 -88
- package/package.json +1 -2
- package/{vendor.f57d47a7.js → vendor.88ed58a5.js} +51 -48
- package/components/AccountPopover/subcomponents/MyAvatar/createAvatar.d.ts +0 -4
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +0 -26
- package/components/GridLayout/subcomponents/GridItem/types.d.ts +0 -78
- package/components/animate/index.1f8eadd4.js +0 -66
- /package/components/mui_extended/Pager/{components → subcomponents}/PagerActions/index.d.ts +0 -0
|
@@ -118,6 +118,7 @@ export interface LayoutItem extends BaseLayoutItem {
|
|
|
118
118
|
static?: boolean | undefined;
|
|
119
119
|
/**
|
|
120
120
|
* If false, will not be draggable. Overrides `static`.
|
|
121
|
+
* Valor por defecto: True
|
|
121
122
|
*/
|
|
122
123
|
isDraggable?: boolean | undefined;
|
|
123
124
|
/**
|
|
@@ -131,11 +132,56 @@ export interface LayoutItem extends BaseLayoutItem {
|
|
|
131
132
|
resizeHandles?: ResizeHandle[] | undefined;
|
|
132
133
|
/**
|
|
133
134
|
* If true and draggable, item will be moved only within grid.
|
|
135
|
+
* valor por defecto: False
|
|
134
136
|
*/
|
|
135
137
|
isBounded?: boolean | undefined;
|
|
136
138
|
}
|
|
137
|
-
|
|
139
|
+
/**
|
|
140
|
+
* GridLayoutState utilizado para saber si se está en draggin y si el componente ya se renderizó por primera vez
|
|
141
|
+
*/
|
|
142
|
+
export declare type GridLayoutState = {
|
|
143
|
+
/**
|
|
144
|
+
* "activeDrag" si es diferente a undefined es el layoutItem del placeHolder
|
|
145
|
+
*/
|
|
146
|
+
activeDrag?: LayoutItem;
|
|
147
|
+
/**
|
|
148
|
+
* "mounted" si ya se renderizó por primera vez, se detecta con useEffect
|
|
149
|
+
*/
|
|
150
|
+
mounted: boolean;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* "GridLayoutRefState" Debido a la limitación de React de no poder obtener el valor de las variables en
|
|
154
|
+
* las funciones que useCallback, se debe hacer una copia a un ref para poder obtener el último valor de estado.
|
|
155
|
+
*/
|
|
156
|
+
export declare type GridLayoutRefState = {
|
|
157
|
+
/**
|
|
158
|
+
* "layout" se guarda el layout actual con los cambios durante el resizing y/o dragging
|
|
159
|
+
*/
|
|
160
|
+
layout: Layout;
|
|
161
|
+
/**
|
|
162
|
+
* "activeDrag" placeHolder mientras se esta moviendo o haciendo resizing
|
|
163
|
+
*/
|
|
164
|
+
activeDrag?: LayoutItem;
|
|
165
|
+
/**
|
|
166
|
+
* "oldDragItem" snapshot de layoutItem cuando inicia el dragging
|
|
167
|
+
*/
|
|
168
|
+
oldDragItem?: LayoutItem;
|
|
169
|
+
/**
|
|
170
|
+
* "oldLayout" snapshot del layout cuando se inicia el drag o el resize
|
|
171
|
+
*/
|
|
172
|
+
oldLayout?: Layout;
|
|
173
|
+
/**
|
|
174
|
+
* "oldResizeItem" snapshot de layoutItem cuando inicia el resizzing
|
|
175
|
+
*/
|
|
176
|
+
oldResizeItem?: LayoutItem;
|
|
177
|
+
zIndexes: string[];
|
|
178
|
+
};
|
|
138
179
|
export declare type Layout = Array<LayoutItem>;
|
|
180
|
+
/** Tipos de datos para el responsive que es nec */
|
|
181
|
+
export declare type Breakpoint = string;
|
|
182
|
+
export interface Layouts {
|
|
183
|
+
[P: Breakpoint]: Layout;
|
|
184
|
+
}
|
|
139
185
|
export declare type CompactType = 'horizontal' | 'vertical' | null;
|
|
140
186
|
export declare type EventCallback = (layout: Layout, oldItem: LayoutItem | undefined, newItem: LayoutItem, placeholder: LayoutItem | undefined, event: DraggableEvent | SyntheticEvent, element: HTMLElement) => void;
|
|
141
187
|
export declare type LayoutItemType = 'placeholder' | 'layoutItem';
|
|
@@ -145,6 +191,16 @@ export declare type LayoutItemRenderProps = {
|
|
|
145
191
|
};
|
|
146
192
|
export declare type LayoutItemRender = (props: LayoutItemRenderProps) => JSX.Element;
|
|
147
193
|
export interface CoreProps {
|
|
194
|
+
/**
|
|
195
|
+
* "layoutItemRender" función encargada de renderizar los gridItems
|
|
196
|
+
* No es reactiva al cambio. Con la función que se inicia el componente
|
|
197
|
+
*
|
|
198
|
+
* */
|
|
199
|
+
layoutItemRender: LayoutItemRender;
|
|
200
|
+
/**
|
|
201
|
+
* Indica cual layout se va a maximizar
|
|
202
|
+
*/
|
|
203
|
+
maximizeId?: string | undefined;
|
|
148
204
|
/**
|
|
149
205
|
* The classname to add to the root element.
|
|
150
206
|
*/
|
|
@@ -156,15 +212,18 @@ export interface CoreProps {
|
|
|
156
212
|
/**
|
|
157
213
|
* This allows setting the initial width on the server side.
|
|
158
214
|
* This is required unless using the HOC <WidthProvider> or similar.
|
|
215
|
+
* Requerido para hacer maxización y cuando se redimensiona las ventanas, permite modificar
|
|
216
|
+
* el ancho de columna cambia
|
|
159
217
|
*/
|
|
160
|
-
|
|
218
|
+
containerWidth?: number | undefined;
|
|
161
219
|
/**
|
|
162
|
-
* This allows setting the initial heigth on the server side.
|
|
163
220
|
* This is required unless using the HOC <WidthProvider> or similar.
|
|
221
|
+
* Requerido para hacer maxización del GridItem
|
|
164
222
|
*/
|
|
165
|
-
|
|
223
|
+
containerHeight?: number | undefined;
|
|
166
224
|
/**
|
|
167
225
|
* If true, the container height swells and contracts to fit contents.
|
|
226
|
+
* Valor por defecto: false
|
|
168
227
|
*/
|
|
169
228
|
autoSize?: boolean | undefined;
|
|
170
229
|
/**
|
|
@@ -172,6 +231,7 @@ export interface CoreProps {
|
|
|
172
231
|
* For example: `draggableCancel: '.MyNonDraggableAreaClassName'`
|
|
173
232
|
* If you forget the leading. it will not work.
|
|
174
233
|
* "".react-resizable-handle" is always prepended to this value.
|
|
234
|
+
* Valor por defecto:
|
|
175
235
|
*/
|
|
176
236
|
draggableCancel?: string | undefined;
|
|
177
237
|
/**
|
|
@@ -182,14 +242,17 @@ export interface CoreProps {
|
|
|
182
242
|
draggableHandle?: string | undefined;
|
|
183
243
|
/**
|
|
184
244
|
* Compaction type.
|
|
245
|
+
* Valor por defecto: 'vertical'
|
|
185
246
|
*/
|
|
186
247
|
compactType?: CompactType;
|
|
187
248
|
/**
|
|
188
|
-
* Rows have a static height, but you can change this based on breakpoints if you like.
|
|
249
|
+
* Rows have a static height in pixles, but you can change this based on breakpoints if you like.
|
|
250
|
+
* Valor por defecto: 150'
|
|
189
251
|
*/
|
|
190
252
|
rowHeight?: number | undefined;
|
|
191
253
|
/**
|
|
192
|
-
* Altura cuando está colapsado
|
|
254
|
+
* Altura cuando está colapsado en pixels
|
|
255
|
+
* Valor inicial: 35
|
|
193
256
|
*/
|
|
194
257
|
colapsedHeight?: number;
|
|
195
258
|
/**
|
|
@@ -237,10 +300,12 @@ export interface CoreProps {
|
|
|
237
300
|
transformScale?: number | undefined;
|
|
238
301
|
/**
|
|
239
302
|
* If true, grid can be placed one over the other.
|
|
303
|
+
* Valor por defecto: false
|
|
240
304
|
*/
|
|
241
305
|
allowOverlap?: boolean | undefined;
|
|
242
306
|
/**
|
|
243
307
|
* If true, grid items won't change position when being dragged over.
|
|
308
|
+
* Valor por defecto: false
|
|
244
309
|
*/
|
|
245
310
|
preventCollision?: boolean | undefined;
|
|
246
311
|
/**
|
|
@@ -253,6 +318,7 @@ export interface CoreProps {
|
|
|
253
318
|
* along with `draggable={true}` otherwise this feature will work incorrect.
|
|
254
319
|
* onDragStart attribute is required for Firefox for a dragging initialization
|
|
255
320
|
* @see https://bugzilla.mozilla.org/show_bug.cgi?id=568313
|
|
321
|
+
* ****** No implementado aún *************
|
|
256
322
|
*/
|
|
257
323
|
isDroppable?: boolean | undefined;
|
|
258
324
|
/**
|
|
@@ -304,6 +370,7 @@ export interface CoreProps {
|
|
|
304
370
|
* Calls when an element is being dragged over the grid from outside as above.
|
|
305
371
|
* This callback should return an object to dynamically change the droppingItem size
|
|
306
372
|
* Return false to short-circuit the dragover
|
|
373
|
+
* ****** No implementado aún *************
|
|
307
374
|
*/
|
|
308
375
|
onDropDragOver?(e: any): {
|
|
309
376
|
w?: number;
|
|
@@ -312,23 +379,26 @@ export interface CoreProps {
|
|
|
312
379
|
/**
|
|
313
380
|
* Ref for getting a reference for the grid's wrapping div.
|
|
314
381
|
* You can use this instead of a regular ref and the deprecated `ReactDOM.findDOMNode()`` function.
|
|
382
|
+
* Importante: Referencia al Div del grid layout, para observar los cambios de altura y ancho con useResizeObserver
|
|
383
|
+
*
|
|
315
384
|
*/
|
|
316
385
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
317
386
|
}
|
|
318
387
|
export interface GridLayoutProps extends CoreProps {
|
|
319
|
-
layoutItemRender: LayoutItemRender;
|
|
320
388
|
/**
|
|
321
|
-
* Number of columns in this layout
|
|
389
|
+
* Number of columns in this layout, si no se proporciona 12
|
|
390
|
+
* No hace parte de CoreProps porque en resposive cambia el tipo de de dato
|
|
322
391
|
*/
|
|
323
392
|
cols?: number | undefined;
|
|
324
393
|
/**
|
|
325
|
-
*
|
|
394
|
+
* "margin": Indica la margen que va a haber entre gridItems en px [x,y]
|
|
326
395
|
*/
|
|
327
|
-
|
|
396
|
+
margin?: Margin;
|
|
328
397
|
/**
|
|
329
398
|
* Padding inside the container `[x, y]` in px.
|
|
399
|
+
* Si no se establece se usa containerMargin por defecto
|
|
330
400
|
*/
|
|
331
|
-
containerPadding?:
|
|
401
|
+
containerPadding?: Margin;
|
|
332
402
|
/**
|
|
333
403
|
* Layout is an array of object with the format:
|
|
334
404
|
*
|
|
@@ -340,13 +410,8 @@ export interface GridLayoutProps extends CoreProps {
|
|
|
340
410
|
*
|
|
341
411
|
* `{i: string, x: number, y: number, w: number, h: number}`
|
|
342
412
|
*
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
layout?: Layout | undefined;
|
|
346
|
-
/**
|
|
347
|
-
* Indica cual ventana se va a maximizar
|
|
348
|
-
*/
|
|
349
|
-
maximizeId?: string | undefined;
|
|
413
|
+
**/
|
|
414
|
+
layout: Layout;
|
|
350
415
|
/**
|
|
351
416
|
* Callback so you can save the layout.
|
|
352
417
|
* Calls back with (currentLayout) after every drag or resize stop.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompactType, Layout, LayoutItem, Position } from './types';
|
|
1
|
+
import { CompactType, Layout, LayoutItem, Layouts, Position } from './types';
|
|
2
2
|
export declare const noop: () => void;
|
|
3
3
|
/**
|
|
4
4
|
* Return the bottom coordinate of the layout.
|
|
@@ -6,20 +6,20 @@ export declare const noop: () => void;
|
|
|
6
6
|
* @param {Array} layout Layout array.
|
|
7
7
|
* @return {Number} Bottom coordinate.
|
|
8
8
|
*/
|
|
9
|
-
export declare function bottom(layout: Layout, colapsedHeight: number): number;
|
|
9
|
+
export declare function bottom(layout: Layout, colapsedHeight: number, rowHeight: number): number;
|
|
10
10
|
export declare function cloneLayoutItem(layoutItem: LayoutItem, layoutItemReplaceProps?: Partial<Exclude<LayoutItem, 'i'>>): LayoutItem;
|
|
11
11
|
export declare function cloneLayout(layout: Layout, layoutItemReplaceProps?: Partial<Exclude<LayoutItem, 'i'>>): Layout;
|
|
12
12
|
/**
|
|
13
13
|
* Given two layoutitems, check if they collide.
|
|
14
14
|
*/
|
|
15
|
-
export declare function collides(l1: LayoutItem, l2: LayoutItem, colapsedHeight: number): boolean;
|
|
15
|
+
export declare function collides(l1: LayoutItem, l2: LayoutItem, colapsedHeight: number, rowHeight: number): boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Compact an item in the layout.
|
|
18
18
|
*
|
|
19
19
|
* Modifies item.
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
|
-
export declare function compactItem(compareWith: Layout, l: LayoutItem, compactType: CompactType, cols: number, fullLayout: Layout, colapsedHeight: number, allowOverlap?: boolean): LayoutItem;
|
|
22
|
+
export declare function compactItem(compareWith: Layout, l: LayoutItem, compactType: CompactType, cols: number, fullLayout: Layout, colapsedHeight: number, rowHeight: number, allowOverlap?: boolean): LayoutItem;
|
|
23
23
|
/**
|
|
24
24
|
* Given a layout, compact it. This involves going down each y coordinate and removing gaps
|
|
25
25
|
* between items.
|
|
@@ -32,7 +32,7 @@ export declare function compactItem(compareWith: Layout, l: LayoutItem, compactT
|
|
|
32
32
|
* @param {Boolean} allowOverlap When `true`, allows overlapping grid items.
|
|
33
33
|
* @return {Array} Compacted Layout.
|
|
34
34
|
*/
|
|
35
|
-
export declare function compact(layout: Layout, compactType: CompactType, cols: number, colapsedHeight: number, allowOverlap?: boolean): Layout;
|
|
35
|
+
export declare function compact(layout: Layout, compactType: CompactType, cols: number, colapsedHeight: number, rowHeight: number, allowOverlap?: boolean): Layout;
|
|
36
36
|
/**
|
|
37
37
|
* Get a layout item by ID. Used so we can override later on if necessary.
|
|
38
38
|
*
|
|
@@ -48,7 +48,7 @@ export declare function getLayoutItem(layout: Layout, id: string): LayoutItem |
|
|
|
48
48
|
*/
|
|
49
49
|
export declare function getStatics(layout: Layout): Array<LayoutItem>;
|
|
50
50
|
export declare function fastPositionEqual(a: Position, b: Position): boolean;
|
|
51
|
-
export declare function getAllCollisions(layout: Layout, layoutItem: LayoutItem, colapsedHeight: number): Array<LayoutItem>;
|
|
51
|
+
export declare function getAllCollisions(layout: Layout, layoutItem: LayoutItem, colapsedHeight: number, rowHeight: number): Array<LayoutItem>;
|
|
52
52
|
/**
|
|
53
53
|
* Returns the first item this layout collides with.
|
|
54
54
|
* It doesn't appear to matter which order we approach this from, although
|
|
@@ -57,7 +57,7 @@ export declare function getAllCollisions(layout: Layout, layoutItem: LayoutItem,
|
|
|
57
57
|
* @param {Object} layoutItem Layout item.
|
|
58
58
|
* @return {Object|undefined} A colliding layout item, or undefined.
|
|
59
59
|
*/
|
|
60
|
-
export declare function getFirstCollision(layout: Layout, layoutItem: LayoutItem, colapsedHeight: number): LayoutItem | undefined;
|
|
60
|
+
export declare function getFirstCollision(layout: Layout, layoutItem: LayoutItem, colapsedHeight: number, rowHeight: number): LayoutItem | undefined;
|
|
61
61
|
export declare function modifyLayout(layout: Layout, layoutItem: LayoutItem): Layout;
|
|
62
62
|
/**
|
|
63
63
|
* This is where the magic needs to happen - given a collision, move an element away from the collision.
|
|
@@ -67,7 +67,7 @@ export declare function modifyLayout(layout: Layout, layoutItem: LayoutItem): La
|
|
|
67
67
|
* @param {LayoutItem} collidesWith Layout item we're colliding with.
|
|
68
68
|
* @param {LayoutItem} itemToMove Layout item we're moving.
|
|
69
69
|
*/
|
|
70
|
-
export declare function moveElementAwayFromCollision(layout: Layout, collidesWith: LayoutItem, itemToMove: LayoutItem, isUserAction: boolean, compactType: CompactType, cols: number, colapsedHeight: number): Layout;
|
|
70
|
+
export declare function moveElementAwayFromCollision(layout: Layout, collidesWith: LayoutItem, itemToMove: LayoutItem, isUserAction: boolean, compactType: CompactType, cols: number, colapsedHeight: number, rowHeight: number): Layout;
|
|
71
71
|
/**
|
|
72
72
|
* Move an element. Responsible for doing cascading movements of other elements.
|
|
73
73
|
*
|
|
@@ -78,7 +78,7 @@ export declare function moveElementAwayFromCollision(layout: Layout, collidesWit
|
|
|
78
78
|
* @param {Number} [x] X position in grid units.
|
|
79
79
|
* @param {Number} [y] Y position in grid units.
|
|
80
80
|
*/
|
|
81
|
-
export declare function moveElement(layout: Layout, l: LayoutItem, x: number | undefined, y: number | undefined, isUserAction: boolean, preventCollision: boolean, compactType: CompactType, cols: number, colapsedHeight: number, allowOverlap: boolean): Layout;
|
|
81
|
+
export declare function moveElement(layout: Layout, l: LayoutItem, x: number | undefined, y: number | undefined, isUserAction: boolean, preventCollision: boolean, compactType: CompactType, cols: number, colapsedHeight: number, rowHeight: number, allowOverlap: boolean): Layout;
|
|
82
82
|
/**
|
|
83
83
|
* Helper to convert a number to a percentage string.
|
|
84
84
|
*
|
|
@@ -118,6 +118,9 @@ export declare function withLayoutItem(layout: Layout, itemKey: string, cb: (l:
|
|
|
118
118
|
*/
|
|
119
119
|
export declare function correctBounds(layout: Layout, bounds: {
|
|
120
120
|
cols: number;
|
|
121
|
-
}, colapsedHeight: number): Layout;
|
|
122
|
-
export declare function getH(h: number, colapsedHeight: number, colapsed?: boolean): number;
|
|
123
|
-
export declare function getLayoutItemH(layoutItem: LayoutItem, colapsedHeight: number): number;
|
|
121
|
+
}, colapsedHeight: number, rowHeight: number): Layout;
|
|
122
|
+
export declare function getH(h: number, colapsedHeight: number, rowHeight: number, colapsed?: boolean): number;
|
|
123
|
+
export declare function getLayoutItemH(layoutItem: LayoutItem, colapsedHeight: number, rowHeight: number): number;
|
|
124
|
+
export declare function isEqualLayoutItem(layoutA: LayoutItem, layoutB: LayoutItem): boolean;
|
|
125
|
+
export declare function isEqualLayout(layoutA: Layout, layoutB: Layout): boolean;
|
|
126
|
+
export declare function isEqualLayouts(layoutsA: Layouts, layoutsB: Layouts): boolean;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@m4l/core";
|
|
4
|
-
import "../Icon/index.
|
|
4
|
+
import "../Icon/index.2414ff25.js";
|
|
5
5
|
import "clsx";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import "../mui_extended/IconButton/index.
|
|
7
|
+
import "../mui_extended/IconButton/index.a318316e.js";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
|
-
import "../mui_extended/Accordion/index.
|
|
9
|
+
import "../mui_extended/Accordion/index.42cef1c7.js";
|
|
10
10
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
11
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
12
12
|
import "react-router-dom";
|
|
13
13
|
import "@mui/material/Button";
|
|
14
|
-
import "../mui_extended/Button/index.
|
|
14
|
+
import "../mui_extended/Button/index.40af964e.js";
|
|
15
15
|
import "../mui_extended/CheckBox.5f6c78b0.js";
|
|
16
16
|
import "../mui_extended/Badge/index.cad260fe.js";
|
|
17
17
|
import "../Image/index.c18ebf5a.js";
|
|
18
18
|
import "@mui/lab";
|
|
19
|
-
import "../mui_extended/MenuActions/index.
|
|
19
|
+
import "../mui_extended/MenuActions/index.f6bfdd40.js";
|
|
20
20
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
21
|
-
import "../mui_extended/Pager/index.
|
|
22
|
-
import "../mui_extended/Tab/index.
|
|
21
|
+
import "../mui_extended/Pager/index.da26e9d4.js";
|
|
22
|
+
import "../mui_extended/Tab/index.0d5f96e6.js";
|
|
23
23
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
24
24
|
import { unstable_composeClasses } from "@mui/base";
|
|
25
25
|
const HelperTextRoot = styled("div")(({
|
|
@@ -3,7 +3,7 @@ import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useEnvironment } from "@m4l/core";
|
|
6
|
-
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.
|
|
6
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.72564ef2.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
9
|
const IconRoot = styled("div")(({
|
|
@@ -3,25 +3,25 @@ import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem }
|
|
|
3
3
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
4
4
|
import { useLocales } from "@m4l/graphics";
|
|
5
5
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
6
|
-
import "../Icon/index.
|
|
6
|
+
import "../Icon/index.2414ff25.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import "clsx";
|
|
9
9
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
|
-
import "../mui_extended/IconButton/index.
|
|
11
|
-
import "../mui_extended/Accordion/index.
|
|
10
|
+
import "../mui_extended/IconButton/index.a318316e.js";
|
|
11
|
+
import "../mui_extended/Accordion/index.42cef1c7.js";
|
|
12
12
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
13
13
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
14
14
|
import "react-router-dom";
|
|
15
15
|
import "@mui/material/Button";
|
|
16
|
-
import { I as ImageButton } from "../mui_extended/Button/index.
|
|
16
|
+
import { I as ImageButton } from "../mui_extended/Button/index.40af964e.js";
|
|
17
17
|
import "../mui_extended/CheckBox.5f6c78b0.js";
|
|
18
18
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
19
19
|
import "../mui_extended/Badge/index.cad260fe.js";
|
|
20
20
|
import "@mui/lab";
|
|
21
|
-
import "../mui_extended/MenuActions/index.
|
|
21
|
+
import "../mui_extended/MenuActions/index.f6bfdd40.js";
|
|
22
22
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
|
-
import "../mui_extended/Pager/index.
|
|
24
|
-
import "../mui_extended/Tab/index.
|
|
23
|
+
import "../mui_extended/Pager/index.da26e9d4.js";
|
|
24
|
+
import "../mui_extended/Tab/index.0d5f96e6.js";
|
|
25
25
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
26
26
|
import { unstable_composeClasses } from "@mui/base";
|
|
27
27
|
const LanguagePopoverRoot = styled("div")(({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useTheme, Dialog, Paper } from "@mui/material";
|
|
2
2
|
import { c as cjs } from "../../react-draggable.7abb5d0a.js";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.9b0cc3fe.js";
|
|
4
4
|
import { R as ResizeableWindow } from "../Resizeable/index.9a9c79a4.js";
|
|
5
5
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
6
|
-
import { I as Icon } from "../Icon/index.
|
|
6
|
+
import { I as Icon } from "../Icon/index.2414ff25.js";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
8
|
import { I as ICONS } from "../areas/icons.8266ccc8.js";
|
|
9
|
-
import { m as modalUtilityClasses } from "../modal/index.
|
|
9
|
+
import { m as modalUtilityClasses } from "../modal/index.e9fece72.js";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
11
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.5abb6ac4.js";
|
|
12
12
|
const DragabblePaperComponent = (props) => {
|
|
13
13
|
return /* @__PURE__ */ jsx(cjs.exports, {
|
|
14
14
|
handle: ".m4l_draggable_handle",
|
|
@@ -2,25 +2,25 @@ import { NavLink as NavLink$1 } from "react-router-dom";
|
|
|
2
2
|
import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/material";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@m4l/core";
|
|
5
|
-
import "../Icon/index.
|
|
5
|
+
import "../Icon/index.2414ff25.js";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
9
|
-
import "../mui_extended/IconButton/index.
|
|
9
|
+
import "../mui_extended/IconButton/index.a318316e.js";
|
|
10
10
|
import "@m4l/graphics";
|
|
11
|
-
import "../mui_extended/Accordion/index.
|
|
11
|
+
import "../mui_extended/Accordion/index.42cef1c7.js";
|
|
12
12
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
13
13
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
14
14
|
import "@mui/material/Button";
|
|
15
|
-
import "../mui_extended/Button/index.
|
|
15
|
+
import "../mui_extended/Button/index.40af964e.js";
|
|
16
16
|
import "../mui_extended/CheckBox.5f6c78b0.js";
|
|
17
17
|
import "../mui_extended/Badge/index.cad260fe.js";
|
|
18
18
|
import "../Image/index.c18ebf5a.js";
|
|
19
19
|
import "@mui/lab";
|
|
20
|
-
import "../mui_extended/MenuActions/index.
|
|
20
|
+
import "../mui_extended/MenuActions/index.f6bfdd40.js";
|
|
21
21
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
22
|
-
import "../mui_extended/Pager/index.
|
|
23
|
-
import "../mui_extended/Tab/index.
|
|
22
|
+
import "../mui_extended/Pager/index.da26e9d4.js";
|
|
23
|
+
import "../mui_extended/Tab/index.0d5f96e6.js";
|
|
24
24
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
25
25
|
import { unstable_composeClasses } from "@mui/base";
|
|
26
26
|
const componentName = "M4LNavLink";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import { useNetwork, useModuleDictionary, useEnvironment, usePaginate } from "@m4l/core";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.
|
|
4
|
+
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.03ad08af.js";
|
|
5
5
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
6
6
|
import { Tooltip, IconButton } from "@mui/material";
|
|
7
7
|
import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
|
|
8
8
|
import { R as ReactJson } from "../../react-json-view.57125fcf.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
11
|
-
import { I as Icon } from "../Icon/index.
|
|
10
|
+
import { u as useModal } from "../../hooks/useModal/index.9b0cc3fe.js";
|
|
11
|
+
import { I as Icon } from "../Icon/index.2414ff25.js";
|
|
12
12
|
import "../../react-draggable.7abb5d0a.js";
|
|
13
13
|
import "../Resizeable/index.9a9c79a4.js";
|
|
14
|
-
import "../modal/index.
|
|
15
|
-
import "../CommonActions/components/Actions/index.
|
|
14
|
+
import "../modal/index.e9fece72.js";
|
|
15
|
+
import "../CommonActions/components/Actions/index.5abb6ac4.js";
|
|
16
16
|
import "@mui/material/Button";
|
|
17
|
-
import "../mui_extended/Button/index.
|
|
17
|
+
import "../mui_extended/Button/index.40af964e.js";
|
|
18
18
|
import "clsx";
|
|
19
19
|
import "react-hook-form";
|
|
20
|
-
import "../mui_extended/IconButton/index.
|
|
20
|
+
import "../mui_extended/IconButton/index.a318316e.js";
|
|
21
21
|
import "zustand";
|
|
22
|
-
import "../areas/contexts/AreasContext/index.
|
|
23
|
-
import "../areas/components/AreasAdmin/index.
|
|
22
|
+
import "../areas/contexts/AreasContext/index.9820bc7f.js";
|
|
23
|
+
import "../areas/components/AreasAdmin/index.f011d49d.js";
|
|
24
24
|
import "zustand/shallow";
|
|
25
|
-
import "../ScrollBar/index.
|
|
26
|
-
import "../mui_extended/Accordion/index.
|
|
25
|
+
import "../ScrollBar/index.d4410cb5.js";
|
|
26
|
+
import "../mui_extended/Accordion/index.42cef1c7.js";
|
|
27
27
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
28
28
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
29
29
|
import "react-router-dom";
|
|
@@ -31,17 +31,17 @@ import "../mui_extended/CheckBox.5f6c78b0.js";
|
|
|
31
31
|
import "../mui_extended/Badge/index.cad260fe.js";
|
|
32
32
|
import "../Image/index.c18ebf5a.js";
|
|
33
33
|
import "@mui/lab";
|
|
34
|
-
import "../mui_extended/MenuActions/index.
|
|
34
|
+
import "../mui_extended/MenuActions/index.f6bfdd40.js";
|
|
35
35
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
36
|
-
import "../mui_extended/Pager/index.
|
|
37
|
-
import "../mui_extended/Tab/index.
|
|
36
|
+
import "../mui_extended/Pager/index.da26e9d4.js";
|
|
37
|
+
import "../mui_extended/Tab/index.0d5f96e6.js";
|
|
38
38
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
39
|
-
import "../areas/components/AreasViewer/index.
|
|
39
|
+
import "../areas/components/AreasViewer/index.51a52736.js";
|
|
40
40
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
41
41
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
42
42
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
43
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
44
|
-
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.
|
|
43
|
+
import { W as WindowBase } from "../modal/WindowBase.4016485b.js";
|
|
44
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.9b72180b.js";
|
|
45
45
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
46
46
|
const Container$1 = styled("div")(() => ({
|
|
47
47
|
height: "100%",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
|
-
import { I as Icon } from "../Icon/index.
|
|
4
|
+
import { I as Icon } from "../Icon/index.2414ff25.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
const PaperFormRoot = styled("div")(({
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass, Autocomplete, TextField, Skeleton } from "@mui/material";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import { I as Icon } from "../Icon/index.
|
|
5
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
4
|
+
import { I as Icon } from "../Icon/index.2414ff25.js";
|
|
5
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.5abb6ac4.js";
|
|
6
6
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import "@mui/material/Button";
|
|
8
|
-
import "../mui_extended/Button/index.
|
|
8
|
+
import "../mui_extended/Button/index.40af964e.js";
|
|
9
9
|
import "clsx";
|
|
10
10
|
import "react-hook-form";
|
|
11
|
-
import "../../contexts/ModalContext/index.
|
|
11
|
+
import "../../contexts/ModalContext/index.efc1135a.js";
|
|
12
12
|
import "../../react-draggable.7abb5d0a.js";
|
|
13
13
|
import "../Resizeable/index.9a9c79a4.js";
|
|
14
14
|
import "@m4l/graphics";
|
|
15
|
-
import "../modal/index.
|
|
15
|
+
import "../modal/index.e9fece72.js";
|
|
16
16
|
import "../Image/index.c18ebf5a.js";
|
|
17
|
-
import "../mui_extended/IconButton/index.
|
|
18
|
-
import "../mui_extended/Accordion/index.
|
|
17
|
+
import "../mui_extended/IconButton/index.a318316e.js";
|
|
18
|
+
import "../mui_extended/Accordion/index.42cef1c7.js";
|
|
19
19
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
20
20
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
21
21
|
import "react-router-dom";
|
|
22
22
|
import "../mui_extended/CheckBox.5f6c78b0.js";
|
|
23
23
|
import "../mui_extended/Badge/index.cad260fe.js";
|
|
24
24
|
import "@mui/lab";
|
|
25
|
-
import "../mui_extended/MenuActions/index.
|
|
25
|
+
import "../mui_extended/MenuActions/index.f6bfdd40.js";
|
|
26
26
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
27
|
-
import "../mui_extended/Pager/index.
|
|
28
|
-
import "../mui_extended/Tab/index.
|
|
27
|
+
import "../mui_extended/Pager/index.da26e9d4.js";
|
|
28
|
+
import "../mui_extended/Tab/index.0d5f96e6.js";
|
|
29
29
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
30
30
|
import "zustand";
|
|
31
|
-
import "../areas/contexts/AreasContext/index.
|
|
32
|
-
import "../areas/components/AreasAdmin/index.
|
|
31
|
+
import "../areas/contexts/AreasContext/index.9820bc7f.js";
|
|
32
|
+
import "../areas/components/AreasAdmin/index.f011d49d.js";
|
|
33
33
|
import "zustand/shallow";
|
|
34
|
-
import "../ScrollBar/index.
|
|
35
|
-
import "../areas/components/AreasViewer/index.
|
|
34
|
+
import "../ScrollBar/index.d4410cb5.js";
|
|
35
|
+
import "../areas/components/AreasViewer/index.51a52736.js";
|
|
36
36
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
37
37
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
38
38
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
4
|
+
import { g as getNameDataTestId } from "../../vendor.88ed58a5.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
7
7
|
import { useModuleSkeleton } from "@m4l/core";
|
|
@@ -38,6 +38,11 @@ const SimpleBarStyle = styled(SimpleBarReact)(({
|
|
|
38
38
|
"& .simplebar-content": {
|
|
39
39
|
display: "flex",
|
|
40
40
|
height: "100%"
|
|
41
|
+
},
|
|
42
|
+
'& .simplebar-content-wrapper[style*="overflow: hidden scroll;"] ': {
|
|
43
|
+
"& .simplebar-content": {
|
|
44
|
+
marginRight: "20px"
|
|
45
|
+
}
|
|
41
46
|
}
|
|
42
47
|
}));
|
|
43
48
|
function ScrollBar({
|
|
@@ -3,14 +3,14 @@ import { useEnvironment } from "@m4l/core";
|
|
|
3
3
|
import { createContext, useContext, useState } from "react";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
5
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.a318316e.js";
|
|
7
7
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
8
|
import { styled as styled$1, generateUtilityClasses, ListItemText, ListItemButton, Collapse, useTheme, Skeleton, Drawer as Drawer$1 } from "@mui/material";
|
|
9
|
-
import { I as Icon, A as ArrowIcon } from "../Icon/index.
|
|
9
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.2414ff25.js";
|
|
10
10
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
13
|
-
import { S as ScrollBar } from "../ScrollBar/index.
|
|
13
|
+
import { S as ScrollBar } from "../ScrollBar/index.d4410cb5.js";
|
|
14
14
|
import { styled, alpha } from "@mui/material/styles";
|
|
15
15
|
import { unstable_composeClasses } from "@mui/base";
|
|
16
16
|
import { g as getComponentUtilityClass } from "../../utils/index.c43a95f4.js";
|
|
@@ -436,7 +436,8 @@ const NavSubItemContent = (props) => {
|
|
|
436
436
|
openSub
|
|
437
437
|
} = props;
|
|
438
438
|
const {
|
|
439
|
-
title
|
|
439
|
+
title,
|
|
440
|
+
icon_url
|
|
440
441
|
} = item;
|
|
441
442
|
const {
|
|
442
443
|
isItemActive,
|
|
@@ -446,6 +447,10 @@ const NavSubItemContent = (props) => {
|
|
|
446
447
|
const active = isItemActive(item);
|
|
447
448
|
const isDesktop = useResponsiveDesktop();
|
|
448
449
|
const hasChildren = item.children && Array.isArray(item.children) && item.children.length > 0;
|
|
450
|
+
const {
|
|
451
|
+
host_static_assets,
|
|
452
|
+
environment_assets
|
|
453
|
+
} = useEnvironment();
|
|
449
454
|
const handlerClick = () => {
|
|
450
455
|
onClick(item);
|
|
451
456
|
if (!hasChildren || hasChildren === void 0) {
|
|
@@ -463,8 +468,8 @@ const NavSubItemContent = (props) => {
|
|
|
463
468
|
...process.env.NODE_ENV !== "production" ? {
|
|
464
469
|
[TEST_PROP_ID]: getNameDataTestId("navSubItemContentRoot")
|
|
465
470
|
} : {},
|
|
466
|
-
children: [/* @__PURE__ */ jsx(
|
|
467
|
-
|
|
471
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
472
|
+
src: `${host_static_assets}/${environment_assets}/frontend/domain/microfrontends/${icon_url}`
|
|
468
473
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
469
474
|
variant: "body",
|
|
470
475
|
children: title
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AnimatedScroll } from './animatedScroll';
|