@react-stately/table 3.11.8-nightly.4624 → 3.11.9-nightly.4629

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/dist/Cell.main.js CHANGED
@@ -19,13 +19,13 @@ $parcel$export(module.exports, "Cell", () => $ad4ab0a21c733e1f$export$f6f0c3fe4e
19
19
  }
20
20
  $ad4ab0a21c733e1f$var$Cell.getCollectionNode = function* getCollectionNode(props) {
21
21
  let { children: children } = props;
22
- let textValue = props.textValue || (typeof children === "string" ? children : "") || props["aria-label"] || "";
22
+ let textValue = props.textValue || (typeof children === 'string' ? children : '') || props['aria-label'] || '';
23
23
  yield {
24
- type: "cell",
24
+ type: 'cell',
25
25
  props: props,
26
26
  rendered: children,
27
27
  textValue: textValue,
28
- "aria-label": props["aria-label"],
28
+ 'aria-label': props['aria-label'],
29
29
  hasChildNodes: false
30
30
  };
31
31
  };
package/dist/Cell.mjs CHANGED
@@ -13,13 +13,13 @@
13
13
  }
14
14
  $941d1d9a6a28982a$var$Cell.getCollectionNode = function* getCollectionNode(props) {
15
15
  let { children: children } = props;
16
- let textValue = props.textValue || (typeof children === "string" ? children : "") || props["aria-label"] || "";
16
+ let textValue = props.textValue || (typeof children === 'string' ? children : '') || props['aria-label'] || '';
17
17
  yield {
18
- type: "cell",
18
+ type: 'cell',
19
19
  props: props,
20
20
  rendered: children,
21
21
  textValue: textValue,
22
- "aria-label": props["aria-label"],
22
+ 'aria-label': props['aria-label'],
23
23
  hasChildNodes: false
24
24
  };
25
25
  };
@@ -13,13 +13,13 @@
13
13
  }
14
14
  $941d1d9a6a28982a$var$Cell.getCollectionNode = function* getCollectionNode(props) {
15
15
  let { children: children } = props;
16
- let textValue = props.textValue || (typeof children === "string" ? children : "") || props["aria-label"] || "";
16
+ let textValue = props.textValue || (typeof children === 'string' ? children : '') || props['aria-label'] || '';
17
17
  yield {
18
- type: "cell",
18
+ type: 'cell',
19
19
  props: props,
20
20
  rendered: children,
21
21
  textValue: textValue,
22
- "aria-label": props["aria-label"],
22
+ 'aria-label': props['aria-label'],
23
23
  hasChildNodes: false
24
24
  };
25
25
  };
@@ -27,23 +27,23 @@ function $714483d9f6ca4c55$var$Column(props) {
27
27
  $714483d9f6ca4c55$var$Column.getCollectionNode = function* getCollectionNode(props, context) {
28
28
  let { title: title, children: children, childColumns: childColumns } = props;
29
29
  let rendered = title || children;
30
- let textValue = props.textValue || (typeof rendered === "string" ? rendered : "") || props["aria-label"];
30
+ let textValue = props.textValue || (typeof rendered === 'string' ? rendered : '') || props['aria-label'];
31
31
  let fullNodes = yield {
32
- type: "column",
32
+ type: 'column',
33
33
  hasChildNodes: !!childColumns || title && (0, ($parcel$interopDefault($kykIu$react))).Children.count(children) > 0,
34
34
  rendered: rendered,
35
35
  textValue: textValue,
36
36
  props: props,
37
37
  *childNodes () {
38
38
  if (childColumns) for (let child of childColumns)yield {
39
- type: "column",
39
+ type: 'column',
40
40
  value: child
41
41
  };
42
42
  else if (title) {
43
43
  let childColumns = [];
44
44
  (0, ($parcel$interopDefault($kykIu$react))).Children.forEach(children, (child)=>{
45
45
  childColumns.push({
46
- type: "column",
46
+ type: 'column',
47
47
  element: child
48
48
  });
49
49
  });
package/dist/Column.mjs CHANGED
@@ -17,23 +17,23 @@ function $1cd244557c2f97d5$var$Column(props) {
17
17
  $1cd244557c2f97d5$var$Column.getCollectionNode = function* getCollectionNode(props, context) {
18
18
  let { title: title, children: children, childColumns: childColumns } = props;
19
19
  let rendered = title || children;
20
- let textValue = props.textValue || (typeof rendered === "string" ? rendered : "") || props["aria-label"];
20
+ let textValue = props.textValue || (typeof rendered === 'string' ? rendered : '') || props['aria-label'];
21
21
  let fullNodes = yield {
22
- type: "column",
22
+ type: 'column',
23
23
  hasChildNodes: !!childColumns || title && (0, $kIQ5E$react).Children.count(children) > 0,
24
24
  rendered: rendered,
25
25
  textValue: textValue,
26
26
  props: props,
27
27
  *childNodes () {
28
28
  if (childColumns) for (let child of childColumns)yield {
29
- type: "column",
29
+ type: 'column',
30
30
  value: child
31
31
  };
32
32
  else if (title) {
33
33
  let childColumns = [];
34
34
  (0, $kIQ5E$react).Children.forEach(children, (child)=>{
35
35
  childColumns.push({
36
- type: "column",
36
+ type: 'column',
37
37
  element: child
38
38
  });
39
39
  });
@@ -17,23 +17,23 @@ function $1cd244557c2f97d5$var$Column(props) {
17
17
  $1cd244557c2f97d5$var$Column.getCollectionNode = function* getCollectionNode(props, context) {
18
18
  let { title: title, children: children, childColumns: childColumns } = props;
19
19
  let rendered = title || children;
20
- let textValue = props.textValue || (typeof rendered === "string" ? rendered : "") || props["aria-label"];
20
+ let textValue = props.textValue || (typeof rendered === 'string' ? rendered : '') || props['aria-label'];
21
21
  let fullNodes = yield {
22
- type: "column",
22
+ type: 'column',
23
23
  hasChildNodes: !!childColumns || title && (0, $kIQ5E$react).Children.count(children) > 0,
24
24
  rendered: rendered,
25
25
  textValue: textValue,
26
26
  props: props,
27
27
  *childNodes () {
28
28
  if (childColumns) for (let child of childColumns)yield {
29
- type: "column",
29
+ type: 'column',
30
30
  value: child
31
31
  };
32
32
  else if (title) {
33
33
  let childColumns = [];
34
34
  (0, $kIQ5E$react).Children.forEach(children, (child)=>{
35
35
  childColumns.push({
36
- type: "column",
36
+ type: 'column',
37
37
  element: child
38
38
  });
39
39
  });
package/dist/Row.main.js CHANGED
@@ -27,37 +27,37 @@ function $9ec6912e32cc0d81$var$Row(props) {
27
27
  $9ec6912e32cc0d81$var$Row.getCollectionNode = function* getCollectionNode(props, context) {
28
28
  let { children: children, textValue: textValue, UNSTABLE_childItems: UNSTABLE_childItems } = props;
29
29
  yield {
30
- type: "item",
30
+ type: 'item',
31
31
  props: props,
32
32
  textValue: textValue,
33
- "aria-label": props["aria-label"],
33
+ 'aria-label': props['aria-label'],
34
34
  hasChildNodes: true,
35
35
  *childNodes () {
36
36
  // Process cells first
37
37
  if (context.showDragButtons) yield {
38
- type: "cell",
39
- key: "header-drag",
38
+ type: 'cell',
39
+ key: 'header-drag',
40
40
  props: {
41
41
  isDragButtonCell: true
42
42
  }
43
43
  };
44
- if (context.showSelectionCheckboxes && context.selectionMode !== "none") yield {
45
- type: "cell",
46
- key: "header",
44
+ if (context.showSelectionCheckboxes && context.selectionMode !== 'none') yield {
45
+ type: 'cell',
46
+ key: 'header',
47
47
  props: {
48
48
  isSelectionCell: true
49
49
  }
50
50
  };
51
- if (typeof children === "function") {
51
+ if (typeof children === 'function') {
52
52
  for (let column of context.columns)yield {
53
- type: "cell",
53
+ type: 'cell',
54
54
  element: children(column.key),
55
55
  key: column.key // this is combined with the row key by CollectionBuilder
56
56
  };
57
57
  if (UNSTABLE_childItems) for (let child of UNSTABLE_childItems)// Note: in order to reuse the render function of TableBody for our child rows, we just need to yield a type and a value here. CollectionBuilder will then look up
58
58
  // the parent renderer and use that to build the full node of this child row, using the value provided here to generate the cells
59
59
  yield {
60
- type: "item",
60
+ type: 'item',
61
61
  value: child
62
62
  };
63
63
  } else {
@@ -65,13 +65,13 @@ $9ec6912e32cc0d81$var$Row.getCollectionNode = function* getCollectionNode(props,
65
65
  let childRows = [];
66
66
  (0, ($parcel$interopDefault($7Z9ig$react))).Children.forEach(children, (node)=>{
67
67
  if (node.type === $9ec6912e32cc0d81$var$Row) {
68
- if (cells.length < context.columns.length) throw new Error("All of a Row's child Cells must be positioned before any child Rows.");
68
+ if (cells.length < context.columns.length) throw new Error('All of a Row\'s child Cells must be positioned before any child Rows.');
69
69
  childRows.push({
70
- type: "item",
70
+ type: 'item',
71
71
  element: node
72
72
  });
73
73
  } else cells.push({
74
- type: "cell",
74
+ type: 'cell',
75
75
  element: node
76
76
  });
77
77
  });
package/dist/Row.mjs CHANGED
@@ -17,37 +17,37 @@ function $70d70eb16ea48428$var$Row(props) {
17
17
  $70d70eb16ea48428$var$Row.getCollectionNode = function* getCollectionNode(props, context) {
18
18
  let { children: children, textValue: textValue, UNSTABLE_childItems: UNSTABLE_childItems } = props;
19
19
  yield {
20
- type: "item",
20
+ type: 'item',
21
21
  props: props,
22
22
  textValue: textValue,
23
- "aria-label": props["aria-label"],
23
+ 'aria-label': props['aria-label'],
24
24
  hasChildNodes: true,
25
25
  *childNodes () {
26
26
  // Process cells first
27
27
  if (context.showDragButtons) yield {
28
- type: "cell",
29
- key: "header-drag",
28
+ type: 'cell',
29
+ key: 'header-drag',
30
30
  props: {
31
31
  isDragButtonCell: true
32
32
  }
33
33
  };
34
- if (context.showSelectionCheckboxes && context.selectionMode !== "none") yield {
35
- type: "cell",
36
- key: "header",
34
+ if (context.showSelectionCheckboxes && context.selectionMode !== 'none') yield {
35
+ type: 'cell',
36
+ key: 'header',
37
37
  props: {
38
38
  isSelectionCell: true
39
39
  }
40
40
  };
41
- if (typeof children === "function") {
41
+ if (typeof children === 'function') {
42
42
  for (let column of context.columns)yield {
43
- type: "cell",
43
+ type: 'cell',
44
44
  element: children(column.key),
45
45
  key: column.key // this is combined with the row key by CollectionBuilder
46
46
  };
47
47
  if (UNSTABLE_childItems) for (let child of UNSTABLE_childItems)// Note: in order to reuse the render function of TableBody for our child rows, we just need to yield a type and a value here. CollectionBuilder will then look up
48
48
  // the parent renderer and use that to build the full node of this child row, using the value provided here to generate the cells
49
49
  yield {
50
- type: "item",
50
+ type: 'item',
51
51
  value: child
52
52
  };
53
53
  } else {
@@ -55,13 +55,13 @@ $70d70eb16ea48428$var$Row.getCollectionNode = function* getCollectionNode(props,
55
55
  let childRows = [];
56
56
  (0, $7GIZw$react).Children.forEach(children, (node)=>{
57
57
  if (node.type === $70d70eb16ea48428$var$Row) {
58
- if (cells.length < context.columns.length) throw new Error("All of a Row's child Cells must be positioned before any child Rows.");
58
+ if (cells.length < context.columns.length) throw new Error('All of a Row\'s child Cells must be positioned before any child Rows.');
59
59
  childRows.push({
60
- type: "item",
60
+ type: 'item',
61
61
  element: node
62
62
  });
63
63
  } else cells.push({
64
- type: "cell",
64
+ type: 'cell',
65
65
  element: node
66
66
  });
67
67
  });
@@ -17,37 +17,37 @@ function $70d70eb16ea48428$var$Row(props) {
17
17
  $70d70eb16ea48428$var$Row.getCollectionNode = function* getCollectionNode(props, context) {
18
18
  let { children: children, textValue: textValue, UNSTABLE_childItems: UNSTABLE_childItems } = props;
19
19
  yield {
20
- type: "item",
20
+ type: 'item',
21
21
  props: props,
22
22
  textValue: textValue,
23
- "aria-label": props["aria-label"],
23
+ 'aria-label': props['aria-label'],
24
24
  hasChildNodes: true,
25
25
  *childNodes () {
26
26
  // Process cells first
27
27
  if (context.showDragButtons) yield {
28
- type: "cell",
29
- key: "header-drag",
28
+ type: 'cell',
29
+ key: 'header-drag',
30
30
  props: {
31
31
  isDragButtonCell: true
32
32
  }
33
33
  };
34
- if (context.showSelectionCheckboxes && context.selectionMode !== "none") yield {
35
- type: "cell",
36
- key: "header",
34
+ if (context.showSelectionCheckboxes && context.selectionMode !== 'none') yield {
35
+ type: 'cell',
36
+ key: 'header',
37
37
  props: {
38
38
  isSelectionCell: true
39
39
  }
40
40
  };
41
- if (typeof children === "function") {
41
+ if (typeof children === 'function') {
42
42
  for (let column of context.columns)yield {
43
- type: "cell",
43
+ type: 'cell',
44
44
  element: children(column.key),
45
45
  key: column.key // this is combined with the row key by CollectionBuilder
46
46
  };
47
47
  if (UNSTABLE_childItems) for (let child of UNSTABLE_childItems)// Note: in order to reuse the render function of TableBody for our child rows, we just need to yield a type and a value here. CollectionBuilder will then look up
48
48
  // the parent renderer and use that to build the full node of this child row, using the value provided here to generate the cells
49
49
  yield {
50
- type: "item",
50
+ type: 'item',
51
51
  value: child
52
52
  };
53
53
  } else {
@@ -55,13 +55,13 @@ $70d70eb16ea48428$var$Row.getCollectionNode = function* getCollectionNode(props,
55
55
  let childRows = [];
56
56
  (0, $7GIZw$react).Children.forEach(children, (node)=>{
57
57
  if (node.type === $70d70eb16ea48428$var$Row) {
58
- if (cells.length < context.columns.length) throw new Error("All of a Row's child Cells must be positioned before any child Rows.");
58
+ if (cells.length < context.columns.length) throw new Error('All of a Row\'s child Cells must be positioned before any child Rows.');
59
59
  childRows.push({
60
- type: "item",
60
+ type: 'item',
61
61
  element: node
62
62
  });
63
63
  } else cells.push({
64
- type: "cell",
64
+ type: 'cell',
65
65
  element: node
66
66
  });
67
67
  });
@@ -27,14 +27,14 @@ function $6ec527db6a3a5692$var$TableBody(props) {
27
27
  $6ec527db6a3a5692$var$TableBody.getCollectionNode = function* getCollectionNode(props) {
28
28
  let { children: children, items: items } = props;
29
29
  yield {
30
- type: "body",
30
+ type: 'body',
31
31
  hasChildNodes: true,
32
32
  props: props,
33
33
  *childNodes () {
34
- if (typeof children === "function") {
35
- if (!items) throw new Error("props.children was a function but props.items is missing");
34
+ if (typeof children === 'function') {
35
+ if (!items) throw new Error('props.children was a function but props.items is missing');
36
36
  for (let item of items)yield {
37
- type: "item",
37
+ type: 'item',
38
38
  value: item,
39
39
  renderer: children
40
40
  };
@@ -42,7 +42,7 @@ $6ec527db6a3a5692$var$TableBody.getCollectionNode = function* getCollectionNode(
42
42
  let items = [];
43
43
  (0, ($parcel$interopDefault($ablJS$react))).Children.forEach(children, (item)=>{
44
44
  items.push({
45
- type: "item",
45
+ type: 'item',
46
46
  element: item
47
47
  });
48
48
  });
@@ -17,14 +17,14 @@ function $4ae5314bf50db1a3$var$TableBody(props) {
17
17
  $4ae5314bf50db1a3$var$TableBody.getCollectionNode = function* getCollectionNode(props) {
18
18
  let { children: children, items: items } = props;
19
19
  yield {
20
- type: "body",
20
+ type: 'body',
21
21
  hasChildNodes: true,
22
22
  props: props,
23
23
  *childNodes () {
24
- if (typeof children === "function") {
25
- if (!items) throw new Error("props.children was a function but props.items is missing");
24
+ if (typeof children === 'function') {
25
+ if (!items) throw new Error('props.children was a function but props.items is missing');
26
26
  for (let item of items)yield {
27
- type: "item",
27
+ type: 'item',
28
28
  value: item,
29
29
  renderer: children
30
30
  };
@@ -32,7 +32,7 @@ $4ae5314bf50db1a3$var$TableBody.getCollectionNode = function* getCollectionNode(
32
32
  let items = [];
33
33
  (0, $6tF2U$react).Children.forEach(children, (item)=>{
34
34
  items.push({
35
- type: "item",
35
+ type: 'item',
36
36
  element: item
37
37
  });
38
38
  });
@@ -17,14 +17,14 @@ function $4ae5314bf50db1a3$var$TableBody(props) {
17
17
  $4ae5314bf50db1a3$var$TableBody.getCollectionNode = function* getCollectionNode(props) {
18
18
  let { children: children, items: items } = props;
19
19
  yield {
20
- type: "body",
20
+ type: 'body',
21
21
  hasChildNodes: true,
22
22
  props: props,
23
23
  *childNodes () {
24
- if (typeof children === "function") {
25
- if (!items) throw new Error("props.children was a function but props.items is missing");
24
+ if (typeof children === 'function') {
25
+ if (!items) throw new Error('props.children was a function but props.items is missing');
26
26
  for (let item of items)yield {
27
- type: "item",
27
+ type: 'item',
28
28
  value: item,
29
29
  renderer: children
30
30
  };
@@ -32,7 +32,7 @@ $4ae5314bf50db1a3$var$TableBody.getCollectionNode = function* getCollectionNode(
32
32
  let items = [];
33
33
  (0, $6tF2U$react).Children.forEach(children, (item)=>{
34
34
  items.push({
35
- type: "item",
35
+ type: 'item',
36
36
  element: item
37
37
  });
38
38
  });
@@ -20,9 +20,9 @@ $parcel$export(module.exports, "TableCollection", () => $7f5a58334d8866a5$export
20
20
  * governing permissions and limitations under the License.
21
21
  */
22
22
 
23
- const $7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY = "row-header-column-" + Math.random().toString(36).slice(2);
24
- let $7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY_DRAG = "row-header-column-" + Math.random().toString(36).slice(2);
25
- while($7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY === $7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY_DRAG)$7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY_DRAG = "row-header-column-" + Math.random().toString(36).slice(2);
23
+ const $7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY = 'row-header-column-' + Math.random().toString(36).slice(2);
24
+ let $7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY_DRAG = 'row-header-column-' + Math.random().toString(36).slice(2);
25
+ while($7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY === $7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY_DRAG)$7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY_DRAG = 'row-header-column-' + Math.random().toString(36).slice(2);
26
26
  function $7f5a58334d8866a5$export$7c127db850d4e81e(keyMap, columnNodes) {
27
27
  if (columnNodes.length === 0) return [];
28
28
  let columns = [];
@@ -73,8 +73,8 @@ function $7f5a58334d8866a5$export$7c127db850d4e81e(keyMap, columnNodes) {
73
73
  let rowLength = row.reduce((p, c)=>p + c.colspan, 0);
74
74
  if (rowLength < colIndex) {
75
75
  let placeholder = {
76
- type: "placeholder",
77
- key: "placeholder-" + item.key,
76
+ type: 'placeholder',
77
+ key: 'placeholder-' + item.key,
78
78
  colspan: colIndex - rowLength,
79
79
  index: rowLength,
80
80
  value: null,
@@ -109,8 +109,8 @@ function $7f5a58334d8866a5$export$7c127db850d4e81e(keyMap, columnNodes) {
109
109
  let rowLength = row.reduce((p, c)=>p + c.colspan, 0);
110
110
  if (rowLength < columnNodes.length) {
111
111
  let placeholder = {
112
- type: "placeholder",
113
- key: "placeholder-" + row[row.length - 1].key,
112
+ type: 'placeholder',
113
+ key: 'placeholder-' + row[row.length - 1].key,
114
114
  colspan: columnNodes.length - rowLength,
115
115
  index: rowLength,
116
116
  value: null,
@@ -127,8 +127,8 @@ function $7f5a58334d8866a5$export$7c127db850d4e81e(keyMap, columnNodes) {
127
127
  }
128
128
  return headerRows.map((childNodes, index)=>{
129
129
  let row = {
130
- type: "headerrow",
131
- key: "headerrow-" + index,
130
+ type: 'headerrow',
131
+ key: 'headerrow-' + index,
132
132
  index: index,
133
133
  value: null,
134
134
  rendered: null,
@@ -177,7 +177,7 @@ class $7f5a58334d8866a5$export$596e1b2e2cf93690 extends (0, $bkA0E$reactstatelyg
177
177
  }
178
178
  getTextValue(key) {
179
179
  let row = this.getItem(key);
180
- if (!row) return "";
180
+ if (!row) return '';
181
181
  // If the row has a textValue, use that.
182
182
  if (row.textValue) return row.textValue;
183
183
  // Otherwise combine the text of each of the row header columns.
@@ -189,9 +189,9 @@ class $7f5a58334d8866a5$export$596e1b2e2cf93690 extends (0, $bkA0E$reactstatelyg
189
189
  if (rowHeaderColumnKeys.has(column.key) && cell.textValue) text.push(cell.textValue);
190
190
  if (text.length === rowHeaderColumnKeys.size) break;
191
191
  }
192
- return text.join(" ");
192
+ return text.join(' ');
193
193
  }
194
- return "";
194
+ return '';
195
195
  }
196
196
  constructor(nodes, prev, opts){
197
197
  let rowHeaderColumnKeys = new Set();
@@ -200,10 +200,10 @@ class $7f5a58334d8866a5$export$596e1b2e2cf93690 extends (0, $bkA0E$reactstatelyg
200
200
  // Add cell for selection checkboxes if needed.
201
201
  if (opts === null || opts === void 0 ? void 0 : opts.showSelectionCheckboxes) {
202
202
  let rowHeaderColumn = {
203
- type: "column",
203
+ type: 'column',
204
204
  key: $7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY,
205
205
  value: null,
206
- textValue: "",
206
+ textValue: '',
207
207
  level: 0,
208
208
  index: (opts === null || opts === void 0 ? void 0 : opts.showDragButtons) ? 1 : 0,
209
209
  hasChildNodes: false,
@@ -218,10 +218,10 @@ class $7f5a58334d8866a5$export$596e1b2e2cf93690 extends (0, $bkA0E$reactstatelyg
218
218
  // Add cell for drag buttons if needed.
219
219
  if (opts === null || opts === void 0 ? void 0 : opts.showDragButtons) {
220
220
  let rowHeaderColumn = {
221
- type: "column",
221
+ type: 'column',
222
222
  key: $7f5a58334d8866a5$var$ROW_HEADER_COLUMN_KEY_DRAG,
223
223
  value: null,
224
- textValue: "",
224
+ textValue: '',
225
225
  level: 0,
226
226
  index: 0,
227
227
  hasChildNodes: false,
@@ -237,17 +237,17 @@ class $7f5a58334d8866a5$export$596e1b2e2cf93690 extends (0, $bkA0E$reactstatelyg
237
237
  let columnKeyMap = new Map();
238
238
  let visit = (node)=>{
239
239
  switch(node.type){
240
- case "body":
240
+ case 'body':
241
241
  body = node;
242
242
  break;
243
- case "column":
243
+ case 'column':
244
244
  columnKeyMap.set(node.key, node);
245
245
  if (!node.hasChildNodes) {
246
246
  columns.push(node);
247
247
  if (node.props.isRowHeader) rowHeaderColumnKeys.add(node.key);
248
248
  }
249
249
  break;
250
- case "item":
250
+ case 'item':
251
251
  rows.push(node);
252
252
  return; // do not go into childNodes
253
253
  }