@react-spectrum/table 3.12.11-nightly.4709 → 3.12.11-nightly.4718

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.
@@ -36,7 +36,7 @@ class $2b402d473779c595$export$725d101278f5a47b extends (0, $jkzKr$reactstatelyl
36
36
  let width = node.layoutInfo.rect.width;
37
37
  if (this.isLoading) {
38
38
  // Add some margin around the loader to ensure that scrollbars don't flicker in and out.
39
- let rect = new (0, $jkzKr$reactstatelyvirtualizer.Rect)(40, Math.max(layoutInfo.rect.maxY, 40), (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);
39
+ let rect = new (0, $jkzKr$reactstatelyvirtualizer.Rect)(40, children.length === 0 ? 40 : layoutInfo.rect.maxY, (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);
40
40
  let loader = new (0, $jkzKr$reactstatelyvirtualizer.LayoutInfo)('loader', 'loader', rect);
41
41
  loader.parentKey = layoutInfo.key;
42
42
  loader.isSticky = children.length === 0;
@@ -68,6 +68,12 @@ class $2b402d473779c595$export$725d101278f5a47b extends (0, $jkzKr$reactstatelyl
68
68
  res.layoutInfo.rect.height += 1; // for bottom border
69
69
  return res;
70
70
  }
71
+ buildCell(node, x, y) {
72
+ var _node_column;
73
+ let res = super.buildCell(node, x, y);
74
+ if ((_node_column = node.column) === null || _node_column === void 0 ? void 0 : _node_column.props.hideHeader) res.layoutInfo.allowOverflow = true;
75
+ return res;
76
+ }
71
77
  getEstimatedRowHeight() {
72
78
  return super.getEstimatedRowHeight() + 1; // for bottom border
73
79
  }
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;;AAMM,MAAM,kDAA2B,CAAA,GAAA,qCAAU;IAGtC,kBAAgC;QACxC,IAAI,eAAe,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY;QAC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"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {DropTarget} from '@react-types/shared';\nimport {GridNode} from '@react-types/grid';\nimport {LayoutInfo, Rect} from '@react-stately/virtualizer';\nimport {LayoutNode, TableLayout} from '@react-stately/layout';\n\nexport class TableViewLayout<T> extends TableLayout<T> {\n private isLoading: boolean = false;\n\n protected buildCollection(): LayoutNode[] {\n let loadingState = this.collection.body.props.loadingState;\n this.isLoading = loadingState === 'loading' || loadingState === 'loadingMore';\n return super.buildCollection();\n }\n\n protected buildColumn(node: GridNode<T>, x: number, y: number): LayoutNode {\n let res = super.buildColumn(node, x, y);\n res.layoutInfo.allowOverflow = true; // for resizer nubbin\n return res;\n }\n\n protected buildBody(): LayoutNode {\n let node = super.buildBody(0);\n let {children, layoutInfo} = node;\n let width = node.layoutInfo.rect.width;\n\n if (this.isLoading) {\n // Add some margin around the loader to ensure that scrollbars don't flicker in and out.\n let rect = new Rect(40, Math.max(layoutInfo.rect.maxY, 40), (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);\n let loader = new LayoutInfo('loader', 'loader', rect);\n loader.parentKey = layoutInfo.key;\n loader.isSticky = children.length === 0;\n let node = {\n layoutInfo: loader,\n validRect: loader.rect\n };\n children.push(node);\n this.layoutNodes.set(loader.key, node);\n layoutInfo.rect.height = loader.rect.maxY;\n width = Math.max(width, rect.width);\n } else if (children.length === 0) {\n let rect = new Rect(40, 40, this.virtualizer.visibleRect.width - 80, this.virtualizer.visibleRect.height - 80);\n let empty = new LayoutInfo('empty', 'empty', rect);\n empty.parentKey = layoutInfo.key;\n empty.isSticky = true;\n let node = {\n layoutInfo: empty,\n validRect: empty.rect\n };\n children.push(node);\n layoutInfo.rect.height = empty.rect.maxY;\n width = Math.max(width, rect.width);\n }\n\n return node;\n }\n\n protected buildRow(node: GridNode<T>, x: number, y: number): LayoutNode {\n let res = super.buildRow(node, x, y);\n res.layoutInfo.rect.height += 1; // for bottom border\n return res;\n }\n\n protected getEstimatedRowHeight(): number {\n return super.getEstimatedRowHeight() + 1; // for bottom border\n }\n\n protected isStickyColumn(node: GridNode<T>) {\n return node.props?.isDragButtonCell || node.props?.isSelectionCell;\n }\n\n getDropTargetFromPoint(x: number, y: number, isValidDropTarget: (target: DropTarget) => boolean): DropTarget {\n // Offset for height of header row\n y -= this.virtualizer.layout.getVisibleLayoutInfos(new Rect(x, y, 1, 1)).find(info => info.type === 'headerrow')?.rect.height;\n return super.getDropTargetFromPoint(x, y, isValidDropTarget);\n }\n}\n"],"names":[],"version":3,"file":"TableViewLayout.main.js.map"}
1
+ {"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;;AAMM,MAAM,kDAA2B,CAAA,GAAA,qCAAU;IAGtC,kBAAgC;QACxC,IAAI,eAAe,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY;QAC1D,IAAI,CAAC,SAAS,GAAG,iBAAiB,aAAa,iBAAiB;QAChE,OAAO,KAAK,CAAC;IACf;IAEU,YAAY,IAAiB,EAAE,CAAS,EAAE,CAAS,EAAc;QACzE,IAAI,MAAM,KAAK,CAAC,YAAY,MAAM,GAAG;QACrC,IAAI,UAAU,CAAC,aAAa,GAAG,MAAM,qBAAqB;QAC1D,OAAO;IACT;IAEU,YAAwB;QAChC,IAAI,OAAO,KAAK,CAAC,UAAU;QAC3B,IAAI,YAAC,QAAQ,cAAE,UAAU,EAAC,GAAG;QAC7B,IAAI,QAAQ,KAAK,UAAU,CAAC,IAAI,CAAC,KAAK;QAEtC,IAAI,IAAI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EA,OAAO;IACT;IAEU,SAAS,IAAiB,EAAE,CAAS,EAAE,CAAS,EAAc;QACtE,IAAI,MAAM,KAAK,CAAC,SAAS,MAAM,GAAG;QAClC,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,IAAI,GAAG,oBAAoB;QACrD,OAAO;IACT;IAEU,UAAU,IAAiB,EAAE,CAAS,EAAE,CAAS,EAAc;YAEnE;QADJ,IAAI,MAAM,KAAK,CAAC,UAAU,MAAM,GAAG;QACnC,KAAI,eAAA,KAAK,MAAM,cAAX,mCAAA,aAAa,KAAK,CAAC,UAAU,EAC/B,IAAI,UAAU,CAAC,aAAa,GAAG;QAEjC,OAAO;IACT;IAEU,wBAAgC;QACxC,OAAO,KAAK,CAAC,0BAA0B,GAAG,oBAAoB;IAChE;IAEU,eAAe,IAAiB,EAAE;YACnC,aAAgC;QAAvC,OAAO,EAAA,cAAA,KAAK,KAAK,cAAV,kCAAA,YAAY,gBAAgB,OAAI,eAAA,KAAK,KAAK,cAAV,mCAAA,aAAY,eAAe;IACpE;IAEA,uBAAuB,CAAS,EAAE,CAAS,EAAE,iBAAkD,EAAc;YAEtG;QADL,kCAAkC;QAClC,MAAK,sDAAA,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAA,GAAA,mCAAG,EAAE,GAAG,GAAG,GAAG,IAAI,IAAI,CAAC,CAAA,OAAQ,KAAK,IAAI,KAAK,0BAA/F,0EAAA,oDAA6G,IAAI,CAAC,MAAM;QAC7H,OAAO,KAAK,CAAC,uBAAuB,GAAG,GAAG;IAC5C;;;aA5EQ,YAAqB;;AA6E/B","sources":["packages/@react-spectrum/table/src/TableViewLayout.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {DropTarget} from '@react-types/shared';\nimport {GridNode} from '@react-types/grid';\nimport {LayoutInfo, Rect} from '@react-stately/virtualizer';\nimport {LayoutNode, TableLayout} from '@react-stately/layout';\n\nexport class TableViewLayout<T> extends TableLayout<T> {\n private isLoading: boolean = false;\n\n protected buildCollection(): LayoutNode[] {\n let loadingState = this.collection.body.props.loadingState;\n this.isLoading = loadingState === 'loading' || loadingState === 'loadingMore';\n return super.buildCollection();\n }\n\n protected buildColumn(node: GridNode<T>, x: number, y: number): LayoutNode {\n let res = super.buildColumn(node, x, y);\n res.layoutInfo.allowOverflow = true; // for resizer nubbin\n return res;\n }\n\n protected buildBody(): LayoutNode {\n let node = super.buildBody(0);\n let {children, layoutInfo} = node;\n let width = node.layoutInfo.rect.width;\n\n if (this.isLoading) {\n // Add some margin around the loader to ensure that scrollbars don't flicker in and out.\n let rect = new Rect(40, children.length === 0 ? 40 : layoutInfo.rect.maxY, (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);\n let loader = new LayoutInfo('loader', 'loader', rect);\n loader.parentKey = layoutInfo.key;\n loader.isSticky = children.length === 0;\n let node = {\n layoutInfo: loader,\n validRect: loader.rect\n };\n children.push(node);\n this.layoutNodes.set(loader.key, node);\n layoutInfo.rect.height = loader.rect.maxY;\n width = Math.max(width, rect.width);\n } else if (children.length === 0) {\n let rect = new Rect(40, 40, this.virtualizer.visibleRect.width - 80, this.virtualizer.visibleRect.height - 80);\n let empty = new LayoutInfo('empty', 'empty', rect);\n empty.parentKey = layoutInfo.key;\n empty.isSticky = true;\n let node = {\n layoutInfo: empty,\n validRect: empty.rect\n };\n children.push(node);\n layoutInfo.rect.height = empty.rect.maxY;\n width = Math.max(width, rect.width);\n }\n\n return node;\n }\n\n protected buildRow(node: GridNode<T>, x: number, y: number): LayoutNode {\n let res = super.buildRow(node, x, y);\n res.layoutInfo.rect.height += 1; // for bottom border\n return res;\n }\n\n protected buildCell(node: GridNode<T>, x: number, y: number): LayoutNode {\n let res = super.buildCell(node, x, y);\n if (node.column?.props.hideHeader) {\n res.layoutInfo.allowOverflow = true;\n }\n return res;\n }\n\n protected getEstimatedRowHeight(): number {\n return super.getEstimatedRowHeight() + 1; // for bottom border\n }\n\n protected isStickyColumn(node: GridNode<T>) {\n return node.props?.isDragButtonCell || node.props?.isSelectionCell;\n }\n\n getDropTargetFromPoint(x: number, y: number, isValidDropTarget: (target: DropTarget) => boolean): DropTarget {\n // Offset for height of header row\n y -= this.virtualizer.layout.getVisibleLayoutInfos(new Rect(x, y, 1, 1)).find(info => info.type === 'headerrow')?.rect.height;\n return super.getDropTargetFromPoint(x, y, isValidDropTarget);\n }\n}\n"],"names":[],"version":3,"file":"TableViewLayout.main.js.map"}
@@ -30,7 +30,7 @@ class $5fb43af69b290859$export$725d101278f5a47b extends (0, $5yFQM$TableLayout)
30
30
  let width = node.layoutInfo.rect.width;
31
31
  if (this.isLoading) {
32
32
  // Add some margin around the loader to ensure that scrollbars don't flicker in and out.
33
- let rect = new (0, $5yFQM$Rect)(40, Math.max(layoutInfo.rect.maxY, 40), (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);
33
+ let rect = new (0, $5yFQM$Rect)(40, children.length === 0 ? 40 : layoutInfo.rect.maxY, (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);
34
34
  let loader = new (0, $5yFQM$LayoutInfo)('loader', 'loader', rect);
35
35
  loader.parentKey = layoutInfo.key;
36
36
  loader.isSticky = children.length === 0;
@@ -62,6 +62,12 @@ class $5fb43af69b290859$export$725d101278f5a47b extends (0, $5yFQM$TableLayout)
62
62
  res.layoutInfo.rect.height += 1; // for bottom border
63
63
  return res;
64
64
  }
65
+ buildCell(node, x, y) {
66
+ var _node_column;
67
+ let res = super.buildCell(node, x, y);
68
+ if ((_node_column = node.column) === null || _node_column === void 0 ? void 0 : _node_column.props.hideHeader) res.layoutInfo.allowOverflow = true;
69
+ return res;
70
+ }
65
71
  getEstimatedRowHeight() {
66
72
  return super.getEstimatedRowHeight() + 1; // for bottom border
67
73
  }
@@ -30,7 +30,7 @@ class $5fb43af69b290859$export$725d101278f5a47b extends (0, $5yFQM$TableLayout)
30
30
  let width = node.layoutInfo.rect.width;
31
31
  if (this.isLoading) {
32
32
  // Add some margin around the loader to ensure that scrollbars don't flicker in and out.
33
- let rect = new (0, $5yFQM$Rect)(40, Math.max(layoutInfo.rect.maxY, 40), (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);
33
+ let rect = new (0, $5yFQM$Rect)(40, children.length === 0 ? 40 : layoutInfo.rect.maxY, (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);
34
34
  let loader = new (0, $5yFQM$LayoutInfo)('loader', 'loader', rect);
35
35
  loader.parentKey = layoutInfo.key;
36
36
  loader.isSticky = children.length === 0;
@@ -62,6 +62,12 @@ class $5fb43af69b290859$export$725d101278f5a47b extends (0, $5yFQM$TableLayout)
62
62
  res.layoutInfo.rect.height += 1; // for bottom border
63
63
  return res;
64
64
  }
65
+ buildCell(node, x, y) {
66
+ var _node_column;
67
+ let res = super.buildCell(node, x, y);
68
+ if ((_node_column = node.column) === null || _node_column === void 0 ? void 0 : _node_column.props.hideHeader) res.layoutInfo.allowOverflow = true;
69
+ return res;
70
+ }
65
71
  getEstimatedRowHeight() {
66
72
  return super.getEstimatedRowHeight() + 1; // for bottom border
67
73
  }
@@ -1 +1 @@
1
- {"mappings":";;;AAAA;;;;;;;;;;CAUC;;AAMM,MAAM,kDAA2B,CAAA,GAAA,kBAAU;IAGtC,kBAAgC;QACxC,IAAI,eAAe,IAAI,CAAC,UAAU,CAAC,IAAI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spectrum/table/src/TableViewLayout.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {DropTarget} from '@react-types/shared';\nimport {GridNode} from '@react-types/grid';\nimport {LayoutInfo, Rect} from '@react-stately/virtualizer';\nimport {LayoutNode, TableLayout} from '@react-stately/layout';\n\nexport class TableViewLayout<T> extends TableLayout<T> {\n private isLoading: boolean = false;\n\n protected buildCollection(): LayoutNode[] {\n let loadingState = this.collection.body.props.loadingState;\n this.isLoading = loadingState === 'loading' || loadingState === 'loadingMore';\n return super.buildCollection();\n }\n\n protected buildColumn(node: GridNode<T>, x: number, y: number): LayoutNode {\n let res = super.buildColumn(node, x, y);\n res.layoutInfo.allowOverflow = true; // for resizer nubbin\n return res;\n }\n\n protected buildBody(): LayoutNode {\n let node = super.buildBody(0);\n let {children, layoutInfo} = node;\n let width = node.layoutInfo.rect.width;\n\n if (this.isLoading) {\n // Add some margin around the loader to ensure that scrollbars don't flicker in and out.\n let rect = new Rect(40, Math.max(layoutInfo.rect.maxY, 40), (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);\n let loader = new LayoutInfo('loader', 'loader', rect);\n loader.parentKey = layoutInfo.key;\n loader.isSticky = children.length === 0;\n let node = {\n layoutInfo: loader,\n validRect: loader.rect\n };\n children.push(node);\n this.layoutNodes.set(loader.key, node);\n layoutInfo.rect.height = loader.rect.maxY;\n width = Math.max(width, rect.width);\n } else if (children.length === 0) {\n let rect = new Rect(40, 40, this.virtualizer.visibleRect.width - 80, this.virtualizer.visibleRect.height - 80);\n let empty = new LayoutInfo('empty', 'empty', rect);\n empty.parentKey = layoutInfo.key;\n empty.isSticky = true;\n let node = {\n layoutInfo: empty,\n validRect: empty.rect\n };\n children.push(node);\n layoutInfo.rect.height = empty.rect.maxY;\n width = Math.max(width, rect.width);\n }\n\n return node;\n }\n\n protected buildRow(node: GridNode<T>, x: number, y: number): LayoutNode {\n let res = super.buildRow(node, x, y);\n res.layoutInfo.rect.height += 1; // for bottom border\n return res;\n }\n\n protected getEstimatedRowHeight(): number {\n return super.getEstimatedRowHeight() + 1; // for bottom border\n }\n\n protected isStickyColumn(node: GridNode<T>) {\n return node.props?.isDragButtonCell || node.props?.isSelectionCell;\n }\n\n getDropTargetFromPoint(x: number, y: number, isValidDropTarget: (target: DropTarget) => boolean): DropTarget {\n // Offset for height of header row\n y -= this.virtualizer.layout.getVisibleLayoutInfos(new Rect(x, y, 1, 1)).find(info => info.type === 'headerrow')?.rect.height;\n return super.getDropTargetFromPoint(x, y, isValidDropTarget);\n }\n}\n"],"names":[],"version":3,"file":"TableViewLayout.module.js.map"}
1
+ {"mappings":";;;AAAA;;;;;;;;;;CAUC;;AAMM,MAAM,kDAA2B,CAAA,GAAA,kBAAU;IAGtC,kBAAgC;QACxC,IAAI,eAAe,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY;QAC1D,IAAI,CAAC,SAAS,GAAG,iBAAiB,aAAa,iBAAiB;QAChE,OAAO,KAAK,CAAC;IACf;IAEU,YAAY,IAAiB,EAAE,CAAS,EAAE,CAAS,EAAc;QACzE,IAAI,MAAM,KAAK,CAAC,YAAY,MAAM,GAAG;QACrC,IAAI,UAAU,CAAC,aAAa,GAAG,MAAM,qBAAqB;QAC1D,OAAO;IACT;IAEU,YAAwB;QAChC,IAAI,OAAO,KAAK,CAAC,UAAU;QAC3B,IAAI,YAAC,QAAQ,cAAE,UAAU,EAAC,GAAG;QAC7B,IAAI,QAAQ,KAAK,UAAU,CAAC,IAAI,CAAC,KAAK;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,KAAK;QACpC;QAEA,OAAO;IACT;IAEU,SAAS,IAAiB,EAAE,CAAS,EAAE,CAAS,EAAc;QACtE,IAAI,MAAM,KAAK,CAAC,SAAS,MAAM,GAAG;QAClC,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,IAAI,GAAG,oBAAoB;QACrD,OAAO;IACT;IAEU,UAAU,IAAiB,EAAE,CAAS,EAAE,CAAS,EAAc;YAEnE;QADJ,IAAI,MAAM,KAAK,CAAC,UAAU,MAAM,GAAG;QACnC,KAAI,eAAA,KAAK,MAAM,cAAX,mCAAA,aAAa,KAAK,CAAC,UAAU,EAC/B,IAAI,UAAU,CAAC,aAAa,GAAG;QAEjC,OAAO;IACT;IAEU,wBAAgC;QACxC,OAAO,KAAK,CAAC,0BAA0B,GAAG,oBAAoB;IAChE;IAEU,eAAe,IAAiB,EAAE;YACnC,aAAgC;QAAvC,OAAO,EAAA,cAAA,KAAK,KAAK,cAAV,kCAAA,YAAY,gBAAgB,OAAI,eAAA,KAAK,KAAK,cAAV,mCAAA,aAAY,eAAe;IACpE;IAEA,uBAAuB,CAAS,EAAE,CAAS,EAAE,iBAAkD,EAAc;YAEtG;QADL,kCAAkC;QAClC,MAAK,sDAAA,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAA,GAAA,WAAG,EAAE,GAAG,GAAG,GAAG,IAAI,IAAI,CAAC,CAAA,OAAQ,KAAK,IAAI,KAAK,0BAA/F,0EAAA,oDAA6G,IAAI,CAAC,MAAM;QAC7H,OAAO,KAAK,CAAC,uBAAuB,GAAG,GAAG;IAC5C;;;aA5EQ,YAAqB;;AA6E/B","sources":["packages/@react-spectrum/table/src/TableViewLayout.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {DropTarget} from '@react-types/shared';\nimport {GridNode} from '@react-types/grid';\nimport {LayoutInfo, Rect} from '@react-stately/virtualizer';\nimport {LayoutNode, TableLayout} from '@react-stately/layout';\n\nexport class TableViewLayout<T> extends TableLayout<T> {\n private isLoading: boolean = false;\n\n protected buildCollection(): LayoutNode[] {\n let loadingState = this.collection.body.props.loadingState;\n this.isLoading = loadingState === 'loading' || loadingState === 'loadingMore';\n return super.buildCollection();\n }\n\n protected buildColumn(node: GridNode<T>, x: number, y: number): LayoutNode {\n let res = super.buildColumn(node, x, y);\n res.layoutInfo.allowOverflow = true; // for resizer nubbin\n return res;\n }\n\n protected buildBody(): LayoutNode {\n let node = super.buildBody(0);\n let {children, layoutInfo} = node;\n let width = node.layoutInfo.rect.width;\n\n if (this.isLoading) {\n // Add some margin around the loader to ensure that scrollbars don't flicker in and out.\n let rect = new Rect(40, children.length === 0 ? 40 : layoutInfo.rect.maxY, (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);\n let loader = new LayoutInfo('loader', 'loader', rect);\n loader.parentKey = layoutInfo.key;\n loader.isSticky = children.length === 0;\n let node = {\n layoutInfo: loader,\n validRect: loader.rect\n };\n children.push(node);\n this.layoutNodes.set(loader.key, node);\n layoutInfo.rect.height = loader.rect.maxY;\n width = Math.max(width, rect.width);\n } else if (children.length === 0) {\n let rect = new Rect(40, 40, this.virtualizer.visibleRect.width - 80, this.virtualizer.visibleRect.height - 80);\n let empty = new LayoutInfo('empty', 'empty', rect);\n empty.parentKey = layoutInfo.key;\n empty.isSticky = true;\n let node = {\n layoutInfo: empty,\n validRect: empty.rect\n };\n children.push(node);\n layoutInfo.rect.height = empty.rect.maxY;\n width = Math.max(width, rect.width);\n }\n\n return node;\n }\n\n protected buildRow(node: GridNode<T>, x: number, y: number): LayoutNode {\n let res = super.buildRow(node, x, y);\n res.layoutInfo.rect.height += 1; // for bottom border\n return res;\n }\n\n protected buildCell(node: GridNode<T>, x: number, y: number): LayoutNode {\n let res = super.buildCell(node, x, y);\n if (node.column?.props.hideHeader) {\n res.layoutInfo.allowOverflow = true;\n }\n return res;\n }\n\n protected getEstimatedRowHeight(): number {\n return super.getEstimatedRowHeight() + 1; // for bottom border\n }\n\n protected isStickyColumn(node: GridNode<T>) {\n return node.props?.isDragButtonCell || node.props?.isSelectionCell;\n }\n\n getDropTargetFromPoint(x: number, y: number, isValidDropTarget: (target: DropTarget) => boolean): DropTarget {\n // Offset for height of header row\n y -= this.virtualizer.layout.getVisibleLayoutInfos(new Rect(x, y, 1, 1)).find(info => info.type === 'headerrow')?.rect.height;\n return super.getDropTargetFromPoint(x, y, isValidDropTarget);\n }\n}\n"],"names":[],"version":3,"file":"TableViewLayout.module.js.map"}
@@ -3,7 +3,7 @@ module.exports = {
3
3
  "columnResizer": `\u{6B04}\u{5927}\u{5C0F}\u{8ABF}\u{6574}\u{5668}`,
4
4
  "drag": `\u{62D6}\u{66F3}`,
5
5
  "expand": `\u{5C55}\u{958B}`,
6
- "loading": `\u{6B63}\u{5728}\u{8F09}\u{5165}`,
6
+ "loading": `\u{8F09}\u{5165}\u{4E2D}\u{2026}`,
7
7
  "loadingMore": `\u{6B63}\u{5728}\u{8F09}\u{5165}\u{66F4}\u{591A}\u{2026}`,
8
8
  "resizeColumn": `\u{8ABF}\u{6574}\u{6B04}\u{5927}\u{5C0F}`,
9
9
  "sortAscending": `\u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,gBAAE,CAAC;IAClC,iBAAiB,CAAC,gDAAM,CAAC;IACzB,QAAQ,CAAC,gBAAE,CAAC;IACZ,UAAU,CAAC,gBAAE,CAAC;IACd,WAAW,CAAC,gCAAI,CAAC;IACjB,eAAe,CAAC,wDAAO,CAAC;IACxB,gBAAgB,CAAC,wCAAK,CAAC;IACvB,iBAAiB,CAAC,gCAAI,CAAC;IACvB,kBAAkB,CAAC,gCAAI,CAAC;AAC1B","sources":["packages/@react-spectrum/table/intl/zh-TW.json"],"sourcesContent":["{\n \"collapse\": \"收合\",\n \"columnResizer\": \"欄大小調整器\",\n \"drag\": \"拖曳\",\n \"expand\": \"展開\",\n \"loading\": \"正在載入\",\n \"loadingMore\": \"正在載入更多…\",\n \"resizeColumn\": \"調整欄大小\",\n \"sortAscending\": \"升序排序\",\n \"sortDescending\": \"降序排序\"\n}\n"],"names":[],"version":3,"file":"zh-TW.main.js.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,gBAAE,CAAC;IAClC,iBAAiB,CAAC,gDAAM,CAAC;IACzB,QAAQ,CAAC,gBAAE,CAAC;IACZ,UAAU,CAAC,gBAAE,CAAC;IACd,WAAW,CAAC,gCAAI,CAAC;IACjB,eAAe,CAAC,wDAAO,CAAC;IACxB,gBAAgB,CAAC,wCAAK,CAAC;IACvB,iBAAiB,CAAC,gCAAI,CAAC;IACvB,kBAAkB,CAAC,gCAAI,CAAC;AAC1B","sources":["packages/@react-spectrum/table/intl/zh-TW.json"],"sourcesContent":["{\n \"collapse\": \"收合\",\n \"columnResizer\": \"欄大小調整器\",\n \"drag\": \"拖曳\",\n \"expand\": \"展開\",\n \"loading\": \"載入中…\",\n \"loadingMore\": \"正在載入更多…\",\n \"resizeColumn\": \"調整欄大小\",\n \"sortAscending\": \"升序排序\",\n \"sortDescending\": \"降序排序\"\n}\n"],"names":[],"version":3,"file":"zh-TW.main.js.map"}
package/dist/zh-TW.mjs CHANGED
@@ -4,7 +4,7 @@ $e57af0887d00746b$exports = {
4
4
  "columnResizer": `\u{6B04}\u{5927}\u{5C0F}\u{8ABF}\u{6574}\u{5668}`,
5
5
  "drag": `\u{62D6}\u{66F3}`,
6
6
  "expand": `\u{5C55}\u{958B}`,
7
- "loading": `\u{6B63}\u{5728}\u{8F09}\u{5165}`,
7
+ "loading": `\u{8F09}\u{5165}\u{4E2D}\u{2026}`,
8
8
  "loadingMore": `\u{6B63}\u{5728}\u{8F09}\u{5165}\u{66F4}\u{591A}\u{2026}`,
9
9
  "resizeColumn": `\u{8ABF}\u{6574}\u{6B04}\u{5927}\u{5C0F}`,
10
10
  "sortAscending": `\u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
@@ -4,7 +4,7 @@ $e57af0887d00746b$exports = {
4
4
  "columnResizer": `\u{6B04}\u{5927}\u{5C0F}\u{8ABF}\u{6574}\u{5668}`,
5
5
  "drag": `\u{62D6}\u{66F3}`,
6
6
  "expand": `\u{5C55}\u{958B}`,
7
- "loading": `\u{6B63}\u{5728}\u{8F09}\u{5165}`,
7
+ "loading": `\u{8F09}\u{5165}\u{4E2D}\u{2026}`,
8
8
  "loadingMore": `\u{6B63}\u{5728}\u{8F09}\u{5165}\u{66F4}\u{591A}\u{2026}`,
9
9
  "resizeColumn": `\u{8ABF}\u{6574}\u{6B04}\u{5927}\u{5C0F}`,
10
10
  "sortAscending": `\u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,gBAAE,CAAC;IAClC,iBAAiB,CAAC,gDAAM,CAAC;IACzB,QAAQ,CAAC,gBAAE,CAAC;IACZ,UAAU,CAAC,gBAAE,CAAC;IACd,WAAW,CAAC,gCAAI,CAAC;IACjB,eAAe,CAAC,wDAAO,CAAC;IACxB,gBAAgB,CAAC,wCAAK,CAAC;IACvB,iBAAiB,CAAC,gCAAI,CAAC;IACvB,kBAAkB,CAAC,gCAAI,CAAC;AAC1B","sources":["packages/@react-spectrum/table/intl/zh-TW.json"],"sourcesContent":["{\n \"collapse\": \"收合\",\n \"columnResizer\": \"欄大小調整器\",\n \"drag\": \"拖曳\",\n \"expand\": \"展開\",\n \"loading\": \"正在載入\",\n \"loadingMore\": \"正在載入更多…\",\n \"resizeColumn\": \"調整欄大小\",\n \"sortAscending\": \"升序排序\",\n \"sortDescending\": \"降序排序\"\n}\n"],"names":[],"version":3,"file":"zh-TW.module.js.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,gBAAE,CAAC;IAClC,iBAAiB,CAAC,gDAAM,CAAC;IACzB,QAAQ,CAAC,gBAAE,CAAC;IACZ,UAAU,CAAC,gBAAE,CAAC;IACd,WAAW,CAAC,gCAAI,CAAC;IACjB,eAAe,CAAC,wDAAO,CAAC;IACxB,gBAAgB,CAAC,wCAAK,CAAC;IACvB,iBAAiB,CAAC,gCAAI,CAAC;IACvB,kBAAkB,CAAC,gCAAI,CAAC;AAC1B","sources":["packages/@react-spectrum/table/intl/zh-TW.json"],"sourcesContent":["{\n \"collapse\": \"收合\",\n \"columnResizer\": \"欄大小調整器\",\n \"drag\": \"拖曳\",\n \"expand\": \"展開\",\n \"loading\": \"載入中…\",\n \"loadingMore\": \"正在載入更多…\",\n \"resizeColumn\": \"調整欄大小\",\n \"sortAscending\": \"升序排序\",\n \"sortDescending\": \"降序排序\"\n}\n"],"names":[],"version":3,"file":"zh-TW.module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/table",
3
- "version": "3.12.11-nightly.4709+4fc70174a",
3
+ "version": "3.12.11-nightly.4718+4b27a0c02",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,37 +36,37 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/button": "3.0.0-nightly.2997+4fc70174a",
40
- "@react-aria/focus": "3.0.0-nightly.2997+4fc70174a",
41
- "@react-aria/i18n": "3.0.0-nightly.2997+4fc70174a",
42
- "@react-aria/interactions": "3.0.0-nightly.2997+4fc70174a",
43
- "@react-aria/overlays": "3.0.0-nightly.2997+4fc70174a",
44
- "@react-aria/selection": "3.0.0-nightly.2997+4fc70174a",
45
- "@react-aria/table": "3.14.2-nightly.4709+4fc70174a",
46
- "@react-aria/utils": "3.0.0-nightly.2997+4fc70174a",
47
- "@react-aria/virtualizer": "3.10.2-nightly.4709+4fc70174a",
48
- "@react-aria/visually-hidden": "3.0.0-nightly.2997+4fc70174a",
49
- "@react-spectrum/checkbox": "3.0.0-nightly.2997+4fc70174a",
50
- "@react-spectrum/dnd": "3.3.11-nightly.4709+4fc70174a",
51
- "@react-spectrum/layout": "3.6.6-nightly.4709+4fc70174a",
52
- "@react-spectrum/menu": "3.19.2-nightly.4709+4fc70174a",
53
- "@react-spectrum/progress": "3.0.0-nightly.2997+4fc70174a",
54
- "@react-spectrum/tooltip": "3.0.0-nightly.2997+4fc70174a",
55
- "@react-spectrum/utils": "3.0.0-nightly.2997+4fc70174a",
56
- "@react-stately/flags": "3.0.4-nightly.4709+4fc70174a",
57
- "@react-stately/layout": "3.13.10-nightly.4709+4fc70174a",
58
- "@react-stately/table": "3.11.9-nightly.4709+4fc70174a",
59
- "@react-stately/virtualizer": "3.7.2-nightly.4709+4fc70174a",
60
- "@react-types/grid": "3.2.7-nightly.4709+4fc70174a",
61
- "@react-types/shared": "3.0.0-nightly.2997+4fc70174a",
62
- "@react-types/table": "3.9.6-nightly.4709+4fc70174a",
63
- "@spectrum-icons/ui": "3.0.0-nightly.2997+4fc70174a",
39
+ "@react-aria/button": "3.0.0-nightly.3006+4b27a0c02",
40
+ "@react-aria/focus": "3.0.0-nightly.3006+4b27a0c02",
41
+ "@react-aria/i18n": "3.0.0-nightly.3006+4b27a0c02",
42
+ "@react-aria/interactions": "3.0.0-nightly.3006+4b27a0c02",
43
+ "@react-aria/overlays": "3.0.0-nightly.3006+4b27a0c02",
44
+ "@react-aria/selection": "3.0.0-nightly.3006+4b27a0c02",
45
+ "@react-aria/table": "3.14.2-nightly.4718+4b27a0c02",
46
+ "@react-aria/utils": "3.0.0-nightly.3006+4b27a0c02",
47
+ "@react-aria/virtualizer": "3.10.2-nightly.4718+4b27a0c02",
48
+ "@react-aria/visually-hidden": "3.0.0-nightly.3006+4b27a0c02",
49
+ "@react-spectrum/checkbox": "3.0.0-nightly.3006+4b27a0c02",
50
+ "@react-spectrum/dnd": "3.3.11-nightly.4718+4b27a0c02",
51
+ "@react-spectrum/layout": "3.6.6-nightly.4718+4b27a0c02",
52
+ "@react-spectrum/menu": "3.19.2-nightly.4718+4b27a0c02",
53
+ "@react-spectrum/progress": "3.0.0-nightly.3006+4b27a0c02",
54
+ "@react-spectrum/tooltip": "3.0.0-nightly.3006+4b27a0c02",
55
+ "@react-spectrum/utils": "3.0.0-nightly.3006+4b27a0c02",
56
+ "@react-stately/flags": "3.0.4-nightly.4718+4b27a0c02",
57
+ "@react-stately/layout": "3.13.10-nightly.4718+4b27a0c02",
58
+ "@react-stately/table": "3.11.9-nightly.4718+4b27a0c02",
59
+ "@react-stately/virtualizer": "3.7.2-nightly.4718+4b27a0c02",
60
+ "@react-types/grid": "3.2.7-nightly.4718+4b27a0c02",
61
+ "@react-types/shared": "3.0.0-nightly.3006+4b27a0c02",
62
+ "@react-types/table": "3.9.6-nightly.4718+4b27a0c02",
63
+ "@spectrum-icons/ui": "3.0.0-nightly.3006+4b27a0c02",
64
64
  "@swc/helpers": "^0.5.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@adobe/spectrum-css-temp": "3.0.0-nightly.2997+4fc70174a",
68
- "@react-aria/dnd": "3.6.2-nightly.4709+4fc70174a",
69
- "@react-stately/dnd": "3.3.2-nightly.4709+4fc70174a"
67
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.3006+4b27a0c02",
68
+ "@react-aria/dnd": "3.6.2-nightly.4718+4b27a0c02",
69
+ "@react-stately/dnd": "3.3.2-nightly.4718+4b27a0c02"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@react-spectrum/provider": "^3.0.0",
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "4fc70174ac35a5ebf06379f5cafaf943519a1eac"
79
+ "gitHead": "4b27a0c027f4fbab9ed1070c748966c902b13429"
80
80
  }
@@ -36,7 +36,7 @@ export class TableViewLayout<T> extends TableLayout<T> {
36
36
 
37
37
  if (this.isLoading) {
38
38
  // Add some margin around the loader to ensure that scrollbars don't flicker in and out.
39
- let rect = new Rect(40, Math.max(layoutInfo.rect.maxY, 40), (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);
39
+ let rect = new Rect(40, children.length === 0 ? 40 : layoutInfo.rect.maxY, (width || this.virtualizer.visibleRect.width) - 80, children.length === 0 ? this.virtualizer.visibleRect.height - 80 : 60);
40
40
  let loader = new LayoutInfo('loader', 'loader', rect);
41
41
  loader.parentKey = layoutInfo.key;
42
42
  loader.isSticky = children.length === 0;
@@ -71,6 +71,14 @@ export class TableViewLayout<T> extends TableLayout<T> {
71
71
  return res;
72
72
  }
73
73
 
74
+ protected buildCell(node: GridNode<T>, x: number, y: number): LayoutNode {
75
+ let res = super.buildCell(node, x, y);
76
+ if (node.column?.props.hideHeader) {
77
+ res.layoutInfo.allowOverflow = true;
78
+ }
79
+ return res;
80
+ }
81
+
74
82
  protected getEstimatedRowHeight(): number {
75
83
  return super.getEstimatedRowHeight() + 1; // for bottom border
76
84
  }