@evoke-platform/ui-components 1.0.0-dev.150 → 1.0.0-dev.151
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.
@@ -19,7 +19,7 @@ const BuilderGrid = (props) => {
|
|
19
19
|
var _a, _b;
|
20
20
|
const { loading, action, item, rows, initialSort, emptyContentSelectOptions } = props, rest = __rest(props, ["loading", "action", "item", "rows", "initialSort", "emptyContentSelectOptions"]);
|
21
21
|
const [anchorEl, setAnchorEl] = useState();
|
22
|
-
const toolbar = useMemo(() => () => React.createElement(BuilderGridToolbar, { loading: loading, action: action }), [loading]);
|
22
|
+
const toolbar = useMemo(() => () => React.createElement(BuilderGridToolbar, { loading: loading, action: action }), [loading, action]);
|
23
23
|
return (React.createElement(UIThemeProvider, null, loading || rows.length ? (React.createElement(Box, { sx: {
|
24
24
|
backgroundColor: '#fff',
|
25
25
|
borderRadius: '6px',
|
@@ -59,7 +59,9 @@ const BuilderGrid = (props) => {
|
|
59
59
|
}, '& .MuiDataGrid-iconButtonContainer': {
|
60
60
|
marginLeft: '4px',
|
61
61
|
}, height: 'calc(100vh - 240px)' }, rest.sx), getRowId: (row) => row.id, disableColumnMenu: true, initialState: {
|
62
|
-
sorting: {
|
62
|
+
sorting: {
|
63
|
+
sortModel: initialSort ? [{ field: initialSort, sort: 'asc' }] : [],
|
64
|
+
},
|
63
65
|
}, componentsProps: {
|
64
66
|
panel: {
|
65
67
|
anchorEl: anchorEl,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@evoke-platform/ui-components",
|
3
|
-
"version": "1.0.0-dev.
|
3
|
+
"version": "1.0.0-dev.151",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/published/index.js",
|
6
6
|
"module": "dist/published/index.js",
|
@@ -11,10 +11,10 @@
|
|
11
11
|
],
|
12
12
|
"scripts": {
|
13
13
|
"test": "jest",
|
14
|
-
"build": "
|
14
|
+
"build": "mkdirp -rf /dist && npm run build:esm && npm run build:cjs",
|
15
15
|
"build:esm": "tsc",
|
16
16
|
"build:cjs": "tsc --module CommonJS --outDir dist/cjs",
|
17
|
-
"prepublish": "
|
17
|
+
"prepublish": "mkdirp -rf /dist && tsc",
|
18
18
|
"storybook": "start-storybook -p 6006",
|
19
19
|
"build-storybook": "build-storybook",
|
20
20
|
"lint": "prettier --check src/**/*.*",
|