@etsoo/materialui 1.6.23 → 1.6.24

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/lib/cjs/FabBox.js CHANGED
@@ -9,7 +9,7 @@ const Box_1 = __importDefault(require("@mui/material/Box"));
9
9
  const Paper_1 = __importDefault(require("@mui/material/Paper"));
10
10
  const styles_1 = require("@mui/material/styles");
11
11
  const react_1 = __importDefault(require("react"));
12
- const initOpactiy = 0.15;
12
+ const initOpactiy = 0.25;
13
13
  /**
14
14
  * Fabs container box
15
15
  * @param props Props
@@ -133,20 +133,15 @@ function ResponsibleContainer(props) {
133
133
  return ((0, jsx_runtime_1.jsx)(Box_1.default, { className: "ListBox", sx: { height: heightLocal }, children: (0, jsx_runtime_1.jsx)(ScrollerListEx_1.ScrollerListEx, { autoLoad: !hasFields, cacheKey: cacheKey, cacheMinutes: cacheMinutes, height: heightLocal, loadData: localLoadData, mRef: mRefs, onClick: (event, data) => quickAction && react_2.ReactUtils.isSafeClick(event) && quickAction(data), rowHeight: getRowHeight(false), ...listProps }) }));
134
134
  })();
135
135
  const searchBar = react_1.default.useMemo(() => {
136
- if (!hasFields ||
137
- showDataGrid == null ||
138
- rect?.width == null ||
139
- rect.width < 20)
136
+ if (!hasFields || rect?.width == null || rect.width < 20)
140
137
  return;
141
138
  const f = typeof fields == "function" ? fields(searchData) : fields;
142
139
  return ((0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { fields: f, onSubmit: onSubmit, className: `searchBar${showDataGrid ? "Grid" : "List"}`, width: rect.width, top: searchBarTop }));
143
140
  }, [showDataGrid, hasFields, searchBarHeight, rect?.width]);
144
141
  // Pull container
145
- const pullContainer = showDataGrid == null
146
- ? undefined
147
- : showDataGrid
148
- ? ".DataGridEx-Body"
149
- : ".ScrollerListEx-Body";
142
+ const pullContainer = showDataGrid
143
+ ? ".DataGridEx-Body"
144
+ : ".ScrollerListEx-Body";
150
145
  // Layout
151
146
  return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: containerBoxSx == null
152
147
  ? undefined
package/lib/mjs/FabBox.js CHANGED
@@ -3,7 +3,7 @@ import Box from "@mui/material/Box";
3
3
  import Paper from "@mui/material/Paper";
4
4
  import { useTheme } from "@mui/material/styles";
5
5
  import React from "react";
6
- const initOpactiy = 0.15;
6
+ const initOpactiy = 0.25;
7
7
  /**
8
8
  * Fabs container box
9
9
  * @param props Props
@@ -127,20 +127,15 @@ export function ResponsibleContainer(props) {
127
127
  return (_jsx(Box, { className: "ListBox", sx: { height: heightLocal }, children: _jsx(ScrollerListEx, { autoLoad: !hasFields, cacheKey: cacheKey, cacheMinutes: cacheMinutes, height: heightLocal, loadData: localLoadData, mRef: mRefs, onClick: (event, data) => quickAction && ReactUtils.isSafeClick(event) && quickAction(data), rowHeight: getRowHeight(false), ...listProps }) }));
128
128
  })();
129
129
  const searchBar = React.useMemo(() => {
130
- if (!hasFields ||
131
- showDataGrid == null ||
132
- rect?.width == null ||
133
- rect.width < 20)
130
+ if (!hasFields || rect?.width == null || rect.width < 20)
134
131
  return;
135
132
  const f = typeof fields == "function" ? fields(searchData) : fields;
136
133
  return (_jsx(SearchBar, { fields: f, onSubmit: onSubmit, className: `searchBar${showDataGrid ? "Grid" : "List"}`, width: rect.width, top: searchBarTop }));
137
134
  }, [showDataGrid, hasFields, searchBarHeight, rect?.width]);
138
135
  // Pull container
139
- const pullContainer = showDataGrid == null
140
- ? undefined
141
- : showDataGrid
142
- ? ".DataGridEx-Body"
143
- : ".ScrollerListEx-Body";
136
+ const pullContainer = showDataGrid
137
+ ? ".DataGridEx-Body"
138
+ : ".ScrollerListEx-Body";
144
139
  // Layout
145
140
  return (_jsxs(Box, { sx: containerBoxSx == null
146
141
  ? undefined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.6.23",
3
+ "version": "1.6.24",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -41,7 +41,7 @@
41
41
  "@emotion/styled": "^11.14.1",
42
42
  "@etsoo/appscript": "^1.6.56",
43
43
  "@etsoo/notificationbase": "^1.1.66",
44
- "@etsoo/react": "^1.8.78",
44
+ "@etsoo/react": "^1.8.79",
45
45
  "@etsoo/shared": "^1.2.80",
46
46
  "@mui/icons-material": "^7.3.9",
47
47
  "@mui/material": "^7.3.9",
package/src/FabBox.tsx CHANGED
@@ -4,7 +4,7 @@ import { useTheme } from "@mui/material/styles";
4
4
  import React from "react";
5
5
 
6
6
  type SharedProps = keyof BoxProps & keyof PaperProps;
7
- const initOpactiy = 0.15;
7
+ const initOpactiy = 0.25;
8
8
 
9
9
  /**
10
10
  * Fabs container box props
@@ -373,13 +373,7 @@ export function ResponsibleContainer<T extends object, F>(
373
373
  })();
374
374
 
375
375
  const searchBar = React.useMemo(() => {
376
- if (
377
- !hasFields ||
378
- showDataGrid == null ||
379
- rect?.width == null ||
380
- rect.width < 20
381
- )
382
- return;
376
+ if (!hasFields || rect?.width == null || rect.width < 20) return;
383
377
 
384
378
  const f = typeof fields == "function" ? fields(searchData) : fields;
385
379
 
@@ -395,12 +389,9 @@ export function ResponsibleContainer<T extends object, F>(
395
389
  }, [showDataGrid, hasFields, searchBarHeight, rect?.width]);
396
390
 
397
391
  // Pull container
398
- const pullContainer =
399
- showDataGrid == null
400
- ? undefined
401
- : showDataGrid
402
- ? ".DataGridEx-Body"
403
- : ".ScrollerListEx-Body";
392
+ const pullContainer = showDataGrid
393
+ ? ".DataGridEx-Body"
394
+ : ".ScrollerListEx-Body";
404
395
 
405
396
  // Layout
406
397
  return (