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,190 @@
|
|
|
1
|
+
import { type SoftStr, type Box, type Option } from "plgg";
|
|
2
|
+
import { type Row, type FieldValue } from "../../Declare/model/Row";
|
|
3
|
+
import { type Verb } from "../../Declare/model/Action";
|
|
4
|
+
/**
|
|
5
|
+
* A confirmation the renderer must surface as a dialog —
|
|
6
|
+
* the prompt and whether the pending action is
|
|
7
|
+
* destructive (so the renderer can style the confirm
|
|
8
|
+
* button and label it accessibly).
|
|
9
|
+
*/
|
|
10
|
+
export type ConfirmPrompt = Readonly<{
|
|
11
|
+
prompt: SoftStr;
|
|
12
|
+
destructive: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* A button a renderer draws for an available action, with
|
|
16
|
+
* the declared semantics it needs: the verb (for styling
|
|
17
|
+
* create vs delete) and whether it is destructive.
|
|
18
|
+
*/
|
|
19
|
+
export type ActionButton = Readonly<{
|
|
20
|
+
id: SoftStr;
|
|
21
|
+
label: SoftStr;
|
|
22
|
+
verb: Verb;
|
|
23
|
+
destructive: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
/** One list row projected for a renderer. */
|
|
26
|
+
export type RowLink = Readonly<{
|
|
27
|
+
row: Row;
|
|
28
|
+
href: SoftStr;
|
|
29
|
+
active: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
/** One menu entry projected for a renderer. */
|
|
32
|
+
export type MenuLink = Readonly<{
|
|
33
|
+
label: SoftStr;
|
|
34
|
+
href: SoftStr;
|
|
35
|
+
active: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
/**
|
|
38
|
+
* One declared query choice projected for a renderer: the
|
|
39
|
+
* control caption, the closed option set, and the chosen
|
|
40
|
+
* value (`""` when unfiltered).
|
|
41
|
+
*/
|
|
42
|
+
export type QueryChoiceState = Readonly<{
|
|
43
|
+
id: SoftStr;
|
|
44
|
+
label: SoftStr;
|
|
45
|
+
options: ReadonlyArray<SoftStr>;
|
|
46
|
+
value: SoftStr;
|
|
47
|
+
}>;
|
|
48
|
+
/** The live query state a renderer draws (if any). */
|
|
49
|
+
export type QueryState = Readonly<{
|
|
50
|
+
placeholder: SoftStr;
|
|
51
|
+
text: SoftStr;
|
|
52
|
+
choices: ReadonlyArray<QueryChoiceState>;
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* One detail field projected for a renderer: the typed
|
|
56
|
+
* value plus, for a `Reference`, the resolved href of the
|
|
57
|
+
* target's CANONICAL address (the cross-link jump — built
|
|
58
|
+
* by the scene, so renderers never see the model). `None`
|
|
59
|
+
* for every non-reference value.
|
|
60
|
+
*/
|
|
61
|
+
export type DetailField = Readonly<{
|
|
62
|
+
label: SoftStr;
|
|
63
|
+
value: FieldValue;
|
|
64
|
+
href: Option<SoftStr>;
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* One board tile projected for a renderer: the headline
|
|
68
|
+
* `label`, the supporting `caption` (the row's first
|
|
69
|
+
* field), and the tile's jump — the href of the summarized
|
|
70
|
+
* target's CANONICAL address, resolved by the scene from
|
|
71
|
+
* the row's `Reference` field (`None` when the tile
|
|
72
|
+
* carries no reference). The jump is the tile's ONLY
|
|
73
|
+
* interaction: board rows do not drill.
|
|
74
|
+
*/
|
|
75
|
+
export type Tile = Readonly<{
|
|
76
|
+
label: SoftStr;
|
|
77
|
+
caption: SoftStr;
|
|
78
|
+
href: Option<SoftStr>;
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
* A position in the drill-down flow, projected to
|
|
82
|
+
* presentation-neutral data — the renderer seam. A closed
|
|
83
|
+
* union: a renderer folds it with an exhaustive `match`,
|
|
84
|
+
* so a new level kind is a compile error at every
|
|
85
|
+
* renderer (tickets 10/11). A `level` is DEPTH, not a
|
|
86
|
+
* column/screen — mode-agnostic (D10). The union grows
|
|
87
|
+
* deliberate variants as target screens demand them (the
|
|
88
|
+
* point-5 decision, 2026-07-12) — never a layout-data
|
|
89
|
+
* generalization.
|
|
90
|
+
*
|
|
91
|
+
* - `MenuLevel` — the root navigation entries.
|
|
92
|
+
* - `ListLevel` — a collection's filtered rows, its query
|
|
93
|
+
* state, load state, back link, and available actions.
|
|
94
|
+
* - `BoardLevel` — a board collection's tiles (dashboard-
|
|
95
|
+
* shaped screens): label + caption + jump per tile, no
|
|
96
|
+
* query and no drill.
|
|
97
|
+
* - `DetailLevel` — a selected row's fields, back link,
|
|
98
|
+
* and available actions.
|
|
99
|
+
*/
|
|
100
|
+
export type Level = Box<"MenuLevel", Readonly<{
|
|
101
|
+
title: SoftStr;
|
|
102
|
+
entries: ReadonlyArray<MenuLink>;
|
|
103
|
+
}>> | Box<"ListLevel", Readonly<{
|
|
104
|
+
collection: SoftStr;
|
|
105
|
+
title: SoftStr;
|
|
106
|
+
back: Option<SoftStr>;
|
|
107
|
+
query: Option<QueryState>;
|
|
108
|
+
rows: ReadonlyArray<RowLink>;
|
|
109
|
+
loading: boolean;
|
|
110
|
+
error: Option<SoftStr>;
|
|
111
|
+
actions: ReadonlyArray<ActionButton>;
|
|
112
|
+
}>> | Box<"BoardLevel", Readonly<{
|
|
113
|
+
collection: SoftStr;
|
|
114
|
+
title: SoftStr;
|
|
115
|
+
back: Option<SoftStr>;
|
|
116
|
+
tiles: ReadonlyArray<Tile>;
|
|
117
|
+
loading: boolean;
|
|
118
|
+
error: Option<SoftStr>;
|
|
119
|
+
}>> | Box<"DetailLevel", Readonly<{
|
|
120
|
+
collection: SoftStr;
|
|
121
|
+
title: SoftStr;
|
|
122
|
+
back: Option<SoftStr>;
|
|
123
|
+
row: Option<Row>;
|
|
124
|
+
fields: ReadonlyArray<DetailField>;
|
|
125
|
+
actions: ReadonlyArray<ActionButton>;
|
|
126
|
+
}>>;
|
|
127
|
+
/**
|
|
128
|
+
* The full scheduled scene a renderer draws: the app
|
|
129
|
+
* title, the ordered `levels` stack (root→leaf), and any
|
|
130
|
+
* pending confirmation. The whole mode-agnostic truth a
|
|
131
|
+
* renderer needs — no re-derivation from the model.
|
|
132
|
+
*/
|
|
133
|
+
export type Scene = Readonly<{
|
|
134
|
+
title: SoftStr;
|
|
135
|
+
levels: ReadonlyArray<Level>;
|
|
136
|
+
confirm: Option<ConfirmPrompt>;
|
|
137
|
+
}>;
|
|
138
|
+
/** Constructs a `MenuLevel`. */
|
|
139
|
+
export declare const menuLevel: (title: SoftStr, entries: ReadonlyArray<MenuLink>) => Level;
|
|
140
|
+
/** Constructs a `ListLevel`. */
|
|
141
|
+
export declare const listLevel: (l: {
|
|
142
|
+
collection: SoftStr;
|
|
143
|
+
title: SoftStr;
|
|
144
|
+
back: Option<SoftStr>;
|
|
145
|
+
query: Option<QueryState>;
|
|
146
|
+
rows: ReadonlyArray<RowLink>;
|
|
147
|
+
loading: boolean;
|
|
148
|
+
error: Option<SoftStr>;
|
|
149
|
+
actions: ReadonlyArray<ActionButton>;
|
|
150
|
+
}) => Level;
|
|
151
|
+
/** Constructs a `BoardLevel`. */
|
|
152
|
+
export declare const boardLevel: (l: {
|
|
153
|
+
collection: SoftStr;
|
|
154
|
+
title: SoftStr;
|
|
155
|
+
back: Option<SoftStr>;
|
|
156
|
+
tiles: ReadonlyArray<Tile>;
|
|
157
|
+
loading: boolean;
|
|
158
|
+
error: Option<SoftStr>;
|
|
159
|
+
}) => Level;
|
|
160
|
+
/** Constructs a `DetailLevel`. */
|
|
161
|
+
export declare const detailLevel: (l: {
|
|
162
|
+
collection: SoftStr;
|
|
163
|
+
title: SoftStr;
|
|
164
|
+
back: Option<SoftStr>;
|
|
165
|
+
row: Option<Row>;
|
|
166
|
+
fields: ReadonlyArray<DetailField>;
|
|
167
|
+
actions: ReadonlyArray<ActionButton>;
|
|
168
|
+
}) => Level;
|
|
169
|
+
/** Matchers for folding a {@link Level}. */
|
|
170
|
+
export declare const menuLevel$: () => {
|
|
171
|
+
__tag: "MenuLevel";
|
|
172
|
+
type: "tag";
|
|
173
|
+
body: undefined;
|
|
174
|
+
};
|
|
175
|
+
export declare const listLevel$: () => {
|
|
176
|
+
__tag: "ListLevel";
|
|
177
|
+
type: "tag";
|
|
178
|
+
body: undefined;
|
|
179
|
+
};
|
|
180
|
+
export declare const boardLevel$: () => {
|
|
181
|
+
__tag: "BoardLevel";
|
|
182
|
+
type: "tag";
|
|
183
|
+
body: undefined;
|
|
184
|
+
};
|
|
185
|
+
export declare const detailLevel$: () => {
|
|
186
|
+
__tag: "DetailLevel";
|
|
187
|
+
type: "tag";
|
|
188
|
+
body: undefined;
|
|
189
|
+
};
|
|
190
|
+
//# sourceMappingURL=Scene.d.ts.map
|
|
@@ -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O,MAAM,UAAU,GAAI,GAAG;IAC5B,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CACxB,KAAG,KAA6B,CAAC;AAElC,kCAAkC;AAClC,eAAO,MAAM,WAAW,GAAI,GAAG;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;IACjB,MAAM,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACnC,OAAO,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CACtC,KAAG,KAA8B,CAAC;AAEnC,4CAA4C;AAC5C,eAAO,MAAM,UAAU;;;;CACC,CAAC;AACzB,eAAO,MAAM,UAAU;;;;CACC,CAAC;AACzB,eAAO,MAAM,WAAW;;;;CACC,CAAC;AAC1B,eAAO,MAAM,YAAY;;;;CACC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type SoftStr, type Box, type Icon } from "plgg";
|
|
2
|
+
/**
|
|
3
|
+
* A node in the derived view graph — the (view, typed
|
|
4
|
+
* params) core of the screen-structure model (mission
|
|
5
|
+
* decision, 2026-07-12). A `View` names WHAT is being
|
|
6
|
+
* looked at, never how it is arranged: the menu, a
|
|
7
|
+
* collection's list, or a collection row's detail. The
|
|
8
|
+
* legacy declaration vocabulary lowers onto this core
|
|
9
|
+
* (collection → list + detail views, `child` → the
|
|
10
|
+
* navigation between them); the plgg-ir Domain Manifest
|
|
11
|
+
* later lowers onto the same core.
|
|
12
|
+
*
|
|
13
|
+
* A `View` is an ADDRESS, not a resolution: it may name a
|
|
14
|
+
* collection the declaration cannot resolve (a dangling
|
|
15
|
+
* root or child), which downstream folds degrade to an
|
|
16
|
+
* empty level — the same totality URLs get.
|
|
17
|
+
*/
|
|
18
|
+
export type View = Icon<"MenuView"> | Box<"ListView", SoftStr> | Box<"DetailView", SoftStr>;
|
|
19
|
+
/** The menu view (no collection opened). */
|
|
20
|
+
export declare const menuView: () => View;
|
|
21
|
+
/** A collection's list view. */
|
|
22
|
+
export declare const listView: (collection: SoftStr) => View;
|
|
23
|
+
/** A collection row's detail view. */
|
|
24
|
+
export declare const detailView: (collection: SoftStr) => View;
|
|
25
|
+
/** Matchers for folding a {@link View}. */
|
|
26
|
+
export declare const menuView$: () => {
|
|
27
|
+
__tag: "MenuView";
|
|
28
|
+
type: "tag";
|
|
29
|
+
body: undefined;
|
|
30
|
+
};
|
|
31
|
+
export declare const listView$: () => {
|
|
32
|
+
__tag: "ListView";
|
|
33
|
+
type: "tag";
|
|
34
|
+
body: undefined;
|
|
35
|
+
};
|
|
36
|
+
export declare const detailView$: () => {
|
|
37
|
+
__tag: "DetailView";
|
|
38
|
+
type: "tag";
|
|
39
|
+
body: undefined;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* One typed parameter binding addressing a view: the
|
|
43
|
+
* collection a selection belongs to and the selected row
|
|
44
|
+
* id. A navigation target is a `View` plus the bindings
|
|
45
|
+
* of every ancestor selection on the way to it (and, for
|
|
46
|
+
* a detail view, the viewed row's own binding last).
|
|
47
|
+
*/
|
|
48
|
+
export type Binding = Readonly<{
|
|
49
|
+
collection: SoftStr;
|
|
50
|
+
id: SoftStr;
|
|
51
|
+
}>;
|
|
52
|
+
/** Constructs a {@link Binding}. */
|
|
53
|
+
export declare const binding: (collection: SoftStr, id: SoftStr) => Binding;
|
|
54
|
+
//# sourceMappingURL=View.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../src/Schedule/model/View.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,IAAI,EAIV,MAAM,MAAM,CAAC;AAEd;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,IAAI,GACZ,IAAI,CAAC,UAAU,CAAC,GAChB,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,GACxB,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAE/B,4CAA4C;AAC5C,eAAO,MAAM,QAAQ,QAAO,IACV,CAAC;AAEnB,gCAAgC;AAChC,eAAO,MAAM,QAAQ,GACnB,YAAY,OAAO,KAClB,IAAmC,CAAC;AAEvC,sCAAsC;AACtC,eAAO,MAAM,UAAU,GACrB,YAAY,OAAO,KAClB,IAAqC,CAAC;AAEzC,2CAA2C;AAC3C,eAAO,MAAM,SAAS;;;;CACC,CAAC;AACxB,eAAO,MAAM,SAAS;;;;CACC,CAAC;AACxB,eAAO,MAAM,WAAW;;;;CACC,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,EAAE,EAAE,OAAO,CAAC;CACb,CAAC,CAAC;AAEH,oCAAoC;AACpC,eAAO,MAAM,OAAO,GAClB,YAAY,OAAO,EACnB,IAAI,OAAO,KACV,OAA+B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type SoftStr, type Option } from "plgg";
|
|
2
|
+
import { type Collection } from "../../Declare/model/Collection";
|
|
3
|
+
import { type Declaration } from "../../Declare/model/Declaration";
|
|
4
|
+
/**
|
|
5
|
+
* The ordered chain of collections a root opens, by
|
|
6
|
+
* following each collection's `child`: `[root, child,
|
|
7
|
+
* grandchild, …]`. TOTAL — a `None` root or a dangling
|
|
8
|
+
* child id ends the chain rather than throwing, so an
|
|
9
|
+
* unknown reference degrades to a shorter flow, not a
|
|
10
|
+
* crash. The scheduler and the scene share this to map a
|
|
11
|
+
* flow depth (a path index) to its collection.
|
|
12
|
+
*/
|
|
13
|
+
export declare const chainCollections: (declaration: Declaration, root: Option<SoftStr>) => ReadonlyArray<Collection>;
|
|
14
|
+
/** The first `n` selection ids — a collection's ancestor context. */
|
|
15
|
+
export declare const ancestorPath: (path: ReadonlyArray<SoftStr>, n: number) => ReadonlyArray<SoftStr>;
|
|
16
|
+
//# sourceMappingURL=chain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/Schedule/usecase/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAa,WAAW,EACxB,MAAM,MAAM,CAAC,OAAO,CAAC,KACpB,aAAa,CAAC,UAAU,CAIlB,CAAC;AAwBV,qEAAqE;AACrE,eAAO,MAAM,YAAY,GACvB,MAAM,aAAa,CAAC,OAAO,CAAC,EAC5B,GAAG,MAAM,KACR,aAAa,CAAC,OAAO,CAAqB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type SoftStr, type Option } from "plgg";
|
|
2
|
+
import { type Url } from "plgg-view/client";
|
|
3
|
+
import { type Model } from "../model/Model";
|
|
4
|
+
/**
|
|
5
|
+
* The URL-reflected slice of a scheduled model: the
|
|
6
|
+
* chosen root collection, the drill-down path of selected
|
|
7
|
+
* ids, the active keyword text, and the chosen values of
|
|
8
|
+
* the declared query choices (typed query fields, point
|
|
9
|
+
* 4). The derived codec's currency — `parseUrl` yields
|
|
10
|
+
* one, `toUrl` serializes one, and they round-trip.
|
|
11
|
+
* `choices` is optional so a keyword-only slice literal
|
|
12
|
+
* keeps compiling; absent means none.
|
|
13
|
+
*/
|
|
14
|
+
export type UrlSlice = Readonly<{
|
|
15
|
+
root: Option<SoftStr>;
|
|
16
|
+
path: ReadonlyArray<SoftStr>;
|
|
17
|
+
query: SoftStr;
|
|
18
|
+
choices?: ReadonlyArray<readonly [SoftStr, SoftStr]>;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Folds a {@link Url} into a {@link UrlSlice}. TOTAL: any
|
|
22
|
+
* string yields a valid slice, never throws — a URL is
|
|
23
|
+
* user input (the oracle's standard). Missing `c`/`p`/`q`
|
|
24
|
+
* are `None`/`[]`/`""`. Path segments are `decodeURI`d,
|
|
25
|
+
* so the codec is the exact inverse of {@link toUrl}.
|
|
26
|
+
*/
|
|
27
|
+
export declare const parseUrl: (url: Url) => UrlSlice;
|
|
28
|
+
/**
|
|
29
|
+
* The model→URL projection (inverse of
|
|
30
|
+
* {@link parseUrl}). Serializes only the URL-reflected
|
|
31
|
+
* slice against the model's mount `base`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const toUrl: (model: Model) => Url;
|
|
34
|
+
/**
|
|
35
|
+
* The href string (`base` + search) a link should point
|
|
36
|
+
* at for a target slice — the renderer seam's currency
|
|
37
|
+
* for drill/truncate navigation (every arrangement is a
|
|
38
|
+
* shareable address, and leaving a level is a link, not a
|
|
39
|
+
* mode switch). Uses the same `buildSearch`, so a link's
|
|
40
|
+
* href and the reflected URL for the same slice are
|
|
41
|
+
* byte-equal.
|
|
42
|
+
*/
|
|
43
|
+
export declare const hrefFor: (base: SoftStr, slice: UrlSlice) => SoftStr;
|
|
44
|
+
//# sourceMappingURL=codec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec.d.ts","sourceRoot":"","sources":["../../../src/Schedule/usecase/codec.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAKZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,GAAG,EAET,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAE5D;;;;;;;;;GASG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACtB,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,aAAa,CACrB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAC5B,CAAC;CACH,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,GAAG,KAAG,QA4BnC,CAAC;AAqDF;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,KAAK,KAAG,GASlC,CAAC;AAEJ;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,GAClB,MAAM,OAAO,EACb,OAAO,QAAQ,KACd,OAAyC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type SoftStr, type Option } from "plgg";
|
|
2
|
+
import { type Declaration } from "../../Declare/model/Declaration";
|
|
3
|
+
import { type View, type Binding } from "../model/View";
|
|
4
|
+
import { type UrlSlice } from "./codec";
|
|
5
|
+
/**
|
|
6
|
+
* The legacy lowering — where the declaration vocabulary
|
|
7
|
+
* meets the (view, typed params) core (mission decision,
|
|
8
|
+
* 2026-07-12). The stored model keeps the legacy slice
|
|
9
|
+
* encoding (`root`/`path`/`query`), and this module is
|
|
10
|
+
* the total bridge both ways: {@link focusedView} derives
|
|
11
|
+
* WHICH view a slice addresses (replacing the
|
|
12
|
+
* "`path.length` is the screen" folklore), and
|
|
13
|
+
* {@link sliceOf} projects a navigation target back into
|
|
14
|
+
* the slice the codec and scheduler already speak. Both
|
|
15
|
+
* are TOTAL: dangling roots, dangling children, and
|
|
16
|
+
* overlong paths degrade to addressable-but-unresolvable
|
|
17
|
+
* views, never a throw — the same standard URLs get.
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* The view a `root`/`path` slice addresses, derived
|
|
21
|
+
* against the declaration's drill chain:
|
|
22
|
+
*
|
|
23
|
+
* - no root — the menu;
|
|
24
|
+
* - fewer selections than the chain — the list the next
|
|
25
|
+
* selection would come from;
|
|
26
|
+
* - the whole chain selected — the last collection's
|
|
27
|
+
* detail (childless) or its declared-but-unresolved
|
|
28
|
+
* child list (dangling `child`);
|
|
29
|
+
* - junk beyond the chain — the deepest addressable list
|
|
30
|
+
* (parity with the scene's clamped active level).
|
|
31
|
+
*/
|
|
32
|
+
export declare const focusedView: (declaration: Declaration) => (root: Option<SoftStr>, path: ReadonlyArray<SoftStr>) => View;
|
|
33
|
+
/**
|
|
34
|
+
* Projects a navigation target — a {@link View} plus its
|
|
35
|
+
* ancestor {@link Binding}s — into the slice encoding the
|
|
36
|
+
* codec serializes and the scheduler stores. Declaration-
|
|
37
|
+
* free and total: the root is the first binding's
|
|
38
|
+
* collection (or the target's own collection when no
|
|
39
|
+
* bindings address it), the path is the bindings' row
|
|
40
|
+
* ids, and a navigation always resets the query. A target
|
|
41
|
+
* whose bindings do not add up degrades to the slice they
|
|
42
|
+
* spell, exactly as a hand-typed URL would.
|
|
43
|
+
*/
|
|
44
|
+
export declare const sliceOf: (to: View, bindings: ReadonlyArray<Binding>) => UrlSlice;
|
|
45
|
+
//# sourceMappingURL=lower.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lower.d.ts","sourceRoot":"","sources":["../../../src/Schedule/usecase/lower.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAOZ,MAAM,MAAM,CAAC;AAEd,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EACL,KAAK,IAAI,EACT,KAAK,OAAO,EAOb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAGjE;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,GACrB,aAAa,WAAW,MAEvB,MAAM,MAAM,CAAC,OAAO,CAAC,EACrB,MAAM,aAAa,CAAC,OAAO,CAAC,KAC3B,IASM,CAAC;AAuCZ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,GAClB,IAAI,IAAI,EACR,UAAU,aAAa,CAAC,OAAO,CAAC,KAC/B,QAoBA,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Option } from "plgg";
|
|
2
|
+
import { type Actor } from "../../Declare/model/Adapter";
|
|
3
|
+
import { type Declaration } from "../../Declare/model/Declaration";
|
|
4
|
+
import { type Model } from "../model/Model";
|
|
5
|
+
import { type Scene } from "../model/Scene";
|
|
6
|
+
/**
|
|
7
|
+
* Derives the {@link Scene} — the typed, mode-agnostic
|
|
8
|
+
* renderer seam — from a model. The `MenuLevel`, then a
|
|
9
|
+
* `ListLevel` per revealed flow depth (root list plus
|
|
10
|
+
* every drilled-into child list), then a `DetailLevel`
|
|
11
|
+
* when the deepest childless selection shows an item, and
|
|
12
|
+
* any pending confirmation. Renderers 10/11 draw this
|
|
13
|
+
* without re-deriving from the model or the declaration.
|
|
14
|
+
*/
|
|
15
|
+
export declare const makeScene: (declaration: Declaration, actor: Option<Actor>) => (model: Model) => Scene;
|
|
16
|
+
//# sourceMappingURL=scene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene.d.ts","sourceRoot":"","sources":["../../../src/Schedule/usecase/scene.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,MAAM,EAOZ,MAAM,MAAM,CAAC;AAYd,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAQ7D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EACL,KAAK,KAAK,EASX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,KAAK,KAAK,EAWX,MAAM,gCAAgC,CAAC;AAgbxC;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAElB,aAAa,WAAW,EACxB,OAAO,MAAM,CAAC,KAAK,CAAC,MAErB,OAAO,KAAK,KAAG,KA8Ff,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type SoftStr } from "plgg";
|
|
2
|
+
import { type Cmd, type Url } from "plgg-view/client";
|
|
3
|
+
import { type Row } from "../../Declare/model/Row";
|
|
4
|
+
import { type Declaration } from "../../Declare/model/Declaration";
|
|
5
|
+
import { type Registry, type Actor } from "../../Declare/model/Adapter";
|
|
6
|
+
import { type Diagnostic } from "../../Declare/usecase/reconcile";
|
|
7
|
+
import { type Model } from "../model/Model";
|
|
8
|
+
import { type SchedulerMsg } from "../model/Msg";
|
|
9
|
+
import { type Scene } from "../model/Scene";
|
|
10
|
+
/**
|
|
11
|
+
* The derived TEA program of a declaration — everything
|
|
12
|
+
* plgg-view's `Application<Model, SchedulerMsg>` needs
|
|
13
|
+
* except `view`, plus a typed `scene` projector renderers
|
|
14
|
+
* consume. Complete a runnable program by supplying a
|
|
15
|
+
* renderer `r: (Scene) => Html<SchedulerMsg>`:
|
|
16
|
+
* `{ ...scheduled, view: (m) => r(scheduled.scene(m)) }`.
|
|
17
|
+
*/
|
|
18
|
+
export type Scheduled = Readonly<{
|
|
19
|
+
init: (url: Url) => readonly [Model, Cmd<SchedulerMsg>];
|
|
20
|
+
update: (msg: SchedulerMsg, model: Model) => readonly [Model, Cmd<SchedulerMsg>];
|
|
21
|
+
onUrlChange: (url: Url) => SchedulerMsg;
|
|
22
|
+
toUrl: (model: Model) => Url;
|
|
23
|
+
historyMode: (prev: Model, next: Model) => "push" | "replace" | "none";
|
|
24
|
+
scene: (model: Model) => Scene;
|
|
25
|
+
/**
|
|
26
|
+
* Refresh a `Dynamic` collection's slot from rows the
|
|
27
|
+
* CONSUMER's Model owns — pure `(model, id, rows) →
|
|
28
|
+
* model`. A consumer holds its records in its own Model
|
|
29
|
+
* and calls this (at init, and after a create/update/
|
|
30
|
+
* delete) to project them into the scheduler slot; the
|
|
31
|
+
* `Dynamic` source then PRESERVES that slot across
|
|
32
|
+
* navigation. This is the seam that lets a consumer's
|
|
33
|
+
* `update` stay pure instead of a module-global store
|
|
34
|
+
* (ticket 20260708192518).
|
|
35
|
+
*/
|
|
36
|
+
withRows: (model: Model, collectionId: SoftStr, rows: ReadonlyArray<Row>) => Model;
|
|
37
|
+
/**
|
|
38
|
+
* The startup reconciliation findings for this program's
|
|
39
|
+
* adapter bindings against the supplied registry (point
|
|
40
|
+
* 7): unknown/absent-default adapter ERRORS and unused
|
|
41
|
+
* registration WARNINGS. Empty for a self-contained
|
|
42
|
+
* declaration. The host inspects these before the first
|
|
43
|
+
* render — the binding check the naming decision requires.
|
|
44
|
+
*/
|
|
45
|
+
diagnostics: ReadonlyArray<Diagnostic>;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* The host bindings a program is derived against (point 7),
|
|
49
|
+
* all optional: the adapter registry `Adapter` sources read
|
|
50
|
+
* through, and the actor the authorize gate evaluates.
|
|
51
|
+
* Omitting them yields the legacy self-contained program.
|
|
52
|
+
*/
|
|
53
|
+
export type Host = Readonly<{
|
|
54
|
+
adapters?: Registry;
|
|
55
|
+
actor?: Actor;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Derives the scheduled program from a declaration
|
|
59
|
+
* (design ticket 09). Pure and mode-agnostic: `update`
|
|
60
|
+
* executes nothing (async reads and action verbs are
|
|
61
|
+
* returned as `Cmd` data), the URL codec is total both
|
|
62
|
+
* ways, and `scene` is the only renderer seam — no
|
|
63
|
+
* declaration type or derived value names a column, pane,
|
|
64
|
+
* drawer, or screen (D10).
|
|
65
|
+
*
|
|
66
|
+
* `historyMode` marks a real navigation (`root`/`path`
|
|
67
|
+
* change) as `push` so back/forward traverses it, and a
|
|
68
|
+
* query-only change as `replace` (typing does not spam
|
|
69
|
+
* history) — the nuqs discipline the oracle used.
|
|
70
|
+
*/
|
|
71
|
+
export declare const schedule: (declaration: Declaration, host?: Host) => Scheduled;
|
|
72
|
+
//# sourceMappingURL=schedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.d.ts","sourceRoot":"","sources":["../../../src/Schedule/usecase/schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EAIb,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,GAAG,EACR,KAAK,GAAG,EACT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,KAAK,EACX,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,KAAK,KAAK,EAGX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAY5D;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC;IAC/B,IAAI,EAAE,CACJ,GAAG,EAAE,GAAG,KACL,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;IACzC,MAAM,EAAE,CACN,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,KAAK,KACT,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;IACzC,WAAW,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,YAAY,CAAC;IACxC,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAC;IAC7B,WAAW,EAAE,CACX,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,KAAK,KACR,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IACjC,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC;IAC/B;;;;;;;;;;OAUG;IACH,QAAQ,EAAE,CACR,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,OAAO,EACrB,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,KACrB,KAAK,CAAC;IACX;;;;;;;OAOG;IACH,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;CACxC,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG,QAAQ,CAAC;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC,CAAC;AAMH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,GACnB,aAAa,WAAW,EACxB,OAAM,IAAS,KACd,SA2CF,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type SoftStr, type Option } from "plgg";
|
|
2
|
+
import { type Cmd } from "plgg-view/client";
|
|
3
|
+
import { type Actor, type Registry } from "../../Declare/model/Adapter";
|
|
4
|
+
import { type Declaration } from "../../Declare/model/Declaration";
|
|
5
|
+
import { type Model } from "../model/Model";
|
|
6
|
+
import { type SchedulerMsg } from "../model/Msg";
|
|
7
|
+
import { type UrlSlice } from "./codec";
|
|
8
|
+
type Step = readonly [Model, Cmd<SchedulerMsg>];
|
|
9
|
+
/**
|
|
10
|
+
* The host-bound engine context threaded through a derived
|
|
11
|
+
* program: the adapter {@link Registry} an `Adapter` source
|
|
12
|
+
* reads through, and the host-supplied {@link Actor} (if
|
|
13
|
+
* any) the authorize gate evaluates. Empty/`None` for a
|
|
14
|
+
* self-contained declaration (every legacy program), so the
|
|
15
|
+
* option is additive.
|
|
16
|
+
*/
|
|
17
|
+
export type EngineOptions = Readonly<{
|
|
18
|
+
registry: Registry;
|
|
19
|
+
actor: Option<Actor>;
|
|
20
|
+
}>;
|
|
21
|
+
/** The no-host engine context (legacy default). */
|
|
22
|
+
export declare const noEngine: EngineOptions;
|
|
23
|
+
/**
|
|
24
|
+
* Derives the pure, pair-shaped `update` from a
|
|
25
|
+
* declaration. Exhaustive `match` over every `Msg`;
|
|
26
|
+
* touches no `window`/`document` and executes no effect —
|
|
27
|
+
* async reads and action verbs are RETURNED as `Cmd`
|
|
28
|
+
* data. Navigation messages set the `root`/`path`/`query`
|
|
29
|
+
* slice then re-read the revealed chain.
|
|
30
|
+
*/
|
|
31
|
+
export declare const makeUpdate: (declaration: Declaration, options: EngineOptions) => (msg: SchedulerMsg, model: Model) => Step;
|
|
32
|
+
/**
|
|
33
|
+
* The initial `[Model, Cmd]` for an entry URL — the empty
|
|
34
|
+
* model seeded from the URL's slice, then the revealed
|
|
35
|
+
* chain read. `init` for the derived program.
|
|
36
|
+
*/
|
|
37
|
+
export declare const makeInit: (declaration: Declaration, options: EngineOptions) => (base: SoftStr) => (slice: UrlSlice) => Step;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/Schedule/usecase/update.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EASZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,GAAG,EAIT,MAAM,kBAAkB,CAAC;AAa1B,OAAO,EACL,KAAK,KAAK,EAEV,KAAK,QAAQ,EAGd,MAAM,iCAAiC,CAAC;AAWzC,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EACL,KAAK,KAAK,EAOX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,KAAK,YAAY,EAclB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,kCAAkC,CAAC;AAO1C,KAAK,IAAI,GAAG,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;AAEhD;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CACtB,CAAC,CAAC;AAEH,mDAAmD;AACnD,eAAO,MAAM,QAAQ,EAAE,aAGtB,CAAC;AA2SF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GAEnB,aAAa,WAAW,EACxB,SAAS,aAAa,MAEvB,KAAK,YAAY,EAAE,OAAO,KAAK,KAAG,IA2IhC,CAAC;AAEN;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAEjB,aAAa,WAAW,EACxB,SAAS,aAAa,MAEvB,MAAM,OAAO,MACb,OAAO,QAAQ,KAAG,IAIhB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The plggmatic Style module: the framework's typed
|
|
3
|
+
* color-scheme seed. An explicit named barrel (house
|
|
4
|
+
* style) — it grows one recorded token/utility at a time
|
|
5
|
+
* as components demand them, never as a pre-built
|
|
6
|
+
* catalog. Surfaced to consumers through the
|
|
7
|
+
* `plggmatic/style` subpath (see `src/styleEntry.ts`),
|
|
8
|
+
* where these color atoms shadow plgg-view's literal-hex
|
|
9
|
+
* ones.
|
|
10
|
+
*/
|
|
11
|
+
export { type Color, type SemanticRole, type Neutral, colors, neutrals, semanticRoles, variants, colorVar, } from "./model/token";
|
|
12
|
+
export { type Theme, defaultTheme, } from "./model/theme";
|
|
13
|
+
export { type Scheme, schemes, } from "./model/scheme";
|
|
14
|
+
export { type TypeRole, type FontWeight, type TypeScale, type CompactType, typeRoles, fontWeights, regular, medium, semibold, typeScale, sansFontStack, } from "./model/typography";
|
|
15
|
+
export { type Breakpoint, breakpoints, breakpointPx, minWidth, maxWidth, } from "./model/breakpoint";
|
|
16
|
+
export { type Metric, metrics, metricValue, metricVar, } from "./model/metric";
|
|
17
|
+
export { type ZBand, zBands, zValue, } from "./model/zIndex";
|
|
18
|
+
export { type HexColor, asHexColor, } from "./model/hexColor";
|
|
19
|
+
export { type Palette, defaultPalette, asPalette, paletteHex, colorHex, hex, } from "./model/palette";
|
|
20
|
+
export { appearanceStorageKey, decideScheme, } from "./model/appearance";
|
|
21
|
+
export { type SchemeRoot, type SchemeStorage, appearanceInitScript, injectAppearanceScript, applyScheme, } from "./usecase/appearanceScript";
|
|
22
|
+
export { contrastRatio } from "./usecase/contrast";
|
|
23
|
+
export { bg, color, textColor, border, borderColor, outline, basis, fluid, lineHeight, weight, zIndex, typeStyle, measure, } from "./usecase/utilities";
|
|
24
|
+
export { schemeCss, schemeCssOf, } from "./usecase/schemeCss";
|
|
25
|
+
export { chromeCss } from "./usecase/chromeCss";
|
|
26
|
+
export { metricCss } from "./usecase/metricCss";
|
|
27
|
+
export { reducedMotionCss } from "./usecase/reducedMotion";
|
|
28
|
+
export { type SyntaxKind, syntaxKinds, syntaxPalette, syntaxHex, syntaxVar, } from "./model/syntax";
|
|
29
|
+
export { syntaxCss } from "./usecase/syntaxCss";
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Style/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,KAAK,KAAK,EAOV,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,MAAM,EAIN,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,GACT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EACL,KAAK,KAAK,EACV,YAAY,GACb,MAAM,6BAA6B,CAAC;AACrC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EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EACL,KAAK,UAAU,EACf,WAAW,EACX,aAAa,EACb,SAAS,EACT,SAAS,GACV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Option, type SoftStr } from "plgg";
|
|
2
|
+
import { type Scheme } from "./scheme";
|
|
3
|
+
/**
|
|
4
|
+
* The localStorage key the visitor's scheme choice is
|
|
5
|
+
* persisted under. Preserved verbatim per **D16**: the key
|
|
6
|
+
* predates plggmatic (born in plggpress's theme,
|
|
7
|
+
* `20260630`), so keeping it means existing visitors keep
|
|
8
|
+
* their saved choice across the plggpress→plggmatic theme
|
|
9
|
+
* cutover. It deliberately does NOT follow the `--pm-*`
|
|
10
|
+
* rename — only the CSS variables were renamed, not the
|
|
11
|
+
* storage contract.
|
|
12
|
+
*/
|
|
13
|
+
export declare const appearanceStorageKey = "vp-appearance";
|
|
14
|
+
/**
|
|
15
|
+
* The pure scheme decision, kept DOM-free so the whole
|
|
16
|
+
* table is spec-coverable without a browser: a stored
|
|
17
|
+
* `"dark"`/`"light"` wins; anything else (absent, or an
|
|
18
|
+
* unrecognized value) falls back to the OS
|
|
19
|
+
* `prefers-color-scheme`. This is exactly plggpress's
|
|
20
|
+
* `HEAD_SCRIPT` decision order.
|
|
21
|
+
*/
|
|
22
|
+
export declare const decideScheme: (stored: Option<SoftStr>, prefersDark: boolean) => Scheme;
|
|
23
|
+
//# sourceMappingURL=appearance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../src/Style/model/appearance.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,OAAO,EAEb,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAE3D;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,kBAChB,CAAC;AAElB;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACvB,QAAQ,MAAM,CAAC,OAAO,CAAC,EACvB,aAAa,OAAO,KACnB,MAWQ,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type SoftStr } from "plgg";
|
|
2
|
+
/**
|
|
3
|
+
* The responsive breakpoints plggmatic names. A closed
|
|
4
|
+
* union: `sm` (the phone column — the oracle's
|
|
5
|
+
* `max-width:639px` heading block), `snap` (the
|
|
6
|
+
* multi-column example's horizontal-snap boundary,
|
|
7
|
+
* `min-width:900px`), and `lg` (the docs app-shell
|
|
8
|
+
* boundary, `min-width:1024px`).
|
|
9
|
+
*
|
|
10
|
+
* **Two shells, two boundaries — do NOT unify.** `lg`
|
|
11
|
+
* gates the docs sidebar shell; `snap` gates the
|
|
12
|
+
* example's column strip. They are different layouts with
|
|
13
|
+
* different collapse physics; a merge only becomes
|
|
14
|
+
* correct if the D10 scheduler makes one derivable from
|
|
15
|
+
* the other.
|
|
16
|
+
*/
|
|
17
|
+
export type Breakpoint = "sm" | "snap" | "lg";
|
|
18
|
+
export declare const breakpoints: ReadonlyArray<Breakpoint>;
|
|
19
|
+
/** A breakpoint's boundary width in CSS pixels. */
|
|
20
|
+
export declare const breakpointPx: (b: Breakpoint) => number;
|
|
21
|
+
/**
|
|
22
|
+
* A `min-width` media condition AT the breakpoint, e.g.
|
|
23
|
+
* `(min-width:1024px)`. Consumed as
|
|
24
|
+
* `@media ${minWidth("lg")}{…}`.
|
|
25
|
+
*
|
|
26
|
+
* **Breakpoints are TS constants, never `--pm-*` custom
|
|
27
|
+
* properties.** A `@media` query cannot resolve `var()`,
|
|
28
|
+
* so these boundaries are build-time values baked into
|
|
29
|
+
* the CSS-emitting code — a future contributor "cleaning
|
|
30
|
+
* up" breakpoints into custom properties would silently
|
|
31
|
+
* break every media query. This is a hard constraint, not
|
|
32
|
+
* a style choice.
|
|
33
|
+
*/
|
|
34
|
+
export declare const minWidth: (b: Breakpoint) => SoftStr;
|
|
35
|
+
/**
|
|
36
|
+
* A `max-width` media condition one pixel BELOW the
|
|
37
|
+
* breakpoint (`sm` → `(max-width:639px)`) — the exact
|
|
38
|
+
* complement of {@link minWidth}, so the pair never
|
|
39
|
+
* overlaps on the boundary pixel. Matches the oracle and
|
|
40
|
+
* the example verbatim (`639`/`899`/`1023`).
|
|
41
|
+
*/
|
|
42
|
+
export declare const maxWidth: (b: Breakpoint) => SoftStr;
|
|
43
|
+
//# sourceMappingURL=breakpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../../src/Style/model/breakpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;AAE9C,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,UAAU,CAC5B,CAAC;AASvB,mDAAmD;AACnD,eAAO,MAAM,YAAY,GACvB,GAAG,UAAU,KACZ,MAAkB,CAAC;AAEtB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,GACnB,GAAG,UAAU,KACZ,OAAsC,CAAC;AAE1C;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GACnB,GAAG,UAAU,KACZ,OAA0C,CAAC"}
|