@ansible/ansible-ui-framework 0.0.257 → 0.0.258
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/PageTableList.js +2 -2
- package/mjs/PageTableList.js +2 -2
- package/package.json +1 -1
package/cjs/PageTableList.js
CHANGED
@@ -56,12 +56,12 @@ function useColumnsToDataList(tableColumns, keyFn, isSelected, selectItem, unsel
|
|
56
56
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
57
57
|
return ((0, jsx_runtime_1.jsxs)(react_core_1.DescriptionListGroup, { children: [!column.hideLabel && ((0, jsx_runtime_1.jsx)(react_core_1.DescriptionListTerm, { children: (0, jsx_runtime_1.jsx)(react_core_1.Text, __assign({ component: "small", style: { opacity: 0.7 } }, { children: column.header })) })), (0, jsx_runtime_1.jsx)(react_core_1.DescriptionListDescription, { children: column.cell(item) })] }, column.header));
|
58
58
|
}) }))] })) }) }, "primary"),
|
59
|
-
(0, jsx_runtime_1.jsx)(react_core_1.DataListCell, { children: (0, jsx_runtime_1.jsx)(react_core_1.Flex, { children: (0, jsx_runtime_1.jsx)(react_core_1.DescriptionList, __assign({ isCompact: true }, { children: data.secondary.map(function (column) {
|
59
|
+
data.secondary.length > 0 ? ((0, jsx_runtime_1.jsx)(react_core_1.DataListCell, { children: (0, jsx_runtime_1.jsx)(react_core_1.Flex, { children: (0, jsx_runtime_1.jsx)(react_core_1.DescriptionList, __assign({ isCompact: true }, { children: data.secondary.map(function (column) {
|
60
60
|
var value = column.cell(item);
|
61
61
|
if (!value)
|
62
62
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
63
63
|
return ((0, jsx_runtime_1.jsxs)(react_core_1.DescriptionListGroup, { children: [!column.hideLabel && ((0, jsx_runtime_1.jsx)(react_core_1.DescriptionListTerm, { children: (0, jsx_runtime_1.jsx)(react_core_1.Text, __assign({ component: "small", style: { opacity: 0.7 } }, { children: column.header })) })), (0, jsx_runtime_1.jsx)(react_core_1.DescriptionListDescription, { children: column.cell(item) })] }, column.header));
|
64
|
-
}) })) }) }, "secondary"),
|
64
|
+
}) })) }) }, "secondary")) : null,
|
65
65
|
] }), rowActions && ((0, jsx_runtime_1.jsx)(react_core_1.DataListAction, __assign({ "aria-labelledby": "check-action-item1 check-action-action1", id: "check-action-action1", "aria-label": "Actions", isPlainButtonAction: true, style: { whiteSpace: 'nowrap' } }, { children: (0, jsx_runtime_1.jsx)(TypedActions_1.TypedActions, { actions: rowActions, position: react_core_1.DropdownPosition.right, selectedItem: item }) })))] }) }), key));
|
66
66
|
}, [
|
67
67
|
data.columns,
|
package/mjs/PageTableList.js
CHANGED
@@ -40,12 +40,12 @@ export function useColumnsToDataList(tableColumns, keyFn, isSelected, selectItem
|
|
40
40
|
return _jsx(_Fragment, {});
|
41
41
|
return (_jsxs(DescriptionListGroup, { children: [!column.hideLabel && (_jsx(DescriptionListTerm, { children: _jsx(Text, { component: "small", style: { opacity: 0.7 }, children: column.header }) })), _jsx(DescriptionListDescription, { children: column.cell(item) })] }, column.header));
|
42
42
|
}) })] }) }) }, "primary"),
|
43
|
-
_jsx(DataListCell, { children: _jsx(Flex, { children: _jsx(DescriptionList, { isCompact: true, children: data.secondary.map((column) => {
|
43
|
+
data.secondary.length > 0 ? (_jsx(DataListCell, { children: _jsx(Flex, { children: _jsx(DescriptionList, { isCompact: true, children: data.secondary.map((column) => {
|
44
44
|
const value = column.cell(item);
|
45
45
|
if (!value)
|
46
46
|
return _jsx(_Fragment, {});
|
47
47
|
return (_jsxs(DescriptionListGroup, { children: [!column.hideLabel && (_jsx(DescriptionListTerm, { children: _jsx(Text, { component: "small", style: { opacity: 0.7 }, children: column.header }) })), _jsx(DescriptionListDescription, { children: column.cell(item) })] }, column.header));
|
48
|
-
}) }) }) }, "secondary"),
|
48
|
+
}) }) }) }, "secondary")) : null,
|
49
49
|
] }), rowActions && (_jsx(DataListAction, { "aria-labelledby": "check-action-item1 check-action-action1", id: "check-action-action1", "aria-label": "Actions", isPlainButtonAction: true, style: { whiteSpace: 'nowrap' }, children: _jsx(TypedActions, { actions: rowActions, position: DropdownPosition.right, selectedItem: item }) }))] }) }, key));
|
50
50
|
}, [
|
51
51
|
data.columns,
|
package/package.json
CHANGED