@etsoo/materialui 1.0.73 → 1.0.74
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/pages/ViewPage.js +2 -1
- package/package.json +1 -1
- package/src/pages/ViewPage.tsx +13 -14
package/lib/pages/ViewPage.js
CHANGED
|
@@ -107,7 +107,8 @@ export function ViewPage(props) {
|
|
|
107
107
|
":"),
|
|
108
108
|
typeof itemData === 'object' ? (itemData) : (React.createElement(Typography, { variant: "subtitle2" }, itemData))));
|
|
109
109
|
})),
|
|
110
|
-
|
|
110
|
+
React.createElement(Stack, { className: "ET-ViewPage-Actions", direction: "row", width: "100%", flexWrap: "wrap", justifyContent: "flex-end", paddingTop: actions == null ? undefined : paddings, paddingBottom: paddings, gap: paddings }, actions != null &&
|
|
111
|
+
Utils.getResult(actions, data, refresh)),
|
|
111
112
|
Utils.getResult(children, data, refresh),
|
|
112
113
|
pullToRefresh && (React.createElement(PullToRefreshUI, { mainElement: pullContainer, triggerElement: pullContainer, instructionsPullToRefresh: labels.pullToRefresh, instructionsReleaseToRefresh: labels.releaseToRefresh, instructionsRefreshing: labels.refreshing, onRefresh: refresh, shouldPullToRefresh: () => {
|
|
113
114
|
const container = document.querySelector(pullContainer);
|
package/package.json
CHANGED
package/src/pages/ViewPage.tsx
CHANGED
|
@@ -268,20 +268,19 @@ export function ViewPage<T extends DataTypes.StringRecord>(
|
|
|
268
268
|
);
|
|
269
269
|
})}
|
|
270
270
|
</Grid>
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
)}
|
|
271
|
+
<Stack
|
|
272
|
+
className="ET-ViewPage-Actions"
|
|
273
|
+
direction="row"
|
|
274
|
+
width="100%"
|
|
275
|
+
flexWrap="wrap"
|
|
276
|
+
justifyContent="flex-end"
|
|
277
|
+
paddingTop={actions == null ? undefined : paddings}
|
|
278
|
+
paddingBottom={paddings}
|
|
279
|
+
gap={paddings}
|
|
280
|
+
>
|
|
281
|
+
{actions != null &&
|
|
282
|
+
Utils.getResult(actions, data, refresh)}
|
|
283
|
+
</Stack>
|
|
285
284
|
{Utils.getResult(children, data, refresh)}
|
|
286
285
|
{pullToRefresh && (
|
|
287
286
|
<PullToRefreshUI
|