virtua 0.52.0 → 0.52.2

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.
@@ -1,5 +1,5 @@
1
1
  import { type OnInit, TemplateRef } from "@angular/core";
2
- import { type GridCellState, type GridRowGroupState, type GridRowState, type VGridScrollToIndexOpts, type VGridAxis, type VGridCell, type VGridSize, type VGridSpan } from "../core/index.js";
2
+ import { type GridCellState, type GridRowGroupState, type GridRowState, type GridScrollToIndexOpts, type GridAxis, type GridCell as GridCellType, type GridSize, type GridSpan } from "../core/index.js";
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Methods of {@link VGrid}.
@@ -61,9 +61,9 @@ export interface VGridHandle {
61
61
  getColSize(index: number): number;
62
62
  /**
63
63
  * Scroll to the cell specified by the indexes. The cell is not hidden behind the rows and the columns sticking over it.
64
- * @param opts the indexes of the cell and the options. See {@link VGridScrollToIndexOpts}.
64
+ * @param opts the indexes of the cell and the options. See {@link GridScrollToIndexOpts}.
65
65
  */
66
- scrollToIndex(opts: VGridScrollToIndexOpts): void;
66
+ scrollToIndex(opts: GridScrollToIndexOpts): void;
67
67
  /**
68
68
  * Scroll to the given offsets from the top/start of the scroll container.
69
69
  * @param offset the offsets. The axis whose offset is omitted is not scrolled.
@@ -100,7 +100,7 @@ export type CellContext<R = number, C = number> = {
100
100
  /**
101
101
  * The row index and the column index of the cell.
102
102
  */
103
- cell: Readonly<VGridCell>;
103
+ cell: Readonly<GridCellType>;
104
104
  };
105
105
  export declare class GridCell {
106
106
  readonly state: import("@angular/core").InputSignal<GridCellState>;
@@ -113,7 +113,7 @@ export declare class GridRow<R, C> {
113
113
  readonly state: import("@angular/core").InputSignal<GridRowState>;
114
114
  readonly template: import("@angular/core").InputSignal<TemplateRef<CellContext<R, C>>>;
115
115
  readonly row: import("@angular/core").InputSignal<R>;
116
- readonly cols: import("@angular/core").InputSignal<VGridAxis<C>>;
116
+ readonly cols: import("@angular/core").InputSignal<GridAxis<C>>;
117
117
  readonly resizer: import("@angular/core").InputSignal<(el: HTMLElement, rowIndex: number | undefined, colIndex: number | undefined) => () => void>;
118
118
  static ɵfac: i0.ɵɵFactoryDeclaration<GridRow<any, any>, never>;
119
119
  static ɵcmp: i0.ɵɵComponentDeclaration<GridRow<any, any>, "div[virtuaGridRow]", never, { "state": { "alias": "state"; "required": true; "isSignal": true; }; "template": { "alias": "template"; "required": true; "isSignal": true; }; "row": { "alias": "row"; "required": true; "isSignal": true; }; "cols": { "alias": "cols"; "required": true; "isSignal": true; }; "resizer": { "alias": "resizer"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -121,8 +121,8 @@ export declare class GridRow<R, C> {
121
121
  export declare class GridRowGroup<R, C> {
122
122
  readonly state: import("@angular/core").InputSignal<GridRowGroupState>;
123
123
  readonly template: import("@angular/core").InputSignal<TemplateRef<CellContext<R, C>>>;
124
- readonly rows: import("@angular/core").InputSignal<VGridAxis<R>>;
125
- readonly cols: import("@angular/core").InputSignal<VGridAxis<C>>;
124
+ readonly rows: import("@angular/core").InputSignal<GridAxis<R>>;
125
+ readonly cols: import("@angular/core").InputSignal<GridAxis<C>>;
126
126
  readonly resizer: import("@angular/core").InputSignal<(el: HTMLElement, rowIndex: number | undefined, colIndex: number | undefined) => () => void>;
127
127
  static ɵfac: i0.ɵɵFactoryDeclaration<GridRowGroup<any, any>, never>;
128
128
  static ɵcmp: i0.ɵɵComponentDeclaration<GridRowGroup<any, any>, "div[virtuaGridRowGroup]", never, { "state": { "alias": "state"; "required": true; "isSignal": true; }; "template": { "alias": "template"; "required": true; "isSignal": true; }; "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "cols": { "alias": "cols"; "required": true; "isSignal": true; }; "resizer": { "alias": "resizer"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -134,21 +134,21 @@ export declare class GridRowGroup<R, C> {
134
134
  */
135
135
  export declare class VGrid<R = number, C = number> implements OnInit, VGridHandle {
136
136
  /**
137
- * The rows of the grid. See {@link VGridAxis} for the accepted values.
137
+ * The rows of the grid. See {@link GridAxis} for the accepted values.
138
138
  */
139
- readonly rows: import("@angular/core").InputSignal<VGridAxis<R>>;
139
+ readonly rows: import("@angular/core").InputSignal<GridAxis<R>>;
140
140
  /**
141
- * The columns of the grid. See {@link VGridAxis} for the accepted values.
141
+ * The columns of the grid. See {@link GridAxis} for the accepted values.
142
142
  */
143
- readonly cols: import("@angular/core").InputSignal<VGridAxis<C>>;
143
+ readonly cols: import("@angular/core").InputSignal<GridAxis<C>>;
144
144
  /**
145
- * The heights of the rows. See {@link VGridSize} for the accepted values.
145
+ * The heights of the rows. See {@link GridSize} for the accepted values.
146
146
  */
147
- readonly rowHeight: import("@angular/core").InputSignal<NoInfer<VGridSize<R>>>;
147
+ readonly rowHeight: import("@angular/core").InputSignal<GridSize<R>>;
148
148
  /**
149
- * The widths of the columns. See {@link VGridSize} for the accepted values.
149
+ * The widths of the columns. See {@link GridSize} for the accepted values.
150
150
  */
151
- readonly colWidth: import("@angular/core").InputSignal<NoInfer<VGridSize<C>>>;
151
+ readonly colWidth: import("@angular/core").InputSignal<GridSize<C>>;
152
152
  /**
153
153
  * The number of the leading rows pinned to the start, which are the column headers (`role="columnheader"`).
154
154
  *
@@ -184,15 +184,15 @@ export declare class VGrid<R = number, C = number> implements OnInit, VGridHandl
184
184
  */
185
185
  readonly footerCols: import("@angular/core").InputSignal<number | undefined>;
186
186
  /**
187
- * Cells merged over multiple rows and/or columns. See {@link VGridSpan} for the accepted values.
187
+ * Cells merged over multiple rows and/or columns. See {@link GridSpan} for the accepted values.
188
188
  *
189
189
  * The cell at the origin is stretched over the merged area, and the other cells in it are not rendered. Spans must not overlap each other or cross the boundaries of the pinned rows/columns or the sections. A spanning cell is not measured for `"auto"` sizes on the axes it spans, and doesn't enlarge those tracks.
190
190
  */
191
- readonly spans: import("@angular/core").InputSignal<readonly VGridSpan[] | undefined>;
191
+ readonly spans: import("@angular/core").InputSignal<readonly GridSpan[] | undefined>;
192
192
  /**
193
193
  * List of cells that should be always mounted, even when off screen.
194
194
  */
195
- readonly keepMounted: import("@angular/core").InputSignal<readonly VGridCell[] | undefined>;
195
+ readonly keepMounted: import("@angular/core").InputSignal<readonly GridCellType[] | undefined>;
196
196
  /**
197
197
  * Extra space in pixels to render before/after the viewport. The minimum value is 0. Lower value will give better performance but you can increase to avoid showing blank cells in fast scrolling.
198
198
  * @defaultValue 200
@@ -206,7 +206,7 @@ export declare class VGrid<R = number, C = number> implements OnInit, VGridHandl
206
206
  /**
207
207
  * The header cell of the sorted column or row, and the sort order (`aria-sort`).
208
208
  */
209
- readonly ariaSort: import("@angular/core").InputSignal<(VGridCell & {
209
+ readonly ariaSort: import("@angular/core").InputSignal<(GridCellType & {
210
210
  order: "ascending" | "descending" | "other";
211
211
  }) | undefined>;
212
212
  /**
@@ -235,7 +235,7 @@ export declare class VGrid<R = number, C = number> implements OnInit, VGridHandl
235
235
  getColOffset(index: number): number;
236
236
  getRowSize(index: number): number;
237
237
  getColSize(index: number): number;
238
- scrollToIndex(opts: VGridScrollToIndexOpts): void;
238
+ scrollToIndex(opts: GridScrollToIndexOpts): void;
239
239
  scrollTo({ vertical, horizontal, }: {
240
240
  vertical?: number;
241
241
  horizontal?: number;
@@ -5,4 +5,4 @@ export { VList, type VListHandle } from "./VList.js";
5
5
  export { Virtualizer, type VirtualizerHandle } from "./Virtualizer.js";
6
6
  export { WindowVirtualizer, type WindowVirtualizerHandle, } from "./WindowVirtualizer.js";
7
7
  export { VGrid, type VGridHandle } from "./VGrid.js";
8
- export type { VGridSize, VGridSpan } from "../core/index.js";
8
+ export type { GridSize, GridSpan } from "../core/index.js";