plggmatic 0.2.1 → 0.3.0
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/README.md +37 -0
- 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 +30 -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/declaredForm.d.ts +89 -0
- package/dist/Component/usecase/declaredForm.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/sidebarNav.d.ts +77 -0
- package/dist/Component/usecase/sidebarNav.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 +75 -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 +21 -0
- package/dist/Layout/index.d.ts.map +1 -0
- package/dist/Layout/model/geometry.d.ts +97 -0
- package/dist/Layout/model/geometry.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/model/reveal.d.ts +26 -0
- package/dist/Layout/model/reveal.d.ts.map +1 -0
- package/dist/Layout/usecase/combinators.d.ts +78 -0
- package/dist/Layout/usecase/combinators.d.ts.map +1 -0
- package/dist/Layout/usecase/preference.d.ts +27 -0
- package/dist/Layout/usecase/preference.d.ts.map +1 -0
- package/dist/Layout/usecase/revealColumn.d.ts +39 -0
- package/dist/Layout/usecase/revealColumn.d.ts.map +1 -0
- package/dist/Layout/usecase/workspace.d.ts +58 -0
- package/dist/Layout/usecase/workspace.d.ts.map +1 -0
- package/dist/Meta/model/classHooks.d.ts +141 -0
- package/dist/Meta/model/classHooks.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/Navigate/index.d.ts +19 -0
- package/dist/Navigate/index.d.ts.map +1 -0
- package/dist/Navigate/model/Composition.d.ts +50 -0
- package/dist/Navigate/model/Composition.d.ts.map +1 -0
- package/dist/Navigate/model/Trail.d.ts +84 -0
- package/dist/Navigate/model/Trail.d.ts.map +1 -0
- package/dist/Navigate/model/marker.d.ts +44 -0
- package/dist/Navigate/model/marker.d.ts.map +1 -0
- package/dist/Navigate/usecase/compositionUrl.d.ts +63 -0
- package/dist/Navigate/usecase/compositionUrl.d.ts.map +1 -0
- package/dist/Navigate/usecase/navigationScript.d.ts +16 -0
- package/dist/Navigate/usecase/navigationScript.d.ts.map +1 -0
- package/dist/Navigate/usecase/trailUrl.d.ts +61 -0
- package/dist/Navigate/usecase/trailUrl.d.ts.map +1 -0
- package/dist/Render/index.d.ts +18 -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/advanceColumns.d.ts +41 -0
- package/dist/Render/usecase/advanceColumns.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 +34 -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/componentSlot.d.ts +35 -0
- package/dist/Style/model/componentSlot.d.ts.map +1 -0
- package/dist/Style/model/hexColor.d.ts +26 -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 +68 -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/runwayCss.d.ts +50 -0
- package/dist/Style/usecase/runwayCss.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/slotCss.d.ts +73 -0
- package/dist/Style/usecase/slotCss.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/Style/usecase/workspaceCss.d.ts +48 -0
- package/dist/Style/usecase/workspaceCss.d.ts.map +1 -0
- package/dist/brand.d.ts +29 -0
- package/dist/brand.d.ts.map +1 -0
- package/dist/columnsEntry.d.ts +27 -0
- package/dist/columnsEntry.d.ts.map +1 -0
- package/dist/columnsEntry.es.js +452 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +6022 -0
- package/dist/styleEntry.d.ts +34 -0
- package/dist/styleEntry.d.ts.map +1 -0
- package/dist/styleEntry.es.js +1615 -0
- package/package.json +15 -8
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Html } from "plgg-view";
|
|
2
|
+
import { type SchedulerMsg } from "../../Schedule/model/Msg";
|
|
3
|
+
import { type Scene } from "../../Schedule/model/Scene";
|
|
4
|
+
/**
|
|
5
|
+
* The SINGLE-COLUMN mode renderer (D10) — one operation
|
|
6
|
+
* per screen. A pure projection of the SAME scheduled
|
|
7
|
+
* {@link Scene} the multi-column renderer draws: the
|
|
8
|
+
* current screen is derived (the deepest level), the menu
|
|
9
|
+
* screen is a `navigation` landmark and every other screen
|
|
10
|
+
* a single `main`, and each non-root screen shows a
|
|
11
|
+
* labelled back affordance (a truncating link — the
|
|
12
|
+
* runtime turns the click into the scheduler's navigation,
|
|
13
|
+
* and browser Back pops one screen because traversal
|
|
14
|
+
* pushes history). Shares the interactive pieces with the
|
|
15
|
+
* multi-column renderer through {@link parts}, so the two
|
|
16
|
+
* modes stay in parity. Holds no state, touches no
|
|
17
|
+
* `window`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const singleColumn: (scene: Scene) => Html<SchedulerMsg, "div">;
|
|
20
|
+
//# sourceMappingURL=singleColumn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"singleColumn.d.ts","sourceRoot":"","sources":["../../../src/Render/usecase/singleColumn.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,IAAI,EAKV,MAAM,WAAW,CAAC;AAOnB,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EACL,KAAK,KAAK,EAOX,MAAM,gCAAgC,CAAC;AAuBxC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,UAChB,KAAK,KACX,IAAI,CAAC,YAAY,EAAE,KAAK,CAmBxB,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { type SoftStr, type Box, type Icon, type Option } from "plgg";
|
|
2
|
+
import { type Row } from "../../Declare/model/Row";
|
|
3
|
+
import { type Action } from "../../Declare/model/Action";
|
|
4
|
+
/**
|
|
5
|
+
* A collection's load state — the resource slot. `Idle`
|
|
6
|
+
* before a read, `Loading` while a `Cmd` is in flight,
|
|
7
|
+
* `Loaded` with rows, `Failed` with a message. A closed
|
|
8
|
+
* union so a renderer must acknowledge every state (no
|
|
9
|
+
* bare "maybe null rows").
|
|
10
|
+
*/
|
|
11
|
+
export type Slot = Icon<"Idle"> | Icon<"Loading"> | Box<"Loaded", ReadonlyArray<Row>> | Box<"Failed", SoftStr>;
|
|
12
|
+
/** The idle slot (never read). */
|
|
13
|
+
export declare const idle: () => Slot;
|
|
14
|
+
/** The loading slot (a read is in flight). */
|
|
15
|
+
export declare const loading: () => Slot;
|
|
16
|
+
/** A loaded slot carrying rows. */
|
|
17
|
+
export declare const loadedSlot: (rows: ReadonlyArray<Row>) => Slot;
|
|
18
|
+
/** A failed slot carrying a message. */
|
|
19
|
+
export declare const failedSlot: (error: SoftStr) => Slot;
|
|
20
|
+
/** Matchers for folding a {@link Slot}. */
|
|
21
|
+
export declare const idle$: () => {
|
|
22
|
+
__tag: "Idle";
|
|
23
|
+
type: "tag";
|
|
24
|
+
body: undefined;
|
|
25
|
+
};
|
|
26
|
+
export declare const loading$: () => {
|
|
27
|
+
__tag: "Loading";
|
|
28
|
+
type: "tag";
|
|
29
|
+
body: undefined;
|
|
30
|
+
};
|
|
31
|
+
export declare const loadedSlot$: () => {
|
|
32
|
+
__tag: "Loaded";
|
|
33
|
+
type: "tag";
|
|
34
|
+
body: undefined;
|
|
35
|
+
};
|
|
36
|
+
export declare const failedSlot$: () => {
|
|
37
|
+
__tag: "Failed";
|
|
38
|
+
type: "tag";
|
|
39
|
+
body: undefined;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* A destructive action parked awaiting confirmation — the
|
|
43
|
+
* scheduler state that makes confirm/cancel modeless and
|
|
44
|
+
* data-driven (not renderer folklore). Carries which
|
|
45
|
+
* collection, the full {@link Action} (run on confirm),
|
|
46
|
+
* the target row id (`None` for a create), and the
|
|
47
|
+
* `prompt`/`destructive` copied off the action's
|
|
48
|
+
* `Confirm` at park time — so the scene reads them
|
|
49
|
+
* directly, with no match over a branch that can never
|
|
50
|
+
* be parked (only a `Confirm` action ever parks).
|
|
51
|
+
*/
|
|
52
|
+
export type PendingAction = Readonly<{
|
|
53
|
+
collection: SoftStr;
|
|
54
|
+
action: Action;
|
|
55
|
+
target: Option<SoftStr>;
|
|
56
|
+
prompt: SoftStr;
|
|
57
|
+
destructive: boolean;
|
|
58
|
+
}>;
|
|
59
|
+
/**
|
|
60
|
+
* The scheduled model — everything plgg-view's
|
|
61
|
+
* `Application` needs minus the view, carrying ONLY
|
|
62
|
+
* mode-independent truth (design tenet g): the mount
|
|
63
|
+
* `base`, the chosen `root` collection, the drill-down
|
|
64
|
+
* `path` of selected row ids (root→leaf), the active
|
|
65
|
+
* `query` text with the chosen `queryChoices` values (the
|
|
66
|
+
* declared typed query fields, point 4), the
|
|
67
|
+
* per-collection load `slots`, and the `pending`
|
|
68
|
+
* confirmation. "Which single screen is focused" is
|
|
69
|
+
* derived (`focusedView`), never stored.
|
|
70
|
+
*
|
|
71
|
+
* `slots` is an assoc list (not a `Dict`, whose values
|
|
72
|
+
* must be `Datum`): lookup is a total helper returning
|
|
73
|
+
* `Idle` for an absent key.
|
|
74
|
+
*/
|
|
75
|
+
export type Model = Readonly<{
|
|
76
|
+
base: SoftStr;
|
|
77
|
+
root: Option<SoftStr>;
|
|
78
|
+
path: ReadonlyArray<SoftStr>;
|
|
79
|
+
query: SoftStr;
|
|
80
|
+
queryChoices: ReadonlyArray<readonly [SoftStr, SoftStr]>;
|
|
81
|
+
slots: ReadonlyArray<readonly [SoftStr, Slot]>;
|
|
82
|
+
pending: Option<PendingAction>;
|
|
83
|
+
}>;
|
|
84
|
+
/** The empty model at a mount `base`. */
|
|
85
|
+
export declare const emptyModel: (base: SoftStr) => Model;
|
|
86
|
+
/**
|
|
87
|
+
* The chosen value of a declared query choice, or `""`
|
|
88
|
+
* (no filter) when unset. Total — an assoc lookup folded
|
|
89
|
+
* through `Option`.
|
|
90
|
+
*/
|
|
91
|
+
export declare const choiceOf: (model: Model, choice: SoftStr) => SoftStr;
|
|
92
|
+
/**
|
|
93
|
+
* A collection's slot, or `Idle` if never read. Total —
|
|
94
|
+
* an assoc lookup folded through `Option`, no dead index
|
|
95
|
+
* guard (the pair is destructured in the `Some` branch).
|
|
96
|
+
*/
|
|
97
|
+
export declare const slotOf: (model: Model, collection: SoftStr) => Slot;
|
|
98
|
+
/**
|
|
99
|
+
* Sets a collection's slot, replacing any prior entry.
|
|
100
|
+
* Pure — returns a new slots list.
|
|
101
|
+
*/
|
|
102
|
+
export declare const setSlot: (model: Model, collection: SoftStr, slot: Slot) => Model;
|
|
103
|
+
//# sourceMappingURL=Model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Model.d.ts","sourceRoot":"","sources":["../../../src/Schedule/model/Model.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,IAAI,EACT,KAAK,MAAM,EAQZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,MAAM,IAAI,GACZ,IAAI,CAAC,MAAM,CAAC,GACZ,IAAI,CAAC,SAAS,CAAC,GACf,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,GACjC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAE3B,kCAAkC;AAClC,eAAO,MAAM,IAAI,QAAO,IAAoB,CAAC;AAC7C,8CAA8C;AAC9C,eAAO,MAAM,OAAO,QAAO,IACV,CAAC;AAClB,mCAAmC;AACnC,eAAO,MAAM,UAAU,SACf,aAAa,CAAC,GAAG,CAAC,KACvB,IAA2B,CAAC;AAC/B,wCAAwC;AACxC,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D,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { type SoftStr, type Box, type Icon, type Option } from "plgg";
|
|
2
|
+
import { type Url } from "plgg-view/client";
|
|
3
|
+
import { type Row } from "../../Declare/model/Row";
|
|
4
|
+
import { type View, type Binding } from "./View";
|
|
5
|
+
/**
|
|
6
|
+
* Everything that can happen to a scheduled program, as
|
|
7
|
+
* pure data — the derived `Msg` union of `schedule(...)`.
|
|
8
|
+
* A closed union consumed by the derived `update` with an
|
|
9
|
+
* exhaustive `match`, so a new interaction cannot be
|
|
10
|
+
* added without every interpreter site acknowledging it.
|
|
11
|
+
*
|
|
12
|
+
* - `Navigate` — the CORE navigation: go to a `View` with
|
|
13
|
+
* its ancestor `Binding`s (mission decision,
|
|
14
|
+
* 2026-07-12). Every other navigation message is a
|
|
15
|
+
* special case the scheduler lowers onto this one.
|
|
16
|
+
* - `UrlChanged` — a navigation (link/back/forward) the
|
|
17
|
+
* runtime turned into a message.
|
|
18
|
+
* - `OpenMenu` — a menu entry chose a root collection
|
|
19
|
+
* (≡ `Navigate` to that collection's list view).
|
|
20
|
+
* - `Select` — a row at a flow `level` was selected
|
|
21
|
+
* (≡ `Navigate` to the view the selection drills into).
|
|
22
|
+
* - `QueryInput` — the active list's keyword text
|
|
23
|
+
* changed.
|
|
24
|
+
* - `QueryChoiceInput` — a declared query choice (typed
|
|
25
|
+
* query field, point 4) was set (`""` clears it).
|
|
26
|
+
* - `RequestAction` — an action was requested on a
|
|
27
|
+
* collection (with an optional target row).
|
|
28
|
+
* - `ConfirmAction` / `CancelAction` — resolve a parked
|
|
29
|
+
* destructive confirmation.
|
|
30
|
+
* - `Loaded` / `Failed` — an async collection read (or an
|
|
31
|
+
* action's re-read) resolved.
|
|
32
|
+
*/
|
|
33
|
+
export type SchedulerMsg = Box<"Navigate", Readonly<{
|
|
34
|
+
to: View;
|
|
35
|
+
with: ReadonlyArray<Binding>;
|
|
36
|
+
}>> | Box<"UrlChanged", Url> | Box<"OpenMenu", SoftStr> | Box<"Select", Readonly<{
|
|
37
|
+
level: number;
|
|
38
|
+
id: SoftStr;
|
|
39
|
+
}>> | Box<"QueryInput", SoftStr> | Box<"QueryChoiceInput", Readonly<{
|
|
40
|
+
choice: SoftStr;
|
|
41
|
+
value: SoftStr;
|
|
42
|
+
}>> | Box<"RequestAction", Readonly<{
|
|
43
|
+
collection: SoftStr;
|
|
44
|
+
action: SoftStr;
|
|
45
|
+
target: Option<SoftStr>;
|
|
46
|
+
}>> | Icon<"ConfirmAction"> | Icon<"CancelAction"> | Box<"Loaded", Readonly<{
|
|
47
|
+
collection: SoftStr;
|
|
48
|
+
rows: ReadonlyArray<Row>;
|
|
49
|
+
}>> | Box<"Failed", Readonly<{
|
|
50
|
+
collection: SoftStr;
|
|
51
|
+
error: SoftStr;
|
|
52
|
+
}>>;
|
|
53
|
+
/** Constructs a {@link SchedulerMsg} `Navigate`. */
|
|
54
|
+
export declare const navigate: (to: View, bindings: ReadonlyArray<Binding>) => SchedulerMsg;
|
|
55
|
+
/** Constructs a {@link SchedulerMsg} `UrlChanged`. */
|
|
56
|
+
export declare const urlChanged: (url: Url) => SchedulerMsg;
|
|
57
|
+
/** Constructs a {@link SchedulerMsg} `OpenMenu`. */
|
|
58
|
+
export declare const openMenu: (collection: SoftStr) => SchedulerMsg;
|
|
59
|
+
/** Constructs a {@link SchedulerMsg} `Select`. */
|
|
60
|
+
export declare const select: (level: number, id: SoftStr) => SchedulerMsg;
|
|
61
|
+
/** Constructs a {@link SchedulerMsg} `QueryInput`. */
|
|
62
|
+
export declare const queryInput: (text: SoftStr) => SchedulerMsg;
|
|
63
|
+
/** Constructs a {@link SchedulerMsg} `QueryChoiceInput`. */
|
|
64
|
+
export declare const queryChoiceInput: (choice: SoftStr, value: SoftStr) => SchedulerMsg;
|
|
65
|
+
/** Constructs a {@link SchedulerMsg} `RequestAction`. */
|
|
66
|
+
export declare const requestAction: (collection: SoftStr, action: SoftStr, target: Option<SoftStr>) => SchedulerMsg;
|
|
67
|
+
/** Constructs a {@link SchedulerMsg} `ConfirmAction`. */
|
|
68
|
+
export declare const confirmAction: () => SchedulerMsg;
|
|
69
|
+
/** Constructs a {@link SchedulerMsg} `CancelAction`. */
|
|
70
|
+
export declare const cancelAction: () => SchedulerMsg;
|
|
71
|
+
/** Constructs a {@link SchedulerMsg} `Loaded`. */
|
|
72
|
+
export declare const loaded: (collection: SoftStr, rows: ReadonlyArray<Row>) => SchedulerMsg;
|
|
73
|
+
/** Constructs a {@link SchedulerMsg} `Failed`. */
|
|
74
|
+
export declare const failed: (collection: SoftStr, error: SoftStr) => SchedulerMsg;
|
|
75
|
+
/** Matchers for folding a {@link SchedulerMsg}. */
|
|
76
|
+
export declare const navigate$: () => {
|
|
77
|
+
__tag: "Navigate";
|
|
78
|
+
type: "tag";
|
|
79
|
+
body: undefined;
|
|
80
|
+
};
|
|
81
|
+
export declare const urlChanged$: () => {
|
|
82
|
+
__tag: "UrlChanged";
|
|
83
|
+
type: "tag";
|
|
84
|
+
body: undefined;
|
|
85
|
+
};
|
|
86
|
+
export declare const openMenu$: () => {
|
|
87
|
+
__tag: "OpenMenu";
|
|
88
|
+
type: "tag";
|
|
89
|
+
body: undefined;
|
|
90
|
+
};
|
|
91
|
+
export declare const select$: () => {
|
|
92
|
+
__tag: "Select";
|
|
93
|
+
type: "tag";
|
|
94
|
+
body: undefined;
|
|
95
|
+
};
|
|
96
|
+
export declare const queryInput$: () => {
|
|
97
|
+
__tag: "QueryInput";
|
|
98
|
+
type: "tag";
|
|
99
|
+
body: undefined;
|
|
100
|
+
};
|
|
101
|
+
export declare const queryChoiceInput$: () => {
|
|
102
|
+
__tag: "QueryChoiceInput";
|
|
103
|
+
type: "tag";
|
|
104
|
+
body: undefined;
|
|
105
|
+
};
|
|
106
|
+
export declare const requestAction$: () => {
|
|
107
|
+
__tag: "RequestAction";
|
|
108
|
+
type: "tag";
|
|
109
|
+
body: undefined;
|
|
110
|
+
};
|
|
111
|
+
export declare const confirmAction$: () => {
|
|
112
|
+
__tag: "ConfirmAction";
|
|
113
|
+
type: "tag";
|
|
114
|
+
body: undefined;
|
|
115
|
+
};
|
|
116
|
+
export declare const cancelAction$: () => {
|
|
117
|
+
__tag: "CancelAction";
|
|
118
|
+
type: "tag";
|
|
119
|
+
body: undefined;
|
|
120
|
+
};
|
|
121
|
+
export declare const loaded$: () => {
|
|
122
|
+
__tag: "Loaded";
|
|
123
|
+
type: "tag";
|
|
124
|
+
body: undefined;
|
|
125
|
+
};
|
|
126
|
+
export declare const failed$: () => {
|
|
127
|
+
__tag: "Failed";
|
|
128
|
+
type: "tag";
|
|
129
|
+
body: undefined;
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=Msg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Msg.d.ts","sourceRoot":"","sources":["../../../src/Schedule/model/Msg.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,IAAI,EACT,KAAK,MAAM,EAIZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EACL,KAAK,IAAI,EACT,KAAK,OAAO,EACb,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,YAAY,GACpB,GAAG,CACD,UAAU,EACV,QAAQ,CAAC;IACP,EAAE,EAAE,IAAI,CAAC;IACT,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CAC9B,CAAC,CACH,GACD,GAAG,CAAC,YAAY,EAAE,GAAG,CAAC,GACtB,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,GACxB,GAAG,CACD,QAAQ,EACR,QAAQ,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EA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AO,CAAC,KACtB,YAKC,CAAC;AAEL,yDAAyD;AACzD,eAAO,MAAM,aAAa,QAAO,YACV,CAAC;AAExB,wDAAwD;AACxD,eAAO,MAAM,YAAY,QAAO,YACV,CAAC;AAEvB,kDAAkD;AAClD,eAAO,MAAM,MAAM,eACL,OAAO,QACb,aAAa,CAAC,GAAG,CAAC,KACvB,YACkC,CAAC;AAEtC,kDAAkD;AAClD,eAAO,MAAM,MAAM,eACL,OAAO,SACZ,OAAO,KACb,YACmC,CAAC;AAEvC,mDAAmD;AACnD,eAAO,MAAM,SAAS;;;;CACC,CAAC;AACxB,eAAO,MAAM,WAAW;;;;CACC,CAAC;AAC1B,eAAO,MAAM,SAAS;;;;CACC,CAAC;AACxB,eAAO,MAAM,OAAO;;;;CAA4B,CAAC;AACjD,eAAO,MAAM,WAAW;;;;CACC,CAAC;AAC1B,eAAO,MAAM,iBAAiB;;;;CACC,CAAC;AAChC,eAAO,MAAM,cAAc;;;;CACC,CAAC;AAC7B,eAAO,MAAM,cAAc;;;;CACC,CAAC;AAC7B,eAAO,MAAM,aAAa;;;;CACC,CAAC;AAC5B,eAAO,MAAM,OAAO;;;;CAA4B,CAAC;AACjD,eAAO,MAAM,OAAO;;;;CAA4B,CAAC"}
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scene.d.ts","sourceRoot":"","sources":["../../../src/Schedule/model/Scene.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,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a,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,MAAO;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,eACP,OAAO,KAClB,IAAmC,CAAC;AAEvC,sCAAsC;AACtC,eAAO,MAAM,UAAU,eACT,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,eACN,OAAO,MACf,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,gBACd,WAAW,QAClB,MAAM,CAAC,OAAO,CAAC,KACpB,aAAa,CAAC,UAAU,CAIlB,CAAC;AAwBV,qEAAqE;AACrE,eAAO,MAAM,YAAY,SACjB,aAAa,CAAC,OAAO,CAAC,KACzB,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,QAAS,GAAG,KAAG,QA4BnC,CAAC;AAqDF;;;;GAIG;AACH,eAAO,MAAM,KAAK,UAAW,KAAK,KAAG,GASlC,CAAC;AAEJ;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,SACZ,OAAO,SACN,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,gBACR,WAAW,YAEjB,MAAM,CAAC,OAAO,CAAC,QACf,aAAa,CAAC,OAAO,CAAC,KAC3B,IASM,CAAC;AAuCZ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,OACd,IAAI,YACE,aAAa,CAAC,OAAO,CAAC,KAC/B,QAoBA,CAAC"}
|