@headless-adminapp/fluent 1.4.12 → 1.4.14
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/App/AppHeaderContianer.js +105 -49
- package/App/QuickActionItem.d.ts +1 -0
- package/App/QuickActionItem.js +7 -3
- package/DataGrid/GridListContainer.js +61 -33
- package/DataGrid/MobileHeaderRightContainer.d.ts +2 -0
- package/DataGrid/MobileHeaderRightContainer.js +11 -0
- package/Header/MobileHeaderCommandContainer.d.ts +13 -0
- package/Header/MobileHeaderCommandContainer.js +168 -0
- package/Header/MobileHeaderQuickActionButton.d.ts +10 -0
- package/Header/MobileHeaderQuickActionButton.js +36 -0
- package/PageEntityForm/CommandContainer.js +3 -3
- package/PageEntityForm/MobileHeaderRightContainer.d.ts +2 -0
- package/PageEntityForm/MobileHeaderRightContainer.js +11 -0
- package/PageEntityForm/MobileHeaderTitleContainer.d.ts +2 -0
- package/PageEntityForm/MobileHeaderTitleContainer.js +38 -0
- package/PageEntityForm/PageEntityForm.js +2 -0
- package/PageEntityForm/PageEntityFormDesktopContainer.js +89 -74
- package/PageEntityForm/RecordCard.js +34 -36
- package/PageEntityForm/TabContainer.d.ts +2 -0
- package/PageEntityForm/TabContainer.js +35 -0
- package/PageEntityView/PageEntityView.js +4 -1
- package/PageEntityView/PageEntityViewMobileContainer.js +1 -2
- package/PageEntityView/PageEntityViewMobileFrame.d.ts +0 -1
- package/PageEntityView/PageEntityViewMobileFrame.js +25 -23
- package/ToastNotificationContainer/index.js +7 -5
- package/components/DialogLogin.js +1 -1
- package/components/PageLogin.js +22 -2
- package/form/layout/FormBody/FormBody.js +16 -1
- package/package.json +2 -2
package/components/PageLogin.js
CHANGED
|
@@ -3,11 +3,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PageLogin = PageLogin;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_components_1 = require("@fluentui/react-components");
|
|
6
|
+
const hooks_1 = require("@headless-adminapp/app/hooks");
|
|
6
7
|
const LoginForm_1 = require("./LoginForm");
|
|
7
8
|
function PageLogin(props) {
|
|
9
|
+
const isMobile = (0, hooks_1.useIsMobile)();
|
|
10
|
+
if (isMobile) {
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
12
|
+
position: 'fixed',
|
|
13
|
+
inset: 0,
|
|
14
|
+
display: 'flex',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
background: react_components_1.tokens.colorNeutralBackground2,
|
|
18
|
+
}, children: (0, jsx_runtime_1.jsx)("div", { style: {
|
|
19
|
+
position: 'fixed',
|
|
20
|
+
inset: 0,
|
|
21
|
+
padding: 24,
|
|
22
|
+
maxWidth: 360,
|
|
23
|
+
maxHeight: '100vh',
|
|
24
|
+
height: 'fit-content',
|
|
25
|
+
margin: 'auto',
|
|
26
|
+
}, children: (0, jsx_runtime_1.jsx)(LoginForm_1.LoginForm, { onLogin: props.onLogin, logoImageUrl: props.logoImageUrl, afterLoginContent: props.afterLoginContent, beforeLoginContent: props.beforeLoginContent, subtitle: props.subtitle }) }) }));
|
|
27
|
+
}
|
|
8
28
|
return ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
9
|
-
|
|
10
|
-
|
|
29
|
+
position: 'fixed',
|
|
30
|
+
inset: 0,
|
|
11
31
|
display: 'flex',
|
|
12
32
|
alignItems: 'center',
|
|
13
33
|
justifyContent: 'center',
|
|
@@ -2,10 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FormBody = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_components_1 = require("@fluentui/react-components");
|
|
5
6
|
const ScrollView_1 = require("@headless-adminapp/app/components/ScrollView");
|
|
7
|
+
const hooks_1 = require("@headless-adminapp/app/hooks");
|
|
6
8
|
const locale_1 = require("@headless-adminapp/app/locale");
|
|
7
9
|
const FormBody = ({ children }) => {
|
|
8
10
|
const { direction } = (0, locale_1.useLocale)();
|
|
9
|
-
|
|
11
|
+
const isMobile = (0, hooks_1.useIsMobile)();
|
|
12
|
+
if (isMobile) {
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
14
|
+
display: 'flex',
|
|
15
|
+
flexDirection: 'column',
|
|
16
|
+
flex: 1,
|
|
17
|
+
padding: react_components_1.tokens.spacingVerticalM,
|
|
18
|
+
}, children: children }));
|
|
19
|
+
}
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { display: 'flex', flexDirection: 'column', flex: 1 }, children: (0, jsx_runtime_1.jsx)(ScrollView_1.ScrollView, { autoHide: true, className: "FormBody_scrollview", rtl: direction === 'rtl', children: (0, jsx_runtime_1.jsx)("div", { style: {
|
|
21
|
+
display: 'flex',
|
|
22
|
+
flexDirection: 'column',
|
|
23
|
+
padding: react_components_1.tokens.spacingVerticalM,
|
|
24
|
+
}, children: children }) }) }));
|
|
10
25
|
};
|
|
11
26
|
exports.FormBody = FormBody;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headless-adminapp/fluent",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"uuid": "11.0.3",
|
|
53
53
|
"yup": "^1.4.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "0792de20ccf4a33c064428de55263fcf13de5543"
|
|
56
56
|
}
|