@headless-adminapp/fluent 1.1.9 → 1.1.10
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.
|
@@ -78,11 +78,14 @@ column, onResetSize, resizeHandler, resizable, disableFilter, disableSort, }) =>
|
|
|
78
78
|
switch (attribute.type) {
|
|
79
79
|
case 'money':
|
|
80
80
|
case 'number':
|
|
81
|
-
return '
|
|
81
|
+
return attribute.type === 'number' &&
|
|
82
|
+
['duration', 'time'].includes(attribute.format)
|
|
83
|
+
? 'left'
|
|
84
|
+
: 'right';
|
|
82
85
|
default:
|
|
83
86
|
return 'left';
|
|
84
87
|
}
|
|
85
|
-
}, [attribute
|
|
88
|
+
}, [attribute]);
|
|
86
89
|
const styles = useStyles();
|
|
87
90
|
const isResizingRef = (0, react_1.useRef)(false);
|
|
88
91
|
const [columnFilters, setColumnFilters] = (0, hooks_1.useGridColumnFilter)();
|
|
@@ -306,7 +306,10 @@ function renderCellContent({ info, column, schema, schemaStore, locale, routeRes
|
|
|
306
306
|
switch (attribute?.type) {
|
|
307
307
|
case 'money':
|
|
308
308
|
case 'number':
|
|
309
|
-
return ((0, jsx_runtime_1.jsx)(TableCell_1.TableCellText, { value: formattedValue, width: info.column.getSize(), textAlignment:
|
|
309
|
+
return ((0, jsx_runtime_1.jsx)(TableCell_1.TableCellText, { value: formattedValue, width: info.column.getSize(), textAlignment: attribute.type === 'number' &&
|
|
310
|
+
['duration', 'time'].includes(attribute.format)
|
|
311
|
+
? 'left'
|
|
312
|
+
: 'right' }, column.id));
|
|
310
313
|
case 'lookup': {
|
|
311
314
|
return renderLookupAttribute({
|
|
312
315
|
info,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
interface LoginFormProps {
|
|
2
2
|
logoImageUrl?: string;
|
|
3
3
|
onLogin: (username: string, password: string) => Promise<void>;
|
|
4
|
+
beforeLoginContent?: React.ReactNode;
|
|
5
|
+
afterLoginContent?: React.ReactNode;
|
|
6
|
+
subtitle?: string;
|
|
4
7
|
}
|
|
5
|
-
export declare function DialogLogin(props: LoginFormProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function DialogLogin(props: Readonly<LoginFormProps>): import("react/jsx-runtime").JSX.Element;
|
|
6
9
|
export {};
|
|
@@ -5,5 +5,5 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_components_1 = require("@fluentui/react-components");
|
|
6
6
|
const LoginForm_1 = require("./LoginForm");
|
|
7
7
|
function DialogLogin(props) {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(react_components_1.Dialog, { open: true, onOpenChange: () => { }, modalType: "non-modal", children: (0, jsx_runtime_1.jsx)(react_components_1.DialogSurface, { style: { maxWidth: 360 }, children: (0, jsx_runtime_1.jsx)(react_components_1.DialogBody, { children: (0, jsx_runtime_1.jsx)(react_components_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(LoginForm_1.LoginForm, { onLogin: props.onLogin, logoImageUrl: props.logoImageUrl }) }) }) }) }));
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(react_components_1.Dialog, { open: true, onOpenChange: () => { }, modalType: "non-modal", children: (0, jsx_runtime_1.jsx)(react_components_1.DialogSurface, { style: { maxWidth: 360 }, children: (0, jsx_runtime_1.jsx)(react_components_1.DialogBody, { children: (0, jsx_runtime_1.jsx)(react_components_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(LoginForm_1.LoginForm, { onLogin: props.onLogin, logoImageUrl: props.logoImageUrl, afterLoginContent: props.afterLoginContent, beforeLoginContent: props.beforeLoginContent, subtitle: props.subtitle }) }) }) }) }));
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headless-adminapp/fluent",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"uuid": "11.0.3",
|
|
51
51
|
"yup": "^1.4.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "3920cedff7216fb37b07dff95c50499c0f56f57c"
|
|
54
54
|
}
|