@upbound/monarch-blocks 0.11.1 → 0.12.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/data-table.d.ts +33 -38
- package/dist/data-table.js +87 -49
- package/dist/data-table.js.map +1 -1
- package/dist/{empty-view-CjRwaITk.d.ts → empty-view--jBQ7evg.d.ts} +80 -8
- package/dist/graph.d.ts +5 -4
- package/dist/graph.js +52 -10
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +90 -61
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { ChartAction, ChartConfig, ChartContainer, ChartDescription, ChartFooter
|
|
|
4
4
|
export { ChatInput, ChatInputProps, ChatInterface, ChatInterfaceProps, ChatMessage, ChatMessageBubble, ChatRoutine, ChatSession, ChatSessionList, ChatSessionListProps, ChatThread, ChatThreadProps, ChatToolCall } from './chat-interface.js';
|
|
5
5
|
export { CodeBlock, CodeBlockBody, CodeBlockCode, CodeBlockCopyButton, CodeBlockDownloadButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLanguage } from './code-block.js';
|
|
6
6
|
export { CellContextualFilter, CellContextualFilterProps, ColumnOptions, ColumnOptionsProps, ContextualMenuAction, DataTable, DataTableBody, DataTableCelFilterConfig, DataTableCell, DataTableExpandedRow, DataTableFilterVisibilityConfig, DataTableGroupRow, DataTableHeader, DataTablePagination, DataTablePaginationConfig, DataTablePaginationProps, DataTableProps, DataTableRow, DataTableRowProps, DataTableSearchConfig, DataTableSkeletonBody, DataTableValueCell, DataTableValueCellProps, ExpandButton, RowActionItem, RowActions, RowCountRelation, StickyHeaderConfig, TableHookOptions, TableLayout, TimestampCell, ViewFilter, ViewFilterProps, getActionsColumnDefinition, getExpandColumnDefinition, normalizePageSizeOptions } from './data-table.js';
|
|
7
|
-
export { D as
|
|
7
|
+
export { D as DataTableCellInstance, a as DataTableColumnDef, b as DataTableColumnInstance, c as DataTableEmptyConfig, d as DataTableEmptyView, e as DataTableFeatures, f as DataTableHeaderGroupInstance, g as DataTableHeaderInstance, h as DataTableInstance, i as DataTableOptions, j as DataTableRowInstance, k as dataTableFeatures, l as defaultEmptyConfig, m as defaultErrorConfig, n as defaultNoFilterFoundConfig } from './empty-view--jBQ7evg.js';
|
|
8
8
|
export { ActiveFilter, CheckboxFilterDefinition, CheckboxFilterValue, DateFilterDefinition, DateFilterValue, FilterBar, FilterBarProps, FilterChip, FilterDefinition, FilterOption, FilterType, FilterValue, MultiTextFilterDefinition, MultiTextFilterValue, RadioFilterDefinition, RadioFilterValue, TextFilterDefinition, TextFilterValue } from './filter-bar.js';
|
|
9
9
|
export { FloatingWidget, FloatingWidgetProvider, useFloatingWidget } from './floating-widget.js';
|
|
10
10
|
export { Edge, Node } from 'reactflow';
|
|
@@ -18,3 +18,4 @@ import 'react';
|
|
|
18
18
|
import 'recharts';
|
|
19
19
|
import '@tanstack/react-table';
|
|
20
20
|
import '@upbound/monarch-core';
|
|
21
|
+
import '@tanstack/table-core';
|
package/dist/index.js
CHANGED
|
@@ -3420,9 +3420,9 @@ function isSameColumnOrdering(left, right) {
|
|
|
3420
3420
|
}
|
|
3421
3421
|
function splitColumnOrderByPinning(fullColumnOrder, getColumnPinning2) {
|
|
3422
3422
|
return {
|
|
3423
|
-
|
|
3423
|
+
startPinnedColumns: fullColumnOrder.filter((columnId) => getColumnPinning2(columnId) === "start"),
|
|
3424
3424
|
unpinnedColumns: fullColumnOrder.filter((columnId) => getColumnPinning2(columnId) === false),
|
|
3425
|
-
|
|
3425
|
+
endPinnedColumns: fullColumnOrder.filter((columnId) => getColumnPinning2(columnId) === "end")
|
|
3426
3426
|
};
|
|
3427
3427
|
}
|
|
3428
3428
|
function mergeUnpinnedColumnOrder(fullColumnOrder, nextUnpinnedOrder, getColumnPinning2) {
|
|
@@ -3569,7 +3569,7 @@ function ColumnOptions({
|
|
|
3569
3569
|
(columnId) => getColumnPinning(allColumnById.get(columnId)),
|
|
3570
3570
|
[allColumnById]
|
|
3571
3571
|
);
|
|
3572
|
-
const {
|
|
3572
|
+
const { startPinnedColumns, unpinnedColumns, endPinnedColumns } = splitColumnOrderByPinning(
|
|
3573
3573
|
fullColumnOrder,
|
|
3574
3574
|
getColumnPinningFor
|
|
3575
3575
|
);
|
|
@@ -3645,9 +3645,9 @@ function ColumnOptions({
|
|
|
3645
3645
|
var _a;
|
|
3646
3646
|
return column.getIsPinned() === false && !((_a = column.columnDef.meta) == null ? void 0 : _a.pinning);
|
|
3647
3647
|
}
|
|
3648
|
-
const
|
|
3648
|
+
const startPinned = orderedColumns(startPinnedColumns);
|
|
3649
3649
|
const unpinned = orderedColumns(unpinnedColumns);
|
|
3650
|
-
const
|
|
3650
|
+
const endPinned = orderedColumns(endPinnedColumns);
|
|
3651
3651
|
return /* @__PURE__ */ jsxs6(DropdownMenu2, { children: [
|
|
3652
3652
|
/* @__PURE__ */ jsx8(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs6(Button3, { variant: "outline", className: "shrink-0", children: [
|
|
3653
3653
|
/* @__PURE__ */ jsx8(Icon4, { name: "table-columns", "data-icon": "inline-start" }),
|
|
@@ -3655,7 +3655,7 @@ function ColumnOptions({
|
|
|
3655
3655
|
/* @__PURE__ */ jsx8(Icon4, { name: "chevron-down", "data-icon": "inline-end" })
|
|
3656
3656
|
] }) }),
|
|
3657
3657
|
/* @__PURE__ */ jsx8(DropdownMenuContent2, { className: "w-58 p-0", children: /* @__PURE__ */ jsxs6("div", { className: "p-1", children: [
|
|
3658
|
-
[...
|
|
3658
|
+
[...startPinned, ...unpinned].map((column) => /* @__PURE__ */ jsx8(
|
|
3659
3659
|
ColumnOptionsItem,
|
|
3660
3660
|
{
|
|
3661
3661
|
column,
|
|
@@ -3684,7 +3684,7 @@ function ColumnOptions({
|
|
|
3684
3684
|
)
|
|
3685
3685
|
}
|
|
3686
3686
|
),
|
|
3687
|
-
|
|
3687
|
+
endPinned.map((column) => /* @__PURE__ */ jsx8(
|
|
3688
3688
|
ColumnOptionsItem,
|
|
3689
3689
|
{
|
|
3690
3690
|
column,
|
|
@@ -3761,7 +3761,7 @@ function getActionsColumnDefinition({
|
|
|
3761
3761
|
enableGlobalFilter: false,
|
|
3762
3762
|
enableSorting: false,
|
|
3763
3763
|
enableHiding: false,
|
|
3764
|
-
meta: { pinning: "
|
|
3764
|
+
meta: { pinning: "end", actions: true },
|
|
3765
3765
|
cell
|
|
3766
3766
|
};
|
|
3767
3767
|
}
|
|
@@ -3795,7 +3795,7 @@ function getExpandColumnDefinition(options) {
|
|
|
3795
3795
|
enableGlobalFilter: false,
|
|
3796
3796
|
enableSorting: false,
|
|
3797
3797
|
enableHiding: false,
|
|
3798
|
-
meta: { pinning: "
|
|
3798
|
+
meta: { pinning: "end", actions: true },
|
|
3799
3799
|
cell: (_a = options == null ? void 0 : options.cell) != null ? _a : (({ row }) => /* @__PURE__ */ jsx9(ExpandButton, { row }))
|
|
3800
3800
|
};
|
|
3801
3801
|
}
|
|
@@ -3831,20 +3831,60 @@ function TimestampCell({ timestamp }) {
|
|
|
3831
3831
|
// src/data-table/data-table.tsx
|
|
3832
3832
|
import * as React11 from "react";
|
|
3833
3833
|
import {
|
|
3834
|
-
|
|
3835
|
-
getExpandedRowModel,
|
|
3836
|
-
getFacetedRowModel,
|
|
3837
|
-
getFacetedUniqueValues,
|
|
3838
|
-
getFilteredRowModel,
|
|
3839
|
-
getGroupedRowModel,
|
|
3840
|
-
getPaginationRowModel,
|
|
3841
|
-
getSortedRowModel,
|
|
3842
|
-
noop,
|
|
3843
|
-
useReactTable
|
|
3834
|
+
useTable
|
|
3844
3835
|
} from "@tanstack/react-table";
|
|
3845
3836
|
import { Icon as Icon11 } from "@upbound/monarch-core";
|
|
3846
3837
|
import { InputGroup as InputGroup4, InputGroupAddon as InputGroupAddon4, InputGroupButton as InputGroupButton2, InputGroupInput as InputGroupInput3 } from "@upbound/monarch-core";
|
|
3847
3838
|
|
|
3839
|
+
// src/lib/data-table/features.ts
|
|
3840
|
+
import {
|
|
3841
|
+
columnFacetingFeature,
|
|
3842
|
+
columnFilteringFeature,
|
|
3843
|
+
columnGroupingFeature,
|
|
3844
|
+
columnOrderingFeature,
|
|
3845
|
+
columnPinningFeature,
|
|
3846
|
+
columnResizingFeature,
|
|
3847
|
+
columnSizingFeature,
|
|
3848
|
+
columnVisibilityFeature,
|
|
3849
|
+
createExpandedRowModel,
|
|
3850
|
+
createFacetedRowModel,
|
|
3851
|
+
createFacetedUniqueValues,
|
|
3852
|
+
createFilteredRowModel,
|
|
3853
|
+
createGroupedRowModel,
|
|
3854
|
+
createPaginatedRowModel,
|
|
3855
|
+
createSortedRowModel,
|
|
3856
|
+
filterFns,
|
|
3857
|
+
globalFilteringFeature,
|
|
3858
|
+
rowExpandingFeature,
|
|
3859
|
+
rowPaginationFeature,
|
|
3860
|
+
rowSortingFeature,
|
|
3861
|
+
sortFns,
|
|
3862
|
+
tableFeatures
|
|
3863
|
+
} from "@tanstack/react-table";
|
|
3864
|
+
var dataTableFeatures = tableFeatures({
|
|
3865
|
+
columnFilteringFeature,
|
|
3866
|
+
globalFilteringFeature,
|
|
3867
|
+
columnFacetingFeature,
|
|
3868
|
+
rowSortingFeature,
|
|
3869
|
+
rowPaginationFeature,
|
|
3870
|
+
rowExpandingFeature,
|
|
3871
|
+
columnGroupingFeature,
|
|
3872
|
+
columnOrderingFeature,
|
|
3873
|
+
columnPinningFeature,
|
|
3874
|
+
columnVisibilityFeature,
|
|
3875
|
+
columnSizingFeature,
|
|
3876
|
+
columnResizingFeature,
|
|
3877
|
+
filteredRowModel: createFilteredRowModel(),
|
|
3878
|
+
facetedRowModel: createFacetedRowModel(),
|
|
3879
|
+
facetedUniqueValues: createFacetedUniqueValues(),
|
|
3880
|
+
sortedRowModel: createSortedRowModel(),
|
|
3881
|
+
paginatedRowModel: createPaginatedRowModel(),
|
|
3882
|
+
groupedRowModel: createGroupedRowModel(),
|
|
3883
|
+
expandedRowModel: createExpandedRowModel(),
|
|
3884
|
+
filterFns,
|
|
3885
|
+
sortFns
|
|
3886
|
+
});
|
|
3887
|
+
|
|
3848
3888
|
// src/lib/data-table/contextual-filters.ts
|
|
3849
3889
|
function valueToString(value) {
|
|
3850
3890
|
if (value === void 0 || value === null) return void 0;
|
|
@@ -4276,7 +4316,7 @@ function useGridLayout({
|
|
|
4276
4316
|
React6.useLayoutEffect(() => {
|
|
4277
4317
|
if (gridTemplate) gridVisualColumnOrder.current = gridTemplate.visualOrder;
|
|
4278
4318
|
}, [gridTemplate]);
|
|
4279
|
-
const resizingColumn = table.
|
|
4319
|
+
const resizingColumn = table.state.columnResizing.isResizingColumn;
|
|
4280
4320
|
React6.useLayoutEffect(() => {
|
|
4281
4321
|
var _a;
|
|
4282
4322
|
if (resizingColumn && !prevResizingColumn.current) {
|
|
@@ -4335,7 +4375,7 @@ function useGridLayout({
|
|
|
4335
4375
|
const scrollEl = tableBodyScrollRef.current;
|
|
4336
4376
|
if (!scrollEl) return;
|
|
4337
4377
|
const observer = new ResizeObserver(() => {
|
|
4338
|
-
if (!table.
|
|
4378
|
+
if (!table.atoms.columnResizing.get().isResizingColumn) {
|
|
4339
4379
|
measureContentMins();
|
|
4340
4380
|
}
|
|
4341
4381
|
});
|
|
@@ -4346,7 +4386,7 @@ function useGridLayout({
|
|
|
4346
4386
|
if (!isGrid) return;
|
|
4347
4387
|
const tableEl = gridRootRef.current;
|
|
4348
4388
|
if (!tableEl) return;
|
|
4349
|
-
const { isResizingColumn, deltaOffset } = table.
|
|
4389
|
+
const { isResizingColumn, deltaOffset } = table.atoms.columnResizing.get();
|
|
4350
4390
|
if (isResizingColumn && deltaOffset != null) {
|
|
4351
4391
|
const nextFr = computeGridResizeFrValues({
|
|
4352
4392
|
resizingColumnId: isResizingColumn,
|
|
@@ -4363,7 +4403,7 @@ function useGridLayout({
|
|
|
4363
4403
|
gridPersistedFr.current = resolveGridPersistedFr({
|
|
4364
4404
|
visualOrder: gridVisualColumnOrder.current,
|
|
4365
4405
|
persistedFr: gridPersistedFr.current,
|
|
4366
|
-
columnSizing: table.
|
|
4406
|
+
columnSizing: table.atoms.columnSizing.get(),
|
|
4367
4407
|
measuredMins: gridMeasuredMins,
|
|
4368
4408
|
getGridSizing: (colId) => {
|
|
4369
4409
|
var _a, _b;
|
|
@@ -4664,9 +4704,7 @@ function DataTablePagination({
|
|
|
4664
4704
|
|
|
4665
4705
|
// src/data-table/table-primitives.tsx
|
|
4666
4706
|
import * as React8 from "react";
|
|
4667
|
-
import {
|
|
4668
|
-
flexRender as flexRender2
|
|
4669
|
-
} from "@tanstack/react-table";
|
|
4707
|
+
import { flexRender as flexRender2 } from "@tanstack/react-table";
|
|
4670
4708
|
import { ContextMenu, ContextMenuTrigger } from "@upbound/monarch-core";
|
|
4671
4709
|
import {
|
|
4672
4710
|
DropdownMenu as DropdownMenu4,
|
|
@@ -4716,18 +4754,18 @@ function DataTableRoot({
|
|
|
4716
4754
|
function getColumnPinningProps(column, surface = "body") {
|
|
4717
4755
|
const isPinned = column.getIsPinned();
|
|
4718
4756
|
if (!isPinned) return { className: "", style: {} };
|
|
4719
|
-
const
|
|
4720
|
-
const
|
|
4757
|
+
const isLastStart = isPinned === "start" && column.getIsLastColumn("start");
|
|
4758
|
+
const isFirstEnd = isPinned === "end" && column.getIsFirstColumn("end");
|
|
4721
4759
|
return {
|
|
4722
4760
|
className: cn(
|
|
4723
4761
|
"sticky",
|
|
4724
4762
|
surface === "header" ? HEADER_SURFACE_BG : "bg-card",
|
|
4725
|
-
|
|
4726
|
-
|
|
4763
|
+
isLastStart && "border-e-2 border-e-border",
|
|
4764
|
+
isFirstEnd && "border-s-2 border-s-border"
|
|
4727
4765
|
),
|
|
4728
4766
|
style: {
|
|
4729
|
-
|
|
4730
|
-
|
|
4767
|
+
insetInlineStart: isPinned === "start" ? `${column.getStart("start")}px` : void 0,
|
|
4768
|
+
insetInlineEnd: isPinned === "end" ? `${column.getAfter("end")}px` : void 0,
|
|
4731
4769
|
width: column.getSize()
|
|
4732
4770
|
}
|
|
4733
4771
|
};
|
|
@@ -4803,7 +4841,7 @@ function ColumnActionsMenuItems({
|
|
|
4803
4841
|
canPin && (header.column.getIsPinned() ? /* @__PURE__ */ jsxs11(DropdownMenuItem4, { onClick: () => header.column.pin(false), children: [
|
|
4804
4842
|
/* @__PURE__ */ jsx13(Icon9, { name: "thumbtack" }),
|
|
4805
4843
|
"Unpin column"
|
|
4806
|
-
] }) : /* @__PURE__ */ jsxs11(DropdownMenuItem4, { onClick: () => header.column.pin("
|
|
4844
|
+
] }) : /* @__PURE__ */ jsxs11(DropdownMenuItem4, { onClick: () => header.column.pin("start"), children: [
|
|
4807
4845
|
/* @__PURE__ */ jsx13(Icon9, { name: "thumbtack" }),
|
|
4808
4846
|
"Pin column"
|
|
4809
4847
|
] }))
|
|
@@ -5899,6 +5937,8 @@ function SectionHeaderTabs(_a) {
|
|
|
5899
5937
|
// src/data-table/data-table.tsx
|
|
5900
5938
|
import { Fragment as Fragment9, jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
5901
5939
|
var DEFAULT_PAGE_SIZE = 20;
|
|
5940
|
+
var noop = () => {
|
|
5941
|
+
};
|
|
5902
5942
|
var STICKY_HEADER_MAX_HEIGHT_CLASS = "max-h-[calc(100svh-250px)]";
|
|
5903
5943
|
function DataTable({
|
|
5904
5944
|
id,
|
|
@@ -5962,7 +6002,7 @@ function DataTable({
|
|
|
5962
6002
|
const [innerColumnOrdering, setInnerColumnOrdering] = React11.useState([]);
|
|
5963
6003
|
const [innerColumnFilters, setInnerColumnFilters] = React11.useState([]);
|
|
5964
6004
|
const [innerSorting, setInnerSorting] = React11.useState(((_a = config.state) == null ? void 0 : _a.sorting) || []);
|
|
5965
|
-
const [innerColumnPinning, setInnerColumnPinning] = React11.useState({
|
|
6005
|
+
const [innerColumnPinning, setInnerColumnPinning] = React11.useState({ start: [], end: [] });
|
|
5966
6006
|
const [innerPagination, setInnerPagination] = React11.useState({
|
|
5967
6007
|
pageIndex: ((_c = (_b = config.state) == null ? void 0 : _b.pagination) == null ? void 0 : _c.pageIndex) || 0,
|
|
5968
6008
|
pageSize: ((_e = (_d = config.state) == null ? void 0 : _d.pagination) == null ? void 0 : _e.pageSize) || DEFAULT_PAGE_SIZE
|
|
@@ -6035,18 +6075,18 @@ function DataTable({
|
|
|
6035
6075
|
const hasExternalSearch = parentGlobalFilter !== void 0;
|
|
6036
6076
|
const hasExternalFilters = parentColumnFilters !== void 0;
|
|
6037
6077
|
const shouldDisableFiltersModels = !!disableFilters && !!disableSearch && !hasExternalSearch && !hasExternalFilters;
|
|
6038
|
-
const table =
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
}), !!renderExpandedRow && { getRowCanExpand: () => true }), hasExpansion && { paginateExpandedRows: false }), {
|
|
6046
|
-
getGroupedRowModel: hasGrouping ? getGroupedRowModel() : void 0,
|
|
6078
|
+
const table = useTable(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, config), {
|
|
6079
|
+
features: dataTableFeatures,
|
|
6080
|
+
// Row models are registered statically in `dataTableFeatures`, so a disabled stage is switched
|
|
6081
|
+
// off with its `manual*` option (the stage then passes rows through untouched).
|
|
6082
|
+
manualSorting: serverSidePagination || disableSorting,
|
|
6083
|
+
manualFiltering: serverSidePagination || shouldDisableFiltersModels,
|
|
6084
|
+
manualPagination: serverSidePagination || shouldDisablePagination,
|
|
6047
6085
|
// Only grouping and `getSubRows` put extra rows in the row model; `renderExpandedRow`
|
|
6048
6086
|
// content renders outside it (see `DataTableBody`).
|
|
6049
|
-
|
|
6087
|
+
manualGrouping: !hasGrouping,
|
|
6088
|
+
manualExpanding: !hasGrouping && !hasSubRows
|
|
6089
|
+
}), !!renderExpandedRow && { getRowCanExpand: () => true }), hasExpansion && { paginateExpandedRows: false }), {
|
|
6050
6090
|
groupedColumnMode: hasGrouping ? "reorder" : void 0,
|
|
6051
6091
|
enableFilters: !shouldDisableFiltersModels,
|
|
6052
6092
|
enableGlobalFilter: !shouldDisableFiltersModels,
|
|
@@ -6068,13 +6108,10 @@ function DataTable({
|
|
|
6068
6108
|
columnOrder: disableColumnReordering ? [] : columnOrdering,
|
|
6069
6109
|
columnVisibility: disableColumnVisibility ? {} : columnVisibility,
|
|
6070
6110
|
columnSizing: disableColumnResizing ? {} : columnSizing,
|
|
6071
|
-
columnPinning: disableColumnPinning ? {
|
|
6111
|
+
columnPinning: disableColumnPinning ? { start: [], end: [] } : columnPinning
|
|
6072
6112
|
}, hasExpansion && { expanded }), {
|
|
6073
6113
|
grouping
|
|
6074
6114
|
}), hasGrouping && { expanded: true }),
|
|
6075
|
-
manualSorting: serverSidePagination,
|
|
6076
|
-
manualFiltering: serverSidePagination,
|
|
6077
|
-
manualPagination: serverSidePagination,
|
|
6078
6115
|
onSortingChange: disableSorting ? noop : setSorting,
|
|
6079
6116
|
onColumnFiltersChange: shouldDisableFiltersModels ? noop : setColumnFilters,
|
|
6080
6117
|
onGlobalFilterChange: shouldDisableFiltersModels ? noop : setGlobalFilter,
|
|
@@ -6140,7 +6177,7 @@ function DataTable({
|
|
|
6140
6177
|
const displayableIds = new Set(displayableColumns.map((c) => c.id));
|
|
6141
6178
|
return firstGroup.headers.filter((h) => displayableIds.has(h.column.id)).reduce((sum, h) => sum + h.column.getSize(), 0);
|
|
6142
6179
|
}, [isGrid, headerGroups, displayableColumns]);
|
|
6143
|
-
const filterCount = celFilterConfig ? celFilterConfig.activeFilterCount : table.
|
|
6180
|
+
const filterCount = celFilterConfig ? celFilterConfig.activeFilterCount : table.state.columnFilters.map(
|
|
6144
6181
|
({ id: columnFilterId, value }) => {
|
|
6145
6182
|
var _a2, _b2;
|
|
6146
6183
|
return getColumnFilterCount(value, (_b2 = (_a2 = table.getColumn(columnFilterId)) == null ? void 0 : _a2.columnDef.meta) == null ? void 0 : _b2.filter);
|
|
@@ -6900,13 +6937,7 @@ GraphActionsProvider.displayName = "GraphActionsProvider";
|
|
|
6900
6937
|
|
|
6901
6938
|
// src/graph/graph.tsx
|
|
6902
6939
|
import * as React17 from "react";
|
|
6903
|
-
import {
|
|
6904
|
-
getCoreRowModel as getCoreRowModel2,
|
|
6905
|
-
getFacetedRowModel as getFacetedRowModel2,
|
|
6906
|
-
getFacetedUniqueValues as getFacetedUniqueValues2,
|
|
6907
|
-
getFilteredRowModel as getFilteredRowModel2,
|
|
6908
|
-
useReactTable as useReactTable2
|
|
6909
|
-
} from "@tanstack/react-table";
|
|
6940
|
+
import { useTable as useTable2 } from "@tanstack/react-table";
|
|
6910
6941
|
import { Icon as Icon14, InputGroup as InputGroup5, InputGroupAddon as InputGroupAddon5, InputGroupInput as InputGroupInput4 } from "@upbound/monarch-core";
|
|
6911
6942
|
|
|
6912
6943
|
// src/graph/graph-view.tsx
|
|
@@ -7262,13 +7293,10 @@ function Graph({
|
|
|
7262
7293
|
}, [parentGlobalFilter]);
|
|
7263
7294
|
const columnFilters = parentColumnFilters != null ? parentColumnFilters : innerColumnFilters;
|
|
7264
7295
|
const setColumnFilters = parentSetColumnFilters != null ? parentSetColumnFilters : setInnerColumnFilters;
|
|
7265
|
-
const table =
|
|
7296
|
+
const table = useTable2({
|
|
7297
|
+
features: dataTableFeatures,
|
|
7266
7298
|
data: config.data,
|
|
7267
7299
|
columns: columnDefinitions,
|
|
7268
|
-
getCoreRowModel: getCoreRowModel2(),
|
|
7269
|
-
getFilteredRowModel: getFilteredRowModel2(),
|
|
7270
|
-
getFacetedRowModel: getFacetedRowModel2(),
|
|
7271
|
-
getFacetedUniqueValues: getFacetedUniqueValues2(),
|
|
7272
7300
|
state: { columnFilters, globalFilter },
|
|
7273
7301
|
onColumnFiltersChange: setColumnFilters,
|
|
7274
7302
|
onGlobalFilterChange: setGlobalFilter,
|
|
@@ -7592,6 +7620,7 @@ export {
|
|
|
7592
7620
|
createCelNodeId,
|
|
7593
7621
|
createDefaultCondition,
|
|
7594
7622
|
createEmptyCelFilterTree,
|
|
7623
|
+
dataTableFeatures,
|
|
7595
7624
|
dateBoundaryForOperator,
|
|
7596
7625
|
defaultEmptyConfig,
|
|
7597
7626
|
defaultErrorConfig,
|