@ansible/ansible-ui-framework 0.0.257 → 0.0.259

Sign up to get free protection for your applications and to get access to all the features.
@@ -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/cjs/index.js CHANGED
@@ -34,6 +34,7 @@ __exportStar(require("./PageTableCards"), exports);
34
34
  __exportStar(require("./PageTabs"), exports);
35
35
  __exportStar(require("./PageToolbar"), exports);
36
36
  __exportStar(require("./TypedActions"), exports);
37
+ __exportStar(require("./useInMemoryView"), exports);
37
38
  __exportStar(require("./useSelectDialog"), exports);
38
39
  __exportStar(require("./useTableItems"), exports);
39
40
  __exportStar(require("./utils/compare"), exports);
@@ -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/mjs/index.d.ts CHANGED
@@ -18,6 +18,7 @@ export * from './PageTableCards';
18
18
  export * from './PageTabs';
19
19
  export * from './PageToolbar';
20
20
  export * from './TypedActions';
21
+ export * from './useInMemoryView';
21
22
  export * from './useSelectDialog';
22
23
  export * from './useTableItems';
23
24
  export * from './utils/compare';
package/mjs/index.js CHANGED
@@ -18,6 +18,7 @@ export * from './PageTableCards';
18
18
  export * from './PageTabs';
19
19
  export * from './PageToolbar';
20
20
  export * from './TypedActions';
21
+ export * from './useInMemoryView';
21
22
  export * from './useSelectDialog';
22
23
  export * from './useTableItems';
23
24
  export * from './utils/compare';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "Framework for building consistent responsive web applications using PatternFly.",
4
- "version": "0.0.257",
4
+ "version": "0.0.259",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "repository": {