@vueye-table/core 3.0.0-alpha.1 → 3.0.0-alpha.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.
package/dist/index.d.ts CHANGED
@@ -1,10 +1,57 @@
1
- //#region src/path.d.ts
1
+ //#region src/state.d.ts
2
+ /** A stable identity for a row, read from the row itself or produced by a function. */
3
+ type RowKey = string | number;
4
+ type ExpandedState = readonly RowKey[] | true;
5
+ type SortDirection = "asc" | "desc";
6
+ /** One level of a sort. Several rules sort by the first, then break ties with the next. */
7
+ interface SortRule {
8
+ readonly column: string;
9
+ readonly direction: SortDirection;
10
+ }
11
+ /** Pages are counted from 1. */
12
+ interface PaginationState {
13
+ readonly page: number;
14
+ readonly pageSize: number;
15
+ }
2
16
  /**
3
- * Dotted property paths.
17
+ * Everything a user can change about a table, as plain serializable data.
4
18
  *
5
- * A column addresses nested data with a path such as `"address.city"`. The types below give every
6
- * such path its value type, and the functions read and write through a path without mutating.
19
+ * Being plain data, the state can be stored, restored, sent to a server that sorts and pages, or
20
+ * written to the URL with a library such as QueryWeave.
7
21
  */
22
+ interface TableState {
23
+ readonly sorting: readonly SortRule[];
24
+ /** Free text matched against every searchable column. */
25
+ readonly search: string;
26
+ /** Filter value per column id, interpreted by that column's `filter`. */
27
+ readonly filters: Readonly<Record<string, unknown>>;
28
+ readonly pagination: PaginationState;
29
+ readonly selection: readonly RowKey[];
30
+ /** Expanded keys, or true for every expandable row. */
31
+ readonly expanded: ExpandedState;
32
+ readonly hiddenColumns: readonly string[];
33
+ /** Column ids in display order. Columns missing from the list keep their definition order. */
34
+ readonly columnOrder: readonly string[];
35
+ }
36
+ /** A partial state, as accepted by `setState` and `initialState`. */
37
+ type TableStatePatch = { readonly [K in keyof TableState]?: TableState[K] | undefined; };
38
+ declare const DEFAULT_PAGE_SIZE = 10;
39
+ //#endregion
40
+ //#region src/issues.d.ts
41
+ /** Every problem the engine can report. The union grows in minor versions. */
42
+ type TableIssueCode = "duplicate_row_key" | "unknown_column" | "invalid_page_size" | "unknown_row" | "read_only_cell" | "invalid_value" | "invalid_expanded" | "unsafe_path" | "paste_truncated" | "invalid_paste_limit" | "invalid_virtual_option" | "invalid_virtual_size" | "invalid_virtual_viewport" | "duplicate_virtual_key";
43
+ /**
44
+ * A problem the engine recovered from. Invalid input is never dropped silently: the engine falls
45
+ * back to something safe and reports what it did here.
46
+ */
47
+ interface TableIssue {
48
+ readonly code: TableIssueCode;
49
+ readonly message: string;
50
+ readonly column?: string | undefined;
51
+ readonly rowKey?: RowKey | undefined;
52
+ }
53
+ //#endregion
54
+ //#region src/path.d.ts
8
55
  type Leaf = string | number | boolean | bigint | symbol | null | undefined | Date | readonly unknown[] | ((...args: never[]) => unknown);
9
56
  type Depth = [never, 0, 1, 2, 3];
10
57
  /** Every dotted path into `T`, four levels deep. Arrays, dates, and functions are leaves. */
@@ -15,9 +62,10 @@ type PathValue<T, TPath extends string> = TPath extends `${infer THead}.${infer
15
62
  declare function getPath(source: unknown, path: string): unknown;
16
63
  /**
17
64
  * Return a copy of `source` with `value` at `path`. Only the objects along the path are copied;
18
- * everything else is shared. Missing steps are created as plain objects.
65
+ * everything else is shared. Missing steps are created as plain objects. Unsafe paths return
66
+ * `source` unchanged and report an `unsafe_path` issue through `onIssue`, when supplied.
19
67
  */
20
- declare function setPath<T>(source: T, path: string, value: unknown): T;
68
+ declare function setPath<T>(source: T, path: string, value: unknown, onIssue?: (problem: TableIssue) => void): T;
21
69
  //#endregion
22
70
  //#region src/column.d.ts
23
71
  type ColumnAlign = "start" | "center" | "end";
@@ -257,6 +305,47 @@ interface UndoStack<TEntry> {
257
305
  }
258
306
  declare function createUndoStack<TEntry>(limit?: number): UndoStack<TEntry>;
259
307
  //#endregion
308
+ //#region src/virtualizer.d.ts
309
+ type VirtualAlign = "start" | "center" | "end" | "auto";
310
+ interface VirtualizerOptions {
311
+ readonly count: number;
312
+ readonly estimateSize: number | ((index: number) => number);
313
+ /** Extra items on each side. Defaults to 5. */
314
+ readonly overscan?: number | undefined;
315
+ /** Stable, unique identities preserve measurements across reorder and filtering. */
316
+ readonly getKey?: ((index: number) => RowKey) | undefined;
317
+ readonly onIssue?: ((problem: TableIssue) => void) | undefined;
318
+ }
319
+ interface VirtualItem {
320
+ readonly index: number;
321
+ readonly key: RowKey;
322
+ readonly start: number;
323
+ readonly size: number;
324
+ }
325
+ interface VirtualWindow {
326
+ readonly items: readonly VirtualItem[];
327
+ readonly totalSize: number;
328
+ readonly paddingStart: number;
329
+ readonly paddingEnd: number;
330
+ /** Inclusive indices; an empty result uses 0 and -1. */
331
+ readonly startIndex: number;
332
+ readonly endIndex: number;
333
+ /** Clamped viewport values, excluding overscan. */
334
+ readonly offset: number;
335
+ readonly viewportSize: number;
336
+ readonly issues: readonly TableIssue[];
337
+ }
338
+ interface Virtualizer {
339
+ setOptions(options: VirtualizerOptions): void;
340
+ setViewport(offset: number, size: number): void;
341
+ measure(key: RowKey, size: number): void;
342
+ getWindow(): VirtualWindow;
343
+ getOffsetForIndex(index: number, align?: VirtualAlign): number;
344
+ subscribe(listener: (view: VirtualWindow) => void): () => void;
345
+ }
346
+ /** Layout arithmetic for either axis. All viewport values and measurements come from the caller. */
347
+ declare function createVirtualizer(initialOptions: VirtualizerOptions): Virtualizer;
348
+ //#endregion
260
349
  //#region src/humanize.d.ts
261
350
  /**
262
351
  * Turn a column id into a readable header: `"name.first_name"` becomes `"Name first name"` and
@@ -271,56 +360,6 @@ declare function humanize(id: string): string;
271
360
  */
272
361
  declare function inferColumns<TRow>(rows: readonly TRow[], sample?: number): readonly ColumnDef<TRow>[];
273
362
  //#endregion
274
- //#region src/state.d.ts
275
- /** A stable identity for a row, read from the row itself or produced by a function. */
276
- type RowKey = string | number;
277
- type SortDirection = "asc" | "desc";
278
- /** One level of a sort. Several rules sort by the first, then break ties with the next. */
279
- interface SortRule {
280
- readonly column: string;
281
- readonly direction: SortDirection;
282
- }
283
- /** Pages are counted from 1. */
284
- interface PaginationState {
285
- readonly page: number;
286
- readonly pageSize: number;
287
- }
288
- /**
289
- * Everything a user can change about a table, as plain serializable data.
290
- *
291
- * Being plain data, the state can be stored, restored, sent to a server that sorts and pages, or
292
- * written to the URL with a library such as QueryWeave.
293
- */
294
- interface TableState {
295
- readonly sorting: readonly SortRule[];
296
- /** Free text matched against every searchable column. */
297
- readonly search: string;
298
- /** Filter value per column id, interpreted by that column's `filter`. */
299
- readonly filters: Readonly<Record<string, unknown>>;
300
- readonly pagination: PaginationState;
301
- readonly selection: readonly RowKey[];
302
- readonly hiddenColumns: readonly string[];
303
- /** Column ids in display order. Columns missing from the list keep their definition order. */
304
- readonly columnOrder: readonly string[];
305
- }
306
- /** A partial state, as accepted by `setState` and `initialState`. */
307
- type TableStatePatch = { readonly [K in keyof TableState]?: TableState[K] | undefined; };
308
- declare const DEFAULT_PAGE_SIZE = 10;
309
- //#endregion
310
- //#region src/issues.d.ts
311
- /** Every problem the engine can report. The union grows in minor versions. */
312
- type TableIssueCode = "duplicate_row_key" | "unknown_column" | "invalid_page_size" | "unknown_row" | "read_only_cell" | "invalid_value";
313
- /**
314
- * A problem the engine recovered from. Invalid input is never dropped silently: the engine falls
315
- * back to something safe and reports what it did here.
316
- */
317
- interface TableIssue {
318
- readonly code: TableIssueCode;
319
- readonly message: string;
320
- readonly column?: string | undefined;
321
- readonly rowKey?: RowKey | undefined;
322
- }
323
- //#endregion
324
363
  //#region src/row.d.ts
325
364
  /**
326
365
  * One row of data as the engine sees it: its key, its position in the source data, and cached
@@ -331,10 +370,24 @@ interface TableRow<TRow> {
331
370
  /** Position in the data the table was given. */
332
371
  readonly index: number;
333
372
  readonly original: TRow;
373
+ readonly canExpand: boolean;
374
+ readonly isExpanded: boolean;
334
375
  getValue(columnId: string): unknown;
335
376
  /** The formatted text of a cell, as shown, searched, copied, and exported. */
336
377
  getDisplay(columnId: string): string;
337
378
  }
379
+ type RowItemKind = "row" | "detail";
380
+ /** A renderer item; detail items do not count as data rows or grid coordinates. */
381
+ interface TableRenderItem<TRow> {
382
+ readonly kind: RowItemKind;
383
+ readonly key: string;
384
+ /** The parent data row, also for detail items. */
385
+ readonly row: TableRow<TRow>;
386
+ /** Position of the parent in snapshot.rows. */
387
+ readonly rowIndex: number;
388
+ }
389
+ /** Disjoint namespaces and typed keys avoid collisions between 1, "1", and detail-like ids. */
390
+ declare function getRowItemKey(key: RowKey, kind?: RowItemKind): string;
338
391
  //#endregion
339
392
  //#region src/pipeline.d.ts
340
393
  /**
@@ -367,8 +420,15 @@ declare function paginationItems(page: number, pageCount: number, siblings?: num
367
420
  //#endregion
368
421
  //#region src/table.d.ts
369
422
  type SelectionMode = "none" | "single" | "multiple";
423
+ type ExpandMode = "single" | "multiple";
370
424
  /** Which rows "select all" covers: the current page, or every row that passes the filters. */
371
425
  type SelectScope = "page" | "all";
426
+ interface PasteLimit {
427
+ /** Maximum fields examined per paste, including clipped columns. Defaults to 100,000. */
428
+ readonly maxCells?: number | undefined;
429
+ /** Maximum UTF-16 code units examined per paste. Defaults to 5,000,000. */
430
+ readonly maxLength?: number | undefined;
431
+ }
372
432
  interface TableOptions<TRow> {
373
433
  readonly data: readonly TRow[];
374
434
  readonly columns: readonly ColumnDef<TRow>[];
@@ -378,6 +438,10 @@ interface TableOptions<TRow> {
378
438
  */
379
439
  readonly rowKey?: DeepKeys<TRow> | ((row: TRow, index: number) => RowKey) | undefined;
380
440
  readonly initialState?: TableStatePatch | undefined;
441
+ /** Present all processed rows rather than a page. Defaults to true. */
442
+ readonly paginate?: boolean | undefined;
443
+ readonly getRowCanExpand?: ((row: TRow) => boolean) | undefined;
444
+ readonly expandMode?: ExpandMode | undefined;
381
445
  /** Defaults to `"multiple"`. */
382
446
  readonly selectionMode?: SelectionMode | undefined;
383
447
  /** Defaults to `"all"`. */
@@ -397,6 +461,8 @@ interface TableOptions<TRow> {
397
461
  readonly onEditIssues?: ((issues: readonly TableIssue[]) => void) | undefined;
398
462
  /** The most edit batches `undo` can reach. Defaults to 100. */
399
463
  readonly historyLimit?: number | undefined;
464
+ /** Bound clipboard parsing. Only complete cells inside the visible grid are applied. */
465
+ readonly pasteLimit?: PasteLimit | undefined;
400
466
  }
401
467
  type SelectionCoverage = "none" | "some" | "all";
402
468
  interface SortInfo {
@@ -414,8 +480,11 @@ interface TableSnapshot<TRow> {
414
480
  readonly columns: readonly TableColumn<TRow>[];
415
481
  /** Every column in display order, hidden ones included. */
416
482
  readonly allColumns: readonly TableColumn<TRow>[];
417
- /** Rows on the current page. */
483
+ /** Rows on the current page, or all processed rows when pagination is disabled. */
418
484
  readonly rows: readonly TableRow<TRow>[];
485
+ /** Data rows followed by their open details; details do not affect pagination or grid positions. */
486
+ readonly renderItems: readonly TableRenderItem<TRow>[];
487
+ readonly paginate: boolean;
419
488
  /** Rows on every page, filtered and sorted. For `manual` tables this is the current page. */
420
489
  readonly processedRows: readonly TableRow<TRow>[];
421
490
  /** The current page, clamped into range. */
@@ -478,7 +547,13 @@ interface EditResult<TRow> {
478
547
  readonly changes: readonly CellChange<TRow>[];
479
548
  readonly issues: readonly TableIssue[];
480
549
  }
481
- interface ExportOptions {
550
+ interface CopyOptions {
551
+ /** Prefix formula-like text with an apostrophe. Defaults to false for clipboard copies. */
552
+ readonly escapeFormulas?: boolean | undefined;
553
+ }
554
+ interface ExportOptions extends CopyOptions {
555
+ /** Prefix formula-like text with an apostrophe. Defaults to true for exports. */
556
+ readonly escapeFormulas?: boolean | undefined;
482
557
  /** Defaults to `"csv"`. */
483
558
  readonly format?: "csv" | "tsv" | undefined;
484
559
  /** Column ids to export. Defaults to the visible columns. */
@@ -530,13 +605,16 @@ interface DataTable<TRow> {
530
605
  clearSelection(): void;
531
606
  /** The selected rows that are present in the data. */
532
607
  getSelectedRows(): readonly TableRow<TRow>[];
608
+ toggleExpanded(key: RowKey, expanded?: boolean): void;
609
+ expandAll(): void;
610
+ collapseAll(): void;
533
611
  toggleColumn(columnId: string, visible?: boolean): void;
534
612
  moveColumn(columnId: string, toIndex: number): void;
535
613
  edit(edits: CellEdit | readonly CellEdit[]): EditResult<TRow>;
536
614
  undo(): boolean;
537
615
  redo(): boolean;
538
616
  /** The text of a range of shown cells, tab-separated like a spreadsheet clipboard. */
539
- copy(range: CellRange): string;
617
+ copy(range: CellRange, options?: CopyOptions): string;
540
618
  /** Paste tab-separated text with its top-left cell at `origin`, clipped to the grid. */
541
619
  paste(origin: CellPosition, text: string): EditResult<TRow>;
542
620
  /** Empty every editable cell in a range. */
@@ -550,5 +628,5 @@ interface DataTable<TRow> {
550
628
  /** Create a data table. */
551
629
  declare function createTable<TRow>(options: TableOptions<TRow>): DataTable<TRow>;
552
630
  //#endregion
553
- export { type AnyColumnDef, type CellChange, type CellEdit, type CellInputEdit, type CellPosition, type CellRange, type CellValueEdit, type ColumnAlign, type ColumnDef, type ColumnOptions, type ColumnType, type ComputedColumnDef, DEFAULT_PAGE_SIZE, type DataTable, type DeepKeys, type EditResult, type EditStatus, type ExportOptions, type GridBounds, type GridCommand, type GridDirection, type GridKey, type GridSelection, type MoveOptions, type PageItem, type PaginationState, type ParseResult, type PathColumnDef, type PathValue, type RangeFilter, type RowKey, type SelectScope, type SelectionCoverage, type SelectionMode, type SortDirection, type SortInfo, type SortRule, type TableColumn, type TableIssue, type TableIssueCode, type TableOptions, type TableRow, type TableSnapshot, type TableState, type TableStatePatch, type UndoStack, clampPage, clampPosition, columnLabel, compareValues, countPages, createTable, createUndoStack, defineColumns, filterRows, formatValue, fromA1, getPath, gridCommand, humanize, inferColumns, matchesFilter, moveSelection, paginateRows, paginationItems, parseAs, parseDelimited, rangeContains, resolveColumn, selectCell, selectionRange, setPath, sortRows, toA1, toDelimited, typeOf };
631
+ export { type AnyColumnDef, type CellChange, type CellEdit, type CellInputEdit, type CellPosition, type CellRange, type CellValueEdit, type ColumnAlign, type ColumnDef, type ColumnOptions, type ColumnType, type ComputedColumnDef, type CopyOptions, DEFAULT_PAGE_SIZE, type DataTable, type DeepKeys, type EditResult, type EditStatus, type ExpandMode, type ExpandedState, type ExportOptions, type GridBounds, type GridCommand, type GridDirection, type GridKey, type GridSelection, type MoveOptions, type PageItem, type PaginationState, type ParseResult, type PasteLimit, type PathColumnDef, type PathValue, type RangeFilter, type RowItemKind, type RowKey, type SelectScope, type SelectionCoverage, type SelectionMode, type SortDirection, type SortInfo, type SortRule, type TableColumn, type TableIssue, type TableIssueCode, type TableOptions, type TableRenderItem, type TableRow, type TableSnapshot, type TableState, type TableStatePatch, type UndoStack, type VirtualAlign, type VirtualItem, type VirtualWindow, type Virtualizer, type VirtualizerOptions, clampPage, clampPosition, columnLabel, compareValues, countPages, createTable, createUndoStack, createVirtualizer, defineColumns, filterRows, formatValue, fromA1, getPath, getRowItemKey, gridCommand, humanize, inferColumns, matchesFilter, moveSelection, paginateRows, paginationItems, parseAs, parseDelimited, rangeContains, resolveColumn, selectCell, selectionRange, setPath, sortRows, toA1, toDelimited, typeOf };
554
632
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/path.ts","../src/column.ts","../src/delimited.ts","../src/grid.ts","../src/undo-stack.ts","../src/humanize.ts","../src/infer.ts","../src/state.ts","../src/issues.ts","../src/row.ts","../src/pipeline.ts","../src/table.ts"],"mappings":";;;;;;;KAOK,wEAQD,iCAEK;KAEJ;;KAGO,SAAS,GAAG,8BAA8B,kCAElD,UAAU,kBAGL,WAAW,aACR,KACC,YAAY,EAAE,YAAY,kBAEpB,KAAK,SAAS,YAAY,EAAE,KAAK,MAAM,qBAC5C;;KAGF,UAAU,GAAG,wBAAwB,uBAAuB,eAAe,UACnF,oBAAoB,IAClB,UAAU,YAAY,EAAE,SAAS,4BAA4B,EAAE,0CAEjE,oBAAoB,IAClB,EAAE;;iBAQQ,QAAQ,iBAAiB;;;;;iBAezB,QAAQ,GAAG,QAAQ,GAAG,cAAc,iBAAiB;;;KC5DzD;;KAGA;;UAGK;WACN,wBAAwB;WACxB,wBAAwB;;;UAIlB,cAAc,MAAM;;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,WAAW,2BACX;aAAqB;;EAEvB;EACA,OAAO;;EAEP,OAAO,kBAAkB;EACzB;EAEA,SAAS;EACT;EACA;;EAEA,YAAY;EAEZ,OAAO,eAAe;EACtB,SAAS,eAAe;EACxB,UAAU,KAAK,QAAQ;;EAEvB,UAAU,QAAQ;EAClB;;EAEA,4BAA4B,SAAS;EAErC,aAAa,kBAAkB;EAC/B,WAAW,kBAAkB;EAE7B,KAAK,OAAO,oBAAoB,aAAa,WAAW;EACxD;EACA;;EAEA,KAAK,OAAO;;EAEZ,MAAM,QAAQ,cAAc,eAAe,WAAW;;EAEtD,MAAM,OAAO,YAAY,WAAW;EACpC,WAAW,UAAU;;EAGrB;;EAEA;;;iBA2Cc,YAAY,MAAM,SAAS,aAAa,QAAQ,UAAU"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/state.ts","../src/issues.ts","../src/path.ts","../src/column.ts","../src/delimited.ts","../src/grid.ts","../src/undo-stack.ts","../src/virtualizer.ts","../src/humanize.ts","../src/infer.ts","../src/row.ts","../src/pipeline.ts","../src/table.ts"],"mappings":";;KAGY;KACA,yBAAyB;KAEzB;;UAGK;WACN;WACA,WAAW;;;UAIL;WACN;WACA;;;;;;;;UASM;WACN,kBAAkB;;WAElB;;WAEA,SAAS,SAAS;WAClB,YAAY;WACZ,oBAAoB;;WAEpB,UAAU;WACV;;WAEA;;;KAIC,8BACA,WAAW,cAAc,WAAW;cAGnC;;;;KC3CD;;;;;UAoBK;WACN,MAAM;WACN;WACA;WACA,SAAS;;;;KClBf,wEAQD,iCAEK;KAEJ;;KAGO,SAAS,GAAG,8BAA8B,kCAElD,UAAU,kBAGL,WAAW,aACR,KACC,YAAY,EAAE,YAAY,kBAEpB,KAAK,SAAS,YAAY,EAAE,KAAK,MAAM,qBAC5C;;KAGF,UAAU,GAAG,wBAAwB,uBAAuB,eAAe,UACnF,oBAAoB,IAClB,UAAU,YAAY,EAAE,SAAS,4BAA4B,EAAE,0CAEjE,oBAAoB,IAClB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