@headless-adminapp/fluent 1.4.14 → 1.4.15
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.
|
@@ -68,6 +68,9 @@ const TableHeaderFilterCell = ({ children, sortDirection, onChangeSortDirection,
|
|
|
68
68
|
return lookupSchema.attributes[column.expandedKey];
|
|
69
69
|
}, [column.expandedKey, column.name, schemaStore, schema.attributes]);
|
|
70
70
|
const align = (0, react_1.useMemo)(() => {
|
|
71
|
+
if (column.name === schema.primaryAttribute) {
|
|
72
|
+
return 'left';
|
|
73
|
+
}
|
|
71
74
|
switch (attribute.type) {
|
|
72
75
|
case 'money':
|
|
73
76
|
case 'number':
|
|
@@ -5,6 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_components_1 = require("@fluentui/react-components");
|
|
6
6
|
const locale_1 = require("@headless-adminapp/app/locale");
|
|
7
7
|
const utils_1 = require("@headless-adminapp/app/utils");
|
|
8
|
+
const react_1 = require("react");
|
|
8
9
|
const ChoiceBadge_1 = require("../components/ChoiceBadge");
|
|
9
10
|
const useStyles = (0, react_components_1.makeStyles)({
|
|
10
11
|
root: {
|
|
@@ -37,7 +38,16 @@ function RecordCard({ schema, cardView, record, selected, }) {
|
|
|
37
38
|
const styles = useStyles();
|
|
38
39
|
const locale = (0, locale_1.useLocale)();
|
|
39
40
|
const _record = record;
|
|
40
|
-
const recordTitle =
|
|
41
|
+
const recordTitle = (0, react_1.useMemo)(() => {
|
|
42
|
+
const _title = _record[schema.primaryAttribute];
|
|
43
|
+
if (_title === undefined || _title === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
if (typeof _title !== 'string') {
|
|
47
|
+
return String(_title);
|
|
48
|
+
}
|
|
49
|
+
return _title;
|
|
50
|
+
}, [_record, schema.primaryAttribute]);
|
|
41
51
|
const initials = createIntial(recordTitle);
|
|
42
52
|
let avatarSrc = '';
|
|
43
53
|
if (cardView.showAvatar) {
|
|
@@ -133,6 +133,8 @@ const LookupControlMd = ({ value, onChange, id, name, onBlur, onFocus, placehold
|
|
|
133
133
|
}, children: (0, jsx_runtime_1.jsx)(icons_1.Icons.Close, { size: 16 }) }), primaryText: {
|
|
134
134
|
style: {
|
|
135
135
|
paddingBottom: 0,
|
|
136
|
+
textOverflow: 'ellipsis',
|
|
137
|
+
overflow: 'hidden',
|
|
136
138
|
},
|
|
137
139
|
}, children: allowNavigation && path ? ((0, jsx_runtime_1.jsxs)(react_components_1.Link, { href: path, onClick: handleOpenRecord, style: {
|
|
138
140
|
display: 'flex',
|
|
@@ -17,10 +17,6 @@ const FormBody = ({ children }) => {
|
|
|
17
17
|
padding: react_components_1.tokens.spacingVerticalM,
|
|
18
18
|
}, children: children }));
|
|
19
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:
|
|
21
|
-
display: 'flex',
|
|
22
|
-
flexDirection: 'column',
|
|
23
|
-
padding: react_components_1.tokens.spacingVerticalM,
|
|
24
|
-
}, children: children }) }) }));
|
|
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: children }) }));
|
|
25
21
|
};
|
|
26
22
|
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.15",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"author": "",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@fluentui/react-calendar-compat": "^0.
|
|
25
|
-
"@fluentui/react-components": "^9.
|
|
26
|
-
"@fluentui/react-datepicker-compat": "^0.
|
|
27
|
-
"@fluentui/react-nav-preview": "^0.13.
|
|
28
|
-
"@fluentui/react-timepicker-compat": "^0.
|
|
29
|
-
"@tanstack/react-query": "^5.
|
|
24
|
+
"@fluentui/react-calendar-compat": "^0.3.7",
|
|
25
|
+
"@fluentui/react-components": "^9.68.3",
|
|
26
|
+
"@fluentui/react-datepicker-compat": "^0.6.12",
|
|
27
|
+
"@fluentui/react-nav-preview": "^0.13.9",
|
|
28
|
+
"@fluentui/react-timepicker-compat": "^0.4.13",
|
|
29
|
+
"@tanstack/react-query": "^5.84.2"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@fullcalendar/core": "6.1.15",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"uuid": "11.0.3",
|
|
53
53
|
"yup": "^1.4.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "a95b4f3c11bcb78f672fb7299bb461368d70bd48"
|
|
56
56
|
}
|