@omnigrid/core 0.1.32 → 0.1.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/dist/columns.d.ts +1 -1
- package/dist/dom-pool.d.ts +1 -1
- package/dist/filtering.d.ts +1 -1
- package/dist/filtering.js +1 -1
- package/dist/grid.d.ts +8 -8
- package/dist/grid.js +11 -11
- package/dist/groupingPipeline.d.ts +1 -1
- package/dist/icons.d.ts +1 -1
- package/dist/index.d.ts +19 -19
- package/dist/index.js +12 -12
- package/dist/pipeline.d.ts +1 -1
- package/dist/slots.d.ts +1 -1
- package/dist/types.d.ts +8 -8
- package/dist/virtualizer.d.ts +1 -1
- package/package.json +1 -1
package/dist/columns.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CellSpanningParams, ColumnDef, ColumnGroupDef, ColumnGroupViewport, ColumnLeafDef, DefaultColumnDef, RowId, RowSpanLayout } from "./types";
|
|
1
|
+
import type { CellSpanningParams, ColumnDef, ColumnGroupDef, ColumnGroupViewport, ColumnLeafDef, DefaultColumnDef, RowId, RowSpanLayout } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Runtime narrowing: does the column definition describe a GROUP
|
|
4
4
|
* (it carries `children`) rather than a leaf column?
|
package/dist/dom-pool.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DomPoolBindings, DomPoolUpdate, DomPoolUpdateOptions, RowHost, RowId } from "./types";
|
|
1
|
+
import type { DomPoolBindings, DomPoolUpdate, DomPoolUpdateOptions, RowHost, RowId } from "./types.js";
|
|
2
2
|
export interface DomPoolOptions<T> {
|
|
3
3
|
rowHeight: number;
|
|
4
4
|
getRowId?: (row: T, index: number) => RowId;
|
package/dist/filtering.d.ts
CHANGED
package/dist/filtering.js
CHANGED
package/dist/grid.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { FilterCondition, FilterModel } from "./filtering";
|
|
2
|
-
import { IconRegistry } from "./icons";
|
|
3
|
-
import type { OverlayOptions, OverlayState } from "./overlays";
|
|
4
|
-
import { DataPipeline } from "./pipeline";
|
|
5
|
-
import { SlotManager } from "./slots";
|
|
6
|
-
import { type StateUpdater } from "./store";
|
|
7
|
-
import type { AggregationFunc, ColumnHeaderExtension, ColumnHeaderExtensionPosition, ColumnLeafDef, DataProcessor, DefaultColumnDef, GridApi, GridEvents, GridOptions, GridPlugin, GridState, RowClickEvent, RowHeightUpdateOptions, RowHierarchy, RowHoverEvent, RowId, RowSpanLayout, RowTransaction, ScrollPosition, SlotMount, SlotName, TransactionResult, TreeRowNode, ViewportData, ViewportState } from "./types";
|
|
8
|
-
import type { UIPopupAnchor, UIPopupDescriptor } from "./ui";
|
|
1
|
+
import type { FilterCondition, FilterModel } from "./filtering.js";
|
|
2
|
+
import { IconRegistry } from "./icons.js";
|
|
3
|
+
import type { OverlayOptions, OverlayState } from "./overlays.js";
|
|
4
|
+
import { DataPipeline } from "./pipeline.js";
|
|
5
|
+
import { SlotManager } from "./slots.js";
|
|
6
|
+
import { type StateUpdater } from "./store.js";
|
|
7
|
+
import type { AggregationFunc, ColumnHeaderExtension, ColumnHeaderExtensionPosition, ColumnLeafDef, DataProcessor, DefaultColumnDef, GridApi, GridEvents, GridOptions, GridPlugin, GridState, RowClickEvent, RowHeightUpdateOptions, RowHierarchy, RowHoverEvent, RowId, RowSpanLayout, RowTransaction, ScrollPosition, SlotMount, SlotName, TransactionResult, TreeRowNode, ViewportData, ViewportState } from "./types.js";
|
|
8
|
+
import type { UIPopupAnchor, UIPopupDescriptor } from "./ui.js";
|
|
9
9
|
export declare class Grid<T> implements GridApi<T> {
|
|
10
10
|
private readonly store;
|
|
11
11
|
private readonly events;
|
package/dist/grid.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { applyDefaultColumnDef, applyWrapText, flattenColumns, getCellValue, getColumnGroups, getRowSpans, resolveColSpan, } from "./columns";
|
|
2
|
-
import { EventBus } from "./events";
|
|
3
|
-
import { applyFilterModel, applyQuickFilter, isActiveCondition } from "./filtering";
|
|
4
|
-
import { buildGroupTree, computeAggregations, flattenTree } from "./groupingPipeline";
|
|
5
|
-
import { IconRegistry } from "./icons";
|
|
6
|
-
import { evaluateAutoOverlay } from "./overlays";
|
|
7
|
-
import { DataPipeline } from "./pipeline";
|
|
8
|
-
import { SlotManager } from "./slots";
|
|
9
|
-
import { Store } from "./store";
|
|
10
|
-
import { PopupManager } from "./ui";
|
|
11
|
-
import { Virtualizer } from "./virtualizer";
|
|
1
|
+
import { applyDefaultColumnDef, applyWrapText, flattenColumns, getCellValue, getColumnGroups, getRowSpans, resolveColSpan, } from "./columns.js";
|
|
2
|
+
import { EventBus } from "./events.js";
|
|
3
|
+
import { applyFilterModel, applyQuickFilter, isActiveCondition } from "./filtering.js";
|
|
4
|
+
import { buildGroupTree, computeAggregations, flattenTree } from "./groupingPipeline.js";
|
|
5
|
+
import { IconRegistry } from "./icons.js";
|
|
6
|
+
import { evaluateAutoOverlay } from "./overlays.js";
|
|
7
|
+
import { DataPipeline } from "./pipeline.js";
|
|
8
|
+
import { SlotManager } from "./slots.js";
|
|
9
|
+
import { Store } from "./store.js";
|
|
10
|
+
import { PopupManager } from "./ui.js";
|
|
11
|
+
import { Virtualizer } from "./virtualizer.js";
|
|
12
12
|
export class Grid {
|
|
13
13
|
constructor(options) {
|
|
14
14
|
this.events = new EventBus();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AggregationFunc, DataRowNode, GroupRowNode, RowId, TreeRowNode } from "./types";
|
|
1
|
+
import type { AggregationFunc, DataRowNode, GroupRowNode, RowId, TreeRowNode } from "./types.js";
|
|
2
2
|
/** Internal mutable node used while building the group tree. */
|
|
3
3
|
interface BuildGroupNode<T> extends GroupRowNode<T> {
|
|
4
4
|
/** Leaf rows grouped directly under this node. */
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SlotNodeContent } from "./types";
|
|
1
|
+
import type { SlotNodeContent } from "./types.js";
|
|
2
2
|
export type IconName = "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "chevron-first" | "chevron-last" | "arrow-up" | "arrow-down" | "arrow-up-down" | "filter" | "search";
|
|
3
3
|
export type IconDefinition<T> = SlotNodeContent<T> | (() => SlotNodeContent<T>);
|
|
4
4
|
/** Framework-agnostic registry of declarative SVG slot nodes. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { DomPool } from "./dom-pool";
|
|
2
|
-
export { EventBus } from "./events";
|
|
3
|
-
export { evaluateAutoOverlay } from "./overlays";
|
|
4
|
-
export { IconRegistry } from "./icons";
|
|
5
|
-
export type { IconDefinition, IconName } from "./icons";
|
|
6
|
-
export { Grid } from "./grid";
|
|
7
|
-
export { Grid as GridCore } from "./grid";
|
|
8
|
-
export { SlotManager } from "./slots";
|
|
9
|
-
export { Store } from "./store";
|
|
10
|
-
export type { StateUpdater } from "./store";
|
|
11
|
-
export { DataPipeline, PIPELINE_STAGE_ORDER } from "./pipeline";
|
|
12
|
-
export type { PipelineProcessor, PipelineStage } from "./pipeline";
|
|
13
|
-
export { applyFilterModel, applyQuickFilter, isActiveCondition, isFilterModelActive, matchesColumnFilter, } from "./filtering";
|
|
14
|
-
export type { ColumnFilterModel, FilterCondition, FilterModel, FilterOperator } from "./filtering";
|
|
15
|
-
export type { UIButtonControl, UICheckboxDescriptor, UIControlBase, UIControlDescriptor, UIGroupControl, UIInputControl, UIPopupAnchor, UIPopupDescriptor, UISelectControl, UISelectOption, UITextBlockControl, UIMultiSelectControl, UIMultiSelectOption, } from "./ui";
|
|
16
|
-
export type { OverlayOptions, OverlayScope, OverlayState, OverlayType } from "./overlays";
|
|
17
|
-
export type { BlockConfig, CellAlign, AggregationFunc, ColumnHeaderExtension, ColumnHeaderExtensionPosition, CellRenderParams, CellClassRules, CellSpan, CellSpanningParams, CheckboxControl, CheckboxRenderParams, ColSpanDef, ColumnClassRules, ColumnDataType, ColumnDropPosition, DefaultColumnDef, ColumnFilterType, ColumnDef, ColumnGroupDef, ColumnGroupViewport, ColumnLeafDef, ColumnStyle, ColumnStyleParams, DataProcessor, DataRowNode, DomPoolBindings, DomPoolUpdate, DomPoolUpdateOptions, GroupRowNode, GroupRowRenderParams, GroupRowRenderer, CoreGridApi, CoreGridState, GridApi, GridEvents, GridOptions, GridPlugin, GridState, PluginApiExtensions, PluginStateExtensions, ResolvedAggregationFunc, HeaderClassRules, HeaderGroupClassRules, HeaderGroupRenderParams, HeaderRenderParams, HeaderStyle, OverlayComponent, OverlayComponentProps, PooledRow, Range, RowClassRules, RowClickEvent, RowHeightUpdateOptions, RowHost, RowHoverEvent, RowId, RowHierarchy, RowHierarchyScope, RowGroupContext, RowGroupContextChild, RowNode, RowRenderParams, RowSpanLayout, RowStyle, RowTransaction, ScrollPosition, SlotComponentContent, SlotContent, SlotHtmlContent, SlotMount, SlotMountOptions, SlotName, SlotNodeContent, SlotNodeEvent, SlotNodeEventName, SlotPosition, SlotProvider, SlotRenderContext, SortDirection, TransactionResult, TreeRowNode, ViewportData, ViewportState, VirtualItem, } from "./types";
|
|
18
|
-
export { applyDefaultColumnDef, getColumnGroups, flattenColumns, isColumnGroup, isColumnLeaf, getCellValue, getCellSpanningParams, resolveColSpan, getRowSpans, } from "./columns";
|
|
19
|
-
export { Virtualizer, RowHeightRegistry } from "./virtualizer";
|
|
1
|
+
export { DomPool } from "./dom-pool.js";
|
|
2
|
+
export { EventBus } from "./events.js";
|
|
3
|
+
export { evaluateAutoOverlay } from "./overlays.js";
|
|
4
|
+
export { IconRegistry } from "./icons.js";
|
|
5
|
+
export type { IconDefinition, IconName } from "./icons.js";
|
|
6
|
+
export { Grid } from "./grid.js";
|
|
7
|
+
export { Grid as GridCore } from "./grid.js";
|
|
8
|
+
export { SlotManager } from "./slots.js";
|
|
9
|
+
export { Store } from "./store.js";
|
|
10
|
+
export type { StateUpdater } from "./store.js";
|
|
11
|
+
export { DataPipeline, PIPELINE_STAGE_ORDER } from "./pipeline.js";
|
|
12
|
+
export type { PipelineProcessor, PipelineStage } from "./pipeline.js";
|
|
13
|
+
export { applyFilterModel, applyQuickFilter, isActiveCondition, isFilterModelActive, matchesColumnFilter, } from "./filtering.js";
|
|
14
|
+
export type { ColumnFilterModel, FilterCondition, FilterModel, FilterOperator } from "./filtering.js";
|
|
15
|
+
export type { UIButtonControl, UICheckboxDescriptor, UIControlBase, UIControlDescriptor, UIGroupControl, UIInputControl, UIPopupAnchor, UIPopupDescriptor, UISelectControl, UISelectOption, UITextBlockControl, UIMultiSelectControl, UIMultiSelectOption, } from "./ui.js";
|
|
16
|
+
export type { OverlayOptions, OverlayScope, OverlayState, OverlayType } from "./overlays.js";
|
|
17
|
+
export type { BlockConfig, CellAlign, AggregationFunc, ColumnHeaderExtension, ColumnHeaderExtensionPosition, CellRenderParams, CellClassRules, CellSpan, CellSpanningParams, CheckboxControl, CheckboxRenderParams, ColSpanDef, ColumnClassRules, ColumnDataType, ColumnDropPosition, DefaultColumnDef, ColumnFilterType, ColumnDef, ColumnGroupDef, ColumnGroupViewport, ColumnLeafDef, ColumnStyle, ColumnStyleParams, DataProcessor, DataRowNode, DomPoolBindings, DomPoolUpdate, DomPoolUpdateOptions, GroupRowNode, GroupRowRenderParams, GroupRowRenderer, CoreGridApi, CoreGridState, GridApi, GridEvents, GridOptions, GridPlugin, GridState, PluginApiExtensions, PluginStateExtensions, ResolvedAggregationFunc, HeaderClassRules, HeaderGroupClassRules, HeaderGroupRenderParams, HeaderRenderParams, HeaderStyle, OverlayComponent, OverlayComponentProps, PooledRow, Range, RowClassRules, RowClickEvent, RowHeightUpdateOptions, RowHost, RowHoverEvent, RowId, RowHierarchy, RowHierarchyScope, RowGroupContext, RowGroupContextChild, RowNode, RowRenderParams, RowSpanLayout, RowStyle, RowTransaction, ScrollPosition, SlotComponentContent, SlotContent, SlotHtmlContent, SlotMount, SlotMountOptions, SlotName, SlotNodeContent, SlotNodeEvent, SlotNodeEventName, SlotPosition, SlotProvider, SlotRenderContext, SortDirection, TransactionResult, TreeRowNode, ViewportData, ViewportState, VirtualItem, } from "./types.js";
|
|
18
|
+
export { applyDefaultColumnDef, getColumnGroups, flattenColumns, isColumnGroup, isColumnLeaf, getCellValue, getCellSpanningParams, resolveColSpan, getRowSpans, } from "./columns.js";
|
|
19
|
+
export { Virtualizer, RowHeightRegistry } from "./virtualizer.js";
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { DomPool } from "./dom-pool";
|
|
2
|
-
export { EventBus } from "./events";
|
|
3
|
-
export { evaluateAutoOverlay } from "./overlays";
|
|
4
|
-
export { IconRegistry } from "./icons";
|
|
5
|
-
export { Grid } from "./grid";
|
|
6
|
-
export { Grid as GridCore } from "./grid";
|
|
7
|
-
export { SlotManager } from "./slots";
|
|
8
|
-
export { Store } from "./store";
|
|
9
|
-
export { DataPipeline, PIPELINE_STAGE_ORDER } from "./pipeline";
|
|
10
|
-
export { applyFilterModel, applyQuickFilter, isActiveCondition, isFilterModelActive, matchesColumnFilter, } from "./filtering";
|
|
11
|
-
export { applyDefaultColumnDef, getColumnGroups, flattenColumns, isColumnGroup, isColumnLeaf, getCellValue, getCellSpanningParams, resolveColSpan, getRowSpans, } from "./columns";
|
|
12
|
-
export { Virtualizer, RowHeightRegistry } from "./virtualizer";
|
|
1
|
+
export { DomPool } from "./dom-pool.js";
|
|
2
|
+
export { EventBus } from "./events.js";
|
|
3
|
+
export { evaluateAutoOverlay } from "./overlays.js";
|
|
4
|
+
export { IconRegistry } from "./icons.js";
|
|
5
|
+
export { Grid } from "./grid.js";
|
|
6
|
+
export { Grid as GridCore } from "./grid.js";
|
|
7
|
+
export { SlotManager } from "./slots.js";
|
|
8
|
+
export { Store } from "./store.js";
|
|
9
|
+
export { DataPipeline, PIPELINE_STAGE_ORDER } from "./pipeline.js";
|
|
10
|
+
export { applyFilterModel, applyQuickFilter, isActiveCondition, isFilterModelActive, matchesColumnFilter, } from "./filtering.js";
|
|
11
|
+
export { applyDefaultColumnDef, getColumnGroups, flattenColumns, isColumnGroup, isColumnLeaf, getCellValue, getCellSpanningParams, resolveColSpan, getRowSpans, } from "./columns.js";
|
|
12
|
+
export { Virtualizer, RowHeightRegistry } from "./virtualizer.js";
|
package/dist/pipeline.d.ts
CHANGED
package/dist/slots.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SlotMount, SlotMountOptions, SlotName, SlotProvider } from "./types";
|
|
1
|
+
import type { SlotMount, SlotMountOptions, SlotName, SlotProvider } from "./types.js";
|
|
2
2
|
export interface SlotManagerOptions<T> {
|
|
3
3
|
/**
|
|
4
4
|
* Called after each slot mount change. The grid uses this hook to
|
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { FilterCondition, FilterModel } from "./filtering";
|
|
2
|
-
import type { IconRegistry } from "./icons";
|
|
3
|
-
import type { OverlayOptions, OverlayState, OverlayType } from "./overlays";
|
|
4
|
-
import type { DataPipeline } from "./pipeline";
|
|
5
|
-
import type { SlotManager } from "./slots";
|
|
6
|
-
import type { StateUpdater } from "./store";
|
|
7
|
-
import type { UIPopupAnchor, UIPopupDescriptor } from "./ui";
|
|
8
|
-
export type { PipelineProcessor, PipelineStage } from "./pipeline";
|
|
1
|
+
import type { FilterCondition, FilterModel } from "./filtering.js";
|
|
2
|
+
import type { IconRegistry } from "./icons.js";
|
|
3
|
+
import type { OverlayOptions, OverlayState, OverlayType } from "./overlays.js";
|
|
4
|
+
import type { DataPipeline } from "./pipeline.js";
|
|
5
|
+
import type { SlotManager } from "./slots.js";
|
|
6
|
+
import type { StateUpdater } from "./store.js";
|
|
7
|
+
import type { UIPopupAnchor, UIPopupDescriptor } from "./ui.js";
|
|
8
|
+
export type { PipelineProcessor, PipelineStage } from "./pipeline.js";
|
|
9
9
|
export type RowId = string | number;
|
|
10
10
|
export type SortDirection = "asc" | "desc";
|
|
11
11
|
export type CellAlign = "left" | "center" | "right";
|
package/dist/virtualizer.d.ts
CHANGED