@elliemae/ds-data-table 2.1.1-rc.1 → 3.0.0-next.0
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.
|
@@ -18,6 +18,8 @@ const flatten = function (data, expandedRows, uniqueRowAccessor) {
|
|
|
18
18
|
const result = [];
|
|
19
19
|
|
|
20
20
|
const doit = function (row) {
|
|
21
|
+
var _row$subRows, _row$subRows$length, _row$subRows2;
|
|
22
|
+
|
|
21
23
|
let index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
22
24
|
let parentId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
23
25
|
let parentIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
@@ -37,6 +39,8 @@ const flatten = function (data, expandedRows, uniqueRowAccessor) {
|
|
|
37
39
|
parentIndex,
|
|
38
40
|
depth,
|
|
39
41
|
isExpanded,
|
|
42
|
+
subRows: (_row$subRows = row.subRows) !== null && _row$subRows !== void 0 ? _row$subRows : [],
|
|
43
|
+
childrenCount: (_row$subRows$length = (_row$subRows2 = row.subRows) === null || _row$subRows2 === void 0 ? void 0 : _row$subRows2.length) !== null && _row$subRows$length !== void 0 ? _row$subRows$length : 0,
|
|
40
44
|
original: row !== null && row !== void 0 ? row : {}
|
|
41
45
|
};
|
|
42
46
|
result.push(rowToPush); // If we have subrows and we are expanded
|
|
@@ -14,6 +14,8 @@ const flatten = function (data, expandedRows, uniqueRowAccessor) {
|
|
|
14
14
|
const result = [];
|
|
15
15
|
|
|
16
16
|
const doit = function (row) {
|
|
17
|
+
var _row$subRows, _row$subRows$length, _row$subRows2;
|
|
18
|
+
|
|
17
19
|
let index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
18
20
|
let parentId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
19
21
|
let parentIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
@@ -33,6 +35,8 @@ const flatten = function (data, expandedRows, uniqueRowAccessor) {
|
|
|
33
35
|
parentIndex,
|
|
34
36
|
depth,
|
|
35
37
|
isExpanded,
|
|
38
|
+
subRows: (_row$subRows = row.subRows) !== null && _row$subRows !== void 0 ? _row$subRows : [],
|
|
39
|
+
childrenCount: (_row$subRows$length = (_row$subRows2 = row.subRows) === null || _row$subRows2 === void 0 ? void 0 : _row$subRows2.length) !== null && _row$subRows$length !== void 0 ? _row$subRows$length : 0,
|
|
36
40
|
original: row !== null && row !== void 0 ? row : {}
|
|
37
41
|
};
|
|
38
42
|
result.push(rowToPush); // If we have subrows and we are expanded
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-data-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Data Table",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -570,23 +570,23 @@
|
|
|
570
570
|
"dependencies": {
|
|
571
571
|
"@dnd-kit/core": "~4.0.1",
|
|
572
572
|
"@dnd-kit/sortable": "~5.0.0",
|
|
573
|
-
"@elliemae/ds-button": "
|
|
574
|
-
"@elliemae/ds-circular-progress-indicator": "
|
|
575
|
-
"@elliemae/ds-controlled-form": "
|
|
576
|
-
"@elliemae/ds-drag-and-drop": "
|
|
577
|
-
"@elliemae/ds-dropdownmenu": "
|
|
578
|
-
"@elliemae/ds-form": "
|
|
579
|
-
"@elliemae/ds-form-layout-blocks": "
|
|
580
|
-
"@elliemae/ds-grid": "
|
|
581
|
-
"@elliemae/ds-icons": "
|
|
582
|
-
"@elliemae/ds-indeterminate-progress-indicator": "
|
|
583
|
-
"@elliemae/ds-pagination": "
|
|
584
|
-
"@elliemae/ds-pills": "
|
|
585
|
-
"@elliemae/ds-popperjs": "
|
|
586
|
-
"@elliemae/ds-system": "
|
|
587
|
-
"@elliemae/ds-toolbar": "
|
|
588
|
-
"@elliemae/ds-truncated-tooltip-text": "
|
|
589
|
-
"@elliemae/ds-utilities": "
|
|
573
|
+
"@elliemae/ds-button": "3.0.0-next.0",
|
|
574
|
+
"@elliemae/ds-circular-progress-indicator": "3.0.0-next.0",
|
|
575
|
+
"@elliemae/ds-controlled-form": "3.0.0-next.0",
|
|
576
|
+
"@elliemae/ds-drag-and-drop": "3.0.0-next.0",
|
|
577
|
+
"@elliemae/ds-dropdownmenu": "3.0.0-next.0",
|
|
578
|
+
"@elliemae/ds-form": "3.0.0-next.0",
|
|
579
|
+
"@elliemae/ds-form-layout-blocks": "3.0.0-next.0",
|
|
580
|
+
"@elliemae/ds-grid": "3.0.0-next.0",
|
|
581
|
+
"@elliemae/ds-icons": "3.0.0-next.0",
|
|
582
|
+
"@elliemae/ds-indeterminate-progress-indicator": "3.0.0-next.0",
|
|
583
|
+
"@elliemae/ds-pagination": "3.0.0-next.0",
|
|
584
|
+
"@elliemae/ds-pills": "3.0.0-next.0",
|
|
585
|
+
"@elliemae/ds-popperjs": "3.0.0-next.0",
|
|
586
|
+
"@elliemae/ds-system": "3.0.0-next.0",
|
|
587
|
+
"@elliemae/ds-toolbar": "3.0.0-next.0",
|
|
588
|
+
"@elliemae/ds-truncated-tooltip-text": "3.0.0-next.0",
|
|
589
|
+
"@elliemae/ds-utilities": "3.0.0-next.0",
|
|
590
590
|
"@reduxjs/toolkit": "~1.6.2",
|
|
591
591
|
"csstype": "~3.0.9",
|
|
592
592
|
"moment": "~2.29.1",
|