@etsoo/materialui 1.5.0 → 1.5.1

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.
@@ -162,7 +162,7 @@ function ViewContainer(props) {
162
162
  // Global app
163
163
  const app = (0, ReactApp_1.useRequiredAppContext)();
164
164
  // Destruct
165
- const { data, fields, gridRef, leftContainer, leftContainerLines = 3, leftContainerProps = {}, refresh, spacing = MUGlobal_1.MUGlobal.half(MUGlobal_1.MUGlobal.pagePaddings), ...rest } = props;
165
+ const { data, fields, gridRef, leftContainer, leftContainerLines = 3, leftContainerProps = {}, refresh, spacing = MUGlobal_1.MUGlobal.half(MUGlobal_1.MUGlobal.pagePaddings) } = props;
166
166
  // Left container
167
167
  const { size = ViewPageSize.smallLine, ...leftContainerPropsRest } = leftContainerProps;
168
168
  // Current breakpoint
@@ -226,5 +226,5 @@ function ViewContainer(props) {
226
226
  }, [app, fields, data, bp]);
227
227
  let leftResult;
228
228
  // Layout
229
- return ((0, jsx_runtime_1.jsxs)(material_1.Grid2, { container: true, justifyContent: "left", className: "ET-ViewPage", ref: gridRef, spacing: spacing, children: [leftContainer && (leftResult = leftContainer(data)) != null && ((0, jsx_runtime_1.jsxs)(react_2.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid2, { container: true, className: "ET-ViewPage-LeftContainer", spacing: spacing, size: size, ...leftContainerPropsRest, children: leftResult }), (0, jsx_runtime_1.jsx)(material_1.Grid2, { container: true, className: "ET-ViewPage-LeftOthers", spacing: spacing, size: ViewPageSize.matchSize(size), children: createFields(data, leftContainerLines * (12 - getItemSize(bp, size))) })] })), createFields(data)] }));
229
+ return ((0, jsx_runtime_1.jsxs)(material_1.Grid2, { container: true, justifyContent: "left", className: "ET-ViewContainer", ref: gridRef, spacing: spacing, children: [leftContainer && (leftResult = leftContainer(data)) != null && ((0, jsx_runtime_1.jsxs)(react_2.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid2, { container: true, className: "ET-ViewPage-LeftContainer", spacing: spacing, size: size, ...leftContainerPropsRest, children: leftResult }), (0, jsx_runtime_1.jsx)(material_1.Grid2, { container: true, className: "ET-ViewPage-LeftOthers", spacing: spacing, size: ViewPageSize.matchSize(size), children: createFields(data, leftContainerLines * (12 - getItemSize(bp, size))) })] })), createFields(data)] }));
230
230
  }
@@ -44,11 +44,7 @@ function ViewPage(props) {
44
44
  MessageUtils_1.MessageUtils.offRefresh(refreshHandler);
45
45
  };
46
46
  }, [refresh]);
47
- return ((0, jsx_runtime_1.jsx)(CommonPage_1.CommonPage, { paddings: paddings, onRefresh: supportRefresh ? refresh : undefined, onUpdate: supportRefresh ? undefined : refresh, sx: {
48
- ".MuiTypography-subtitle2": {
49
- fontWeight: "bold"
50
- }
51
- }, ...rest, scrollContainer: globalThis, fabColumnDirection: fabColumnDirection, fabTop: fabTop, supportBack: supportBack, children: data == null ? ((0, jsx_runtime_1.jsx)(material_1.LinearProgress, {})) : ((0, jsx_runtime_1.jsxs)(react_2.default.Fragment, { children: [operationMessageHandler && ((0, jsx_runtime_1.jsx)(OperationMessageContainer_1.OperationMessageContainer, { handler: "id" in operationMessageHandler
47
+ return ((0, jsx_runtime_1.jsx)(CommonPage_1.CommonPage, { paddings: paddings, onRefresh: supportRefresh ? refresh : undefined, onUpdate: supportRefresh ? undefined : refresh, className: "ET-ViewPage", ...rest, scrollContainer: globalThis, fabColumnDirection: fabColumnDirection, fabTop: fabTop, supportBack: supportBack, children: data == null ? ((0, jsx_runtime_1.jsx)(material_1.LinearProgress, {})) : ((0, jsx_runtime_1.jsxs)(react_2.default.Fragment, { children: [operationMessageHandler && ((0, jsx_runtime_1.jsx)(OperationMessageContainer_1.OperationMessageContainer, { handler: "id" in operationMessageHandler
52
48
  ? [
53
49
  operationMessageHandler.types,
54
50
  refresh,
@@ -154,7 +154,7 @@ export function ViewContainer(props) {
154
154
  // Global app
155
155
  const app = useRequiredAppContext();
156
156
  // Destruct
157
- const { data, fields, gridRef, leftContainer, leftContainerLines = 3, leftContainerProps = {}, refresh, spacing = MUGlobal.half(MUGlobal.pagePaddings), ...rest } = props;
157
+ const { data, fields, gridRef, leftContainer, leftContainerLines = 3, leftContainerProps = {}, refresh, spacing = MUGlobal.half(MUGlobal.pagePaddings) } = props;
158
158
  // Left container
159
159
  const { size = ViewPageSize.smallLine, ...leftContainerPropsRest } = leftContainerProps;
160
160
  // Current breakpoint
@@ -218,5 +218,5 @@ export function ViewContainer(props) {
218
218
  }, [app, fields, data, bp]);
219
219
  let leftResult;
220
220
  // Layout
221
- return (_jsxs(Grid2, { container: true, justifyContent: "left", className: "ET-ViewPage", ref: gridRef, spacing: spacing, children: [leftContainer && (leftResult = leftContainer(data)) != null && (_jsxs(React.Fragment, { children: [_jsx(Grid2, { container: true, className: "ET-ViewPage-LeftContainer", spacing: spacing, size: size, ...leftContainerPropsRest, children: leftResult }), _jsx(Grid2, { container: true, className: "ET-ViewPage-LeftOthers", spacing: spacing, size: ViewPageSize.matchSize(size), children: createFields(data, leftContainerLines * (12 - getItemSize(bp, size))) })] })), createFields(data)] }));
221
+ return (_jsxs(Grid2, { container: true, justifyContent: "left", className: "ET-ViewContainer", ref: gridRef, spacing: spacing, children: [leftContainer && (leftResult = leftContainer(data)) != null && (_jsxs(React.Fragment, { children: [_jsx(Grid2, { container: true, className: "ET-ViewPage-LeftContainer", spacing: spacing, size: size, ...leftContainerPropsRest, children: leftResult }), _jsx(Grid2, { container: true, className: "ET-ViewPage-LeftOthers", spacing: spacing, size: ViewPageSize.matchSize(size), children: createFields(data, leftContainerLines * (12 - getItemSize(bp, size))) })] })), createFields(data)] }));
222
222
  }
@@ -38,11 +38,7 @@ export function ViewPage(props) {
38
38
  MessageUtils.offRefresh(refreshHandler);
39
39
  };
40
40
  }, [refresh]);
41
- return (_jsx(CommonPage, { paddings: paddings, onRefresh: supportRefresh ? refresh : undefined, onUpdate: supportRefresh ? undefined : refresh, sx: {
42
- ".MuiTypography-subtitle2": {
43
- fontWeight: "bold"
44
- }
45
- }, ...rest, scrollContainer: globalThis, fabColumnDirection: fabColumnDirection, fabTop: fabTop, supportBack: supportBack, children: data == null ? (_jsx(LinearProgress, {})) : (_jsxs(React.Fragment, { children: [operationMessageHandler && (_jsx(OperationMessageContainer, { handler: "id" in operationMessageHandler
41
+ return (_jsx(CommonPage, { paddings: paddings, onRefresh: supportRefresh ? refresh : undefined, onUpdate: supportRefresh ? undefined : refresh, className: "ET-ViewPage", ...rest, scrollContainer: globalThis, fabColumnDirection: fabColumnDirection, fabTop: fabTop, supportBack: supportBack, children: data == null ? (_jsx(LinearProgress, {})) : (_jsxs(React.Fragment, { children: [operationMessageHandler && (_jsx(OperationMessageContainer, { handler: "id" in operationMessageHandler
46
42
  ? [
47
43
  operationMessageHandler.types,
48
44
  refresh,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -46,7 +46,7 @@
46
46
  "@etsoo/shared": "^1.2.63",
47
47
  "@mui/icons-material": "^6.4.8",
48
48
  "@mui/material": "^6.4.8",
49
- "@mui/x-data-grid": "^7.28.0",
49
+ "@mui/x-data-grid": "^7.28.1",
50
50
  "chart.js": "^4.4.8",
51
51
  "chartjs-plugin-datalabels": "^2.2.0",
52
52
  "eventemitter3": "^5.0.1",
@@ -315,8 +315,7 @@ export function ViewContainer<T extends DataTypes.StringRecord>(
315
315
  leftContainerLines = 3,
316
316
  leftContainerProps = {},
317
317
  refresh,
318
- spacing = MUGlobal.half(MUGlobal.pagePaddings),
319
- ...rest
318
+ spacing = MUGlobal.half(MUGlobal.pagePaddings)
320
319
  } = props;
321
320
 
322
321
  // Left container
@@ -403,7 +402,7 @@ export function ViewContainer<T extends DataTypes.StringRecord>(
403
402
  <Grid2
404
403
  container
405
404
  justifyContent="left"
406
- className="ET-ViewPage"
405
+ className="ET-ViewContainer"
407
406
  ref={gridRef}
408
407
  spacing={spacing}
409
408
  >
@@ -129,11 +129,7 @@ export function ViewPage<T extends DataTypes.StringRecord>(
129
129
  paddings={paddings}
130
130
  onRefresh={supportRefresh ? refresh : undefined}
131
131
  onUpdate={supportRefresh ? undefined : refresh}
132
- sx={{
133
- ".MuiTypography-subtitle2": {
134
- fontWeight: "bold"
135
- }
136
- }}
132
+ className="ET-ViewPage"
137
133
  {...rest}
138
134
  scrollContainer={globalThis}
139
135
  fabColumnDirection={fabColumnDirection}