@pathscale/ui 0.0.97 → 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.
- package/dist/index.js +12 -5
- 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
|
-
|
|
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");
|
|
@@ -11557,7 +11558,9 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
11557
11558
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.loading)() ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
|
|
11558
11559
|
get children () {
|
|
11559
11560
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
11560
|
-
colSpan
|
|
11561
|
+
get colSpan () {
|
|
11562
|
+
return visibleColumnCount();
|
|
11563
|
+
},
|
|
11561
11564
|
class: "text-center py-6",
|
|
11562
11565
|
get children () {
|
|
11563
11566
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.renderLoading)() ? local.renderLoading() : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(loading_Loading, {
|
|
@@ -11571,7 +11574,9 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
11571
11574
|
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(0 === tableRows().length && local.renderEmpty))() ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
|
|
11572
11575
|
get children () {
|
|
11573
11576
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
11574
|
-
colSpan
|
|
11577
|
+
get colSpan () {
|
|
11578
|
+
return visibleColumnCount();
|
|
11579
|
+
},
|
|
11575
11580
|
class: "text-center py-4",
|
|
11576
11581
|
get children () {
|
|
11577
11582
|
return local.renderEmpty();
|
|
@@ -11651,7 +11656,7 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
11651
11656
|
get children () {
|
|
11652
11657
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
11653
11658
|
get colSpan () {
|
|
11654
|
-
return
|
|
11659
|
+
return visibleColumnCount();
|
|
11655
11660
|
},
|
|
11656
11661
|
get children () {
|
|
11657
11662
|
return local.expandable?.expandedRowRender({
|
|
@@ -11678,7 +11683,9 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
11678
11683
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
|
|
11679
11684
|
get children () {
|
|
11680
11685
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
11681
|
-
colSpan
|
|
11686
|
+
get colSpan () {
|
|
11687
|
+
return visibleColumnCount();
|
|
11688
|
+
},
|
|
11682
11689
|
get children () {
|
|
11683
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);
|
|
11684
11691
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(dropdown_Dropdown, {
|