@elliemae/ds-datagrids 2.0.0-next.7 → 2.0.0-rc.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/cjs/DSDataGrid.js +246 -243
- package/cjs/DataGridImpl.js +16 -8
- package/cjs/PaginatedDataGrid.js +5 -0
- package/cjs/columns/IconColumn.js +19 -17
- package/cjs/columns/NumberColumn.js +2 -4
- package/cjs/components/BodyCell.js +17 -10
- package/cjs/components/BodyList.js +7 -0
- package/cjs/components/ColumnVisibilityMenuOption.js +10 -6
- package/cjs/components/ColumnsOptionsMenuSection.js +34 -28
- package/cjs/components/EmptyState.js +19 -17
- package/cjs/components/HeaderCell.js +14 -8
- package/cjs/components/List.js +5 -0
- package/cjs/components/ListItem.js +7 -0
- package/cjs/components/NoResults.js +5 -0
- package/cjs/components/RowsLoader.js +5 -4
- package/cjs/components/Table.js +5 -0
- package/cjs/components/TableBody.js +5 -0
- package/cjs/components/TableHeader.js +5 -0
- package/cjs/components/footer/addOptionalFooterComponents.js +5 -4
- package/cjs/components/header/PrimaryControls.js +20 -15
- package/cjs/components/header/addOptionalHeaderComponents.js +4 -3
- package/cjs/components/renderers/defaultClassedRenderers.js +33 -21
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +46 -35
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js +9 -5
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +2 -3
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +10 -8
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +13 -6
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +3 -3
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js +22 -17
- package/cjs/plugins/column-sizing/useColumnSizeService.js +9 -0
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js +56 -40
- package/cjs/plugins/column-sizing/utils.js +10 -6
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +9 -4
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +20 -21
- package/cjs/plugins/editable/EditableComponents/ComboBox.js +7 -3
- package/cjs/plugins/editable/EditableComponents/TextBox.js +20 -14
- package/cjs/plugins/editable/EditablePlugin.js +15 -15
- package/cjs/plugins/editable/decorateEditable.js +18 -11
- package/cjs/plugins/editable/getEditorComponent.js +45 -34
- package/cjs/plugins/expandable-grid/ExpandableColumn.js +57 -50
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js +37 -26
- package/cjs/plugins/expandable-grid/ExpandedRow.js +28 -18
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +16 -10
- package/cjs/plugins/expandable-grid/useExpandGridState.js +3 -8
- package/cjs/plugins/export-data/ExportDataPlugin.js +23 -10
- package/cjs/plugins/filterable/FilterablePlugin.js +7 -6
- package/cjs/plugins/filterable/addFilterToColumn.js +5 -0
- package/cjs/plugins/filterable/components/FilterableHeader.js +35 -27
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +38 -32
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +26 -22
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +119 -154
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +28 -20
- package/cjs/plugins/filterable/filterableFormatter.js +15 -10
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +16 -4
- package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +7 -4
- package/cjs/plugins/filterable/helper.js +16 -7
- package/cjs/plugins/filterable/useFilterableState.js +11 -5
- package/cjs/plugins/grouping-by/GroupingByPlugin.js +2 -0
- package/cjs/plugins/grouping-grid/GroupingPlugin.js +9 -0
- package/cjs/plugins/grouping-grid/walkStrategy.js +11 -9
- package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +7 -1
- package/cjs/plugins/pagination/PaginationPlugin.js +9 -2
- package/cjs/plugins/pagination/components/Pagination.js +10 -9
- package/cjs/plugins/pagination/components/Paginator.js +8 -7
- package/cjs/plugins/pagination/components/PerPageDropdown.js +20 -13
- package/cjs/plugins/pagination/helper.js +10 -7
- package/cjs/plugins/pagination/usePaginationState.js +7 -3
- package/cjs/plugins/resizable/ResizablePlugin.js +5 -4
- package/cjs/plugins/resizable/decorateResizable.js +14 -8
- package/cjs/plugins/resizable/useResizeHandle.js +21 -16
- package/cjs/plugins/resizable/utils.js +8 -5
- package/cjs/plugins/row-dnd/DndRowsPlugin.js +23 -16
- package/cjs/plugins/selectable/SelectablePlugin.js +10 -8
- package/cjs/plugins/selectable/addSelectableColumn.js +24 -16
- package/cjs/plugins/selectable/helper.js +12 -3
- package/cjs/plugins/selectable/selectableFormatter.js +80 -71
- package/cjs/plugins/selectable/useSelectableState.js +24 -11
- package/cjs/plugins/sortable/SortablePlugin.js +8 -7
- package/cjs/plugins/sortable/sortHeaderFormatter.js +14 -15
- package/cjs/plugins/sortable/sortTree.js +13 -3
- package/cjs/plugins/sortable/sorter.js +151 -134
- package/cjs/plugins/sortable/useSortableState.js +7 -0
- package/cjs/plugins/toolbar/RowRenderer.js +7 -2
- package/cjs/plugins/toolbar/ToolbarTrigger.js +15 -10
- package/cjs/plugins/virtualization/AutoHeightList.js +10 -8
- package/cjs/plugins/virtualization/VirtualizationPlugin.js +32 -25
- package/cjs/plugins/virtualization/VirtualizedBody.js +18 -9
- package/cjs/plugins/virtualization/VirtualizedBodyRow.js +8 -7
- package/cjs/renders/CellWithAddons.js +20 -18
- package/cjs/renders/styled.js +3 -2
- package/cjs/utilities/getPluginsFromProps.js +5 -1
- package/cjs/utilities/getScrollbarSize.js +2 -1
- package/cjs/utilities/normalizeData.js +7 -1
- package/esm/DSDataGrid.js +246 -243
- package/esm/DataGridImpl.js +16 -8
- package/esm/PaginatedDataGrid.js +5 -0
- package/esm/columns/IconColumn.js +18 -16
- package/esm/columns/NumberColumn.js +2 -4
- package/esm/components/BodyCell.js +17 -10
- package/esm/components/BodyList.js +7 -0
- package/esm/components/ColumnVisibilityMenuOption.js +10 -6
- package/esm/components/ColumnsOptionsMenuSection.js +34 -28
- package/esm/components/EmptyState.js +18 -15
- package/esm/components/HeaderCell.js +14 -8
- package/esm/components/List.js +5 -0
- package/esm/components/ListItem.js +7 -0
- package/esm/components/NoResults.js +5 -0
- package/esm/components/RowsLoader.js +5 -4
- package/esm/components/Table.js +5 -0
- package/esm/components/TableBody.js +5 -0
- package/esm/components/TableHeader.js +5 -0
- package/esm/components/footer/addOptionalFooterComponents.js +5 -4
- package/esm/components/header/PrimaryControls.js +20 -14
- package/esm/components/header/addOptionalHeaderComponents.js +4 -3
- package/esm/components/renderers/defaultClassedRenderers.js +33 -21
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +46 -35
- package/esm/plugins/column-dnd/DndColumnsPlugin.js +6 -2
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +1 -1
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js +9 -7
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js +12 -5
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js +1 -1
- package/esm/plugins/column-sizing/ext-points/getTableProps.js +21 -15
- package/esm/plugins/column-sizing/useColumnSizeService.js +9 -0
- package/esm/plugins/column-sizing/useStylesheetHelpers.js +54 -38
- package/esm/plugins/column-sizing/utils.js +8 -4
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +6 -1
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js +15 -11
- package/esm/plugins/editable/EditableComponents/ComboBox.js +6 -1
- package/esm/plugins/editable/EditableComponents/TextBox.js +19 -12
- package/esm/plugins/editable/EditablePlugin.js +13 -12
- package/esm/plugins/editable/decorateEditable.js +16 -8
- package/esm/plugins/editable/getEditorComponent.js +49 -38
- package/esm/plugins/expandable-grid/ExpandableColumn.js +56 -47
- package/esm/plugins/expandable-grid/ExpandablePlugin.js +33 -20
- package/esm/plugins/expandable-grid/ExpandedRow.js +27 -17
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js +15 -9
- package/esm/plugins/expandable-grid/useExpandGridState.js +1 -2
- package/esm/plugins/export-data/ExportDataPlugin.js +22 -9
- package/esm/plugins/filterable/FilterablePlugin.js +5 -4
- package/esm/plugins/filterable/addFilterToColumn.js +5 -0
- package/esm/plugins/filterable/components/FilterableHeader.js +31 -22
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +38 -31
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +26 -21
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +118 -152
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +27 -18
- package/esm/plugins/filterable/filterableFormatter.js +15 -10
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +14 -2
- package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +7 -4
- package/esm/plugins/filterable/helper.js +10 -1
- package/esm/plugins/filterable/useFilterableState.js +11 -5
- package/esm/plugins/grouping-by/GroupingByPlugin.js +2 -0
- package/esm/plugins/grouping-grid/GroupingPlugin.js +9 -0
- package/esm/plugins/grouping-grid/walkStrategy.js +11 -9
- package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +7 -1
- package/esm/plugins/pagination/PaginationPlugin.js +8 -1
- package/esm/plugins/pagination/components/Pagination.js +10 -9
- package/esm/plugins/pagination/components/Paginator.js +8 -7
- package/esm/plugins/pagination/components/PerPageDropdown.js +17 -9
- package/esm/plugins/pagination/helper.js +10 -7
- package/esm/plugins/pagination/usePaginationState.js +6 -1
- package/esm/plugins/resizable/ResizablePlugin.js +4 -3
- package/esm/plugins/resizable/decorateResizable.js +14 -8
- package/esm/plugins/resizable/useResizeHandle.js +21 -16
- package/esm/plugins/resizable/utils.js +6 -3
- package/esm/plugins/row-dnd/DndRowsPlugin.js +21 -13
- package/esm/plugins/selectable/SelectablePlugin.js +9 -7
- package/esm/plugins/selectable/addSelectableColumn.js +24 -16
- package/esm/plugins/selectable/helper.js +10 -1
- package/esm/plugins/selectable/selectableFormatter.js +79 -68
- package/esm/plugins/selectable/useSelectableState.js +19 -5
- package/esm/plugins/sortable/SortablePlugin.js +5 -4
- package/esm/plugins/sortable/sortHeaderFormatter.js +12 -11
- package/esm/plugins/sortable/sortTree.js +13 -3
- package/esm/plugins/sortable/sorter.js +151 -134
- package/esm/plugins/sortable/useSortableState.js +7 -0
- package/esm/plugins/toolbar/RowRenderer.js +6 -1
- package/esm/plugins/toolbar/ToolbarTrigger.js +14 -8
- package/esm/plugins/virtualization/AutoHeightList.js +6 -3
- package/esm/plugins/virtualization/VirtualizationPlugin.js +31 -24
- package/esm/plugins/virtualization/VirtualizedBody.js +14 -5
- package/esm/plugins/virtualization/VirtualizedBodyRow.js +8 -7
- package/esm/renders/CellWithAddons.js +15 -14
- package/esm/renders/styled.js +1 -1
- package/esm/utilities/getPluginsFromProps.js +5 -1
- package/esm/utilities/getScrollbarSize.js +2 -1
- package/esm/utilities/normalizeData.js +7 -1
- package/package.json +19 -18
- package/types/components/BodyCell.d.ts +1 -1
- package/types/components/HeaderCell.d.ts +1 -1
- package/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +1 -1
- package/types/plugins/column-sizing/ext-points/getTableProps.d.ts +1 -1
- package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +1 -1
- package/types/plugins/expandable-grid/useExpandGridState.d.ts +4 -4
- package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +1 -1
- package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +1 -1
- package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +1 -1
- package/types/plugins/filterable/helper.d.ts +15 -3
- package/types/plugins/pagination/components/PerPageDropdown.d.ts +1 -1
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('core-js/modules/web.dom-collections.iterator.js');
|
|
6
|
-
var
|
|
7
|
-
var utils = require('@elliemae/ds-utilities/utils');
|
|
6
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
8
7
|
var createInstancePlugin = require('@elliemae/ds-shared/createDataInstance/createInstancePlugin');
|
|
9
8
|
var decorateEditable = require('./decorateEditable.js');
|
|
10
9
|
|
|
11
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
11
|
|
|
13
|
-
var useDerivedStateFromProps__default = /*#__PURE__*/_interopDefaultLegacy(useDerivedStateFromProps);
|
|
14
12
|
var createInstancePlugin__default = /*#__PURE__*/_interopDefaultLegacy(createInstancePlugin);
|
|
15
13
|
|
|
16
14
|
const registerStateHook = grid => {
|
|
@@ -20,7 +18,7 @@ const registerStateHook = grid => {
|
|
|
20
18
|
onColumnRowEdited,
|
|
21
19
|
onColumnRowEdit
|
|
22
20
|
} = grid.props;
|
|
23
|
-
const [editingRows, setEditingRows] =
|
|
21
|
+
const [editingRows, setEditingRows] = dsUtilities.useDerivedStateFromProps(editingRowsProp || {});
|
|
24
22
|
|
|
25
23
|
const activateEdit = editParams => {
|
|
26
24
|
const {
|
|
@@ -36,16 +34,17 @@ const registerStateHook = grid => {
|
|
|
36
34
|
};
|
|
37
35
|
setEditingRows(prevEditingRows => {
|
|
38
36
|
onColumnRowEdit(editParams);
|
|
39
|
-
return
|
|
37
|
+
return dsUtilities.toggleInObject(prevEditingRows, rowData[rowKey], columnIndex);
|
|
40
38
|
});
|
|
41
39
|
};
|
|
42
40
|
|
|
43
|
-
const editValue =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
const editValue = _ref => {
|
|
42
|
+
let {
|
|
43
|
+
value,
|
|
44
|
+
rowData,
|
|
45
|
+
property,
|
|
46
|
+
rowIndex
|
|
47
|
+
} = _ref;
|
|
49
48
|
setEditingRows({});
|
|
50
49
|
onColumnRowEdited({
|
|
51
50
|
value,
|
|
@@ -88,10 +87,11 @@ const EditablePlugin = createInstancePlugin__default["default"]('editable', {
|
|
|
88
87
|
registerHotKeys(grid) {
|
|
89
88
|
return {
|
|
90
89
|
key: 'enter',
|
|
91
|
-
handler:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
handler: _ref2 => {
|
|
91
|
+
let {
|
|
92
|
+
rowIndex,
|
|
93
|
+
cellIndex
|
|
94
|
+
} = _ref2;
|
|
95
95
|
const {
|
|
96
96
|
composedRows,
|
|
97
97
|
decoratedColumns,
|
|
@@ -6,10 +6,15 @@ var _jsx = require('@babel/runtime/helpers/jsx');
|
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
8
8
|
require('core-js/modules/web.dom-collections.iterator.js');
|
|
9
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
10
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
11
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
12
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
13
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
9
14
|
require('react');
|
|
10
15
|
var edit = require('react-edit');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
16
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
17
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
13
18
|
var initColumnDefinition = require('@elliemae/ds-shared/useDataGrid/initColumnDefinition');
|
|
14
19
|
var getEditorComponent = require('./getEditorComponent.js');
|
|
15
20
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -38,7 +43,6 @@ var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
|
38
43
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
39
44
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
40
45
|
var edit__namespace = /*#__PURE__*/_interopNamespace(edit);
|
|
41
|
-
var EditPencil__default = /*#__PURE__*/_interopDefaultLegacy(EditPencil);
|
|
42
46
|
|
|
43
47
|
var _EditPencil, _span;
|
|
44
48
|
|
|
@@ -78,16 +82,19 @@ const makeEditableConfig = grid => edit__namespace.edit({
|
|
|
78
82
|
return editingRows[rowData[rowKey]] === columnIndex || column.alwaysEditing || isCustomEditing;
|
|
79
83
|
},
|
|
80
84
|
onActivate: () => null,
|
|
81
|
-
onValue: (
|
|
85
|
+
onValue: function () {
|
|
86
|
+
return grid.getInstance().actions.editValue(...arguments);
|
|
87
|
+
}
|
|
82
88
|
});
|
|
83
89
|
|
|
84
|
-
const addEditableToCell = ({
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
90
|
+
const addEditableToCell = (_ref2, grid) => {
|
|
91
|
+
let {
|
|
92
|
+
column,
|
|
93
|
+
config,
|
|
94
|
+
handlers
|
|
95
|
+
} = _ref2;
|
|
89
96
|
column.cell.transforms.push(config(getEditorComponent(column.customEditor, handlers)));
|
|
90
|
-
column.cell.props.className =
|
|
97
|
+
column.cell.props.className = dsUtilities.cx(column.cell.props.className, "editable".concat(column.customEditor ? ' customEditor' : ''));
|
|
91
98
|
return initColumnDefinition.appendCellFormatter([(value, extraParams) => /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
92
99
|
children: /*#__PURE__*/_jsx__default["default"]("div", {
|
|
93
100
|
onClick: e => {
|
|
@@ -103,7 +110,7 @@ const addEditableToCell = ({
|
|
|
103
110
|
},
|
|
104
111
|
role: "gridcell",
|
|
105
112
|
tabIndex: 0
|
|
106
|
-
}, void 0, value, _EditPencil || (_EditPencil = /*#__PURE__*/_jsx__default["default"](
|
|
113
|
+
}, void 0, value, _EditPencil || (_EditPencil = /*#__PURE__*/_jsx__default["default"](dsIcons.EditPencil, {
|
|
107
114
|
className: "edit-pencil"
|
|
108
115
|
})), _span || (_span = /*#__PURE__*/_jsx__default["default"]("span", {
|
|
109
116
|
className: "edit-separator"
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
4
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
5
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
3
8
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
4
9
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
10
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
@@ -24,48 +29,54 @@ const components = {
|
|
|
24
29
|
DSTextBox: TextBox
|
|
25
30
|
};
|
|
26
31
|
|
|
27
|
-
const getEditorComponent = (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (typeof editorComponent === 'function') {
|
|
33
|
-
return editorComponent(_objectSpread({
|
|
32
|
+
const getEditorComponent = function () {
|
|
33
|
+
let editorComponent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
34
|
+
let handlers = arguments.length > 1 ? arguments[1] : undefined;
|
|
35
|
+
return _ref => {
|
|
36
|
+
let {
|
|
34
37
|
value,
|
|
35
38
|
onValue,
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
+
extraParameters
|
|
40
|
+
} = _ref;
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
if (typeof editorComponent === 'function') {
|
|
43
|
+
return editorComponent(_objectSpread({
|
|
44
|
+
value,
|
|
45
|
+
onValue,
|
|
46
|
+
customHandlers: handlers
|
|
47
|
+
}, extraParameters));
|
|
48
|
+
}
|
|
44
49
|
|
|
45
|
-
|
|
50
|
+
const {
|
|
51
|
+
type = 'DSTextBox'
|
|
52
|
+
} = editorComponent,
|
|
53
|
+
restEditorProps = _objectWithoutProperties__default["default"](editorComponent, _excluded);
|
|
46
54
|
|
|
47
|
-
|
|
48
|
-
var _restEditorProps$opti;
|
|
55
|
+
const Component = components[type];
|
|
49
56
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
if (type === 'DSComboBox') {
|
|
58
|
+
var _restEditorProps$opti;
|
|
59
|
+
|
|
60
|
+
// TODO: remove this whole condition when combobox v3 is out and fully working without "maxOptions" parameter
|
|
61
|
+
const maxOptions = (restEditorProps === null || restEditorProps === void 0 ? void 0 : (_restEditorProps$opti = restEditorProps.options) === null || _restEditorProps$opti === void 0 ? void 0 : _restEditorProps$opti.length) || 100;
|
|
62
|
+
return /*#__PURE__*/_jsx__default["default"]("div", {
|
|
63
|
+
style: {
|
|
64
|
+
zIndex: 0
|
|
65
|
+
}
|
|
66
|
+
}, void 0, /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread({
|
|
67
|
+
autoFocus: true,
|
|
68
|
+
onValue: onValue,
|
|
69
|
+
value: value,
|
|
70
|
+
maxOptions: maxOptions
|
|
71
|
+
}, restEditorProps)));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread({
|
|
57
75
|
autoFocus: true,
|
|
58
76
|
onValue: onValue,
|
|
59
|
-
value: value
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread({
|
|
65
|
-
autoFocus: true,
|
|
66
|
-
onValue: onValue,
|
|
67
|
-
value: value
|
|
68
|
-
}, restEditorProps));
|
|
77
|
+
value: value
|
|
78
|
+
}, restEditorProps));
|
|
79
|
+
};
|
|
69
80
|
};
|
|
70
81
|
|
|
71
82
|
module.exports = getEditorComponent;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
4
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
5
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
3
8
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
9
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
10
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
11
|
var React = require('react');
|
|
7
|
-
var
|
|
8
|
-
var ArrowheadRight = require('@elliemae/ds-icons/ArrowheadRight');
|
|
12
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
9
13
|
var dsClassnames = require('@elliemae/ds-classnames');
|
|
10
|
-
var DSButton = require('@elliemae/ds-
|
|
11
|
-
var DSTruncatedTooltipText = require('@elliemae/ds-
|
|
14
|
+
var DSButton = require('@elliemae/ds-button');
|
|
15
|
+
var DSTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
|
|
12
16
|
var blockNames = require('../../blockNames.js');
|
|
13
17
|
var rowSizes = require('../../rowSizes.js');
|
|
14
18
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -18,8 +22,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
22
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
19
23
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
20
24
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
21
|
-
var ArrowheadDown__default = /*#__PURE__*/_interopDefaultLegacy(ArrowheadDown);
|
|
22
|
-
var ArrowheadRight__default = /*#__PURE__*/_interopDefaultLegacy(ArrowheadRight);
|
|
23
25
|
var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
|
|
24
26
|
var DSTruncatedTooltipText__default = /*#__PURE__*/_interopDefaultLegacy(DSTruncatedTooltipText);
|
|
25
27
|
|
|
@@ -40,14 +42,15 @@ const ExtraColumnData = dsClassnames.aggregatedClasses('div')(blockName, 'extra-
|
|
|
40
42
|
const ExpandableMasterWrapper = dsClassnames.aggregatedClasses('div')("".concat(blockName, "-master-wrapper"));
|
|
41
43
|
const ExpandableDetailsWrapper = dsClassnames.aggregatedClasses('div')("".concat(blockName, "-details-wrapper"));
|
|
42
44
|
|
|
43
|
-
function ExpandableColumnCell({
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
function ExpandableColumnCell(_ref) {
|
|
46
|
+
let {
|
|
47
|
+
label,
|
|
48
|
+
description,
|
|
49
|
+
isExpanded,
|
|
50
|
+
expandableDetails,
|
|
51
|
+
extraData,
|
|
52
|
+
onToggleExpand
|
|
53
|
+
} = _ref;
|
|
51
54
|
const ref = React.useRef();
|
|
52
55
|
return /*#__PURE__*/jsxRuntime.jsxs(ExpandableColumnWrapper, {
|
|
53
56
|
ref: ref,
|
|
@@ -59,7 +62,7 @@ function ExpandableColumnCell({
|
|
|
59
62
|
}, void 0, /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
|
|
60
63
|
buttonType: "text",
|
|
61
64
|
className: "expandable-arrow",
|
|
62
|
-
icon: isExpanded ? _ArrowheadDown || (_ArrowheadDown = /*#__PURE__*/_jsx__default["default"](
|
|
65
|
+
icon: isExpanded ? _ArrowheadDown || (_ArrowheadDown = /*#__PURE__*/_jsx__default["default"](dsIcons.ArrowheadDown, {})) : _ArrowheadRight || (_ArrowheadRight = /*#__PURE__*/_jsx__default["default"](dsIcons.ArrowheadRight, {})),
|
|
63
66
|
onClick: e => {
|
|
64
67
|
onToggleExpand(e);
|
|
65
68
|
|
|
@@ -76,44 +79,48 @@ function ExpandableColumnCell({
|
|
|
76
79
|
});
|
|
77
80
|
}
|
|
78
81
|
|
|
79
|
-
const expandableColumnRenderer =
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
description: renderRowDescription({
|
|
100
|
-
rowData
|
|
101
|
-
}),
|
|
102
|
-
expandableDetails: expandableDetails,
|
|
103
|
-
extraData: renderExtraData({
|
|
104
|
-
rowData
|
|
105
|
-
}),
|
|
106
|
-
isExpanded: isExpanded,
|
|
107
|
-
label: renderRowLabel({
|
|
82
|
+
const expandableColumnRenderer = _ref2 => {
|
|
83
|
+
let {
|
|
84
|
+
renderRowLabel,
|
|
85
|
+
renderRowDescription,
|
|
86
|
+
renderExtraData
|
|
87
|
+
} = _ref2;
|
|
88
|
+
return (value, _ref3, grid) => {
|
|
89
|
+
let {
|
|
90
|
+
rowData,
|
|
91
|
+
isExpanded
|
|
92
|
+
} = _ref3;
|
|
93
|
+
const {
|
|
94
|
+
props: {
|
|
95
|
+
renderExpandedDetails
|
|
96
|
+
},
|
|
97
|
+
actions: {
|
|
98
|
+
toggleExpand
|
|
99
|
+
}
|
|
100
|
+
} = grid.getInstance();
|
|
101
|
+
const expandableDetails = renderExpandedDetails({
|
|
108
102
|
rowData
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
|
|
103
|
+
});
|
|
104
|
+
return /*#__PURE__*/_jsx__default["default"](ExpandableColumnCell, {
|
|
105
|
+
description: renderRowDescription({
|
|
106
|
+
rowData
|
|
107
|
+
}),
|
|
108
|
+
expandableDetails: expandableDetails,
|
|
109
|
+
extraData: renderExtraData({
|
|
110
|
+
rowData
|
|
111
|
+
}),
|
|
112
|
+
isExpanded: isExpanded,
|
|
113
|
+
label: renderRowLabel({
|
|
114
|
+
rowData
|
|
115
|
+
}),
|
|
116
|
+
onToggleExpand: () => toggleExpand(rowData)
|
|
117
|
+
});
|
|
118
|
+
};
|
|
112
119
|
};
|
|
113
120
|
|
|
114
121
|
const noop = () => null;
|
|
115
122
|
|
|
116
|
-
function createExpandableColumn(
|
|
123
|
+
function createExpandableColumn(_ref4) {
|
|
117
124
|
let {
|
|
118
125
|
property,
|
|
119
126
|
label,
|
|
@@ -125,8 +132,8 @@ function createExpandableColumn(_ref) {
|
|
|
125
132
|
sortable,
|
|
126
133
|
searchable,
|
|
127
134
|
customRenderer
|
|
128
|
-
} =
|
|
129
|
-
rest = _objectWithoutProperties__default["default"](
|
|
135
|
+
} = _ref4,
|
|
136
|
+
rest = _objectWithoutProperties__default["default"](_ref4, _excluded);
|
|
130
137
|
|
|
131
138
|
return _objectSpread(_objectSpread({}, rest), {}, {
|
|
132
139
|
label,
|
|
@@ -5,13 +5,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
6
6
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
7
7
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.some.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
10
|
+
require('core-js/modules/esnext.iterator.some.js');
|
|
11
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
12
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
13
|
+
require('core-js/modules/esnext.async-iterator.map.js');
|
|
14
|
+
require('core-js/modules/esnext.iterator.map.js');
|
|
8
15
|
require('core-js/modules/web.dom-collections.iterator.js');
|
|
16
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
17
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
9
18
|
var React = require('react');
|
|
10
|
-
var
|
|
19
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
11
20
|
var reactWindow = require('react-window');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var DSButton = require('@elliemae/ds-basic/Button');
|
|
21
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
22
|
+
var DSButton = require('@elliemae/ds-button');
|
|
15
23
|
var createInstancePlugin = require('@elliemae/ds-shared/createDataInstance/createInstancePlugin');
|
|
16
24
|
var initColumnDefinition = require('@elliemae/ds-shared/useDataGrid/initColumnDefinition');
|
|
17
25
|
var ExpandedRow = require('./ExpandedRow.js');
|
|
@@ -25,8 +33,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
25
33
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
26
34
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
27
35
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
28
|
-
var ArrowheadDown__default = /*#__PURE__*/_interopDefaultLegacy(ArrowheadDown);
|
|
29
|
-
var ArrowheadRight__default = /*#__PURE__*/_interopDefaultLegacy(ArrowheadRight);
|
|
30
36
|
var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
|
|
31
37
|
var createInstancePlugin__default = /*#__PURE__*/_interopDefaultLegacy(createInstancePlugin);
|
|
32
38
|
|
|
@@ -38,12 +44,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
38
44
|
|
|
39
45
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
40
46
|
|
|
41
|
-
const getExpandedRowSizeBySubrows =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
const getExpandedRowSizeBySubrows = _ref => {
|
|
48
|
+
let {
|
|
49
|
+
totalAmount,
|
|
50
|
+
amountVisible,
|
|
51
|
+
isShowingAll,
|
|
52
|
+
size = 36
|
|
53
|
+
} = _ref;
|
|
54
|
+
return isShowingAll ? size * (totalAmount + 1) - 6 : size * (amountVisible + 1) + 32;
|
|
55
|
+
};
|
|
47
56
|
|
|
48
57
|
const ExpandedRows = {
|
|
49
58
|
SingleColumn: ExpandedRow,
|
|
@@ -76,10 +85,11 @@ const ExpandablePlugin = createInstancePlugin__default["default"]('expandable',
|
|
|
76
85
|
const firstColumnIndex = columns.findIndex(column => column.isUserColumn);
|
|
77
86
|
const firstColumn = columns[firstColumnIndex];
|
|
78
87
|
firstColumn.formatExpandable = true;
|
|
79
|
-
return [...columns.slice(0, firstColumnIndex), initColumnDefinition.appendCellFormatter((value, {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
return [...columns.slice(0, firstColumnIndex), initColumnDefinition.appendCellFormatter((value, _ref2) => {
|
|
89
|
+
let {
|
|
90
|
+
isExpanded,
|
|
91
|
+
rowData
|
|
92
|
+
} = _ref2;
|
|
83
93
|
const {
|
|
84
94
|
actions: {
|
|
85
95
|
toggleExpand
|
|
@@ -94,7 +104,7 @@ const ExpandablePlugin = createInstancePlugin__default["default"]('expandable',
|
|
|
94
104
|
children: [/*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
|
|
95
105
|
buttonType: "text",
|
|
96
106
|
className: "expandable-arrow",
|
|
97
|
-
icon: isExpanded ? _ArrowheadDown || (_ArrowheadDown = /*#__PURE__*/_jsx__default["default"](
|
|
107
|
+
icon: isExpanded ? _ArrowheadDown || (_ArrowheadDown = /*#__PURE__*/_jsx__default["default"](dsIcons.ArrowheadDown, {})) : _ArrowheadRight || (_ArrowheadRight = /*#__PURE__*/_jsx__default["default"](dsIcons.ArrowheadRight, {})),
|
|
98
108
|
onClick: e => {
|
|
99
109
|
e.stopPropagation();
|
|
100
110
|
toggleExpand(rowData);
|
|
@@ -143,13 +153,13 @@ const ExpandablePlugin = createInstancePlugin__default["default"]('expandable',
|
|
|
143
153
|
isShowingAll: children.length < expandableSubrowsVisible || expandedRows[key] && expandedRows[key].showAllRows,
|
|
144
154
|
size: subrowSizePx
|
|
145
155
|
});
|
|
146
|
-
const expandedMinSize =
|
|
156
|
+
const expandedMinSize = dsUtilities.isFunction(getExpandedRowMinSize) && getExpandedRowMinSize(index); // eslint-disable-next-line no-nested-ternary
|
|
147
157
|
|
|
148
158
|
return expandedRows[key] ? expandedMinSize > expandedSize ? expandedMinSize : expandedSize : rowSizePx;
|
|
149
159
|
};
|
|
150
160
|
|
|
151
161
|
return _objectSpread(_objectSpread({}, bodyProps), {}, {
|
|
152
|
-
className:
|
|
162
|
+
className: dsUtilities.cx(bodyProps.className, 'expandable'),
|
|
153
163
|
listComponent: reactWindow.VariableSizeList,
|
|
154
164
|
listProps: {
|
|
155
165
|
ref: listRef,
|
|
@@ -167,11 +177,11 @@ const ExpandablePlugin = createInstancePlugin__default["default"]('expandable',
|
|
|
167
177
|
const expandedRowType = isExpandableSingleColumn(grid.decoratedColumns) ? 'SingleColumn' : 'Master';
|
|
168
178
|
const ExpandedRowComponent = createExpandedRow(expandedRowType); // eslint-disable-next-line react/display-name
|
|
169
179
|
|
|
170
|
-
return
|
|
180
|
+
return _ref3 => {
|
|
171
181
|
let {
|
|
172
182
|
isExpanded
|
|
173
|
-
} =
|
|
174
|
-
rowProps = _objectWithoutProperties__default["default"](
|
|
183
|
+
} = _ref3,
|
|
184
|
+
rowProps = _objectWithoutProperties__default["default"](_ref3, _excluded);
|
|
175
185
|
|
|
176
186
|
if (isExpanded) {
|
|
177
187
|
const {
|
|
@@ -207,9 +217,10 @@ const ExpandablePlugin = createInstancePlugin__default["default"]('expandable',
|
|
|
207
217
|
return renderers;
|
|
208
218
|
},
|
|
209
219
|
|
|
210
|
-
getRowProps(rowProps, grid, {
|
|
211
|
-
|
|
212
|
-
|
|
220
|
+
getRowProps(rowProps, grid, _ref4) {
|
|
221
|
+
let {
|
|
222
|
+
rowData
|
|
223
|
+
} = _ref4;
|
|
213
224
|
const {
|
|
214
225
|
props: {
|
|
215
226
|
rowKey
|
|
@@ -221,7 +232,7 @@ const ExpandablePlugin = createInstancePlugin__default["default"]('expandable',
|
|
|
221
232
|
const key = rowData[rowKey];
|
|
222
233
|
const isExpanded = !!expandedRows[key];
|
|
223
234
|
return _objectSpread(_objectSpread({}, rowProps), {}, {
|
|
224
|
-
className:
|
|
235
|
+
className: dsUtilities.cx(rowProps.className, Object.keys(expandedRows).length > 0 && 'expandable-row', isExpanded && 'expanded'),
|
|
225
236
|
isExpanded,
|
|
226
237
|
showAllRows: expandedRows[key] && expandedRows[key].showAllRows
|
|
227
238
|
});
|
|
@@ -3,11 +3,18 @@
|
|
|
3
3
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
4
4
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
5
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
6
|
+
require('core-js/modules/esnext.async-iterator.map.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.map.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
10
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
11
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
12
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
6
13
|
require('react');
|
|
7
|
-
var DSSeparator = require('@elliemae/ds-
|
|
8
|
-
var DSButton = require('@elliemae/ds-
|
|
14
|
+
var DSSeparator = require('@elliemae/ds-separator');
|
|
15
|
+
var DSButton = require('@elliemae/ds-button');
|
|
9
16
|
var styled = require('styled-components');
|
|
10
|
-
var
|
|
17
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
11
18
|
var deferComponentRender = require('@elliemae/ds-shared/defer-render-hoc');
|
|
12
19
|
var useDataGrid = require('@elliemae/ds-shared/useDataGrid');
|
|
13
20
|
var PaginationPlugin = require('../pagination/PaginationPlugin.js');
|
|
@@ -37,11 +44,13 @@ const _excluded = ["instanceRef"],
|
|
|
37
44
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
38
45
|
|
|
39
46
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
40
|
-
const DetailGrid = deferComponentRender__default["default"](
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
const DetailGrid = deferComponentRender__default["default"](_ref => {
|
|
48
|
+
let {
|
|
49
|
+
parentGrid,
|
|
50
|
+
parentRowData,
|
|
51
|
+
rows
|
|
52
|
+
} = _ref;
|
|
53
|
+
|
|
45
54
|
const _parentGrid$props = parentGrid.props,
|
|
46
55
|
parentProps = _objectWithoutProperties__default["default"](_parentGrid$props, _excluded);
|
|
47
56
|
|
|
@@ -74,15 +83,16 @@ const DetailGridWrapper = /*#__PURE__*/styled__default["default"].div.withConfig
|
|
|
74
83
|
componentId: "sc-1goa4zy-1"
|
|
75
84
|
})(["display:flex;height:calc(100% - ", "px);width:", "px;margin:12px 0;"], props => props.allRowsVisible ? 18 : 60, props => props.expandableGridDetailWidth);
|
|
76
85
|
|
|
77
|
-
function ExpandedRow({
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
function ExpandedRow(_ref2) {
|
|
87
|
+
let {
|
|
88
|
+
parentGrid,
|
|
89
|
+
detailColumns,
|
|
90
|
+
rowData,
|
|
91
|
+
rows,
|
|
92
|
+
rowProps,
|
|
93
|
+
cellComponent: CellComponent,
|
|
94
|
+
rowComponent: RowComponent
|
|
95
|
+
} = _ref2;
|
|
86
96
|
const {
|
|
87
97
|
decoratedColumns,
|
|
88
98
|
actions: {
|
|
@@ -119,7 +129,7 @@ function ExpandedRow({
|
|
|
119
129
|
}), /*#__PURE__*/_jsx__default["default"](DetailsWrapper, {
|
|
120
130
|
width: expandableGridDetailWidth
|
|
121
131
|
}, void 0, /*#__PURE__*/_jsx__default["default"](DetailGridWrapper, {
|
|
122
|
-
allRowsVisible: rows.length < expandableSubrowsVisible ||
|
|
132
|
+
allRowsVisible: rows.length < expandableSubrowsVisible || dsUtilities.get(expandedRows, [rowKey, 'showAllRows']),
|
|
123
133
|
expandableGridDetailWidth: expandableGridDetailWidth
|
|
124
134
|
}, void 0, _DSSeparator || (_DSSeparator = /*#__PURE__*/_jsx__default["default"](DSSeparator__default["default"], {
|
|
125
135
|
dashed: true,
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
4
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
5
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
3
8
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
9
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
5
10
|
require('react');
|
|
6
|
-
var
|
|
7
|
-
var DSSeparator = require('@elliemae/ds-
|
|
11
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
12
|
+
var DSSeparator = require('@elliemae/ds-separator');
|
|
8
13
|
var dsClassnames = require('@elliemae/ds-classnames');
|
|
9
14
|
var blockNames = require('../../blockNames.js');
|
|
10
15
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -25,15 +30,16 @@ const DetailsWrapper = dsClassnames.aggregatedClasses('div')("".concat(blockName
|
|
|
25
30
|
'ie-flex-basis-auto': true
|
|
26
31
|
}));
|
|
27
32
|
|
|
28
|
-
function ExpandedRowExtra({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
function ExpandedRowExtra(_ref) {
|
|
34
|
+
let {
|
|
35
|
+
children,
|
|
36
|
+
rowData,
|
|
37
|
+
rowProps,
|
|
38
|
+
rowComponent: RowComponent,
|
|
39
|
+
renderRowDetails = () => null
|
|
40
|
+
} = _ref;
|
|
35
41
|
return /*#__PURE__*/jsxRuntime.jsxs(RowComponent, _objectSpread(_objectSpread({}, rowProps), {}, {
|
|
36
|
-
className:
|
|
42
|
+
className: dsUtilities.cx(rowProps.className, 'expanded-detail-row'),
|
|
37
43
|
children: [/*#__PURE__*/_jsx__default["default"](RowComponent, {
|
|
38
44
|
className: "master-row-expanded"
|
|
39
45
|
}, void 0, children), _DSSeparator || (_DSSeparator = /*#__PURE__*/_jsx__default["default"](DSSeparator__default["default"], {
|