plggmatic 0.2.1 → 0.2.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/Catalog/index.d.ts +17 -0
- package/dist/Catalog/index.d.ts.map +1 -0
- package/dist/Catalog/model/tool.d.ts +101 -0
- package/dist/Catalog/model/tool.d.ts.map +1 -0
- package/dist/Catalog/usecase/adapter.d.ts +81 -0
- package/dist/Catalog/usecase/adapter.d.ts.map +1 -0
- package/dist/Catalog/usecase/catalog.d.ts +43 -0
- package/dist/Catalog/usecase/catalog.d.ts.map +1 -0
- package/dist/Catalog/usecase/runFlow.d.ts +77 -0
- package/dist/Catalog/usecase/runFlow.d.ts.map +1 -0
- package/dist/Component/index.d.ts +28 -0
- package/dist/Component/index.d.ts.map +1 -0
- package/dist/Component/model/interaction.d.ts +41 -0
- package/dist/Component/model/interaction.d.ts.map +1 -0
- package/dist/Component/model/navItem.d.ts +16 -0
- package/dist/Component/model/navItem.d.ts.map +1 -0
- package/dist/Component/usecase/breadcrumb.d.ts +26 -0
- package/dist/Component/usecase/breadcrumb.d.ts.map +1 -0
- package/dist/Component/usecase/button.d.ts +27 -0
- package/dist/Component/usecase/button.d.ts.map +1 -0
- package/dist/Component/usecase/checkbox.d.ts +20 -0
- package/dist/Component/usecase/checkbox.d.ts.map +1 -0
- package/dist/Component/usecase/colHead.d.ts +28 -0
- package/dist/Component/usecase/colHead.d.ts.map +1 -0
- package/dist/Component/usecase/confirmDialog.d.ts +25 -0
- package/dist/Component/usecase/confirmDialog.d.ts.map +1 -0
- package/dist/Component/usecase/navTree.d.ts +21 -0
- package/dist/Component/usecase/navTree.d.ts.map +1 -0
- package/dist/Component/usecase/selectInput.d.ts +28 -0
- package/dist/Component/usecase/selectInput.d.ts.map +1 -0
- package/dist/Component/usecase/textArea.d.ts +22 -0
- package/dist/Component/usecase/textArea.d.ts.map +1 -0
- package/dist/Component/usecase/textInput.d.ts +23 -0
- package/dist/Component/usecase/textInput.d.ts.map +1 -0
- package/dist/Component/usecase/textLink.d.ts +26 -0
- package/dist/Component/usecase/textLink.d.ts.map +1 -0
- package/dist/Component/usecase/themeToggle.d.ts +70 -0
- package/dist/Component/usecase/themeToggle.d.ts.map +1 -0
- package/dist/Component/usecase/toast.d.ts +32 -0
- package/dist/Component/usecase/toast.d.ts.map +1 -0
- package/dist/Component/usecase/typography.d.ts +33 -0
- package/dist/Component/usecase/typography.d.ts.map +1 -0
- package/dist/Declare/model/Action.d.ts +91 -0
- package/dist/Declare/model/Action.d.ts.map +1 -0
- package/dist/Declare/model/Adapter.d.ts +107 -0
- package/dist/Declare/model/Adapter.d.ts.map +1 -0
- package/dist/Declare/model/Collection.d.ts +55 -0
- package/dist/Declare/model/Collection.d.ts.map +1 -0
- package/dist/Declare/model/Declaration.d.ts +27 -0
- package/dist/Declare/model/Declaration.d.ts.map +1 -0
- package/dist/Declare/model/Menu.d.ts +21 -0
- package/dist/Declare/model/Menu.d.ts.map +1 -0
- package/dist/Declare/model/Query.d.ts +56 -0
- package/dist/Declare/model/Query.d.ts.map +1 -0
- package/dist/Declare/model/Row.d.ts +129 -0
- package/dist/Declare/model/Row.d.ts.map +1 -0
- package/dist/Declare/model/Source.d.ts +83 -0
- package/dist/Declare/model/Source.d.ts.map +1 -0
- package/dist/Declare/usecase/apply.d.ts +23 -0
- package/dist/Declare/usecase/apply.d.ts.map +1 -0
- package/dist/Declare/usecase/project.d.ts +66 -0
- package/dist/Declare/usecase/project.d.ts.map +1 -0
- package/dist/Declare/usecase/reconcile.d.ts +63 -0
- package/dist/Declare/usecase/reconcile.d.ts.map +1 -0
- package/dist/Flow/model/forms.d.ts +45 -0
- package/dist/Flow/model/forms.d.ts.map +1 -0
- package/dist/Flow/model/run.d.ts +74 -0
- package/dist/Flow/model/run.d.ts.map +1 -0
- package/dist/Flow/model/script.d.ts +279 -0
- package/dist/Flow/model/script.d.ts.map +1 -0
- package/dist/Flow/usecase/interpret.d.ts +17 -0
- package/dist/Flow/usecase/interpret.d.ts.map +1 -0
- package/dist/Flow/usecase/read.d.ts +46 -0
- package/dist/Flow/usecase/read.d.ts.map +1 -0
- package/dist/Form/index.d.ts +14 -0
- package/dist/Form/index.d.ts.map +1 -0
- package/dist/Form/model/control.d.ts +9 -0
- package/dist/Form/model/control.d.ts.map +1 -0
- package/dist/Form/model/submission.d.ts +30 -0
- package/dist/Form/model/submission.d.ts.map +1 -0
- package/dist/Form/usecase/controlParts.d.ts +30 -0
- package/dist/Form/usecase/controlParts.d.ts.map +1 -0
- package/dist/Form/usecase/formView.d.ts +21 -0
- package/dist/Form/usecase/formView.d.ts.map +1 -0
- package/dist/Form/usecase/parseForm.d.ts +28 -0
- package/dist/Form/usecase/parseForm.d.ts.map +1 -0
- package/dist/Layout/index.d.ts +16 -0
- package/dist/Layout/index.d.ts.map +1 -0
- package/dist/Layout/model/pane.d.ts +15 -0
- package/dist/Layout/model/pane.d.ts.map +1 -0
- package/dist/Layout/usecase/combinators.d.ts +49 -0
- package/dist/Layout/usecase/combinators.d.ts.map +1 -0
- package/dist/Meta/model/identity.d.ts +16 -0
- package/dist/Meta/model/identity.d.ts.map +1 -0
- package/dist/Render/index.d.ts +17 -0
- package/dist/Render/index.d.ts.map +1 -0
- package/dist/Render/model/mode.d.ts +13 -0
- package/dist/Render/model/mode.d.ts.map +1 -0
- package/dist/Render/model/screen.d.ts +27 -0
- package/dist/Render/model/screen.d.ts.map +1 -0
- package/dist/Render/usecase/multiColumn.d.ts +52 -0
- package/dist/Render/usecase/multiColumn.d.ts.map +1 -0
- package/dist/Render/usecase/parts.d.ts +56 -0
- package/dist/Render/usecase/parts.d.ts.map +1 -0
- package/dist/Render/usecase/renderMode.d.ts +17 -0
- package/dist/Render/usecase/renderMode.d.ts.map +1 -0
- package/dist/Render/usecase/singleColumn.d.ts +20 -0
- package/dist/Render/usecase/singleColumn.d.ts.map +1 -0
- package/dist/Schedule/model/Model.d.ts +103 -0
- package/dist/Schedule/model/Model.d.ts.map +1 -0
- package/dist/Schedule/model/Msg.d.ts +131 -0
- package/dist/Schedule/model/Msg.d.ts.map +1 -0
- package/dist/Schedule/model/Scene.d.ts +190 -0
- package/dist/Schedule/model/Scene.d.ts.map +1 -0
- package/dist/Schedule/model/View.d.ts +54 -0
- package/dist/Schedule/model/View.d.ts.map +1 -0
- package/dist/Schedule/usecase/chain.d.ts +16 -0
- package/dist/Schedule/usecase/chain.d.ts.map +1 -0
- package/dist/Schedule/usecase/codec.d.ts +44 -0
- package/dist/Schedule/usecase/codec.d.ts.map +1 -0
- package/dist/Schedule/usecase/lower.d.ts +45 -0
- package/dist/Schedule/usecase/lower.d.ts.map +1 -0
- package/dist/Schedule/usecase/scene.d.ts +16 -0
- package/dist/Schedule/usecase/scene.d.ts.map +1 -0
- package/dist/Schedule/usecase/schedule.d.ts +72 -0
- package/dist/Schedule/usecase/schedule.d.ts.map +1 -0
- package/dist/Schedule/usecase/update.d.ts +39 -0
- package/dist/Schedule/usecase/update.d.ts.map +1 -0
- package/dist/Style/index.d.ts +30 -0
- package/dist/Style/index.d.ts.map +1 -0
- package/dist/Style/model/appearance.d.ts +23 -0
- package/dist/Style/model/appearance.d.ts.map +1 -0
- package/dist/Style/model/breakpoint.d.ts +43 -0
- package/dist/Style/model/breakpoint.d.ts.map +1 -0
- package/dist/Style/model/hexColor.d.ts +24 -0
- package/dist/Style/model/hexColor.d.ts.map +1 -0
- package/dist/Style/model/metric.d.ts +35 -0
- package/dist/Style/model/metric.d.ts.map +1 -0
- package/dist/Style/model/palette.d.ts +38 -0
- package/dist/Style/model/palette.d.ts.map +1 -0
- package/dist/Style/model/scheme.d.ts +26 -0
- package/dist/Style/model/scheme.d.ts.map +1 -0
- package/dist/Style/model/syntax.d.ts +54 -0
- package/dist/Style/model/syntax.d.ts.map +1 -0
- package/dist/Style/model/theme.d.ts +58 -0
- package/dist/Style/model/theme.d.ts.map +1 -0
- package/dist/Style/model/token.d.ts +142 -0
- package/dist/Style/model/token.d.ts.map +1 -0
- package/dist/Style/model/typography.d.ts +83 -0
- package/dist/Style/model/typography.d.ts.map +1 -0
- package/dist/Style/model/zIndex.d.ts +25 -0
- package/dist/Style/model/zIndex.d.ts.map +1 -0
- package/dist/Style/usecase/appearanceScript.d.ts +43 -0
- package/dist/Style/usecase/appearanceScript.d.ts.map +1 -0
- package/dist/Style/usecase/chromeCss.d.ts +41 -0
- package/dist/Style/usecase/chromeCss.d.ts.map +1 -0
- package/dist/Style/usecase/contrast.d.ts +3 -0
- package/dist/Style/usecase/contrast.d.ts.map +1 -0
- package/dist/Style/usecase/metricCss.d.ts +17 -0
- package/dist/Style/usecase/metricCss.d.ts.map +1 -0
- package/dist/Style/usecase/reducedMotion.d.ts +20 -0
- package/dist/Style/usecase/reducedMotion.d.ts.map +1 -0
- package/dist/Style/usecase/schemeCss.d.ts +25 -0
- package/dist/Style/usecase/schemeCss.d.ts.map +1 -0
- package/dist/Style/usecase/syntaxCss.d.ts +14 -0
- package/dist/Style/usecase/syntaxCss.d.ts.map +1 -0
- package/dist/Style/usecase/utilities.d.ts +98 -0
- package/dist/Style/usecase/utilities.d.ts.map +1 -0
- package/dist/brand.d.ts +29 -0
- package/dist/brand.d.ts.map +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +4427 -0
- package/dist/styleEntry.d.ts +29 -0
- package/dist/styleEntry.d.ts.map +1 -0
- package/dist/styleEntry.es.js +1036 -0
- package/package.json +4 -1
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { type SoftStr, type Box, type Icon } from "plgg";
|
|
2
|
+
import { type Row } from "../../Declare/model/Row";
|
|
3
|
+
import { type SchedulerMsg } from "../../Schedule/model/Msg";
|
|
4
|
+
/**
|
|
5
|
+
* The checked, normalized flow IR — the shape the reader
|
|
6
|
+
* (`Flow/usecase/read.ts`) produces and the interpreter
|
|
7
|
+
* (`Flow/usecase/interpret.ts`) evaluates. Everything here
|
|
8
|
+
* is inert, JSON-safe DATA — no closures anywhere —
|
|
9
|
+
* because the paused continuation must serialize
|
|
10
|
+
* (`dsl-v1-core.md` §5.4).
|
|
11
|
+
*
|
|
12
|
+
* The expression side generalized from the point-9
|
|
13
|
+
* prototype's ad-hoc node set to a host-application model
|
|
14
|
+
* (`EApp{op, args}`) so all three worked spec §6 flows —
|
|
15
|
+
* including `(sum (map :hours …))` — are expressible. The
|
|
16
|
+
* old prototype constructors survive as thin builders over
|
|
17
|
+
* the new nodes, so the interpreter's existing spec keeps
|
|
18
|
+
* compiling.
|
|
19
|
+
*
|
|
20
|
+
* Restriction (frozen back to `dsl-v1-core.md` §2 by the
|
|
21
|
+
* point-9 prototype): `dispatch` appears only as a DIRECT
|
|
22
|
+
* STEP of a flow body, never nested in an expression — so
|
|
23
|
+
* pure expressions never pause and the paused continuation
|
|
24
|
+
* is a step index + bindings + fuel.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* A runtime value — the CLOSED, JSON-safe value union of
|
|
28
|
+
* the evaluator. Option/Result are the DSL's no-nil
|
|
29
|
+
* discipline (`dsl-v1-core.md` §3): absence and failure
|
|
30
|
+
* are values folded by match forms, never null, never a
|
|
31
|
+
* throw.
|
|
32
|
+
*/
|
|
33
|
+
export type FlowValue = Box<"VStr", SoftStr> | Box<"VNum", number> | Box<"VList", Readonly<{
|
|
34
|
+
items: ReadonlyArray<FlowValue>;
|
|
35
|
+
}>> | Box<"VRow", Row> | Icon<"VNone"> | Box<"VSome", Readonly<{
|
|
36
|
+
value: FlowValue;
|
|
37
|
+
}>> | Box<"VOk", Readonly<{
|
|
38
|
+
value: FlowValue;
|
|
39
|
+
}>> | Box<"VErr", SoftStr>;
|
|
40
|
+
/** Constructs a string value. */
|
|
41
|
+
export declare const vStr: (s: SoftStr) => FlowValue;
|
|
42
|
+
/** Constructs a number value. */
|
|
43
|
+
export declare const vNum: (n: number) => FlowValue;
|
|
44
|
+
/** Constructs a list value. */
|
|
45
|
+
export declare const vList: (items: ReadonlyArray<FlowValue>) => FlowValue;
|
|
46
|
+
/** Constructs a row value (a scene-read row). */
|
|
47
|
+
export declare const vRow: (r: Row) => FlowValue;
|
|
48
|
+
/** The absent Option value. */
|
|
49
|
+
export declare const vNone: () => FlowValue;
|
|
50
|
+
/** Constructs a present Option value. */
|
|
51
|
+
export declare const vSome: (v: FlowValue) => FlowValue;
|
|
52
|
+
/** Constructs a success Result value. */
|
|
53
|
+
export declare const vOk: (v: FlowValue) => FlowValue;
|
|
54
|
+
/** Constructs a failure Result value (a keyword). */
|
|
55
|
+
export declare const vErr: (kw: SoftStr) => FlowValue;
|
|
56
|
+
/** Matchers for folding a {@link FlowValue}. */
|
|
57
|
+
export declare const vStr$: () => {
|
|
58
|
+
__tag: "VStr";
|
|
59
|
+
type: "tag";
|
|
60
|
+
body: undefined;
|
|
61
|
+
};
|
|
62
|
+
export declare const vNum$: () => {
|
|
63
|
+
__tag: "VNum";
|
|
64
|
+
type: "tag";
|
|
65
|
+
body: undefined;
|
|
66
|
+
};
|
|
67
|
+
export declare const vList$: () => {
|
|
68
|
+
__tag: "VList";
|
|
69
|
+
type: "tag";
|
|
70
|
+
body: undefined;
|
|
71
|
+
};
|
|
72
|
+
export declare const vRow$: () => {
|
|
73
|
+
__tag: "VRow";
|
|
74
|
+
type: "tag";
|
|
75
|
+
body: undefined;
|
|
76
|
+
};
|
|
77
|
+
export declare const vNone$: () => {
|
|
78
|
+
__tag: "VNone";
|
|
79
|
+
type: "tag";
|
|
80
|
+
body: undefined;
|
|
81
|
+
};
|
|
82
|
+
export declare const vSome$: () => {
|
|
83
|
+
__tag: "VSome";
|
|
84
|
+
type: "tag";
|
|
85
|
+
body: undefined;
|
|
86
|
+
};
|
|
87
|
+
export declare const vOk$: () => {
|
|
88
|
+
__tag: "VOk";
|
|
89
|
+
type: "tag";
|
|
90
|
+
body: undefined;
|
|
91
|
+
};
|
|
92
|
+
export declare const vErr$: () => {
|
|
93
|
+
__tag: "VErr";
|
|
94
|
+
type: "tag";
|
|
95
|
+
body: undefined;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* A pure expression. `scene-rows` is the only read of the
|
|
99
|
+
* settled Scene; `EProj`/`EGet` are the no-`fn` keyword
|
|
100
|
+
* projection of `dsl-v1-core.md` §4; `EApp` is a host
|
|
101
|
+
* function application (the ~31-name vocabulary); the two
|
|
102
|
+
* match forms are the exhaustive folds over "rows
|
|
103
|
+
* present?" and Option. No expression dispatches: pure
|
|
104
|
+
* evaluation never pauses.
|
|
105
|
+
*/
|
|
106
|
+
export type FlowExpr = Box<"EStr", SoftStr> | Box<"ENum", number> | Box<"EVar", SoftStr> | Box<"ESceneRows", SoftStr> | Box<"EProj", Readonly<{
|
|
107
|
+
kw: SoftStr;
|
|
108
|
+
of: FlowExpr;
|
|
109
|
+
}>> | Box<"EGet", Readonly<{
|
|
110
|
+
kw: SoftStr;
|
|
111
|
+
of: FlowExpr;
|
|
112
|
+
}>> | Box<"EApp", Readonly<{
|
|
113
|
+
op: SoftStr;
|
|
114
|
+
args: ReadonlyArray<FlowExpr>;
|
|
115
|
+
}>> | Box<"EOk", Readonly<{
|
|
116
|
+
of: FlowExpr;
|
|
117
|
+
}>> | Box<"EErr", SoftStr> | Box<"ESome", Readonly<{
|
|
118
|
+
of: FlowExpr;
|
|
119
|
+
}>> | Icon<"ENone"> | Box<"EMatchEmpty", Readonly<{
|
|
120
|
+
of: FlowExpr;
|
|
121
|
+
whenEmpty: FlowExpr;
|
|
122
|
+
bind: SoftStr;
|
|
123
|
+
whenRest: FlowExpr;
|
|
124
|
+
}>> | Box<"EMatchOption", Readonly<{
|
|
125
|
+
of: FlowExpr;
|
|
126
|
+
whenNone: FlowExpr;
|
|
127
|
+
bind: SoftStr;
|
|
128
|
+
whenSome: FlowExpr;
|
|
129
|
+
}>>;
|
|
130
|
+
/** A string literal. */
|
|
131
|
+
export declare const strLit: (s: SoftStr) => FlowExpr;
|
|
132
|
+
/** A number literal. */
|
|
133
|
+
export declare const numLit: (n: number) => FlowExpr;
|
|
134
|
+
/** References a bound name. */
|
|
135
|
+
export declare const varRef: (name: SoftStr) => FlowExpr;
|
|
136
|
+
/** Reads a collection's settled rows. */
|
|
137
|
+
export declare const sceneRows: (collection: SoftStr) => FlowExpr;
|
|
138
|
+
/** Keyword projection over a list of rows. */
|
|
139
|
+
export declare const mapKw: (kw: SoftStr, of: FlowExpr) => FlowExpr;
|
|
140
|
+
/** Keyword lookup on one row, as an Option. */
|
|
141
|
+
export declare const getKw: (kw: SoftStr, of: FlowExpr) => FlowExpr;
|
|
142
|
+
/** A host-function application. */
|
|
143
|
+
export declare const app: (op: SoftStr, args: ReadonlyArray<FlowExpr>) => FlowExpr;
|
|
144
|
+
/** The first element, as an Option (host `first`). */
|
|
145
|
+
export declare const firstOf: (of: FlowExpr) => FlowExpr;
|
|
146
|
+
/** The element count of a list (host `count`). */
|
|
147
|
+
export declare const countOf: (of: FlowExpr) => FlowExpr;
|
|
148
|
+
/** The numeric sum of a list (host `sum`). */
|
|
149
|
+
export declare const sumOf: (of: FlowExpr) => FlowExpr;
|
|
150
|
+
/** Wraps a value in Ok. */
|
|
151
|
+
export declare const okOf: (of: FlowExpr) => FlowExpr;
|
|
152
|
+
/** An Err carrying a keyword. */
|
|
153
|
+
export declare const errOf: (kw: SoftStr) => FlowExpr;
|
|
154
|
+
/** Wraps a value in Some. */
|
|
155
|
+
export declare const someOf: (of: FlowExpr) => FlowExpr;
|
|
156
|
+
/** The absent Option. */
|
|
157
|
+
export declare const noneOf: () => FlowExpr;
|
|
158
|
+
/** Folds a list: empty vs bound non-empty. */
|
|
159
|
+
export declare const matchEmpty: (m: {
|
|
160
|
+
of: FlowExpr;
|
|
161
|
+
whenEmpty: FlowExpr;
|
|
162
|
+
bind: SoftStr;
|
|
163
|
+
whenRest: FlowExpr;
|
|
164
|
+
}) => FlowExpr;
|
|
165
|
+
/** Folds an Option: none vs bound some. */
|
|
166
|
+
export declare const matchOption: (m: {
|
|
167
|
+
of: FlowExpr;
|
|
168
|
+
whenNone: FlowExpr;
|
|
169
|
+
bind: SoftStr;
|
|
170
|
+
whenSome: FlowExpr;
|
|
171
|
+
}) => FlowExpr;
|
|
172
|
+
/** Matchers for folding a {@link FlowExpr}. */
|
|
173
|
+
export declare const strLit$: () => {
|
|
174
|
+
__tag: "EStr";
|
|
175
|
+
type: "tag";
|
|
176
|
+
body: undefined;
|
|
177
|
+
};
|
|
178
|
+
export declare const numLit$: () => {
|
|
179
|
+
__tag: "ENum";
|
|
180
|
+
type: "tag";
|
|
181
|
+
body: undefined;
|
|
182
|
+
};
|
|
183
|
+
export declare const varRef$: () => {
|
|
184
|
+
__tag: "EVar";
|
|
185
|
+
type: "tag";
|
|
186
|
+
body: undefined;
|
|
187
|
+
};
|
|
188
|
+
export declare const sceneRows$: () => {
|
|
189
|
+
__tag: "ESceneRows";
|
|
190
|
+
type: "tag";
|
|
191
|
+
body: undefined;
|
|
192
|
+
};
|
|
193
|
+
export declare const mapKw$: () => {
|
|
194
|
+
__tag: "EProj";
|
|
195
|
+
type: "tag";
|
|
196
|
+
body: undefined;
|
|
197
|
+
};
|
|
198
|
+
export declare const getKw$: () => {
|
|
199
|
+
__tag: "EGet";
|
|
200
|
+
type: "tag";
|
|
201
|
+
body: undefined;
|
|
202
|
+
};
|
|
203
|
+
export declare const app$: () => {
|
|
204
|
+
__tag: "EApp";
|
|
205
|
+
type: "tag";
|
|
206
|
+
body: undefined;
|
|
207
|
+
};
|
|
208
|
+
export declare const okOf$: () => {
|
|
209
|
+
__tag: "EOk";
|
|
210
|
+
type: "tag";
|
|
211
|
+
body: undefined;
|
|
212
|
+
};
|
|
213
|
+
export declare const errOf$: () => {
|
|
214
|
+
__tag: "EErr";
|
|
215
|
+
type: "tag";
|
|
216
|
+
body: undefined;
|
|
217
|
+
};
|
|
218
|
+
export declare const someOf$: () => {
|
|
219
|
+
__tag: "ESome";
|
|
220
|
+
type: "tag";
|
|
221
|
+
body: undefined;
|
|
222
|
+
};
|
|
223
|
+
export declare const noneOf$: () => {
|
|
224
|
+
__tag: "ENone";
|
|
225
|
+
type: "tag";
|
|
226
|
+
body: undefined;
|
|
227
|
+
};
|
|
228
|
+
export declare const matchEmpty$: () => {
|
|
229
|
+
__tag: "EMatchEmpty";
|
|
230
|
+
type: "tag";
|
|
231
|
+
body: undefined;
|
|
232
|
+
};
|
|
233
|
+
export declare const matchOption$: () => {
|
|
234
|
+
__tag: "EMatchOption";
|
|
235
|
+
type: "tag";
|
|
236
|
+
body: undefined;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* One step of a flow body: dispatch a Msg (and PAUSE
|
|
240
|
+
* until the scheduler settles), or bind a pure
|
|
241
|
+
* expression's value to a name for later steps.
|
|
242
|
+
*/
|
|
243
|
+
export type FlowStep = Box<"DispatchStep", SchedulerMsg> | Box<"BindStep", Readonly<{
|
|
244
|
+
name: SoftStr;
|
|
245
|
+
expr: FlowExpr;
|
|
246
|
+
}>>;
|
|
247
|
+
/** A dispatch step (the flow's only world-touching口). */
|
|
248
|
+
export declare const dispatchStep: (msg: SchedulerMsg) => FlowStep;
|
|
249
|
+
/** A pure binding step. */
|
|
250
|
+
export declare const bindStep: (name: SoftStr, expr: FlowExpr) => FlowStep;
|
|
251
|
+
/** Matchers for folding a {@link FlowStep}. */
|
|
252
|
+
export declare const dispatchStep$: () => {
|
|
253
|
+
__tag: "DispatchStep";
|
|
254
|
+
type: "tag";
|
|
255
|
+
body: undefined;
|
|
256
|
+
};
|
|
257
|
+
export declare const bindStep$: () => {
|
|
258
|
+
__tag: "BindStep";
|
|
259
|
+
type: "tag";
|
|
260
|
+
body: undefined;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* A whole flow: named steps run in order, then `result`
|
|
264
|
+
* evaluates to the flow's value. The unit `run_flow`
|
|
265
|
+
* (point 8) accepts, and the shape a paused continuation
|
|
266
|
+
* references by step index.
|
|
267
|
+
*/
|
|
268
|
+
export type FlowScript = Readonly<{
|
|
269
|
+
name: SoftStr;
|
|
270
|
+
steps: ReadonlyArray<FlowStep>;
|
|
271
|
+
result: FlowExpr;
|
|
272
|
+
}>;
|
|
273
|
+
/** Constructs a {@link FlowScript}. */
|
|
274
|
+
export declare const flowScript: (s: {
|
|
275
|
+
name: SoftStr;
|
|
276
|
+
steps: ReadonlyArray<FlowStep>;
|
|
277
|
+
result: FlowExpr;
|
|
278
|
+
}) => FlowScript;
|
|
279
|
+
//# sourceMappingURL=script.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../src/Flow/model/script.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,IAAI,EAIV,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GACjB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GACpB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACnB,GAAG,CACD,OAAO,EACP,QAAQ,CAAC;IACP,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CACjC,CAAC,CACH,GACD,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,GAChB,IAAI,CAAC,OAAO,CAAC,GACb,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC,CAAC,GAC5C,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC,CAAC,GAC1C,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEzB,iCAAiC;AACjC,eAAO,MAAM,IAAI,GAAI,GAAG,OAAO,KAAG,SAClB,CAAC;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EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC/B,MAAM,EAAE,QAAQ,CAAC;CAClB,KAAG,UAAe,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type Scene } from "../../Schedule/model/Scene";
|
|
2
|
+
import { type FlowScript } from "../model/script";
|
|
3
|
+
import { type FlowOutcome, type PausedFlow } from "../model/run";
|
|
4
|
+
/**
|
|
5
|
+
* Starts a flow against the current settled scene with a
|
|
6
|
+
* fuel budget. Returns paused-on-first-dispatch, done, or
|
|
7
|
+
* failed — never throws.
|
|
8
|
+
*/
|
|
9
|
+
export declare const startFlow: (script: FlowScript, scene: Scene, fuel: number) => FlowOutcome;
|
|
10
|
+
/**
|
|
11
|
+
* Resumes a paused flow with the scene the scheduler
|
|
12
|
+
* settled on after dispatching the paused Msg. The paused
|
|
13
|
+
* value is pure data — a JSON-revived copy resumes
|
|
14
|
+
* identically.
|
|
15
|
+
*/
|
|
16
|
+
export declare const resumeFlow: (paused: PausedFlow, scene: Scene) => FlowOutcome;
|
|
17
|
+
//# sourceMappingURL=interpret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interpret.d.ts","sourceRoot":"","sources":["../../../src/Flow/usecase/interpret.ts"],"names":[],"mappings":"AA0BA,OAAO,EACL,KAAK,KAAK,EAOX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAIL,KAAK,UAAU,EAgChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,UAAU,EAMhB,MAAM,0BAA0B,CAAC;AA4pBlC;;;;GAIG;AACH,eAAO,MAAM,SAAS,GACpB,QAAQ,UAAU,EAClB,OAAO,KAAK,EACZ,MAAM,MAAM,KACX,WAC0C,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GACrB,QAAQ,UAAU,EAClB,OAAO,KAAK,KACX,WAOA,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type SoftStr, type Result, type Box } from "plgg";
|
|
2
|
+
import { type SemDiagnostic } from "plgg-ir-language";
|
|
3
|
+
import { type FlowScript } from "../model/script";
|
|
4
|
+
import { type FlowSchema } from "../model/forms";
|
|
5
|
+
/**
|
|
6
|
+
* The static layer's reader: flow DSL text → a checked,
|
|
7
|
+
* normalized {@link FlowScript}, or accumulated positioned
|
|
8
|
+
* diagnostics. Total — never throws.
|
|
9
|
+
*
|
|
10
|
+
* Parsing is `plgg-ir-syntax` (the shared S-expression
|
|
11
|
+
* grammar and its ranged diagnostics) and diagnostics are
|
|
12
|
+
* `plgg-ir-language`'s `SemDiagnostic` vocabulary (its code
|
|
13
|
+
* constants + `fromSyntaxDiagnostic`); type checking runs
|
|
14
|
+
* on a structural {@link FlowType} (the manifest `SemType`
|
|
15
|
+
* vocabulary is reserved for the manifest lowering, not
|
|
16
|
+
* spent on v1's numeric/not distinction). Collection,
|
|
17
|
+
* choice, and field names resolve against the manifest-
|
|
18
|
+
* shaped {@link FlowSchema} (the seeded binding set) — the
|
|
19
|
+
* cross-dialect seam a compiled manifest will feed. (The
|
|
20
|
+
* manifest exports a `Language<Module>`, not a composable
|
|
21
|
+
* `Dialect`, so `compose` onto it is unavailable via the
|
|
22
|
+
* public API and unsound anyway; scope-seeding is the
|
|
23
|
+
* seam — see the ticket's recorded findings.)
|
|
24
|
+
*
|
|
25
|
+
* v1 surface: `(flow <name> <step>* <result-expr>)` where
|
|
26
|
+
* a step is `(dispatch <msg>)` or `(let <name> <expr>)`,
|
|
27
|
+
* and folds are explicit `(match-empty …)` /
|
|
28
|
+
* `(match-option …)` forms (a 1:1-to-`FlowScript` surface
|
|
29
|
+
* over `dsl-v1-core.md` §6's sugar).
|
|
30
|
+
*/
|
|
31
|
+
/** A structural flow type (containers nest; leaves are str/num/row). */
|
|
32
|
+
export type FlowType = Box<"TStr", null> | Box<"TNum", null> | Box<"TRow", SoftStr> | Box<"TList", Readonly<{
|
|
33
|
+
el: FlowType;
|
|
34
|
+
}>> | Box<"TOption", Readonly<{
|
|
35
|
+
el: FlowType;
|
|
36
|
+
}>> | Box<"TResult", Readonly<{
|
|
37
|
+
el: FlowType;
|
|
38
|
+
}>>;
|
|
39
|
+
type Diags = ReadonlyArray<SemDiagnostic>;
|
|
40
|
+
/**
|
|
41
|
+
* Reads flow DSL text into a checked {@link FlowScript}.
|
|
42
|
+
* Expects exactly one top-level `(flow <name> …)` form.
|
|
43
|
+
*/
|
|
44
|
+
export declare const readFlow: (source: SoftStr, schema: FlowSchema) => Result<FlowScript, Diags>;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../src/Flow/usecase/read.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EAEZ,KAAK,MAAM,EACX,KAAK,GAAG,EAUT,MAAM,MAAM,CAAC;AAWd,OAAO,EACL,KAAK,aAAa,EAQnB,MAAM,kBAAkB,CAAC;AAS1B,OAAO,EAGL,KAAK,UAAU,EAmBhB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,UAAU,EAKhB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,wEAAwE;AACxE,MAAM,MAAM,QAAQ,GAChB,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,GACjB,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,GACjB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GACpB,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC;IAAE,EAAE,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,GACxC,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAC;IAAE,EAAE,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,GAC1C,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAC;IAAE,EAAE,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,CAAC;AAmB/C,KAAK,KAAK,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC;AAo9B1C;;;GAGG;AACH,eAAO,MAAM,QAAQ,GACnB,QAAQ,OAAO,EACf,QAAQ,UAAU,KACjB,MAAM,CAAC,UAAU,EAAE,KAAK,CAsE1B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The plggmatic Form module (ticket 12): the headless
|
|
3
|
+
* form machinery the control components render against —
|
|
4
|
+
* the caster-parse fold ("parse, don't validate": the
|
|
5
|
+
* only validation is the cast that produces the typed
|
|
6
|
+
* payload), the control-kind and submission-state unions,
|
|
7
|
+
* and the form assembly. DOM-free where it can be; the
|
|
8
|
+
* views compose plgg-view element builders.
|
|
9
|
+
*/
|
|
10
|
+
export { type ControlKind, controlKinds, } from "./model/control";
|
|
11
|
+
export { type SubmissionState, idleSubmission, pendingSubmission, isPending, } from "./model/submission";
|
|
12
|
+
export { type FieldSpec, type FormErrors, type Payload, parseForm, errorFor, } from "./usecase/parseForm";
|
|
13
|
+
export { type FormViewProps, formView, } from "./usecase/formView";
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACL,KAAK,WAAW,EAChB,YAAY,GACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,eAAe,EACpB,cAAc,EACd,iBAAiB,EACjB,SAAS,GACV,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,SAAS,EACT,QAAQ,GACT,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,KAAK,aAAa,EAClB,QAAQ,GACT,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kind of form control a {@link Field} renders — a
|
|
3
|
+
* closed union so a renderer's `match` is exhaustive and
|
|
4
|
+
* a new control kind cannot be added without every
|
|
5
|
+
* interpreter site acknowledging it.
|
|
6
|
+
*/
|
|
7
|
+
export type ControlKind = "text" | "textarea" | "select" | "checkbox";
|
|
8
|
+
export declare const controlKinds: ReadonlyArray<ControlKind>;
|
|
9
|
+
//# sourceMappingURL=control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../src/Form/model/control.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GACrB,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9C,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,WAAW,CACR,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type Icon } from "plgg";
|
|
2
|
+
/**
|
|
3
|
+
* A form's submission state — a closed union so pending
|
|
4
|
+
* cannot be confused with idle and a renderer must handle
|
|
5
|
+
* both. `Pending` disables every control and the submit
|
|
6
|
+
* button and withholds hover/press feedback; the action's
|
|
7
|
+
* completion `Msg` folds the `Result` back to `Idle`. The
|
|
8
|
+
* scheduler (ticket 09) owns the action LIFECYCLE; this
|
|
9
|
+
* is the local view state a form control reads to disable
|
|
10
|
+
* itself, not a second action state machine.
|
|
11
|
+
*/
|
|
12
|
+
export type SubmissionState = Icon<"Idle"> | Icon<"Pending">;
|
|
13
|
+
/** The idle submission state. */
|
|
14
|
+
export declare const idleSubmission: () => SubmissionState;
|
|
15
|
+
/** The pending submission state (in flight). */
|
|
16
|
+
export declare const pendingSubmission: () => SubmissionState;
|
|
17
|
+
/** Matchers for folding a {@link SubmissionState}. */
|
|
18
|
+
export declare const idleSubmission$: () => {
|
|
19
|
+
__tag: "Idle";
|
|
20
|
+
type: "tag";
|
|
21
|
+
body: undefined;
|
|
22
|
+
};
|
|
23
|
+
export declare const pendingSubmission$: () => {
|
|
24
|
+
__tag: "Pending";
|
|
25
|
+
type: "tag";
|
|
26
|
+
body: undefined;
|
|
27
|
+
};
|
|
28
|
+
/** Whether the form is currently submitting. */
|
|
29
|
+
export declare const isPending: (s: SubmissionState) => boolean;
|
|
30
|
+
//# sourceMappingURL=submission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submission.d.ts","sourceRoot":"","sources":["../../../src/Form/model/submission.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIV,MAAM,MAAM,CAAC;AAEd;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GACzB,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;AAEjC,iCAAiC;AACjC,eAAO,MAAM,cAAc,QACrB,eAA+B,CAAC;AAEtC,gDAAgD;AAChD,eAAO,MAAM,iBAAiB,QACxB,eAAkC,CAAC;AAEzC,sDAAsD;AACtD,eAAO,MAAM,eAAe;;;;CACT,CAAC;AACpB,eAAO,MAAM,kBAAkB;;;;CACT,CAAC;AAEvB,gDAAgD;AAChD,eAAO,MAAM,SAAS,GACpB,GAAG,eAAe,KACjB,OAIA,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type SoftStr, type Option } from "plgg";
|
|
2
|
+
import { type Html, type Attribute } from "plgg-view";
|
|
3
|
+
/**
|
|
4
|
+
* The shared accessibility + labelling pieces every form
|
|
5
|
+
* control uses (ticket 12), so label association, the
|
|
6
|
+
* `aria-invalid`/`aria-describedby` error wiring, and the
|
|
7
|
+
* `danger`-role error text are framework-owned and
|
|
8
|
+
* identical across `textInput`/`textArea`/`selectInput`/
|
|
9
|
+
* `checkbox` — spec-asserted once here.
|
|
10
|
+
*/
|
|
11
|
+
/** The `<label for=name>` associated with a control by id. */
|
|
12
|
+
export declare const fieldLabel: <Msg>(name: SoftStr, labelText: SoftStr) => Html<Msg, "label">;
|
|
13
|
+
/**
|
|
14
|
+
* The id a control's error text carries and its
|
|
15
|
+
* `aria-describedby` points at.
|
|
16
|
+
*/
|
|
17
|
+
export declare const errorId: (name: SoftStr) => SoftStr;
|
|
18
|
+
/**
|
|
19
|
+
* The `aria-invalid` + `aria-describedby` attributes when
|
|
20
|
+
* the field has an error (empty otherwise) — spread into
|
|
21
|
+
* the control's attribute list.
|
|
22
|
+
*/
|
|
23
|
+
export declare const errorAria: (name: SoftStr, error: Option<SoftStr>) => ReadonlyArray<Attribute<never>>;
|
|
24
|
+
/**
|
|
25
|
+
* The error text node (in the `danger` text role),
|
|
26
|
+
* carrying the id `aria-describedby` references. Empty
|
|
27
|
+
* when there is no error.
|
|
28
|
+
*/
|
|
29
|
+
export declare const fieldError: <Msg>(name: SoftStr, error: Option<SoftStr>) => ReadonlyArray<Html<Msg>>;
|
|
30
|
+
//# sourceMappingURL=controlParts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controlParts.d.ts","sourceRoot":"","sources":["../../../src/Form/usecase/controlParts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAGZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EAOf,MAAM,WAAW,CAAC;AAGnB;;;;;;;GAOG;AAEH,8DAA8D;AAC9D,eAAO,MAAM,UAAU,GAAI,GAAG,EAC5B,MAAM,OAAO,EACb,WAAW,OAAO,KACjB,IAAI,CAAC,GAAG,EAAE,OAAO,CAOjB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,MAAM,OAAO,KAAG,OACvB,CAAC;AAElB;;;;GAIG;AACH,eAAO,MAAM,SAAS,GACpB,MAAM,OAAO,EACb,OAAO,MAAM,CAAC,OAAO,CAAC,KACrB,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAMzB,CAAC;AAET;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,GAAG,EAC5B,MAAM,OAAO,EACb,OAAO,MAAM,CAAC,OAAO,CAAC,KACrB,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAgBhB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type SoftStr } from "plgg";
|
|
2
|
+
import { type Html, type Flow } from "plgg-view";
|
|
3
|
+
/**
|
|
4
|
+
* The form assembly: a `<form>` (plgg-view already
|
|
5
|
+
* `preventDefault`s `onSubmit`) wrapping the field
|
|
6
|
+
* controls and a submit button. When `submitting`, the
|
|
7
|
+
* submit button is natively disabled and dims (the
|
|
8
|
+
* pending state; the CONTROLS are disabled by the
|
|
9
|
+
* consumer passing `disabled` to each). One `onSubmit`
|
|
10
|
+
* Msg — the consumer's `update` parses the drafts
|
|
11
|
+
* (`parseForm`) and folds to field errors or the Action's
|
|
12
|
+
* `Cmd`; this component owns no state.
|
|
13
|
+
*/
|
|
14
|
+
export type FormViewProps<Msg> = Readonly<{
|
|
15
|
+
fields: ReadonlyArray<Flow<Msg>>;
|
|
16
|
+
submitLabel: SoftStr;
|
|
17
|
+
submitting: boolean;
|
|
18
|
+
onSubmit: Msg;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const formView: <Msg>(props: FormViewProps<Msg>) => Html<Msg, "form">;
|
|
21
|
+
//# sourceMappingURL=formView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formView.d.ts","sourceRoot":"","sources":["../../../src/Form/usecase/formView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,IAAI,EACT,KAAK,IAAI,EAQV,MAAM,WAAW,CAAC;AAQnB;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,CAAC,GAAG,IAAI,QAAQ,CAAC;IACxC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,QAAQ,GAAI,GAAG,EAC1B,OAAO,aAAa,CAAC,GAAG,CAAC,KACxB,IAAI,CAAC,GAAG,EAAE,MAAM,CA6BhB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type SoftStr, type Datum, type Result, type Option, type InvalidError } from "plgg";
|
|
2
|
+
/**
|
|
3
|
+
* One field's parse contract: its name and a caster that
|
|
4
|
+
* turns the raw draft into a typed value or an
|
|
5
|
+
* `InvalidError`. The caster IS the validation — "parse,
|
|
6
|
+
* don't validate" (`asStr`'s `Result<A, InvalidError>`
|
|
7
|
+
* shape); there is no second validate-then-convert layer.
|
|
8
|
+
*/
|
|
9
|
+
export type FieldSpec = Readonly<{
|
|
10
|
+
name: SoftStr;
|
|
11
|
+
cast: (value: unknown) => Result<Datum, InvalidError>;
|
|
12
|
+
}>;
|
|
13
|
+
/** Per-field parse errors — `[name, message]` pairs. */
|
|
14
|
+
export type FormErrors = ReadonlyArray<readonly [SoftStr, SoftStr]>;
|
|
15
|
+
/** The parsed payload — field name → typed value. */
|
|
16
|
+
export type Payload = Readonly<Record<string, Datum>>;
|
|
17
|
+
/**
|
|
18
|
+
* Parses every field's draft through its caster in ONE
|
|
19
|
+
* pass, collecting ALL failures (not fail-fast, unlike a
|
|
20
|
+
* `cast` pipeline — a form shows every field's error at
|
|
21
|
+
* once). `Ok` with the typed payload when all fields
|
|
22
|
+
* parse; `Err` with per-field `[name, message]` errors
|
|
23
|
+
* when any fails. Total and DOM-free.
|
|
24
|
+
*/
|
|
25
|
+
export declare const parseForm: (specs: ReadonlyArray<FieldSpec>, draftOf: (name: SoftStr) => SoftStr) => Result<Payload, FormErrors>;
|
|
26
|
+
/** The error message for a field name, if any. */
|
|
27
|
+
export declare const errorFor: (errors: FormErrors, name: SoftStr) => Option<SoftStr>;
|
|
28
|
+
//# sourceMappingURL=parseForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseForm.d.ts","sourceRoot":"","sources":["../../../src/Form/usecase/parseForm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,YAAY,EAUlB,MAAM,MAAM,CAAC;AAEd;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,CACJ,KAAK,EAAE,OAAO,KACX,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;CAClC,CAAC,CAAC;AAEH,wDAAwD;AACxD,MAAM,MAAM,UAAU,GAAG,aAAa,CACpC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAC5B,CAAC;AAEF,qDAAqD;AACrD,MAAM,MAAM,OAAO,GAAG,QAAQ,CAC5B,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CACtB,CAAC;AASF;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,aAAa,CAAC,SAAS,CAAC,EAC/B,SAAS,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,KAClC,MAAM,CAAC,OAAO,EAAE,UAAU,CAwB5B,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,QAAQ,GACnB,QAAQ,UAAU,EAClB,MAAM,OAAO,KACZ,MAAM,CAAC,OAAO,CAad,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The plggmatic Layout module: the column-oriented
|
|
3
|
+
* pattern as COMPOSITION. A screen is an ordered
|
|
4
|
+
* {@link row} of {@link column}s, each holding
|
|
5
|
+
* {@link pane} landmarks — small builders that take
|
|
6
|
+
* `(parts, children)` like element builders take
|
|
7
|
+
* `(attributes, children)`. There is no layout config
|
|
8
|
+
* object and no interpreter: sizing (`basis`/`fluid`),
|
|
9
|
+
* scroll, and responsiveness are style parts and the
|
|
10
|
+
* consumer's own stylesheet targeting the `pm-row`/
|
|
11
|
+
* `pm-col`/`pm-pane` hooks. An explicit named barrel
|
|
12
|
+
* (house style); it grows one recorded rule at a time.
|
|
13
|
+
*/
|
|
14
|
+
export { type PaneRole, landmarkTag, } from "./model/pane";
|
|
15
|
+
export { type Parts, row, column, pane, navPane, mainPane, asidePane, } from "./usecase/combinators";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Layout/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,KAAK,QAAQ,EACb,WAAW,GACZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,KAAK,EACV,GAAG,EACH,MAAM,EACN,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,SAAS,GACV,MAAM,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type SoftStr } from "plgg";
|
|
2
|
+
/**
|
|
3
|
+
* The landmark role a pane plays in the page. A closed
|
|
4
|
+
* union (not a free string), mapped to a semantic HTML
|
|
5
|
+
* element by an exhaustive `Record` — so every pane
|
|
6
|
+
* renders as a real landmark and a new role cannot be
|
|
7
|
+
* added without giving it an element. This is the seed
|
|
8
|
+
* set the known consumers need (a `navigation` sidebar,
|
|
9
|
+
* a `main` content column, a `complementary` rail/list);
|
|
10
|
+
* more roles arrive one at a time with a consumer.
|
|
11
|
+
*/
|
|
12
|
+
export type PaneRole = "navigation" | "main" | "complementary";
|
|
13
|
+
/** The landmark tag for a role. */
|
|
14
|
+
export declare const landmarkTag: (role: PaneRole) => SoftStr;
|
|
15
|
+
//# sourceMappingURL=pane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pane.d.ts","sourceRoot":"","sources":["../../../src/Layout/model/pane.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC;;;;;;;;;GASG;AACH,MAAM,MAAM,QAAQ,GAClB,YAAY,GAAG,MAAM,GAAG,eAAe,CAAC;AAc1C,mCAAmC;AACnC,eAAO,MAAM,WAAW,GACtB,MAAM,QAAQ,KACb,OAAyB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type SoftStr } from "plgg";
|
|
2
|
+
import { type Html } from "plgg-view";
|
|
3
|
+
import { type Styles, type Variant } from "../../styleEntry";
|
|
4
|
+
import { type PaneRole } from "../model/pane";
|
|
5
|
+
/**
|
|
6
|
+
* What a combinator accepts as its style slot: exactly
|
|
7
|
+
* `style_`'s parts (class hooks, atom groups, variants).
|
|
8
|
+
* The combinator merges its own base parts and the
|
|
9
|
+
* consumer's into ONE `style_` call — `style_` is the
|
|
10
|
+
* sole class authority, so two calls on one element
|
|
11
|
+
* would clobber each other.
|
|
12
|
+
*/
|
|
13
|
+
export type Parts = ReadonlyArray<SoftStr | Styles | Variant>;
|
|
14
|
+
/**
|
|
15
|
+
* The screen as a horizontal strip of columns — the
|
|
16
|
+
* column-oriented pattern's outermost piece. Purely
|
|
17
|
+
* compositional: `row` contributes only `display:flex`
|
|
18
|
+
* and its `pm-row` hook; height, snapping, and collapse
|
|
19
|
+
* are the consumer's parts and stylesheet. **Recorded
|
|
20
|
+
* rule**: layout combinators take `(parts, children)`
|
|
21
|
+
* like element builders take `(attributes, children)` —
|
|
22
|
+
* options are style atoms you compose, never fields on a
|
|
23
|
+
* config object.
|
|
24
|
+
*/
|
|
25
|
+
export declare const row: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
|
|
26
|
+
/**
|
|
27
|
+
* One vertical track of the row. Contributes only the
|
|
28
|
+
* column flow (`flex-direction:column`) and its `pm-col`
|
|
29
|
+
* hook; sizing is a composed atom — `basis("220px")` for
|
|
30
|
+
* a fixed track, `fluid` for the one that fills the
|
|
31
|
+
* remaining row.
|
|
32
|
+
*/
|
|
33
|
+
export declare const column: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
|
|
34
|
+
/**
|
|
35
|
+
* A landmark content region inside a column: the
|
|
36
|
+
* accessibility skeleton of the pattern. `pane(role)`
|
|
37
|
+
* renders the role's semantic element (`nav`, `main`,
|
|
38
|
+
* `aside` — see {@link landmarkTag}) around arbitrary
|
|
39
|
+
* consumer content, with the `pm-pane` hook. Scroll,
|
|
40
|
+
* padding, and measure caps are composed parts.
|
|
41
|
+
*/
|
|
42
|
+
export declare const pane: (role: PaneRole) => <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
|
|
43
|
+
/** The `navigation` pane — renders a `<nav>` landmark. */
|
|
44
|
+
export declare const navPane: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
|
|
45
|
+
/** The `main` pane — renders the `<main>` landmark. */
|
|
46
|
+
export declare const mainPane: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
|
|
47
|
+
/** The `complementary` pane — renders an `<aside>`. */
|
|
48
|
+
export declare const asidePane: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
|
|
49
|
+
//# sourceMappingURL=combinators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combinators.d.ts","sourceRoot":"","sources":["../../../src/Layout/usecase/combinators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,IAAI,EAAM,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,KAAK,MAAM,EACX,KAAK,OAAO,EAIb,MAAM,sBAAsB,CAAC;AAC9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
+
* data attributes, error messages); `cssPrefix` is the
|
|
5
|
+
* namespace every plggmatic CSS custom property carries
|
|
6
|
+
* (`--pm-...`), keeping framework variables from
|
|
7
|
+
* colliding with an app's own.
|
|
8
|
+
*/
|
|
9
|
+
export declare const frameworkName = "plggmatic";
|
|
10
|
+
/**
|
|
11
|
+
* Prefix for CSS custom properties owned by plggmatic
|
|
12
|
+
* (e.g. `--pm-surface`). Consumed by the color-scheme
|
|
13
|
+
* emitter.
|
|
14
|
+
*/
|
|
15
|
+
export declare const cssPrefix = "pm";
|
|
16
|
+
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/Meta/model/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,SAAS,OAAO,CAAC"}
|