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,107 @@
|
|
|
1
|
+
import { type SoftStr, type Option, type Result } from "plgg";
|
|
2
|
+
import { type Row } from "./Row";
|
|
3
|
+
import { type Path } from "./Source";
|
|
4
|
+
import { type Verb } from "./Action";
|
|
5
|
+
/**
|
|
6
|
+
* The host-supplied ACTOR, passed as DATA at program start
|
|
7
|
+
* (never named in the declaration): an identity and its
|
|
8
|
+
* roles. The engine evaluates an action's declared
|
|
9
|
+
* `authorize` over (actor, subject) BEFORE dispatching, so
|
|
10
|
+
* an unauthorized action never reaches the adapter (the
|
|
11
|
+
* point-7 authorization decision, 2026-07-13).
|
|
12
|
+
*/
|
|
13
|
+
export type Actor = Readonly<{
|
|
14
|
+
id: SoftStr;
|
|
15
|
+
roles: ReadonlyArray<SoftStr>;
|
|
16
|
+
}>;
|
|
17
|
+
/** Constructs an {@link Actor} (roles default empty). */
|
|
18
|
+
export declare const actor: (id: SoftStr, roles?: ReadonlyArray<SoftStr>) => Actor;
|
|
19
|
+
/**
|
|
20
|
+
* A query-scoped READ descriptor: the collection and the
|
|
21
|
+
* ancestor `path` a child reads against (the same Path the
|
|
22
|
+
* legacy Source reads). The Sync/Async split does not
|
|
23
|
+
* appear here — the adapter read is uniformly deferred (a
|
|
24
|
+
* `Promise<Result>`), the concrete backend's concern.
|
|
25
|
+
*/
|
|
26
|
+
export type Scope = Readonly<{
|
|
27
|
+
collection: SoftStr;
|
|
28
|
+
path: Path;
|
|
29
|
+
}>;
|
|
30
|
+
/** Constructs a {@link Scope}. */
|
|
31
|
+
export declare const scope: (collection: SoftStr, path: Path) => Scope;
|
|
32
|
+
/**
|
|
33
|
+
* A checked mutation the host APPLIES: the collection, the
|
|
34
|
+
* create/update/delete verb, the target row (`None` for a
|
|
35
|
+
* create), and the projected field payload (key→value).
|
|
36
|
+
* Constructing an effect here is the apply HAND-OFF; the
|
|
37
|
+
* checked-effect construction from a compiled manifest
|
|
38
|
+
* belongs to the manifest lowering (out of scope for this
|
|
39
|
+
* layer).
|
|
40
|
+
*/
|
|
41
|
+
export type Effect = Readonly<{
|
|
42
|
+
collection: SoftStr;
|
|
43
|
+
verb: Verb;
|
|
44
|
+
target: Option<SoftStr>;
|
|
45
|
+
payload: ReadonlyArray<readonly [SoftStr, SoftStr]>;
|
|
46
|
+
}>;
|
|
47
|
+
/** Constructs an {@link Effect} (payload defaults empty). */
|
|
48
|
+
export declare const effect: (e: {
|
|
49
|
+
collection: SoftStr;
|
|
50
|
+
verb: Verb;
|
|
51
|
+
target: Option<SoftStr>;
|
|
52
|
+
payload?: ReadonlyArray<readonly [SoftStr, SoftStr]>;
|
|
53
|
+
}) => Effect;
|
|
54
|
+
/**
|
|
55
|
+
* The successful outcome of `apply`: the collection whose
|
|
56
|
+
* rows changed and its refreshed rows, so the scheduler
|
|
57
|
+
* folds Ok → a `Loaded` message on the action-result path,
|
|
58
|
+
* mirroring a read.
|
|
59
|
+
*/
|
|
60
|
+
export type ApplyOk = Readonly<{
|
|
61
|
+
collection: SoftStr;
|
|
62
|
+
rows: ReadonlyArray<Row>;
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* The ONE host capability (point 7): `read` — a
|
|
66
|
+
* query-scoped, deferred read whose `Err` lands in the
|
|
67
|
+
* collection's Failed slot (today's async path) — and
|
|
68
|
+
* `apply` — a checked effect against an actor, its `Err`
|
|
69
|
+
* surfacing on the action-result path. Nothing throws;
|
|
70
|
+
* timeouts are the adapter's own concern. `toRow` is NOT
|
|
71
|
+
* here: it left the capability surface for keyword
|
|
72
|
+
* projection (see `Declare/usecase/project`).
|
|
73
|
+
*/
|
|
74
|
+
export type HostAdapter = Readonly<{
|
|
75
|
+
read: (scope: Scope) => Promise<Result<ReadonlyArray<Row>, Error>>;
|
|
76
|
+
apply: (effect: Effect, actor: Actor) => Promise<Result<ApplyOk, Error>>;
|
|
77
|
+
}>;
|
|
78
|
+
/** Constructs a {@link HostAdapter}. */
|
|
79
|
+
export declare const hostAdapter: (a: {
|
|
80
|
+
read: (scope: Scope) => Promise<Result<ReadonlyArray<Row>, Error>>;
|
|
81
|
+
apply: (effect: Effect, actor: Actor) => Promise<Result<ApplyOk, Error>>;
|
|
82
|
+
}) => HostAdapter;
|
|
83
|
+
/**
|
|
84
|
+
* A host adapter registered under a NAME. One registration
|
|
85
|
+
* becomes the DEFAULT (declarations name no adapter);
|
|
86
|
+
* several require the non-default collections to name
|
|
87
|
+
* theirs (the point-7 naming decision).
|
|
88
|
+
*/
|
|
89
|
+
export type NamedAdapter = Readonly<{
|
|
90
|
+
name: SoftStr;
|
|
91
|
+
adapter: HostAdapter;
|
|
92
|
+
}>;
|
|
93
|
+
/** The host's registered adapters (empty when none). */
|
|
94
|
+
export type Registry = ReadonlyArray<NamedAdapter>;
|
|
95
|
+
/** Registers an adapter under a name. */
|
|
96
|
+
export declare const named: (name: SoftStr, adapter: HostAdapter) => NamedAdapter;
|
|
97
|
+
/**
|
|
98
|
+
* Resolves the adapter a source reads through. A named
|
|
99
|
+
* source names it; an unnamed source (`None`) resolves to
|
|
100
|
+
* the DEFAULT — the sole registration. Total: `None` when
|
|
101
|
+
* the name is unknown, or when an unnamed source meets a
|
|
102
|
+
* registry that is not exactly one (0 or ≥2) — the
|
|
103
|
+
* reconciliation pass reports which; this lookup never
|
|
104
|
+
* throws.
|
|
105
|
+
*/
|
|
106
|
+
export declare const resolveAdapter: (registry: Registry, name: Option<SoftStr>) => Option<HostAdapter>;
|
|
107
|
+
//# sourceMappingURL=Adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Adapter.d.ts","sourceRoot":"","sources":["../../../src/Declare/model/Adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,MAAM,EAOZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,gCAAgC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,CAAC;IACjC,IAAI,EAAE,CACJ,KAAK,EAAE,KAAK,KACT,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAChD,KAAK,EAAE,CACL,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,KACT,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;CACtC,CAAC,CAAC;AAEH,wCAAwC;AACxC,eAAO,MAAM,WAAW,MAAO;IAC7B,IAAI,EAAE,CACJ,KAAK,EAAE,KAAK,KACT,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAChD,KAAK,EAAE,CACL,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,KACT,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;CACtC,KAAG,WAGF,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC,CAAC;AAEH,wDAAwD;AACxD,MAAM,MAAM,QAAQ,GAClB,aAAa,CAAC,YAAY,CAAC,CAAC;AAE9B,yCAAyC;AACzC,eAAO,MAAM,KAAK,SACV,OAAO,WACJ,WAAW,KACnB,YAAmC,CAAC;AAWvC;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,aACf,QAAQ,QACZ,MAAM,CAAC,OAAO,CAAC,KACpB,MAAM,CAAC,WAAW,CAYZ,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type SoftStr, type Option } from "plgg";
|
|
2
|
+
import { type Row } from "./Row";
|
|
3
|
+
import { type Source, type TypedSource } from "./Source";
|
|
4
|
+
import { type Query } from "./Query";
|
|
5
|
+
import { type Action } from "./Action";
|
|
6
|
+
/**
|
|
7
|
+
* A typed data resource in the declaration: an identity,
|
|
8
|
+
* a title, a `Source`, and its place in the flow graph —
|
|
9
|
+
* an optional `child` collection a row drills into, an
|
|
10
|
+
* optional `Query` filter, and the create/update/delete
|
|
11
|
+
* `Action`s available on it. The `Source` here is the
|
|
12
|
+
* ERASED (`Row`-valued) source; a typed `T` never leaks
|
|
13
|
+
* past {@link collection}'s `toRow`. `board` opts the
|
|
14
|
+
* collection into board (tile) presentation: its rows
|
|
15
|
+
* project as tiles whose only interaction is a jump —
|
|
16
|
+
* they neither drill nor show a detail (the point-5
|
|
17
|
+
* decision, 2026-07-12).
|
|
18
|
+
*/
|
|
19
|
+
export type Collection = Readonly<{
|
|
20
|
+
id: SoftStr;
|
|
21
|
+
title: SoftStr;
|
|
22
|
+
source: Source;
|
|
23
|
+
child: Option<SoftStr>;
|
|
24
|
+
query: Option<Query>;
|
|
25
|
+
actions: ReadonlyArray<Action>;
|
|
26
|
+
board: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Declares a {@link Collection}. The ONLY place a typed
|
|
30
|
+
* item `T` appears: `toRow` captures the list/detail
|
|
31
|
+
* projection and erases the source to `Row`. `child`,
|
|
32
|
+
* `query`, `actions`, and `board` are optional (absence
|
|
33
|
+
* is `None` / `[]` / `false`, not `undefined` past this
|
|
34
|
+
* boundary) — every existing declaration is untouched.
|
|
35
|
+
*/
|
|
36
|
+
export declare const collection: <T>(c: {
|
|
37
|
+
id: SoftStr;
|
|
38
|
+
title: SoftStr;
|
|
39
|
+
toRow: (item: T) => Row;
|
|
40
|
+
source: TypedSource<T>;
|
|
41
|
+
child?: SoftStr;
|
|
42
|
+
query?: Query;
|
|
43
|
+
actions?: ReadonlyArray<Action>;
|
|
44
|
+
board?: boolean;
|
|
45
|
+
}) => Collection;
|
|
46
|
+
/**
|
|
47
|
+
* Finds a collection by id in a declaration's list.
|
|
48
|
+
* Total: an unknown id yields `None`, never throws — the
|
|
49
|
+
* scheduler treats a dangling child/menu reference as an
|
|
50
|
+
* empty level rather than a crash.
|
|
51
|
+
*/
|
|
52
|
+
export declare const collectionById: (collections: ReadonlyArray<Collection>, id: SoftStr) => Option<Collection>;
|
|
53
|
+
/** The action of a collection by id. */
|
|
54
|
+
export declare const actionById: (c: Collection, id: SoftStr) => Option<Action>;
|
|
55
|
+
//# sourceMappingURL=Collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["../../../src/Declare/model/Collection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAOZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,WAAW,EAKjB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE7D;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC,CAAC;AAkDH;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,KAAK;IAC/B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,CAAC;IACxB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,KAAG,UAcF,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,cAAc,gBACZ,aAAa,CAAC,UAAU,CAAC,MAClC,OAAO,KACV,MAAM,CAAC,UAAU,CAGjB,CAAC;AAEJ,wCAAwC;AACxC,eAAO,MAAM,UAAU,MAClB,UAAU,MACT,OAAO,KACV,MAAM,CAAC,MAAM,CAGb,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type SoftStr } from "plgg";
|
|
2
|
+
import { type Menu } from "./Menu";
|
|
3
|
+
import { type Collection } from "./Collection";
|
|
4
|
+
/**
|
|
5
|
+
* The root of a plggmatic declaration — everything
|
|
6
|
+
* `schedule(...)` needs to derive a TEA program: a title,
|
|
7
|
+
* the root {@link Menu}, and the {@link Collection}s
|
|
8
|
+
* keyed by id. The flow graph is implicit: the menu names
|
|
9
|
+
* the roots, and each collection's `child` names the next
|
|
10
|
+
* level, so no separate flow type is needed. MODE-
|
|
11
|
+
* AGNOSTIC (D10): nothing here names a column, pane,
|
|
12
|
+
* drawer, or screen — renderers project the derived level
|
|
13
|
+
* stack into a display.
|
|
14
|
+
*/
|
|
15
|
+
export type Declaration = Readonly<{
|
|
16
|
+
title: SoftStr;
|
|
17
|
+
menu: Menu;
|
|
18
|
+
collections: ReadonlyArray<Collection>;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Constructs a {@link Declaration}. An identity function
|
|
22
|
+
* with a name — it performs nothing (constructing a
|
|
23
|
+
* declaration reads no data and runs no effect); it is
|
|
24
|
+
* the vocabulary's entry point the scheduler consumes.
|
|
25
|
+
*/
|
|
26
|
+
export declare const declare: (d: Declaration) => Declaration;
|
|
27
|
+
//# sourceMappingURL=Declaration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Declaration.d.ts","sourceRoot":"","sources":["../../../src/Declare/model/Declaration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAErE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;CACxC,CAAC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,OAAO,MACf,WAAW,KACb,WAAgB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type SoftStr } from "plgg";
|
|
2
|
+
/**
|
|
3
|
+
* One labelled entry of the root {@link Menu}: a label
|
|
4
|
+
* and the id of the collection it opens (the root of a
|
|
5
|
+
* flow). A menu is navigation INTO the flow, so an entry
|
|
6
|
+
* references a collection by id, not a view — the
|
|
7
|
+
* scheduler resolves the collection.
|
|
8
|
+
*/
|
|
9
|
+
export type MenuEntry = Readonly<{
|
|
10
|
+
label: SoftStr;
|
|
11
|
+
collection: SoftStr;
|
|
12
|
+
}>;
|
|
13
|
+
/** The root navigation entries of a declaration. */
|
|
14
|
+
export type Menu = Readonly<{
|
|
15
|
+
entries: ReadonlyArray<MenuEntry>;
|
|
16
|
+
}>;
|
|
17
|
+
/** Constructs a {@link MenuEntry}. */
|
|
18
|
+
export declare const menuEntry: (label: SoftStr, collection: SoftStr) => MenuEntry;
|
|
19
|
+
/** Constructs a {@link Menu}. */
|
|
20
|
+
export declare const menu: (entries: ReadonlyArray<MenuEntry>) => Menu;
|
|
21
|
+
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/Declare/model/Menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC,CAAC;AAEH,oDAAoD;AACpD,MAAM,MAAM,IAAI,GAAG,QAAQ,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CACnC,CAAC,CAAC;AAEH,sCAAsC;AACtC,eAAO,MAAM,SAAS,UACb,OAAO,cACF,OAAO,KAClB,SAAoC,CAAC;AAExC,iCAAiC;AACjC,eAAO,MAAM,IAAI,YACN,aAAa,CAAC,SAAS,CAAC,KAChC,IAAqB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type SoftStr } from "plgg";
|
|
2
|
+
import { type Row } from "./Row";
|
|
3
|
+
/**
|
|
4
|
+
* One declared choice filter of a {@link Query} — a typed
|
|
5
|
+
* query field (mission decision, 2026-07-12, point 4):
|
|
6
|
+
* `id` names the URL parameter and the input Msg, `label`
|
|
7
|
+
* captions the control, `field` names the row field the
|
|
8
|
+
* closed equality test reads, and `options` is the
|
|
9
|
+
* declared, closed value set (WebMCP tool schemas derive
|
|
10
|
+
* their enumerations from it).
|
|
11
|
+
*/
|
|
12
|
+
export type QueryChoice = Readonly<{
|
|
13
|
+
id: SoftStr;
|
|
14
|
+
label: SoftStr;
|
|
15
|
+
field: SoftStr;
|
|
16
|
+
options: ReadonlyArray<SoftStr>;
|
|
17
|
+
}>;
|
|
18
|
+
/** Constructs a {@link QueryChoice}. */
|
|
19
|
+
export declare const queryChoice: (id: SoftStr, label: SoftStr, field: SoftStr, options: ReadonlyArray<SoftStr>) => QueryChoice;
|
|
20
|
+
/**
|
|
21
|
+
* A declarative filter over a {@link Collection}'s rows:
|
|
22
|
+
* a keyword (case-insensitive substring over `Row.label`)
|
|
23
|
+
* plus the declared {@link QueryChoice} filters. The live
|
|
24
|
+
* values live in the scheduled model and are reflected
|
|
25
|
+
* into the URL, so a filtered arrangement is a shareable
|
|
26
|
+
* address. Client-side evaluation is CLOSED to this pair
|
|
27
|
+
* — substring for the keyword, equality for a choice;
|
|
28
|
+
* predicate expressions belong to the manifest/DSL and
|
|
29
|
+
* execute at the source.
|
|
30
|
+
*/
|
|
31
|
+
export type Query = Readonly<{
|
|
32
|
+
placeholder: SoftStr;
|
|
33
|
+
choices: ReadonlyArray<QueryChoice>;
|
|
34
|
+
}>;
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a {@link Query}. The historical
|
|
37
|
+
* one-argument form is the degenerate keyword-only
|
|
38
|
+
* declaration.
|
|
39
|
+
*/
|
|
40
|
+
export declare const query: (placeholder: SoftStr, choices?: ReadonlyArray<QueryChoice>) => Query;
|
|
41
|
+
/**
|
|
42
|
+
* Whether a row label matches a query text — the shared
|
|
43
|
+
* filter semantics. Empty text matches everything (an
|
|
44
|
+
* empty filter is not a filter). Case-insensitive
|
|
45
|
+
* substring, so it is total and never throws.
|
|
46
|
+
*/
|
|
47
|
+
export declare const matchesQuery: (text: SoftStr, label: SoftStr) => boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether a row satisfies one chosen choice value — the
|
|
50
|
+
* closed equality half of the query semantics: the row
|
|
51
|
+
* field labelled `field` must display exactly the chosen
|
|
52
|
+
* value. An empty choice matches everything; a row
|
|
53
|
+
* without the field matches nothing (total either way).
|
|
54
|
+
*/
|
|
55
|
+
export declare const matchesChoice: (chosen: SoftStr, field: SoftStr, row: Row) => boolean;
|
|
56
|
+
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../src/Declare/model/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,GAAG,EAGT,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CACjC,CAAC,CAAC;AAEH,wCAAwC;AACxC,eAAO,MAAM,WAAW,OAClB,OAAO,SACJ,OAAO,SACP,OAAO,WACL,aAAa,CAAC,OAAO,CAAC,KAC9B,WAA8C,CAAC;AAElD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACrC,CAAC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,KAAK,gBACH,OAAO,YACX,aAAa,CAAC,WAAW,CAAC,KAClC,KAAmC,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,SACjB,OAAO,SACN,OAAO,KACb,OAI8B,CAAC;AAElC;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,WAChB,OAAO,SACR,OAAO,OACT,GAAG,KACP,OAMA,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { type SoftStr, type Box, type Option } from "plgg";
|
|
2
|
+
/**
|
|
3
|
+
* A field's typed value — the CLOSED union the typed-field
|
|
4
|
+
* decision fixed (mission changelog, 2026-07-12, point 3).
|
|
5
|
+
* A detail cell stops being a bare string: renderers fold
|
|
6
|
+
* this union exhaustively (a new kind is a compile error
|
|
7
|
+
* at every renderer) and WebMCP field schemas derive from
|
|
8
|
+
* the same vocabulary. The members mirror the manifest
|
|
9
|
+
* field types the lowering will map onto: string → `Text`,
|
|
10
|
+
* numeric/money → `Num`, boolean → `Flag`, date/time →
|
|
11
|
+
* `Moment`, relation/domain-id → `Reference`, media →
|
|
12
|
+
* `Media`.
|
|
13
|
+
*
|
|
14
|
+
* `Reference` is the decided cross-link jump realized at
|
|
15
|
+
* the field seam: it names a collection and a row id (a
|
|
16
|
+
* `Binding`, structurally), and the scene resolves it to
|
|
17
|
+
* the target's CANONICAL address — activation is a jump,
|
|
18
|
+
* never a walk.
|
|
19
|
+
*/
|
|
20
|
+
export type FieldValue = Box<"Text", SoftStr> | Box<"Num", Readonly<{
|
|
21
|
+
value: SoftStr;
|
|
22
|
+
unit: Option<SoftStr>;
|
|
23
|
+
}>> | Box<"Flag", boolean> | Box<"Moment", SoftStr> | Box<"Reference", Readonly<{
|
|
24
|
+
collection: SoftStr;
|
|
25
|
+
id: SoftStr;
|
|
26
|
+
label: SoftStr;
|
|
27
|
+
}>> | Box<"Media", Readonly<{
|
|
28
|
+
src: SoftStr;
|
|
29
|
+
alt: SoftStr;
|
|
30
|
+
}>>;
|
|
31
|
+
/** A plain text value. */
|
|
32
|
+
export declare const textValue: (value: SoftStr) => FieldValue;
|
|
33
|
+
/** A numeric value (pre-formatted) with an optional unit. */
|
|
34
|
+
export declare const numValue: (value: SoftStr, unit?: SoftStr) => FieldValue;
|
|
35
|
+
/** A yes/no value. */
|
|
36
|
+
export declare const flagValue: (value: boolean) => FieldValue;
|
|
37
|
+
/** A date/time value (ISO string). */
|
|
38
|
+
export declare const momentValue: (value: SoftStr) => FieldValue;
|
|
39
|
+
/**
|
|
40
|
+
* A reference to another collection's row — activation
|
|
41
|
+
* jumps to the target's canonical address.
|
|
42
|
+
*/
|
|
43
|
+
export declare const refValue: (collection: SoftStr, id: SoftStr, label: SoftStr) => FieldValue;
|
|
44
|
+
/** A media value (image source + alternative text). */
|
|
45
|
+
export declare const mediaValue: (src: SoftStr, alt: SoftStr) => FieldValue;
|
|
46
|
+
/** Matchers for folding a {@link FieldValue}. */
|
|
47
|
+
export declare const textValue$: () => {
|
|
48
|
+
__tag: "Text";
|
|
49
|
+
type: "tag";
|
|
50
|
+
body: undefined;
|
|
51
|
+
};
|
|
52
|
+
export declare const numValue$: () => {
|
|
53
|
+
__tag: "Num";
|
|
54
|
+
type: "tag";
|
|
55
|
+
body: undefined;
|
|
56
|
+
};
|
|
57
|
+
export declare const flagValue$: () => {
|
|
58
|
+
__tag: "Flag";
|
|
59
|
+
type: "tag";
|
|
60
|
+
body: undefined;
|
|
61
|
+
};
|
|
62
|
+
export declare const momentValue$: () => {
|
|
63
|
+
__tag: "Moment";
|
|
64
|
+
type: "tag";
|
|
65
|
+
body: undefined;
|
|
66
|
+
};
|
|
67
|
+
export declare const refValue$: () => {
|
|
68
|
+
__tag: "Reference";
|
|
69
|
+
type: "tag";
|
|
70
|
+
body: undefined;
|
|
71
|
+
};
|
|
72
|
+
export declare const mediaValue$: () => {
|
|
73
|
+
__tag: "Media";
|
|
74
|
+
type: "tag";
|
|
75
|
+
body: undefined;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* One labelled cell of a {@link Row}'s detail. `label`
|
|
79
|
+
* may be empty (a body paragraph has a value but no
|
|
80
|
+
* caption) — the emptiness is presentation. The value is
|
|
81
|
+
* a typed {@link FieldValue}; the plain-string
|
|
82
|
+
* {@link field} constructor lowers to `Text`, so the
|
|
83
|
+
* historical string shape keeps working.
|
|
84
|
+
*/
|
|
85
|
+
export type Field = Readonly<{
|
|
86
|
+
label: SoftStr;
|
|
87
|
+
value: FieldValue;
|
|
88
|
+
}>;
|
|
89
|
+
/**
|
|
90
|
+
* The presentation-neutral projection of a collection
|
|
91
|
+
* item — the ONLY item shape the scheduled model and the
|
|
92
|
+
* renderer seam ever see (a typed `T` lives only at the
|
|
93
|
+
* {@link Collection} boundary, captured by its `toRow`).
|
|
94
|
+
* `label` is what a list shows; `fields` is what a detail
|
|
95
|
+
* shows; `id` is the item identity used as the URL and
|
|
96
|
+
* selection key. Mirrors the oracle's discipline: the
|
|
97
|
+
* model holds ids, never the domain objects.
|
|
98
|
+
*/
|
|
99
|
+
export type Row = Readonly<{
|
|
100
|
+
id: SoftStr;
|
|
101
|
+
label: SoftStr;
|
|
102
|
+
fields: ReadonlyArray<Field>;
|
|
103
|
+
}>;
|
|
104
|
+
/**
|
|
105
|
+
* Constructs a plain-text {@link Field} — the historical
|
|
106
|
+
* string shape, lowered to a `Text` value.
|
|
107
|
+
*/
|
|
108
|
+
export declare const field: (label: SoftStr, value: SoftStr) => Field;
|
|
109
|
+
/** Constructs a {@link Field} with a typed value. */
|
|
110
|
+
export declare const fieldOf: (label: SoftStr, value: FieldValue) => Field;
|
|
111
|
+
/** Constructs a {@link Row}. */
|
|
112
|
+
export declare const row: (id: SoftStr, label: SoftStr, fields?: ReadonlyArray<Field>) => Row;
|
|
113
|
+
/**
|
|
114
|
+
* The reference target of a value, if it is one — the
|
|
115
|
+
* seam the scene uses to resolve a `Reference` into the
|
|
116
|
+
* href of its target's canonical address. `None` for
|
|
117
|
+
* every non-reference kind.
|
|
118
|
+
*/
|
|
119
|
+
export declare const refTarget: (value: FieldValue) => Option<Readonly<{
|
|
120
|
+
collection: SoftStr;
|
|
121
|
+
id: SoftStr;
|
|
122
|
+
}>>;
|
|
123
|
+
/**
|
|
124
|
+
* A {@link FieldValue}'s display text — the one total
|
|
125
|
+
* string projection shared by renderers and tests
|
|
126
|
+
* (references show their label; media its alt text).
|
|
127
|
+
*/
|
|
128
|
+
export declare const fieldText: (value: FieldValue) => SoftStr;
|
|
129
|
+
//# sourceMappingURL=Row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/Declare/model/Row.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,MAAM,EAQZ,MAAM,MAAM,CAAC;AAEd;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,UA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;;;;CACJ,CAAC;AAErB;;;;;;;GAOG;AACH,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC,CAAC;AAEH;;;;;;;;;GASG;AACH,MAAM,MAAM,GAAG,GAAG,QAAQ,CAAC;IACzB,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;CAC9B,CAAC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,KAAK,UACT,OAAO,SACP,OAAO,KACb,KAA6C,CAAC;AAEjD,qDAAqD;AACrD,eAAO,MAAM,OAAO,UACX,OAAO,SACP,UAAU,KAChB,KAA2B,CAAC;AAE/B,gCAAgC;AAChC,eAAO,MAAM,GAAG,OACV,OAAO,SACJ,OAAO,WACN,aAAa,CAAC,KAAK,CAAC,KAC3B,GAA8B,CAAC;AAElC;;;;;GAKG;AACH,eAAO,MAAM,SAAS,UACb,UAAU,KAChB,MAAM,CACP,QAAQ,CAAC;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,OAAO,CAAA;CAAE,CAAC,CA+B7C,CAAC;AAOJ;;;;GAIG;AACH,eAAO,MAAM,SAAS,UACb,UAAU,KAChB,OAgCA,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type SoftStr, type Box, type Option, type Result } from "plgg";
|
|
2
|
+
import { type Row } from "./Row";
|
|
3
|
+
/**
|
|
4
|
+
* The ancestor selections a source reads against, root→
|
|
5
|
+
* parent — so a child collection (notes) filters by its
|
|
6
|
+
* parent selection (a section id) WITHOUT the model
|
|
7
|
+
* storing the parent object. Empty at the root.
|
|
8
|
+
*/
|
|
9
|
+
export type Path = ReadonlyArray<SoftStr>;
|
|
10
|
+
/**
|
|
11
|
+
* A typed data-access seam over items `T`. Four shapes:
|
|
12
|
+
* `Sync` is an in-memory read, `Async` a deferred
|
|
13
|
+
* (`proc`/Promise-folded-to-`Result`) read the scheduler
|
|
14
|
+
* runs as a `Cmd` (design tenet e — swapping `Sync` for
|
|
15
|
+
* `Async` never rewrites the app), and `Dynamic` is a
|
|
16
|
+
* consumer-OWNED collection whose rows live in the model's
|
|
17
|
+
* slot rather than being read from a fixed thunk. `Dynamic`
|
|
18
|
+
* carries no read: the scheduler PRESERVES its slot on
|
|
19
|
+
* re-read, and the consumer supplies/updates the rows from
|
|
20
|
+
* data ITS Model owns via `Scheduled.withRows` — so a
|
|
21
|
+
* record created at runtime lives in the Model and
|
|
22
|
+
* `update` stays a pure `(msg, model) → [model, cmd]`
|
|
23
|
+
* instead of forcing a module-global store (ticket
|
|
24
|
+
* 20260708192518). `Sync`/`Async` are unchanged; a third
|
|
25
|
+
* variant never rewrites an existing consumer.
|
|
26
|
+
*/
|
|
27
|
+
export type TypedSource<T> = Box<"Sync", (path: Path) => ReadonlyArray<T>> | Box<"Async", (path: Path) => Promise<Result<ReadonlyArray<T>, Error>>> | Box<"Dynamic", null> | Box<"Adapter", Option<SoftStr>>;
|
|
28
|
+
/**
|
|
29
|
+
* The erased, `Row`-valued source the scheduler consumes
|
|
30
|
+
* (a {@link TypedSource} with its items already projected
|
|
31
|
+
* through the collection's `toRow`). Same two variants,
|
|
32
|
+
* so the sync/async symmetry survives erasure.
|
|
33
|
+
*/
|
|
34
|
+
export type Source = Box<"Sync", (path: Path) => ReadonlyArray<Row>> | Box<"Async", (path: Path) => Promise<Result<ReadonlyArray<Row>, Error>>> | Box<"Dynamic", null> | Box<"Adapter", Option<SoftStr>>;
|
|
35
|
+
/** A synchronous typed source. */
|
|
36
|
+
export declare const sync: <T>(read: (path: Path) => ReadonlyArray<T>) => TypedSource<T>;
|
|
37
|
+
/** A deferred typed source (folded to a `Cmd`). */
|
|
38
|
+
export declare const async: <T>(read: (path: Path) => Promise<Result<ReadonlyArray<T>, Error>>) => TypedSource<T>;
|
|
39
|
+
/**
|
|
40
|
+
* A consumer-owned (Model-driven) source: the collection's
|
|
41
|
+
* rows live in the scheduler slot, seeded/updated by the
|
|
42
|
+
* consumer from data ITS Model owns via
|
|
43
|
+
* `Scheduled.withRows`, and PRESERVED across navigation.
|
|
44
|
+
* Carries no read thunk (hence `null`) — the point is that
|
|
45
|
+
* no fixed thunk closes over external state, so the
|
|
46
|
+
* consumer's `update` stays pure.
|
|
47
|
+
*/
|
|
48
|
+
export declare const dynamic: <T>() => TypedSource<T>;
|
|
49
|
+
/**
|
|
50
|
+
* A host-adapter source (point 7): the collection's rows
|
|
51
|
+
* come from a registered {@link HostAdapter}'s `read`, run
|
|
52
|
+
* as a deferred `Cmd` exactly like `Async`. The optional
|
|
53
|
+
* `name` selects a NAMED adapter; omitting it reads the
|
|
54
|
+
* DEFAULT (the sole registration) — the common
|
|
55
|
+
* single-backend case names nothing. The read carries no
|
|
56
|
+
* thunk here (the adapter lives in the registry, resolved
|
|
57
|
+
* at read time); an unresolved name is reported by the
|
|
58
|
+
* startup reconciliation and, defensively, lands a Failed
|
|
59
|
+
* slot rather than throwing.
|
|
60
|
+
*/
|
|
61
|
+
export declare const adapter: <T>(name?: SoftStr) => TypedSource<T>;
|
|
62
|
+
/** Matchers for folding a {@link Source}. */
|
|
63
|
+
export declare const sync$: () => {
|
|
64
|
+
__tag: "Sync";
|
|
65
|
+
type: "tag";
|
|
66
|
+
body: undefined;
|
|
67
|
+
};
|
|
68
|
+
export declare const async$: () => {
|
|
69
|
+
__tag: "Async";
|
|
70
|
+
type: "tag";
|
|
71
|
+
body: undefined;
|
|
72
|
+
};
|
|
73
|
+
export declare const dynamic$: () => {
|
|
74
|
+
__tag: "Dynamic";
|
|
75
|
+
type: "tag";
|
|
76
|
+
body: undefined;
|
|
77
|
+
};
|
|
78
|
+
export declare const adapter$: () => {
|
|
79
|
+
__tag: "Adapter";
|
|
80
|
+
type: "tag";
|
|
81
|
+
body: undefined;
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL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KACrC,WAAW,CAAC,CAAC,CAAsB,CAAC;AAEvC,mDAAmD;AACnD,eAAO,MAAM,KAAK,GAAI,CAAC,QACf,CACJ,IAAI,EAAE,IAAI,KACP,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,KAC5C,WAAW,CAAC,CAAC,CAAuB,CAAC;AAExC;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,OAAK,WAAW,CAAC,CAAC,CACrB,CAAC;AAEvB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAChB,OAAO,KACb,WAAW,CAAC,CAAC,CACoB,CAAC;AAErC,6CAA6C;AAC7C,eAAO,MAAM,KAAK;;;;CAA0B,CAAC;AAC7C,eAAO,MAAM,MAAM;;;;CAA2B,CAAC;AAC/C,eAAO,MAAM,QAAQ;;;;CACC,CAAC;AACvB,eAAO,MAAM,QAAQ;;;;CACC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type SoftStr, type Option } from "plgg";
|
|
2
|
+
import { type Cmd } from "plgg-view/client";
|
|
3
|
+
import { type SchedulerMsg } from "../../Schedule/model/Msg";
|
|
4
|
+
import { type HostAdapter, type Effect, type Actor } from "../model/Adapter";
|
|
5
|
+
/**
|
|
6
|
+
* Builds an action `run` from a host adapter's `apply` — the
|
|
7
|
+
* apply HAND-OFF (point 7). `build` turns the dispatch
|
|
8
|
+
* target (the selected row, `None` for a create) into the
|
|
9
|
+
* checked {@link Effect}; the adapter applies it against the
|
|
10
|
+
* actor and the deferred Result folds INSIDE the `cmdEffect`
|
|
11
|
+
* thunk to a `Loaded` (the refreshed rows) or `Failed` (the
|
|
12
|
+
* error on the action-result path, named by `collection`)
|
|
13
|
+
* message. Nothing throws; an apply `Err` surfaces as a
|
|
14
|
+
* value exactly like a read `Err`.
|
|
15
|
+
*
|
|
16
|
+
* The `actor` here is the one the host also passes to
|
|
17
|
+
* `schedule` — the adapter's OPTIONAL re-enforcement seam
|
|
18
|
+
* (defense in depth). The engine's authorize gate over the
|
|
19
|
+
* runtime actor remains the primary boundary; an
|
|
20
|
+
* unauthorized action never reaches this `run` at all.
|
|
21
|
+
*/
|
|
22
|
+
export declare const applyVia: (adapter: HostAdapter, actor: Actor, collection: SoftStr, build: (target: Option<SoftStr>) => Effect) => (target: Option<SoftStr>) => Cmd<SchedulerMsg>;
|
|
23
|
+
//# sourceMappingURL=apply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../src/Declare/usecase/apply.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,GAAG,EAET,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,KAAK,EAEX,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,YAER,WAAW,SACb,KAAK,cACA,OAAO,SACZ,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,cAEnC,MAAM,CAAC,OAAO,CAAC,KAAG,GAAG,CAAC,YAAY,CAUxC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type SoftStr, type Box, type Icon, type Option } from "plgg";
|
|
2
|
+
import { type Row } from "../model/Row";
|
|
3
|
+
/**
|
|
4
|
+
* A host RECORD — the untyped data an adapter read yields
|
|
5
|
+
* before projection: field keys mapped to their string
|
|
6
|
+
* values (the serialization every backend shares). The
|
|
7
|
+
* keyword projection lowers it to a typed {@link Row}.
|
|
8
|
+
*/
|
|
9
|
+
export type HostRecord = ReadonlyArray<readonly [SoftStr, SoftStr]>;
|
|
10
|
+
/**
|
|
11
|
+
* How a projected field lowers its raw string onto the
|
|
12
|
+
* closed {@link FieldValue} union — the DATA form of the
|
|
13
|
+
* per-field kind (the point-6 keyword-projection idea, the
|
|
14
|
+
* declaration-friendly alternative to a `toRow` function).
|
|
15
|
+
* v1 covers the scalar kinds; `Reference`/`Media` (which
|
|
16
|
+
* need several keys) stay in function-`toRow` territory.
|
|
17
|
+
*/
|
|
18
|
+
export type Projected = Icon<"AsText"> | Box<"AsNum", Option<SoftStr>> | Icon<"AsMoment"> | Icon<"AsFlag">;
|
|
19
|
+
/** Project a field as plain text. */
|
|
20
|
+
export declare const asText: () => Projected;
|
|
21
|
+
/** Project a field as a number with an optional unit. */
|
|
22
|
+
export declare const asNum: (unit?: SoftStr) => Projected;
|
|
23
|
+
/** Project a field as a date/time (ISO string). */
|
|
24
|
+
export declare const asMoment: () => Projected;
|
|
25
|
+
/** Project a field as a yes/no flag. */
|
|
26
|
+
export declare const asFlag: () => Projected;
|
|
27
|
+
/**
|
|
28
|
+
* One projected field: the row field `label`, the record
|
|
29
|
+
* `key` it reads, and how it lowers (`as`). A missing key
|
|
30
|
+
* omits the field (totality) — never a crash, never a bare
|
|
31
|
+
* empty cell.
|
|
32
|
+
*/
|
|
33
|
+
export type FieldProjection = Readonly<{
|
|
34
|
+
label: SoftStr;
|
|
35
|
+
key: SoftStr;
|
|
36
|
+
as: Projected;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* A keyword projection: which record keys supply the row's
|
|
40
|
+
* `id` and `label`, and the ordered field projections. The
|
|
41
|
+
* data alternative to a `toRow` function — a manifest/DSL
|
|
42
|
+
* declaration carries this instead of a closure.
|
|
43
|
+
*/
|
|
44
|
+
export type Projection = Readonly<{
|
|
45
|
+
id: SoftStr;
|
|
46
|
+
label: SoftStr;
|
|
47
|
+
fields: ReadonlyArray<FieldProjection>;
|
|
48
|
+
}>;
|
|
49
|
+
/** Constructs a {@link FieldProjection}. */
|
|
50
|
+
export declare const projectField: (label: SoftStr, key: SoftStr, as: Projected) => FieldProjection;
|
|
51
|
+
/** Constructs a {@link Projection}. */
|
|
52
|
+
export declare const projection: (p: {
|
|
53
|
+
id: SoftStr;
|
|
54
|
+
label: SoftStr;
|
|
55
|
+
fields?: ReadonlyArray<FieldProjection>;
|
|
56
|
+
}) => Projection;
|
|
57
|
+
/**
|
|
58
|
+
* Lowers a keyword {@link Projection} to a `toRow`-shaped
|
|
59
|
+
* function `(record) => Row` — the data alternative to a
|
|
60
|
+
* `toRow` closure, usable as any source's projection. Total:
|
|
61
|
+
* an absent `id`/`label` key reads as `""`, and an absent
|
|
62
|
+
* field key OMITS that field rather than throwing (the
|
|
63
|
+
* missing-field totality the gate requires).
|
|
64
|
+
*/
|
|
65
|
+
export declare const projectRow: (spec: Projection) => (record: HostRecord) => Row;
|
|
66
|
+
//# sourceMappingURL=project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/Declare/usecase/project.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,IAAI,EACT,KAAK,MAAM,EAUZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,GAAG,EAST,MAAM,6BAA6B,CAAC;AAErC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,aAAa,CACpC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAC5B,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GACjB,IAAI,CAAC,QAAQ,CAAC,GACd,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,GAC7B,IAAI,CAAC,UAAU,CAAC,GAChB,IAAI,CAAC,QAAQ,CAAC,CAAC;AAEnB,qCAAqC;AACrC,eAAO,MAAM,MAAM,QAAO,SACV,CAAC;AACjB,yDAAyD;AACzD,eAAO,MAAM,KAAK,UACT,O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