@ai-matrx/design-system 0.60.6 → 0.60.8
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 +12 -0
- package/dist/data-table/copy-helpers.d.cts +1 -1
- package/dist/data-table/copy-helpers.d.ts +1 -1
- package/dist/data-table/filter-engine.d.cts +2 -2
- package/dist/data-table/filter-engine.d.ts +2 -2
- package/dist/data-table/host.d.cts +1 -1
- package/dist/data-table/host.d.ts +1 -1
- package/dist/data-table/index.cjs +2299 -2220
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +2 -2
- package/dist/data-table/index.d.ts +2 -2
- package/dist/data-table/index.js +1874 -1795
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/infer-filter.d.cts +2 -2
- package/dist/data-table/infer-filter.d.ts +2 -2
- package/dist/data-table/layered-filters.d.cts +2 -2
- package/dist/data-table/layered-filters.d.ts +2 -2
- package/dist/data-table/pagination.cjs +16 -10
- package/dist/data-table/pagination.cjs.map +1 -1
- package/dist/data-table/pagination.js +16 -10
- package/dist/data-table/pagination.js.map +1 -1
- package/dist/data-table/query-control.d.cts +2 -2
- package/dist/data-table/query-control.d.ts +2 -2
- package/dist/data-table/types.cjs.map +1 -1
- package/dist/data-table/types.d.cts +1 -1
- package/dist/data-table/types.d.ts +1 -1
- package/dist/data-table/url-state.d.cts +2 -2
- package/dist/data-table/url-state.d.ts +2 -2
- package/dist/data-table/xlsx.d.cts +2 -2
- package/dist/data-table/xlsx.d.ts +2 -2
- package/dist/{layered-filters-cXDqSLSR.d.ts → layered-filters-BsnawJgC.d.ts} +49 -2
- package/dist/{layered-filters-CNFxkmfs.d.cts → layered-filters-C9MwGVTc.d.cts} +49 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as MatrxColumnDef, f as ColumnFilterKind } from '../layered-filters-
|
|
2
|
-
import '../content-transfer.cjs';
|
|
1
|
+
import { M as MatrxColumnDef, f as ColumnFilterKind } from '../layered-filters-C9MwGVTc.cjs';
|
|
3
2
|
import 'react';
|
|
3
|
+
import '../content-transfer.cjs';
|
|
4
4
|
import '@ai-matrx/kit/content-transfer';
|
|
5
5
|
import '../content-transfer/icon.cjs';
|
|
6
6
|
import './copy-types.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as MatrxColumnDef, f as ColumnFilterKind } from '../layered-filters-
|
|
2
|
-
import '../content-transfer.js';
|
|
1
|
+
import { M as MatrxColumnDef, f as ColumnFilterKind } from '../layered-filters-BsnawJgC.js';
|
|
3
2
|
import 'react';
|
|
3
|
+
import '../content-transfer.js';
|
|
4
4
|
import '@ai-matrx/kit/content-transfer';
|
|
5
5
|
import '../content-transfer/icon.js';
|
|
6
6
|
import './copy-types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '../content-transfer.cjs';
|
|
1
|
+
export { ai as LAYERED_FILTER_OPERATORS, aj as LAYERED_FILTER_OPERATOR_LABELS, ak as LayeredFilterField, al as LayeredFilterOperator, L as LayeredFilterRule, am as columnFiltersToLayeredRules, an as completeLayeredFilterRules, ao as decodeLayeredFilterRules, ap as encodeLayeredFilterRules, aq as isCompleteLayeredFilterRule, ar as isLayeredFilterOperator, as as layeredFilterMatchesValue, at as layeredFilterNeedsValue, au as layeredFilterRuleSummary, av as operatorsForLayeredField } from '../layered-filters-C9MwGVTc.cjs';
|
|
3
2
|
import 'react';
|
|
3
|
+
import '../content-transfer.cjs';
|
|
4
4
|
import '@ai-matrx/kit/content-transfer';
|
|
5
5
|
import '../content-transfer/icon.cjs';
|
|
6
6
|
import './copy-types.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '../content-transfer.js';
|
|
1
|
+
export { ai as LAYERED_FILTER_OPERATORS, aj as LAYERED_FILTER_OPERATOR_LABELS, ak as LayeredFilterField, al as LayeredFilterOperator, L as LayeredFilterRule, am as columnFiltersToLayeredRules, an as completeLayeredFilterRules, ao as decodeLayeredFilterRules, ap as encodeLayeredFilterRules, aq as isCompleteLayeredFilterRule, ar as isLayeredFilterOperator, as as layeredFilterMatchesValue, at as layeredFilterNeedsValue, au as layeredFilterRuleSummary, av as operatorsForLayeredField } from '../layered-filters-BsnawJgC.js';
|
|
3
2
|
import 'react';
|
|
3
|
+
import '../content-transfer.js';
|
|
4
4
|
import '@ai-matrx/kit/content-transfer';
|
|
5
5
|
import '../content-transfer/icon.js';
|
|
6
6
|
import './copy-types.js';
|
|
@@ -931,7 +931,7 @@ function GenericTablePagination({
|
|
|
931
931
|
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ChevronLeft, { className: "h-5 w-5" })
|
|
932
932
|
}
|
|
933
933
|
),
|
|
934
|
-
|
|
934
|
+
(unknownTotal ? [currentPage] : getPageNumbers(3)).map((page) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
935
935
|
PaginationAction,
|
|
936
936
|
{
|
|
937
937
|
HostAction: host.ToolbarAction,
|
|
@@ -941,13 +941,15 @@ function GenericTablePagination({
|
|
|
941
941
|
disabledHint: isFetching ? "Loading source page" : `Already on page ${page}`,
|
|
942
942
|
visibilityClassName: "hidden",
|
|
943
943
|
fallbackClassName: page === currentPage ? pageActiveButtonClassName : pageButtonClassName,
|
|
944
|
-
onClick: () =>
|
|
945
|
-
|
|
944
|
+
onClick: () => {
|
|
945
|
+
if (!unknownTotal) onPageChange(page);
|
|
946
|
+
},
|
|
947
|
+
disabled: Boolean(unknownTotal) || isFetching || totalPages <= 1,
|
|
946
948
|
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: page })
|
|
947
949
|
},
|
|
948
950
|
`mobile-${page}`
|
|
949
951
|
)),
|
|
950
|
-
|
|
952
|
+
(unknownTotal ? [currentPage] : getPageNumbers()).map((page) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
951
953
|
PaginationAction,
|
|
952
954
|
{
|
|
953
955
|
HostAction: host.ToolbarAction,
|
|
@@ -957,8 +959,10 @@ function GenericTablePagination({
|
|
|
957
959
|
disabledHint: isFetching ? "Loading source page" : `Already on page ${page}`,
|
|
958
960
|
visibilityClassName: "hidden sm:inline-flex",
|
|
959
961
|
fallbackClassName: currentPage === page ? pageActiveButtonClassName : pageButtonClassName,
|
|
960
|
-
onClick: () =>
|
|
961
|
-
|
|
962
|
+
onClick: () => {
|
|
963
|
+
if (!unknownTotal) onPageChange(page);
|
|
964
|
+
},
|
|
965
|
+
disabled: Boolean(unknownTotal) || isFetching || totalPages <= 1,
|
|
962
966
|
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: page })
|
|
963
967
|
},
|
|
964
968
|
`desktop-${page}`
|
|
@@ -976,17 +980,19 @@ function GenericTablePagination({
|
|
|
976
980
|
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ChevronRight, { className: "h-5 w-5" })
|
|
977
981
|
}
|
|
978
982
|
),
|
|
979
|
-
|
|
983
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
980
984
|
PaginationAction,
|
|
981
985
|
{
|
|
982
986
|
HostAction: host.ToolbarAction,
|
|
983
987
|
compact,
|
|
984
988
|
ariaLabel: "Last page",
|
|
985
|
-
disabledHint: isFetching ? "Loading source page" : "Already on the last page",
|
|
989
|
+
disabledHint: unknownTotal ? "Last page is unknown" : isFetching ? "Loading source page" : "Already on the last page",
|
|
986
990
|
visibilityClassName: "hidden sm:inline-flex",
|
|
987
991
|
fallbackClassName: navButtonClassName,
|
|
988
|
-
onClick: () =>
|
|
989
|
-
|
|
992
|
+
onClick: () => {
|
|
993
|
+
if (!unknownTotal) onPageChange(totalPages);
|
|
994
|
+
},
|
|
995
|
+
disabled: Boolean(unknownTotal) || isLastPageDisabled,
|
|
990
996
|
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ChevronsRight, { className: "h-5 w-5" })
|
|
991
997
|
}
|
|
992
998
|
)
|