@m4l/components 0.1.65 → 0.1.67
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.0f471356.js → index.1254308b.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.4d2f599e.js → index.ddf330a8.js} +12 -15
- package/components/CommonActions/components/ActionFormIntro/{index.0eed3ba3.js → index.8248f431.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.41a598d6.js → index.dbf2ad66.js} +2 -2
- package/components/CommonActions/components/Actions/{index.3b882471.js → index.5da399f8.js} +12 -15
- package/components/DataGrid/{index.dc84293a.js → index.775deb12.js} +19 -22
- package/components/DynamicFilter/{index.abc697c7.js → index.7c7c9d30.js} +29 -32
- package/components/HelperText/{index.1a24d41b.js → index.5d8bc10a.js} +8 -8
- package/components/Icon/{index.6938827f.js → index.321976e8.js} +2 -2
- package/components/Image/{index.674024d4.js → index.c5b14688.js} +1 -1
- package/components/LanguagePopover/{index.47aa8119.js → index.6f0bca65.js} +9 -9
- package/components/ModalDialog/{index.3db4480d.js → index.c07975ed.js} +5 -5
- package/components/NavLink/{index.0d125c6b.js → index.da57f87d.js} +9 -9
- package/components/NoItemSelected/{index.1aa96110.js → index.09faa02c.js} +1 -1
- package/components/ObjectLogs/{index.05788334.js → index.a48a013c.js} +15 -18
- package/components/PaperForm/{index.b3da0da3.js → index.15002e62.js} +1 -1
- package/components/Period/{index.a1b7b4cc.js → index.c5179eae.js} +13 -16
- package/components/Resizeable/{index.ee84ebc5.js → index.d3469af2.js} +1 -1
- package/components/SideBar/{index.99ce4e06.js → index.9c026180.js} +6 -6
- package/components/areas/components/AreasViewer/subcomponents/Area/contexts/AreaContext/helper.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/contexts/AreaContext/types.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/index.d.ts +1 -1
- package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/DynamicMFParmsContext/store.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/WindowContext/store.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts/WindowContext/types.d.ts +1 -1
- package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/WindowToolsMFContext/types.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/Component/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/types.d.ts +3 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +1 -1
- package/components/areas/components/{AreasViewer/index.1aa4d12d.js → index.98d1c90a.js} +1964 -1809
- package/components/areas/components/index.d.ts +1 -2
- package/components/areas/contexts/AreasContext/{index.b3b26965.js → index.7dc6f386.js} +2 -3
- package/components/areas/contexts/AreasContext/types.d.ts +1 -1
- package/components/areas/contexts/index.3e99c2da.js +2 -0
- package/components/areas/contexts/index.d.ts +4 -4
- package/components/areas/hooks/{index.ffb1009e.js → index.1a0b8ab0.js} +1 -3
- package/components/areas/hooks/useArea/{index.c7e4f3fc.js → index.443ac11d.js} +2 -2
- package/components/areas/hooks/useDynamicMFParameters/{index.9a25f88a.js → index.2a963454.js} +1 -1
- package/components/areas/hooks/useDynamicMFParameters/index.d.ts +4 -4
- package/components/areas/hooks/useWindowToolsMF/index.d.ts +1 -1
- package/components/areas/{index.bfe6bf91.js → index.6aec2efe.js} +8 -11
- package/components/areas/{components/AreasViewer/subcomponents/Area/types.d.ts → types.d.ts} +3 -3
- package/components/formatters/BooleanFormatter/{index.7b9e92f8.js → index.a3c6f613.js} +1 -1
- package/components/formatters/{index.01b027ad.js → index.a09541d3.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.73d33896.js → index.9f9d4ed7.js} +10 -10
- package/components/hook-form/RHFAutocompleteAsync/{index.21f4cb53.js → index.af16b28e.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.c3b1884b.js → index.938fb1da.js} +3 -3
- package/components/hook-form/RHFPeriod/{index.cc624bb3.js → index.1b1fafa6.js} +2 -2
- package/components/hook-form/RHFTextField/{index.15659666.js → index.e42cd9c0.js} +6 -6
- package/components/hook-form/RHFUpload/{index.ecf5c788.js → index.d79721d2.js} +1 -1
- package/components/modal/{WindowBase.1b0657de.js → WindowBase.39f1310d.js} +3 -3
- package/components/modal/{WindowConfirm.60028bce.js → WindowConfirm.993a8ed9.js} +15 -18
- package/components/modal/index.c63957d7.js +24 -0
- package/components/mui_extended/Accordion/{index.95a1b021.js → index.466d66d5.js} +2 -2
- package/components/mui_extended/Button/{index.e4c61b66.js → index.680f7d77.js} +3 -3
- package/components/mui_extended/IconButton/{index.78a489d3.js → index.d31f1039.js} +1 -1
- package/components/mui_extended/MenuActions/{index.742a57d7.js → index.e1749afa.js} +2 -2
- package/components/mui_extended/Pager/{index.a44594e9.js → index.bc67d954.js} +1 -1
- package/components/mui_extended/Typography/{index.86505aed.js → index.1d866b8b.js} +1 -1
- package/components/mui_extended/index.a6c77aa1.js +19 -0
- package/contexts/ModalContext/{index.bfc47ba9.js → index.53e8904e.js} +1 -1
- package/contexts/index.d.ts +1 -1
- package/hooks/useModal/{index.979ab2ea.js → index.2a4b4b65.js} +1 -1
- package/index.js +102 -106
- package/package.json +1 -1
- package/{react-draggable.d6441025.js → react-draggable.18cf453f.js} +1 -1
- package/{react-resizable.79fb7404.js → react-resizable.f3de2742.js} +3 -3
- package/utils/{index.64775c34.js → index.3a4700cd.js} +1 -1
- package/{vendor.2d9f95b4.js → vendor.31965c93.js} +44 -47
- package/components/areas/components/AreasAdmin/index.46fab65b.js +0 -135
- package/components/areas/components/index.9de77fae.js +0 -12
- package/components/areas/contexts/DynamicMFParmsContext/index.5b3248df.js +0 -43
- package/components/areas/contexts/index.4ebef035.js +0 -21
- package/components/modal/index.fde6acc3.js +0 -27
- package/components/mui_extended/index.61356a6a.js +0 -19
- /package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/DynamicMFParmsContext/index.d.ts +0 -0
- /package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/DynamicMFParmsContext/types.d.ts +0 -0
- /package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/WindowToolsMFContext/index.d.ts +0 -0
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.78a489d3.js";
|
|
2
|
-
import { u as useAreasStore } from "../../hooks/useArea/index.c7e4f3fc.js";
|
|
3
|
-
import { useEnvironment } from "@m4l/core";
|
|
4
|
-
import { generateUtilityClasses } from "@mui/material";
|
|
5
|
-
import "../../../Icon/index.6938827f.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
-
import "../../../mui_extended/Accordion/index.95a1b021.js";
|
|
9
|
-
import "../../../mui_extended/Avatar/index.fe06afd7.js";
|
|
10
|
-
import "react-router-dom";
|
|
11
|
-
import "@mui/material/Button";
|
|
12
|
-
import "../../../mui_extended/Button/index.e4c61b66.js";
|
|
13
|
-
import clsx from "clsx";
|
|
14
|
-
import "../../../Image/index.674024d4.js";
|
|
15
|
-
import "@mui/lab";
|
|
16
|
-
import "../../../mui_extended/Typography/index.86505aed.js";
|
|
17
|
-
import "../../../mui_extended/Popover/index.e271e4f0.js";
|
|
18
|
-
import "../../../mui_extended/MenuActions/index.742a57d7.js";
|
|
19
|
-
import "../../../mui_extended/Pager/index.a44594e9.js";
|
|
20
|
-
import "../../../mui_extended/Tab/index.e0653a0a.js";
|
|
21
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
22
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.64775c34.js";
|
|
23
|
-
import { A as AREAS_ADMIN_CLASS_NAME, I as ICONS } from "../../index.bfe6bf91.js";
|
|
24
|
-
import { shallow } from "zustand/shallow";
|
|
25
|
-
import { styled } from "@mui/material/styles";
|
|
26
|
-
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
27
|
-
"root",
|
|
28
|
-
"areaChipRoot",
|
|
29
|
-
"areaChipTitle",
|
|
30
|
-
"areaChipDeleteButton",
|
|
31
|
-
"areaChipEditButton",
|
|
32
|
-
"areasAddButton",
|
|
33
|
-
"selected",
|
|
34
|
-
"isMobile"
|
|
35
|
-
], AREAS_ADMIN_CLASS_NAME);
|
|
36
|
-
const useAreasAdminUtilityClasses = (ownerState) => {
|
|
37
|
-
const slots = {
|
|
38
|
-
root: ["root", ownerState.status, ownerState.isMobile && "isMobile", ownerState.isSkeleton && "isSkeleton"],
|
|
39
|
-
areaChipRoot: ["areaChipRoot"],
|
|
40
|
-
areaChipTitle: ["areaChipTitle"],
|
|
41
|
-
areaChipDeleteButton: ["areaChipDeleteButton"],
|
|
42
|
-
areaChipEditButton: ["areaChipEditButton"],
|
|
43
|
-
areasAddButton: ["areasAddButton"]
|
|
44
|
-
};
|
|
45
|
-
return unstable_composeClasses(slots, getComponentUtilityClass(AREAS_ADMIN_CLASS_NAME), {});
|
|
46
|
-
};
|
|
47
|
-
const AreaChip = (props) => {
|
|
48
|
-
const {
|
|
49
|
-
areaId,
|
|
50
|
-
selected,
|
|
51
|
-
areaName
|
|
52
|
-
} = props;
|
|
53
|
-
const {
|
|
54
|
-
host_static_assets,
|
|
55
|
-
environment_assets
|
|
56
|
-
} = useEnvironment();
|
|
57
|
-
const {
|
|
58
|
-
deleteArea,
|
|
59
|
-
selectArea
|
|
60
|
-
} = useAreasStore((state) => state.actions);
|
|
61
|
-
const onClickDeleteArea = (e) => {
|
|
62
|
-
e.stopPropagation();
|
|
63
|
-
deleteArea(areaId);
|
|
64
|
-
};
|
|
65
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
66
|
-
role: "presentation",
|
|
67
|
-
className: clsx(areasAdminClasses.areaChipRoot, selected ? areasAdminClasses.selected : null),
|
|
68
|
-
onClick: () => {
|
|
69
|
-
selectArea(areaId);
|
|
70
|
-
},
|
|
71
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
72
|
-
className: areasAdminClasses.areaChipTitle,
|
|
73
|
-
children: areaName
|
|
74
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
75
|
-
className: areasAdminClasses.areaChipDeleteButton,
|
|
76
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
77
|
-
size: "small",
|
|
78
|
-
onClick: onClickDeleteArea
|
|
79
|
-
})]
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
AreaChip.displayName = "AreaButtons";
|
|
83
|
-
const AreasAdminRoot = styled("div")`
|
|
84
|
-
display: flex;
|
|
85
|
-
position: relative;
|
|
86
|
-
|
|
87
|
-
//areaRoot
|
|
88
|
-
& .${areasAdminClasses.areaChipRoot} {
|
|
89
|
-
display: flex;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
& .${areasAdminClasses.areaChipRoot}.${areasAdminClasses.selected}::before {
|
|
93
|
-
content: "";
|
|
94
|
-
background-color: ${(props) => props.theme.palette.primary.main};
|
|
95
|
-
height: 100%;
|
|
96
|
-
width: 8px;
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
${(props) => props.theme.components?.M4LAreasAdmin}
|
|
100
|
-
|
|
101
|
-
`;
|
|
102
|
-
function AreasAdmin() {
|
|
103
|
-
const areas = useAreasStore((state) => state.areas, shallow);
|
|
104
|
-
const currentArea = useAreasStore((state) => state.currentArea, shallow);
|
|
105
|
-
const status = useAreasStore((state) => state.ownerState.status);
|
|
106
|
-
const classesRoot = useAreasStore((state) => state.adminClasses.root);
|
|
107
|
-
const {
|
|
108
|
-
addArea
|
|
109
|
-
} = useAreasStore((state) => state.actions, shallow);
|
|
110
|
-
const {
|
|
111
|
-
host_static_assets,
|
|
112
|
-
environment_assets
|
|
113
|
-
} = useEnvironment();
|
|
114
|
-
console.log("Render AreasAdmin", status, areas);
|
|
115
|
-
if (status !== "loaded") {
|
|
116
|
-
return null;
|
|
117
|
-
}
|
|
118
|
-
return /* @__PURE__ */ jsxs(AreasAdminRoot, {
|
|
119
|
-
className: classesRoot,
|
|
120
|
-
children: [areas.map((area) => /* @__PURE__ */ jsx(AreaChip, {
|
|
121
|
-
areaId: area.id,
|
|
122
|
-
selected: area.id === currentArea,
|
|
123
|
-
areaName: area.name
|
|
124
|
-
}, area.id)), /* @__PURE__ */ jsx(IconButton, {
|
|
125
|
-
className: areasAdminClasses.areasAddButton,
|
|
126
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`,
|
|
127
|
-
size: "small",
|
|
128
|
-
onClick: addArea
|
|
129
|
-
})]
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
export {
|
|
133
|
-
AreasAdmin as A,
|
|
134
|
-
useAreasAdminUtilityClasses as u
|
|
135
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "./AreasViewer/index.1aa4d12d.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "@m4l/core";
|
|
4
|
-
import "@mui/material";
|
|
5
|
-
import "../../Icon/index.6938827f.js";
|
|
6
|
-
import "react/jsx-runtime";
|
|
7
|
-
import "../../mui_extended/IconButton/index.78a489d3.js";
|
|
8
|
-
import "clsx";
|
|
9
|
-
import "zustand";
|
|
10
|
-
import "../contexts/AreasContext/index.b3b26965.js";
|
|
11
|
-
import "./AreasAdmin/index.46fab65b.js";
|
|
12
|
-
import "zustand/shallow";
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React__default, { createContext } from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createStore } from "zustand";
|
|
4
|
-
import { devtools } from "zustand/middleware";
|
|
5
|
-
import { immer } from "zustand/middleware/immer";
|
|
6
|
-
const DynamicMFParmsContext = createContext(null);
|
|
7
|
-
function DynamicMFParmsProvider(props) {
|
|
8
|
-
const {
|
|
9
|
-
children,
|
|
10
|
-
store
|
|
11
|
-
} = props;
|
|
12
|
-
return /* @__PURE__ */ jsx(DynamicMFParmsContext.Provider, {
|
|
13
|
-
value: store,
|
|
14
|
-
children
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
const MemonizedDynamicMFParmsProvider = React__default.memo(DynamicMFParmsProvider);
|
|
18
|
-
const createDynamicMFStore = (initProps) => {
|
|
19
|
-
const startProps = {
|
|
20
|
-
...initProps
|
|
21
|
-
};
|
|
22
|
-
return createStore(
|
|
23
|
-
devtools(
|
|
24
|
-
immer((set, _get) => ({
|
|
25
|
-
...startProps,
|
|
26
|
-
actions: {
|
|
27
|
-
changeData: (newDynamicMFState) => {
|
|
28
|
-
set((state) => {
|
|
29
|
-
state.dynamicMFParameters = newDynamicMFState;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
})),
|
|
34
|
-
{ name: `dyamic store ${initProps.windowId}` }
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
DynamicMFParmsProvider as D,
|
|
40
|
-
MemonizedDynamicMFParmsProvider as M,
|
|
41
|
-
DynamicMFParmsContext as a,
|
|
42
|
-
createDynamicMFStore as c
|
|
43
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import "./AreasContext/index.b3b26965.js";
|
|
2
|
-
import React__default, { createContext } from "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
const WindowToolsMFContext = createContext(null);
|
|
5
|
-
function WindowToolsMFProvider(props) {
|
|
6
|
-
const {
|
|
7
|
-
children,
|
|
8
|
-
...other
|
|
9
|
-
} = props;
|
|
10
|
-
return /* @__PURE__ */ jsx(WindowToolsMFContext.Provider, {
|
|
11
|
-
value: {
|
|
12
|
-
...other
|
|
13
|
-
},
|
|
14
|
-
children
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
React__default.memo(WindowToolsMFProvider);
|
|
18
|
-
export {
|
|
19
|
-
WindowToolsMFProvider as W,
|
|
20
|
-
WindowToolsMFContext as a
|
|
21
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import "@mui/material";
|
|
2
|
-
import "../../react-draggable.d6441025.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "../../contexts/ModalContext/index.bfc47ba9.js";
|
|
5
|
-
import "../ModalDialog/index.3db4480d.js";
|
|
6
|
-
import "../Resizeable/index.ee84ebc5.js";
|
|
7
|
-
import "react/jsx-runtime";
|
|
8
|
-
import "@m4l/graphics";
|
|
9
|
-
import "@m4l/core";
|
|
10
|
-
import "../CommonActions/components/Actions/index.3b882471.js";
|
|
11
|
-
import "@mui/material/Button";
|
|
12
|
-
import "../mui_extended/Button/index.e4c61b66.js";
|
|
13
|
-
import "clsx";
|
|
14
|
-
import "react-hook-form";
|
|
15
|
-
import "./WindowBase.1b0657de.js";
|
|
16
|
-
import "../Icon/index.6938827f.js";
|
|
17
|
-
import "../areas/components/AreasViewer/index.1aa4d12d.js";
|
|
18
|
-
import "../mui_extended/IconButton/index.78a489d3.js";
|
|
19
|
-
import "zustand";
|
|
20
|
-
import "../areas/contexts/AreasContext/index.b3b26965.js";
|
|
21
|
-
import "../areas/components/AreasAdmin/index.46fab65b.js";
|
|
22
|
-
import "zustand/shallow";
|
|
23
|
-
import "../areas/contexts/index.4ebef035.js";
|
|
24
|
-
import "../areas/contexts/DynamicMFParmsContext/index.5b3248df.js";
|
|
25
|
-
import "@mui/lab";
|
|
26
|
-
import "../mui_extended/Typography/index.86505aed.js";
|
|
27
|
-
import "./WindowConfirm.60028bce.js";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "@mui/material";
|
|
2
|
-
import "react";
|
|
3
|
-
import "@m4l/core";
|
|
4
|
-
import "../Icon/index.6938827f.js";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "./IconButton/index.78a489d3.js";
|
|
7
|
-
import "clsx";
|
|
8
|
-
import "./Accordion/index.95a1b021.js";
|
|
9
|
-
import "./Avatar/index.fe06afd7.js";
|
|
10
|
-
import "react-router-dom";
|
|
11
|
-
import "@mui/material/Button";
|
|
12
|
-
import "./Button/index.e4c61b66.js";
|
|
13
|
-
import "../Image/index.674024d4.js";
|
|
14
|
-
import "@mui/lab";
|
|
15
|
-
import "./Typography/index.86505aed.js";
|
|
16
|
-
import "./Popover/index.e271e4f0.js";
|
|
17
|
-
import "./MenuActions/index.742a57d7.js";
|
|
18
|
-
import "./Pager/index.a44594e9.js";
|
|
19
|
-
import "./Tab/index.e0653a0a.js";
|
|
File without changes
|
|
File without changes
|