@elaraai/east-ui 1.0.84 → 1.0.85

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.
Files changed (43) hide show
  1. package/dist/src/collections/plan/root.js +5 -7
  2. package/dist/src/collections/plan/root.js.map +1 -1
  3. package/dist/src/collections/plan/types.d.ts +1 -1
  4. package/dist/src/collections/plan/types.js +1 -1
  5. package/dist/src/collections/sheet/editing-bridge.js +1 -1
  6. package/dist/src/collections/sheet/editing-bridge.js.map +1 -1
  7. package/dist/src/collections/sheet/root.d.ts +1 -1
  8. package/dist/src/collections/sheet/root.js +1 -1
  9. package/dist/src/collections/sheet/root.js.map +1 -1
  10. package/dist/src/contracts/index.d.ts +1 -1
  11. package/dist/src/contracts/index.d.ts.map +1 -1
  12. package/dist/src/contracts/pick.js +4 -4
  13. package/dist/src/contracts/pick.js.map +1 -1
  14. package/dist/src/contracts/source.d.ts +87 -131
  15. package/dist/src/contracts/source.d.ts.map +1 -1
  16. package/dist/src/contracts/source.js +153 -368
  17. package/dist/src/contracts/source.js.map +1 -1
  18. package/dist/src/index.d.ts +1 -1
  19. package/dist/src/index.d.ts.map +1 -1
  20. package/dist/src/index.js +2 -3
  21. package/dist/src/index.js.map +1 -1
  22. package/dist/src/internal.d.ts.map +1 -1
  23. package/dist/src/internal.js +2 -1
  24. package/dist/src/internal.js.map +1 -1
  25. package/dist/src/style/typography.d.ts +18 -18
  26. package/dist/src/style/typography.js +18 -18
  27. package/dist/test/collections/index.d.ts +0 -1
  28. package/dist/test/collections/index.d.ts.map +1 -1
  29. package/dist/test/collections/index.js +0 -1
  30. package/dist/test/collections/index.js.map +1 -1
  31. package/dist/test/collections/sheet.examples.d.ts +0 -7
  32. package/dist/test/collections/sheet.examples.d.ts.map +1 -1
  33. package/dist/test/collections/sheet.examples.js +4 -31
  34. package/dist/test/collections/sheet.examples.js.map +1 -1
  35. package/dist/test/collections/table.examples.d.ts +0 -7
  36. package/dist/test/collections/table.examples.d.ts.map +1 -1
  37. package/dist/test/collections/table.examples.js +1 -22
  38. package/dist/test/collections/table.examples.js.map +1 -1
  39. package/package.json +5 -9
  40. package/dist/test/collections/paged-source.examples.d.ts +0 -14
  41. package/dist/test/collections/paged-source.examples.d.ts.map +0 -1
  42. package/dist/test/collections/paged-source.examples.js +0 -252
  43. package/dist/test/collections/paged-source.examples.js.map +0 -1
@@ -9,11 +9,14 @@
9
9
  * source, and this module is the one place that vocabulary is spelled. Both are
10
10
  * parameterised on the COLLECTION the component speaks — an `Array<Row>` for a
11
11
  * positional surface, a `Dict<String, Row>` for a keyed one (#568). east-ui
12
- * declares the shape; whoever can actually fetch windows produces a value of
13
- * it. `Data.bindPaged` in `@elaraai/e3-ui` is the production implementation
14
- * (dataset windows over an e3 workspace) and {@link Paged.of} /
15
- * {@link Paged.pinned} are the in-memory ones; e3 is never named here, and
16
- * **nothing in this file imports e3**.
12
+ * declares the shape; the platform that owns the data produces a value of it.
13
+ * Paged data is BOUND: `Data.bindPaged` in `@elaraai/e3-ui` is the producer
14
+ * (dataset windows over an e3 workspace), and east-ui produces none. e3 is
15
+ * never named here, and **nothing in this file imports e3**.
16
+ *
17
+ * A component recognises a paged source by its East TYPE: a subtype of the
18
+ * contract over the collection its `page` serves, never a struct that merely
19
+ * has fields of the right names ({@link resolveRowSource}).
17
20
  *
18
21
  * # Why a variant, not a narrow struct
19
22
  *
@@ -29,7 +32,7 @@
29
32
  *
30
33
  * @packageDocumentation
31
34
  */
32
- import { type EastType, type ExprType, type SubtypeExprOrValue, ArrayType, BooleanType, DictType, FunctionType, IntegerType, NullType, OptionType, StringType, StructType, VariantType } from "@elaraai/east";
35
+ import { type EastType, type ExprType, type SubtypeExprOrValue, ArrayType, BooleanType, FunctionType, IntegerType, NullType, OptionType, StringType, StructType, VariantType } from "@elaraai/east";
33
36
  /**
34
37
  * Where a key query landed in a source's canonical row order.
35
38
  *
@@ -159,7 +162,10 @@ export type SeekQueryType = typeof SeekQueryType;
159
162
  * once: the same `id` serves the same rows for as long as the component holds
160
163
  * it. A source whose content moves under one id — a dataset the view follows,
161
164
  * a source the view writes — is a {@link PinnedSourceType}, which names the
162
- * snapshot its windows, total and searches belong to.
165
+ * snapshot its windows, total and searches belong to, and is what
166
+ * `Data.bindPaged` returns. This shape PREDATES `revision` / `refresh`: it is
167
+ * the handle `data_bind_paged` returned before them, which a UI exported then
168
+ * still carries, so a component takes it as it always did.
163
169
  *
164
170
  * @typeParam C - The collection type one window carries.
165
171
  * @param c - The collection type value.
@@ -228,8 +234,8 @@ export type PagedSource<C extends EastType> = ExprType<ReturnType<typeof PagedSo
228
234
  * (#880) — which is why the Sheet and the Plan edit a paged source only
229
235
  * through this contract.
230
236
  *
231
- * `Data.bindPaged` in `@elaraai/e3-ui` returns one, its revision the dataset's
232
- * content hash, and {@link Paged.pinned} is the in-memory one.
237
+ * This is the contract: `Data.bindPaged` in `@elaraai/e3-ui` returns one, its
238
+ * revision the dataset's content hash.
233
239
  *
234
240
  * @typeParam C - The collection type one window carries.
235
241
  * @param c - The collection type value.
@@ -329,8 +335,9 @@ export type RowSource<C extends EastType> = ExprType<ReturnType<typeof RowSource
329
335
  /**
330
336
  * The loose TS face a paged source presents at a `rows` / `data` prop —
331
337
  * structural only (`page` / `total`, which a concrete source expression
332
- * exposes and an array expression does not). {@link resolveRowSource}'s
333
- * `Expr.type` dispatch is the real check.
338
+ * exposes and an array expression does not). The real check is
339
+ * {@link resolveRowSource}'s: the expression's East type must be a subtype of
340
+ * the contract.
334
341
  */
335
342
  export interface PagedSourceLike {
336
343
  /** The source's page method (typed precisely on the concrete value). */
@@ -395,20 +402,29 @@ export type ResolvedWindowedSource = Extract<ResolvedRowSource, {
395
402
  *
396
403
  * Accepted shapes, in order:
397
404
  * - a collection expression / value (`Array<R>`, `Dict<K, V>`, `Set<R>`) ⇒ `inline`;
398
- * - a struct carrying `page` + `total` ⇒ `paged` (a {@link PagedSourceType},
399
- * or anything structurally matching it), marked `pinned` when it also
400
- * carries `revision` + `refresh` (a {@link PinnedSourceType} —
401
- * `Data.bindPaged`'s handle, `Paged.pinned`);
405
+ * - a WINDOWED source, recognised by its East type: a subtype of
406
+ * {@link PinnedSourceType} over the collection its `page` serves (the
407
+ * contract — `Data.bindPaged`'s handle) builds the `pinned` arm, and a
408
+ * subtype of {@link PagedSourceType} (the shape that predates `revision` /
409
+ * `refresh`) builds `paged`. A window of index entries is `ordered`;
402
410
  * - a struct carrying `read` ⇒ a whole-value bind handle, which resolves by
403
411
  * CALLING `read()` and recursing. The call becomes part of the surrounding
404
412
  * East expression, so it is evaluated inside the component's reactive render
405
413
  * and re-fires like any other tracked read — `rows={handle}` and
406
414
  * `rows={handle.read()}` build the same IR.
407
415
  *
416
+ * A struct that carries `page` and `total` but is neither source shape — a
417
+ * field at another type, a field missing or out of order, one extra — is
418
+ * refused, naming the contract's fields: East struct subtyping is exact, and a
419
+ * lookalike read by its field names would be paged through members that do not
420
+ * mean what a component reads them as.
421
+ *
408
422
  * @param data - The rows prop as the author passed it
409
423
  * @param label - Component name for the error message (`"Plan"`, `"Table"`)
410
424
  * @returns The resolved arm, retaining a live handle for invocation-time reads — see {@link ResolvedRowSource}
411
- * @throws Error when the expression is none of the accepted shapes
425
+ * @throws Error when the expression is none of the accepted shapes — naming the
426
+ * contract's fields when it carries `page` and `total` — or when a source's
427
+ * `page` serves something other than a collection
412
428
  */
413
429
  export declare function resolveRowSource(data: unknown, label: string): ResolvedRowSource;
414
430
  /**
@@ -474,123 +490,30 @@ export declare function buildRowSource<Out extends EastType>(resolved: ResolvedR
474
490
  * @returns `(offset, limit)` → the window, `none` while a piece is in flight
475
491
  */
476
492
  export declare function buildPagedWindow(resolved: ResolvedWindowedSource): ExprType<FunctionType<[IntegerType, IntegerType], OptionType<EastType>>>;
477
- /** Options for {@link Paged.of} — `key` applies to the ARRAY form only,
478
- * `pageLimit` to both. */
479
- export interface PagedOfOptions<R extends EastType> {
480
- /**
481
- * Key accessor. Supplying it declares the rows are SORTED by that key and
482
- * enables `seek` (prefix-matched, the canonical key order the search
483
- * chrome expects). Omitted ⇒ `seek` is `none`, exactly as an
484
- * Array-backed dataset behaves.
485
- *
486
- * A keyed collection needs none of this — pass a `Dict` and its own keys
487
- * are the row order and the search space.
488
- */
489
- key?: (row: ExprType<R>) => SubtypeExprOrValue<StringType>;
490
- /**
491
- * Serve at most this many elements per window, whatever `limit` asks — the
492
- * in-memory twin of a source that bounds its pages (e3 trims every page to
493
- * a byte budget, so wide elements come back in short windows, #829).
494
- *
495
- * A component never sees the trim: `buildRowSource` re-requests what a
496
- * short window left out, so every window it serves is whole. Set it to
497
- * exercise that path in examples and tests. Must be a positive integer;
498
- * omit it and a window is exactly what `limit` asks (clamped at the end).
499
- */
500
- pageLimit?: number;
501
- }
502
- /**
503
- * Build an in-memory {@link PagedSourceType} over a collection already in hand
504
- * — the paged sibling of passing the array directly.
505
- *
506
- * @remarks
507
- * Every window resolves immediately (`page` never returns `none`), so this is
508
- * the source to reach for in examples, fixtures and tests: it exercises the
509
- * whole paged path — windowing, exhaustion on `some([])`, totals, seek — with
510
- * no server, no platform function and no bind. `@elaraai/e3-ui`'s
511
- * `Data.bindPaged` is the same contract backed by real dataset windows.
512
- * `pageLimit` adds the one thing a real server does that an in-memory source
513
- * would not: short windows, as e3 serves wide elements under its byte budget.
514
- *
515
- * Windows follow the collection: an `Array` source serves array windows in
516
- * stream order, a `Dict` source serves DICT windows in canonical key order —
517
- * the same shape and the same order a keyed dataset's windows arrive in, which
518
- * is what a keyed component (the Plan) requires of its source (#568).
519
- *
520
- * The source captures an immutable copy of the collection when it is created,
521
- * so no window drifts with the input: changed content is a new source, under a
522
- * new id. A view that edits its source, or follows it from one snapshot to the
523
- * next, takes {@link Paged.pinned}.
524
- *
525
- * @typeParam R - The row type (array form) / the value type (dict form).
526
- * @param id - Comparable identity for this source (see {@link PagedSourceType}).
527
- * @param collection - The whole collection — an `Array<R>` or a `Dict<String, R>`.
528
- * @param options - {@link PagedOfOptions} — `key` (array form only) enables `seek`;
529
- * `pageLimit` trims every window, as a server bounding its pages does.
530
- * @returns A `PagedSourceType` at the collection it was given.
531
- * @throws {Error} When `pageLimit` is not a positive integer.
532
- *
533
- * @example
534
- * ```tsx
535
- * // A keyed source: the canvas rows inherit these keys, so `seek` addresses
536
- * // real rows and a window's key range is a canvas key range.
537
- * const units = $.const(new Map([["UNIT-001", { … }]]), DictType(StringType, UnitRow));
538
- * const source = $.const(Paged.of("units", units));
539
- * // A paged canvas declares its window — fitting the axis to a partial
540
- * // prefix would re-fit it on every landed window (#567 D8).
541
- * const axis = $.const(Plan.axis({ window: { min: W27, max: W39 }, resolution: "week" }));
542
- * return <Plan axis={axis} data={source} series={series} style={{ height: "fill" }} />;
543
- * ```
544
- */
545
- declare function createPagedOf<R extends EastType>(id: SubtypeExprOrValue<StringType>, rows: SubtypeExprOrValue<ArrayType<R>>, options?: PagedOfOptions<R>): PagedSource<ArrayType<R>>;
546
- declare function createPagedOf<V extends EastType>(id: SubtypeExprOrValue<StringType>, entries: SubtypeExprOrValue<DictType<StringType, V>>, options?: Pick<PagedOfOptions<V>, "pageLimit">): PagedSource<DictType<StringType, V>>;
547
- /**
548
- * Build an in-memory {@link PinnedSourceType} — {@link Paged.of} naming its
549
- * snapshot, for a fixture a view edits or follows.
550
- *
551
- * @remarks
552
- * The snapshot is the id, for good: `revision()` reads `some(id)`, a `refresh`
553
- * to `none` or to the id keeps it, and a refresh to any other snapshot throws —
554
- * an in-memory source cannot move, so a write it is told about is one it never
555
- * saw. Everything else is {@link Paged.of}'s: the captured copy, the windows,
556
- * the total, `seek` and `pageLimit`.
557
- *
558
- * @typeParam R - The row type (array form) / the value type (dict form).
559
- * @param id - The source's identity, and its one snapshot.
560
- * @param collection - The whole collection — an `Array<R>` or a `Dict<String, R>`.
561
- * @param options - {@link PagedOfOptions}, as {@link Paged.of} takes them.
562
- * @returns A `PinnedSourceType` at the collection it was given.
563
- * @throws {Error} When `pageLimit` is not a positive integer.
564
- *
565
- * @example
566
- * ```tsx
567
- * const rows = $.const([{ id: "r1", quantity: 2.0 }], ArrayType(OrderRow));
568
- * const source = $.let(Paged.pinned("orders:fixture-1", rows));
569
- * // A dataset handle's lifecycle, over one snapshot that never moves.
570
- * $(source.refresh(none));
571
- * $(source.refresh(some("orders:fixture-1")));
572
- * return <Text>{East.str`Snapshot: ${source.revision().unwrap("some")}`}</Text>;
573
- * ```
574
- */
575
- declare function createPagedPinned<R extends EastType>(id: SubtypeExprOrValue<StringType>, rows: SubtypeExprOrValue<ArrayType<R>>, options?: PagedOfOptions<R>): PinnedSource<ArrayType<R>>;
576
- declare function createPagedPinned<V extends EastType>(id: SubtypeExprOrValue<StringType>, entries: SubtypeExprOrValue<DictType<StringType, V>>, options?: Pick<PagedOfOptions<V>, "pageLimit">): PinnedSource<DictType<StringType, V>>;
577
493
  /**
578
- * The `Paged` namespace — building a {@link PagedSourceType} or a
579
- * {@link PinnedSourceType} without a server.
494
+ * The `Paged` namespace — the row-source contract's East types.
580
495
  *
581
496
  * @remarks
582
- * The contract itself is what components consume; this namespace is the
583
- * in-memory producer. Production sources come from the platform that owns the
584
- * data (`Data.bindPaged` in `@elaraai/e3-ui`).
497
+ * Paged data is BOUND: a component's paged `data` comes from the platform
498
+ * that owns the data — `Data.bindPaged` in `@elaraai/e3-ui`, whose handle is a
499
+ * {@link PinnedSourceType} — and east-ui produces none. These are the types
500
+ * that producer meets, for annotating a `$.let` / `$.const` that holds a
501
+ * handle, or a component prop that takes one; a component recognises a source
502
+ * by them ({@link resolveRowSource}).
585
503
  */
586
504
  export declare const Paged: {
587
- /** Build an in-memory paged source over a collection already in hand. */
588
- readonly of: typeof createPagedOf;
589
- /** Build an in-memory PINNED source — `of`, naming its one snapshot, for a fixture a view edits or follows. */
590
- readonly pinned: typeof createPagedPinned;
591
505
  /** East types — the contract, for `$.const` / `$.let` annotations. */
592
506
  readonly Types: {
593
- /** A windowed row source over a collection type. */
507
+ /**
508
+ * A windowed row source over a collection type that names no
509
+ * snapshot — the shape that predates `revision` / `refresh`.
510
+ *
511
+ * @remarks See {@link PagedSourceType} for its fields.
512
+ * @property id - The source's comparable identity
513
+ * @property page - `(offset, limit)` → that window, `none` while in flight
514
+ * @property total - The element count, once known
515
+ * @property seek - Key search, `none` when the source is not key-ordered
516
+ */
594
517
  readonly Source: <C extends EastType>(c: C) => StructType<{
595
518
  readonly id: StringType;
596
519
  readonly page: FunctionType<[IntegerType, IntegerType], OptionType<C>>;
@@ -612,7 +535,18 @@ export declare const Paged: {
612
535
  readonly count: IntegerType;
613
536
  }>>>>;
614
537
  }>;
615
- /** A windowed row source that names its snapshot, over a collection type. */
538
+ /**
539
+ * The contract — a windowed row source that names its snapshot, over a
540
+ * collection type: what `Data.bindPaged` returns.
541
+ *
542
+ * @remarks See {@link PinnedSourceType} for its fields.
543
+ * @property id - The logical source's identity
544
+ * @property page - `(offset, limit)` → that window at the current revision
545
+ * @property total - The element count at the current revision
546
+ * @property seek - Key search at the current revision
547
+ * @property revision - The snapshot the source serves
548
+ * @property refresh - Move the source to a snapshot, or to its current one
549
+ */
616
550
  readonly PinnedSource: <C extends EastType>(c: C) => StructType<{
617
551
  readonly id: StringType;
618
552
  readonly page: FunctionType<[IntegerType, IntegerType], OptionType<C>>;
@@ -636,13 +570,29 @@ export declare const Paged: {
636
570
  readonly revision: FunctionType<[], OptionType<StringType>>;
637
571
  readonly refresh: FunctionType<[OptionType<StringType>], NullType>;
638
572
  }>;
639
- /** Where a key query landed in a source's row order. */
573
+ /**
574
+ * Where a key query landed in a source's row order.
575
+ *
576
+ * @remarks See {@link SeekRangeType}.
577
+ * @property found - Whether any row matched
578
+ * @property row - The first matched row, or the insertion row on a miss
579
+ * @property count - The number of matched rows
580
+ */
640
581
  readonly SeekRange: StructType<{
641
582
  readonly found: BooleanType;
642
583
  readonly row: IntegerType;
643
584
  readonly count: IntegerType;
644
585
  }>;
645
- /** A key query — exact literal, String prefix, leading struct fields, or a range. */
586
+ /**
587
+ * A key query — exact literal, String prefix, leading struct fields, or
588
+ * a range.
589
+ *
590
+ * @remarks See {@link SeekQueryType}.
591
+ * @property key - A whole-key `.east` literal
592
+ * @property prefix - A String prefix
593
+ * @property fields - Exact leading struct-key fields, then an optional prefix
594
+ * @property range - A half-open bound on the key's flattened fields
595
+ */
646
596
  readonly SeekQuery: VariantType<{
647
597
  readonly key: StringType;
648
598
  readonly prefix: StringType;
@@ -655,9 +605,15 @@ export declare const Paged: {
655
605
  readonly to: ArrayType<StringType>;
656
606
  }>;
657
607
  }>;
658
- /** How a component's rows arrive (inline / paged / pinned), at a collection type. */
608
+ /**
609
+ * How a component's rows arrive, at a collection type.
610
+ *
611
+ * @remarks See {@link RowSourceType}.
612
+ * @property inline - The whole collection, already in hand
613
+ * @property paged - A {@link PagedSourceType}
614
+ * @property pinned - A {@link PinnedSourceType}
615
+ */
659
616
  readonly RowSource: <C extends EastType>(c: C) => RowSourceType<C>;
660
617
  };
661
618
  };
662
- export {};
663
619
  //# sourceMappingURL=source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../src/contracts/source.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAGvB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,UAAU,EAEV,UAAU,EACV,UAAU,EACV,WAAW,EAKd,MAAM,eAAe,CAAC;AAMvB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa;;;;EAIxB,CAAC;AACH,4CAA4C;AAC5C,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;EAKxB,CAAC;AACH,4CAA4C;AAC5C,MAAM,MAA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