@m4l/components 0.1.92 → 0.1.93
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 +12 -15
- package/components/AccountPopover/AccountPopover.d.ts +2 -1
- package/components/AccountPopover/{index.eebea1c5.js → index.2ef0bf6d.js} +20 -31
- package/components/AccountPopover/index.d.ts +0 -1
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +4 -3
- package/components/AccountPopover/types.d.ts +50 -26
- package/components/AppBar/{index.90cceb7d.js → index.16fe42a1.js} +3 -22
- package/components/CommonActions/components/ActionCancel/{index.54588e5b.js → index.c3e23ad4.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.7907e6f4.js → index.6da52418.js} +4 -34
- package/components/CommonActions/components/ActionFormIntro/{index.f7cd515b.js → index.c3af6d1d.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.f20cffae.js → index.49631fcb.js} +2 -2
- package/components/CommonActions/components/Actions/{index.7a196c44.js → index.ccf731c1.js} +2 -38
- package/components/DataGrid/classes/index.d.ts +1 -0
- package/components/DataGrid/classes/types.d.ts +1 -0
- package/components/DataGrid/formatters/columnConcatenatedValueFormatter/index.d.ts +2 -2
- package/components/DataGrid/{index.95cea2ca.js → index.abedf2c0.js} +44 -14
- package/components/DataGrid/subcomponents/Actions/{index.5b0b1fbf.js → index.c8408b73.js} +9 -38
- package/components/DraggableWindow/{index.c702d3f2.js → index.8f423ed7.js} +1 -1
- package/components/DynamicFilter/{index.e9192ebd.js → index.cb1402aa.js} +23 -56
- package/components/DynamicFilter/index.d.ts +1 -1
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/GridLayout/{index.5e43414d.js → index.1421f0d4.js} +7 -7
- package/components/GridLayout/subcomponents/Griditem/{index.d6f326d2.js → index.b2342897.js} +4 -4
- package/components/GridLayout/subcomponents/Responsive/{index.d41e31ca.js → index.f459804c.js} +2 -2
- package/components/HelperText/{index.191348cc.js → index.7d2afdb3.js} +2 -23
- package/components/Icon/{index.a70c4729.js → index.3211023d.js} +8 -6
- package/components/Image/{index.c18ebf5a.js → index.611cd930.js} +43 -14
- package/components/LanguagePopover/{index.a74f2065.js → index.b6dc03d0.js} +4 -20
- package/components/LinearProgressIndeterminate/{index.60dabc06.js → index.c46da124.js} +1 -1
- package/components/LoadingError/LoadingError.d.ts +3 -0
- package/components/LoadingError/classes/constants.d.ts +1 -0
- package/components/LoadingError/classes/index.d.ts +14 -0
- package/components/LoadingError/classes/types.d.ts +14 -0
- package/components/LoadingError/dictionary.d.ts +1 -0
- package/components/LoadingError/index.96bdc803.js +106 -0
- package/components/LoadingError/index.d.ts +2 -0
- package/components/LoadingError/types.d.ts +10 -0
- package/components/MFLoader/classes/constants.d.ts +1 -0
- package/components/MFLoader/classes/index.d.ts +7 -0
- package/components/MFLoader/classes/types.d.ts +7 -0
- package/components/MFLoader/dictionary.d.ts +1 -0
- package/components/MFLoader/index.caee87dd.js +296 -0
- package/components/MFLoader/index.d.ts +2 -0
- package/components/MFLoader/types.d.ts +7 -0
- package/components/ModalDialog/{index.99745527.js → index.ec55087e.js} +5 -5
- package/components/NavLink/{index.f12bba32.js → index.b75c91e1.js} +2 -22
- package/components/NoItemSelected/{index.1eaf72d8.js → index.3e29c208.js} +1 -1
- package/components/ObjectLogs/{index.9bbac2a0.js → index.38fd657f.js} +12 -38
- package/components/Page/index.c4642a29.js +127 -0
- package/components/PaperForm/{index.e02c772c.js → index.cce9ed39.js} +1 -1
- package/components/Period/{index.ebd5e3b7.js → index.c35c6a6c.js} +5 -37
- package/components/PrintingSystem/PrintingSystem.d.ts +3 -0
- package/components/PrintingSystem/classes/constants.d.ts +1 -0
- package/components/PrintingSystem/classes/index.d.ts +32 -0
- package/components/PrintingSystem/classes/types.d.ts +33 -0
- package/components/PrintingSystem/index.d.ts +2 -0
- package/components/PrintingSystem/index.e18a2fa8.js +634 -0
- package/components/PrintingSystem/subcomponents/BodyNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/BodyNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/ChartNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/ChartNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/DividerNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/DividerNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/FooterNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/FooterNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/GridNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/GridNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/HeaderNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/HeaderNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/ImageNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/ImageNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PageNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PageNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/Pager/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/Pager/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/PaperNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PaperNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PropertyValueNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/SectionNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/SectionNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/TextBoxNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/TextBoxNode/types.d.ts +3 -0
- package/components/PrintingSystem/types.d.ts +214 -0
- package/components/PrintingSystem/utils/FactoryRender/index.d.ts +3 -0
- package/components/PrintingSystem/utils/FactoryRender/types.d.ts +4 -0
- package/components/PrintingSystem/utils/PageRender/index.d.ts +3 -0
- package/components/PrintingSystem/utils/PageRender/types.d.ts +13 -0
- package/components/PrintingSystem/utils/getEvalValue/index.d.ts +1 -0
- package/components/PrintingSystem/utils/getSize/index.d.ts +1 -0
- package/components/PropertyValue/classes/index.d.ts +3 -2
- package/components/PropertyValue/classes/types.d.ts +2 -0
- package/components/PropertyValue/{index.76fa6a12.js → index.3ee95452.js} +25 -9
- package/components/PropertyValue/types.d.ts +4 -0
- package/components/Resizeable/{index.676c96fe.js → index.8c53c1fa.js} +1 -1
- package/components/SideBar/{index.2dfc5445.js → index.5fd648d2.js} +44 -39
- package/components/animate/{index.4e9774a6.js → index.5d4575bc.js} +2 -6
- package/components/areas/components/AreasAdmin/{index.cd054608.js → index.ddb384a1.js} +29 -62
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +2 -8
- package/components/areas/components/AreasViewer/{index.62abf0bb.js → index.625bf23b.js} +68 -437
- package/components/areas/components/index.558684b3.js +1 -0
- package/components/areas/components/index.d.ts +0 -1
- package/components/areas/contexts/AreasContext/{index.d528f6e7.js → index.646f3c8f.js} +9 -7
- package/components/areas/contexts/index.24025b97.js +1 -0
- package/components/areas/contexts/index.d.ts +1 -0
- package/components/areas/hooks/index.d9dc1e21.js +1 -0
- package/components/areas/hooks/useAreas/{index.d417e4b2.js → index.ee66240b.js} +1 -1
- package/components/areas/index.4cc6a221.js +22 -0
- package/components/areas/index.d.ts +1 -1
- package/components/formatters/BooleanFormatter/{index.a013b080.js → index.3c2df7a8.js} +10 -4
- package/components/formatters/FormatterRoot/index.d.ts +3 -0
- package/components/formatters/FormatterRoot/types.d.ts +4 -0
- package/components/formatters/classes/index.d.ts +4 -0
- package/components/formatters/classes/types.d.ts +6 -0
- package/components/formatters/constants.d.ts +1 -0
- package/components/formatters/{index.576922c9.js → index.dc77adb7.js} +25 -8
- package/components/hook-form/RHFAutocomplete/{index.29a4c62c.js → index.52387f0f.js} +7 -22
- package/components/hook-form/RHFAutocompleteAsync/{index.647c3f9c.js → index.638bd2ae.js} +3 -2
- package/components/hook-form/RHFCheckbox/{index.0b89ea5c.js → index.a38715e3.js} +2 -22
- package/components/hook-form/RHFDateTime/{index.1adc88ad.js → index.66e334b0.js} +23 -23
- package/components/hook-form/RHFPeriod/{index.a4476d23.js → index.23099265.js} +2 -2
- package/components/hook-form/RHFTextField/{index.a1a240b1.js → index.25b3627e.js} +6 -8
- package/components/hook-form/RHFUpload/{index.a4582341.js → index.65588e08.js} +5 -22
- package/components/index.d.ts +3 -0
- package/components/modal/{WindowBase.a4752aa1.js → WindowBase.161ec78a.js} +5 -37
- package/components/modal/{WindowConfirm.7a9c12c0.js → WindowConfirm.7eed7c35.js} +8 -40
- package/components/modal/{index.b434146b.js → index.61389369.js} +0 -37
- package/components/mui_extended/Accordion/{index.cdedddba.js → index.92aae1a4.js} +4 -4
- package/components/mui_extended/Button/{index.f79eb74e.js → index.94fec33c.js} +3 -3
- package/components/mui_extended/{CheckBox.38abccd8.js → CheckBox.e662d20c.js} +1 -1
- package/components/mui_extended/IconButton/{index.76624519.js → index.53cd6388.js} +2 -2
- package/components/mui_extended/MenuActions/{index.7669b8af.js → index.dd9f65a2.js} +5 -19
- package/components/mui_extended/Pager/{index.ac2a21f0.js → index.de0bd62c.js} +2 -2
- package/components/mui_extended/Tab/{index.5f09e16a.js → index.1fcabba2.js} +2 -2
- package/components/mui_extended/index.b606cd9d.js +1 -0
- package/contexts/ModalContext/{index.347f6738.js → index.436c2938.js} +1 -1
- package/contexts/RHFormContext/classes/index.d.ts +1 -1
- package/hooks/useFormAddEdit/{index.e8e7f758.js → index.3584a29f.js} +2 -26
- package/hooks/useModal/{index.fa6dfaa1.js → index.05d1821e.js} +1 -1
- package/index.js +196 -187
- package/node_modules.b55d04d9.js +15267 -0
- package/package.json +5 -1
- package/react-data-grid.d46d625e.js +2 -2
- package/react-draggable.e4725f3a.js +630 -0
- package/{react-resizable.ba08699a.js → react-resizable.c07d63fb.js} +2 -2
- package/utils/{index.c43a95f4.js → index.6469f148.js} +75 -107
- package/vendor.71883626.js +104 -0
- package/components/Page/index.4237c241.js +0 -27
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/types.d.ts +0 -8
- package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/index.d.ts +0 -3
- package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/types.d.ts +0 -5
- package/components/areas/components/index.ea2f9914.js +0 -31
- package/components/areas/contexts/index.6e9bbc64.js +0 -2
- package/components/areas/hooks/index.0184c6f7.js +0 -4
- package/components/areas/index.8d6d8969.js +0 -54
- package/components/mui_extended/index.fe189e7d.js +0 -24
- package/node_modules.d73a220d.js +0 -363
- package/react-draggable.7abb5d0a.js +0 -962
- package/vendor.e14dec76.js +0 -128
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/index.d.ts → MFLoader/MFLoader.d.ts} +0 -0
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/helper.d.ts +0 -0
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/index.d.ts +0 -0
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/types.d.ts +0 -0
- package/components/mui_extended/Badge/{index.b09524fe.js → index.09f5aee5.js} +1 -1
- package/components/mui_extended/Popover/{index.9f35d0eb.js → index.b3eca6b1.js} +2 -2
- package/components/mui_extended/Tooltip/{index.5a795dcd.js → index.24a2bc3f.js} +1 -1
- package/components/mui_extended/Typography/{index.443590d6.js → index.379dd374.js} +1 -1
|
@@ -1,48 +1,19 @@
|
|
|
1
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
2
|
-
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.
|
|
1
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.dd9f65a2.js";
|
|
2
|
+
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.abedf2c0.js";
|
|
3
3
|
import { useTheme, Checkbox, Skeleton } from "@mui/material";
|
|
4
4
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { P as Pager } from "../../../mui_extended/Pager/index.
|
|
6
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
5
|
+
import { P as Pager } from "../../../mui_extended/Pager/index.de0bd62c.js";
|
|
6
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.53cd6388.js";
|
|
7
7
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
8
8
|
import { forwardRef, useRef, useState, useImperativeHandle, useMemo, useEffect, useCallback } from "react";
|
|
9
9
|
import { D as DataGrid$1 } from "../../../../react-data-grid.d46d625e.js";
|
|
10
10
|
import { styled } from "@mui/material/styles";
|
|
11
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
12
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
13
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
14
|
-
import "../../../../react-draggable.7abb5d0a.js";
|
|
15
|
-
import "../../../Resizeable/index.676c96fe.js";
|
|
11
|
+
import { u as useModal } from "../../../../hooks/useModal/index.05d1821e.js";
|
|
12
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.c3e23ad4.js";
|
|
13
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.49631fcb.js";
|
|
16
14
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
17
|
-
import "../../../modal/
|
|
18
|
-
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.
|
|
19
|
-
import "react-hook-form";
|
|
20
|
-
import "@mui/material/Button";
|
|
21
|
-
import "../../../mui_extended/Button/index.f79eb74e.js";
|
|
22
|
-
import "clsx";
|
|
23
|
-
import "zustand";
|
|
24
|
-
import "../../../areas/contexts/AreasContext/index.d528f6e7.js";
|
|
25
|
-
import "../../../areas/components/AreasAdmin/index.cd054608.js";
|
|
26
|
-
import "zustand/shallow";
|
|
27
|
-
import "../../../ScrollBar/index.65bb2930.js";
|
|
28
|
-
import "../../../mui_extended/Accordion/index.cdedddba.js";
|
|
29
|
-
import "../../../Icon/index.a70c4729.js";
|
|
30
|
-
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
31
|
-
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
32
|
-
import "react-router-dom";
|
|
33
|
-
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
34
|
-
import "../../../mui_extended/Badge/index.b09524fe.js";
|
|
35
|
-
import "../../../Image/index.c18ebf5a.js";
|
|
36
|
-
import "@mui/lab";
|
|
37
|
-
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
38
|
-
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
39
|
-
import "../../../mui_extended/Tab/index.5f09e16a.js";
|
|
40
|
-
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
41
|
-
import "../../../areas/components/AreasViewer/index.62abf0bb.js";
|
|
42
|
-
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
43
|
-
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
44
|
-
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
45
|
-
import { W as WindowBase } from "../../../modal/WindowBase.a4752aa1.js";
|
|
15
|
+
import { W as WindowBase } from "../../../modal/WindowBase.161ec78a.js";
|
|
16
|
+
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.ccf731c1.js";
|
|
46
17
|
const ACTIONS_COLUMN_KEY = "actions-row";
|
|
47
18
|
function ActionsFormatter(props) {
|
|
48
19
|
const {
|
|
@@ -1,66 +1,33 @@
|
|
|
1
|
-
import { shallow } from "zustand/shallow";
|
|
2
|
-
import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
|
|
3
1
|
import { useContext, useMemo, useEffect, createContext, useRef, createElement, useState, useCallback } from "react";
|
|
4
|
-
import clsx from "clsx";
|
|
5
2
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
6
|
-
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
7
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.76624519.js";
|
|
8
|
-
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { g as getNameDataTestId } from "../../vendor.e14dec76.js";
|
|
10
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
11
|
-
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
12
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.7669b8af.js";
|
|
13
|
-
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
14
|
-
import { I as Icon } from "../Icon/index.a70c4729.js";
|
|
15
|
-
import { styled, useTheme } from "@mui/material/styles";
|
|
16
|
-
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.1755b324.js";
|
|
17
|
-
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.7a196c44.js";
|
|
18
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.54588e5b.js";
|
|
19
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.f20cffae.js";
|
|
20
|
-
import { useFormContext, useWatch } from "react-hook-form";
|
|
21
|
-
import "@mui/material/Button";
|
|
22
|
-
import "../mui_extended/Button/index.f79eb74e.js";
|
|
23
|
-
import "../../contexts/ModalContext/index.347f6738.js";
|
|
24
|
-
import "../../react-draggable.7abb5d0a.js";
|
|
25
|
-
import "../Resizeable/index.676c96fe.js";
|
|
26
|
-
import "../modal/index.b434146b.js";
|
|
27
|
-
import "../Image/index.c18ebf5a.js";
|
|
28
|
-
import "../mui_extended/Accordion/index.cdedddba.js";
|
|
29
|
-
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
30
|
-
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
31
|
-
import "react-router-dom";
|
|
32
|
-
import "../mui_extended/CheckBox.38abccd8.js";
|
|
33
|
-
import "../mui_extended/Badge/index.b09524fe.js";
|
|
34
|
-
import "@mui/lab";
|
|
35
|
-
import "../mui_extended/Stack/index.0e53197c.js";
|
|
36
|
-
import "../mui_extended/Tab/index.5f09e16a.js";
|
|
37
|
-
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
38
|
-
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
39
3
|
import { useStore, createStore } from "zustand";
|
|
40
|
-
import "
|
|
41
|
-
import "../areas/components/AreasAdmin/index.cd054608.js";
|
|
42
|
-
import "../areas/components/AreasViewer/index.62abf0bb.js";
|
|
43
|
-
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
44
|
-
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
45
|
-
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
4
|
+
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
46
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
47
|
-
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.
|
|
6
|
+
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.6469f148.js";
|
|
48
7
|
import { devtools } from "zustand/middleware";
|
|
49
8
|
import { immer } from "zustand/middleware/immer";
|
|
50
|
-
import {
|
|
51
|
-
import "
|
|
52
|
-
import "../hook-form/
|
|
53
|
-
import "
|
|
54
|
-
import "
|
|
55
|
-
import "
|
|
56
|
-
import {
|
|
57
|
-
import { R as
|
|
58
|
-
import "../hook-form/
|
|
59
|
-
import "../Period/index.ebd5e3b7.js";
|
|
60
|
-
import "lodash/isString";
|
|
61
|
-
import "react-dropzone";
|
|
62
|
-
import "../hook-form/RHFUpload/index.a4582341.js";
|
|
9
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.ccf731c1.js";
|
|
11
|
+
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.52387f0f.js";
|
|
12
|
+
import { g as getNameDataTestId } from "../../vendor.71883626.js";
|
|
13
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
14
|
+
import { useFormContext, useWatch } from "react-hook-form";
|
|
15
|
+
import { shallow } from "zustand/shallow";
|
|
16
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.66e334b0.js";
|
|
17
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.25b3627e.js";
|
|
63
18
|
import * as Yup from "yup";
|
|
19
|
+
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
20
|
+
import { styled, useTheme } from "@mui/material/styles";
|
|
21
|
+
import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
|
|
22
|
+
import clsx from "clsx";
|
|
23
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.53cd6388.js";
|
|
24
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.dd9f65a2.js";
|
|
25
|
+
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
26
|
+
import { I as Icon } from "../Icon/index.3211023d.js";
|
|
27
|
+
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.1755b324.js";
|
|
28
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.c3e23ad4.js";
|
|
29
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.49631fcb.js";
|
|
30
|
+
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
64
31
|
const COMPONENT_PREFIX = "M4LDynamicFilter";
|
|
65
32
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
66
33
|
const ASSETS_URL = "frontend/components/dynamic_filter/assets/icons";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './DynamicFilter';
|
|
2
2
|
export { getDynamicFilterComponentsDictionary } from './dictionary';
|
|
3
|
-
export type { FilterFieldApplyed as FilterFieldApply, RawFilterFieldApply, InitialFilterApplyed, } from './types';
|
|
3
|
+
export type { FilterFieldApplyed as FilterFieldApply, RawFilterFieldApply, InitialFilterApplyed, Field, } from './types';
|
|
4
4
|
export type { DynamicFilterClassesKey } from './classes/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GridLayoutClasses } from './types';
|
|
2
2
|
export declare const gridLayoutClasses: GridLayoutClasses;
|
|
3
|
-
export declare const useUtilityClasses: () => Record<"static" | "root" | "
|
|
3
|
+
export declare const useUtilityClasses: () => Record<"static" | "root" | "dragging" | "colapsed" | "resizing" | "invisible" | "gridItemRoot" | "gridItemPlaceholder" | "gridItemFreeMove" | "maximizeMe" | "maximizeOther" | "resizeHide" | "cssTransforms", string>;
|
|
4
4
|
export declare type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { throttle } from "lodash";
|
|
6
|
-
import { useResizeObserver } from "@m4l/graphics";
|
|
3
|
+
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.b2342897.js";
|
|
7
4
|
import { styled, alpha } from "@mui/material/styles";
|
|
8
|
-
import { r as react_resizable_css } from "../../react-resizable.
|
|
5
|
+
import { r as react_resizable_css } from "../../react-resizable.c07d63fb.js";
|
|
9
6
|
import { generateUtilityClasses } from "@mui/material";
|
|
10
7
|
import "@mui/base";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { throttle } from "lodash";
|
|
10
|
+
import { useResizeObserver } from "@m4l/graphics";
|
|
11
11
|
const COMPONENT_CLASS_NAME = "M4LGridLayout";
|
|
12
12
|
const DEFAULT_COLS = 12;
|
|
13
13
|
const DEFAULT_ROW_HEIGHT = 20;
|
|
@@ -1199,7 +1199,7 @@ function SizeProvider(ComposedComponent) {
|
|
|
1199
1199
|
};
|
|
1200
1200
|
}
|
|
1201
1201
|
export {
|
|
1202
|
-
|
|
1202
|
+
isEqualLayouts as A,
|
|
1203
1203
|
DEFAULT_COLS as D,
|
|
1204
1204
|
GridLayout as G,
|
|
1205
1205
|
SizeProvider as S,
|
|
@@ -1228,5 +1228,5 @@ export {
|
|
|
1228
1228
|
isEqualLayout as w,
|
|
1229
1229
|
DEFAULT_RESPONSIVE_BREAKPOINTS as x,
|
|
1230
1230
|
DEFAULT_RESPONSIVE_COLS as y,
|
|
1231
|
-
|
|
1231
|
+
noop as z
|
|
1232
1232
|
};
|
package/components/GridLayout/subcomponents/Griditem/{index.d6f326d2.js → index.b2342897.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
2
|
-
import { D as DraggableCore_1 } from "../../../../react-draggable.
|
|
3
|
-
import { R as Resizable } from "../../../../react-resizable.
|
|
4
|
-
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.
|
|
2
|
+
import { D as DraggableCore_1 } from "../../../../react-draggable.e4725f3a.js";
|
|
3
|
+
import { R as Resizable } from "../../../../react-resizable.c07d63fb.js";
|
|
4
|
+
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.1421f0d4.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { d as deepEqual } from "../../../../node_modules.
|
|
6
|
+
import { d as deepEqual } from "../../../../node_modules.b55d04d9.js";
|
|
7
7
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
8
8
|
function GridItem(props) {
|
|
9
9
|
const {
|
package/components/GridLayout/subcomponents/Responsive/{index.d41e31ca.js → index.f459804c.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as
|
|
1
|
+
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as noop, A as isEqualLayouts, G as GridLayout } from "../../index.1421f0d4.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import { useFirstRender } from "@m4l/graphics";
|
|
4
|
-
import { d as deepEqual } from "../../../../node_modules.
|
|
4
|
+
import { d as deepEqual } from "../../../../node_modules.b55d04d9.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
function getBreakpointFromWidth(breakpoints, width) {
|
|
7
7
|
const sorted = sortBreakpoints(breakpoints);
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
-
import "react";
|
|
3
|
-
import "@m4l/core";
|
|
4
|
-
import "../Icon/index.a70c4729.js";
|
|
5
|
-
import "clsx";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import "../mui_extended/IconButton/index.76624519.js";
|
|
8
|
-
import "@m4l/graphics";
|
|
9
|
-
import "../mui_extended/Accordion/index.cdedddba.js";
|
|
10
|
-
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
|
-
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
12
|
-
import "react-router-dom";
|
|
13
|
-
import "@mui/material/Button";
|
|
14
|
-
import "../mui_extended/Button/index.f79eb74e.js";
|
|
15
|
-
import "../mui_extended/CheckBox.38abccd8.js";
|
|
16
|
-
import "../mui_extended/Badge/index.b09524fe.js";
|
|
17
|
-
import "../Image/index.c18ebf5a.js";
|
|
18
|
-
import "@mui/lab";
|
|
19
|
-
import "../mui_extended/MenuActions/index.7669b8af.js";
|
|
20
|
-
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
21
|
-
import "../mui_extended/Stack/index.0e53197c.js";
|
|
22
|
-
import "../mui_extended/Tab/index.5f09e16a.js";
|
|
23
|
-
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
24
|
-
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
25
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
26
5
|
const HelperTextRoot = styled("div")(({
|
|
27
6
|
theme
|
|
28
7
|
}) => ({
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { useState, useEffect } from "react";
|
|
2
|
-
import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
1
|
import { useEnvironment } from "@m4l/core";
|
|
6
|
-
import {
|
|
2
|
+
import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
3
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.5fd648d2.js";
|
|
7
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { useState, useEffect } from "react";
|
|
8
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
+
import clsx from "clsx";
|
|
9
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
9
10
|
const IconRoot = styled("div")(({
|
|
10
11
|
theme
|
|
11
12
|
}) => ({
|
|
@@ -67,6 +68,7 @@ function Icon(props) {
|
|
|
67
68
|
className
|
|
68
69
|
} = props;
|
|
69
70
|
const [resource, setResource] = useState(testingProps?.resource || void 0);
|
|
71
|
+
const isDesktop = useResponsiveDesktop();
|
|
70
72
|
useEffect(() => {
|
|
71
73
|
let mounted = true;
|
|
72
74
|
(async function networkOperation() {
|
|
@@ -87,7 +89,7 @@ function Icon(props) {
|
|
|
87
89
|
};
|
|
88
90
|
}, [src]);
|
|
89
91
|
const ownerState = {
|
|
90
|
-
size,
|
|
92
|
+
size: isDesktop ? size : "medium",
|
|
91
93
|
rotationAngle
|
|
92
94
|
};
|
|
93
95
|
const classes = useUtilityClasses(ownerState);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { useBase, useModuleSkeleton, BaseProvider } from "@m4l/core";
|
|
1
|
+
import { useBase, useModuleSkeleton, BaseProvider, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { forwardRef, useState, useRef, useImperativeHandle, useEffect, useMemo } from "react";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
4
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { styled, Skeleton as Skeleton$1, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
|
-
import clsx from "clsx";
|
|
7
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
+
import clsx from "clsx";
|
|
8
|
+
import { g as getEvalValue, c as classes, a as getSize } from "../PrintingSystem/index.e18a2fa8.js";
|
|
8
9
|
function isIntersectionObserverAvailable() {
|
|
9
10
|
return typeof window !== "undefined" && "IntersectionObserver" in window && "IntersectionObserverEntry" in window;
|
|
10
11
|
}
|
|
@@ -34,7 +35,7 @@ const BasicIntersectComponent = forwardRef((props, ref) => {
|
|
|
34
35
|
threshold
|
|
35
36
|
} = props;
|
|
36
37
|
const {
|
|
37
|
-
classes
|
|
38
|
+
classes: classes2
|
|
38
39
|
} = useBase();
|
|
39
40
|
const [observer] = useState(getObserver(threshold));
|
|
40
41
|
const intersectComponentRef = useRef(null);
|
|
@@ -61,7 +62,7 @@ const BasicIntersectComponent = forwardRef((props, ref) => {
|
|
|
61
62
|
styleProp.minHeight = height;
|
|
62
63
|
}
|
|
63
64
|
return /* @__PURE__ */ jsx("span", {
|
|
64
|
-
className:
|
|
65
|
+
className: classes2.span,
|
|
65
66
|
ref: intersectComponentRef,
|
|
66
67
|
style: styleProp,
|
|
67
68
|
...process.env.NODE_ENV !== "production" ? {
|
|
@@ -80,10 +81,10 @@ function LazyLoadComponent(props) {
|
|
|
80
81
|
} = props;
|
|
81
82
|
const [isVisible, setIsVisible] = useState(testingProps?.isVisible || !(useIntersectionObserver && isIntersectionObserverAvailable()));
|
|
82
83
|
const {
|
|
83
|
-
classes
|
|
84
|
+
classes: classes2
|
|
84
85
|
} = useBase();
|
|
85
86
|
return /* @__PURE__ */ jsx(WrapperLazyLoadComponent, {
|
|
86
|
-
className:
|
|
87
|
+
className: classes2.lazyLoad,
|
|
87
88
|
...process.env.NODE_ENV !== "production" ? {
|
|
88
89
|
[TEST_PROP_ID]: getNameDataTestId("lazyLoad")
|
|
89
90
|
} : {},
|
|
@@ -117,10 +118,10 @@ const Skeleton = (props) => {
|
|
|
117
118
|
height
|
|
118
119
|
} = props;
|
|
119
120
|
const {
|
|
120
|
-
classes
|
|
121
|
+
classes: classes2
|
|
121
122
|
} = useBase();
|
|
122
123
|
return skeletonVariant === "image" ? /* @__PURE__ */ jsx(WrapperSkeletonImage, {
|
|
123
|
-
className:
|
|
124
|
+
className: classes2.skeletonImage,
|
|
124
125
|
...process.env.NODE_ENV !== "production" ? {
|
|
125
126
|
[TEST_PROP_ID]: getNameDataTestId("skeletonImage")
|
|
126
127
|
} : {},
|
|
@@ -137,7 +138,7 @@ const Skeleton = (props) => {
|
|
|
137
138
|
variant: "circular",
|
|
138
139
|
width: "100%",
|
|
139
140
|
height: "100%",
|
|
140
|
-
className:
|
|
141
|
+
className: classes2.skeletonCircle,
|
|
141
142
|
...process.env.NODE_ENV !== "production" ? {
|
|
142
143
|
[TEST_PROP_ID]: getNameDataTestId("skeletonCircle")
|
|
143
144
|
} : {}
|
|
@@ -267,10 +268,10 @@ function Image(props) {
|
|
|
267
268
|
const ownerState = {
|
|
268
269
|
isImageLoaded
|
|
269
270
|
};
|
|
270
|
-
const
|
|
271
|
+
const classes2 = useUtilityClasses(ownerState);
|
|
271
272
|
const lazyLoadComponent = useMemo(() => {
|
|
272
273
|
return /* @__PURE__ */ jsx(ImageRoot, {
|
|
273
|
-
className: clsx(
|
|
274
|
+
className: clsx(classes2.root, className),
|
|
274
275
|
...process.env.NODE_ENV !== "production" ? {
|
|
275
276
|
[TEST_PROP_ID]: getNameDataTestId("root")
|
|
276
277
|
} : {},
|
|
@@ -299,7 +300,7 @@ function Image(props) {
|
|
|
299
300
|
alt,
|
|
300
301
|
src,
|
|
301
302
|
onLoad,
|
|
302
|
-
className:
|
|
303
|
+
className: classes2.img,
|
|
303
304
|
width: !width ? "100%" : ratioImage.width,
|
|
304
305
|
height: !height ? "100%" : ratioImage.height,
|
|
305
306
|
...process.env.NODE_ENV !== "production" ? {
|
|
@@ -311,11 +312,39 @@ function Image(props) {
|
|
|
311
312
|
}, [statusLoad, isSKeleton, src]);
|
|
312
313
|
return /* @__PURE__ */ jsx(BaseProvider, {
|
|
313
314
|
value: {
|
|
314
|
-
classes
|
|
315
|
+
classes: classes2
|
|
315
316
|
},
|
|
316
317
|
children: lazyLoadComponent
|
|
317
318
|
});
|
|
318
319
|
}
|
|
320
|
+
const ImageNode = (props) => {
|
|
321
|
+
const {
|
|
322
|
+
className,
|
|
323
|
+
style,
|
|
324
|
+
src,
|
|
325
|
+
width = "100%",
|
|
326
|
+
height = "100%"
|
|
327
|
+
} = props;
|
|
328
|
+
const {
|
|
329
|
+
unitSize,
|
|
330
|
+
sourceData
|
|
331
|
+
} = useBase();
|
|
332
|
+
const {
|
|
333
|
+
host_static_assets,
|
|
334
|
+
environment_assets
|
|
335
|
+
} = useEnvironment();
|
|
336
|
+
const resourceImg = getEvalValue(sourceData, src);
|
|
337
|
+
return /* @__PURE__ */ jsx("img", {
|
|
338
|
+
src: `${host_static_assets}/${environment_assets}/${resourceImg}`,
|
|
339
|
+
className: clsx(classes.imageNodeRoot, className),
|
|
340
|
+
style: {
|
|
341
|
+
width: getSize(width, unitSize),
|
|
342
|
+
height: getSize(height, unitSize),
|
|
343
|
+
...style
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
};
|
|
319
347
|
export {
|
|
320
|
-
Image as I
|
|
348
|
+
Image as I,
|
|
349
|
+
ImageNode as a
|
|
321
350
|
};
|
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem } from "@mui/material";
|
|
3
|
-
import { I as Image } from "../Image/index.
|
|
3
|
+
import { I as Image } from "../Image/index.611cd930.js";
|
|
4
4
|
import { useLocales } from "@m4l/graphics";
|
|
5
|
+
import { I as ImageButton } from "../mui_extended/Button/index.94fec33c.js";
|
|
5
6
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
6
|
-
import "
|
|
7
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
7
8
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
8
|
-
import "clsx";
|
|
9
9
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
|
-
import "../mui_extended/IconButton/index.76624519.js";
|
|
11
|
-
import "../mui_extended/Accordion/index.cdedddba.js";
|
|
12
|
-
import "../mui_extended/Typography/index.443590d6.js";
|
|
13
|
-
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
14
|
-
import "react-router-dom";
|
|
15
|
-
import "@mui/material/Button";
|
|
16
|
-
import { I as ImageButton } from "../mui_extended/Button/index.f79eb74e.js";
|
|
17
|
-
import "../mui_extended/CheckBox.38abccd8.js";
|
|
18
10
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
19
|
-
import "../mui_extended/
|
|
20
|
-
import "@mui/lab";
|
|
21
|
-
import "../mui_extended/MenuActions/index.7669b8af.js";
|
|
22
|
-
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
|
-
import "../mui_extended/Stack/index.0e53197c.js";
|
|
24
|
-
import "../mui_extended/Tab/index.5f09e16a.js";
|
|
25
|
-
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
26
|
-
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
27
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
11
|
+
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
28
12
|
const LanguagePopoverRoot = styled("div")(({
|
|
29
13
|
theme
|
|
30
14
|
}) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { generateUtilityClasses, styled } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
4
|
+
import { g as getComponentUtilityClass } from "../../utils/index.6469f148.js";
|
|
5
5
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
const LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME = "M4LinearProgressIndeterminate";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LoadingError";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LoadingErrorClassesType } from './types';
|
|
2
|
+
export declare const loadingErrorClasses: LoadingErrorClassesType;
|
|
3
|
+
export declare function getLoadingErrorUtilityClass(slot: string): string;
|
|
4
|
+
export declare const loadingErrorUtilityClasses: () => {
|
|
5
|
+
root: string;
|
|
6
|
+
loadingErrorLoading: string;
|
|
7
|
+
loadingError: string;
|
|
8
|
+
loadingErrorIcon: string;
|
|
9
|
+
loadingErrorTitle: string;
|
|
10
|
+
loadingErrorDescription: string;
|
|
11
|
+
loadingErrorDivider: string;
|
|
12
|
+
loadingErrorTextAction: string;
|
|
13
|
+
titleDescription: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { loadingErrorUtilityClasses } from ".";
|
|
2
|
+
export interface LoadingErrorClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
loadingErrorLoading: string;
|
|
5
|
+
loadingError: string;
|
|
6
|
+
loadingErrorIcon: string;
|
|
7
|
+
loadingErrorTitle: string;
|
|
8
|
+
loadingErrorDescription: string;
|
|
9
|
+
loadingErrorDivider: string;
|
|
10
|
+
loadingErrorTextAction: string;
|
|
11
|
+
titleDescription: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type MFLoaderClassesKey = keyof LoadingErrorClassesType;
|
|
14
|
+
export declare type Classes = ReturnType<typeof loadingErrorUtilityClasses>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getLoadingErrorComponentsDictionary: () => string[];
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
2
|
+
import { I as ICONS } from "../areas/icons.8266ccc8.js";
|
|
3
|
+
import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/material";
|
|
4
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { L as LinearProgressIndeterminate } from "../LinearProgressIndeterminate/index.c46da124.js";
|
|
7
|
+
import { I as Icon } from "../Icon/index.3211023d.js";
|
|
8
|
+
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
9
|
+
import { B as Button } from "../mui_extended/Button/index.94fec33c.js";
|
|
10
|
+
const componentName = "M4LoadingError";
|
|
11
|
+
generateUtilityClasses(componentName, [
|
|
12
|
+
"root",
|
|
13
|
+
"loadingErrorLoading",
|
|
14
|
+
"loadingError",
|
|
15
|
+
"loadingErrorIcon",
|
|
16
|
+
"loadingErrorTitle",
|
|
17
|
+
"loadingErrorDescription",
|
|
18
|
+
"loadingErrorDivider",
|
|
19
|
+
"loadingErrorTextAction",
|
|
20
|
+
"titleDescription"
|
|
21
|
+
]);
|
|
22
|
+
function getLoadingErrorUtilityClass(slot) {
|
|
23
|
+
return generateUtilityClass(componentName, slot);
|
|
24
|
+
}
|
|
25
|
+
const loadingErrorUtilityClasses = () => {
|
|
26
|
+
const slots = {
|
|
27
|
+
root: ["root"],
|
|
28
|
+
loadingErrorLoading: ["loadingErrorLoading"],
|
|
29
|
+
loadingError: ["loadingError"],
|
|
30
|
+
loadingErrorIcon: ["loadingErrorIcon"],
|
|
31
|
+
loadingErrorTitle: ["loadingErrorTitle"],
|
|
32
|
+
loadingErrorDescription: ["loadingErrorDescription"],
|
|
33
|
+
loadingErrorDivider: ["loadingErrorDivider"],
|
|
34
|
+
loadingErrorTextAction: ["loadingErrorTextAction"],
|
|
35
|
+
titleDescription: ["titleDescription"]
|
|
36
|
+
};
|
|
37
|
+
const composedClasses = unstable_composeClasses(slots, getLoadingErrorUtilityClass, {});
|
|
38
|
+
return {
|
|
39
|
+
...composedClasses
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
const LoadingErrorRoot = styled("div")(({ theme }) => ({
|
|
43
|
+
...theme?.components?.M4LoadingError?.styleOverrides
|
|
44
|
+
}));
|
|
45
|
+
const LoadingError = (props) => {
|
|
46
|
+
const {
|
|
47
|
+
status,
|
|
48
|
+
action,
|
|
49
|
+
title,
|
|
50
|
+
description,
|
|
51
|
+
recommendation,
|
|
52
|
+
introMessage,
|
|
53
|
+
errorIcon
|
|
54
|
+
} = props;
|
|
55
|
+
const {
|
|
56
|
+
host_static_assets,
|
|
57
|
+
environment_assets
|
|
58
|
+
} = useEnvironment();
|
|
59
|
+
const {
|
|
60
|
+
getLabel
|
|
61
|
+
} = useModuleDictionary();
|
|
62
|
+
const classes = loadingErrorUtilityClasses();
|
|
63
|
+
return /* @__PURE__ */ jsx(LoadingErrorRoot, {
|
|
64
|
+
className: classes.root,
|
|
65
|
+
children: status !== "error" ? /* @__PURE__ */ jsx("div", {
|
|
66
|
+
className: classes.loadingErrorLoading,
|
|
67
|
+
children: /* @__PURE__ */ jsx(LinearProgressIndeterminate, {})
|
|
68
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
69
|
+
className: classes.loadingError,
|
|
70
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
71
|
+
className: classes.loadingErrorIcon,
|
|
72
|
+
src: errorIcon ? errorIcon : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.NAVIGATE_ERROR}`
|
|
73
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
74
|
+
className: classes.titleDescription,
|
|
75
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
76
|
+
variant: "h3",
|
|
77
|
+
skeletonWidth: "100px",
|
|
78
|
+
className: classes.loadingErrorTitle,
|
|
79
|
+
children: title ? title : getLabel("loading_error.label_error_title")
|
|
80
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
81
|
+
variant: "subtitle",
|
|
82
|
+
skeletonWidth: "100px",
|
|
83
|
+
className: classes.loadingErrorDescription,
|
|
84
|
+
children: description ? description : getLabel("loading_error.label_error_description")
|
|
85
|
+
})]
|
|
86
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
87
|
+
className: classes.loadingErrorDivider
|
|
88
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
89
|
+
variant: "paragraph",
|
|
90
|
+
skeletonWidth: "100px",
|
|
91
|
+
className: classes.loadingErrorTextAction,
|
|
92
|
+
children: recommendation ? recommendation : getLabel("loading_error.label_error_recommendation")
|
|
93
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
94
|
+
onClick: action,
|
|
95
|
+
children: introMessage ? introMessage : getLabel("loading_error.label_error_intro")
|
|
96
|
+
})]
|
|
97
|
+
})
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
const getLoadingErrorComponentsDictionary = () => {
|
|
101
|
+
return ["loading_error"];
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
LoadingError as L,
|
|
105
|
+
getLoadingErrorComponentsDictionary as g
|
|
106
|
+
};
|