@gridkitjs/core 0.0.0-dev-20261118223155 → 0.0.0-dev-20261119132858

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.
@@ -382,7 +382,7 @@ declare function formatGroupValue<Row>(value: unknown, column: ColumnDefinition<
382
382
 
383
383
  /**
384
384
  * Every string a grid shows or announces of its own — the pager, the group-by
385
- * bar, the loading row, the text of a boolean or missing value, the labels of
385
+ * bar, the loading row, an empty grid's message, the text of a boolean or missing value, the labels of
386
386
  * its built-in commands, the names of its menus, toolbar and column chooser,
387
387
  * and the live-region
388
388
  * announcements — so a grid can
@@ -416,11 +416,23 @@ interface GridMessages {
416
416
  pageButtonLabel: (page: number) => string;
417
417
  /**
418
418
  * The compact pager's status, and what a page change announces. `page`
419
- * counts from one, and is `0` while there are no pages.
419
+ * counts from one.
420
420
  */
421
421
  pageStatus: (page: number, pageCount: number) => string;
422
422
  /** The row shown while `infiniteScroll` loads more. */
423
423
  loadingMore: string;
424
+ /**
425
+ * Shown over the rows while the grid's `loading` option is on, and
426
+ * announced as it turns on.
427
+ */
428
+ loading: string;
429
+ /** Shown in place of the rows when the grid has none and no filter is active. */
430
+ noRows: string;
431
+ /**
432
+ * Shown in place of the rows when the filter, the toolbar's search
433
+ * included, hides every row.
434
+ */
435
+ noMatchingRows: string;
424
436
  /** A boolean cell's text. */
425
437
  booleanTrue: string;
426
438
  booleanFalse: string;
@@ -1612,6 +1624,13 @@ interface RowProps {
1612
1624
  */
1613
1625
  interface GridOptions<Row> {
1614
1626
  dataSource?: readonly Row[] | undefined;
1627
+ /**
1628
+ * The app is fetching rows; the grid shows it and changes nothing else. A
1629
+ * renderer draws `messages.loading` over the rows it already shows, marks
1630
+ * the grid busy and announces it once. The grid never sets it itself, and
1631
+ * never fetches.
1632
+ */
1633
+ loading?: boolean | undefined;
1615
1634
  /**
1616
1635
  * A row's stable identity, for state keyed by it. Defaults to the row's
1617
1636
  * position, which is enough for a static grid but ties that state to where a
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { G as GridControllerOptions, a as GridController, b as GridCommandTarget, c as GridMessages, d as GridCommandHost, e as GridCommandContext, f as GridCommand, M as MenuEntry, R as ResolvedMenuEntry, g as GridToolbarTarget, T as ToolbarItemAttributes, h as ToolbarEntry, i as ResolvedToolbarItem, C as ColumnType, j as ColumnSortState, S as SortDirection, k as ResolvedRow, D as DataColumn, F as FilterState, l as FieldPath, m as ResolvedColumn, n as SelectedCellRef, o as SelectedCell, p as SelectedColumn, P as PaginationUnit, q as DisplayRow, r as PaginationState, A as AggregateState, s as AggregateResults, t as GroupByState, u as GroupAggregateDisplay, v as ColumnVisibilityState, w as ColumnDefinition, x as GridViewInput, y as GridView, z as GridState, B as SerializedGridState, E as ExportTable, H as ExportSource, I as ExportWriter, J as GridExportOptions, K as ExportFile } from './filterEditor-C4x0X-nh.js';
2
- export { L as ALL_COLLAPSED, N as ALL_EXPANDED, O as AggregateFn, Q as AggregateSpec, U as Borders, V as BuiltInAggregate, W as BuiltInCommandIcon, X as BuiltInCommandId, Y as CellSelectEvent, Z as CellSelectionChangeEvent, _ as CellSelectionMode, $ as CellSelectionState, a0 as CellTemplateContext, a1 as ColumnAlignment, a2 as ColumnConstraints, a3 as ColumnFilterMenuOptions, a4 as ColumnOrderEvent, a5 as ColumnOrderState, a6 as ColumnPin, a7 as ColumnPinningEvent, a8 as ColumnPinningState, a9 as ColumnResizeEvent, aa as ColumnResolveOptions, ab as ColumnSelectEvent, ac as ColumnSelectionChangeEvent, ad as ColumnSizeDefaults, ae as ColumnSizingState, af as ColumnSortEntry, ag as ColumnSortEvent, ah as ColumnVisibilityEvent, ai as ColumnWrapConfig, aj as ColumnsSelectEvent, ak as ContextMenuOpenChangeEvent, al as CopyContent, am as CsvOptions, an as DEFAULT_COLUMN_SIZES, ao as DEFAULT_FILTER_VALUE_LIMIT, ap as ExportCell, aq as ExportColumn, ar as ExportDataRow, as as ExportGroupRow, at as ExportGroupSummaryRow, au as ExportOptions, av as ExportRow, aw as ExportScalar, ax as ExportTotalRow, ay as ExportWriteContext, az as FilterChangeEvent, aA as FilterEntry, aB as FilterMenuUi, aC as FilterOperator, aD as FilterOperatorFamily, aE as FilterPredicate, aF as FilterScalar, aG as FooterTemplateContext, aH as FormatLocale, aI as GridCommandActions, aJ as GridCommandEvent, aK as GridCommandSource, aL as GridContextMenuArea, aM as GridContextMenuEntries, aN as GridContextMenuOptions, aO as GridContextMenuRequest, aP as GridContextMenuTarget, aQ as GridFilterMenuOptions, aR as GridFocus, aS as GridOptions, aT as GridPanelKind, aU as GridToolbarOptions, aV as GridViewOptions, aW as GridViewState, aX as GroupByBarVisibility, aY as GroupByEntry, aZ as GroupByEvent, a_ as GroupExpansionEvent, a$ as GroupExpansionState, b0 as GroupFilterEntry, b1 as HoverableConfig, b2 as JsonOptions, b3 as MenuItemEntry, b4 as MenuSubmenuEntry, b5 as OperatorFilterEntry, b6 as PaginationChangeEvent, b7 as PredicateFilterEntry, b8 as PrintDocument, b9 as PrintOptions, ba as PrintOrientation, bb as PrintPage, bc as PrintSource, bd as ResizeMode, be as ResolvedGroupRow, bf as ResolvedGroupSummaryRow, bg as ResolvedMenuItem, bh as ResolvedMenuSeparator, bi as ResolvedMenuSubmenu, bj as ResolvedToolbarButton, bk as ResolvedToolbarCustom, bl as ResolvedToolbarMenu, bm as ResolvedToolbarSearch, bn as ResolvedToolbarSpacer, bo as RowGroupPosition, bp as RowPointerEvent, bq as RowProps, br as RowSelectEvent, bs as RowSelectionChangeEvent, bt as RowsSelectEvent, bu as SelectIntent, bv as SelectableConfig, bw as SelectionCallbacks, bx as SelectionDiff, by as SelectionDiffEvent, bz as SelectionMode, bA as SelectionState, bB as SerializedFilterEntry, bC as SerializedFilterScalar, bD as SerializedFilterState, bE as SerializedGroupFilterEntry, bF as SerializedOperatorFilterEntry, bG as SerializedValueFilterEntry, bH as TextFilterEntry, bI as ToolbarCustomEntry, bJ as ValueFilterEntry, bK as accessDotted, bL as alignmentForType, bM as applyColumnOrder, bN as applyColumnPinning, bO as applySelectionIntent, bP as bodyFocus, bQ as buildExportTable, bR as builtInCommands, bS as clearSelection, bT as collapseAllGroups, bU as contextMenuEntries, bV as createDefaultMessages, bW as csvWriter, bX as defaultContextMenu, bY as defaultFilterOperators, bZ as defaultMessages, b_ as defaultToolbar, b$ as defineColumnsFromRows, c0 as expandAllGroups, c1 as exportPrintDocument, c2 as formatAggregateValue, c3 as formatCellValue, c4 as formatGroupValue, c5 as getColumnId, c6 as groupRowId, c7 as groupRows, c8 as headerFocus, c9 as isColumnFiltered, ca as isGroupExpanded, cb as isSameCell, cc as jsonWriter, cd as moveColumnBefore, ce as moveGroupByBefore, cf as resolveColumnHeaderText, cg as resolveColumnLabel, ch as resolveColumnPin, ci as resolveColumnWidths, cj as resolveDataColumns, ck as resolveExportWriters, cl as resolveMessages, cm as resolveRowId, cn as selectAll, co as selectCell, cp as selectOnly, cq as selectRange, cr as setColumnPin, cs as toCsv, ct as toJson, cu as toggleCellSelection, cv as toggleGroupExpansion, cw as toggleSelection, cx as toolbarEntries } from './filterEditor-C4x0X-nh.js';
1
+ import { G as GridControllerOptions, a as GridController, b as GridCommandTarget, c as GridMessages, d as GridCommandHost, e as GridCommandContext, f as GridCommand, M as MenuEntry, R as ResolvedMenuEntry, g as GridToolbarTarget, T as ToolbarItemAttributes, h as ToolbarEntry, i as ResolvedToolbarItem, C as ColumnType, j as ColumnSortState, S as SortDirection, k as ResolvedRow, D as DataColumn, F as FilterState, l as FieldPath, m as ResolvedColumn, n as SelectedCellRef, o as SelectedCell, p as SelectedColumn, P as PaginationUnit, q as DisplayRow, r as PaginationState, A as AggregateState, s as AggregateResults, t as GroupByState, u as GroupAggregateDisplay, v as ColumnVisibilityState, w as ColumnDefinition, x as GridViewInput, y as GridView, z as GridState, B as SerializedGridState, E as ExportTable, H as ExportSource, I as ExportWriter, J as GridExportOptions, K as ExportFile } from './filterEditor-CG4EPzy0.js';
2
+ export { L as ALL_COLLAPSED, N as ALL_EXPANDED, O as AggregateFn, Q as AggregateSpec, U as Borders, V as BuiltInAggregate, W as BuiltInCommandIcon, X as BuiltInCommandId, Y as CellSelectEvent, Z as CellSelectionChangeEvent, _ as CellSelectionMode, $ as CellSelectionState, a0 as CellTemplateContext, a1 as ColumnAlignment, a2 as ColumnConstraints, a3 as ColumnFilterMenuOptions, a4 as ColumnOrderEvent, a5 as ColumnOrderState, a6 as ColumnPin, a7 as ColumnPinningEvent, a8 as ColumnPinningState, a9 as ColumnResizeEvent, aa as ColumnResolveOptions, ab as ColumnSelectEvent, ac as ColumnSelectionChangeEvent, ad as ColumnSizeDefaults, ae as ColumnSizingState, af as ColumnSortEntry, ag as ColumnSortEvent, ah as ColumnVisibilityEvent, ai as ColumnWrapConfig, aj as ColumnsSelectEvent, ak as ContextMenuOpenChangeEvent, al as CopyContent, am as CsvOptions, an as DEFAULT_COLUMN_SIZES, ao as DEFAULT_FILTER_VALUE_LIMIT, ap as ExportCell, aq as ExportColumn, ar as ExportDataRow, as as ExportGroupRow, at as ExportGroupSummaryRow, au as ExportOptions, av as ExportRow, aw as ExportScalar, ax as ExportTotalRow, ay as ExportWriteContext, az as FilterChangeEvent, aA as FilterEntry, aB as FilterMenuUi, aC as FilterOperator, aD as FilterOperatorFamily, aE as FilterPredicate, aF as FilterScalar, aG as FooterTemplateContext, aH as FormatLocale, aI as GridCommandActions, aJ as GridCommandEvent, aK as GridCommandSource, aL as GridContextMenuArea, aM as GridContextMenuEntries, aN as GridContextMenuOptions, aO as GridContextMenuRequest, aP as GridContextMenuTarget, aQ as GridFilterMenuOptions, aR as GridFocus, aS as GridOptions, aT as GridPanelKind, aU as GridToolbarOptions, aV as GridViewOptions, aW as GridViewState, aX as GroupByBarVisibility, aY as GroupByEntry, aZ as GroupByEvent, a_ as GroupExpansionEvent, a$ as GroupExpansionState, b0 as GroupFilterEntry, b1 as HoverableConfig, b2 as JsonOptions, b3 as MenuItemEntry, b4 as MenuSubmenuEntry, b5 as OperatorFilterEntry, b6 as PaginationChangeEvent, b7 as PredicateFilterEntry, b8 as PrintDocument, b9 as PrintOptions, ba as PrintOrientation, bb as PrintPage, bc as PrintSource, bd as ResizeMode, be as ResolvedGroupRow, bf as ResolvedGroupSummaryRow, bg as ResolvedMenuItem, bh as ResolvedMenuSeparator, bi as ResolvedMenuSubmenu, bj as ResolvedToolbarButton, bk as ResolvedToolbarCustom, bl as ResolvedToolbarMenu, bm as ResolvedToolbarSearch, bn as ResolvedToolbarSpacer, bo as RowGroupPosition, bp as RowPointerEvent, bq as RowProps, br as RowSelectEvent, bs as RowSelectionChangeEvent, bt as RowsSelectEvent, bu as SelectIntent, bv as SelectableConfig, bw as SelectionCallbacks, bx as SelectionDiff, by as SelectionDiffEvent, bz as SelectionMode, bA as SelectionState, bB as SerializedFilterEntry, bC as SerializedFilterScalar, bD as SerializedFilterState, bE as SerializedGroupFilterEntry, bF as SerializedOperatorFilterEntry, bG as SerializedValueFilterEntry, bH as TextFilterEntry, bI as ToolbarCustomEntry, bJ as ValueFilterEntry, bK as accessDotted, bL as alignmentForType, bM as applyColumnOrder, bN as applyColumnPinning, bO as applySelectionIntent, bP as bodyFocus, bQ as buildExportTable, bR as builtInCommands, bS as clearSelection, bT as collapseAllGroups, bU as contextMenuEntries, bV as createDefaultMessages, bW as csvWriter, bX as defaultContextMenu, bY as defaultFilterOperators, bZ as defaultMessages, b_ as defaultToolbar, b$ as defineColumnsFromRows, c0 as expandAllGroups, c1 as exportPrintDocument, c2 as formatAggregateValue, c3 as formatCellValue, c4 as formatGroupValue, c5 as getColumnId, c6 as groupRowId, c7 as groupRows, c8 as headerFocus, c9 as isColumnFiltered, ca as isGroupExpanded, cb as isSameCell, cc as jsonWriter, cd as moveColumnBefore, ce as moveGroupByBefore, cf as resolveColumnHeaderText, cg as resolveColumnLabel, ch as resolveColumnPin, ci as resolveColumnWidths, cj as resolveDataColumns, ck as resolveExportWriters, cl as resolveMessages, cm as resolveRowId, cn as selectAll, co as selectCell, cp as selectOnly, cq as selectRange, cr as setColumnPin, cs as toCsv, ct as toJson, cu as toggleCellSelection, cv as toggleGroupExpansion, cw as toggleSelection, cx as toolbarEntries } from './filterEditor-CG4EPzy0.js';
3
3
 
4
4
  /**
5
5
  * Creates the state container for one grid — see `GridController`. Hold one
package/dist/index.js CHANGED
@@ -92,7 +92,7 @@ import {
92
92
  unknownDisplayRow,
93
93
  unknownFilterEntry,
94
94
  withGroupAggregates
95
- } from "./chunk-WLM4AZXN.js";
95
+ } from "./chunk-QVDEITIX.js";
96
96
 
97
97
  // src/util/memoize.ts
98
98
  function memoizeLast(compute) {
@@ -1,5 +1,5 @@
1
- import { R as ResolvedMenuEntry, i as ResolvedToolbarItem, F as FilterState, D as DataColumn, v as ColumnVisibilityState, cy as SelectAllState, aC as FilterOperator, b5 as OperatorFilterEntry, cz as ColumnFilterShape, C as ColumnType, cA as ColumnValueQuery, cB as ColumnValueOptions, aF as FilterScalar, cC as ValuesDraft } from './filterEditor-C4x0X-nh.js';
2
- export { cD as ColumnResizeSession, cE as ColumnValueOption, cF as ConditionsDraft, cG as CopyRequest, cH as CopySource, cI as DropSide, cJ as FilterEditorAction, cK as FilterEditorDraft, cL as FilterEditorDraftBase, cM as KEYBOARD_STEP, cN as KeyShortcutCapabilities, cO as NavigationModifiers, cP as ResolvedColumnFilterMenu, cQ as WritingDirection, cR as applyColumnResize, cS as beginColumnResize, cT as buildKeyShortcuts, cU as buildPrintDocument, cV as clampColumnWidth, cW as clampFocus, cX as columnValueOptions, cY as copyContent, cZ as describeColumnFilter, c_ as diffSelection, c$ as draftToFilter, d0 as filterDraftChanged, d1 as filterEditorReducer, d2 as filterOperandArity, d3 as filterOperatorFamily, d4 as fitColumnsToWidth, d5 as formatFilterOperand, d6 as hasContextMenu, d7 as initialFilterEditorDraft, d8 as inlineStep, d9 as intentOf, da as moveColumnInPinGroup, db as movesColumn, dc as movesGroupBy, dd as nextFocusForKey, de as parseFilterOperand, df as pinnedWidths, dg as resolveColumnConstraints, dh as resolveColumnFilterMenu, di as resolveDropBefore, dj as resolveKeyboardDropTarget, dk as revertColumnSize, dl as selectAllState, dm as sizeColumnToContent, dn as toConditionsDraft, dp as toValuesDraft, dq as totalColumnWidth, dr as visibleFilterOptions } from './filterEditor-C4x0X-nh.js';
1
+ import { R as ResolvedMenuEntry, i as ResolvedToolbarItem, F as FilterState, D as DataColumn, v as ColumnVisibilityState, cy as SelectAllState, aC as FilterOperator, b5 as OperatorFilterEntry, cz as ColumnFilterShape, C as ColumnType, cA as ColumnValueQuery, cB as ColumnValueOptions, aF as FilterScalar, cC as ValuesDraft } from './filterEditor-CG4EPzy0.js';
2
+ export { cD as ColumnResizeSession, cE as ColumnValueOption, cF as ConditionsDraft, cG as CopyRequest, cH as CopySource, cI as DropSide, cJ as FilterEditorAction, cK as FilterEditorDraft, cL as FilterEditorDraftBase, cM as KEYBOARD_STEP, cN as KeyShortcutCapabilities, cO as NavigationModifiers, cP as ResolvedColumnFilterMenu, cQ as WritingDirection, cR as applyColumnResize, cS as beginColumnResize, cT as buildKeyShortcuts, cU as buildPrintDocument, cV as clampColumnWidth, cW as clampFocus, cX as columnValueOptions, cY as copyContent, cZ as describeColumnFilter, c_ as diffSelection, c$ as draftToFilter, d0 as filterDraftChanged, d1 as filterEditorReducer, d2 as filterOperandArity, d3 as filterOperatorFamily, d4 as fitColumnsToWidth, d5 as formatFilterOperand, d6 as hasContextMenu, d7 as initialFilterEditorDraft, d8 as inlineStep, d9 as intentOf, da as moveColumnInPinGroup, db as movesColumn, dc as movesGroupBy, dd as nextFocusForKey, de as parseFilterOperand, df as pinnedWidths, dg as resolveColumnConstraints, dh as resolveColumnFilterMenu, di as resolveDropBefore, dj as resolveKeyboardDropTarget, dk as revertColumnSize, dl as selectAllState, dm as sizeColumnToContent, dn as toConditionsDraft, dp as toValuesDraft, dq as totalColumnWidth, dr as visibleFilterOptions } from './filterEditor-CG4EPzy0.js';
3
3
 
4
4
  /** Where an arrow, Home or End key moves a menu's focus. */
5
5
  type MenuMove = "next" | "previous" | "first" | "last";
package/dist/renderer.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  totalColumnWidth,
48
48
  touchesColumn,
49
49
  visibleFilterOptions
50
- } from "./chunk-WLM4AZXN.js";
50
+ } from "./chunk-QVDEITIX.js";
51
51
 
52
52
  // src/menu/navigation.ts
53
53
  function startIndex(count, from, move) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridkitjs/core",
3
- "version": "0.0.0-dev-20261118223155",
3
+ "version": "0.0.0-dev-20261119132858",
4
4
  "description": "Framework-agnostic data-grid logic: column resolution, alignment and sizing.",
5
5
  "license": "MIT",
6
6
  "author": "Blagoja Blazhevski",