@pathscale/ui 0.0.96 → 0.0.98

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11386,6 +11386,7 @@ function EnhancedTable_EnhancedTable(props) {
11386
11386
  return pageCount > 1 || totalRows > pageSize;
11387
11387
  });
11388
11388
  const headerGroups = ()=>table.getHeaderGroups();
11389
+ const visibleColumnCount = ()=>headerGroups()[0]?.headers.length ?? 0;
11389
11390
  const FilterIconTrigger = (props)=>(()=>{
11390
11391
  var _el$ = EnhancedTable_tmpl$();
11391
11392
  _el$.$$click = (e)=>{
@@ -11433,7 +11434,7 @@ function EnhancedTable_EnhancedTable(props) {
11433
11434
  }
11434
11435
  });
11435
11436
  };
11436
- const totalColumns = table.getAllLeafColumns().length + (local.enableRowSelection ? 1 : 0) + (local.expandable ? 1 : 0);
11437
+ table.getAllLeafColumns().length, local.enableRowSelection, local.expandable;
11437
11438
  return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(tableProps, {
11438
11439
  get ["class"] () {
11439
11440
  return dist_clsx(tableProps.class, "table-auto");
@@ -11558,7 +11559,7 @@ function EnhancedTable_EnhancedTable(props) {
11558
11559
  get children () {
11559
11560
  return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
11560
11561
  get colSpan () {
11561
- return table.getAllColumns().length;
11562
+ return visibleColumnCount();
11562
11563
  },
11563
11564
  class: "text-center py-6",
11564
11565
  get children () {
@@ -11574,7 +11575,7 @@ function EnhancedTable_EnhancedTable(props) {
11574
11575
  get children () {
11575
11576
  return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
11576
11577
  get colSpan () {
11577
- return table.getAllColumns().length;
11578
+ return visibleColumnCount();
11578
11579
  },
11579
11580
  class: "text-center py-4",
11580
11581
  get children () {
@@ -11655,7 +11656,7 @@ function EnhancedTable_EnhancedTable(props) {
11655
11656
  get children () {
11656
11657
  return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
11657
11658
  get colSpan () {
11658
- return row.getVisibleCells().length + (local.enableRowSelection ? 1 : 0) + (local.expandable ? 1 : 0);
11659
+ return visibleColumnCount();
11659
11660
  },
11660
11661
  get children () {
11661
11662
  return local.expandable?.expandedRowRender({
@@ -11682,7 +11683,9 @@ function EnhancedTable_EnhancedTable(props) {
11682
11683
  return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
11683
11684
  get children () {
11684
11685
  return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
11685
- colSpan: totalColumns,
11686
+ get colSpan () {
11687
+ return visibleColumnCount();
11688
+ },
11686
11689
  get children () {
11687
11690
  var _el$5 = EnhancedTable_tmpl$3(), _el$6 = _el$5.firstChild, _el$8 = (_el$6.firstChild, _el$6.nextSibling), _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$11 = _el$0.nextSibling, _el$12 = (_el$11.nextSibling, _el$9.nextSibling);
11688
11691
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(dropdown_Dropdown, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "0.0.96",
3
+ "version": "0.0.98",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",