@svgrid/grid 2.2.31 → 2.2.33
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/README.md +1 -1
- package/dist/DockNodeView.svelte +1 -1
- package/dist/GridFooter.svelte +0 -40
- package/dist/GridMenus.svelte +0 -77
- package/dist/SvAvatar.svelte +1 -1
- package/dist/SvCheckBox.svelte +2 -1
- package/dist/SvCircularProgress.svelte +1 -1
- package/dist/SvDateRangeInput.svelte +1 -1
- package/dist/SvGrid.controller.svelte.d.ts +20 -0
- package/dist/SvGrid.controller.svelte.js +358 -18
- package/dist/SvGrid.css +103 -3
- package/dist/SvGrid.svelte +164 -35
- package/dist/SvGrid.types.d.ts +81 -0
- package/dist/SvGridChart.svelte +2 -10
- package/dist/SvGridDropdown.svelte +38 -6
- package/dist/SvGridDropdown.svelte.d.ts +4 -0
- package/dist/SvGridSelect.svelte +12 -5
- package/dist/SvGridSelect.svelte.d.ts +6 -0
- package/dist/SvGroupCell.svelte +9 -2
- package/dist/SvKbd.svelte +1 -1
- package/dist/SvList.svelte +1 -1
- package/dist/SvMenubar.svelte +1 -1
- package/dist/SvMultiSelect.svelte +12 -4
- package/dist/SvMultiSelect.svelte.d.ts +6 -0
- package/dist/SvOtpInput.svelte +1 -1
- package/dist/SvPasswordInput.svelte +1 -1
- package/dist/SvProgress.svelte +1 -1
- package/dist/SvRating.svelte +1 -1
- package/dist/SvResult.svelte +1 -1
- package/dist/SvRichText.svelte +35 -16
- package/dist/SvRichText.svelte.d.ts +9 -0
- package/dist/SvSwitchButton.svelte +2 -1
- package/dist/SvToaster.svelte +1 -1
- package/dist/SvTour.svelte +4 -0
- package/dist/SvTree.svelte +9 -2
- package/dist/SvTree.svelte.d.ts +5 -0
- package/dist/SvTreeSelect.svelte +6 -4
- package/dist/build-api.js +16 -0
- package/dist/cdn/{GridMenus-Ds3OpzZT.js → GridMenus-B7XhhqdN.js} +34 -36
- package/dist/cdn/{GridMenus-Da_p7SKS.js → GridMenus-BxmIvCJh.js} +35 -37
- package/dist/cdn/{SvDateTimePicker-DB0aIEk8.js → SvDateTimePicker-ClqtVIj3.js} +2 -1
- package/dist/cdn/{SvDateTimePicker-B8GopjhC.js → SvDateTimePicker-o94wfSUa.js} +3 -2
- package/dist/cdn/{SvGridChart-BcLCYvw9.js → SvGridChart-Cr_90pPD.js} +1 -1
- package/dist/cdn/{SvGridChartPanel-DvjwxLvK.js → SvGridChartPanel-ICbxiUvK.js} +4 -4
- package/dist/cdn/{SvGridChartView-PwqI4s02.js → SvGridChartView-Bx42PMvf.js} +2 -2
- package/dist/cdn/{SvGridDropdown-hpnHvOGt.js → SvGridDropdown-CUOdm7YA.js} +93 -88
- package/dist/cdn/{SvGridDropdown-DjALc_4f.js → SvGridDropdown-D0VdjeR8.js} +129 -123
- package/dist/cdn/{disclose-version-DoD9AFD_.js → disclose-version-DljhZohK.js} +45 -45
- package/dist/cdn/{src-DYDCiC0D.js → src-erjBRYfX.js} +5952 -5615
- package/dist/cdn/{src-BLJfdyL0.js → src-ktbQVOk-.js} +4190 -3851
- package/dist/cdn/svgrid.js +9 -9
- package/dist/cdn/svgrid.svelte-external.js +8 -8
- package/dist/cell-render.d.ts +1 -0
- package/dist/cell-render.js +115 -1
- package/dist/cell-values.js +5 -0
- package/dist/chart.d.ts +2 -0
- package/dist/chart.js +1 -4
- package/dist/core.d.ts +80 -9
- package/dist/core.js +89 -0
- package/dist/createMenu.svelte.js +0 -1
- package/dist/createPopoverSelect.svelte.d.ts +2 -2
- package/dist/editing.js +1 -1
- package/dist/editor-contract.d.ts +12 -5
- package/dist/editor-registry.d.ts +18 -7
- package/dist/editor-registry.js +10 -1
- package/dist/export-format.js +3 -0
- package/dist/group-display.d.ts +39 -0
- package/dist/group-display.js +52 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/keyboard-handlers.js +16 -0
- package/dist/recurrence.js +3 -2
- package/dist/selection.js +0 -1
- package/dist/svgrid-wrapper.types.d.ts +8 -2
- package/dist/themes/index.d.ts +10 -0
- package/dist/themes/index.js +26 -0
- package/package.json +3 -2
- package/src/DockNodeView.svelte +1 -1
- package/src/GridFooter.svelte +0 -40
- package/src/GridMenus.svelte +0 -77
- package/src/SvAccordion.test.ts +5 -5
- package/src/SvAvatar.svelte +1 -1
- package/src/SvButtonGroup.test.ts +6 -6
- package/src/SvCalendar.test.ts +1 -1
- package/src/SvCheckBox.svelte +2 -1
- package/src/SvCircularProgress.svelte +1 -1
- package/src/SvDateRangeInput.svelte +1 -1
- package/src/SvFileUpload.test.ts +1 -1
- package/src/SvGrid.controller.svelte.ts +367 -22
- package/src/SvGrid.css +103 -3
- package/src/SvGrid.svelte +164 -35
- package/src/SvGrid.types.ts +81 -1
- package/src/SvGridChart.svelte +2 -10
- package/src/SvGridDropdown.svelte +38 -6
- package/src/SvGridSelect.svelte +12 -5
- package/src/SvGroupCell.svelte +9 -2
- package/src/SvKbd.svelte +1 -1
- package/src/SvList.svelte +1 -1
- package/src/SvMenubar.svelte +1 -1
- package/src/SvMultiSelect.svelte +12 -4
- package/src/SvOtpInput.svelte +1 -1
- package/src/SvPasswordInput.svelte +1 -1
- package/src/SvProgress.svelte +1 -1
- package/src/SvRating.svelte +1 -1
- package/src/SvResult.svelte +1 -1
- package/src/SvRichText.svelte +35 -16
- package/src/SvSwitchButton.svelte +2 -1
- package/src/SvToaster.svelte +1 -1
- package/src/SvTour.svelte +4 -0
- package/src/SvTree.svelte +9 -2
- package/src/SvTreeSelect.svelte +6 -4
- package/src/ai.test.ts +1 -1
- package/src/build-api.ts +15 -105
- package/src/builtin-editors.test.ts +3 -1
- package/src/cell-formatting.test.ts +1 -1
- package/src/cell-render.test.ts +27 -3
- package/src/cell-render.ts +122 -95
- package/src/cell-values.ts +4 -0
- package/src/chart-export.test.ts +2 -2
- package/src/chart.ts +1 -2
- package/src/clipboard.test.ts +0 -2
- package/src/clipboard.ts +0 -102
- package/src/columns.ts +0 -115
- package/src/core.ts +157 -8
- package/src/createMenu.svelte.ts +0 -1
- package/src/editing.test.ts +1 -1
- package/src/editing.ts +2 -105
- package/src/editor-contract.ts +12 -5
- package/src/editor-registry.grid.test.ts +48 -2
- package/src/editor-registry.test.ts +3 -1
- package/src/editor-registry.ts +23 -7
- package/src/export-format.ts +3 -0
- package/src/facet-buckets.test.ts +33 -33
- package/src/features.ts +0 -90
- package/src/group-display.test.ts +91 -1
- package/src/group-display.ts +83 -0
- package/src/index.ts +9 -0
- package/src/keyboard-handlers.coverage.test.ts +1 -1
- package/src/keyboard-handlers.ts +17 -120
- package/src/list-power.test.ts +2 -2
- package/src/menus.test.ts +4 -5
- package/src/menus.ts +0 -112
- package/src/named-views.coverage.test.ts +3 -3
- package/src/new-features.test.ts +3 -1
- package/src/recurrence.ts +3 -2
- package/src/row-drag.test.ts +1 -1
- package/src/row-resize.test.ts +41 -42
- package/src/scheduler-model.ts +1 -1
- package/src/scroll-sync.test.ts +4 -7
- package/src/scroll-sync.ts +0 -122
- package/src/selection.ts +0 -109
- package/src/server-data-source.coverage.test.ts +1 -1
- package/src/server-group-model.test.ts +8 -8
- package/src/spreadsheet.test.ts +0 -1
- package/src/summaries.ts +0 -112
- package/src/svgrid-wrapper.types.ts +11 -9
- package/src/svgrid.async-editor-options.test.ts +271 -0
- package/src/svgrid.auto-row-height.test.ts +204 -0
- package/src/svgrid.behavior.test.ts +0 -1
- package/src/svgrid.charting.test.ts +4 -4
- package/src/svgrid.column-reorder.test.ts +0 -8
- package/src/svgrid.comments-autocomplete.test.ts +8 -2
- package/src/svgrid.context-menu.test.ts +25 -9
- package/src/svgrid.filter-depth.test.ts +163 -0
- package/src/svgrid.filter-menu-listbox.svelte.test.ts +16 -2
- package/src/svgrid.filter-menu-scroll.test.ts +10 -2
- package/src/svgrid.grand-total.test.ts +188 -0
- package/src/svgrid.group-display-mode.test.ts +171 -0
- package/src/svgrid.group-footers.test.ts +121 -0
- package/src/svgrid.group-pagination.test.ts +153 -0
- package/src/svgrid.tree-data.test.ts +186 -0
- package/src/svgriddropdown.async-panel.svelte.test.ts +195 -0
- package/src/themes/index.ts +42 -0
- package/src/tree-edit.test.ts +4 -4
- package/src/tree-row-model.test.ts +168 -0
- package/src/ui-localization.test.ts +113 -0
- package/themes/ag-alpine.css +22 -0
- package/themes/antd.css +22 -0
- package/themes/atlassian.css +22 -0
- package/themes/bootstrap.css +22 -0
- package/themes/carbon.css +22 -0
- package/themes/catppuccin.css +22 -0
- package/themes/dracula.css +22 -0
- package/themes/ember.css +22 -0
- package/themes/excel.css +22 -0
- package/themes/fluent.css +22 -0
- package/themes/github.css +22 -0
- package/themes/linear.css +22 -0
- package/themes/material.css +22 -0
- package/themes/nord.css +22 -0
- package/themes/notion.css +22 -0
- package/themes/salesforce.css +22 -0
- package/themes/sap.css +22 -0
- package/themes/shadcn.css +22 -0
- package/themes/tailwind.css +22 -0
- package/themes/vercel.css +22 -0
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ all wire up the moment you turn on the matching prop.
|
|
|
88
88
|
|
|
89
89
|
- **Virtual scrolling** - row + column windowing; 100k x 100 stays smooth, with a 1M-row demo.
|
|
90
90
|
- **Filtering** - Excel-style filter menu, inline filter row, set / value-list filter, locale-aware matching, between operators.
|
|
91
|
-
- **Editing** -
|
|
91
|
+
- **Editing** - 15 built-in `editorType`s (text, number, date, datetime, time, select, rich-select with typeahead, autocomplete, textarea, color, checkbox, list, chips, rating, password), plus `date-native` / `datetime-native` / `time-native` to opt out of the rich pickers, and a `cellEditor` snippet slot for anything custom.
|
|
92
92
|
- **Selection** - cell-range click+drag and Shift+arrows, copy/paste as TSV, Excel-style fill handle, row selection.
|
|
93
93
|
- **Views** - row grouping with aggregation, tree data, master/detail, full-width detail rows, spreadsheet mode with formulas.
|
|
94
94
|
- **Layout** - row + column pinning, sticky header + first column, header drag-to-reorder, autosize, keyboard-accessible column sizing, zebra rows, responsive mode.
|
package/dist/DockNodeView.svelte
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
const onMove = (ev: PointerEvent) => {
|
|
44
44
|
const delta = ((vertical ? ev.clientY : ev.clientX) - startPos) / total
|
|
45
|
-
|
|
45
|
+
const fa = Math.min(Math.max(startSizes[a]! + delta, minA), pairTotal - minB)
|
|
46
46
|
const next = startSizes.slice()
|
|
47
47
|
next[a] = fa
|
|
48
48
|
next[b] = pairTotal - fa
|
package/dist/GridFooter.svelte
CHANGED
|
@@ -1,50 +1,13 @@
|
|
|
1
1
|
<script lang="ts" generics="TFeatures extends TableFeatures = TableFeatures, TData extends RowData = RowData">
|
|
2
2
|
import {
|
|
3
|
-
getGridCellA11yProps,
|
|
4
|
-
getGridCellDomId,
|
|
5
|
-
getGridHeaderA11yProps,
|
|
6
|
-
getGridRootA11yProps,
|
|
7
|
-
getGridRowA11yProps,
|
|
8
|
-
type EditorContext,
|
|
9
|
-
type CellEditorOption,
|
|
10
|
-
type Column,
|
|
11
|
-
type Row,
|
|
12
3
|
type RowData,
|
|
13
4
|
type TableFeatures,
|
|
14
5
|
} from "./index";
|
|
15
6
|
import "./sv-grid-scrollbar";
|
|
16
|
-
import type { Snippet } from "svelte";
|
|
17
|
-
import {
|
|
18
|
-
RenderSnippetConfig,
|
|
19
|
-
RenderComponentConfig,
|
|
20
|
-
} from "./render-component";
|
|
21
|
-
import {
|
|
22
|
-
buildSparkline,
|
|
23
|
-
toSparklineValues,
|
|
24
|
-
} from "./sparkline";
|
|
25
7
|
import SvGridDropdown from "./SvGridDropdown.svelte";
|
|
26
|
-
import type {
|
|
27
|
-
Props,
|
|
28
|
-
SelectionPoint,
|
|
29
|
-
SelectionRange,
|
|
30
|
-
CellEditState,
|
|
31
|
-
FilterOperator,
|
|
32
|
-
FilterOption,
|
|
33
|
-
MenuPosition,
|
|
34
|
-
} from "./SvGrid.types";
|
|
35
8
|
import {
|
|
36
|
-
cfTextStyle,
|
|
37
9
|
fmtStat,
|
|
38
|
-
getEditableInputValue,
|
|
39
|
-
getEditorInputType,
|
|
40
|
-
toValueArray,
|
|
41
|
-
getOptionLabel,
|
|
42
|
-
getOptionColor,
|
|
43
|
-
colorfulChipStyle,
|
|
44
|
-
getEditorClass,
|
|
45
10
|
} from "./SvGrid.helpers";
|
|
46
|
-
import {
|
|
47
|
-
} from "./SvGrid.controller.svelte";
|
|
48
11
|
import type { SvGridController } from "./SvGrid.controller.svelte";
|
|
49
12
|
|
|
50
13
|
let {
|
|
@@ -68,9 +31,6 @@
|
|
|
68
31
|
// View facade: re-bind the controller's reactive members so the markup
|
|
69
32
|
// (moved verbatim from SvGrid.svelte) stays identical.
|
|
70
33
|
const paginationEnabled = $derived(ctrl.paginationEnabled);
|
|
71
|
-
const grid = $derived(ctrl.grid);
|
|
72
|
-
const paginationState = $derived(ctrl.paginationState);
|
|
73
|
-
const allRowsBeforePagination = $derived(ctrl.allRowsBeforePagination);
|
|
74
34
|
const statusBarEnabled = $derived(ctrl.statusBarEnabled);
|
|
75
35
|
const statusBarAggregates = $derived(ctrl.statusBarAggregates);
|
|
76
36
|
const statusBarStats = $derived(ctrl.statusBarStats);
|
package/dist/GridMenus.svelte
CHANGED
|
@@ -1,97 +1,21 @@
|
|
|
1
1
|
<script lang="ts" generics="TFeatures extends TableFeatures = TableFeatures, TData extends RowData = RowData">
|
|
2
2
|
import {
|
|
3
|
-
applyExcelFilter,
|
|
4
|
-
normalizeForFilter,
|
|
5
3
|
splitInTokens,
|
|
6
4
|
trailingInToken,
|
|
7
|
-
createColumnVirtualizer,
|
|
8
|
-
createCoreRowModel,
|
|
9
|
-
createExpandedRowModel,
|
|
10
|
-
createFilteredRowModel,
|
|
11
|
-
createGroupedRowModel,
|
|
12
|
-
createPaginatedRowModel,
|
|
13
|
-
createSvelteVirtualizer,
|
|
14
|
-
createSortedRowModel,
|
|
15
|
-
createSvGrid,
|
|
16
|
-
filterFns,
|
|
17
|
-
getGridCellA11yProps,
|
|
18
|
-
getGridCellDomId,
|
|
19
|
-
getGridHeaderA11yProps,
|
|
20
|
-
getGridRootA11yProps,
|
|
21
|
-
getGridRowA11yProps,
|
|
22
|
-
parseEditorValue,
|
|
23
|
-
normalizeEditorOptions,
|
|
24
|
-
sortFns,
|
|
25
|
-
tableFeatures,
|
|
26
|
-
rowSortingFeature,
|
|
27
|
-
columnFilteringFeature,
|
|
28
|
-
columnGroupingFeature,
|
|
29
|
-
type CellContext,
|
|
30
|
-
type EditorContext,
|
|
31
|
-
type CellEditorOption,
|
|
32
5
|
type CellEditorType,
|
|
33
|
-
type CellFormatter,
|
|
34
|
-
type CellFormatConfig,
|
|
35
6
|
type Column,
|
|
36
|
-
type ColumnDef,
|
|
37
|
-
type Row,
|
|
38
7
|
type RowData,
|
|
39
|
-
type SvGridApi,
|
|
40
8
|
type TableFeatures,
|
|
41
9
|
} from "./index";
|
|
42
10
|
import "./sv-grid-scrollbar";
|
|
43
11
|
import { onScrollOutside } from "./a11y/dismissable";
|
|
44
12
|
import type { Snippet } from "svelte";
|
|
45
|
-
import { getKeyboardIntent, getNextActiveCell } from "./keyboard";
|
|
46
|
-
import {
|
|
47
|
-
formatNumericWithConfig,
|
|
48
|
-
getDateFormatter,
|
|
49
|
-
resolveDatePattern,
|
|
50
|
-
} from "./cell-formatting";
|
|
51
|
-
import {
|
|
52
|
-
RenderSnippetConfig,
|
|
53
|
-
RenderComponentConfig,
|
|
54
|
-
} from "./render-component";
|
|
55
|
-
import { buildFillPattern } from "./fill-patterns";
|
|
56
|
-
import { buildSparkline, toSparklineValues } from "./sparkline";
|
|
57
|
-
import {
|
|
58
|
-
resolveCellFormat,
|
|
59
|
-
computeColumnStat,
|
|
60
|
-
formatsNeedingStats,
|
|
61
|
-
type ColumnStat,
|
|
62
|
-
type ResolvedCellFormat,
|
|
63
|
-
} from "./conditional-formatting";
|
|
64
|
-
import SvGridDropdown from "./SvGridDropdown.svelte";
|
|
65
13
|
import SvListBox from "./SvListBox.svelte";
|
|
66
14
|
import type {
|
|
67
|
-
Props,
|
|
68
|
-
SelectionPoint,
|
|
69
|
-
SelectionRange,
|
|
70
|
-
CellEditState,
|
|
71
15
|
FilterOperator,
|
|
72
|
-
FilterOption,
|
|
73
|
-
MenuPosition,
|
|
74
16
|
} from "./SvGrid.types";
|
|
75
17
|
import {
|
|
76
|
-
cfTextStyle,
|
|
77
|
-
fmtStat,
|
|
78
|
-
getCellKey,
|
|
79
|
-
resolveClassList,
|
|
80
|
-
toDateInputValue,
|
|
81
|
-
toDateTimeLocalInputValue,
|
|
82
|
-
getEditableInputValue,
|
|
83
18
|
getEditorInputType,
|
|
84
|
-
toValueArray,
|
|
85
|
-
getOptionLabel,
|
|
86
|
-
getOptionColor,
|
|
87
|
-
colorfulChipStyle,
|
|
88
|
-
getEditorClass,
|
|
89
|
-
asDate,
|
|
90
|
-
clampMenuX,
|
|
91
|
-
cssEscape,
|
|
92
|
-
rawToNumber,
|
|
93
|
-
formatFacetNumber,
|
|
94
|
-
formatFacetDate,
|
|
95
19
|
} from "./SvGrid.helpers";
|
|
96
20
|
|
|
97
21
|
import type { SvGridController } from "./SvGrid.controller.svelte";
|
|
@@ -103,7 +27,6 @@
|
|
|
103
27
|
const groupingControlsEnabled = $derived(ctrl.groupingControlsEnabled);
|
|
104
28
|
const filterMenuValues = $derived(ctrl.filterMenuValues);
|
|
105
29
|
const tooltip = $derived(ctrl.tooltip);
|
|
106
|
-
const showTooltipFor = $derived(ctrl.showTooltipFor);
|
|
107
30
|
const columnMenuFor = $derived(ctrl.columnMenuFor);
|
|
108
31
|
const columnMenuPos = $derived(ctrl.columnMenuPos);
|
|
109
32
|
const filterMenuFor = $derived(ctrl.filterMenuFor);
|
package/dist/SvAvatar.svelte
CHANGED
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
.sv-avatar__status.is-online { background: var(--sg-success, #16a34a); }
|
|
72
72
|
.sv-avatar__status.is-offline { background: var(--sg-muted, #94a3b8); }
|
|
73
73
|
.sv-avatar__status.is-busy { background: var(--sg-danger, #dc2626); }
|
|
74
|
-
.sv-avatar__status.is-away { background: var(--sg-warning, #
|
|
74
|
+
.sv-avatar__status.is-away { background: var(--sg-warning, #d97706); }
|
|
75
75
|
</style>
|
package/dist/SvCheckBox.svelte
CHANGED
|
@@ -56,8 +56,9 @@
|
|
|
56
56
|
|
|
57
57
|
<SvField id={uid} {hint} {error} {required} {dir}>
|
|
58
58
|
<label class="sv-check sv-check--{size}" class:is-disabled={disabled} class:is-readonly={readonly} class:is-invalid={invalid}>
|
|
59
|
+
<!-- role="checkbox" arrives via boxProps(), which the a11y pass cannot see through -->
|
|
60
|
+
<!-- svelte-ignore a11y_role_supports_aria_props_implicit -->
|
|
59
61
|
<button
|
|
60
|
-
role="checkbox"
|
|
61
62
|
class="sv-check__box"
|
|
62
63
|
class:is-checked={checked && !indeterminate}
|
|
63
64
|
class:is-indeterminate={indeterminate}
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
position: relative; display: inline-flex; flex: none;
|
|
90
90
|
}
|
|
91
91
|
.sv-circ--success { --_c: var(--sg-success, #16a34a); }
|
|
92
|
-
.sv-circ--warning { --_c: var(--sg-warning, #
|
|
92
|
+
.sv-circ--warning { --_c: var(--sg-warning, #d97706); }
|
|
93
93
|
.sv-circ--danger { --_c: var(--sg-danger, #dc2626); }
|
|
94
94
|
.sv-circ__svg { display: block; transform: rotate(-90deg); }
|
|
95
95
|
.sv-circ__track { stroke: var(--sg-border, #e2e8f0); }
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
import { anchoredRect, portalToBody, popIn, type AnchoredRect } from './popover'
|
|
21
21
|
import { editorAria, nextEditorId, resolveMessages, type SvEditorProps } from './editor-contract'
|
|
22
22
|
import { formatDate } from './datetime/date-format'
|
|
23
|
-
import {
|
|
23
|
+
import { startOfDay, type DateLike } from './datetime/date-core'
|
|
24
24
|
import { rangeDays } from './datetime/date-selection'
|
|
25
25
|
import type { CalendarPreset } from './createCalendar.svelte'
|
|
26
26
|
|
|
@@ -260,6 +260,13 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
260
260
|
readonly isCellEditableAt: (rowIndex: number, colIndex: number) => boolean;
|
|
261
261
|
readonly sortDirectionByColumn: Record<string, false | "asc" | "desc">;
|
|
262
262
|
readonly groupingColumns: any;
|
|
263
|
+
readonly groupDisplayMode: import("./group-display").GroupDisplayType;
|
|
264
|
+
readonly groupColumnMode: boolean;
|
|
265
|
+
readonly autoGroupCell: (row: Row<TData>, columnId: string) => {
|
|
266
|
+
label: string;
|
|
267
|
+
count: number;
|
|
268
|
+
depth: number;
|
|
269
|
+
} | null;
|
|
263
270
|
readonly paginationState: any;
|
|
264
271
|
readonly externalPaginationEnabled: boolean;
|
|
265
272
|
readonly paginationTotalRows: number;
|
|
@@ -413,6 +420,15 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
413
420
|
readonly rowVirtualizationEnabled: boolean;
|
|
414
421
|
readonly columnVirtualizationEnabled: boolean;
|
|
415
422
|
readonly virtualRows: import("./index").VirtualItem[];
|
|
423
|
+
readonly autoRowHeightOn: boolean;
|
|
424
|
+
/** Svelte action: measure this row and report its natural height. */
|
|
425
|
+
readonly measureRowHeight: (node: HTMLElement, index: number) => {
|
|
426
|
+
update(next: number): void;
|
|
427
|
+
destroy(): void;
|
|
428
|
+
};
|
|
429
|
+
/** A row's measured height, or undefined before it has been measured.
|
|
430
|
+
* The non-virtualized body reads this directly (it has no virtual item). */
|
|
431
|
+
readonly measuredRowHeightPx: (index: number) => number | undefined;
|
|
416
432
|
readonly virtualRowTotalSize: number;
|
|
417
433
|
readonly virtualRowStart: number;
|
|
418
434
|
readonly virtualRowEnd: number;
|
|
@@ -469,7 +485,11 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
469
485
|
readonly getCellDisplayValue: (rowId: string, columnId: string, baseValue: unknown) => any;
|
|
470
486
|
readonly getColumnAlign: typeof getColumnAlign;
|
|
471
487
|
readonly editorOptionsCache: Record<string, CellEditorOption[]>;
|
|
488
|
+
asyncEditorOptions: Record<string, CellEditorOption[]>;
|
|
489
|
+
readonly asyncEditorOptionsPending: Set<string>;
|
|
490
|
+
readonly asyncEditorColumns: Set<string>;
|
|
472
491
|
readonly getColumnEditorOptions: (column: Column<TData>, row?: Row<TData> | null | undefined) => CellEditorOption[];
|
|
492
|
+
readonly areEditorOptionsLoading: (column: Column<TData>, row?: Row<TData> | null | undefined) => boolean;
|
|
473
493
|
readonly formatListCellValue: (column: Column<TData>, value: unknown, row?: Row<TData> | null | undefined) => string;
|
|
474
494
|
readonly formatCellValue: (column: Column<TData>, value: unknown, row: Row<TData>) => string;
|
|
475
495
|
readonly getPinnedCellValue: typeof getPinnedCellValue;
|