@bigcapitalhq/blueprintjs-react-table 0.3.0 → 0.3.1
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/README.md +86 -0
- package/dist/blueprintjs-react-table.cjs +2 -2
- package/dist/blueprintjs-react-table.cjs.map +1 -1
- package/dist/blueprintjs-react-table.js +1565 -1417
- package/dist/blueprintjs-react-table.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/BP_Table.d.ts +13 -3
- package/dist/types/components/body/TableBody.d.ts +4 -3
- package/dist/types/components/body/TableBodyCell.d.ts +5 -3
- package/dist/types/components/body/TableRowExpander.d.ts +8 -0
- package/dist/types/components/body/TableRowHeaderCell.d.ts +2 -1
- package/dist/types/components/body/TableRowSelectionCell.d.ts +2 -1
- package/dist/types/components/common/classes.d.ts +3 -0
- package/dist/types/components/common/pinning.d.ts +1 -1
- package/dist/types/components/container/TableContainer.d.ts +5 -3
- package/dist/types/components/pagination/pagination-row-count-context.d.ts +2 -0
- package/dist/types/components/quadrant/TableQuadrant.d.ts +4 -3
- package/dist/types/components/quadrant/TableQuadrantStack.d.ts +4 -3
- package/dist/types/hooks/use-bp-table-instance.d.ts +3 -1
- package/dist/types/hooks/use-row-resizing.d.ts +5 -1
- package/dist/types/hooks/use-uncontrolled.d.ts +2 -1
- package/dist/types/types.d.ts +22 -2
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.bp6-table-cell{display:inline-block;font-size:12px;height:20px;line-height:20px;padding:0 8px;transition:color .3s}.bp6-dark .bp6-table-cell:not([class*=bp6-intent-]):not(.bp6-loading){color:#f6f7f9}.bp6-table-cell.bp6-intent-primary{background-color:#2d72d21a;color:#2d72d2}.bp6-dark .bp6-table-cell.bp6-intent-primary{background:#2d72d21a;color:#4c90f0}.bp6-table-cell.bp6-intent-success{background-color:#2385511a;color:#238551}.bp6-dark .bp6-table-cell.bp6-intent-success{background:#2385511a;color:#32a467}.bp6-table-cell.bp6-intent-warning{background-color:#c876191a;color:#c87619}.bp6-dark .bp6-table-cell.bp6-intent-warning{background:#c876191a;color:#ec9a3c}.bp6-table-cell.bp6-intent-danger{background-color:#cd42461a;color:#cd4246}.bp6-dark .bp6-table-cell.bp6-intent-danger{background:#cd42461a;color:#e76a6e}.bp6-table-editing-enabled .bp6-table-cell{cursor:text}.bp6-table-selection-enabled .bp6-table-cell{cursor:cell}.bp6-table-cell.bp6-table-truncated-cell{overflow:hidden}.bp6-table-cell.bp6-large,.bp6-large .bp6-table-cell{font-size:14px;height:30px;line-height:30px}.bp6-table-cell.bp6-loading{display:flex;flex-direction:column;justify-content:center;color:transparent}.bp6-table-cell:focus{outline:none}.bp6-table-cell-interactive{z-index:21}.bp6-table-striped .bp6-table-cell-ledger-even{background-color:#fff}.bp6-table-striped .bp6-table-cell-ledger-odd{background-color:#fafbfc}.bp6-dark .bp6-table-striped .bp6-table-cell-ledger-even{background-color:#2f343c}.bp6-dark .bp6-table-striped .bp6-table-cell-ledger-odd{background-color:#343941}.bp6-table-cell.bp6-table-row-selected{background-color:#2d72d21a}.bp6-dark .bp6-table-cell.bp6-table-row-selected{background-color:#4c90f01a}.bp6-table-editable-name input{height:20px}.bp6-table-editable-text{top:0;right:0;bottom:0;left:0;padding:0 8px;position:absolute}.bp6-table-cell-text-placeholder{color:#5f6b7c}.bp6-dark .bp6-table-cell-text-placeholder{color:#abb3bf}.bp6-table-null{color:#5f6b7c99}.bp6-table-truncated-value{left:8px;max-height:100%;overflow:hidden;position:absolute;right:35px;text-overflow:ellipsis;top:0}.bp6-table-truncated-format-text{left:8px;max-height:100%;overflow:hidden;position:absolute;right:10px;text-overflow:ellipsis;top:0}.bp6-table-truncated-popover-target{border-radius:4px;bottom:0;cursor:pointer;opacity:.3;padding:0 4px;position:absolute;right:4px;text-align:center;top:0}.bp6-table-truncated-popover-target .bp6-icon-standard{line-height:20px}.bp6-table-truncated-popover-target.bp6-popover-open{opacity:1}.bp6-table-truncated-popover-target.bp6-popover-open .bp6-icon-standard{color:#2d72d2}.bp6-table-truncated-popover-target:hover{opacity:1}.bp6-table-truncated-popover{font-family:monospace;max-height:300px;max-width:600px;min-width:200px;overflow:auto;padding:8px}.bp6-table-popover-whitespace-pre{white-space:pre}.bp6-table-popover-whitespace-normal{white-space:normal}.bp6-table-container{box-shadow:0 0 0 1px #11141826}.bp6-table-menu,.bp6-table-row-selection-header-cell{box-shadow:0 1px #11141826,1px 0 #11141826}.bp6-table-header{box-shadow:0 1px #11141826}.bp6-table-cell{box-shadow:inset 0 -1px #11141826,inset -1px 0 #11141826}.bp6-table-horizontal-cell-divider{box-shadow:inset 0 1px #11141826;height:1px}.bp6-table-column-headers .bp6-table-header{box-shadow:0 1px #11141826,inset -1px 0 #11141826}.bp6-table-column-headers .bp6-table-header:before{bottom:0;right:1px}.bp6-table-row-headers .bp6-table-header{box-shadow:inset 0 -1px #11141826,1px 0 #11141826}.bp6-table-row-headers .bp6-table-header:before{bottom:1px;right:0}.bp6-table-body .bp6-table-last-in-row{box-shadow:inset 0 -1px #11141826,1px 0 #11141826}.bp6-table-body .bp6-table-last-in-column{box-shadow:0 1px #11141826,inset -1px 0 #11141826}.bp6-table-body .bp6-table-last-in-row.bp6-table-last-in-column{box-shadow:0 1px #11141826,1px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-row{box-shadow:inset 0 -1px #11141826,inset -3px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141826,inset -1px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-column.bp6-table-last-in-row{box-shadow:inset 0 -3px #11141826,inset -3px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-row{box-shadow:0 1px #11141826,inset -3px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-row:before{bottom:0;right:3px}.bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141826,1px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-column:before{bottom:3px;right:0}.bp6-table-quadrant-left .bp6-table-cell.bp6-table-last-in-row{box-shadow:inset 0 -1px #11141826,inset -3px 0 #11141826}.bp6-table-quadrant-top .bp6-table-cell.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141826,inset -1px 0 #11141826}.bp6-dark .bp6-table-container{box-shadow:0 0 0 1px #11141866}.bp6-dark .bp6-table-menu,.bp6-dark .bp6-table-row-selection-header-cell{box-shadow:0 1px #11141866,1px 0 #11141866}.bp6-dark .bp6-table-header{box-shadow:0 1px #11141866}.bp6-dark .bp6-table-cell{box-shadow:inset 0 -1px #11141866,inset -1px 0 #11141866}.bp6-dark .bp6-table-horizontal-cell-divider{box-shadow:inset 0 1px #11141866;height:1px}.bp6-dark .bp6-table-column-headers .bp6-table-header{box-shadow:0 1px #11141866,inset -1px 0 #11141866}.bp6-dark .bp6-table-column-headers .bp6-table-header:before{bottom:0;right:1px}.bp6-dark .bp6-table-row-headers .bp6-table-header{box-shadow:inset 0 -1px #11141866,1px 0 #11141866}.bp6-dark .bp6-table-row-headers .bp6-table-header:before{bottom:1px;right:0}.bp6-dark .bp6-table-body .bp6-table-last-in-row{box-shadow:inset 0 -1px #11141866,1px 0 #11141866}.bp6-dark .bp6-table-body .bp6-table-last-in-column{box-shadow:0 1px #11141866,inset -1px 0 #11141866}.bp6-dark .bp6-table-body .bp6-table-last-in-row.bp6-table-last-in-column{box-shadow:0 1px #11141866,1px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-row{box-shadow:inset 0 -1px #11141866,inset -3px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141866,inset -1px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-column.bp6-table-last-in-row{box-shadow:inset 0 -3px #11141866,inset -3px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-row{box-shadow:0 1px #11141866,inset -3px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-row:before{bottom:0;right:3px}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141866,1px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-column:before{bottom:3px;right:0}.bp6-dark .bp6-table-quadrant-left .bp6-table-cell.bp6-table-last-in-row{box-shadow:inset 0 -1px #11141866,inset -3px 0 #11141866}.bp6-dark .bp6-table-quadrant-top .bp6-table-cell.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141866,inset -1px 0 #11141866}@keyframes skeleton-glow{0%{background:#d3d8de33;border-color:#d3d8de33}to{background:#5f6b7c33;border-color:#5f6b7c33}}.bp6-skeleton{animation:1s linear infinite alternate skeleton-glow;background:#d3d8de33;background-clip:padding-box!important;border-color:#d3d8de33!important;border-radius:2px;box-shadow:none!important;color:transparent!important;cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none}.bp6-skeleton:before,.bp6-skeleton:after,.bp6-skeleton *{visibility:hidden!important}@keyframes skeleton-fade-in{0%{opacity:0}to{opacity:1}}.bp6-table-header{align-items:flex-start;flex:1 1 auto;justify-content:space-between;position:relative;text-overflow:ellipsis;-webkit-user-select:none;user-select:none}.bp6-table-header:before{content:"";display:block;left:0;position:absolute;top:0}.bp6-table-header .bp6-table-row-name,.bp6-table-header .bp6-table-column-name,.bp6-table-header .bp6-table-header-content{position:relative;width:100%}.bp6-table-selection-enabled .bp6-table-header:hover:before,.bp6-table-header.bp6-table-header-active:before{background-color:#e5e8eb}.bp6-dark .bp6-table-selection-enabled .bp6-table-header:hover:before,.bp6-dark .bp6-table-header.bp6-table-header-active:before{background-color:#404854}.bp6-table-header.bp6-table-header-selected:before{background-image:linear-gradient(90deg,#2d72d21a,#2d72d21a)}.bp6-table-header.bp6-table-row-selected:before{background-color:#2d72d21a}.bp6-table-th-menu-container{flex-shrink:0;opacity:0;position:absolute;right:1px;text-align:right}.bp6-table-header:hover .bp6-table-th-menu-container,.bp6-table-header-active .bp6-table-th-menu-container,.bp6-table-th-menu-container.bp6-table-th-menu-open{opacity:1}.bp6-table-interaction-bar .bp6-table-th-menu-container{line-height:20px}.bp6-table-th-menu-container-background{height:30px;pointer-events:none;position:absolute;right:0;top:0;width:50px}.bp6-table-interaction-bar .bp6-table-th-menu-container-background{height:20px}.bp6-table-th-menu-open .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#f6f7f900,#f6f7f9 50%)}.bp6-dark .bp6-table-th-menu-open .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#383e4700,#383e47 50%)}.bp6-table-header:hover .bp6-table-th-menu-container-background,.bp6-table-header-active .bp6-table-th-menu-container-background,.bp6-table-th-menu-open .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#f6f7f900,#f6f7f9 50%)}.bp6-dark .bp6-table-header:hover .bp6-table-th-menu-container-background,.bp6-dark .bp6-table-header-active .bp6-table-th-menu-container-background,.bp6-dark .bp6-table-th-menu-open .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#383e4700,#383e47 50%)}.bp6-table-selection-enabled .bp6-table-header:hover .bp6-table-th-menu-container-background,.bp6-table-selection-enabled .bp6-table-header-active .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#e5e8eb00,#e5e8eb 50%)}.bp6-dark .bp6-table-selection-enabled .bp6-table-header:hover .bp6-table-th-menu-container-background,.bp6-dark .bp6-table-selection-enabled .bp6-table-header-active .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#40485400,#404854 50%)}.bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#e2eaf500,#e2eaf5 50%)}.bp6-dark .bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#37435500,#374355 50%)}.bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected:hover .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#d3dce800,#d3dce8 50%)}.bp6-dark .bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected:hover .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#3e4c6100,#3e4c61 50%)}.bp6-table-th-menu{cursor:pointer;height:30px;position:relative;width:30px}.bp6-table-interaction-bar .bp6-table-th-menu{height:20px;right:1px;text-align:center;width:20px}.bp6-table-interaction-bar .bp6-table-th-menu .bp6-icon{margin:2px 2px 2px 3px;vertical-align:top}.bp6-table-th-menu .bp6-icon{background-color:#f6f7f9;border-radius:4px;box-shadow:inset 0 0 0 1px #11141833;color:#5f6b7c;margin-right:7px;margin-top:7px}.bp6-table-selection-enabled .bp6-table-th-menu .bp6-icon{background-color:#e5e8eb}.bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected .bp6-table-th-menu .bp6-icon{background-color:linear-gradient(90deg,rgba(88.5882352941%,91.6470588235%,96.1176470588%,0) 0%,rgb(88.5882352941%,91.6470588235%,96.1176470588%) 50%)}.bp6-dark .bp6-table-th-menu .bp6-icon{background-color:#383e47;box-shadow:inset 0 0 0 1px #fff3;color:#abb3bf}.bp6-dark .bp6-table-selection-enabled .bp6-table-th-menu .bp6-icon{background-color:#404854}.bp6-dark .bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected .bp6-table-th-menu .bp6-icon{background-color:linear-gradient(90deg,rgba(21.5294117647%,26.3529411765%,33.2941176471%,0) 0%,rgb(21.5294117647%,26.3529411765%,33.2941176471%) 50%)}.bp6-table-th-menu:hover .bp6-icon{box-shadow:inset 0 0 0 1px #11141866;color:#1c2127}.bp6-dark .bp6-table-th-menu:hover .bp6-icon{box-shadow:inset 0 0 0 1px #fff6;color:#f6f7f9}.bp6-table-th-menu.bp6-popover-open .bp6-icon,.bp6-dark .bp6-table-th-menu.bp6-popover-open .bp6-icon{background-color:#2d72d2;box-shadow:none;color:#fff}.bp6-table-thead{display:block;white-space:nowrap}.bp6-table-column-header-tr{display:flex}.bp6-table-column-header-tr .bp6-table-header{flex:0 0}.bp6-table-column-headers .bp6-table-interaction-bar{height:20px;position:relative}.bp6-table-column-headers .bp6-table-header{line-height:30px;min-height:30px;vertical-align:top}.bp6-table-row-headers .bp6-table-header{line-height:20px;min-width:30px;overflow:hidden}.bp6-table-column-name-text,.bp6-table-row-name-text{flex-grow:1;pointer-events:none}.bp6-table-truncated-text{max-height:100%;overflow:hidden;text-overflow:ellipsis}.bp6-table-no-wrap-text{white-space:nowrap}.bp6-table-column-name-text{padding:0 8px}.bp6-table-editable-name{display:block;pointer-events:all}.bp6-table-editable-name.bp6-editable-text:before{border-radius:0;bottom:0;left:-9px;right:-8px;top:-1px}.bp6-table-editable-name.bp6-editable-text:not(.bp6-editable-editing):before{box-shadow:none}.bp6-table-editable-name.bp6-editable-text.bp6-editable-editing:before{bottom:1px;cursor:text;left:-8px;right:-7px;top:0}.bp6-table-editable-name.bp6-editable-text.bp6-editable-editing.bp6-table-editable-text:before{left:0;right:1px}.bp6-table-column-name .bp6-table-editable-name.bp6-editable-text:before{bottom:-1px}.bp6-table-column-name .bp6-table-editable-name.bp6-editable-text.bp6-editable-editing:before{bottom:0}.bp6-table-column-name-text .bp6-table-editable-name input{height:30px}.bp6-table-column-name{display:flex;flex-direction:column;font-size:14px;text-align:left}.bp6-table-row-name{display:block;font-size:12px;padding:0 4px;text-align:right}.bp6-table-row-selection-cell,.bp6-table-row-selection-header-cell{align-items:center;display:flex;justify-content:center}.bp6-table-row-headers .bp6-table-row-selection-cell{min-width:0}.bp6-table-row-selection-checkbox{align-items:center;display:flex;flex:0 0 auto;justify-content:center}.bp6-table-row-selection-checkbox .bp6-control:not(.bp6-align-right){align-items:center;display:flex;justify-content:center;margin:0;padding-inline-start:0}.bp6-table-row-selection-checkbox .bp6-control:not(.bp6-align-right) .bp6-control-indicator{margin:0}.bp6-table-header-content{font-size:14px;white-space:normal}.bp6-table-header-content .is-searchable:not(.is-focused)>.Select-control{background:none;box-shadow:none}.bp6-table-header-content .is-searchable>.Select-control{border-radius:0}.bp6-table-header-content .is-searchable>.Select-control .Select-value{cursor:pointer}.bp6-table-header-content .Select-value{right:-1px}.bp6-table-column-name,.bp6-table-row-name{transition:color .3s}.bp6-table-header.bp6-loading{display:flex;flex-direction:column;justify-content:center}.bp6-table-header.bp6-loading .bp6-table-column-name,.bp6-table-header.bp6-loading .bp6-table-row-name{flex:1}.bp6-table-header.bp6-loading .bp6-table-column-name-text{display:flex;flex-direction:column;justify-content:center;padding:8px}.bp6-table-header.bp6-loading .bp6-table-column-name-text .bp6-skeleton{height:8px}.bp6-table-header.bp6-loading .bp6-table-row-name{display:flex;flex-direction:column;justify-content:center}.bp6-table-selection-enabled.bp6-table-column-headers .bp6-table-header.bp6-table-header-reorderable{cursor:grab}.bp6-table-selection-enabled.bp6-table-column-headers .bp6-table-header.bp6-table-header-reorderable:active{cursor:grabbing}.bp6-table-selection-enabled.bp6-table-column-headers .bp6-table-header.bp6-table-header-reorderable .bp6-table-interaction-bar{cursor:grab}.bp6-table-selection-enabled.bp6-table-column-headers .bp6-table-header.bp6-table-header-reorderable .bp6-table-interaction-bar:active{cursor:grabbing}.bp6-table-selection-enabled.bp6-table-column-headers .bp6-table-header{cursor:s-resize}.bp6-table-selection-enabled.bp6-table-row-headers .bp6-table-header.bp6-table-header-reorderable{cursor:grab}.bp6-table-selection-enabled.bp6-table-row-headers .bp6-table-header.bp6-table-header-reorderable:active{cursor:grabbing}.bp6-table-selection-enabled.bp6-table-row-headers .bp6-table-header.bp6-table-header-reorderable .bp6-table-interaction-bar{cursor:grab}.bp6-table-selection-enabled.bp6-table-row-headers .bp6-table-header.bp6-table-header-reorderable .bp6-table-interaction-bar:active{cursor:grabbing}.bp6-table-selection-enabled.bp6-table-row-headers .bp6-table-header{cursor:e-resize}.bp6-table-selection-enabled.bp6-table-menu{cursor:se-resize}.bp6-table-selection-enabled .bp6-editable-text:before,.bp6-table-selection-enabled .bp6-editable-content{cursor:cell}.bp6-table-column-header-cell.bp6-table-has-reorder-handle:not(.bp6-table-has-interaction-bar) .bp6-table-column-name-text{padding-left:22px}.bp6-table-column-header-cell.bp6-table-has-reorder-handle:not(.bp6-table-has-interaction-bar) .bp6-table-editable-name:before{left:-22px}.bp6-table-reorder-handle-target{cursor:grab}.bp6-table-reorder-handle-target:active{cursor:grabbing}.bp6-table-reorder-handle-target{align-items:center;bottom:0;color:#5f6b7c99;display:flex;justify-content:center;left:0;position:absolute;top:0;width:22px}.bp6-table-reorder-handle-target:hover{color:#1c2127}.bp6-table-reorder-handle-target:active{color:#2d72d2}.bp6-dark .bp6-table-reorder-handle-target{color:#abb3bf99}.bp6-dark .bp6-table-reorder-handle-target:hover{color:#f6f7f9}.bp6-dark .bp6-table-reorder-handle-target:active{color:#2d72d2}.bp6-table-reorder-handle{display:flex}.bp6-table-resize-handle-target{opacity:0;position:absolute;-webkit-user-select:none;user-select:none;z-index:20}.bp6-table-resize-handle-target:hover,.bp6-table-resize-handle-target.bp6-table-dragging{opacity:1}.bp6-table-resize-handle-target.bp6-table-resize-vertical{bottom:-1px;cursor:ew-resize;right:0;top:0;width:4px}.bp6-table-resize-handle-target.bp6-table-resize-horizontal{bottom:0;cursor:ns-resize;height:4px;left:0;right:-1px}.bp6-table-resize-handle{background-color:#2d72d2;position:absolute;z-index:20}.bp6-table-resize-handle.bp6-table-dragging{background-color:#2d72d2}.bp6-table-resize-vertical .bp6-table-resize-handle{bottom:0;left:2px;top:0;width:3px}.bp6-table-resize-horizontal .bp6-table-resize-handle{height:3px;left:0;right:0;top:2px}.bp6-table-resize-guides .bp6-table-horizontal-guide{background-color:#2d72d2;height:3px;margin-top:-3px}.bp6-table-resize-guides .bp6-table-horizontal-guide.bp6-table-horizontal-guide-flush-top{margin-top:0}.bp6-table-resize-guides .bp6-table-vertical-guide{background-color:#2d72d2;margin-left:-3px;width:3px}.bp6-table-resize-guides .bp6-table-vertical-guide.bp6-table-vertical-guide-flush-left{margin-left:0}.bp6-table-overlay-layer{top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;position:absolute;z-index:20}.bp6-table-overlay{position:absolute}.bp6-table-region{background-color:#8f99a81a;border:1px solid #8f99a8}.bp6-table-selection-region{background-color:#2d72d21a;border:1px solid #2d72d2}.bp6-dark .bp6-table-selection-region{background-color:#4c90f01a;border:1px solid #4c90f0}.bp6-table-column-headers .bp6-table-selection-region,.bp6-table-row-headers .bp6-table-selection-region{background-color:transparent}.bp6-table-focus-region{border:2px solid #2d72d2}.bp6-table-column-headers .bp6-table-region{border-bottom:none}.bp6-table-row-headers .bp6-table-region{border-right:none}.bp6-table-vertical-guide{bottom:0;top:0}.bp6-table-horizontal-guide{left:0;right:0}.bp6-table-reordering-cursor-overlay{cursor:grabbing}.bp6-table-reordering .bp6-table-reordering-cursor-overlay{pointer-events:all}.bp6-table-pagination-layout{display:flex;flex-direction:column;height:100%;min-height:0}.bp6-table-pagination-layout>.bp6-table-container{flex:1 1 auto}.bp6-table-pagination-bar{align-items:center;background-color:#f6f7f9;border-top:1px solid rgba(17,20,24,.15);color:#1c2127;display:flex;flex:0 0 auto;flex-wrap:wrap;gap:4px 16px;justify-content:space-between;min-height:36px;padding:4px 8px;-webkit-user-select:none;user-select:none}.bp6-dark .bp6-table-pagination-bar{background-color:#383e47;border-top-color:#11141866;color:#f6f7f9}.bp6-table-pagination-bar-controls{align-items:center;display:flex;gap:8px}.bp6-table-pagination-bar-text{color:#5f6b7c;font-size:12px;white-space:nowrap}.bp6-dark .bp6-table-pagination-bar-text{color:#abb3bf}.bp6-table-quadrant-stack{display:flex;height:100%;position:relative}.bp6-table-quadrant{background:#f6f7f9;left:0;overflow:hidden;position:absolute;top:0}.bp6-dark .bp6-table-quadrant{background-color:#383e47}.bp6-table-quadrant:not(.bp6-table-quadrant-main) .bp6-table-quadrant-scroll-container{overflow:hidden}.bp6-table-quadrant-scroll-container{top:0;right:0;bottom:0;left:0;overflow:auto;position:absolute;-webkit-user-select:none;user-select:none;will-change:transform}.bp6-table-no-vertical-scroll .bp6-table-quadrant-scroll-container{overflow-y:hidden}.bp6-table-no-horizontal-scroll .bp6-table-quadrant-scroll-container{overflow-x:hidden}.bp6-table-quadrant-body-container{position:relative}.bp6-table-quadrant-main{height:100%;left:auto;position:relative;top:auto;width:100%;z-index:0}.bp6-table-quadrant-main .bp6-table-quadrant-scroll-container{height:100%;width:100%}.bp6-table-quadrant-main .bp6-table-cell-client{background:#fff}.bp6-table-quadrant-top{z-index:1}.bp6-table-quadrant-left{transition:width .1s cubic-bezier(.4,1,.75,.9);z-index:2}.bp6-table-quadrant-left .bp6-table-body-virtual-client{min-width:1px}.bp6-table-quadrant-top-left{transition:width .1s cubic-bezier(.4,1,.75,.9);z-index:3}.bp6-table-quadrant-top-left .bp6-table-body-virtual-client{min-width:1px}.bp6-table-container{background-color:#f6f7f9;display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;min-height:60px;overflow:hidden;will-change:transform}.bp6-dark .bp6-table-container{background-color:#383e47}.bp6-table-container .bp6-loading .bp6-skeleton{animation:.3s linear forwards skeleton-fade-in,1s linear infinite alternate skeleton-glow;animation-delay:0s,.3s;height:4px;opacity:0}.bp6-table-container .bp6-loading{color:transparent}.bp6-table-top-container{display:flex;flex:0 0 auto;min-height:0%}.bp6-table-container.bp6-table-no-rows .bp6-table-top-container{padding-bottom:1px}.bp6-table-bottom-container{color:#1c2127;display:flex;flex:1 1 auto;height:100%;min-height:0%}.bp6-dark .bp6-table-bottom-container{color:#f6f7f9}.bp6-table-menu{background-color:#f6f7f9;flex:0 0 auto;position:relative;z-index:13}.bp6-dark .bp6-table-menu{background-color:#383e47}.bp6-table-column-headers{background-color:#f6f7f9;color:#1c2127;display:block;position:relative;z-index:11}.bp6-dark .bp6-table-column-headers{background-color:#383e47;color:#f6f7f9}.bp6-table-row-headers{background-color:#f6f7f9;color:#5f6b7c;flex:0 0 auto;position:relative;transition:width .1s cubic-bezier(.4,1,.75,.9);z-index:12}.bp6-dark .bp6-table-row-headers{background-color:#383e47;color:#abb3bf}.bp6-table-body{flex:1 1 100%;overflow:scroll;position:relative;z-index:10}.bp6-table-body-virtual-client{position:relative}.bp6-table-cell-client{background:#fff}.bp6-dark .bp6-table-cell-client{background:#2f343c}.bp6-table-tbody{display:block;white-space:nowrap}.bp6-table-cell{display:inline-block}.bp6-table-no-layout{display:inline-block;position:absolute}
|
|
1
|
+
.bp6-table-cell{display:inline-block;font-size:12px;height:20px;line-height:20px;padding:0 8px;transition:color .3s}.bp6-dark .bp6-table-cell:not([class*=bp6-intent-]):not(.bp6-loading){color:#f6f7f9}.bp6-table-cell.bp6-intent-primary{background-color:#2d72d21a;color:#2d72d2}.bp6-dark .bp6-table-cell.bp6-intent-primary{background:#2d72d21a;color:#4c90f0}.bp6-table-cell.bp6-intent-success{background-color:#2385511a;color:#238551}.bp6-dark .bp6-table-cell.bp6-intent-success{background:#2385511a;color:#32a467}.bp6-table-cell.bp6-intent-warning{background-color:#c876191a;color:#c87619}.bp6-dark .bp6-table-cell.bp6-intent-warning{background:#c876191a;color:#ec9a3c}.bp6-table-cell.bp6-intent-danger{background-color:#cd42461a;color:#cd4246}.bp6-dark .bp6-table-cell.bp6-intent-danger{background:#cd42461a;color:#e76a6e}.bp6-table-editing-enabled .bp6-table-cell{cursor:text}.bp6-table-selection-enabled .bp6-table-cell{cursor:cell}.bp6-table-cell.bp6-table-truncated-cell{overflow:hidden}.bp6-table-cell.bp6-large,.bp6-large .bp6-table-cell{font-size:14px;height:30px;line-height:30px}.bp6-table-cell.bp6-loading{display:flex;flex-direction:column;justify-content:center;color:transparent}.bp6-table-cell:focus{outline:none}.bp6-table-cell-interactive{z-index:21}.bp6-table-striped .bp6-table-cell-ledger-even{background-color:#fff}.bp6-table-striped .bp6-table-cell-ledger-odd{background-color:#fafbfc}.bp6-dark .bp6-table-striped .bp6-table-cell-ledger-even{background-color:#2f343c}.bp6-dark .bp6-table-striped .bp6-table-cell-ledger-odd{background-color:#343941}.bp6-table-cell.bp6-table-row-selected{background-color:#2d72d21a}.bp6-dark .bp6-table-cell.bp6-table-row-selected{background-color:#4c90f01a}.bp6-table-editable-name input{height:20px}.bp6-table-editable-text{top:0;right:0;bottom:0;left:0;padding:0 8px;position:absolute}.bp6-table-cell-text-placeholder{color:#5f6b7c}.bp6-dark .bp6-table-cell-text-placeholder{color:#abb3bf}.bp6-table-cell-with-expander{align-items:flex-start;display:flex;flex:1;height:100%;min-width:0}.bp6-table-cell-with-expander>.bp6-table-truncated-text{flex:1;min-width:0}.bp6-table-row-expander{align-items:center;align-self:center;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-flex;flex-shrink:0;margin-inline-end:4px;padding:0}.bp6-table-row-expander:focus-visible{outline:2px solid #2d72d2;outline-offset:-1px}.bp6-table-row-detail{background:#fff;border-bottom:1px solid rgba(17,20,24,.15);box-sizing:border-box;overflow:auto;padding:8px;position:absolute;-webkit-user-select:text;user-select:text}.bp6-dark .bp6-table-row-detail{background:#2f343c;border-color:#11141866;color:#f6f7f9}.bp6-table-null{color:#5f6b7c99}.bp6-table-truncated-value{left:8px;max-height:100%;overflow:hidden;position:absolute;right:35px;text-overflow:ellipsis;top:0}.bp6-table-truncated-format-text{left:8px;max-height:100%;overflow:hidden;position:absolute;right:10px;text-overflow:ellipsis;top:0}.bp6-table-truncated-popover-target{border-radius:4px;bottom:0;cursor:pointer;opacity:.3;padding:0 4px;position:absolute;right:4px;text-align:center;top:0}.bp6-table-truncated-popover-target .bp6-icon-standard{line-height:20px}.bp6-table-truncated-popover-target.bp6-popover-open{opacity:1}.bp6-table-truncated-popover-target.bp6-popover-open .bp6-icon-standard{color:#2d72d2}.bp6-table-truncated-popover-target:hover{opacity:1}.bp6-table-truncated-popover{font-family:monospace;max-height:300px;max-width:600px;min-width:200px;overflow:auto;padding:8px}.bp6-table-popover-whitespace-pre{white-space:pre}.bp6-table-popover-whitespace-normal{white-space:normal}.bp6-table-container{box-shadow:0 0 0 1px #11141826}.bp6-table-header{box-shadow:0 1px #11141826}.bp6-table-menu,.bp6-table-row-selection-header-cell,.bp6-table-cell{box-shadow:inset 0 -1px #11141826,inset -1px 0 #11141826}.bp6-table-horizontal-cell-divider{box-shadow:inset 0 1px #11141826;height:1px}.bp6-table-column-headers .bp6-table-header,.bp6-table-row-headers .bp6-table-header{box-shadow:inset 0 -1px #11141826,inset -1px 0 #11141826}.bp6-table-column-headers .bp6-table-header:before,.bp6-table-row-headers .bp6-table-header:before{bottom:1px;right:1px}.bp6-table-body .bp6-table-last-in-row{box-shadow:inset 0 -1px #11141826,1px 0 #11141826}.bp6-table-body .bp6-table-last-in-column{box-shadow:0 1px #11141826,inset -1px 0 #11141826}.bp6-table-body .bp6-table-last-in-row.bp6-table-last-in-column{box-shadow:0 1px #11141826,1px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-row{box-shadow:inset 0 -1px #11141826,inset -3px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141826,inset -1px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-column.bp6-table-last-in-row{box-shadow:inset 0 -3px #11141826,inset -3px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-row{box-shadow:inset 0 -1px #11141826,inset -3px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-row:before{bottom:1px;right:3px}.bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141826,inset -1px 0 #11141826}.bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-column:before{bottom:3px;right:1px}.bp6-table-quadrant-left .bp6-table-cell.bp6-table-last-in-row{box-shadow:inset 0 -1px #11141826,inset -3px 0 #11141826}.bp6-table-quadrant-top .bp6-table-cell.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141826,inset -1px 0 #11141826}.bp6-dark .bp6-table-container{box-shadow:0 0 0 1px #11141866}.bp6-dark .bp6-table-header{box-shadow:0 1px #11141866}.bp6-dark .bp6-table-menu,.bp6-dark .bp6-table-row-selection-header-cell,.bp6-dark .bp6-table-cell{box-shadow:inset 0 -1px #11141866,inset -1px 0 #11141866}.bp6-dark .bp6-table-horizontal-cell-divider{box-shadow:inset 0 1px #11141866;height:1px}.bp6-dark .bp6-table-column-headers .bp6-table-header,.bp6-dark .bp6-table-row-headers .bp6-table-header{box-shadow:inset 0 -1px #11141866,inset -1px 0 #11141866}.bp6-dark .bp6-table-column-headers .bp6-table-header:before,.bp6-dark .bp6-table-row-headers .bp6-table-header:before{bottom:1px;right:1px}.bp6-dark .bp6-table-body .bp6-table-last-in-row{box-shadow:inset 0 -1px #11141866,1px 0 #11141866}.bp6-dark .bp6-table-body .bp6-table-last-in-column{box-shadow:0 1px #11141866,inset -1px 0 #11141866}.bp6-dark .bp6-table-body .bp6-table-last-in-row.bp6-table-last-in-column{box-shadow:0 1px #11141866,1px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-row{box-shadow:inset 0 -1px #11141866,inset -3px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141866,inset -1px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-cell.bp6-table-last-in-column.bp6-table-last-in-row{box-shadow:inset 0 -3px #11141866,inset -3px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-row{box-shadow:inset 0 -1px #11141866,inset -3px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-row:before{bottom:1px;right:3px}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141866,inset -1px 0 #11141866}.bp6-dark .bp6-table-quadrant-top-left .bp6-table-header.bp6-table-last-in-column:before{bottom:3px;right:1px}.bp6-dark .bp6-table-quadrant-left .bp6-table-cell.bp6-table-last-in-row{box-shadow:inset 0 -1px #11141866,inset -3px 0 #11141866}.bp6-dark .bp6-table-quadrant-top .bp6-table-cell.bp6-table-last-in-column{box-shadow:inset 0 -3px #11141866,inset -1px 0 #11141866}@keyframes skeleton-glow{0%{background:#d3d8de33;border-color:#d3d8de33}to{background:#5f6b7c33;border-color:#5f6b7c33}}.bp6-skeleton{animation:1s linear infinite alternate skeleton-glow;background:#d3d8de33;background-clip:padding-box!important;border-color:#d3d8de33!important;border-radius:2px;box-shadow:none!important;color:transparent!important;cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none}.bp6-skeleton:before,.bp6-skeleton:after,.bp6-skeleton *{visibility:hidden!important}@keyframes skeleton-fade-in{0%{opacity:0}to{opacity:1}}.bp6-table-header{align-items:flex-start;flex:1 1 auto;justify-content:space-between;position:relative;text-overflow:ellipsis;-webkit-user-select:none;user-select:none}.bp6-table-header:before{content:"";display:block;left:0;position:absolute;top:0}.bp6-table-header .bp6-table-row-name,.bp6-table-header .bp6-table-column-name,.bp6-table-header .bp6-table-header-content{position:relative;width:100%}.bp6-table-selection-enabled .bp6-table-header:hover:before,.bp6-table-header.bp6-table-header-active:before{background-color:#e5e8eb}.bp6-dark .bp6-table-selection-enabled .bp6-table-header:hover:before,.bp6-dark .bp6-table-header.bp6-table-header-active:before{background-color:#404854}.bp6-table-header.bp6-table-header-selected:before{background-image:linear-gradient(90deg,#2d72d21a,#2d72d21a)}.bp6-table-header.bp6-table-row-selected:before{background-color:#2d72d21a}.bp6-table-th-menu-container{flex-shrink:0;opacity:0;position:absolute;right:1px;text-align:right}.bp6-table-header:hover .bp6-table-th-menu-container,.bp6-table-header-active .bp6-table-th-menu-container,.bp6-table-th-menu-container.bp6-table-th-menu-open{opacity:1}.bp6-table-interaction-bar .bp6-table-th-menu-container{line-height:20px}.bp6-table-th-menu-container-background{height:30px;pointer-events:none;position:absolute;right:0;top:0;width:50px}.bp6-table-interaction-bar .bp6-table-th-menu-container-background{height:20px}.bp6-table-th-menu-open .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#f6f7f900,#f6f7f9 50%)}.bp6-dark .bp6-table-th-menu-open .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#383e4700,#383e47 50%)}.bp6-table-header:hover .bp6-table-th-menu-container-background,.bp6-table-header-active .bp6-table-th-menu-container-background,.bp6-table-th-menu-open .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#f6f7f900,#f6f7f9 50%)}.bp6-dark .bp6-table-header:hover .bp6-table-th-menu-container-background,.bp6-dark .bp6-table-header-active .bp6-table-th-menu-container-background,.bp6-dark .bp6-table-th-menu-open .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#383e4700,#383e47 50%)}.bp6-table-selection-enabled .bp6-table-header:hover .bp6-table-th-menu-container-background,.bp6-table-selection-enabled .bp6-table-header-active .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#e5e8eb00,#e5e8eb 50%)}.bp6-dark .bp6-table-selection-enabled .bp6-table-header:hover .bp6-table-th-menu-container-background,.bp6-dark .bp6-table-selection-enabled .bp6-table-header-active .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#40485400,#404854 50%)}.bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#e2eaf500,#e2eaf5 50%)}.bp6-dark .bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#37435500,#374355 50%)}.bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected:hover .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#d3dce800,#d3dce8 50%)}.bp6-dark .bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected:hover .bp6-table-th-menu-container-background{background-image:linear-gradient(90deg,#3e4c6100,#3e4c61 50%)}.bp6-table-th-menu{cursor:pointer;height:30px;position:relative;width:30px}.bp6-table-interaction-bar .bp6-table-th-menu{height:20px;right:1px;text-align:center;width:20px}.bp6-table-interaction-bar .bp6-table-th-menu .bp6-icon{margin:2px 2px 2px 3px;vertical-align:top}.bp6-table-th-menu .bp6-icon{background-color:#f6f7f9;border-radius:4px;box-shadow:inset 0 0 0 1px #11141833;color:#5f6b7c;margin-right:7px;margin-top:7px}.bp6-table-selection-enabled .bp6-table-th-menu .bp6-icon{background-color:#e5e8eb}.bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected .bp6-table-th-menu .bp6-icon{background-color:linear-gradient(90deg,rgba(88.5882352941%,91.6470588235%,96.1176470588%,0) 0%,rgb(88.5882352941%,91.6470588235%,96.1176470588%) 50%)}.bp6-dark .bp6-table-th-menu .bp6-icon{background-color:#383e47;box-shadow:inset 0 0 0 1px #fff3;color:#abb3bf}.bp6-dark .bp6-table-selection-enabled .bp6-table-th-menu .bp6-icon{background-color:#404854}.bp6-dark .bp6-table-selection-enabled .bp6-table-header.bp6-table-header-selected .bp6-table-th-menu .bp6-icon{background-color:linear-gradient(90deg,rgba(21.5294117647%,26.3529411765%,33.2941176471%,0) 0%,rgb(21.5294117647%,26.3529411765%,33.2941176471%) 50%)}.bp6-table-th-menu:hover .bp6-icon{box-shadow:inset 0 0 0 1px #11141866;color:#1c2127}.bp6-dark .bp6-table-th-menu:hover .bp6-icon{box-shadow:inset 0 0 0 1px #fff6;color:#f6f7f9}.bp6-table-th-menu.bp6-popover-open .bp6-icon,.bp6-dark .bp6-table-th-menu.bp6-popover-open .bp6-icon{background-color:#2d72d2;box-shadow:none;color:#fff}.bp6-table-thead{display:block;white-space:nowrap}.bp6-table-column-header-tr{display:flex}.bp6-table-column-header-tr .bp6-table-header{flex:0 0}.bp6-table-column-headers .bp6-table-interaction-bar{height:20px;position:relative}.bp6-table-column-headers .bp6-table-header{line-height:30px;min-height:30px;vertical-align:top}.bp6-table-row-headers .bp6-table-header{line-height:20px;min-width:30px;overflow:hidden}.bp6-table-column-name-text,.bp6-table-row-name-text{flex-grow:1;pointer-events:none}.bp6-table-truncated-text{max-height:100%;overflow:hidden;text-overflow:ellipsis}.bp6-table-no-wrap-text{white-space:nowrap}.bp6-table-column-name-text{padding:0 8px}.bp6-table-editable-name{display:block;pointer-events:all}.bp6-table-editable-name.bp6-editable-text:before{border-radius:0;bottom:0;left:-9px;right:-8px;top:-1px}.bp6-table-editable-name.bp6-editable-text:not(.bp6-editable-editing):before{box-shadow:none}.bp6-table-editable-name.bp6-editable-text.bp6-editable-editing:before{bottom:1px;cursor:text;left:-8px;right:-7px;top:0}.bp6-table-editable-name.bp6-editable-text.bp6-editable-editing.bp6-table-editable-text:before{left:0;right:1px}.bp6-table-column-name .bp6-table-editable-name.bp6-editable-text:before{bottom:-1px}.bp6-table-column-name .bp6-table-editable-name.bp6-editable-text.bp6-editable-editing:before{bottom:0}.bp6-table-column-name-text .bp6-table-editable-name input{height:30px}.bp6-table-column-name{display:flex;flex-direction:column;font-size:14px;text-align:left}.bp6-table-row-name{display:block;font-size:12px;padding:0 4px;text-align:right}.bp6-table-row-selection-cell,.bp6-table-row-selection-header-cell{align-items:center;display:flex;justify-content:center}.bp6-table-row-headers .bp6-table-row-selection-cell{min-width:0}.bp6-table-row-selection-checkbox{align-items:center;display:flex;flex:0 0 auto;justify-content:center}.bp6-table-row-selection-checkbox .bp6-control:not(.bp6-align-right){align-items:center;display:flex;justify-content:center;margin:0;padding-inline-start:0}.bp6-table-row-selection-checkbox .bp6-control:not(.bp6-align-right) .bp6-control-indicator{margin:0}.bp6-table-header-content{font-size:14px;white-space:normal}.bp6-table-header-content .is-searchable:not(.is-focused)>.Select-control{background:none;box-shadow:none}.bp6-table-header-content .is-searchable>.Select-control{border-radius:0}.bp6-table-header-content .is-searchable>.Select-control .Select-value{cursor:pointer}.bp6-table-header-content .Select-value{right:-1px}.bp6-table-column-name,.bp6-table-row-name{transition:color .3s}.bp6-table-header.bp6-loading{display:flex;flex-direction:column;justify-content:center}.bp6-table-header.bp6-loading .bp6-table-column-name,.bp6-table-header.bp6-loading .bp6-table-row-name{flex:1}.bp6-table-header.bp6-loading .bp6-table-column-name-text{display:flex;flex-direction:column;justify-content:center;padding:8px}.bp6-table-header.bp6-loading .bp6-table-column-name-text .bp6-skeleton{height:8px}.bp6-table-header.bp6-loading .bp6-table-row-name{display:flex;flex-direction:column;justify-content:center}.bp6-table-selection-enabled.bp6-table-column-headers .bp6-table-header.bp6-table-header-reorderable{cursor:grab}.bp6-table-selection-enabled.bp6-table-column-headers .bp6-table-header.bp6-table-header-reorderable:active{cursor:grabbing}.bp6-table-selection-enabled.bp6-table-column-headers .bp6-table-header.bp6-table-header-reorderable .bp6-table-interaction-bar{cursor:grab}.bp6-table-selection-enabled.bp6-table-column-headers .bp6-table-header.bp6-table-header-reorderable .bp6-table-interaction-bar:active{cursor:grabbing}.bp6-table-selection-enabled.bp6-table-column-headers .bp6-table-header{cursor:s-resize}.bp6-table-selection-enabled.bp6-table-row-headers .bp6-table-header.bp6-table-header-reorderable{cursor:grab}.bp6-table-selection-enabled.bp6-table-row-headers .bp6-table-header.bp6-table-header-reorderable:active{cursor:grabbing}.bp6-table-selection-enabled.bp6-table-row-headers .bp6-table-header.bp6-table-header-reorderable .bp6-table-interaction-bar{cursor:grab}.bp6-table-selection-enabled.bp6-table-row-headers .bp6-table-header.bp6-table-header-reorderable .bp6-table-interaction-bar:active{cursor:grabbing}.bp6-table-selection-enabled.bp6-table-row-headers .bp6-table-header{cursor:e-resize}.bp6-table-selection-enabled.bp6-table-menu{cursor:se-resize}.bp6-table-selection-enabled .bp6-editable-text:before,.bp6-table-selection-enabled .bp6-editable-content{cursor:cell}.bp6-table-column-header-cell.bp6-table-has-reorder-handle:not(.bp6-table-has-interaction-bar) .bp6-table-column-name-text{padding-left:22px}.bp6-table-column-header-cell.bp6-table-has-reorder-handle:not(.bp6-table-has-interaction-bar) .bp6-table-editable-name:before{left:-22px}.bp6-table-reorder-handle-target{cursor:grab}.bp6-table-reorder-handle-target:active{cursor:grabbing}.bp6-table-reorder-handle-target{align-items:center;bottom:0;color:#5f6b7c99;display:flex;justify-content:center;left:0;position:absolute;top:0;width:22px}.bp6-table-reorder-handle-target:hover{color:#1c2127}.bp6-table-reorder-handle-target:active{color:#2d72d2}.bp6-dark .bp6-table-reorder-handle-target{color:#abb3bf99}.bp6-dark .bp6-table-reorder-handle-target:hover{color:#f6f7f9}.bp6-dark .bp6-table-reorder-handle-target:active{color:#2d72d2}.bp6-table-reorder-handle{display:flex}.bp6-table-resize-handle-target{opacity:0;position:absolute;-webkit-user-select:none;user-select:none;z-index:20}.bp6-table-resize-handle-target:hover,.bp6-table-resize-handle-target.bp6-table-dragging{opacity:1}.bp6-table-resize-handle-target.bp6-table-resize-vertical{bottom:-1px;cursor:ew-resize;right:0;top:0;width:4px}.bp6-table-resize-handle-target.bp6-table-resize-horizontal{bottom:0;cursor:ns-resize;height:4px;left:0;right:-1px}.bp6-table-resize-handle{background-color:#2d72d2;position:absolute;z-index:20}.bp6-table-resize-handle.bp6-table-dragging{background-color:#2d72d2}.bp6-table-resize-vertical .bp6-table-resize-handle{bottom:0;left:2px;top:0;width:3px}.bp6-table-resize-horizontal .bp6-table-resize-handle{height:3px;left:0;right:0;top:2px}.bp6-table-resize-guides .bp6-table-horizontal-guide{background-color:#2d72d2;height:3px;margin-top:-3px}.bp6-table-resize-guides .bp6-table-horizontal-guide.bp6-table-horizontal-guide-flush-top{margin-top:0}.bp6-table-resize-guides .bp6-table-vertical-guide{background-color:#2d72d2;margin-left:-3px;width:3px}.bp6-table-resize-guides .bp6-table-vertical-guide.bp6-table-vertical-guide-flush-left{margin-left:0}.bp6-table-overlay-layer{top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;position:absolute;z-index:20}.bp6-table-overlay{position:absolute}.bp6-table-region{background-color:#8f99a81a;border:1px solid #8f99a8}.bp6-table-selection-region{background-color:#2d72d21a;border:1px solid #2d72d2}.bp6-dark .bp6-table-selection-region{background-color:#4c90f01a;border:1px solid #4c90f0}.bp6-table-column-headers .bp6-table-selection-region,.bp6-table-row-headers .bp6-table-selection-region{background-color:transparent}.bp6-table-focus-region{border:2px solid #2d72d2}.bp6-table-column-headers .bp6-table-region{border-bottom:none}.bp6-table-row-headers .bp6-table-region{border-right:none}.bp6-table-vertical-guide{bottom:0;top:0}.bp6-table-horizontal-guide{left:0;right:0}.bp6-table-reordering-cursor-overlay{cursor:grabbing}.bp6-table-reordering .bp6-table-reordering-cursor-overlay{pointer-events:all}.bp6-table-pagination-layout{display:flex;flex-direction:column;height:100%;min-height:0}.bp6-table-pagination-layout>.bp6-table-container{flex:1 1 auto}.bp6-table-pagination-bar{align-items:center;background-color:#f6f7f9;border-top:1px solid rgba(17,20,24,.15);color:#1c2127;display:flex;flex:0 0 auto;flex-wrap:wrap;gap:4px 16px;justify-content:space-between;min-height:36px;padding:4px 8px;-webkit-user-select:none;user-select:none}.bp6-dark .bp6-table-pagination-bar{background-color:#383e47;border-top-color:#11141866;color:#f6f7f9}.bp6-table-pagination-bar-controls{align-items:center;display:flex;gap:8px}.bp6-table-pagination-bar-text{color:#5f6b7c;font-size:12px;white-space:nowrap}.bp6-dark .bp6-table-pagination-bar-text{color:#abb3bf}.bp6-table-quadrant-stack{display:flex;height:100%;position:relative}.bp6-table-quadrant{background:#f6f7f9;left:0;overflow:hidden;position:absolute;top:0}.bp6-dark .bp6-table-quadrant{background-color:#383e47}.bp6-table-quadrant:not(.bp6-table-quadrant-main) .bp6-table-quadrant-scroll-container{overflow:hidden}.bp6-table-quadrant-scroll-container{top:0;right:0;bottom:0;left:0;overflow:auto;position:absolute;-webkit-user-select:none;user-select:none;will-change:transform}.bp6-table-no-vertical-scroll .bp6-table-quadrant-scroll-container{overflow-y:hidden}.bp6-table-no-horizontal-scroll .bp6-table-quadrant-scroll-container{overflow-x:hidden}.bp6-table-quadrant-body-container{position:relative}.bp6-table-quadrant-main{height:100%;left:auto;position:relative;top:auto;width:100%;z-index:0}.bp6-table-quadrant-main .bp6-table-quadrant-scroll-container{height:100%;width:100%}.bp6-table-quadrant-main .bp6-table-cell-client{background:#fff}.bp6-table-quadrant-top{z-index:1}.bp6-table-quadrant-left{transition:width .1s cubic-bezier(.4,1,.75,.9);z-index:2}.bp6-table-quadrant-left .bp6-table-body-virtual-client{min-width:1px}.bp6-table-quadrant-top-left{transition:width .1s cubic-bezier(.4,1,.75,.9);z-index:3}.bp6-table-quadrant-top-left .bp6-table-body-virtual-client{min-width:1px}.bp6-table-container{background-color:#f6f7f9;display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;min-height:60px;overflow:hidden;will-change:transform}.bp6-dark .bp6-table-container{background-color:#383e47}.bp6-table-container .bp6-loading .bp6-skeleton{animation:.3s linear forwards skeleton-fade-in,1s linear infinite alternate skeleton-glow;animation-delay:0s,.3s;height:4px;opacity:0}.bp6-table-container .bp6-loading{color:transparent}.bp6-table-top-container{display:flex;flex:0 0 auto;min-height:0%}.bp6-table-container.bp6-table-no-rows .bp6-table-top-container{padding-bottom:1px}.bp6-table-bottom-container{color:#1c2127;display:flex;flex:1 1 auto;height:100%;min-height:0%}.bp6-dark .bp6-table-bottom-container{color:#f6f7f9}.bp6-table-menu{background-color:#f6f7f9;flex:0 0 auto;position:relative;z-index:13}.bp6-dark .bp6-table-menu{background-color:#383e47}.bp6-table-column-headers{background-color:#f6f7f9;color:#1c2127;display:block;position:relative;z-index:11}.bp6-dark .bp6-table-column-headers{background-color:#383e47;color:#f6f7f9}.bp6-table-row-headers{background-color:#f6f7f9;color:#5f6b7c;flex:0 0 auto;position:relative;transition:width .1s cubic-bezier(.4,1,.75,.9);z-index:12}.bp6-dark .bp6-table-row-headers{background-color:#383e47;color:#abb3bf}.bp6-table-body{flex:1 1 100%;overflow:scroll;position:relative;z-index:10}.bp6-table-body-virtual-client{position:relative}.bp6-table-cell-client{background:#fff}.bp6-dark .bp6-table-cell-client{background:#2f343c}.bp6-table-tbody{display:block;white-space:nowrap}.bp6-table-cell{display:inline-block}.bp6-table-no-layout{display:inline-block;position:absolute}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { BP_RowData, BP_RowSelectionState, BP_TableFeatures, BP_TableOptions, BP_VisibilityState, HTMLPropsRef } from '../types.js';
|
|
1
|
+
import type { BP_ExpandedRowsState, BP_RowData, BP_BodyPropsOptions, BP_RowExpanderOptions, BP_RowDetailRenderer, BP_RowSelectionState, BP_TableFeatures, BP_TableOptions, BP_VisibilityState, HTMLPropsRef } from '../types.js';
|
|
2
2
|
import { TableLoadingOption } from '../types.js';
|
|
3
3
|
import type { FocusedCellCoordinates, FocusedRegion, Region, RegionCardinality } from './common/region.js';
|
|
4
4
|
import type { BP_BodyContextMenuRenderer } from './common/menu-context.js';
|
|
5
|
-
export type BP_TableProps<TData extends BP_RowData> = BP_TableOptions<BP_TableFeatures, TData> & {
|
|
5
|
+
export type BP_TableProps<TData extends BP_RowData> = BP_TableOptions<BP_TableFeatures, TData> & BP_BodyPropsOptions<TData> & BP_RowExpanderOptions<TData> & {
|
|
6
6
|
/**
|
|
7
7
|
* Standard HTML attributes for the table's outer container element (the
|
|
8
8
|
* `<div>` wrapping the quadrants), e.g. `id`, `aria-*` attributes, and
|
|
@@ -12,6 +12,16 @@ export type BP_TableProps<TData extends BP_RowData> = BP_TableOptions<BP_TableFe
|
|
|
12
12
|
htmlProps?: HTMLPropsRef<HTMLDivElement>;
|
|
13
13
|
/** Height of each body row, in pixels. @default 20 */
|
|
14
14
|
rowHeight?: number;
|
|
15
|
+
/** Controlled expansion. Takes precedence over state.expanded. */
|
|
16
|
+
expandedRows?: BP_ExpandedRowsState;
|
|
17
|
+
/** Initial uncontrolled expansion and reset target. Takes precedence over initialState.expanded. */
|
|
18
|
+
initialExpandedRows?: BP_ExpandedRowsState;
|
|
19
|
+
/** Receives the next expanded state for each requested change in either mode. */
|
|
20
|
+
onExpandedRowsChange?: (expandedRows: BP_ExpandedRowsState) => void;
|
|
21
|
+
/** Render a detail panel beneath each expanded row. Use getRowCanExpand to limit eligible rows. */
|
|
22
|
+
renderRowDetail?: BP_RowDetailRenderer<TData>;
|
|
23
|
+
/** Height of an expanded detail panel in pixels. Longer content scrolls. @default 100 */
|
|
24
|
+
rowDetailHeight?: number;
|
|
15
25
|
/** Width of the frozen row-header column, in pixels. @default 30 */
|
|
16
26
|
rowHeaderWidth?: number;
|
|
17
27
|
/**
|
|
@@ -216,4 +226,4 @@ export type BP_TableProps<TData extends BP_RowData> = BP_TableOptions<BP_TableFe
|
|
|
216
226
|
*/
|
|
217
227
|
defaultRowSelection?: BP_RowSelectionState;
|
|
218
228
|
};
|
|
219
|
-
export declare function BP_Table<TData extends BP_RowData>({ htmlProps, rowHeight, showRowSelectionCheckboxes, rowSelectionColumnWidth, rowHeaderWidth, enableRowHeader, columnHeaderHeight, enableColumnReordering, enableSorting, loadingOptions, enableFocusedCell, enableGhostCells, bodyContextMenuRenderer, enableBodyContextMenu, onFocusedCell, onFocusedRegion, selectedRegions, onSelection, selectionModes, enableRowVirtualization, numFrozenColumns, numFrozenRows, overscanRowCount, columnVisibility, enableRowResizing, rowHeights, defaultRowHeights, onRowHeightChanged, minRowHeight, maxRowHeight, rowSelection, defaultRowSelection, ...tableOptions }: BP_TableProps<TData>): import("react").JSX.Element;
|
|
229
|
+
export declare function BP_Table<TData extends BP_RowData>({ htmlProps, rowHeight, expandedRows, initialExpandedRows, onExpandedRowsChange, renderRowDetail, getCellProps, rowExpanderButtonProps, rowExpanderIconProps, rowDetailHeight, showRowSelectionCheckboxes, rowSelectionColumnWidth, rowHeaderWidth, enableRowHeader, columnHeaderHeight, enableColumnReordering, enableSorting, loadingOptions, enableFocusedCell, enableGhostCells, bodyContextMenuRenderer, enableBodyContextMenu, onFocusedCell, onFocusedRegion, selectedRegions, onSelection, selectionModes, enableRowVirtualization, numFrozenColumns, numFrozenRows, overscanRowCount, columnVisibility, enableRowResizing, rowHeights, defaultRowHeights, onRowHeightChanged, minRowHeight, maxRowHeight, rowSelection, defaultRowSelection, ...tableOptions }: BP_TableProps<TData>): import("react").JSX.Element;
|
|
@@ -2,9 +2,10 @@ import { type ColumnRegion, type RowRegion } from '../common/pinning.js';
|
|
|
2
2
|
import type { BP_GhostCells } from '../../hooks/use-ghost-cells.js';
|
|
3
3
|
import type { BP_RowVirtualizer } from '../../hooks/use-row-virtualizer.js';
|
|
4
4
|
import type { RowResizingApi } from '../../hooks/use-row-resizing.js';
|
|
5
|
-
import type { BP_RowData, BP_TableInstance, HTMLPropsRef } from '../../types.js';
|
|
6
|
-
export type TableBodyProps<TData extends BP_RowData> = HTMLPropsRef<HTMLDivElement> & {
|
|
5
|
+
import type { BP_RowData, BP_BodyPropsOptions, BP_RowExpanderOptions, BP_RowDetailRenderer, BP_TableInstance, HTMLPropsRef } from '../../types.js';
|
|
6
|
+
export type TableBodyProps<TData extends BP_RowData> = HTMLPropsRef<HTMLDivElement> & BP_BodyPropsOptions<TData> & BP_RowExpanderOptions<TData> & {
|
|
7
7
|
table: BP_TableInstance<TData>;
|
|
8
|
+
renderRowDetail?: BP_RowDetailRenderer<TData>;
|
|
8
9
|
/** Which column region this body renders: frozen ("start") or scrollable ("center"). */
|
|
9
10
|
columnRegion: ColumnRegion;
|
|
10
11
|
/** Which row region this body renders: frozen ("top") or scrollable ("center"). */
|
|
@@ -26,4 +27,4 @@ export type TableBodyProps<TData extends BP_RowData> = HTMLPropsRef<HTMLDivEleme
|
|
|
26
27
|
* quadrant's scroll ranges. Scrollable ("center") rows are virtualized when
|
|
27
28
|
* the table is virtualized; frozen rows are always rendered.
|
|
28
29
|
*/
|
|
29
|
-
export declare function TableBody<TData extends BP_RowData>({ table, columnRegion, rowRegion, offsetTop, offsetLeft, areCellsLoading, rowVirtualizer, rowResizing, ghosts, className, ...restProps }: TableBodyProps<TData>): import("react").JSX.Element;
|
|
30
|
+
export declare function TableBody<TData extends BP_RowData>({ table, renderRowDetail, getCellProps, rowExpanderButtonProps, rowExpanderIconProps, columnRegion, rowRegion, offsetTop, offsetLeft, areCellsLoading, rowVirtualizer, rowResizing, ghosts, className, ...restProps }: TableBodyProps<TData>): import("react").JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type Cell } from '@tanstack/react-table';
|
|
2
2
|
import type { ColumnRegion } from '../common/pinning.js';
|
|
3
|
-
import type { BP_RowData, BP_TableFeatures, BP_TableInstance } from '../../types.js';
|
|
4
|
-
export type TableBodyCellProps<TData extends BP_RowData> = {
|
|
3
|
+
import type { BP_BodyElementProps, BP_RowData, BP_RowExpanderOptions, BP_TableFeatures, BP_TableInstance } from '../../types.js';
|
|
4
|
+
export type TableBodyCellProps<TData extends BP_RowData> = BP_RowExpanderOptions<TData> & {
|
|
5
5
|
table: BP_TableInstance<TData>;
|
|
6
6
|
cell: Cell<BP_TableFeatures, TData, unknown>;
|
|
7
|
+
cellProps?: BP_BodyElementProps;
|
|
7
8
|
/** Absolute index of the row this cell belongs to. */
|
|
8
9
|
rowIndex: number;
|
|
9
10
|
/** Top offset of the row within its quadrant's body, in pixels. */
|
|
@@ -12,7 +13,8 @@ export type TableBodyCellProps<TData extends BP_RowData> = {
|
|
|
12
13
|
columnRegion: ColumnRegion;
|
|
13
14
|
rowHeight: number;
|
|
14
15
|
loading: boolean;
|
|
16
|
+
isExpansionCell: boolean;
|
|
15
17
|
isLastInRow: boolean;
|
|
16
18
|
isLastInColumn: boolean;
|
|
17
19
|
};
|
|
18
|
-
export declare function TableBodyCell<TData extends BP_RowData>({ table, cell, rowIndex, rowTop, columnRegion, rowHeight, loading, isLastInRow, isLastInColumn, }: TableBodyCellProps<TData>): import("react").JSX.Element;
|
|
20
|
+
export declare function TableBodyCell<TData extends BP_RowData>({ table, cell, cellProps, rowIndex, rowTop, columnRegion, rowHeight, loading, isExpansionCell, rowExpanderButtonProps, rowExpanderIconProps, isLastInRow, isLastInColumn, }: TableBodyCellProps<TData>): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Row } from '@tanstack/react-table';
|
|
2
|
+
import type { BP_RowData, BP_RowExpanderOptions, BP_TableFeatures } from '../../types.js';
|
|
3
|
+
type TableRowExpanderProps<TData extends BP_RowData> = BP_RowExpanderOptions<TData> & {
|
|
4
|
+
row: Row<BP_TableFeatures, TData>;
|
|
5
|
+
rowIndex: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function TableRowExpander<TData extends BP_RowData>({ row, rowIndex, rowExpanderButtonProps, rowExpanderIconProps, }: TableRowExpanderProps<TData>): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export type TableRowHeaderCellProps<TData extends BP_RowData> = HTMLPropsRef<HTM
|
|
|
9
9
|
row?: Row<BP_TableFeatures, TData>;
|
|
10
10
|
rowIndex: number;
|
|
11
11
|
rowHeight: number;
|
|
12
|
+
detailHeight: number;
|
|
12
13
|
loading: boolean;
|
|
13
14
|
isLastInColumn: boolean;
|
|
14
15
|
/** Whether this row is currently being resized. */
|
|
@@ -16,4 +17,4 @@ export type TableRowHeaderCellProps<TData extends BP_RowData> = HTMLPropsRef<HTM
|
|
|
16
17
|
/** Handler for the horizontal resize handle; when undefined, the handle is hidden. */
|
|
17
18
|
onResizeStart?: (event: RowResizeStartEvent) => void;
|
|
18
19
|
};
|
|
19
|
-
export declare function TableRowHeaderCell<TData extends BP_RowData>({ row, rowIndex, rowHeight, loading, isLastInColumn, isResizing, onResizeStart, className, ...restProps }: TableRowHeaderCellProps<TData>): import("react").JSX.Element;
|
|
20
|
+
export declare function TableRowHeaderCell<TData extends BP_RowData>({ row, rowIndex, rowHeight, detailHeight, loading, isLastInColumn, isResizing, onResizeStart, className, ...restProps }: TableRowHeaderCellProps<TData>): import("react").JSX.Element;
|
|
@@ -8,6 +8,7 @@ export type TableRowSelectionCellProps<TData extends BP_RowData> = {
|
|
|
8
8
|
row?: Row<BP_TableFeatures, TData>;
|
|
9
9
|
rowIndex: number;
|
|
10
10
|
rowHeight: number;
|
|
11
|
+
detailHeight: number;
|
|
11
12
|
loading: boolean;
|
|
12
13
|
isLastInColumn: boolean;
|
|
13
14
|
};
|
|
@@ -15,4 +16,4 @@ export type TableRowSelectionCellProps<TData extends BP_RowData> = {
|
|
|
15
16
|
* One row of the row-selection checkboxes column that sits between the row
|
|
16
17
|
* header (row numbers) and the frozen columns.
|
|
17
18
|
*/
|
|
18
|
-
export declare function TableRowSelectionCell<TData extends BP_RowData>({ row, rowIndex, rowHeight, loading, isLastInColumn, }: TableRowSelectionCellProps<TData>): import("react").JSX.Element;
|
|
19
|
+
export declare function TableRowSelectionCell<TData extends BP_RowData>({ row, rowIndex, rowHeight, detailHeight, loading, isLastInColumn, }: TableRowSelectionCellProps<TData>): import("react").JSX.Element;
|
|
@@ -77,6 +77,9 @@ export declare const TABLE_ROW_HEADERS: string;
|
|
|
77
77
|
export declare const TABLE_ROW_HEADERS_CELLS_CONTAINER: string;
|
|
78
78
|
export declare const TABLE_ROW_NAME: string;
|
|
79
79
|
export declare const TABLE_ROW_NAME_TEXT: string;
|
|
80
|
+
export declare const TABLE_CELL_WITH_EXPANDER: string;
|
|
81
|
+
export declare const TABLE_ROW_EXPANDER: string;
|
|
82
|
+
export declare const TABLE_ROW_DETAIL: string;
|
|
80
83
|
export declare const TABLE_ROW_SELECTED: string;
|
|
81
84
|
export declare const TABLE_ROW_SELECTION_CELL: string;
|
|
82
85
|
export declare const TABLE_ROW_SELECTION_CHECKBOX: string;
|
|
@@ -28,7 +28,7 @@ export declare function getRegionWidth<TData extends BP_RowData>(table: BP_Table
|
|
|
28
28
|
*/
|
|
29
29
|
export declare function getColumnDisplayOffset<TData extends BP_RowData>(table: BP_TableInstance<TData>, column: Column<BP_TableFeatures, TData, unknown>, scrollLeft: number): number;
|
|
30
30
|
/** Pixel height of the frozen ("top") rows. */
|
|
31
|
-
export declare function getFrozenRowsHeight<TData extends BP_RowData>(table: BP_TableInstance<TData>,
|
|
31
|
+
export declare function getFrozenRowsHeight<TData extends BP_RowData>(table: BP_TableInstance<TData>, getRowTop: (index: number) => number): number;
|
|
32
32
|
/**
|
|
33
33
|
* Natural (visible leaf) index of the column that occupies the given
|
|
34
34
|
* region-local offset, or `undefined` when the offset falls outside the
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { RegionCardinality, type FocusedCellCoordinates, type FocusedRegion, type Region } from '../common/region.js';
|
|
2
2
|
import type { RowVirtualizerOptions } from '../../hooks/use-row-virtualizer.js';
|
|
3
3
|
import type { BP_BodyContextMenuRenderer } from '../common/menu-context.js';
|
|
4
|
-
import type { BP_RowData, BP_TableInstance, HTMLPropsRef, TableLoading } from '../../types.js';
|
|
4
|
+
import type { BP_RowData, BP_BodyPropsOptions, BP_RowExpanderOptions, BP_RowDetailRenderer, BP_TableInstance, HTMLPropsRef, TableLoading } from '../../types.js';
|
|
5
5
|
import type { TableLayout } from '../common/dimensions.js';
|
|
6
|
-
export type TableContainerProps<TData extends BP_RowData> = HTMLPropsRef<HTMLDivElement> & TableLayout & TableLoading & Pick<RowVirtualizerOptions<TData>, 'enableRowVirtualization' | 'overscanRowCount'> & {
|
|
6
|
+
export type TableContainerProps<TData extends BP_RowData> = HTMLPropsRef<HTMLDivElement> & TableLayout & TableLoading & BP_BodyPropsOptions<TData> & BP_RowExpanderOptions<TData> & Pick<RowVirtualizerOptions<TData>, 'enableRowVirtualization' | 'overscanRowCount'> & {
|
|
7
7
|
table: BP_TableInstance<TData>;
|
|
8
|
+
renderRowDetail?: BP_RowDetailRenderer<TData>;
|
|
9
|
+
rowDetailHeight: number;
|
|
8
10
|
/** Whether to render the row headers (the row-number column) and corner menu. */
|
|
9
11
|
enableRowHeader?: boolean;
|
|
10
12
|
enableColumnReordering?: boolean;
|
|
@@ -27,4 +29,4 @@ export type TableContainerProps<TData extends BP_RowData> = HTMLPropsRef<HTMLDiv
|
|
|
27
29
|
/** Width of the row-selection checkboxes column; `0` hides the column. */
|
|
28
30
|
selectionColumnWidth?: number;
|
|
29
31
|
};
|
|
30
|
-
export declare function TableContainer<TData extends BP_RowData>({ table, rowHeight, rowHeaderWidth, enableRowHeader, columnHeaderHeight, enableColumnReordering, enableSorting, areCellsLoading, areColumnHeadersLoading, areRowHeadersLoading, enableFocusedCell, enableGhostCells, bodyContextMenuRenderer, enableBodyContextMenu, onFocusedCell, onFocusedRegion, selectedRegions, onSelection, selectionModes, enableRowVirtualization, overscanRowCount, enableRowResizing, rowHeights, defaultRowHeights, onRowHeightChanged, minRowHeight, maxRowHeight, selectionColumnWidth, className, ...restProps }: TableContainerProps<TData>): import("react").JSX.Element;
|
|
32
|
+
export declare function TableContainer<TData extends BP_RowData>({ table, renderRowDetail, getCellProps, rowExpanderButtonProps, rowExpanderIconProps, rowDetailHeight, rowHeight, rowHeaderWidth, enableRowHeader, columnHeaderHeight, enableColumnReordering, enableSorting, areCellsLoading, areColumnHeadersLoading, areRowHeadersLoading, enableFocusedCell, enableGhostCells, bodyContextMenuRenderer, enableBodyContextMenu, onFocusedCell, onFocusedRegion, selectedRegions, onSelection, selectionModes, enableRowVirtualization, overscanRowCount, enableRowResizing, rowHeights, defaultRowHeights, onRowHeightChanged, minRowHeight, maxRowHeight, selectionColumnWidth, className, ...restProps }: TableContainerProps<TData>): import("react").JSX.Element;
|
|
@@ -2,11 +2,12 @@ import type { CSSProperties, MutableRefObject, UIEventHandler, WheelEventHandler
|
|
|
2
2
|
import type { BP_GhostCells } from '../../hooks/use-ghost-cells.js';
|
|
3
3
|
import type { BP_RowVirtualizer } from '../../hooks/use-row-virtualizer.js';
|
|
4
4
|
import type { RowResizingApi } from '../../hooks/use-row-resizing.js';
|
|
5
|
-
import type { BP_RowData, BP_TableInstance } from '../../types.js';
|
|
5
|
+
import type { BP_RowData, BP_BodyPropsOptions, BP_RowExpanderOptions, BP_RowDetailRenderer, BP_TableInstance } from '../../types.js';
|
|
6
6
|
import { QuadrantType } from './quadrant-type.js';
|
|
7
|
-
export type TableQuadrantProps<TData extends BP_RowData> = {
|
|
7
|
+
export type TableQuadrantProps<TData extends BP_RowData> = BP_BodyPropsOptions<TData> & BP_RowExpanderOptions<TData> & {
|
|
8
8
|
quadrantType: QuadrantType;
|
|
9
9
|
table: BP_TableInstance<TData>;
|
|
10
|
+
renderRowDetail?: BP_RowDetailRenderer<TData>;
|
|
10
11
|
rowHeaderWidth: number;
|
|
11
12
|
/** Whether to render the row headers (the row-number column) and corner menu. */
|
|
12
13
|
enableRowHeader?: boolean;
|
|
@@ -45,4 +46,4 @@ export type TableQuadrantProps<TData extends BP_RowData> = {
|
|
|
45
46
|
* Each quadrant's content is padded with spacers so the quadrants that scroll
|
|
46
47
|
* share the main quadrant's scroll ranges.
|
|
47
48
|
*/
|
|
48
|
-
export declare function TableQuadrant<TData extends BP_RowData>({ quadrantType, table, rowHeaderWidth, enableRowHeader, columnHeaderHeight, columnHeaderMeasureRef, enableSorting, areCellsLoading, areColumnHeadersLoading, areRowHeadersLoading, rowResizing, rowVirtualizer, ghosts, scrollContainerRef, onScroll, onWheel, style, selectionColumnWidth, }: TableQuadrantProps<TData>): import("react").JSX.Element;
|
|
49
|
+
export declare function TableQuadrant<TData extends BP_RowData>({ quadrantType, table, renderRowDetail, getCellProps, rowExpanderButtonProps, rowExpanderIconProps, rowHeaderWidth, enableRowHeader, columnHeaderHeight, columnHeaderMeasureRef, enableSorting, areCellsLoading, areColumnHeadersLoading, areRowHeadersLoading, rowResizing, rowVirtualizer, ghosts, scrollContainerRef, onScroll, onWheel, style, selectionColumnWidth, }: TableQuadrantProps<TData>): import("react").JSX.Element;
|
|
@@ -2,9 +2,10 @@ import type { MutableRefObject } from 'react';
|
|
|
2
2
|
import type { CellSelectionApi } from '../../hooks/use-cell-selection.js';
|
|
3
3
|
import type { RowResizingApi } from '../../hooks/use-row-resizing.js';
|
|
4
4
|
import type { BP_GhostCells } from '../../hooks/use-ghost-cells.js';
|
|
5
|
-
import type { BP_RowData, BP_TableInstance } from '../../types.js';
|
|
6
|
-
export type TableQuadrantStackProps<TData extends BP_RowData> = {
|
|
5
|
+
import type { BP_RowData, BP_BodyPropsOptions, BP_RowExpanderOptions, BP_RowDetailRenderer, BP_TableInstance } from '../../types.js';
|
|
6
|
+
export type TableQuadrantStackProps<TData extends BP_RowData> = BP_BodyPropsOptions<TData> & BP_RowExpanderOptions<TData> & {
|
|
7
7
|
table: BP_TableInstance<TData>;
|
|
8
|
+
renderRowDetail?: BP_RowDetailRenderer<TData>;
|
|
8
9
|
rowHeaderWidth: number;
|
|
9
10
|
/** Whether to render the row headers (the row-number column) and corner menu. */
|
|
10
11
|
enableRowHeader?: boolean;
|
|
@@ -35,4 +36,4 @@ export type TableQuadrantStackProps<TData extends BP_RowData> = {
|
|
|
35
36
|
* the main quadrant's scroll position, and wheel gestures over them are
|
|
36
37
|
* forwarded to the main quadrant.
|
|
37
38
|
*/
|
|
38
|
-
export declare function TableQuadrantStack<TData extends BP_RowData>({ table, rowHeaderWidth, enableRowHeader, columnHeaderHeight, columnHeaderMeasureRef, enableColumnReordering, enableSorting, areCellsLoading, areColumnHeadersLoading, areRowHeadersLoading, selection, rowResizing, ghosts, enableRowVirtualization, overscanRowCount, scrollContainerRef, selectionColumnWidth, }: TableQuadrantStackProps<TData>): import("react").JSX.Element;
|
|
39
|
+
export declare function TableQuadrantStack<TData extends BP_RowData>({ table, renderRowDetail, getCellProps, rowExpanderButtonProps, rowExpanderIconProps, rowHeaderWidth, enableRowHeader, columnHeaderHeight, columnHeaderMeasureRef, enableColumnReordering, enableSorting, areCellsLoading, areColumnHeadersLoading, areRowHeadersLoading, selection, rowResizing, ghosts, enableRowVirtualization, overscanRowCount, scrollContainerRef, selectionColumnWidth, }: TableQuadrantStackProps<TData>): import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { BP_RowData, BP_TableFeatures, BP_TableInstance, BP_TableOptions } from
|
|
|
2
2
|
/**
|
|
3
3
|
* The feature registry `BP_Table` uses by default: column sizing/resizing,
|
|
4
4
|
* ordering, visibility, pinning, row pinning, row selection, cell selection,
|
|
5
|
-
* and sorting. It is exported so layers built on top of `BP_Table` (such as
|
|
5
|
+
* expanding, and sorting. It is exported so layers built on top of `BP_Table` (such as
|
|
6
6
|
* the `withPagination` HOC) can compose additional features without having to
|
|
7
7
|
* replace the defaults.
|
|
8
8
|
*
|
|
@@ -16,10 +16,12 @@ export declare const DEFAULT_BP_TABLE_FEATURES: {
|
|
|
16
16
|
columnOrderingFeature: import("@tanstack/table-core").TableFeature;
|
|
17
17
|
columnVisibilityFeature: import("@tanstack/table-core").TableFeature;
|
|
18
18
|
columnPinningFeature: import("@tanstack/table-core").TableFeature;
|
|
19
|
+
rowExpandingFeature: import("@tanstack/table-core").TableFeature;
|
|
19
20
|
rowPinningFeature: import("@tanstack/table-core").TableFeature;
|
|
20
21
|
rowSelectionFeature: import("@tanstack/table-core").TableFeature;
|
|
21
22
|
cellSelectionFeature: import("@tanstack/table-core").TableFeature;
|
|
22
23
|
rowSortingFeature: import("@tanstack/table-core").TableFeature;
|
|
24
|
+
expandedRowModel: (table: import("@tanstack/table-core").Table<any, any>) => () => import("@tanstack/table-core").RowModel<any, any>;
|
|
23
25
|
sortedRowModel: (table: import("@tanstack/table-core").Table<any, any>) => () => import("@tanstack/table-core").RowModel<any, any>;
|
|
24
26
|
sortFns: {
|
|
25
27
|
alphanumeric: import("@tanstack/table-core").CreatedSortFn<any, any>;
|
|
@@ -12,6 +12,8 @@ export type RowResizingOptions = {
|
|
|
12
12
|
rowHeight: number;
|
|
13
13
|
/** Number of rows in the table. */
|
|
14
14
|
rowCount: number;
|
|
15
|
+
/** Extra space below the row cells for an expanded detail panel. */
|
|
16
|
+
getDetailHeight?: (index: number) => number;
|
|
15
17
|
/**
|
|
16
18
|
* Controlled per-row heights, indexed by row index. When provided, the
|
|
17
19
|
* table's row heights are fully owned by the caller, who updates them via
|
|
@@ -43,6 +45,8 @@ export type RowResizingApi = {
|
|
|
43
45
|
enabled: boolean;
|
|
44
46
|
/** Resolved height of the row at `index`. */
|
|
45
47
|
getRowHeight: (index: number) => number;
|
|
48
|
+
/** Height occupied by both the row and its detail panel. */
|
|
49
|
+
getRowSpanHeight: (index: number) => number;
|
|
46
50
|
/** Resolved absolute top offset of the row at `index` within the body. */
|
|
47
51
|
getRowTop: (index: number) => number;
|
|
48
52
|
/** Total height of all rows combined. */
|
|
@@ -54,4 +58,4 @@ export type RowResizingApi = {
|
|
|
54
58
|
/** Begins resizing the row at `index`. Wire to the row header resize handle. */
|
|
55
59
|
startRowResize: RowResizeStartHandler;
|
|
56
60
|
};
|
|
57
|
-
export declare function useRowResizing({ rowHeight, rowCount, rowHeights, defaultRowHeights, enableRowResizing, minRowHeight, maxRowHeight, onRowHeightChanged, }: RowResizingOptions): RowResizingApi;
|
|
61
|
+
export declare function useRowResizing({ rowHeight, rowCount, getDetailHeight, rowHeights, defaultRowHeights, enableRowResizing, minRowHeight, maxRowHeight, onRowHeightChanged, }: RowResizingOptions): RowResizingApi;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SetStateAction } from 'react';
|
|
1
2
|
export type UseUncontrolledInput<T> = {
|
|
2
3
|
/** Value for controlled state. */
|
|
3
4
|
value?: T;
|
|
@@ -16,4 +17,4 @@ export type UseUncontrolledInput<T> = {
|
|
|
16
17
|
* Returns the resolved value, a setter that notifies `onChange` in both modes,
|
|
17
18
|
* and whether the state is currently controlled (`value` was provided).
|
|
18
19
|
*/
|
|
19
|
-
export declare function useUncontrolled<T>({ value, initialValue, finalValue, onChange, }: UseUncontrolledInput<T>): [T, (
|
|
20
|
+
export declare function useUncontrolled<T>({ value, initialValue, finalValue, onChange, }: UseUncontrolledInput<T>): [T, (update: SetStateAction<T>) => void, boolean];
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import type { IconProps } from '@blueprintjs/core';
|
|
2
|
+
import { type ButtonHTMLAttributes, type HTMLAttributes, type HTMLProps, type ReactNode, type MutableRefObject } from 'react';
|
|
3
|
+
import { ColumnPinningState, ColumnVisibilityState, type Cell, type ExpandedState, type Row, RowData, RowPinningState, RowSelectionState, TableFeatures, TableOptions, TableState, ReactTable, type CellData } from '@tanstack/react-table';
|
|
3
4
|
declare module '@tanstack/react-table' {
|
|
4
5
|
/**
|
|
5
6
|
* Extra metadata supported on column definitions, applied by `BP_Table` when
|
|
@@ -73,4 +74,23 @@ export type BP_ColumnPinningState = ColumnPinningState;
|
|
|
73
74
|
export type BP_RowPinningState = RowPinningState;
|
|
74
75
|
/** Maps row ids to their selection (`true` = selected), driven by the row-selection checkboxes. */
|
|
75
76
|
export type BP_RowSelectionState = RowSelectionState;
|
|
77
|
+
/** Expanded row IDs, or `true` to expand every eligible row. */
|
|
78
|
+
export type BP_ExpandedRowsState = ExpandedState;
|
|
79
|
+
export type BP_RowDetailRenderer<TData extends BP_RowData> = (row: Row<BP_TableFeatures, TData>) => ReactNode;
|
|
80
|
+
/** HTML attributes for a rendered data cell. The table owns its contents. */
|
|
81
|
+
export type BP_BodyElementProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML'> & {
|
|
82
|
+
[attribute: `data-${string}`]: string | number | boolean | undefined;
|
|
83
|
+
};
|
|
84
|
+
export type BP_BodyPropsOptions<TData extends BP_RowData> = {
|
|
85
|
+
/** Attributes and event handlers for the entire data cell, including its padding. */
|
|
86
|
+
getCellProps?: (cell: Cell<BP_TableFeatures, TData, unknown>) => BP_BodyElementProps | undefined;
|
|
87
|
+
};
|
|
88
|
+
type RowExpanderPropsValue<TData extends BP_RowData, TProps> = TProps | ((row: Row<BP_TableFeatures, TData>) => TProps);
|
|
89
|
+
export type BP_RowExpanderOptions<TData extends BP_RowData> = {
|
|
90
|
+
/** Native props for the row's disclosure button, or a function of the row. */
|
|
91
|
+
rowExpanderButtonProps?: RowExpanderPropsValue<TData, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'dangerouslySetInnerHTML'>>;
|
|
92
|
+
/** Blueprint Icon props, or a function of the row for state-dependent icons. */
|
|
93
|
+
rowExpanderIconProps?: RowExpanderPropsValue<TData, Partial<IconProps>>;
|
|
94
|
+
};
|
|
76
95
|
export type BP_TableInstance<TData extends BP_RowData = BP_RowData> = ReactTable<BP_TableFeatures, TData>;
|
|
96
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigcapitalhq/blueprintjs-react-table",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "A Blueprint.js-styled data table for React, built on TanStack Table v9 with row virtualization, quadrant layout, and Blueprint-style focus & selection.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/blueprintjs-react-table.cjs",
|