@omnigrid/core 0.1.4 → 0.1.5

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/index.d.ts CHANGED
@@ -6,6 +6,6 @@ export { Grid } from "./grid";
6
6
  export { Grid as GridCore } from "./grid";
7
7
  export { SlotManager } from "./slots";
8
8
  export { Store } from "./store";
9
- export type { CellAlign, CellRenderParams, CellClassRules, CheckboxControl, CheckboxRenderParams, ColumnDef, ColumnGroupDef, ColumnGroupViewport, ColumnLeafDef, DataProcessor, DomPoolBindings, DomPoolUpdate, GridApi, GridEvents, GridOptions, GridPlugin, GridState, PooledRow, Range, RowClassRules, RowClickEvent, RowHost, RowHoverEvent, RowId, RowRenderParams, RowStyle, ScrollPosition, SlotComponentContent, SlotContent, SlotHtmlContent, SlotMount, SlotMountOptions, SlotName, SlotNodeContent, SlotNodeEvent, SlotNodeEventName, SlotPosition, SlotProvider, SlotRenderContext, SortDirection, ViewportData, ViewportState, VirtualItem, } from "./types";
9
+ export type { BlockConfig, CellAlign, CellRenderParams, CellClassRules, CheckboxControl, CheckboxRenderParams, ColumnDef, ColumnGroupDef, ColumnGroupViewport, ColumnLeafDef, DataProcessor, DomPoolBindings, DomPoolUpdate, GridApi, GridEvents, GridOptions, GridPlugin, GridState, PooledRow, Range, RowClassRules, RowClickEvent, RowHost, RowHoverEvent, RowId, RowRenderParams, RowStyle, ScrollPosition, SlotComponentContent, SlotContent, SlotHtmlContent, SlotMount, SlotMountOptions, SlotName, SlotNodeContent, SlotNodeEvent, SlotNodeEventName, SlotPosition, SlotProvider, SlotRenderContext, SortDirection, ViewportData, ViewportState, VirtualItem, } from "./types";
10
10
  export { getColumnGroups, flattenColumns, isColumnGroup, isColumnLeaf } from "./columns";
11
11
  export { Virtualizer } from "./virtualizer";
package/dist/types.d.ts CHANGED
@@ -265,6 +265,19 @@ export interface GridPlugin<T> {
265
265
  }
266
266
  export type SlotName = "top" | "bottom" | "left" | "right";
267
267
  export type SlotPosition = "start" | "center" | "end";
268
+ /**
269
+ * Placement of a single UI block that a plugin mounts into a slot.
270
+ *
271
+ * Generic over `Name` so every plugin can restrict the accepted block names,
272
+ * e.g. `BlockConfig<"rowInfo" | "pageSize" | "navigation">` in the pagination
273
+ * plugin, while still being able to target any slot / position.
274
+ */
275
+ export interface BlockConfig<Name extends string = string> {
276
+ name: Name;
277
+ slot?: SlotName;
278
+ position?: SlotPosition;
279
+ priority?: number;
280
+ }
268
281
  export type SlotNodeEventName = "click" | "change" | "keydown";
269
282
  export interface SlotNodeEvent {
270
283
  value?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnigrid/core",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Framework-agnostic core engine for OmniGrid",
5
5
  "keywords": [
6
6
  "omnigrid",