@uxf/data-grid 11.38.1 → 11.38.2
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/components.d.ts +5 -0
- package/components.js +5 -0
- package/data-grid-v2.d.ts +3 -0
- package/data-grid-v2.js +42 -0
- package/data-grid-v2.stories.d.ts +2 -0
- package/data-grid-v2.stories.js +92 -0
- package/data-grid.js +2 -2
- package/package.json +1 -1
- package/styles.css +1 -1
- package/table/table.js +0 -1
- package/table-v2/components/action-cell.d.ts +7 -2
- package/table-v2/components/action-cell.js +3 -1
- package/table-v2/styles.css +27 -17
- package/table-v2/table-v2.js +1 -2
package/components.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as dataGridStories from "./data-grid.stories";
|
|
2
2
|
import * as dataGridCustomExampleStories from "./data-grid-custom-example.stories";
|
|
3
|
+
import * as dataGridV2Stories from "./data-grid-v2.stories";
|
|
3
4
|
import * as exportButtonStories from "./export-button/export-button.stories";
|
|
4
5
|
import * as filterListStories from "./filter-list/filter-list.stories";
|
|
5
6
|
import * as filtersStories from "./filters/filters.stories";
|
|
@@ -25,6 +26,10 @@ export declare const components: {
|
|
|
25
26
|
readonly title: "DataGridCustomExample";
|
|
26
27
|
readonly stories: typeof dataGridCustomExampleStories;
|
|
27
28
|
};
|
|
29
|
+
readonly "data-grid-v2": {
|
|
30
|
+
readonly title: "DataGridV2";
|
|
31
|
+
readonly stories: typeof dataGridV2Stories;
|
|
32
|
+
};
|
|
28
33
|
readonly "export-button": {
|
|
29
34
|
readonly title: "ExportButton";
|
|
30
35
|
readonly stories: typeof exportButtonStories;
|
package/components.js
CHANGED
|
@@ -27,6 +27,7 @@ exports.components = void 0;
|
|
|
27
27
|
// generated file
|
|
28
28
|
const dataGridStories = __importStar(require("./data-grid.stories"));
|
|
29
29
|
const dataGridCustomExampleStories = __importStar(require("./data-grid-custom-example.stories"));
|
|
30
|
+
const dataGridV2Stories = __importStar(require("./data-grid-v2.stories"));
|
|
30
31
|
const exportButtonStories = __importStar(require("./export-button/export-button.stories"));
|
|
31
32
|
const filterListStories = __importStar(require("./filter-list/filter-list.stories"));
|
|
32
33
|
const filtersStories = __importStar(require("./filters/filters.stories"));
|
|
@@ -52,6 +53,10 @@ exports.components = {
|
|
|
52
53
|
title: "DataGridCustomExample",
|
|
53
54
|
stories: dataGridCustomExampleStories
|
|
54
55
|
},
|
|
56
|
+
"data-grid-v2": {
|
|
57
|
+
title: "DataGridV2",
|
|
58
|
+
stories: dataGridV2Stories
|
|
59
|
+
},
|
|
55
60
|
"export-button": {
|
|
56
61
|
title: "ExportButton",
|
|
57
62
|
stories: exportButtonStories
|
package/data-grid-v2.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DataGridV2 = DataGridV2;
|
|
7
|
+
const empty_array_1 = require("@uxf/core/constants/empty-array");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const body_cell_1 = require("./body-cell");
|
|
10
|
+
const filter_handler_1 = require("./filter-handler");
|
|
11
|
+
const filter_list_1 = require("./filter-list");
|
|
12
|
+
const footer_1 = require("./footer");
|
|
13
|
+
const linear_progress_1 = require("./linear-progress");
|
|
14
|
+
const pagination_1 = require("./pagination");
|
|
15
|
+
const root_1 = require("./root");
|
|
16
|
+
const row_counts_1 = require("./row-counts");
|
|
17
|
+
const rows_per_page_select_1 = require("./rows-per-page-select");
|
|
18
|
+
const selected_rows_toolbar_1 = require("./selected-rows-toolbar");
|
|
19
|
+
const table_v2_1 = require("./table-v2");
|
|
20
|
+
const no_rows_fallback_1 = require("./table/no-rows-fallback");
|
|
21
|
+
const toolbar_1 = require("./toolbar");
|
|
22
|
+
const toolbar_control_1 = require("./toolbar-control");
|
|
23
|
+
const toolbar_customs_1 = require("./toolbar-customs");
|
|
24
|
+
const toolbar_tabs_1 = require("./toolbar-tabs");
|
|
25
|
+
const DefaultSelectedRowsToolbarActions = () => null;
|
|
26
|
+
function DataGridV2(props) {
|
|
27
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
28
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
29
|
+
react_1.default.createElement(root_1.DataGridRoot, { className: props.className },
|
|
30
|
+
react_1.default.createElement(toolbar_1.DataGridToolbar, null,
|
|
31
|
+
react_1.default.createElement(toolbar_tabs_1.DataGridToolbarTabs, { actions: props.actions, changeTabFilterBehavior: props.changeTabFilterBehavior, schema: props.schema, state: props.state }),
|
|
32
|
+
react_1.default.createElement(toolbar_control_1.DataGridToolbarControl, { actions: props.actions, filterHandlers: (_a = props.filterHandlers) !== null && _a !== void 0 ? _a : filter_handler_1.defaultFilterHandlers, onCsvDownload: props.onCsvDownload, schema: props.schema, state: props.state }),
|
|
33
|
+
react_1.default.createElement(toolbar_customs_1.DataGridToolbarCustoms, { buttons: props.customActions })),
|
|
34
|
+
react_1.default.createElement(linear_progress_1.DataGridLinearProgress, { isLoading: props.isLoading }),
|
|
35
|
+
react_1.default.createElement(filter_list_1.DataGridFilterList, { actions: props.actions, filterHandlers: (_b = props.filterHandlers) !== null && _b !== void 0 ? _b : filter_handler_1.defaultFilterHandlers, schema: props.schema, state: props.state }),
|
|
36
|
+
react_1.default.createElement(table_v2_1.DataGridTableV2, { NoRowsFallback: (_c = props.NoRowsFallback) !== null && _c !== void 0 ? _c : no_rows_fallback_1.NoRowsFallback, actionCell: props.actionCell, actions: props.actions, bodyCells: (_d = props.bodyCells) !== null && _d !== void 0 ? _d : body_cell_1.BodyCells, data: (_f = (_e = props.data) === null || _e === void 0 ? void 0 : _e.result) !== null && _f !== void 0 ? _f : empty_array_1.EMPTY_ARRAY, error: props.error, headerRowHeight: props.headerRowHeight, isLoading: props.isLoading, isRowSelectable: props.isRowSelectable, keyExtractor: props.keyExtractor, onReload: props.onReload, rowClass: props.rowClass, rowHeight: props.rowHeight, schema: props.schema, state: props.state }),
|
|
37
|
+
react_1.default.createElement(footer_1.DataGridFooter, null,
|
|
38
|
+
react_1.default.createElement(rows_per_page_select_1.DataGridRowsPerPageSelect, { actions: props.actions, state: props.state }),
|
|
39
|
+
react_1.default.createElement(row_counts_1.DataGridRowCounts, { count: (_h = (_g = props.data) === null || _g === void 0 ? void 0 : _g.count) !== null && _h !== void 0 ? _h : 0, state: props.state, totalCount: (_k = (_j = props.data) === null || _j === void 0 ? void 0 : _j.totalCount) !== null && _k !== void 0 ? _k : 0 }),
|
|
40
|
+
react_1.default.createElement(pagination_1.DataGridPagination, { actions: props.actions, count: (_m = (_l = props.data) === null || _l === void 0 ? void 0 : _l.count) !== null && _m !== void 0 ? _m : 0, showFirstButton: true, showLastButton: true, size: "sm", state: props.state }))),
|
|
41
|
+
react_1.default.createElement(selected_rows_toolbar_1.DataGridSelectedRowsToolbar, { Actions: (_o = props.SelectedRowsToolbarActions) !== null && _o !== void 0 ? _o : DefaultSelectedRowsToolbarActions, actions: props.actions, state: props.state })));
|
|
42
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Default = Default;
|
|
27
|
+
const buildArray_1 = require("@uxf/core/utils/buildArray");
|
|
28
|
+
const toggle_1 = require("@uxf/ui/toggle");
|
|
29
|
+
const react_1 = __importStar(require("react"));
|
|
30
|
+
const json_renderer_1 = require("./_story-utils/json-renderer");
|
|
31
|
+
const loader_1 = require("./_story-utils/loader");
|
|
32
|
+
const schema_1 = require("./_story-utils/schema");
|
|
33
|
+
const data_grid_v2_1 = require("./data-grid-v2");
|
|
34
|
+
const action_cell_1 = require("./table-v2/components/action-cell");
|
|
35
|
+
const use_data_grid_control_1 = require("./use-data-grid-control");
|
|
36
|
+
const use_data_grid_fetching_1 = require("./use-data-grid-fetching");
|
|
37
|
+
const merge_schema_with_config_1 = require("./utils/merge-schema-with-config");
|
|
38
|
+
const actionCell = {
|
|
39
|
+
width: 92,
|
|
40
|
+
Component: () => {
|
|
41
|
+
const actionCellActions = (0, buildArray_1.buildArray)()
|
|
42
|
+
.add({
|
|
43
|
+
icon: "arrow-right",
|
|
44
|
+
isIconButton: true,
|
|
45
|
+
href: "https://www.uxf.cz",
|
|
46
|
+
target: "_blank",
|
|
47
|
+
})
|
|
48
|
+
.add({
|
|
49
|
+
icon: "file",
|
|
50
|
+
label: "Download",
|
|
51
|
+
onClick: console.log,
|
|
52
|
+
})
|
|
53
|
+
.add({
|
|
54
|
+
icon: "cloud",
|
|
55
|
+
label: "Reload",
|
|
56
|
+
onClick: console.log,
|
|
57
|
+
});
|
|
58
|
+
return react_1.default.createElement(action_cell_1.ActionCell, { buttons: actionCellActions, visibleButtonsCount: 1 });
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
const schemaWithFrontendConfig = (0, merge_schema_with_config_1.mergeSchemaWithConfig)(schema_1.schema, {
|
|
62
|
+
perPage: 100,
|
|
63
|
+
columns: {
|
|
64
|
+
bool: { width: 80 },
|
|
65
|
+
},
|
|
66
|
+
filters: {
|
|
67
|
+
text: { placeholder: "Custom placeholder ..." },
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
function Default() {
|
|
71
|
+
const [hasSharedFilters, setHasSharedFilters] = (0, react_1.useState)(false);
|
|
72
|
+
const { state, actions } = (0, use_data_grid_control_1.useDataGridControl)({
|
|
73
|
+
schema: schema_1.schema,
|
|
74
|
+
initialUserConfig: {
|
|
75
|
+
columns: {
|
|
76
|
+
id: { width: 100 },
|
|
77
|
+
text: { minWidth: 300 },
|
|
78
|
+
mail: { minWidth: 300 },
|
|
79
|
+
tel: { minWidth: 300 },
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
const { isLoading, error, data, onReload } = (0, use_data_grid_fetching_1.useDataGridFetching)({
|
|
84
|
+
loader: loader_1.loader,
|
|
85
|
+
schema: schema_1.schema,
|
|
86
|
+
state,
|
|
87
|
+
});
|
|
88
|
+
return (react_1.default.createElement("div", { className: "p-10" },
|
|
89
|
+
react_1.default.createElement(toggle_1.Toggle, { label: "Has shared Filters for all Tabs", name: "hasSharedFilters", onChange: (value) => setHasSharedFilters(Boolean(value)), value: hasSharedFilters }),
|
|
90
|
+
react_1.default.createElement(data_grid_v2_1.DataGridV2, { actionCell: actionCell, actions: actions, changeTabFilterBehavior: hasSharedFilters ? "sharedFilters" : "filtersPerTab", data: data, error: error, isLoading: isLoading, isRowSelectable: true, onCsvDownload: console.log, onReload: onReload, schema: schemaWithFrontendConfig, state: state }),
|
|
91
|
+
react_1.default.createElement(json_renderer_1.JsonRenderer, { value: state })));
|
|
92
|
+
}
|
package/data-grid.js
CHANGED
|
@@ -16,7 +16,7 @@ const root_1 = require("./root");
|
|
|
16
16
|
const row_counts_1 = require("./row-counts");
|
|
17
17
|
const rows_per_page_select_1 = require("./rows-per-page-select");
|
|
18
18
|
const selected_rows_toolbar_1 = require("./selected-rows-toolbar");
|
|
19
|
-
const
|
|
19
|
+
const table_1 = require("./table");
|
|
20
20
|
const no_rows_fallback_1 = require("./table/no-rows-fallback");
|
|
21
21
|
const toolbar_1 = require("./toolbar");
|
|
22
22
|
const toolbar_control_1 = require("./toolbar-control");
|
|
@@ -33,7 +33,7 @@ function DataGrid(props) {
|
|
|
33
33
|
react_1.default.createElement(toolbar_customs_1.DataGridToolbarCustoms, { buttons: props.customActions })),
|
|
34
34
|
react_1.default.createElement(linear_progress_1.DataGridLinearProgress, { isLoading: props.isLoading }),
|
|
35
35
|
react_1.default.createElement(filter_list_1.DataGridFilterList, { actions: props.actions, filterHandlers: (_b = props.filterHandlers) !== null && _b !== void 0 ? _b : filter_handler_1.defaultFilterHandlers, schema: props.schema, state: props.state }),
|
|
36
|
-
react_1.default.createElement(
|
|
36
|
+
react_1.default.createElement(table_1.DataGridTable, { NoRowsFallback: (_c = props.NoRowsFallback) !== null && _c !== void 0 ? _c : no_rows_fallback_1.NoRowsFallback, actionCell: props.actionCell, actions: props.actions, bodyCells: (_d = props.bodyCells) !== null && _d !== void 0 ? _d : body_cell_1.BodyCells, data: (_f = (_e = props.data) === null || _e === void 0 ? void 0 : _e.result) !== null && _f !== void 0 ? _f : empty_array_1.EMPTY_ARRAY, error: props.error, headerRowHeight: props.headerRowHeight, isLoading: props.isLoading, isRowSelectable: props.isRowSelectable, keyExtractor: props.keyExtractor, onReload: props.onReload, rowClass: props.rowClass, rowHeight: props.rowHeight, schema: props.schema, state: props.state }),
|
|
37
37
|
react_1.default.createElement(footer_1.DataGridFooter, null,
|
|
38
38
|
react_1.default.createElement(rows_per_page_select_1.DataGridRowsPerPageSelect, { actions: props.actions, state: props.state }),
|
|
39
39
|
react_1.default.createElement(row_counts_1.DataGridRowCounts, { count: (_h = (_g = props.data) === null || _g === void 0 ? void 0 : _g.count) !== null && _h !== void 0 ? _h : 0, state: props.state, totalCount: (_k = (_j = props.data) === null || _j === void 0 ? void 0 : _j.totalCount) !== null && _k !== void 0 ? _k : 0 }),
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.uxf-data-grid {
|
|
35
|
-
border: 1px solid var(--rdg-border-color);
|
|
36
35
|
border-radius: theme("borderRadius.DEFAULT");
|
|
37
36
|
|
|
38
37
|
&__action-cell {
|
|
@@ -287,6 +286,7 @@
|
|
|
287
286
|
}
|
|
288
287
|
|
|
289
288
|
&__table {
|
|
289
|
+
border: 1px solid var(--rdg-border-color);
|
|
290
290
|
margin-top: 1px;
|
|
291
291
|
|
|
292
292
|
&::-webkit-scrollbar {
|
package/table/table.js
CHANGED
|
@@ -50,7 +50,6 @@ function DataGridTable(props) {
|
|
|
50
50
|
? props.data.reduce((prev, curr) => prev + rowHeight(curr))
|
|
51
51
|
: (rowHeight + 1) * props.data.length;
|
|
52
52
|
const reactDataGridStyles = {
|
|
53
|
-
border: 0,
|
|
54
53
|
borderRadius: 4,
|
|
55
54
|
height: contentHeight + headerRowHeight + (props.data.length === 0 ? 44 : 0) + 4,
|
|
56
55
|
overflowY: "hidden",
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { ButtonListProps } from "@uxf/ui/button-list";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface ActionCellProps {
|
|
4
|
+
buttons: ButtonListProps["buttons"];
|
|
5
|
+
visibleButtonsCount: ButtonListProps["visibleButtonsCount"];
|
|
6
|
+
}
|
|
7
|
+
export declare function ActionCell(props: ActionCellProps): React.JSX.Element;
|
|
@@ -4,7 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ActionCell = ActionCell;
|
|
7
|
+
const button_list_1 = require("@uxf/ui/button-list");
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
function ActionCell(props) {
|
|
9
|
-
return react_1.default.createElement("div", { className: "uxf-dg-table__action-cell" },
|
|
10
|
+
return (react_1.default.createElement("div", { className: "uxf-dg-table__action-cell" },
|
|
11
|
+
react_1.default.createElement(button_list_1.ButtonList, { buttons: props.buttons, size: "sm", variant: "secondary", visibleButtonsCount: props.visibleButtonsCount })));
|
|
10
12
|
}
|
package/table-v2/styles.css
CHANGED
|
@@ -48,10 +48,33 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
&__action-cell {
|
|
52
|
+
align-items: center;
|
|
53
|
+
background-color: var(--uxf-dg-table-action-cell-bg-color);
|
|
54
|
+
border-left: var(--uxf-dg-table-action-cell-left-divider-size) solid
|
|
55
|
+
var(--uxf-dg-table-action-cell-left-divider-color);
|
|
56
|
+
border-top: var(--uxf-dg-table-row-divider-size) solid var(--uxf-dg-table-row-divider-color);
|
|
57
|
+
display: flex;
|
|
58
|
+
height: 100%;
|
|
53
59
|
justify-content: flex-end;
|
|
54
60
|
padding: 0 theme("spacing.2");
|
|
61
|
+
position: sticky;
|
|
62
|
+
right: 0;
|
|
63
|
+
text-align: center;
|
|
64
|
+
width: 100%;
|
|
65
|
+
|
|
66
|
+
&--header {
|
|
67
|
+
background-color: var(--uxf-dg-table-header-action-cell-bg-color);
|
|
68
|
+
z-index: 2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.uxf-icon {
|
|
72
|
+
color: theme("colors.lightMedium");
|
|
73
|
+
|
|
74
|
+
:root .dark & {
|
|
75
|
+
color: theme("colors.darkMedium");
|
|
76
|
+
}
|
|
77
|
+
}
|
|
55
78
|
}
|
|
56
79
|
|
|
57
80
|
&__row {
|
|
@@ -104,11 +127,12 @@
|
|
|
104
127
|
|
|
105
128
|
&.is-sortable {
|
|
106
129
|
cursor: pointer;
|
|
130
|
+
gap: 4px;
|
|
107
131
|
}
|
|
108
132
|
|
|
109
133
|
.uxf-icon {
|
|
110
134
|
margin-left: auto;
|
|
111
|
-
width:
|
|
135
|
+
width: 8px;
|
|
112
136
|
}
|
|
113
137
|
}
|
|
114
138
|
|
|
@@ -142,20 +166,6 @@
|
|
|
142
166
|
}
|
|
143
167
|
}
|
|
144
168
|
|
|
145
|
-
&__action-cell {
|
|
146
|
-
background-color: var(--uxf-dg-table-action-cell-bg-color);
|
|
147
|
-
border-left: var(--uxf-dg-table-action-cell-left-divider-size) solid
|
|
148
|
-
var(--uxf-dg-table-action-cell-left-divider-color);
|
|
149
|
-
border-top: var(--uxf-dg-table-row-divider-size) solid var(--uxf-dg-table-row-divider-color);
|
|
150
|
-
position: sticky;
|
|
151
|
-
right: 0;
|
|
152
|
-
|
|
153
|
-
&--header {
|
|
154
|
-
background-color: var(--uxf-dg-table-header-action-cell-bg-color);
|
|
155
|
-
z-index: 2;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
169
|
&__column-resize-handle {
|
|
160
170
|
bottom: 0;
|
|
161
171
|
cursor: col-resize;
|
package/table-v2/table-v2.js
CHANGED
|
@@ -68,6 +68,5 @@ function DataGridTableV2(props) {
|
|
|
68
68
|
return (react_1.default.createElement(components_1.Table.Cell, { column: column, key: column.name },
|
|
69
69
|
react_1.default.createElement(BodyCell, { column: column, reload: () => { var _a; return (_a = props.onReload) === null || _a === void 0 ? void 0 : _a.call(props); }, row: row, value: row[column.name] })));
|
|
70
70
|
}),
|
|
71
|
-
(0, is_not_nil_1.isNotNil)(props.actionCell) && (react_1.default.createElement(
|
|
72
|
-
react_1.default.createElement(props.actionCell.Component, { reload: () => { var _a; return (_a = props.onReload) === null || _a === void 0 ? void 0 : _a.call(props); }, row: row })))))))));
|
|
71
|
+
(0, is_not_nil_1.isNotNil)(props.actionCell) && (react_1.default.createElement(props.actionCell.Component, { reload: () => { var _a; return (_a = props.onReload) === null || _a === void 0 ? void 0 : _a.call(props); }, row: row }))))))));
|
|
73
72
|
}
|