@adapttable/unstyled 0.3.2 → 1.0.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/CHANGELOG.md +26 -0
- package/dist/index.cjs +17 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c } from "react-compiler-runtime";
|
|
2
|
-
import { ACTIONS_COLUMN_KEY, EyeIcon, FILTER_TYPES, GripIcon, PIN_Z, PinIcon, RANGE_OPS, RANGE_OP_LABEL_KEYS, RANGE_SUFFIXES, columnMenuRows, columnReorderKeyProps, columnResizeHandleProps, createHistoryAdapter, createMemoryAdapter, defaultConfirm, defaultLabels, deriveSortByOptions, edgePinStyle, filterLabel, filterLabel as filterLabel$1, filterStateKeys, getHistoryAdapter, headerGroupRow, isDeclarativeFilters, nextPinSide, pageSizeOptions,
|
|
2
|
+
import { ACTIONS_COLUMN_KEY, EyeIcon, FILTER_TYPES, GripIcon, PIN_Z, PinIcon, RANGE_OPS, RANGE_OP_LABEL_KEYS, RANGE_SUFFIXES, columnMenuRows, columnReorderKeyProps, columnResizeHandleProps, createHistoryAdapter, createMemoryAdapter, defaultConfirm, defaultLabels, deriveSortByOptions, edgePinStyle, filterLabel, filterLabel as filterLabel$1, filterStateKeys, getHistoryAdapter, headerGroupRow, isDeclarativeFilters, nextPinSide, pageSizeOptions, paginationSlots, pinActionLabel, pinnedCellStyle, pinnedColumnWidth, readRangeWidget, resolveDisabledReason, resolveLabels, resolveVirtualRows, rowClickProps, runRowAction, tableMinWidth, tableRenderModel, useBackendData, useBulkActionRunner, useChromeBodyData, useChromeScrollReset, useColumnDragState, useDataTable, useFilterOptions, useFilterTriggerToggle, useFrontendData, useHorizontalOverflow, useSavedViews, useSavedViews as useSavedViews$1, useServerData, useTableChrome, useTableData, useTableData as useTableData$1, useTableUrlState, writeRangeWidget } from "@adapttable/core";
|
|
3
3
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { createPortal } from "react-dom";
|
|
@@ -1513,26 +1513,29 @@ function Footer(t0) {
|
|
|
1513
1513
|
if ($[23] !== classNames.pageButton || $[24] !== classNames.pageEllipsis || $[25] !== safePage || $[26] !== source || $[27] !== totalPages) {
|
|
1514
1514
|
let t11;
|
|
1515
1515
|
if ($[29] !== classNames.pageButton || $[30] !== classNames.pageEllipsis || $[31] !== safePage || $[32] !== source) {
|
|
1516
|
-
t11 = (
|
|
1517
|
-
|
|
1518
|
-
"
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1516
|
+
t11 = (t12) => {
|
|
1517
|
+
const { item, key } = t12;
|
|
1518
|
+
return item === "ellipsis" ? /* @__PURE__ */ jsx("span", {
|
|
1519
|
+
"data-adapttable-part": "page-ellipsis",
|
|
1520
|
+
"aria-hidden": "true",
|
|
1521
|
+
className: classNames.pageEllipsis,
|
|
1522
|
+
children: "…"
|
|
1523
|
+
}, key) : /* @__PURE__ */ jsx("button", {
|
|
1524
|
+
type: "button",
|
|
1525
|
+
"data-adapttable-part": "page-number",
|
|
1526
|
+
"aria-current": item === safePage ? "page" : void 0,
|
|
1527
|
+
className: classNames.pageButton,
|
|
1528
|
+
onClick: () => source.setPage(item),
|
|
1529
|
+
children: item
|
|
1530
|
+
}, key);
|
|
1531
|
+
};
|
|
1529
1532
|
$[29] = classNames.pageButton;
|
|
1530
1533
|
$[30] = classNames.pageEllipsis;
|
|
1531
1534
|
$[31] = safePage;
|
|
1532
1535
|
$[32] = source;
|
|
1533
1536
|
$[33] = t11;
|
|
1534
1537
|
} else t11 = $[33];
|
|
1535
|
-
t10 =
|
|
1538
|
+
t10 = paginationSlots(safePage, totalPages).map(t11);
|
|
1536
1539
|
$[23] = classNames.pageButton;
|
|
1537
1540
|
$[24] = classNames.pageEllipsis;
|
|
1538
1541
|
$[25] = safePage;
|