@elaraai/east-ui 1.0.98 → 1.0.100

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 (64) hide show
  1. package/README.md +0 -1
  2. package/dist/src/contracts/editing.d.ts +4 -0
  3. package/dist/src/contracts/editing.d.ts.map +1 -1
  4. package/dist/src/contracts/editing.js +2 -1
  5. package/dist/src/contracts/editing.js.map +1 -1
  6. package/dist/src/contracts/indexed-source.d.ts +47 -10
  7. package/dist/src/contracts/indexed-source.d.ts.map +1 -1
  8. package/dist/src/contracts/indexed-source.js +44 -9
  9. package/dist/src/contracts/indexed-source.js.map +1 -1
  10. package/dist/src/contracts/source.d.ts +3 -0
  11. package/dist/src/contracts/source.d.ts.map +1 -1
  12. package/dist/src/contracts/source.js +59 -0
  13. package/dist/src/contracts/source.js.map +1 -1
  14. package/dist/src/internal.d.ts +2 -0
  15. package/dist/src/internal.d.ts.map +1 -1
  16. package/dist/src/internal.js +2 -0
  17. package/dist/src/internal.js.map +1 -1
  18. package/dist/src/layout/snap-grid/index.d.ts +1 -0
  19. package/dist/src/layout/snap-grid/index.d.ts.map +1 -1
  20. package/dist/src/platform/slice/index.d.ts +2 -2
  21. package/dist/src/platform/slice/index.js +2 -2
  22. package/dist/src/platform/slice/record-area.d.ts +24 -18
  23. package/dist/src/platform/slice/record-area.d.ts.map +1 -1
  24. package/dist/src/platform/slice/record-area.js +25 -18
  25. package/dist/src/platform/slice/record-area.js.map +1 -1
  26. package/dist/src/platform/slice/record-chrome.d.ts +38 -88
  27. package/dist/src/platform/slice/record-chrome.d.ts.map +1 -1
  28. package/dist/src/platform/slice/record-interval.d.ts +31 -1
  29. package/dist/src/platform/slice/record-interval.d.ts.map +1 -1
  30. package/dist/src/platform/slice/record-interval.js +39 -3
  31. package/dist/src/platform/slice/record-interval.js.map +1 -1
  32. package/dist/src/platform/slice/record-on.d.ts +45 -0
  33. package/dist/src/platform/slice/record-on.d.ts.map +1 -0
  34. package/dist/src/platform/slice/record-on.js +71 -0
  35. package/dist/src/platform/slice/record-on.js.map +1 -0
  36. package/dist/src/platform/slice/record-plan.d.ts +45 -16
  37. package/dist/src/platform/slice/record-plan.d.ts.map +1 -1
  38. package/dist/src/platform/slice/record-plan.js +84 -60
  39. package/dist/src/platform/slice/record-plan.js.map +1 -1
  40. package/dist/src/platform/slice/record-series.d.ts +118 -52
  41. package/dist/src/platform/slice/record-series.d.ts.map +1 -1
  42. package/dist/src/platform/slice/record-series.js +169 -80
  43. package/dist/src/platform/slice/record-series.js.map +1 -1
  44. package/dist/src/platform/slice/record-sources.d.ts +6 -2
  45. package/dist/src/platform/slice/record-sources.d.ts.map +1 -1
  46. package/dist/src/platform/slice/record-sources.js.map +1 -1
  47. package/dist/src/platform/slice/record-types.d.ts +324 -757
  48. package/dist/src/platform/slice/record-types.d.ts.map +1 -1
  49. package/dist/src/platform/slice/record-types.js +62 -31
  50. package/dist/src/platform/slice/record-types.js.map +1 -1
  51. package/dist/src/platform/slice/record.d.ts +29 -16
  52. package/dist/src/platform/slice/record.d.ts.map +1 -1
  53. package/dist/src/platform/slice/record.js +58 -53
  54. package/dist/src/platform/slice/record.js.map +1 -1
  55. package/dist/src/runtime/record-slice-source.d.ts +5 -4
  56. package/dist/src/runtime/record-slice-source.d.ts.map +1 -1
  57. package/dist/src/runtime/record-slice-source.js.map +1 -1
  58. package/dist/src/runtime/record-slice.d.ts +30 -6
  59. package/dist/src/runtime/record-slice.d.ts.map +1 -1
  60. package/dist/src/runtime/record-slice.js +119 -21
  61. package/dist/src/runtime/record-slice.js.map +1 -1
  62. package/dist/src/slice/record/index.d.ts +19 -44
  63. package/dist/src/slice/record/index.d.ts.map +1 -1
  64. package/package.json +6 -5
@@ -1 +1 @@
1
- {"version":3,"file":"record-types.d.ts","sourceRoot":"","sources":["../../../../src/platform/slice/record-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0EAA0E;AAC1E,OAAO,EACH,SAAS,EAAE,QAAQ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;;;;;;;;;;;;;;;;;;;;;;CA2BjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMY,CAAC"}
@@ -9,30 +9,39 @@ import { IconType } from "../../display/icon/types.js";
9
9
  import { TimeResolutionType } from "../../contracts/time.js";
10
10
  import { LiveSourceType, SeekQueryType, SeekRangeType } from "../../contracts/source.js";
11
11
  /**
12
- * One field's narrowing, with values encoded as typed .east literals.
12
+ * One row field's narrowing, with values encoded as typed .east literals.
13
13
  * @remarks Prefix text is raw text; every exact value and range end is a literal.
14
- * A `window` is a read's, never the rail's: it is given under an area index's
15
- * `__area` field to a read's `where` (`pageWhere`, `countWhere`, a scan), never
16
- * written into a Slice's state, and never shown as a chip (#1385). It is named
17
- * to sort after every case before it, so the earlier cases keep their tags. A
14
+ * A narrowing holds the choices of row fields and nothing else: a read by
15
+ * area gives its clause beside it ({@link RecordSliceReadType}, #1432). A
18
16
  * narrowing is a Dict of choices, whose values beast2 reads at exactly their
19
17
  * written type, so one an earlier release wrote does not decode under this type
20
18
  * (docs/conventions/WIRE_MIGRATION.md).
21
- * @property values - Exact alternatives on a leading field (one on a Set field);
22
- * under `__area`, the unplaced clause (`-1`).
19
+ * @property values - Exact alternatives on a leading field (one on a Set field).
23
20
  * @property range - Half-open range on the next field.
24
21
  * @property prefix - String prefix on the next field.
25
- * @property window - The viewport an area index reads, in world units: the rows
26
- * whose box meets it grown by its margin (`areaQueries`).
27
22
  */
28
23
  export const RecordSliceChoiceType = VariantType({
29
24
  values: ArrayType(StringType),
30
25
  range: StructType({ from: StringType, to: StringType }),
31
26
  prefix: StringType,
32
- window: StructType({ minX: FloatType, minY: FloatType, maxX: FloatType, maxY: FloatType }),
33
27
  });
34
28
  /** A narrowing keyed by row-field name; its clauses follow one index path. */
35
29
  export const RecordSliceWhereType = DictType(StringType, RecordSliceChoiceType);
30
+ /**
31
+ * What a read by area asks of an area index, beside the narrowing (#1385, #1432).
32
+ * @property window - The rows whose box meets the viewport, in world units, grown by its margin (`areaQueries`)
33
+ * @property unplaced - The rows with no place: their `x` or `y` is `none`
34
+ */
35
+ export const RecordSliceAreaType = VariantType({
36
+ window: StructType({ minX: FloatType, minY: FloatType, maxX: FloatType, maxY: FloatType }),
37
+ unplaced: NullType,
38
+ });
39
+ /**
40
+ * What a read asks: the narrowing, and, for a read by area, its clause (#1432).
41
+ * @property where - The row fields' choices
42
+ * @property area - The read by area's clause; `none` for any other read
43
+ */
44
+ export const RecordSliceReadType = StructType({ where: RecordSliceWhereType, area: OptionType(RecordSliceAreaType) });
36
45
  /**
37
46
  * Persistable record narrowing. Resolution changes presentation only.
38
47
  * @property where - Current field choices.
@@ -94,19 +103,23 @@ export const RecordSliceTilingType = StructType({ key: StringType, from: StringT
94
103
  * config an earlier release wrote does not decode under this one
95
104
  * (docs/conventions/WIRE_MIGRATION.md).
96
105
  * @property name - Source selector.
97
- * @property fields - Row fields in index order.
106
+ * @property fields - The row fields the index is led by, in order (#1432): a plain index's fields, a generated
107
+ * index's `on` — never e3's own parts, which its kind names (`interval`, `area`, `series`, `summary`).
98
108
  * @property sets - Fields that fan out; all must be fixed to one exact value.
99
109
  * @property structured - Index key is a Struct, including a single computed field.
100
- * @property interval - Final field represents overlap with an interval, using distinct start/carry-in queries.
101
- * @property area - Final field is an area index's `__area` (#1385): the row fields its box is read from (`x`, `y`,
110
+ * @property interval - An interval index: its key `{ on, node, at }`, the overlap of the row field `from` with an
111
+ * interval read by distinct start and carry-in queries; `from` follows the leading fields as a range the rail reads.
112
+ * @property area - An area index (#1385): its key `{ on, area }`; the row fields its box is read from (`x`, `y`,
102
113
  * and `width` and `height` unless the rows are points), whether `x`, `y` is the box's centre or its minimum corner,
103
114
  * the finest cell's side in world units (a power of two), and whether `x` and `y` are Options, which makes the
104
115
  * unplaced clause meaningful. Its entries carry their rows.
105
- * @property series - A series index (#1039): its events filed by the key they are on and by each tile they touch,
106
- * `{ …on, __tile, <key> }`, carrying their rows. It never serves the rail's narrowing, which would count an event
107
- * once for each tile it touches: a reader reads its cells (`tileCellQueries`).
108
- * @property summary - A summary index (#1039): under the same keys, how many rows touch the tile and the
109
- * milliseconds of it they cover. Its entries name no row, so it never serves the rail's narrowing either.
116
+ * @property series - A series index (#1039): its events filed by the key they are on and by time, each once at the
117
+ * level its length fits from `tile` up, `{ on, key, level, tile }` (#1433), carrying their rows. It never serves
118
+ * the rail's narrowing, which would count an event past a year once for each year it is filed under: a reader
119
+ * reads its cells (`levelCellQueries`).
120
+ * @property summary - A summary index (#1039): under each key and tile, `{ on, key, tile }`, how many rows touch
121
+ * the tile and the milliseconds of it they cover. Its entries name no row, so it never serves the rail's
122
+ * narrowing either; a reader reads its cells (`summaryCellQueries`).
110
123
  */
111
124
  export const RecordSliceIndexType = StructType({
112
125
  name: StringType, fields: ArrayType(StringType), sets: SetType(StringType), structured: BooleanType,
@@ -158,7 +171,7 @@ export const RecordSliceDomainType = StructType({ from: StringType, to: StringTy
158
171
  * @property clear - Clear one field and any dependent trailing choices.
159
172
  * @property clearAll - Clear the narrowing.
160
173
  * @property count - Exact narrowed count; none while pending.
161
- * @property countWhere - Exact count of a saved narrowing, without changing current state.
174
+ * @property countWhere - Exact count of a read — a saved narrowing, and a read by area's clause — without changing current state.
162
175
  * @property total - Exact primary-row count; none while pending.
163
176
  * @property domain - Inclusive numeric/date extent, ignoring that field's range; none while pending or empty.
164
177
  * @property values - Known values, each with its exact count under the other fields' choices, the chosen marked.
@@ -183,7 +196,7 @@ export const RecordSliceBindType = StructType({
183
196
  clear: FunctionType([StringType], NullType),
184
197
  clearAll: FunctionType([], NullType),
185
198
  count: FunctionType([], OptionType(IntegerType)),
186
- countWhere: FunctionType([RecordSliceWhereType], OptionType(IntegerType)),
199
+ countWhere: FunctionType([RecordSliceReadType], OptionType(IntegerType)),
187
200
  total: FunctionType([], OptionType(IntegerType)),
188
201
  domain: FunctionType([StringType], OptionType(RecordSliceDomainType)),
189
202
  values: FunctionType([StringType], ArrayType(RecordSliceCountType)),
@@ -198,19 +211,37 @@ export const RecordSliceBindType = StructType({
198
211
  containsRow: FunctionType([RecordSliceWhereType, StringType, BlobType], OptionType(BooleanType)),
199
212
  });
200
213
  /**
201
- * Typed authoring handle; `data` preserves the narrowed window type through $.let.
214
+ * Typed authoring handle; `data` preserves the narrowed window type through
215
+ * $.let, `indexes` and `nested` the binding's declarations as its type holds
216
+ * them, and `source` the binding itself.
202
217
  * @remarks `data` is a live source (#1354): one per binding, whatever the
203
218
  * narrowing, its reads reading the narrowing as it stands when they run and
204
219
  * its `query` naming it — so a component built over it is not built again when
205
- * a choice changes.
220
+ * a choice changes. `indexes` is each index's marked fields and kind (#1432),
221
+ * and `nested` a nested series index's declaration in a part of its own
222
+ * (#1435), as the binding gives them: a reader of the narrowed rows reads what
223
+ * their record declares from the Slice alone. The nested part is no index's
224
+ * marker, so the Slice offers no field of it and plans no narrowing through it.
225
+ * `source` is the binding the Slice narrows (#1438): what a builder reading
226
+ * the narrowed rows' nested series index reads through — its cells, its
227
+ * maintenance and its fill of a page — the record's, whatever the narrowing.
206
228
  * @typeParam C - The collection type one narrowed window serves.
229
+ * @typeParam M - Each index's metadata, as the binding's type holds it.
230
+ * @typeParam N - The binding's nested part, as its type holds it.
231
+ * @typeParam S - The binding's type.
207
232
  * @param collection - Window type.
233
+ * @param indexes - Each index's metadata type.
234
+ * @param nested - The nested part's type.
235
+ * @param source - The binding's type.
208
236
  * @returns The typed record Slice handle.
209
237
  */
210
- export function RecordSliceHandleType(collection) {
238
+ export function RecordSliceHandleType(collection, indexes, nested, source) {
211
239
  return StructType({ ...RecordSliceBindType.fields, data: LiveSourceType(collection),
212
- /** Read a captured narrowing without replacing the shared controls' state. */
213
- pageWhere: FunctionType([RecordSliceWhereType, IntegerType, IntegerType], OptionType(collection)),
240
+ /** Read a captured narrowing — and a read by area's clause — without replacing the shared controls' state. */
241
+ pageWhere: FunctionType([RecordSliceReadType, IntegerType, IntegerType], OptionType(collection)),
242
+ indexes,
243
+ nested,
244
+ source,
214
245
  });
215
246
  }
216
247
  /**
@@ -256,7 +287,7 @@ export function RecordSlicesHandleType(sources) {
256
287
  return StructType({ ...RecordSlicesBindType.fields, sources: StructType(sources) });
257
288
  }
258
289
  /** New record-arm bind; local slice_bind remains byte-for-byte unchanged. @internal */
259
- export const recordSliceBindPlatform = East.genericPlatform("slice_bind_record", ["S", "C"], [StringType, "S", RecordSliceConfigType, RecordSliceStateType], RecordSliceHandleType("C"), { optional: true });
290
+ export const recordSliceBindPlatform = East.genericPlatform("slice_bind_record", ["S", "C", "M", "N"], [StringType, "S", RecordSliceConfigType, RecordSliceStateType], RecordSliceHandleType("C", "M", "N", "S"), { optional: true });
260
291
  const descriptor = [StringType, "S", RecordSliceConfigType, RecordSliceStateType];
261
292
  function op(name, args, output) {
262
293
  return East.genericPlatform(`slice_record_${name}`, ["S", "C"], [...descriptor, ...args], output, { optional: true });
@@ -277,7 +308,7 @@ export const RecordSlicePrimitives = {
277
308
  clear: op("clear", [StringType], NullType),
278
309
  clearAll: op("clear_all", [], NullType),
279
310
  count: op("count", [], OptionType(IntegerType)),
280
- countWhere: op("count_where", [RecordSliceWhereType], OptionType(IntegerType)),
311
+ countWhere: op("count_where", [RecordSliceReadType], OptionType(IntegerType)),
281
312
  total: op("total", [], OptionType(IntegerType)),
282
313
  domain: op("domain", [StringType], OptionType(RecordSliceDomainType)),
283
314
  values: op("values", [StringType], ArrayType(RecordSliceCountType)),
@@ -285,7 +316,7 @@ export const RecordSlicePrimitives = {
285
316
  replaces: op("replaces", [StringType], ArrayType(StringType)),
286
317
  togglePreset: op("toggle_preset", [StringType], NullType),
287
318
  setResolution: op("set_resolution", [OptionType(TimeResolutionType)], NullType),
288
- pageWhere: op("page_where", [RecordSliceWhereType, IntegerType, IntegerType], OptionType("C")),
319
+ pageWhere: op("page_where", [RecordSliceReadType, IntegerType, IntegerType], OptionType("C")),
289
320
  dataPage: op("data_page", [IntegerType, IntegerType], OptionType("C")),
290
321
  dataSeek: op("data_seek", [SeekQueryType], OptionType(SeekRangeType)),
291
322
  dataQuery: op("data_query", [], StringType),
@@ -304,8 +335,8 @@ export const RecordSlicePrimitives = {
304
335
  export const recordSliceReadPlatform = East.genericPlatform("slice_record_scan", ["C"], [
305
336
  StringType,
306
337
  FunctionType([], OptionType(StringType)),
307
- FunctionType([RecordSliceWhereType], OptionType(IntegerType)),
308
- FunctionType([RecordSliceWhereType, IntegerType, IntegerType], OptionType("C")),
309
- RecordSliceWhereType,
338
+ FunctionType([RecordSliceReadType], OptionType(IntegerType)),
339
+ FunctionType([RecordSliceReadType, IntegerType, IntegerType], OptionType("C")),
340
+ RecordSliceReadType,
310
341
  ], OptionType("C"), { optional: true });
311
342
  //# sourceMappingURL=record-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"record-types.js","sourceRoot":"","sources":["../../../../src/platform/slice/record-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0EAA0E;AAC1E,OAAO,EACH,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAChG,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,GAC3D,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAEzF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC;IAC7C,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC;IAC7B,KAAK,EAAE,UAAU,CAAC,EAAE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3E,QAAQ,EAAE,EAAE,CAAC,UAAU,EAAE,CAAC,oBAAoB,EAAE,UAAU,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACrF,WAAW,EAAE,EAAE,CAAC,cAAc,EAAE,CAAC,oBAAoB,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;CACzG,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,eAAe,CAAC,mBAAmB,EAAE,CAAC,GAAG,CAAC,EAAE;IACpF,UAAU;IACV,YAAY,CAAC,EAAE,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IACxC,YAAY,CAAC,CAAC,mBAAmB,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC5D,YAAY,CAAC,CAAC,mBAAmB,EAAE,WAAW,EAAE,WAAW,CAAC,EAAE,UAAU,CAAC,GAAY,CAAC,CAAC;IACvF,mBAAmB;CACtB,EAAE,UAAU,CAAC,GAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC"}
@@ -4,21 +4,31 @@
4
4
  */
5
5
  /** Typed record Slice authoring. Query execution belongs to the renderer. */
6
6
  import { ArrayType, StringType, StructType, VariantType, SetType, type EastType, type ExprType, type SubtypeExprOrValue } from "@elaraai/east";
7
- import { IndexedEntryType, type IndexedSource } from "../../contracts/indexed-source.js";
7
+ import { IndexedEntryType, IndexedSourceType, type IndexedSource } from "../../contracts/indexed-source.js";
8
8
  import { type SliceFieldFormat } from "./index.js";
9
- import { AREA_FIELD } from "./record-area.js";
10
- import { TILE_FIELD } from "./record-series.js";
11
9
  import { RecordSliceHandleType } from "./record-types.js";
12
- /** The fields the rail may narrow by, index by index: none of a series or a summary index's, whose cells a reader
13
- * reads (#1039) — told by its `__tile` among fields named exactly; an index whose fields are any string offers any. */
10
+ /** The row field an interval index's start is, as its kind's marker names it (`from=…`, #1432). */
11
+ type IntervalFrom<K> = K extends {
12
+ interval: StructType<infer Roles>;
13
+ } ? {
14
+ [N in keyof Roles]: N extends `from=${infer F}` ? F : never;
15
+ }[keyof Roles] : never;
16
+ /** The fields the rail may narrow by, index by index (#1432): its `fields` and an interval's start — none of a
17
+ * series or a summary index's, whose cells a reader reads (#1039); an index whose fields are any string offers any. */
14
18
  type IndexedFields<M extends StructType> = {
15
- [I in keyof M["fields"]]: M["fields"][I] extends StructType<infer F> ? string extends keyof F ? keyof F : typeof TILE_FIELD extends keyof F ? never : keyof F : never;
19
+ [I in keyof M["fields"]]: M["fields"][I] extends StructType<{
20
+ fields: StructType<infer F>;
21
+ kind: VariantType<infer K>;
22
+ }> ? string extends keyof F ? keyof F : "series" extends keyof K ? never : "summary" extends keyof K ? never : keyof F | IntervalFrom<K> : never;
16
23
  }[keyof M["fields"]];
17
- /** A field the rail may narrow by: an index's own, never an area index's `__area`, which a read by area gives its window. */
18
- type Field<M extends StructType> = Exclude<Extract<IndexedFields<M>, string>, typeof AREA_FIELD>;
24
+ /** A field the rail may narrow by: a row field an index is led by, or an interval's start. */
25
+ type Field<M extends StructType> = Extract<IndexedFields<M>, string>;
19
26
  type MarkerType<R extends StructType, F extends string, T> = T extends ArrayType<infer V> ? V : T extends SetType ? T : F extends keyof R["fields"] ? R["fields"][F] : never;
20
27
  type FieldType<R extends StructType, M extends StructType, F extends string> = {
21
- [I in keyof M["fields"]]: M["fields"][I] extends StructType<infer Fields> ? F extends keyof Fields ? MarkerType<R, F, Fields[F]> : never : never;
28
+ [I in keyof M["fields"]]: M["fields"][I] extends StructType<{
29
+ fields: StructType<infer Fields>;
30
+ kind: VariantType<infer K>;
31
+ }> ? F extends keyof Fields ? MarkerType<R, F, Fields[F]> : F extends IntervalFrom<K> ? F extends keyof R["fields"] ? R["fields"][F] : never : never : never;
22
32
  }[keyof M["fields"]];
23
33
  type Key<T extends EastType> = T extends SetType<infer K extends EastType> ? K : T;
24
34
  type Scalar<T extends EastType> = Key<T> extends VariantType<infer V> ? V extends {
@@ -104,13 +114,16 @@ export declare function recordSliceFieldTypes(row: StructType, metadata?: Struct
104
114
  * Bind a record through its field indexes. The source's joined entries retain
105
115
  * their primary keys; no row predicate or full-record read is generated.
106
116
  *
107
- * An area index (`e3.recordIndex.area`) offers its leading fields; its `__area`
108
- * is never a field of the rail. A read by area gives `__area` a `window` — or
109
- * the unplaced clause — in the `where` of `pageWhere` or `countWhere`, and the
110
- * plan reads it through an area index whose leading fields the read's other
111
- * choices fill exactly (#1385).
117
+ * Each index's metadata names the row fields it is led by and its kind
118
+ * (#1432): a plain index's fields, a generated index's `on`; e3's own parts
119
+ * are the kind's, never a field of the rail, so a row field may be named
120
+ * anything. An area index (`index.area`) offers its leading fields; a
121
+ * read by area gives its `window` — or the unplaced clause — beside the
122
+ * narrowing, in the read `pageWhere` and `countWhere` take, and the plan reads
123
+ * it through an area index whose leading fields the narrowing fills exactly
124
+ * (#1385). An interval index offers its leading fields and its start.
112
125
  *
113
- * A series or a summary index (`e3.recordIndex.series`, `.summary`) offers no
126
+ * A series or a summary index (`index.series`, `index.summary`) offers no
114
127
  * field at all: it is listed for a reader of its cells (#1039), and its
115
128
  * metadata says how it files the record's events.
116
129
  *
@@ -119,6 +132,6 @@ export declare function recordSliceFieldTypes(row: StructType, metadata?: Struct
119
132
  * @param options - Fields, initial narrowing, range, search and presets.
120
133
  * @returns A serializable handle with typed narrowed data.
121
134
  */
122
- export declare function bindRecord<K extends EastType, R extends StructType, P extends EastType, M extends StructType, IK extends VariantType>(key: SubtypeExprOrValue<StringType>, source: IndexedSource<K, R, P, M, IK>, options?: RecordSliceOptions<NoInfer<R>, NoInfer<M>>): ExprType<ReturnType<typeof RecordSliceHandleType<ArrayType<ReturnType<typeof IndexedEntryType<K, R, P, IK>>>>>>;
135
+ export declare function bindRecord<K extends EastType, R extends StructType, P extends EastType, M extends StructType, IK extends VariantType, N extends EastType, Maint extends EastType>(key: SubtypeExprOrValue<StringType>, source: IndexedSource<K, R, P, M, IK, N, Maint>, options?: RecordSliceOptions<NoInfer<R>, NoInfer<M>>): ExprType<ReturnType<typeof RecordSliceHandleType<ArrayType<ReturnType<typeof IndexedEntryType<K, R, P, IK>>>, M, N, ReturnType<typeof IndexedSourceType<K, R, P, M, IK, N, Maint>>>>>;
123
136
  export {};
124
137
  //# sourceMappingURL=record.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../src/platform/slice/record.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,6EAA6E;AAC7E,OAAO,EACH,SAAS,EAAqC,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAE1F,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EACxD,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAqB,KAAK,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAC5G,OAAO,EAAiB,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAElE,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAA4B,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAC0C,qBAAqB,EAErE,MAAM,mBAAmB,CAAC;AAE3B;wHACwH;AACxH,KAAK,aAAa,CAAC,CAAC,SAAS,UAAU,IAAI;KACtC,CAAC,IAAI,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,UAAU,CAAC,MAAM,CAAC,CAAC,GAC9D,MAAM,SAAS,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,OAAO,UAAU,SAAS,MAAM,CAAC,GAAG,KAAK,GAAG,MAAM,CAAC,GACtF,KAAK;CACd,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrB,6HAA6H;AAC7H,KAAK,KAAK,CAAC,CAAC,SAAS,UAAU,IAA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AC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,CAAC,EAC/C,OAAO,GAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAM,GACzD,QAAQ,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACjH,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAuIpE"}
@@ -6,9 +6,11 @@
6
6
  import { ArrayType, East, Expr, FloatType, OptionType, StringType, StructType, VariantType, SetType, compareFor, isSubtype, isTypeEqual, isValueOf, none, printFor, some, variant, } from "@elaraai/east";
7
7
  import { IndexedEntryType, IndexedSourceType } from "../../contracts/indexed-source.js";
8
8
  import { toValueFormat } from "./index.js";
9
- import { planRecordSlice } from "./record-plan.js";
10
- import { AREA_FIELD, readAreaMarker } from "./record-area.js";
11
- import { TILE_FIELD, readTileMarker, tilingOf } from "./record-series.js";
9
+ import { planRecordSlice, recordIndexFields } from "./record-plan.js";
10
+ import { readAreaMarker } from "./record-area.js";
11
+ import { readIntervalMarker } from "./record-interval.js";
12
+ import { readTileMarker, tilingOf } from "./record-series.js";
13
+ import { recordOnPrinters } from "./record-on.js";
12
14
  import { RecordSliceConfigType, RecordSliceStateType, RecordSliceHandleType, recordSliceBindPlatform, } from "./record-types.js";
13
15
  /**
14
16
  * Derive a supported control without putting an East type in the wire.
@@ -59,9 +61,11 @@ export function recordSliceFieldSchema(type, name) {
59
61
  export function recordSliceFieldTypes(row, metadata) {
60
62
  const fields = { ...row.fields };
61
63
  for (const index of Object.values(metadata?.fields ?? {})) {
62
- if (index.type !== "Struct")
64
+ // Each index's metadata is `{ fields, kind }` (#1432): its row fields carry the markers.
65
+ const led = index.type === "Struct" ? index.fields.fields : undefined;
66
+ if (led?.type !== "Struct")
63
67
  continue;
64
- for (const [name, marker] of Object.entries(index.fields)) {
68
+ for (const [name, marker] of Object.entries(led.fields)) {
65
69
  if (marker.type !== "Array" && marker.type !== "Set")
66
70
  continue;
67
71
  const type = marker.type === "Array" ? marker.value : marker;
@@ -90,13 +94,16 @@ function literal(schema, input) {
90
94
  * Bind a record through its field indexes. The source's joined entries retain
91
95
  * their primary keys; no row predicate or full-record read is generated.
92
96
  *
93
- * An area index (`e3.recordIndex.area`) offers its leading fields; its `__area`
94
- * is never a field of the rail. A read by area gives `__area` a `window` — or
95
- * the unplaced clause — in the `where` of `pageWhere` or `countWhere`, and the
96
- * plan reads it through an area index whose leading fields the read's other
97
- * choices fill exactly (#1385).
97
+ * Each index's metadata names the row fields it is led by and its kind
98
+ * (#1432): a plain index's fields, a generated index's `on`; e3's own parts
99
+ * are the kind's, never a field of the rail, so a row field may be named
100
+ * anything. An area index (`index.area`) offers its leading fields; a
101
+ * read by area gives its `window` — or the unplaced clause — beside the
102
+ * narrowing, in the read `pageWhere` and `countWhere` take, and the plan reads
103
+ * it through an area index whose leading fields the narrowing fills exactly
104
+ * (#1385). An interval index offers its leading fields and its start.
98
105
  *
99
- * A series or a summary index (`e3.recordIndex.series`, `.summary`) offers no
106
+ * A series or a summary index (`index.series`, `index.summary`) offers no
100
107
  * field at all: it is listed for a reader of its cells (#1039), and its
101
108
  * metadata says how it files the record's events.
102
109
  *
@@ -122,34 +129,36 @@ export function bindRecord(key, source, options = {}) {
122
129
  const rowType = rowOption.cases.some;
123
130
  const metadata = sourceType.fields.indexes;
124
131
  const fieldTypes = recordSliceFieldTypes(rowType, metadata);
125
- if (!isSubtype(sourceType, IndexedSourceType(entry.fields.key, rowType, projectionOption.cases.some, metadata, entry.fields.ik)))
132
+ const nested = sourceType.fields.nested;
133
+ const maintenance = sourceType.fields.maintenance;
134
+ if (nested === undefined || maintenance === undefined)
135
+ throw new Error("Slice.bindRecord needs Data.bindPaged(record, { indexes }); a plain paged binding cannot be narrowed");
136
+ if (!isSubtype(sourceType, IndexedSourceType(entry.fields.key, rowType, projectionOption.cases.some, metadata, entry.fields.ik, nested, maintenance))) {
126
137
  throw new Error("Slice.bindRecord needs an indexed record binding");
138
+ }
139
+ const unmarked = (name, kind) => new Error(`Slice.bindRecord: '${name}' has no ${kind} index's marker; bind it with Data.bindPaged(record, { indexes })`);
127
140
  const indexes = Object.entries(metadata.fields).map(([name, type]) => {
128
- if (type.type !== "Struct")
129
- throw new Error("Slice.bindRecord needs field metadata on every index");
130
- const fields = Object.keys(type.fields);
131
- if (fields.length === 0)
132
- throw new Error(`Slice.bindRecord: '${name}' has no fields`);
133
- // A generated index marks a field with a struct: an interval's start
134
- // names its end, an area index's `__area` its box (#1385), each the
135
- // index's last field; a series or a summary index's `__tile` how it
136
- // files the record's events, its key after it (#1039).
137
- const markers = Object.entries(type.fields).filter(([, marker]) => marker.type === "Struct");
138
- if (markers.length > 1)
139
- throw new Error(`Slice.bindRecord: '${name}' marks more than one field as generated`);
140
- const marker = markers[0];
141
- const tiled = marker?.[0] === TILE_FIELD;
142
- if (marker !== undefined && marker[0] !== fields.at(tiled ? -2 : -1)) {
143
- throw new Error(`Slice.bindRecord: '${name}' needs its generated field ${tiled ? "just before its key" : "last"}`);
141
+ // An index's metadata (#1432): the row fields it is led by, and its kind's one case, its marker naming e3's own parts.
142
+ const led = type.type === "Struct" ? type.fields.fields : undefined;
143
+ const kinds = type.type === "Struct" ? type.fields.kind : undefined;
144
+ if (led?.type !== "Struct" || kinds?.type !== "Variant" || Object.keys(kinds.cases).length !== 1) {
145
+ throw new Error(`Slice.bindRecord: '${name}' needs its fields and its kind; bind it with Data.bindPaged(record, { indexes })`);
144
146
  }
147
+ const fields = Object.keys(led.fields);
148
+ const [kind, marker] = Object.entries(kinds.cases)[0];
149
+ const names = marker.type === "Struct" ? Object.keys(marker.fields) : [];
145
150
  let interval = none;
146
151
  let area = none;
147
152
  let series = none;
148
153
  let summary = none;
149
- if (tiled) {
150
- const tiling = readTileMarker(Object.keys(marker[1].fields));
151
- if (tiling === undefined || tiling.key !== fields.at(-1) || [tiling.key, tiling.from, tiling.to].some(field => rowType.fields[field] === undefined)) {
152
- throw new Error(`Slice.bindRecord: '${name}' has no series or summary index's marker on '${TILE_FIELD}'; bind it with Data.bindPaged(record, { indexes })`);
154
+ if (kind === "plain") {
155
+ if (fields.length === 0)
156
+ throw new Error(`Slice.bindRecord: '${name}' has no fields`);
157
+ }
158
+ else if (kind === "series" || kind === "summary") {
159
+ const tiling = readTileMarker(names);
160
+ if (tiling === undefined || tiling.summary !== (kind === "summary") || [tiling.key, tiling.from, tiling.to].some(field => rowType.fields[field] === undefined)) {
161
+ throw unmarked(name, `${kind}`);
153
162
  }
154
163
  const filed = some({ key: tiling.key, from: tiling.from, to: tiling.to, tile: variant(tiling.tile, null) });
155
164
  if (tiling.summary)
@@ -157,39 +166,35 @@ export function bindRecord(key, source, options = {}) {
157
166
  else
158
167
  series = filed;
159
168
  }
160
- else if (marker?.[0] === AREA_FIELD) {
161
- const box = readAreaMarker(Object.keys(marker[1].fields));
169
+ else if (kind === "area") {
170
+ const box = readAreaMarker(names);
162
171
  const xType = box === undefined ? undefined : rowType.fields[box.x];
163
172
  if (box === undefined || xType === undefined)
164
- throw new Error(`Slice.bindRecord: '${name}' has no area index's marker on '${AREA_FIELD}'; bind it with Data.bindPaged(record, { indexes })`);
173
+ throw unmarked(name, "an area");
165
174
  area = some({ x: box.x, y: box.y, width: box.width === undefined ? none : some(box.width), height: box.height === undefined ? none : some(box.height),
166
175
  centre: box.centre, cell: box.cell, optional: isTypeEqual(xType, OptionType(FloatType)) });
167
176
  }
168
- else if (marker !== undefined) {
169
- const ends = Object.keys(marker[1].fields);
170
- if (ends.length !== 1)
171
- throw new Error(`Slice.bindRecord: '${name}' needs one final interval field`);
172
- interval = some({ from: marker[0], to: ends[0], optional: recordSliceFieldSchema(rowType.fields[marker[0]], marker[0]).optional });
177
+ else if (kind === "interval") {
178
+ const ends = readIntervalMarker(names);
179
+ if (ends === undefined || rowType.fields[ends.from] === undefined)
180
+ throw unmarked(name, "an interval");
181
+ interval = some({ from: ends.from, to: ends.to, optional: recordSliceFieldSchema(rowType.fields[ends.from], ends.from).optional });
182
+ }
183
+ else {
184
+ throw new Error(`Slice.bindRecord: '${name}' is of a kind no record Slice reads, '${kind}'`);
173
185
  }
174
186
  const structured = entry.fields.ik.cases[name]?.type === "Struct";
175
187
  return { name, fields, sets: new Set(fields.filter(field => fieldTypes[field]?.type === "Set")),
176
188
  structured, interval, area, series, summary };
177
189
  });
178
- // An area index's `__area` is never the rail's: a read by area gives it its
179
- // window. A series or a summary index offers nothing: a reader reads its cells.
180
- const indexedFields = new Set(indexes.flatMap(index => tilingOf(index) !== undefined ? []
181
- : index.area.type === "some" ? index.fields.slice(0, -1) : index.fields));
190
+ // A series or a summary index offers nothing: a reader reads its cells. An interval's start is a range the rail reads.
191
+ const indexedFields = new Set(indexes.flatMap(index => tilingOf(index) !== undefined ? [] : recordIndexFields(index)));
192
+ const printOn = recordOnPrinters(entry.fields.ik.cases);
182
193
  const offered = options.fields === undefined ? [...indexedFields] : Object.keys(options.fields);
183
194
  const schemas = new Map();
184
195
  const fields = offered.map(field => {
185
- if (field === AREA_FIELD && indexes.some(index => index.area.type === "some")) {
186
- throw new Error(`Slice.bindRecord: '${AREA_FIELD}' is an area index's window, which a read by area gives it (pageWhere, countWhere) — never a field of the rail`);
187
- }
188
- if (field === TILE_FIELD && indexes.some(index => tilingOf(index) !== undefined)) {
189
- throw new Error(`Slice.bindRecord: '${TILE_FIELD}' is a series or a summary index's tile, whose cells a reader reads — never a field of the rail`);
190
- }
191
196
  if (!indexedFields.has(field) || fieldTypes[field] === undefined) {
192
- throw new Error(`Slice.bindRecord: narrowing by '${field}' needs an index on it — e3.recordIndex("by_${field}", record, { on: ["${field}"] }), listed in Data.bindPaged's indexes`);
197
+ throw new Error(`Slice.bindRecord: narrowing by '${field}' needs an index on it — by_${field}: index.on(["${field}"]) among the record's indexes, listed in Data.bindPaged's indexes`);
193
198
  }
194
199
  const schema = recordSliceFieldSchema(fieldTypes[field], field);
195
200
  schemas.set(field, schema);
@@ -235,7 +240,7 @@ export function bindRecord(key, source, options = {}) {
235
240
  else
236
241
  throw new Error(`Slice.bindRecord: '${field}' needs values, a range or a prefix`);
237
242
  }
238
- if (planRecordSlice(indexes, where, "primary") === null)
243
+ if (planRecordSlice(indexes, where, "primary", undefined, printOn) === null)
239
244
  throw new Error("Slice.bindRecord: this narrowing needs one index on its exact fields followed by its range or prefix");
240
245
  return where;
241
246
  };
@@ -264,6 +269,6 @@ export function bindRecord(key, source, options = {}) {
264
269
  return { id: preset.id, name: preset.name, where: makeWhere(preset.where) };
265
270
  });
266
271
  const config = { fields, indexes, range: range === undefined ? none : some(range), search, presets };
267
- return recordSliceBindPlatform([sourceType, output.cases.some], key, source, East.value(config, RecordSliceConfigType), East.value(initial, RecordSliceStateType));
272
+ return recordSliceBindPlatform([sourceType, output.cases.some, metadata, nested], key, source, East.value(config, RecordSliceConfigType), East.value(initial, RecordSliceStateType));
268
273
  }
269
274
  //# sourceMappingURL=record.js.map