@m4l/components 0.1.30 → 0.1.32
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/CommonActions/components/ActionCancel/{index.a57fcfae.js → index.641ea102.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.b8215cd2.js → index.3b9e5121.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.591a8195.js → index.d53e0d31.js} +1 -1
- package/components/CommonActions/components/Actions/{index.2ce05d29.js → index.545d7067.js} +24 -26
- package/components/DataGrid/contexts/DataGridContext/index.d.ts +5 -0
- package/components/DataGrid/contexts/{BaseContext → DataGridContext}/types.d.ts +4 -16
- package/components/DataGrid/contexts/FilterContext/types.d.ts +8 -4
- package/components/DataGrid/hooks/useDataGrid.d.ts +3 -0
- package/components/DataGrid/{index.07162c02.js → index.b6a45f67.js} +335 -311
- package/components/DataGrid/{components → subcomponents}/Actions/index.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Actions/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Density/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Density/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Filter/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Filter/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/RowsCount/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/RowsCount/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Settings/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Settings/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings → subcomponents/Actions/subcomponents/Settings/subcomponents}/ColumnsConfig/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings → subcomponents/Actions/subcomponents/Settings/subcomponents}/ColumnsConfig/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings/ColumnsConfig/components → subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/subcomponents}/FormatterColumn/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings → subcomponents/Actions/subcomponents/Settings/subcomponents}/ColumnsConfig/types.d.ts +1 -1
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Settings/types.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Actions/types.d.ts +1 -1
- package/components/DataGrid/{components → subcomponents}/Table/hooks/getDragHeaderRenderer.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Table/hooks/useFocusRef.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Table/hooks/useSortColumnsRows.d.ts +1 -1
- package/components/DataGrid/{components → subcomponents}/Table/index.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Table/styles.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/ActionsColumn.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/CheckboxFormatter.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/CustomIcons.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/DraggableHeaderRenderer.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/SelectColumn.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/SkeletonFormatter/index.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/SkeletonFormatter/styles.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/editors/TextEditor/index.d.ts +0 -0
- package/components/DataGrid/types.d.ts +6 -4
- package/components/DataGrid/utils/getDataGridRowsFromSet.d.ts +1 -0
- package/components/DynamicFilter/{index.31876c9f.js → index.b3b19031.js} +13 -14
- package/components/Icon/{index.619c31c4.js → index.619fa9ad.js} +1 -1
- package/components/Loadable/{index.f5518558.js → index.55b8adb7.js} +2 -3
- package/components/ModalDialog/{index.3e5675c4.js → index.81b8e093.js} +6 -6
- package/components/ObjectLogs/{index.35dbf836.js → index.af1c3382.js} +6 -7
- package/components/PaperForm/{index.ec9cb8c9.js → index.9582ff5e.js} +1 -1
- package/components/Period/{index.111600f2.js → index.9ce96aed.js} +3 -3
- package/components/Resizeable/{index.45995d2b.js → index.d27b0310.js} +1 -1
- package/components/SplitLayout/{index.4032673d.js → index.5a8355d8.js} +1 -1
- package/components/animate/LoadingScreen/index.d.ts +2 -2
- package/components/animate/LoadingScreen/types.d.ts +2 -2
- package/components/animate/PropagateLoader/index.d.ts +2 -0
- package/components/animate/PropagateLoader/index.d5c18992.js +94 -0
- package/components/animate/PropagateLoader/syles.d.ts +2 -0
- package/components/animate/index.d.ts +1 -0
- package/components/formatters/BooleanFormatter/{index.ae70b54f.js → index.81f4ea70.js} +21 -18
- package/components/formatters/DateFormatter/{index.ed73f8ae.js → index.8494575f.js} +4 -4
- package/components/formatters/PointsFormatter/index.d.ts +1 -0
- package/components/formatters/PointsFormatter/types.d.ts +3 -2
- package/components/formatters/UncertaintyFormatter/index.d.ts +1 -0
- package/components/formatters/UncertaintyFormatter/types.d.ts +4 -3
- package/components/formatters/{index.9bd10770.js → index.a0309e3a.js} +52 -55
- package/components/formatters/index.d.ts +2 -2
- package/components/hook-form/RHFDateTime/{index.e70d2de3.js → index.7f1cbd85.js} +0 -1
- package/components/hook-form/RHFPeriod/{index.fa8426ac.js → index.116158c4.js} +1 -1
- package/components/hook-form/RHFTextField/{index.f9aaaa90.js → index.3cb4b35f.js} +1 -1
- package/components/index.d.ts +2 -1
- package/components/mui_extended/Accordion/{index.a02ac6ae.js → index.86b97783.js} +2 -2
- package/components/mui_extended/Button/{index.1d13f53b.js → index.bd85b59c.js} +2 -2
- package/components/mui_extended/IconButton/{index.a321e5cb.js → index.25ff14bd.js} +1 -1
- package/components/mui_extended/LinearProgress/index.c92b9ba9.js +13 -0
- package/components/mui_extended/LinearProgress/index.d.ts +3 -0
- package/components/mui_extended/MenuActions/styles.d.ts +1 -1
- package/components/mui_extended/Pager/{index.72b43352.js → index.a98c43cc.js} +1 -1
- package/components/mui_extended/Popover/{index.028756ac.js → index.f38042fc.js} +5 -8
- package/components/mui_extended/index.d.ts +1 -0
- package/contexts/ModalContext/{index.cc3690d3.js → index.9a44cced.js} +4 -5
- package/contexts/RHFormContext/{index.f8c00745.js → index.d88e6e27.js} +0 -1
- package/hooks/useModal/{index.78ee58f3.js → index.2a92d33a.js} +1 -1
- package/index.js +60 -52
- package/node_modules.51fc30d1.js +63 -0
- package/package.json +2 -1
- package/react-data-grid.d46d625e.js +1 -1
- package/{react-draggable.20e95c61.js → react-draggable.a09b624f.js} +4 -4
- package/{react-json-view.f56a7f8e.js → react-json-view.57125fcf.js} +2 -2
- package/{react-resizable.5277deaf.js → react-resizable.be53ee35.js} +5 -5
- package/{react-splitter-layout.7810ac1b.js → react-splitter-layout.8b1655c8.js} +2 -2
- package/utils/{index.214d9542.js → index.f3bfdc22.js} +2 -2
- package/components/DataGrid/contexts/BaseContext/index.d.ts +0 -5
- package/components/DataGrid/hooks/useBase.d.ts +0 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PagerProps } from '../../../mui_extended/Pager/types';
|
|
2
|
-
import { SettingsProps } from './
|
|
2
|
+
import { SettingsProps } from './subcomponents/Settings/types';
|
|
3
3
|
export interface ActionsProps {
|
|
4
4
|
withSettings?: boolean;
|
|
5
5
|
settingsProps?: SettingsProps;
|
package/components/DataGrid/{components → subcomponents}/Table/hooks/getDragHeaderRenderer.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
package/components/DataGrid/{components → subcomponents}/Table/hooks/useSortColumnsRows.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Column, SortColumn } from 'react-data-grid';
|
|
3
|
-
export declare const useSortColumnsRows: <TRow, TSummaryRow>(sourceColumns: readonly Column<TRow, TSummaryRow>[], sourceRows: readonly TRow[]
|
|
3
|
+
export declare const useSortColumnsRows: <TRow, TSummaryRow>(sourceColumns: readonly Column<TRow, TSummaryRow>[], sourceRows: readonly TRow[]) => {
|
|
4
4
|
finalColumns: readonly Column<TRow, TSummaryRow>[];
|
|
5
5
|
sortColumns: readonly SortColumn[];
|
|
6
6
|
setSortColumns: import("react").Dispatch<import("react").SetStateAction<readonly SortColumn[]>>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Maybe } from '@m4l/core';
|
|
3
3
|
import type { Column, RowsChangeData, FormatterProps } from 'react-data-grid';
|
|
4
4
|
import type { MenuAction } from '../mui_extended/MenuActions/types';
|
|
5
|
-
import { ActionsProps } from './
|
|
5
|
+
import { ActionsProps } from './subcomponents/Actions/types';
|
|
6
6
|
export declare type GridFormatterPropss<T, SR> = FormatterProps<T, SR>;
|
|
7
7
|
export type { columnUncertaintyFormatter, columnPointsFormatter, columnNestedValueFormatter, } from './formatters';
|
|
8
8
|
export declare type ColumnType = 'string' | 'date' | 'number' | 'boolean' | 'custom';
|
|
@@ -25,6 +25,7 @@ declare module 'react-data-grid' {
|
|
|
25
25
|
isDraggable?: boolean;
|
|
26
26
|
withFilter?: boolean;
|
|
27
27
|
withinHeaderRenderer?: React.FunctionComponent<HeaderRendererProps<TRow, TSummaryRow>>;
|
|
28
|
+
customFilter?: (row: TRow, value: string) => boolean;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
export declare type RowKey = string | number;
|
|
@@ -49,10 +50,11 @@ export declare interface GridProps<TRow, TSummaryRow> {
|
|
|
49
50
|
rowHeights?: RowHeights;
|
|
50
51
|
rowActionsGetter?: (row: TRow) => MenuAction[];
|
|
51
52
|
rowKeyGetter: (row: TRow) => RowKey;
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
selectedRows?: ReadonlySet<RowKey>;
|
|
54
|
+
onSelectedRowsChange?: (mapRowsSelected: ReadonlySet<RowKey>) => void;
|
|
55
|
+
checkedRows?: ReadonlySet<RowKey>;
|
|
56
|
+
onCheckedRowsChange?: (mapRowsSelected: ReadonlySet<RowKey>) => void;
|
|
54
57
|
onRowsChange?: Maybe<(rows: TRow[], data: RowsChangeData<TRow, TSummaryRow>) => void>;
|
|
55
|
-
onRowsSelectedChange?: (mapRowsSelected: ReadonlySet<RowKey>, rawRowsSelected: TRow[]) => void;
|
|
56
58
|
}
|
|
57
59
|
export declare interface DataGridProps<TRow, TSummaryRow> extends GridProps<TRow, TSummaryRow> {
|
|
58
60
|
actionsProps: ActionsProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getDataGridRowsFromSet: <TRow, RowKey>(set: ReadonlySet<RowKey>, rows: TRow[], rowKeyGetter: (row: TRow) => RowKey) => TRow[];
|
|
@@ -10,29 +10,29 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
10
10
|
import "../hook-form/RHFCheckbox/index.6dcec9e2.js";
|
|
11
11
|
import { alpha, styled as styled$1, Skeleton, MenuItem, useTheme, Popper, ClickAwayListener } from "@mui/material";
|
|
12
12
|
import "@mui/x-date-pickers";
|
|
13
|
-
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.
|
|
13
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.7f1cbd85.js";
|
|
14
14
|
import { useFormatter, useResponsiveDesktop } from "@m4l/graphics";
|
|
15
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
16
|
-
import { I as Icon } from "../Icon/index.
|
|
17
|
-
import "../hook-form/RHFPeriod/index.
|
|
15
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.3cb4b35f.js";
|
|
16
|
+
import { I as Icon } from "../Icon/index.619fa9ad.js";
|
|
17
|
+
import "../hook-form/RHFPeriod/index.116158c4.js";
|
|
18
18
|
import "../ErrorLabel/index.c8615f16.js";
|
|
19
|
-
import "../Period/index.
|
|
20
|
-
import { L as LabelMemuItem, b as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
19
|
+
import "../Period/index.9ce96aed.js";
|
|
20
|
+
import { L as LabelMemuItem, b as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.545d7067.js";
|
|
21
21
|
import "@mui/material/Button";
|
|
22
22
|
import "react-router-dom";
|
|
23
|
-
import "../../contexts/ModalContext/index.
|
|
23
|
+
import "../../contexts/ModalContext/index.9a44cced.js";
|
|
24
24
|
import "@mui/lab";
|
|
25
25
|
import "lodash/isString";
|
|
26
26
|
import "react-dropzone";
|
|
27
27
|
import "../Image/index.93d5f37f.js";
|
|
28
28
|
import "../hook-form/RHFUpload/index.d5cc7c13.js";
|
|
29
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
29
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.25ff14bd.js";
|
|
30
30
|
import "simplebar/dist/simplebar.min.css";
|
|
31
|
-
import { F as FilterButton } from "../mui_extended/Button/index.
|
|
32
|
-
import { P as Popover } from "../mui_extended/Popover/index.
|
|
33
|
-
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.
|
|
34
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
35
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
31
|
+
import { F as FilterButton } from "../mui_extended/Button/index.bd85b59c.js";
|
|
32
|
+
import { P as Popover } from "../mui_extended/Popover/index.f38042fc.js";
|
|
33
|
+
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.d88e6e27.js";
|
|
34
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.641ea102.js";
|
|
35
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.d53e0d31.js";
|
|
36
36
|
const WrapperApplyedFilters = styled("div")(({
|
|
37
37
|
theme
|
|
38
38
|
}) => ({
|
|
@@ -952,7 +952,6 @@ function BaseProvider(props) {
|
|
|
952
952
|
setInEdition(true);
|
|
953
953
|
}, [applyedFilters]);
|
|
954
954
|
const closeMenuFields = useCallback(() => {
|
|
955
|
-
console.log("closeMenuFields");
|
|
956
955
|
setOpenAnchorEl(null);
|
|
957
956
|
setInEdition(false);
|
|
958
957
|
}, []);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material";
|
|
2
2
|
import { useState, useMemo, useEffect } from "react";
|
|
3
3
|
import { useTheme } from "@mui/material/styles";
|
|
4
|
-
import { g as getPaletteColor } from "../../utils/index.
|
|
4
|
+
import { g as getPaletteColor } from "../../utils/index.f3bfdc22.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const DivIcon = styled("div", {
|
|
7
7
|
shouldForwardProp: (props) => props !== "src" && props !== "size" && props !== "bgColor" && props !== "rotationAngle" && props !== "angleTransition"
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Suspense } from "react";
|
|
2
|
+
import { P as PropagateLoader } from "../animate/PropagateLoader/index.d5c18992.js";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
const Loadable = (Component) => function EmbededLoadable(props) {
|
|
4
5
|
return /* @__PURE__ */ jsx(Suspense, {
|
|
5
|
-
fallback: /* @__PURE__ */ jsx(
|
|
6
|
-
children: "Cargando"
|
|
7
|
-
}),
|
|
6
|
+
fallback: /* @__PURE__ */ jsx(PropagateLoader, {}),
|
|
8
7
|
children: /* @__PURE__ */ jsx(Component, {
|
|
9
8
|
...props
|
|
10
9
|
})
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Dialog, IconButton, Paper } from "@mui/material";
|
|
2
|
-
import { c as cjs } from "../../react-draggable.
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
2
|
+
import { c as cjs } from "../../react-draggable.a09b624f.js";
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.2a92d33a.js";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
|
-
import { a as getThemeVariantColor } from "../../utils/index.
|
|
6
|
-
import { R as Resizeable } from "../Resizeable/index.
|
|
5
|
+
import { a as getThemeVariantColor } from "../../utils/index.f3bfdc22.js";
|
|
6
|
+
import { R as Resizeable } from "../Resizeable/index.d27b0310.js";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
8
|
import { useEnvironment } from "@m4l/core";
|
|
9
|
-
import { I as Icon } from "../Icon/index.
|
|
9
|
+
import { I as Icon } from "../Icon/index.619fa9ad.js";
|
|
10
10
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
11
|
-
import { b as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
11
|
+
import { b as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.545d7067.js";
|
|
12
12
|
const WrapperDialog = styled(Dialog)(() => ({}));
|
|
13
13
|
const Container = styled("div")(({ theme }) => ({
|
|
14
14
|
display: "flex",
|
|
@@ -1,15 +1,15 @@
|
|
|
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.
|
|
5
|
-
import { D as DateFormatter } from "../formatters/DateFormatter/index.
|
|
4
|
+
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.b6a45f67.js";
|
|
5
|
+
import { D as DateFormatter } from "../formatters/DateFormatter/index.8494575f.js";
|
|
6
6
|
import { Tooltip, IconButton } from "@mui/material";
|
|
7
7
|
import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
|
|
8
|
-
import { R as ReactJson } from "../../react-json-view.
|
|
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.
|
|
12
|
-
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.
|
|
10
|
+
import { u as useModal } from "../../hooks/useModal/index.2a92d33a.js";
|
|
11
|
+
import { I as Icon } from "../Icon/index.619fa9ad.js";
|
|
12
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.b3b19031.js";
|
|
13
13
|
const Container$1 = styled("div")(() => ({
|
|
14
14
|
height: "100%",
|
|
15
15
|
width: "100%",
|
|
@@ -259,7 +259,6 @@ function ObjectLogs(props) {
|
|
|
259
259
|
columns,
|
|
260
260
|
rows,
|
|
261
261
|
rowKeyGetter: (row) => row.id,
|
|
262
|
-
isMultipleSelect: false,
|
|
263
262
|
withActions: true,
|
|
264
263
|
actionsProps: {
|
|
265
264
|
withPager: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
|
-
import { I as Icon } from "../Icon/index.
|
|
4
|
+
import { I as Icon } from "../Icon/index.619fa9ad.js";
|
|
5
5
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
6
6
|
const WrapperPaper = styled("div")(({
|
|
7
7
|
theme
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { styled, Skeleton, Autocomplete, TextField } from "@mui/material";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import { I as Icon } from "../Icon/index.
|
|
4
|
+
import { I as Icon } from "../Icon/index.619fa9ad.js";
|
|
5
5
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
6
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
6
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.545d7067.js";
|
|
7
7
|
import "@mui/material/Button";
|
|
8
8
|
import "react-hook-form";
|
|
9
9
|
import "react-router-dom";
|
|
10
|
-
import "../../contexts/ModalContext/index.
|
|
10
|
+
import "../../contexts/ModalContext/index.9a44cced.js";
|
|
11
11
|
import "@mui/lab";
|
|
12
12
|
const ContainerPeriod = styled("div")(({
|
|
13
13
|
theme,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { R as ResizableBox } from "../../react-resizable.
|
|
2
|
+
import { R as ResizableBox } from "../../react-resizable.be53ee35.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const WrapperResizeable = styled(ResizableBox)(({
|
|
5
5
|
theme
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SplitterLayout } from "../../react-splitter-layout.
|
|
1
|
+
import { S as SplitterLayout } from "../../react-splitter-layout.8b1655c8.js";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
const WrapperSplit = styled("div")(({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare function LoadingScreen(props:
|
|
2
|
+
import { LoadingScreenProps } from './types';
|
|
3
|
+
export declare function LoadingScreen(props: LoadingScreenProps): JSX.Element;
|
|
4
4
|
export default LoadingScreen;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare type LoadingScreenVariant = 'fullpage' | 'microfrontend';
|
|
2
|
-
export declare type RootStyleProps = Pick<
|
|
3
|
-
export declare type
|
|
2
|
+
export declare type RootStyleProps = Pick<LoadingScreenProps, 'variant'>;
|
|
3
|
+
export declare type LoadingScreenProps = {
|
|
4
4
|
isDashboard?: boolean;
|
|
5
5
|
variant?: LoadingScreenVariant;
|
|
6
6
|
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { styled, useTheme } from "@mui/material";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { c as createAnimation, p as parseLengthAndUnit } from "../../../node_modules.51fc30d1.js";
|
|
5
|
+
var __assign = globalThis && globalThis.__assign || function() {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s)
|
|
10
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = globalThis && globalThis.__rest || function(s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s)
|
|
20
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
23
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
24
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
25
|
+
t[p[i]] = s[p[i]];
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
};
|
|
29
|
+
var distance = [1, 3, 5];
|
|
30
|
+
var propagate = [
|
|
31
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(-".concat(distance[0], "rem) scale(0.75)}\n 50% {transform: translateX(-").concat(distance[1], "rem) scale(0.6)}\n 75% {transform: translateX(-").concat(distance[2], "rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-0"),
|
|
32
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(-".concat(distance[0], "rem) scale(0.75)}\n 50% {transform: translateX(-").concat(distance[1], "rem) scale(0.6)}\n 75% {transform: translateX(-").concat(distance[1], "rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-1"),
|
|
33
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(-".concat(distance[0], "rem) scale(0.75)}\n 75% {transform: translateX(-").concat(distance[0], "rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-2"),
|
|
34
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(".concat(distance[0], "rem) scale(0.75)}\n 75% {transform: translateX(").concat(distance[0], "rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-3"),
|
|
35
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(".concat(distance[0], "rem) scale(0.75)}\n 50% {transform: translateX(").concat(distance[1], "rem) scale(0.6)}\n 75% {transform: translateX(").concat(distance[1], "rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-4"),
|
|
36
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(".concat(distance[0], "rem) scale(0.75)}\n 50% {transform: translateX(").concat(distance[1], "rem) scale(0.6)}\n 75% {transform: translateX(").concat(distance[2], "rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-5")
|
|
37
|
+
];
|
|
38
|
+
function PropagateLoader$1(_a) {
|
|
39
|
+
var _b = _a.loading, loading = _b === void 0 ? true : _b, _c = _a.color, color = _c === void 0 ? "#000000" : _c, _d = _a.speedMultiplier, speedMultiplier = _d === void 0 ? 1 : _d, _e = _a.cssOverride, cssOverride = _e === void 0 ? {} : _e, _f = _a.size, size = _f === void 0 ? 15 : _f, additionalprops = __rest(_a, ["loading", "color", "speedMultiplier", "cssOverride", "size"]);
|
|
40
|
+
var _g = parseLengthAndUnit(size), value = _g.value, unit = _g.unit;
|
|
41
|
+
var wrapper = __assign({ display: "inherit", position: "relative" }, cssOverride);
|
|
42
|
+
var style = function(i) {
|
|
43
|
+
return {
|
|
44
|
+
position: "absolute",
|
|
45
|
+
fontSize: "".concat(value / 3).concat(unit),
|
|
46
|
+
width: "".concat(value).concat(unit),
|
|
47
|
+
height: "".concat(value).concat(unit),
|
|
48
|
+
background: color,
|
|
49
|
+
borderRadius: "50%",
|
|
50
|
+
animation: "".concat(propagate[i], " ").concat(1.5 / speedMultiplier, "s infinite"),
|
|
51
|
+
animationFillMode: "forwards"
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
if (!loading) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return React.createElement(
|
|
58
|
+
"span",
|
|
59
|
+
__assign({ style: wrapper }, additionalprops),
|
|
60
|
+
React.createElement("span", { style: style(0) }),
|
|
61
|
+
React.createElement("span", { style: style(1) }),
|
|
62
|
+
React.createElement("span", { style: style(2) }),
|
|
63
|
+
React.createElement("span", { style: style(3) }),
|
|
64
|
+
React.createElement("span", { style: style(4) }),
|
|
65
|
+
React.createElement("span", { style: style(5) })
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
const WrapperPropageteLoader = styled("div")(({
|
|
69
|
+
theme
|
|
70
|
+
}) => ({
|
|
71
|
+
right: 0,
|
|
72
|
+
bottom: 0,
|
|
73
|
+
zIndex: 99999,
|
|
74
|
+
width: "100%",
|
|
75
|
+
height: "100%",
|
|
76
|
+
position: "fixed",
|
|
77
|
+
display: "flex",
|
|
78
|
+
alignItems: "center",
|
|
79
|
+
justifyContent: "center",
|
|
80
|
+
background: theme.palette.background.default
|
|
81
|
+
}));
|
|
82
|
+
const PropagateLoader = () => {
|
|
83
|
+
const {
|
|
84
|
+
palette
|
|
85
|
+
} = useTheme();
|
|
86
|
+
return /* @__PURE__ */ jsx(WrapperPropageteLoader, {
|
|
87
|
+
children: /* @__PURE__ */ jsx(PropagateLoader$1, {
|
|
88
|
+
color: palette.primary.main
|
|
89
|
+
})
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
PropagateLoader as P
|
|
94
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const WrapperPropageteLoader: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -3,3 +3,4 @@ export { IconButtonAnimate } from './IconButtonAnimate';
|
|
|
3
3
|
export { MotionContainer } from './MotionContainer';
|
|
4
4
|
export { MotionLazyContainer } from './MotionLazyContainer';
|
|
5
5
|
export { LoadingScreen } from './LoadingScreen';
|
|
6
|
+
export { PropagateLoader } from './PropagateLoader';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useModuleDictionary, useEnvironment, getPropertyByString } from "@m4l/core";
|
|
2
|
-
import
|
|
3
|
-
import { I as Icon } from "../../Icon/index.
|
|
2
|
+
import React__default, { useMemo } from "react";
|
|
3
|
+
import { I as Icon } from "../../Icon/index.619fa9ad.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import "@m4l/graphics";
|
|
6
6
|
function BooleanFormatter(props) {
|
|
7
7
|
const {
|
|
8
8
|
presentationType,
|
|
9
9
|
value,
|
|
10
|
-
Component =
|
|
10
|
+
Component = React__default.Fragment
|
|
11
11
|
} = props;
|
|
12
12
|
const {
|
|
13
13
|
getLabel
|
|
@@ -19,28 +19,31 @@ function BooleanFormatter(props) {
|
|
|
19
19
|
const final_value = value ?? false;
|
|
20
20
|
const srcCheckTrue = `${host_static_assets}/${environment_assets}/frontend/components/data_grid/components/boolean_formatter/assets/icons/check_true.svg`;
|
|
21
21
|
const srcCheckFalse = `${host_static_assets}/${environment_assets}/frontend/components/data_grid/components/boolean_formatter/assets/icons/check_false.svg`;
|
|
22
|
-
|
|
22
|
+
const memoComponent = useMemo(() => {
|
|
23
|
+
if (presentationType === "string_yes_no") {
|
|
24
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
25
|
+
children: final_value ? getLabel("formatters.boolean_yes") : getLabel("formatters.boolean_no")
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
if (presentationType === "string_true_false") {
|
|
29
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
30
|
+
children: final_value ? getLabel("formatters.boolean_true") : getLabel("formatters.boolean_false")
|
|
31
|
+
});
|
|
32
|
+
}
|
|
23
33
|
return /* @__PURE__ */ jsx(Component, {
|
|
24
|
-
children:
|
|
34
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
35
|
+
src: final_value ? srcCheckTrue : srcCheckFalse,
|
|
36
|
+
bgColor: "action.disabled"
|
|
37
|
+
})
|
|
25
38
|
});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
29
|
-
children: final_value ? getLabel("formatters.boolean_true") : getLabel("formatters.boolean_false")
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
33
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
34
|
-
src: final_value ? srcCheckTrue : srcCheckFalse,
|
|
35
|
-
bgColor: "action.disabled"
|
|
36
|
-
})
|
|
37
|
-
});
|
|
39
|
+
}, [final_value]);
|
|
40
|
+
return memoComponent;
|
|
38
41
|
}
|
|
39
42
|
function columnBooleanFormatter(props) {
|
|
40
43
|
const {
|
|
41
44
|
fieldValue,
|
|
42
45
|
presentationType,
|
|
43
|
-
Component =
|
|
46
|
+
Component = React__default.Fragment
|
|
44
47
|
} = props;
|
|
45
48
|
return (obProps) => {
|
|
46
49
|
return /* @__PURE__ */ jsx(BooleanFormatter, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from "react";
|
|
2
2
|
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import "../../Icon/index.
|
|
3
|
+
import "../../Icon/index.619fa9ad.js";
|
|
4
4
|
import "@mui/material/styles";
|
|
5
5
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
6
6
|
import { useFormatter } from "@m4l/graphics";
|
|
@@ -9,7 +9,7 @@ function DateFormatter(props) {
|
|
|
9
9
|
presentationType,
|
|
10
10
|
value,
|
|
11
11
|
format,
|
|
12
|
-
Component =
|
|
12
|
+
Component = React__default.Fragment
|
|
13
13
|
} = props;
|
|
14
14
|
const {
|
|
15
15
|
dateFormatter
|
|
@@ -51,7 +51,7 @@ function columnDateFormatter(props) {
|
|
|
51
51
|
const {
|
|
52
52
|
fieldValue,
|
|
53
53
|
presentationType,
|
|
54
|
-
Component =
|
|
54
|
+
Component = React__default.Fragment
|
|
55
55
|
} = props;
|
|
56
56
|
return (obProps) => {
|
|
57
57
|
return /* @__PURE__ */ jsx(DateFormatter, {
|
|
@@ -2,6 +2,7 @@ import { ComponentType } from 'react';
|
|
|
2
2
|
export declare type CalibrationPoint = number | null;
|
|
3
3
|
export interface PointsFormatterProps {
|
|
4
4
|
Component?: ComponentType;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
obProps: any;
|
|
6
|
+
fieldUnit: string;
|
|
7
|
+
fieldValue: string;
|
|
7
8
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UncertaintyFormatterProps } from './types';
|
|
3
|
+
export declare function getUncertaintyFormat(obProps: any, fieldValue: string, fieldSymbol: string, fieldUnit: string): string;
|
|
3
4
|
export declare function UncertaintyFormatter(props: UncertaintyFormatterProps): JSX.Element;
|
|
@@ -8,7 +8,8 @@ export interface UncertaintyRange {
|
|
|
8
8
|
}
|
|
9
9
|
export interface UncertaintyFormatterProps {
|
|
10
10
|
Component?: ComponentType;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
obProps: any;
|
|
12
|
+
fieldValue: string;
|
|
13
|
+
fieldSymbol: string;
|
|
14
|
+
fieldUnit: string;
|
|
14
15
|
}
|