@economic/taco 2.64.1-alpha.0 → 2.64.1-dataloader2-infinite-loop.0
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/taco.cjs +2 -21
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.css +0 -4
- package/dist/taco.js +2 -21
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.css
CHANGED
@@ -1623,10 +1623,6 @@ table[data-taco^='table'] tbody tr[data-row-create] td {
|
|
1623
1623
|
table[data-taco^='table'] tbody tr[data-row-create] td button {
|
1624
1624
|
@apply -mt-[3px];
|
1625
1625
|
}
|
1626
|
-
|
1627
|
-
table[data-taco='table3'] td [data-taco='combobox'] {
|
1628
|
-
display: inline;
|
1629
|
-
}
|
1630
1626
|
[data-taco='card-content'] > [data-taco='chart-wrapper']:not(:has([data-taco='chart-donut'], [data-taco='chart-pie'])) {
|
1631
1627
|
@apply w-full;
|
1632
1628
|
}
|
package/dist/taco.js
CHANGED
@@ -37818,9 +37818,6 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
|
|
37818
37818
|
virtualiser.measure();
|
37819
37819
|
}
|
37820
37820
|
}, [expandedState]);
|
37821
|
-
React__default.useEffect(() => {
|
37822
|
-
virtualiser.measure();
|
37823
|
-
}, [tableMeta.fontSize.size, tableMeta.rowHeight.height, JSON.stringify(table.getState().sorting), rows.length]);
|
37824
37821
|
const totalSize = virtualiser.getTotalSize();
|
37825
37822
|
const virtualItems = virtualiser.getVirtualItems();
|
37826
37823
|
const scrollToIndex = React__default.useCallback(
|
@@ -38431,21 +38428,6 @@ function Cell$2(props) {
|
|
38431
38428
|
}
|
38432
38429
|
return /* @__PURE__ */ React__default.createElement(CellRenderer, { ...cellProps });
|
38433
38430
|
}
|
38434
|
-
const useResizeObserver$1 = (ref, enabled = true) => {
|
38435
|
-
const [size2, setSize] = React__default.useState();
|
38436
|
-
React__default.useEffect(() => {
|
38437
|
-
if (!ref.current || !enabled) {
|
38438
|
-
return () => void 0;
|
38439
|
-
}
|
38440
|
-
const observer = new ResizeObserver((entries) => {
|
38441
|
-
const entry = entries[0];
|
38442
|
-
setSize({ height: entry.contentRect.height, width: entry.contentRect.width });
|
38443
|
-
});
|
38444
|
-
observer.observe(ref.current);
|
38445
|
-
return () => observer.disconnect();
|
38446
|
-
}, [enabled]);
|
38447
|
-
return size2;
|
38448
|
-
};
|
38449
38431
|
const DisplayRow = React__default.memo(function DisplayRow2(props) {
|
38450
38432
|
var _a, _b, _c;
|
38451
38433
|
const { children, cellRenderer: CellRenderer, index: index2, measureRow, row, table, ...otherAttributes } = props;
|
@@ -38540,13 +38522,12 @@ const DisplayRow = React__default.memo(function DisplayRow2(props) {
|
|
38540
38522
|
}
|
38541
38523
|
const ref = React__default.useRef(null);
|
38542
38524
|
const expansionRef = React__default.useRef(null);
|
38543
|
-
const expandedRowSize = useResizeObserver$1(expansionRef, !!expandedRow);
|
38544
38525
|
React__default.useEffect(() => {
|
38545
38526
|
var _a2, _b2;
|
38546
38527
|
const rowHeight = ((_a2 = ref.current) == null ? void 0 : _a2.getBoundingClientRect().height) ?? 0;
|
38547
38528
|
const expansionHeight = ((_b2 = expansionRef.current) == null ? void 0 : _b2.getBoundingClientRect().height) ?? 0;
|
38548
38529
|
measureRow(rowHeight + expansionHeight);
|
38549
|
-
}, [expansionRef.current
|
38530
|
+
}, [expansionRef.current]);
|
38550
38531
|
const className = clsx("group/row", otherAttributes.className, {
|
38551
38532
|
"hover:cursor-grab": tableMeta.rowDrag.isEnabled && typeof attributes.onClick !== "function",
|
38552
38533
|
"hover:cursor-pointer": typeof attributes.onClick === "function"
|
@@ -88591,7 +88572,7 @@ function getDirection(pageIndex, currentPages) {
|
|
88591
88572
|
return void 0;
|
88592
88573
|
}
|
88593
88574
|
function getPages(pageIndex, lastUsedPageIndex, currentPages, direction) {
|
88594
|
-
if (currentPages.length && (pageIndex === lastUsedPageIndex || currentPages.includes(pageIndex))) {
|
88575
|
+
if (currentPages.length && (pageIndex === lastUsedPageIndex || currentPages.includes(pageIndex) && !!direction)) {
|
88595
88576
|
return currentPages;
|
88596
88577
|
}
|
88597
88578
|
if (direction === "forward") {
|