@m4l/components 0.2.6 → 0.2.7
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/constants.d.ts +0 -2
- package/components/DataGrid/{index.d14640ca.js → index.84a4843c.js} +85 -85
- package/components/DataGrid/subcomponents/Actions/{index.3afb1664.js → index.dbcbee6d.js} +1 -1
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.d.ts +1 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/constants.d.ts +1 -0
- package/components/DynamicFilter/{index.118c9d62.js → index.39033eb7.js} +1 -1
- package/components/ObjectLogs/{index.070914d9.js → index.aeb2540f.js} +2 -2
- package/components/PropertyValue/{index.3b5c9ac7.js → index.43ac2a71.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.27c6d03e.js → index.d2ce1682.js} +1 -1
- package/components/areas/components/AreasViewer/{index.374d105d.js → index.977d2804.js} +3 -3
- package/components/areas/contexts/AreasContext/{index.287ec96e.js → index.79ec57d5.js} +2 -2
- package/components/areas/hooks/useAreas/{index.66c6cf2f.js → index.de0591fe.js} +1 -1
- package/components/mui_extended/Accordion/{index.22b4a776.js → index.eddcfe40.js} +1 -1
- package/components/mui_extended/Tab/{index.32349e95.js → index.f8795137.js} +1 -1
- package/hooks/useTab/{index.f24a704c.js → index.9c611b31.js} +1 -1
- package/index.js +13 -13
- package/package.json +1 -1
- package/{vendor.632361a1.js → vendor.75facc5e.js} +10 -10
|
@@ -4,14 +4,14 @@ import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.89
|
|
|
4
4
|
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.5629e82b.js";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
6
|
import { forwardRef, createContext, useState, useMemo, useEffect, useCallback, useContext, useRef, useLayoutEffect } from "react";
|
|
7
|
-
import {
|
|
7
|
+
import { H as HeaderRenderer, u as useRowSelection, S as SelectCellFormatter, D as DataGrid$1 } from "../../react-data-grid.c5377916.js";
|
|
8
8
|
import { useDrag, useDrop, DndProvider } from "react-dnd";
|
|
9
9
|
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
10
10
|
import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
11
|
-
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.
|
|
11
|
+
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.dbcbee6d.js";
|
|
12
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
13
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
14
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
14
|
+
import { g as getNameDataTestId } from "../../vendor.75facc5e.js";
|
|
15
15
|
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.4f3cbdce.js";
|
|
16
16
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
17
17
|
import { C as ConcatenatedFormatter } from "../formatters/index.4ca6946d.js";
|
|
@@ -272,88 +272,6 @@ function useDataGrid() {
|
|
|
272
272
|
throw new Error("useDataGrid context must be use inside DataGridContext");
|
|
273
273
|
return context;
|
|
274
274
|
}
|
|
275
|
-
const DATAGRID_PREFIX_NAME = "M4LDataGrid";
|
|
276
|
-
const DATAGRID_SELECT_COLUMN_KEY = "M4LDataGrid-CheckedColumn";
|
|
277
|
-
const DATAGRID_ACTIONS_COLUMN_KEY = "M4LDataGrid-ActionsColumn";
|
|
278
|
-
const filterColumnClassName = "filter-cell";
|
|
279
|
-
const filterHeight = 35;
|
|
280
|
-
function SelectGroupFormatter(props) {
|
|
281
|
-
const [isRowSelected, onRowSelectionChange] = useRowSelection();
|
|
282
|
-
const onChange = (checked) => {
|
|
283
|
-
onRowSelectionChange({
|
|
284
|
-
row: props.row,
|
|
285
|
-
checked,
|
|
286
|
-
isShiftClick: false
|
|
287
|
-
});
|
|
288
|
-
};
|
|
289
|
-
const cellFormater = SelectCellFormatter({
|
|
290
|
-
value: isRowSelected,
|
|
291
|
-
isCellSelected: props.isCellSelected,
|
|
292
|
-
onChange,
|
|
293
|
-
"aria-label": "Select Group"
|
|
294
|
-
});
|
|
295
|
-
return cellFormater;
|
|
296
|
-
}
|
|
297
|
-
function SelectFormatter(props) {
|
|
298
|
-
const {
|
|
299
|
-
checkedRows,
|
|
300
|
-
onCheckedRowsChange,
|
|
301
|
-
rowKeyGetter
|
|
302
|
-
} = useDataGrid();
|
|
303
|
-
const onChange = (checked, _isShiftClick) => {
|
|
304
|
-
const newCheckedRows = new Set(checkedRows);
|
|
305
|
-
if (checked) {
|
|
306
|
-
newCheckedRows.add(rowKeyGetter(props.row));
|
|
307
|
-
} else {
|
|
308
|
-
newCheckedRows.delete(rowKeyGetter(props.row));
|
|
309
|
-
}
|
|
310
|
-
onCheckedRowsChange && onCheckedRowsChange(newCheckedRows);
|
|
311
|
-
};
|
|
312
|
-
return /* @__PURE__ */ jsx(SelectCellFormatter, {
|
|
313
|
-
value: checkedRows?.has(rowKeyGetter(props.row)) || false,
|
|
314
|
-
isCellSelected: props.isCellSelected,
|
|
315
|
-
onChange,
|
|
316
|
-
"aria-label": "Select"
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
const SelectColumnHeaderRenderer = (props) => {
|
|
320
|
-
const {
|
|
321
|
-
rows,
|
|
322
|
-
rowKeyGetter,
|
|
323
|
-
onCheckedRowsChange,
|
|
324
|
-
checkedRows
|
|
325
|
-
} = useDataGrid();
|
|
326
|
-
const onAllRowsCheckedChange = (checked) => {
|
|
327
|
-
if (!onCheckedRowsChange)
|
|
328
|
-
return;
|
|
329
|
-
if (checked) {
|
|
330
|
-
onCheckedRowsChange(new Set(rows.map((r) => rowKeyGetter(r))));
|
|
331
|
-
} else {
|
|
332
|
-
onCheckedRowsChange(/* @__PURE__ */ new Set());
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
const allRowsChecked = rows.length === checkedRows?.size;
|
|
336
|
-
return SelectCellFormatter({
|
|
337
|
-
"aria-label": "Select All",
|
|
338
|
-
isCellSelected: props.isCellSelected,
|
|
339
|
-
value: allRowsChecked,
|
|
340
|
-
onChange: onAllRowsCheckedChange
|
|
341
|
-
});
|
|
342
|
-
};
|
|
343
|
-
const SelectColumn = {
|
|
344
|
-
key: DATAGRID_SELECT_COLUMN_KEY,
|
|
345
|
-
name: "",
|
|
346
|
-
width: 60,
|
|
347
|
-
maxWidth: 60,
|
|
348
|
-
isDraggable: false,
|
|
349
|
-
resizable: false,
|
|
350
|
-
sortable: false,
|
|
351
|
-
frozen: true,
|
|
352
|
-
type: "boolean",
|
|
353
|
-
headerRenderer: SelectColumnHeaderRenderer,
|
|
354
|
-
formatter: SelectFormatter,
|
|
355
|
-
groupFormatter: SelectGroupFormatter
|
|
356
|
-
};
|
|
357
275
|
function useFocusRef(isSelected) {
|
|
358
276
|
const ref = useRef(null);
|
|
359
277
|
useLayoutEffect(() => {
|
|
@@ -531,6 +449,7 @@ const getDragHeaderRenderer = (handleColumnsReorder) => {
|
|
|
531
449
|
}
|
|
532
450
|
return HeaderRenderer2;
|
|
533
451
|
};
|
|
452
|
+
const DATAGRID_ACTIONS_COLUMN_KEY = "M4LDataGrid-ActionsColumn";
|
|
534
453
|
const WrapperSkeleton = styled("div")(() => ({
|
|
535
454
|
display: "flex",
|
|
536
455
|
width: "100%",
|
|
@@ -550,6 +469,7 @@ function SkeletonFormatter() {
|
|
|
550
469
|
})
|
|
551
470
|
});
|
|
552
471
|
}
|
|
472
|
+
const DATAGRID_SELECT_COLUMN_KEY = "M4LDataGrid-CheckedColumn";
|
|
553
473
|
function getComparator(columns, sortColumn) {
|
|
554
474
|
const column = columns.find((d) => d.key === sortColumn);
|
|
555
475
|
let typeOrder = "string";
|
|
@@ -725,6 +645,85 @@ const useSortColumnsRows = (sourceColumns, sourceRows) => {
|
|
|
725
645
|
}, [sourceRows, sortColumns, filters]);
|
|
726
646
|
return { finalColumns, sortColumns, setSortColumns, finalRows };
|
|
727
647
|
};
|
|
648
|
+
const filterColumnClassName = "filter-cell";
|
|
649
|
+
const filterHeight = 35;
|
|
650
|
+
function SelectGroupFormatter(props) {
|
|
651
|
+
const [isRowSelected, onRowSelectionChange] = useRowSelection();
|
|
652
|
+
const onChange = (checked) => {
|
|
653
|
+
onRowSelectionChange({
|
|
654
|
+
row: props.row,
|
|
655
|
+
checked,
|
|
656
|
+
isShiftClick: false
|
|
657
|
+
});
|
|
658
|
+
};
|
|
659
|
+
const cellFormater = SelectCellFormatter({
|
|
660
|
+
value: isRowSelected,
|
|
661
|
+
isCellSelected: props.isCellSelected,
|
|
662
|
+
onChange,
|
|
663
|
+
"aria-label": "Select Group"
|
|
664
|
+
});
|
|
665
|
+
return cellFormater;
|
|
666
|
+
}
|
|
667
|
+
function SelectFormatter(props) {
|
|
668
|
+
const {
|
|
669
|
+
checkedRows,
|
|
670
|
+
onCheckedRowsChange,
|
|
671
|
+
rowKeyGetter
|
|
672
|
+
} = useDataGrid();
|
|
673
|
+
const onChange = (checked, _isShiftClick) => {
|
|
674
|
+
const newCheckedRows = new Set(checkedRows);
|
|
675
|
+
if (checked) {
|
|
676
|
+
newCheckedRows.add(rowKeyGetter(props.row));
|
|
677
|
+
} else {
|
|
678
|
+
newCheckedRows.delete(rowKeyGetter(props.row));
|
|
679
|
+
}
|
|
680
|
+
onCheckedRowsChange && onCheckedRowsChange(newCheckedRows);
|
|
681
|
+
};
|
|
682
|
+
return /* @__PURE__ */ jsx(SelectCellFormatter, {
|
|
683
|
+
value: checkedRows?.has(rowKeyGetter(props.row)) || false,
|
|
684
|
+
isCellSelected: props.isCellSelected,
|
|
685
|
+
onChange,
|
|
686
|
+
"aria-label": "Select"
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
const SelectColumnHeaderRenderer = (props) => {
|
|
690
|
+
const {
|
|
691
|
+
rows,
|
|
692
|
+
rowKeyGetter,
|
|
693
|
+
onCheckedRowsChange,
|
|
694
|
+
checkedRows
|
|
695
|
+
} = useDataGrid();
|
|
696
|
+
const onAllRowsCheckedChange = (checked) => {
|
|
697
|
+
if (!onCheckedRowsChange)
|
|
698
|
+
return;
|
|
699
|
+
if (checked) {
|
|
700
|
+
onCheckedRowsChange(new Set(rows.map((r) => rowKeyGetter(r))));
|
|
701
|
+
} else {
|
|
702
|
+
onCheckedRowsChange(/* @__PURE__ */ new Set());
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
const allRowsChecked = rows.length === checkedRows?.size;
|
|
706
|
+
return SelectCellFormatter({
|
|
707
|
+
"aria-label": "Select All",
|
|
708
|
+
isCellSelected: props.isCellSelected,
|
|
709
|
+
value: allRowsChecked,
|
|
710
|
+
onChange: onAllRowsCheckedChange
|
|
711
|
+
});
|
|
712
|
+
};
|
|
713
|
+
const SelectColumn = {
|
|
714
|
+
key: DATAGRID_SELECT_COLUMN_KEY,
|
|
715
|
+
name: "",
|
|
716
|
+
width: 60,
|
|
717
|
+
maxWidth: 60,
|
|
718
|
+
isDraggable: false,
|
|
719
|
+
resizable: false,
|
|
720
|
+
sortable: false,
|
|
721
|
+
frozen: true,
|
|
722
|
+
type: "boolean",
|
|
723
|
+
headerRenderer: SelectColumnHeaderRenderer,
|
|
724
|
+
formatter: SelectFormatter,
|
|
725
|
+
groupFormatter: SelectGroupFormatter
|
|
726
|
+
};
|
|
728
727
|
function Table(props) {
|
|
729
728
|
const {
|
|
730
729
|
columns,
|
|
@@ -912,6 +911,7 @@ const dictionary = {
|
|
|
912
911
|
const DATAGRID_TEST_ID = "m4ldatagrid";
|
|
913
912
|
const PREFIX_TEST_ATTRIBUTE = "data-testid";
|
|
914
913
|
const TEST_PROP_COLUMNS = `${PREFIX_TEST_ATTRIBUTE}-${DATAGRID_TEST_ID}-columns`;
|
|
914
|
+
const DATAGRID_PREFIX_NAME = "M4LDataGrid";
|
|
915
915
|
function DataGrid(props) {
|
|
916
916
|
const {
|
|
917
917
|
id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.8c02ff61.js";
|
|
2
|
-
import { D as DATAGRID_ACTIONS_COLUMN_KEY, u as useDataGrid, a as useFilters, C as ColumnInteractiveCheckFormatterColumn, b as DataGridRoot, d as dictionary } from "../../index.
|
|
2
|
+
import { D as DATAGRID_ACTIONS_COLUMN_KEY, u as useDataGrid, a as useFilters, C as ColumnInteractiveCheckFormatterColumn, b as DataGridRoot, d as dictionary } from "../../index.84a4843c.js";
|
|
3
3
|
import { useTheme, Skeleton } from "@mui/material";
|
|
4
4
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { P as Pager } from "../../../mui_extended/Pager/index.5629e82b.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Column, SortColumn } from 'react-data-grid';
|
|
3
|
+
export declare const DATAGRID_SELECT_COLUMN_KEY = "M4LDataGrid-CheckedColumn";
|
|
3
4
|
export declare const useSortColumnsRows: <TRow, TSummaryRow>(sourceColumns: readonly Column<TRow, TSummaryRow>[], sourceRows: readonly TRow[]) => {
|
|
4
5
|
finalColumns: readonly Column<TRow, TSummaryRow>[];
|
|
5
6
|
sortColumns: readonly SortColumn[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DATAGRID_ACTIONS_COLUMN_KEY = "M4LDataGrid-ActionsColumn";
|
|
@@ -9,7 +9,7 @@ import { immer } from "zustand/middleware/immer";
|
|
|
9
9
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
10
|
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.2f6286eb.js";
|
|
11
11
|
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.0ce87ac3.js";
|
|
12
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
12
|
+
import { g as getNameDataTestId } from "../../vendor.75facc5e.js";
|
|
13
13
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
14
14
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
15
15
|
import { shallow } from "zustand/shallow";
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { c as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.
|
|
4
|
+
import { c as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.84a4843c.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";
|
|
@@ -12,7 +12,7 @@ import { u as useModal } from "../../hooks/useModal/index.abdc0962.js";
|
|
|
12
12
|
import { I as Icon } from "../Icon/index.05984e7f.js";
|
|
13
13
|
import { S as Stack } from "../mui_extended/Stack/index.0e53197c.js";
|
|
14
14
|
import { W as WindowBase } from "../modal/WindowBase.ea17cf20.js";
|
|
15
|
-
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.
|
|
15
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.39033eb7.js";
|
|
16
16
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
17
17
|
const Container = styled("div")(() => ({
|
|
18
18
|
height: "100%",
|
|
@@ -4,7 +4,7 @@ import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
7
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
7
|
+
import { g as getNameDataTestId } from "../../vendor.75facc5e.js";
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
10
|
import { I as Icon } from "../Icon/index.05984e7f.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
1
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.de0591fe.js";
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { useState, useRef, useMemo } from "react";
|
|
4
4
|
import * as Yup from "yup";
|
|
@@ -7,7 +7,7 @@ import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
|
7
7
|
import { shallow } from "zustand/shallow";
|
|
8
8
|
import React__default, { useMemo, useEffect } from "react";
|
|
9
9
|
import clsx from "clsx";
|
|
10
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
10
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.de0591fe.js";
|
|
11
11
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
12
12
|
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.8c02ff61.js";
|
|
13
13
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -23,8 +23,8 @@ import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/
|
|
|
23
23
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
24
24
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
25
25
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
26
|
-
import { g as getNameDataTestId } from "../../../../vendor.
|
|
27
|
-
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.
|
|
26
|
+
import { g as getNameDataTestId } from "../../../../vendor.75facc5e.js";
|
|
27
|
+
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.79ec57d5.js";
|
|
28
28
|
import { S as SizeProvider } from "../../../GridLayout/index.e8c04242.js";
|
|
29
29
|
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.e25df1dc.js";
|
|
30
30
|
import { useLocation } from "react-router-dom";
|
|
@@ -5,8 +5,8 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
5
5
|
import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
|
|
6
6
|
import { devtools } from "zustand/middleware";
|
|
7
7
|
import { immer } from "zustand/middleware/immer";
|
|
8
|
-
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.
|
|
9
|
-
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.
|
|
8
|
+
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.977d2804.js";
|
|
9
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.d2ce1682.js";
|
|
10
10
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.1607c78e.js";
|
|
11
11
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
12
12
|
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.e25df1dc.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import { A as AreasContext } from "../../contexts/AreasContext/index.
|
|
3
|
+
import { A as AreasContext } from "../../contexts/AreasContext/index.79ec57d5.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context)
|
|
@@ -4,7 +4,7 @@ import { useEnvironment } from "@m4l/core";
|
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
7
|
-
import { g as getNameDataTestId } from "../../../vendor.
|
|
7
|
+
import { g as getNameDataTestId } from "../../../vendor.75facc5e.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { I as Icon } from "../../Icon/index.05984e7f.js";
|
|
10
10
|
import { T as Typography } from "../Typography/index.379dd374.js";
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { useModuleSkeleton } from "@m4l/core";
|
|
6
6
|
import { styled as styled$1 } from "@mui/material/styles";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
|
-
import { g as getNameDataTestId } from "../../../vendor.
|
|
8
|
+
import { g as getNameDataTestId } from "../../../vendor.75facc5e.js";
|
|
9
9
|
import { createContext, useState } from "react";
|
|
10
10
|
const componentName$2 = "M4LTabs";
|
|
11
11
|
generateUtilityClasses(componentName$2, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { T as TabContext } from "../../components/mui_extended/Tab/index.
|
|
2
|
+
import { T as TabContext } from "../../components/mui_extended/Tab/index.f8795137.js";
|
|
3
3
|
const useTab = () => {
|
|
4
4
|
const context = useContext(TabContext);
|
|
5
5
|
if (context === null) {
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L } from "./assets/Logo/index.228dcb5a.js";
|
|
2
|
-
import { c, f, i, h, e, g } from "./components/DataGrid/index.
|
|
2
|
+
import { c, f, i, h, e, g } from "./components/DataGrid/index.84a4843c.js";
|
|
3
3
|
import { N, T } from "./components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
4
4
|
import { N as N2 } from "./components/NavLink/index.b75c91e1.js";
|
|
5
5
|
import { S } from "./components/ScrollToTop/index.e06f98f6.js";
|
|
@@ -12,11 +12,11 @@ import { v } from "./components/animate/variants/fade.b561c0fc.js";
|
|
|
12
12
|
import { v as v2 } from "./components/animate/variants/bounce.784aaaaa.js";
|
|
13
13
|
import { v as v3 } from "./components/animate/variants/container.11f82b76.js";
|
|
14
14
|
import { v as v4, a, b } from "./components/animate/variants/transition.bd46b9ce.js";
|
|
15
|
-
import { A as A2 } from "./components/areas/components/AreasAdmin/index.
|
|
16
|
-
import { A as A3 } from "./components/areas/components/AreasViewer/index.
|
|
15
|
+
import { A as A2 } from "./components/areas/components/AreasAdmin/index.d2ce1682.js";
|
|
16
|
+
import { A as A3 } from "./components/areas/components/AreasViewer/index.977d2804.js";
|
|
17
17
|
import { a as a2, W } from "./components/areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
18
18
|
import { a as a3, D, M as M3, c as c2 } from "./components/areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
19
|
-
import { A as A4, b as b2 } from "./components/areas/contexts/AreasContext/index.
|
|
19
|
+
import { A as A4, b as b2 } from "./components/areas/contexts/AreasContext/index.79ec57d5.js";
|
|
20
20
|
import { u } from "./components/areas/hooks/useDynamicMFParameters/index.e52c5392.js";
|
|
21
21
|
import { u as u2 } from "./components/areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
22
22
|
import { A as A5, D as D2, L as L3, a as a4, g as g2 } from "./components/areas/dictionary.08cfc4c9.js";
|
|
@@ -32,7 +32,7 @@ import { R as R8 } from "./components/hook-form/RHFRadioGroup/index.3b17819b.js"
|
|
|
32
32
|
import { R as R9 } from "./components/hook-form/RHFCheckbox/index.a38715e3.js";
|
|
33
33
|
import { b as b3, c as c3, a as a5, R as R10, d } from "./components/hook-form/RHFTextField/index.80cc07e0.js";
|
|
34
34
|
import { R as R11 } from "./components/hook-form/RHFUpload/index.587aac00.js";
|
|
35
|
-
import { A as A6 } from "./components/mui_extended/Accordion/index.
|
|
35
|
+
import { A as A6 } from "./components/mui_extended/Accordion/index.eddcfe40.js";
|
|
36
36
|
import { A as A7 } from "./components/mui_extended/Avatar/index.75e6ed57.js";
|
|
37
37
|
import { B } from "./components/mui_extended/BoxIcon/index.e638ecc8.js";
|
|
38
38
|
import { B as B2 } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
|
|
@@ -43,7 +43,7 @@ import { L as L5 } from "./components/mui_extended/LinkWithRoute/index.16436ab8.
|
|
|
43
43
|
import { B as B4, I as I2, L as L6 } from "./components/mui_extended/Button/index.570fd3a4.js";
|
|
44
44
|
import { M as M4 } from "./components/mui_extended/MenuActions/index.8c02ff61.js";
|
|
45
45
|
import { P as P3, g as g6 } from "./components/mui_extended/Pager/index.5629e82b.js";
|
|
46
|
-
import { a as a6, c as c4, T as T2, d as d2, b as b4 } from "./components/mui_extended/Tab/index.
|
|
46
|
+
import { a as a6, c as c4, T as T2, d as d2, b as b4 } from "./components/mui_extended/Tab/index.f8795137.js";
|
|
47
47
|
import { C as C2 } from "./components/mui_extended/CheckBox.e662d20c.js";
|
|
48
48
|
import { I as I3 } from "./components/mui_extended/IconButton/index.26de70bd.js";
|
|
49
49
|
import { P as P4 } from "./components/mui_extended/Popover/index.b3eca6b1.js";
|
|
@@ -62,7 +62,7 @@ import { c as c5 } from "./components/DataGrid/formatters/columnUncertaintyForma
|
|
|
62
62
|
import { c as c6 } from "./components/DataGrid/formatters/columnPointsFormatter/index.a19b7b90.js";
|
|
63
63
|
import { c as c7 } from "./components/DataGrid/formatters/columnNestedValueFormatter/index.b63f7246.js";
|
|
64
64
|
import { c as c8 } from "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
|
|
65
|
-
import { D as D4, g as g12 } from "./components/DynamicFilter/index.
|
|
65
|
+
import { D as D4, g as g12 } from "./components/DynamicFilter/index.39033eb7.js";
|
|
66
66
|
import { H, e as e2 } from "./components/HelperText/index.7d2afdb3.js";
|
|
67
67
|
import { A as A8, d as d3, g as g13 } from "./components/CommonActions/components/Actions/index.2f6286eb.js";
|
|
68
68
|
import { A as A9 } from "./components/CommonActions/components/ActionCancel/index.06539086.js";
|
|
@@ -85,11 +85,11 @@ import { W as W3 } from "./components/modal/WindowBase.ea17cf20.js";
|
|
|
85
85
|
import { L as L10, g as g16 } from "./components/LoadingError/index.fabad214.js";
|
|
86
86
|
import { M as M6, g as g17 } from "./components/MFLoader/index.7b4ee2a4.js";
|
|
87
87
|
import { N as N3, d as d5, g as g18 } from "./components/NoItemSelected/index.7db73e77.js";
|
|
88
|
-
import { O, d as d6, g as g19 } from "./components/ObjectLogs/index.
|
|
88
|
+
import { O, d as d6, g as g19 } from "./components/ObjectLogs/index.aeb2540f.js";
|
|
89
89
|
import { P as P9 } from "./components/PaperForm/index.7ea3883f.js";
|
|
90
90
|
import { P as P10 } from "./components/PDFViewer/index.5c2db67a.js";
|
|
91
91
|
import { H as H2 } from "./components/Page/index.710cb16f.js";
|
|
92
|
-
import { P as P11 } from "./components/PropertyValue/index.
|
|
92
|
+
import { P as P11 } from "./components/PropertyValue/index.43ac2a71.js";
|
|
93
93
|
import { R as R13 } from "./components/Resizeable/index.6478d7d8.js";
|
|
94
94
|
import { S as S4 } from "./components/ScrollBar/index.010f1b9d.js";
|
|
95
95
|
import { S as S5 } from "./components/SplitLayout/index.30fd5861.js";
|
|
@@ -101,7 +101,7 @@ import { R as R14, g as g22 } from "./contexts/RHFormContext/index.7769076a.js";
|
|
|
101
101
|
import { M as M7, a as a10 } from "./contexts/ModalContext/index.b39d303d.js";
|
|
102
102
|
import { g as g23, u as u3 } from "./hooks/useFormAddEdit/index.32aa4f64.js";
|
|
103
103
|
import { u as u4 } from "./hooks/useModal/index.abdc0962.js";
|
|
104
|
-
import { u as u5 } from "./hooks/useTab/index.
|
|
104
|
+
import { u as u5 } from "./hooks/useTab/index.9c611b31.js";
|
|
105
105
|
import "react-router-dom";
|
|
106
106
|
import "@mui/material/styles";
|
|
107
107
|
import "@mui/material";
|
|
@@ -112,15 +112,15 @@ import "clsx";
|
|
|
112
112
|
import "react-dnd";
|
|
113
113
|
import "react-dnd-html5-backend";
|
|
114
114
|
import "@m4l/core";
|
|
115
|
-
import "./components/DataGrid/subcomponents/Actions/index.
|
|
115
|
+
import "./components/DataGrid/subcomponents/Actions/index.dbcbee6d.js";
|
|
116
116
|
import "@m4l/graphics";
|
|
117
117
|
import "@mui/base";
|
|
118
118
|
import "./test/constants_no_mock.86c553a9.js";
|
|
119
|
-
import "./vendor.
|
|
119
|
+
import "./vendor.75facc5e.js";
|
|
120
120
|
import "framer-motion";
|
|
121
121
|
import "simplebar-react";
|
|
122
122
|
import "./react-spinners.342a6578.js";
|
|
123
|
-
import "./components/areas/hooks/useAreas/index.
|
|
123
|
+
import "./components/areas/hooks/useAreas/index.de0591fe.js";
|
|
124
124
|
import "zustand";
|
|
125
125
|
import "yup";
|
|
126
126
|
import "./utils/index.de903261.js";
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./assets/Logo/index.228dcb5a.js";
|
|
2
|
-
import "./components/DataGrid/index.
|
|
2
|
+
import "./components/DataGrid/index.84a4843c.js";
|
|
3
3
|
import "./components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
4
4
|
import "./components/NavLink/index.b75c91e1.js";
|
|
5
5
|
import "./components/ScrollToTop/index.e06f98f6.js";
|
|
@@ -12,11 +12,11 @@ import "./components/animate/variants/fade.b561c0fc.js";
|
|
|
12
12
|
import "./components/animate/variants/bounce.784aaaaa.js";
|
|
13
13
|
import "./components/animate/variants/container.11f82b76.js";
|
|
14
14
|
import "./components/animate/variants/transition.bd46b9ce.js";
|
|
15
|
-
import "./components/areas/components/AreasAdmin/index.
|
|
16
|
-
import "./components/areas/components/AreasViewer/index.
|
|
15
|
+
import "./components/areas/components/AreasAdmin/index.d2ce1682.js";
|
|
16
|
+
import "./components/areas/components/AreasViewer/index.977d2804.js";
|
|
17
17
|
import "./components/areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
18
18
|
import "./components/areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
19
|
-
import "./components/areas/contexts/AreasContext/index.
|
|
19
|
+
import "./components/areas/contexts/AreasContext/index.79ec57d5.js";
|
|
20
20
|
import "./components/areas/hooks/useDynamicMFParameters/index.e52c5392.js";
|
|
21
21
|
import "./components/areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
22
22
|
import "./components/areas/dictionary.08cfc4c9.js";
|
|
@@ -32,7 +32,7 @@ import "./components/hook-form/RHFRadioGroup/index.3b17819b.js";
|
|
|
32
32
|
import "./components/hook-form/RHFCheckbox/index.a38715e3.js";
|
|
33
33
|
import "./components/hook-form/RHFTextField/index.80cc07e0.js";
|
|
34
34
|
import "./components/hook-form/RHFUpload/index.587aac00.js";
|
|
35
|
-
import "./components/mui_extended/Accordion/index.
|
|
35
|
+
import "./components/mui_extended/Accordion/index.eddcfe40.js";
|
|
36
36
|
import "./components/mui_extended/Avatar/index.75e6ed57.js";
|
|
37
37
|
import "./components/mui_extended/BoxIcon/index.e638ecc8.js";
|
|
38
38
|
import "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
|
|
@@ -43,7 +43,7 @@ import "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
|
|
|
43
43
|
import "./components/mui_extended/Button/index.570fd3a4.js";
|
|
44
44
|
import "./components/mui_extended/MenuActions/index.8c02ff61.js";
|
|
45
45
|
import "./components/mui_extended/Pager/index.5629e82b.js";
|
|
46
|
-
import "./components/mui_extended/Tab/index.
|
|
46
|
+
import "./components/mui_extended/Tab/index.f8795137.js";
|
|
47
47
|
import "./components/mui_extended/CheckBox.e662d20c.js";
|
|
48
48
|
import "./components/mui_extended/IconButton/index.26de70bd.js";
|
|
49
49
|
import "./components/mui_extended/Popover/index.b3eca6b1.js";
|
|
@@ -62,7 +62,7 @@ import "./components/DataGrid/formatters/columnUncertaintyFormatter/index.cae205
|
|
|
62
62
|
import "./components/DataGrid/formatters/columnPointsFormatter/index.a19b7b90.js";
|
|
63
63
|
import "./components/DataGrid/formatters/columnNestedValueFormatter/index.b63f7246.js";
|
|
64
64
|
import "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
|
|
65
|
-
import "./components/DynamicFilter/index.
|
|
65
|
+
import "./components/DynamicFilter/index.39033eb7.js";
|
|
66
66
|
import "./components/HelperText/index.7d2afdb3.js";
|
|
67
67
|
import "./components/CommonActions/components/Actions/index.2f6286eb.js";
|
|
68
68
|
import "./components/CommonActions/components/ActionCancel/index.06539086.js";
|
|
@@ -85,11 +85,11 @@ import "./components/modal/WindowBase.ea17cf20.js";
|
|
|
85
85
|
import "./components/LoadingError/index.fabad214.js";
|
|
86
86
|
import "./components/MFLoader/index.7b4ee2a4.js";
|
|
87
87
|
import "./components/NoItemSelected/index.7db73e77.js";
|
|
88
|
-
import "./components/ObjectLogs/index.
|
|
88
|
+
import "./components/ObjectLogs/index.aeb2540f.js";
|
|
89
89
|
import "./components/PaperForm/index.7ea3883f.js";
|
|
90
90
|
import "./components/PDFViewer/index.5c2db67a.js";
|
|
91
91
|
import "./components/Page/index.710cb16f.js";
|
|
92
|
-
import "./components/PropertyValue/index.
|
|
92
|
+
import "./components/PropertyValue/index.43ac2a71.js";
|
|
93
93
|
import "./components/Resizeable/index.6478d7d8.js";
|
|
94
94
|
import "./components/ScrollBar/index.010f1b9d.js";
|
|
95
95
|
import "./components/SplitLayout/index.30fd5861.js";
|
|
@@ -101,7 +101,7 @@ import "./contexts/RHFormContext/index.7769076a.js";
|
|
|
101
101
|
import "./contexts/ModalContext/index.b39d303d.js";
|
|
102
102
|
import "./hooks/useFormAddEdit/index.32aa4f64.js";
|
|
103
103
|
import "./hooks/useModal/index.abdc0962.js";
|
|
104
|
-
import "./hooks/useTab/index.
|
|
104
|
+
import "./hooks/useTab/index.9c611b31.js";
|
|
105
105
|
const getNameDataTestId = (ELEMENT_PREFIX, ELEMENT_KEY, ELEMENT_ID) => {
|
|
106
106
|
return `${ELEMENT_PREFIX}-${[ELEMENT_KEY]}-${ELEMENT_ID}`;
|
|
107
107
|
};
|