@elaraai/east-ui 1.0.74 → 1.0.76
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/src/collections/index.d.ts +1 -0
- package/dist/src/collections/index.d.ts.map +1 -1
- package/dist/src/collections/index.js +1 -0
- package/dist/src/collections/index.js.map +1 -1
- package/dist/src/collections/sheet/bridge.d.ts +265 -0
- package/dist/src/collections/sheet/bridge.d.ts.map +1 -0
- package/dist/src/collections/sheet/bridge.js +630 -0
- package/dist/src/collections/sheet/bridge.js.map +1 -0
- package/dist/src/collections/sheet/columns.d.ts +360 -0
- package/dist/src/collections/sheet/columns.d.ts.map +1 -0
- package/dist/src/collections/sheet/columns.js +99 -0
- package/dist/src/collections/sheet/columns.js.map +1 -0
- package/dist/src/collections/sheet/index.d.ts +207 -0
- package/dist/src/collections/sheet/index.d.ts.map +1 -0
- package/dist/src/collections/sheet/index.js +126 -0
- package/dist/src/collections/sheet/index.js.map +1 -0
- package/dist/src/collections/sheet/link.d.ts +392 -0
- package/dist/src/collections/sheet/link.d.ts.map +1 -0
- package/dist/src/collections/sheet/link.js +222 -0
- package/dist/src/collections/sheet/link.js.map +1 -0
- package/dist/src/collections/sheet/registers.d.ts +131 -0
- package/dist/src/collections/sheet/registers.d.ts.map +1 -0
- package/dist/src/collections/sheet/registers.js +119 -0
- package/dist/src/collections/sheet/registers.js.map +1 -0
- package/dist/src/collections/sheet/root.d.ts +179 -0
- package/dist/src/collections/sheet/root.d.ts.map +1 -0
- package/dist/src/collections/sheet/root.js +308 -0
- package/dist/src/collections/sheet/root.js.map +1 -0
- package/dist/src/collections/sheet/types.d.ts +6601 -0
- package/dist/src/collections/sheet/types.d.ts.map +1 -0
- package/dist/src/collections/sheet/types.js +744 -0
- package/dist/src/collections/sheet/types.js.map +1 -0
- package/dist/src/component.d.ts +2500 -0
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +6 -0
- package/dist/src/component.js.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +4 -2
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +5 -2
- package/dist/src/internal.js.map +1 -1
- package/dist/src/platform/index.d.ts +1 -1
- package/dist/src/platform/index.d.ts.map +1 -1
- package/dist/src/platform/index.js +1 -1
- package/dist/src/platform/index.js.map +1 -1
- package/dist/src/platform/slice/impl.d.ts +17 -1
- package/dist/src/platform/slice/impl.d.ts.map +1 -1
- package/dist/src/platform/slice/impl.js +60 -12
- package/dist/src/platform/slice/impl.js.map +1 -1
- package/dist/src/platform/slice/index.d.ts +155 -10
- package/dist/src/platform/slice/index.d.ts.map +1 -1
- package/dist/src/platform/slice/index.js +37 -17
- package/dist/src/platform/slice/index.js.map +1 -1
- package/dist/src/runtime/collections/index.d.ts +1 -0
- package/dist/src/runtime/collections/index.d.ts.map +1 -1
- package/dist/src/runtime/collections/index.js +1 -0
- package/dist/src/runtime/collections/index.js.map +1 -1
- package/dist/src/runtime/collections/sheet.d.ts +89 -0
- package/dist/src/runtime/collections/sheet.d.ts.map +1 -0
- package/dist/src/runtime/collections/sheet.js +65 -0
- package/dist/src/runtime/collections/sheet.js.map +1 -0
- package/dist/src/slice/index.d.ts +97 -1
- package/dist/src/slice/index.d.ts.map +1 -1
- package/dist/test/collections/sheet.examples.d.ts +56 -0
- package/dist/test/collections/sheet.examples.d.ts.map +1 -0
- package/dist/test/collections/sheet.examples.js +725 -0
- package/dist/test/collections/sheet.examples.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* `Sheet` — the planning spreadsheet (`libs/east-ui/docs/proposals/Sheet
|
|
7
|
+
* Spec.md`): a sheet whose rows are the host's records, whose columns are
|
|
8
|
+
* TYPED (a date, a quantity with a unit, a register lookup, a directed link
|
|
9
|
+
* between register members, a stamped read-only code), whose blank tail
|
|
10
|
+
* invites the next row, and whose copilot fills cells and proposes whole
|
|
11
|
+
* rows from rules the author writes as East functions.
|
|
12
|
+
*
|
|
13
|
+
* The module is the namespace assembler over the split sources:
|
|
14
|
+
* `types.ts` (the closed wire types + the typed constructors) ·
|
|
15
|
+
* `columns.ts` (`Sheet.column.*`) · `registers.ts` (`Sheet.register.*`,
|
|
16
|
+
* `Sheet.driver`) · `link.ts` (`Sheet.link.*`) · `bridge.ts` (the typed
|
|
17
|
+
* bridge) · `root.ts` (`Sheet.Root`).
|
|
18
|
+
*
|
|
19
|
+
* One namespace object per category, the `Plan.series` / `Plan.at` /
|
|
20
|
+
* `Plan.Types` split, so categories never mix as they grow.
|
|
21
|
+
*
|
|
22
|
+
* @packageDocumentation
|
|
23
|
+
*/
|
|
24
|
+
import { type ExprType, type StructType } from "@elaraai/east";
|
|
25
|
+
import { SheetMemberType, SheetLinkType, SheetCellType, SheetRowType, SheetRowsCollectionType, SheetRowsType, SheetRegisterMemberType, SheetRegisterType, SheetDriverType, SheetHalfType, SheetSidesValueType, SheetStoreType, SheetMemberKindType, SheetMultipleType, SheetSideLockType, SheetSidesType, SheetCountedType, SheetContextType, SheetFillType, SheetProposalType, SheetProviderType, SheetProposerType, SheetSuggestType, SheetCheckContextType, SheetCheckType, SheetArityType, SheetColumnKindType, SheetColumnType, SheetViewType, SheetSourceType, SheetEditType, SheetSelectionType, SheetFooterItemType, SheetStyleType, SheetRootType, SheetContextTypeFor, SheetFillTypeFor, SheetPatchTypeFor, SheetProposalTypeFor, SheetEditTypeFor, SheetCheckContextTypeFor, type SheetPatchInput, type SheetPatchOf } from "./types.js";
|
|
26
|
+
import { text, date, quantity, integer, lookup, reference, enumColumn, set, link, stamped, custom } from "./columns.js";
|
|
27
|
+
import { createMembers, concatMembers, createDriver } from "./registers.js";
|
|
28
|
+
import { createArity, check, parseLink, printLink, SheetMembersType, SheetRegisterMembersType } from "./link.js";
|
|
29
|
+
import { createSheet } from "./root.js";
|
|
30
|
+
export { SheetMemberType, SheetLinkType, SheetCellType, SheetRowType, SheetRowsCollectionType, SheetRowsType, SheetRegisterMemberType, SheetRegisterType, SheetDriverType, SheetHalfType, type SheetHalfLiteral, SheetSidesValueType, type SheetSidesLiteral, SheetStoreType, type SheetStoreLiteral, SheetMemberKindType, SheetMultipleType, SheetSideLockType, SheetSidesType, SheetCountedType, SheetContextType, SheetFillType, SheetProposalType, SheetProviderType, SheetProposerType, SheetSuggestType, SheetCheckContextType, SheetCheckType, SheetArityType, SheetColumnKindType, type SheetColumnKindLiteral, SheetColumnType, SheetViewType, SheetSourceType, type SheetSourceLiteral, SheetEditType, SheetSelectionType, SheetFooterItemType, SheetStyleType, SheetRootType, SheetContextTypeFor, SheetFillTypeFor, SheetPatchTypeFor, SheetProposalTypeFor, SheetEditTypeFor, SheetCheckContextTypeFor, type SheetContextOf, type SheetFillOf, type SheetPatchOf, type SheetProposalOf, type SheetEditOf, type SheetCheckContextOf, type SheetPatchInput, type SheetFieldsOf, } from "./types.js";
|
|
31
|
+
export { type SheetColumn, type SheetColumnSpec, type SheetFieldKey, type SheetMemberArrayField, type SheetFillInput, type SheetColumnBaseConfig, type SheetValueConfig, type SheetTextConfig, type SheetDateConfig, type SheetQuantityConfig, type SheetIntegerConfig, type SheetLookupConfig, type SheetReferenceConfig, type SheetEnumConfig, type SheetMemberKindInput, type SheetMultipleInput, type SheetSetConfig, type SheetSidesInput, type SheetLinkConfig, type SheetStampedConfig, type SheetCustomConfig, } from "./columns.js";
|
|
32
|
+
export { type SheetRegisterValue, type SheetMembersConfig, type SheetDriverConfig, type SheetDriverValue, } from "./registers.js";
|
|
33
|
+
export { type SheetArityInput, type SheetCheckInput, type SheetExistsCheck, type SheetLocksInput, SheetMembersType, SheetRegisterMembersType, printMember, linkKeys, } from "./link.js";
|
|
34
|
+
export { type SheetOptions, type SheetSuggestInput, type SheetProposerInput, type SheetStringField, type SheetBindHandle, createSheet, } from "./root.js";
|
|
35
|
+
export { type SheetColumnMeta, describeColumn, optionPayload, cellTagOf } from "./bridge.js";
|
|
36
|
+
/**
|
|
37
|
+
* Builds a row patch — `Sheet.patch(R, { … })`: the fields a proposal sets,
|
|
38
|
+
* every other field `none` (§3.6). Takes the literal-record form of `R`'s
|
|
39
|
+
* fields, each a literal or an expression of the FIELD's type.
|
|
40
|
+
*
|
|
41
|
+
* @typeParam R - The host's row type
|
|
42
|
+
* @param rowType - The row type value
|
|
43
|
+
* @param record - The fields to set
|
|
44
|
+
* @returns An expression of `Sheet.Types.Patch(R)`
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* Sheet.patch(PlanRowType, { activity: "Machining", start: some(endAt.addDays(3n)), qty: ctx.row.qty })
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function createPatch<R extends StructType>(rowType: R, record: SheetPatchInput<R>): ExprType<SheetPatchOf<R>>;
|
|
52
|
+
/**
|
|
53
|
+
* The type of the {@link Sheet} namespace. Declared explicitly (rather than
|
|
54
|
+
* inferred from `as const`) so the declaration emit stays within
|
|
55
|
+
* TypeScript's serialization limit.
|
|
56
|
+
*/
|
|
57
|
+
export interface SheetNamespace {
|
|
58
|
+
/** Creates the Sheet root (the `<Sheet>` tag's factory). */
|
|
59
|
+
Root: typeof createSheet;
|
|
60
|
+
/** The column builders — each takes the row type first (§3.2). */
|
|
61
|
+
column: {
|
|
62
|
+
/** Free text. */
|
|
63
|
+
text: typeof text;
|
|
64
|
+
/** A UTC-midnight date with the B§3 grammar. */
|
|
65
|
+
date: typeof date;
|
|
66
|
+
/** A float with a unit per driver member. */
|
|
67
|
+
quantity: typeof quantity;
|
|
68
|
+
/** A whole number. */
|
|
69
|
+
integer: typeof integer;
|
|
70
|
+
/** The driver column — scored candidates from the driver's register. */
|
|
71
|
+
lookup: typeof lookup;
|
|
72
|
+
/** A lookup over a flat member list. */
|
|
73
|
+
reference: typeof reference;
|
|
74
|
+
/** An upper-cased register word with a valence dot. */
|
|
75
|
+
enum: typeof enumColumn;
|
|
76
|
+
/** Comma members — the link grammar without an arrow. */
|
|
77
|
+
set: typeof set;
|
|
78
|
+
/** `from > to` — the split cell (§3.4). */
|
|
79
|
+
link: typeof link;
|
|
80
|
+
/** A read-only code an upstream system owns. */
|
|
81
|
+
stamped: typeof stamped;
|
|
82
|
+
/** An author parse / print pair over the field's payload (§3.9). */
|
|
83
|
+
custom: typeof custom;
|
|
84
|
+
};
|
|
85
|
+
/** Registers — the grammar's vocabulary, projected from the host's rows (§3.3). */
|
|
86
|
+
register: {
|
|
87
|
+
/** Members from rows through accessors, reified once; duplicates fold by key. */
|
|
88
|
+
members: typeof createMembers;
|
|
89
|
+
/** Joins member sets of different kinds into one register. */
|
|
90
|
+
concat: typeof concatMembers;
|
|
91
|
+
};
|
|
92
|
+
/** The driver declaration — the `lookup` column whose member decides what the row does. */
|
|
93
|
+
driver: typeof createDriver;
|
|
94
|
+
/** The link value's helpers (§3.4). */
|
|
95
|
+
link: {
|
|
96
|
+
/** A link column's arity rule. */
|
|
97
|
+
arity: typeof createArity;
|
|
98
|
+
/** The built-in member checks (`exists`). */
|
|
99
|
+
check: typeof check;
|
|
100
|
+
/** The grammar's parse — text and a register's members to a link value. */
|
|
101
|
+
parse: typeof parseLink;
|
|
102
|
+
/** The grammar's print — a link value to the planner's text. */
|
|
103
|
+
print: typeof printLink;
|
|
104
|
+
};
|
|
105
|
+
/** A row patch — the fields a proposal sets (§3.6). */
|
|
106
|
+
patch: typeof createPatch;
|
|
107
|
+
/** The Sheet East types — the closed wire types and the typed constructors. */
|
|
108
|
+
Types: {
|
|
109
|
+
/** The Sheet root IR ({@link SheetRootType}). */
|
|
110
|
+
Root: typeof SheetRootType;
|
|
111
|
+
/** One wire row — id, `owned`, one cell per declared column ({@link SheetRowType}). */
|
|
112
|
+
Row: typeof SheetRowType;
|
|
113
|
+
/** The sheet's row collection ({@link SheetRowsCollectionType}). */
|
|
114
|
+
Rows: typeof SheetRowsCollectionType;
|
|
115
|
+
/** How the rows arrive — inline or paged ({@link SheetRowsType}). */
|
|
116
|
+
RowSource: typeof SheetRowsType;
|
|
117
|
+
/** One cell — the literal cell plus the typed link ({@link SheetCellType}). */
|
|
118
|
+
Cell: typeof SheetCellType;
|
|
119
|
+
/** The typed link value — `{ from, to }` member lists ({@link SheetLinkType}). */
|
|
120
|
+
Link: typeof SheetLinkType;
|
|
121
|
+
/** One link member ({@link SheetMemberType}). */
|
|
122
|
+
Member: typeof SheetMemberType;
|
|
123
|
+
/** A list of link members. */
|
|
124
|
+
Members: typeof SheetMembersType;
|
|
125
|
+
/** A count of a countable member ({@link SheetCountedType}). */
|
|
126
|
+
Counted: typeof SheetCountedType;
|
|
127
|
+
/** Which halves a driver member makes live ({@link SheetSidesValueType}). */
|
|
128
|
+
Sides: typeof SheetSidesValueType;
|
|
129
|
+
/** One half of a link ({@link SheetHalfType}). */
|
|
130
|
+
Half: typeof SheetHalfType;
|
|
131
|
+
/** How a `String`-backed link writes back ({@link SheetStoreType}). */
|
|
132
|
+
Store: typeof SheetStoreType;
|
|
133
|
+
/** One register member ({@link SheetRegisterMemberType}). */
|
|
134
|
+
RegisterMember: typeof SheetRegisterMemberType;
|
|
135
|
+
/** A list of register members — what `Sheet.link.parse` resolves against. */
|
|
136
|
+
RegisterMembers: typeof SheetRegisterMembersType;
|
|
137
|
+
/** One register ({@link SheetRegisterType}). */
|
|
138
|
+
Register: typeof SheetRegisterType;
|
|
139
|
+
/** The driver ({@link SheetDriverType}). */
|
|
140
|
+
Driver: typeof SheetDriverType;
|
|
141
|
+
/** One member kind a link column accepts ({@link SheetMemberKindType}). */
|
|
142
|
+
MemberKind: typeof SheetMemberKindType;
|
|
143
|
+
/** The counted-member grammar ({@link SheetMultipleType}). */
|
|
144
|
+
Multiple: typeof SheetMultipleType;
|
|
145
|
+
/** One lock rule ({@link SheetSideLockType}). */
|
|
146
|
+
SideLock: typeof SheetSideLockType;
|
|
147
|
+
/** A link column's applied sides declaration ({@link SheetSidesType}). */
|
|
148
|
+
SidesDeclaration: typeof SheetSidesType;
|
|
149
|
+
/** One declared column ({@link SheetColumnType}). */
|
|
150
|
+
Column: typeof SheetColumnType;
|
|
151
|
+
/** The column kind ({@link SheetColumnKindType}). */
|
|
152
|
+
ColumnKind: typeof SheetColumnKindType;
|
|
153
|
+
/** The WIRE copilot context ({@link SheetContextType}); authors use `Context(R, D)`. */
|
|
154
|
+
WireContext: typeof SheetContextType;
|
|
155
|
+
/** The WIRE fill ({@link SheetFillType}); authors use `Fill(T)`. */
|
|
156
|
+
WireFill: typeof SheetFillType;
|
|
157
|
+
/** The WIRE proposal ({@link SheetProposalType}); authors use `Proposal(R)`. */
|
|
158
|
+
WireProposal: typeof SheetProposalType;
|
|
159
|
+
/** A fill provider on the wire — sync or async ({@link SheetProviderType}). */
|
|
160
|
+
Provider: typeof SheetProviderType;
|
|
161
|
+
/** A row proposer on the wire ({@link SheetProposerType}). */
|
|
162
|
+
Proposer: typeof SheetProposerType;
|
|
163
|
+
/** The row-proposal declaration ({@link SheetSuggestType}). */
|
|
164
|
+
Suggest: typeof SheetSuggestType;
|
|
165
|
+
/** The WIRE check context ({@link SheetCheckContextType}); authors use `CheckContext(R)`. */
|
|
166
|
+
WireCheckContext: typeof SheetCheckContextType;
|
|
167
|
+
/** One member check ({@link SheetCheckType}). */
|
|
168
|
+
Check: typeof SheetCheckType;
|
|
169
|
+
/** A link column's arity rule on the wire ({@link SheetArityType}). */
|
|
170
|
+
Arity: typeof SheetArityType;
|
|
171
|
+
/** One saved view ({@link SheetViewType}). */
|
|
172
|
+
View: typeof SheetViewType;
|
|
173
|
+
/** Where an edit came from ({@link SheetSourceType}). */
|
|
174
|
+
Source: typeof SheetSourceType;
|
|
175
|
+
/** The WIRE edit event ({@link SheetEditType}); authors use `Edit(R)`. */
|
|
176
|
+
WireEdit: typeof SheetEditType;
|
|
177
|
+
/** The selection ring's position ({@link SheetSelectionType}). */
|
|
178
|
+
Selection: typeof SheetSelectionType;
|
|
179
|
+
/** One footer item ({@link SheetFooterItemType}). */
|
|
180
|
+
FooterItem: typeof SheetFooterItemType;
|
|
181
|
+
/** The Sheet style ({@link SheetStyleType}). */
|
|
182
|
+
Style: typeof SheetStyleType;
|
|
183
|
+
/** `Context(R, D)` — the copilot context typed over the host's row and the driver's ({@link SheetContextTypeFor}). */
|
|
184
|
+
Context: typeof SheetContextTypeFor;
|
|
185
|
+
/** `Fill(T)` — a proposed value of a column's payload ({@link SheetFillTypeFor}). */
|
|
186
|
+
Fill: typeof SheetFillTypeFor;
|
|
187
|
+
/** `Patch(R)` — a row patch, every field an `Option` ({@link SheetPatchTypeFor}). */
|
|
188
|
+
Patch: typeof SheetPatchTypeFor;
|
|
189
|
+
/** `Proposal(R)` — a patch plus its provenance ({@link SheetProposalTypeFor}). */
|
|
190
|
+
Proposal: typeof SheetProposalTypeFor;
|
|
191
|
+
/** `Edit(R)` — the raw edit event typed over the row ({@link SheetEditTypeFor}). */
|
|
192
|
+
Edit: typeof SheetEditTypeFor;
|
|
193
|
+
/** `CheckContext(R)` — what an author's member check sees ({@link SheetCheckContextTypeFor}). */
|
|
194
|
+
CheckContext: typeof SheetCheckContextTypeFor;
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* The `Sheet` namespace — the planning spreadsheet. Assemble a sheet with
|
|
199
|
+
* `Sheet.Root` (the `<Sheet>` tag), declare columns with `Sheet.column.*`
|
|
200
|
+
* (row type first), registers with `Sheet.register.members` / `.concat` and
|
|
201
|
+
* the driver with `Sheet.driver`, link rules with `Sheet.link.*`, proposed
|
|
202
|
+
* rows with `Sheet.patch`, and reach every East type — the closed wire types
|
|
203
|
+
* and the typed constructors `Context(R, D)` / `Fill(T)` / `Patch(R)` /
|
|
204
|
+
* `Proposal(R)` / `Edit(R)` / `CheckContext(R)` — via `Sheet.Types.*`.
|
|
205
|
+
*/
|
|
206
|
+
export declare const Sheet: SheetNamespace;
|
|
207
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collections/sheet/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAEH,KAAK,QAAQ,EAGb,KAAK,UAAU,EAGlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,uBAAuB,EACvB,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,KAAK,eAAe,EACpB,KAAK,YAAY,EACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACxH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,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AO,cAAc,CAAC;QAC7B,uEAAuE;QACvE,KAAK,EAAE,OAAO,cAAc,CAAC;QAC7B,8CAA8C;QAC9C,IAAI,EAAE,OAAO,aAAa,CAAC;QAC3B,yDAAyD;QACzD,MAAM,EAAE,OAAO,eAAe,CAAC;QAC/B,0EAA0E;QAC1E,QAAQ,EAAE,OAAO,aAAa,CAAC;QAC/B,kEAAkE;QAClE,SAAS,EAAE,OAAO,kBAAkB,CAAC;QACrC,qDAAqD;QACrD,UAAU,EAAE,OAAO,mBAAmB,CAAC;QACvC,gDAAgD;QAChD,KAAK,EAAE,OAAO,cAAc,CAAC;QAC7B,sHAAsH;QACtH,OAAO,EAAE,OAAO,mBAAmB,CAAC;QACpC,qFAAqF;QACrF,IAAI,EAAE,OAAO,gBAAgB,CAAC;QAC9B,qFAAqF;QACrF,KAAK,EAAE,OAAO,iBAAiB,CAAC;QAChC,kFAAkF;QAClF,QAAQ,EAAE,OAAO,oBAAoB,CAAC;QACtC,oFAAoF;QACpF,IAAI,EAAE,OAAO,gBAAgB,CAAC;QAC9B,iGAAiG;QACjG,YAAY,EAAE,OAAO,wBAAwB,CAAC;KACjD,CAAC;CACL;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK,EAAE,cAoDnB,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* `Sheet` — the planning spreadsheet (`libs/east-ui/docs/proposals/Sheet
|
|
7
|
+
* Spec.md`): a sheet whose rows are the host's records, whose columns are
|
|
8
|
+
* TYPED (a date, a quantity with a unit, a register lookup, a directed link
|
|
9
|
+
* between register members, a stamped read-only code), whose blank tail
|
|
10
|
+
* invites the next row, and whose copilot fills cells and proposes whole
|
|
11
|
+
* rows from rules the author writes as East functions.
|
|
12
|
+
*
|
|
13
|
+
* The module is the namespace assembler over the split sources:
|
|
14
|
+
* `types.ts` (the closed wire types + the typed constructors) ·
|
|
15
|
+
* `columns.ts` (`Sheet.column.*`) · `registers.ts` (`Sheet.register.*`,
|
|
16
|
+
* `Sheet.driver`) · `link.ts` (`Sheet.link.*`) · `bridge.ts` (the typed
|
|
17
|
+
* bridge) · `root.ts` (`Sheet.Root`).
|
|
18
|
+
*
|
|
19
|
+
* One namespace object per category, the `Plan.series` / `Plan.at` /
|
|
20
|
+
* `Plan.Types` split, so categories never mix as they grow.
|
|
21
|
+
*
|
|
22
|
+
* @packageDocumentation
|
|
23
|
+
*/
|
|
24
|
+
import { East, some, none, } from "@elaraai/east";
|
|
25
|
+
import { SheetMemberType, SheetLinkType, SheetCellType, SheetRowType, SheetRowsCollectionType, SheetRowsType, SheetRegisterMemberType, SheetRegisterType, SheetDriverType, SheetHalfType, SheetSidesValueType, SheetStoreType, SheetMemberKindType, SheetMultipleType, SheetSideLockType, SheetSidesType, SheetCountedType, SheetContextType, SheetFillType, SheetProposalType, SheetProviderType, SheetProposerType, SheetSuggestType, SheetCheckContextType, SheetCheckType, SheetArityType, SheetColumnKindType, SheetColumnType, SheetViewType, SheetSourceType, SheetEditType, SheetSelectionType, SheetFooterItemType, SheetStyleType, SheetRootType, SheetContextTypeFor, SheetFillTypeFor, SheetPatchTypeFor, SheetProposalTypeFor, SheetEditTypeFor, SheetCheckContextTypeFor, } from "./types.js";
|
|
26
|
+
import { text, date, quantity, integer, lookup, reference, enumColumn, set, link, stamped, custom } from "./columns.js";
|
|
27
|
+
import { createMembers, concatMembers, createDriver } from "./registers.js";
|
|
28
|
+
import { createArity, check, parseLink, printLink, SheetMembersType, SheetRegisterMembersType } from "./link.js";
|
|
29
|
+
import { createSheet } from "./root.js";
|
|
30
|
+
// Re-export the UIComp-free types so consumers reach everything via this barrel.
|
|
31
|
+
export { SheetMemberType, SheetLinkType, SheetCellType, SheetRowType, SheetRowsCollectionType, SheetRowsType, SheetRegisterMemberType, SheetRegisterType, SheetDriverType, SheetHalfType, SheetSidesValueType, SheetStoreType, SheetMemberKindType, SheetMultipleType, SheetSideLockType, SheetSidesType, SheetCountedType, SheetContextType, SheetFillType, SheetProposalType, SheetProviderType, SheetProposerType, SheetSuggestType, SheetCheckContextType, SheetCheckType, SheetArityType, SheetColumnKindType, SheetColumnType, SheetViewType, SheetSourceType, SheetEditType, SheetSelectionType, SheetFooterItemType, SheetStyleType, SheetRootType, SheetContextTypeFor, SheetFillTypeFor, SheetPatchTypeFor, SheetProposalTypeFor, SheetEditTypeFor, SheetCheckContextTypeFor, } from "./types.js";
|
|
32
|
+
export {} from "./columns.js";
|
|
33
|
+
export {} from "./registers.js";
|
|
34
|
+
export { SheetMembersType, SheetRegisterMembersType, printMember, linkKeys, } from "./link.js";
|
|
35
|
+
export { createSheet, } from "./root.js";
|
|
36
|
+
export { describeColumn, optionPayload, cellTagOf } from "./bridge.js";
|
|
37
|
+
// ============================================================================
|
|
38
|
+
// Sheet.patch
|
|
39
|
+
// ============================================================================
|
|
40
|
+
/**
|
|
41
|
+
* Builds a row patch — `Sheet.patch(R, { … })`: the fields a proposal sets,
|
|
42
|
+
* every other field `none` (§3.6). Takes the literal-record form of `R`'s
|
|
43
|
+
* fields, each a literal or an expression of the FIELD's type.
|
|
44
|
+
*
|
|
45
|
+
* @typeParam R - The host's row type
|
|
46
|
+
* @param rowType - The row type value
|
|
47
|
+
* @param record - The fields to set
|
|
48
|
+
* @returns An expression of `Sheet.Types.Patch(R)`
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* Sheet.patch(PlanRowType, { activity: "Machining", start: some(endAt.addDays(3n)), qty: ctx.row.qty })
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export function createPatch(rowType, record) {
|
|
56
|
+
const patchType = SheetPatchTypeFor(rowType);
|
|
57
|
+
const fields = {};
|
|
58
|
+
const rec = record;
|
|
59
|
+
for (const name of Object.keys(rowType.fields)) {
|
|
60
|
+
fields[name] = rec[name] !== undefined ? some(rec[name]) : none;
|
|
61
|
+
}
|
|
62
|
+
return East.value(fields, patchType);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The `Sheet` namespace — the planning spreadsheet. Assemble a sheet with
|
|
66
|
+
* `Sheet.Root` (the `<Sheet>` tag), declare columns with `Sheet.column.*`
|
|
67
|
+
* (row type first), registers with `Sheet.register.members` / `.concat` and
|
|
68
|
+
* the driver with `Sheet.driver`, link rules with `Sheet.link.*`, proposed
|
|
69
|
+
* rows with `Sheet.patch`, and reach every East type — the closed wire types
|
|
70
|
+
* and the typed constructors `Context(R, D)` / `Fill(T)` / `Patch(R)` /
|
|
71
|
+
* `Proposal(R)` / `Edit(R)` / `CheckContext(R)` — via `Sheet.Types.*`.
|
|
72
|
+
*/
|
|
73
|
+
export const Sheet = {
|
|
74
|
+
Root: createSheet,
|
|
75
|
+
column: { text, date, quantity, integer, lookup, reference, enum: enumColumn, set, link, stamped, custom },
|
|
76
|
+
register: { members: createMembers, concat: concatMembers },
|
|
77
|
+
driver: createDriver,
|
|
78
|
+
link: { arity: createArity, check, parse: parseLink, print: printLink },
|
|
79
|
+
patch: createPatch,
|
|
80
|
+
Types: {
|
|
81
|
+
Root: SheetRootType,
|
|
82
|
+
Row: SheetRowType,
|
|
83
|
+
Rows: SheetRowsCollectionType,
|
|
84
|
+
RowSource: SheetRowsType,
|
|
85
|
+
Cell: SheetCellType,
|
|
86
|
+
Link: SheetLinkType,
|
|
87
|
+
Member: SheetMemberType,
|
|
88
|
+
Members: SheetMembersType,
|
|
89
|
+
Counted: SheetCountedType,
|
|
90
|
+
Sides: SheetSidesValueType,
|
|
91
|
+
Half: SheetHalfType,
|
|
92
|
+
Store: SheetStoreType,
|
|
93
|
+
RegisterMember: SheetRegisterMemberType,
|
|
94
|
+
RegisterMembers: SheetRegisterMembersType,
|
|
95
|
+
Register: SheetRegisterType,
|
|
96
|
+
Driver: SheetDriverType,
|
|
97
|
+
MemberKind: SheetMemberKindType,
|
|
98
|
+
Multiple: SheetMultipleType,
|
|
99
|
+
SideLock: SheetSideLockType,
|
|
100
|
+
SidesDeclaration: SheetSidesType,
|
|
101
|
+
Column: SheetColumnType,
|
|
102
|
+
ColumnKind: SheetColumnKindType,
|
|
103
|
+
WireContext: SheetContextType,
|
|
104
|
+
WireFill: SheetFillType,
|
|
105
|
+
WireProposal: SheetProposalType,
|
|
106
|
+
Provider: SheetProviderType,
|
|
107
|
+
Proposer: SheetProposerType,
|
|
108
|
+
Suggest: SheetSuggestType,
|
|
109
|
+
WireCheckContext: SheetCheckContextType,
|
|
110
|
+
Check: SheetCheckType,
|
|
111
|
+
Arity: SheetArityType,
|
|
112
|
+
View: SheetViewType,
|
|
113
|
+
Source: SheetSourceType,
|
|
114
|
+
WireEdit: SheetEditType,
|
|
115
|
+
Selection: SheetSelectionType,
|
|
116
|
+
FooterItem: SheetFooterItemType,
|
|
117
|
+
Style: SheetStyleType,
|
|
118
|
+
Context: SheetContextTypeFor,
|
|
119
|
+
Fill: SheetFillTypeFor,
|
|
120
|
+
Patch: SheetPatchTypeFor,
|
|
121
|
+
Proposal: SheetProposalTypeFor,
|
|
122
|
+
Edit: SheetEditTypeFor,
|
|
123
|
+
CheckContext: SheetCheckContextTypeFor,
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/collections/sheet/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAIH,IAAI,EAEJ,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,uBAAuB,EACvB,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,aAAa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