@m4l/layouts 0.0.47 → 0.0.48
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.
|
@@ -53,7 +53,7 @@ function ButtonDetail(props) {
|
|
|
53
53
|
}
|
|
54
54
|
function getTotalModuleActions(splitActions, moduleActions, viewDetailAction, isDesktop) {
|
|
55
55
|
let totalActions = isDesktop !== void 0 && isDesktop ? [...splitActions] : [viewDetailAction];
|
|
56
|
-
totalActions =
|
|
56
|
+
totalActions = moduleActions.concat(totalActions);
|
|
57
57
|
return totalActions;
|
|
58
58
|
}
|
|
59
59
|
function MasterDetailLayout(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BoxIcon, Breadcrumbs as Breadcrumbs$1, MenuActions, useModal, ModalProvider, getModalDialogComponentsDictionary } from "@m4l/components";
|
|
2
2
|
import { createContext, useState, useMemo, forwardRef, useRef, useImperativeHandle } from "react";
|
|
3
3
|
import { styled, useTheme } from "@mui/material/styles";
|
|
4
|
-
import { voidFunction, useModuleDictionary, useFlagsPresent, FlagsProvider, ModuleDictionaryProvider,
|
|
4
|
+
import { voidFunction, useModuleDictionary, useFlagsPresent, FlagsProvider, ModuleDictionaryProvider, ModulePrivilegesProvider, ModuleSkeletonProvider } from "@m4l/core";
|
|
5
5
|
import { Skeleton, Typography, IconButton } from "@mui/material";
|
|
6
6
|
import { u as useResponsiveDesktop } from "../../vendor.js";
|
|
7
7
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
@@ -356,10 +356,10 @@ const ModuleLayout = forwardRef((props, ref) => {
|
|
|
356
356
|
children: /* @__PURE__ */ jsx(ModuleDictionaryProvider, {
|
|
357
357
|
moduleId,
|
|
358
358
|
componentsDictionary,
|
|
359
|
-
children: /* @__PURE__ */ jsx(
|
|
360
|
-
|
|
361
|
-
children: /* @__PURE__ */ jsx(
|
|
362
|
-
|
|
359
|
+
children: /* @__PURE__ */ jsx(ModulePrivilegesProvider, {
|
|
360
|
+
queryPrivileges: privileges,
|
|
361
|
+
children: /* @__PURE__ */ jsx(ModuleSkeletonProvider, {
|
|
362
|
+
flags: skeletonFlags,
|
|
363
363
|
children: /* @__PURE__ */ jsx(ModuleProvider, {
|
|
364
364
|
moduleId,
|
|
365
365
|
urlIcon,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/layouts",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.48",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"format": "npm run prettier:fix && npm run lint:fix"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@m4l/components": "^0.0.
|
|
17
|
+
"@m4l/components": "^0.0.62",
|
|
18
18
|
"react": "^17.0.0 || 18.x",
|
|
19
19
|
"react-dom": "^18.0.0"
|
|
20
20
|
},
|