plggmatic 0.0.1 → 0.2.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.
Files changed (206) hide show
  1. package/README.md +150 -84
  2. package/dist/Catalog/index.d.ts +17 -0
  3. package/dist/Catalog/index.d.ts.map +1 -0
  4. package/dist/Catalog/model/tool.d.ts +101 -0
  5. package/dist/Catalog/model/tool.d.ts.map +1 -0
  6. package/dist/Catalog/usecase/adapter.d.ts +81 -0
  7. package/dist/Catalog/usecase/adapter.d.ts.map +1 -0
  8. package/dist/Catalog/usecase/catalog.d.ts +43 -0
  9. package/dist/Catalog/usecase/catalog.d.ts.map +1 -0
  10. package/dist/Catalog/usecase/runFlow.d.ts +77 -0
  11. package/dist/Catalog/usecase/runFlow.d.ts.map +1 -0
  12. package/dist/Component/index.d.ts +28 -0
  13. package/dist/Component/index.d.ts.map +1 -0
  14. package/dist/Component/model/interaction.d.ts +41 -0
  15. package/dist/Component/model/interaction.d.ts.map +1 -0
  16. package/dist/Component/model/navItem.d.ts +16 -0
  17. package/dist/Component/model/navItem.d.ts.map +1 -0
  18. package/dist/Component/usecase/breadcrumb.d.ts +26 -0
  19. package/dist/Component/usecase/breadcrumb.d.ts.map +1 -0
  20. package/dist/Component/usecase/button.d.ts +27 -0
  21. package/dist/Component/usecase/button.d.ts.map +1 -0
  22. package/dist/Component/usecase/checkbox.d.ts +20 -0
  23. package/dist/Component/usecase/checkbox.d.ts.map +1 -0
  24. package/dist/Component/usecase/colHead.d.ts +28 -0
  25. package/dist/Component/usecase/colHead.d.ts.map +1 -0
  26. package/dist/Component/usecase/confirmDialog.d.ts +25 -0
  27. package/dist/Component/usecase/confirmDialog.d.ts.map +1 -0
  28. package/dist/Component/usecase/navTree.d.ts +21 -0
  29. package/dist/Component/usecase/navTree.d.ts.map +1 -0
  30. package/dist/Component/usecase/selectInput.d.ts +28 -0
  31. package/dist/Component/usecase/selectInput.d.ts.map +1 -0
  32. package/dist/Component/usecase/textArea.d.ts +22 -0
  33. package/dist/Component/usecase/textArea.d.ts.map +1 -0
  34. package/dist/Component/usecase/textInput.d.ts +23 -0
  35. package/dist/Component/usecase/textInput.d.ts.map +1 -0
  36. package/dist/Component/usecase/textLink.d.ts +26 -0
  37. package/dist/Component/usecase/textLink.d.ts.map +1 -0
  38. package/dist/Component/usecase/themeToggle.d.ts +70 -0
  39. package/dist/Component/usecase/themeToggle.d.ts.map +1 -0
  40. package/dist/Component/usecase/toast.d.ts +32 -0
  41. package/dist/Component/usecase/toast.d.ts.map +1 -0
  42. package/dist/Component/usecase/typography.d.ts +33 -0
  43. package/dist/Component/usecase/typography.d.ts.map +1 -0
  44. package/dist/Declare/model/Action.d.ts +91 -0
  45. package/dist/Declare/model/Action.d.ts.map +1 -0
  46. package/dist/Declare/model/Adapter.d.ts +107 -0
  47. package/dist/Declare/model/Adapter.d.ts.map +1 -0
  48. package/dist/Declare/model/Collection.d.ts +55 -0
  49. package/dist/Declare/model/Collection.d.ts.map +1 -0
  50. package/dist/Declare/model/Declaration.d.ts +27 -0
  51. package/dist/Declare/model/Declaration.d.ts.map +1 -0
  52. package/dist/Declare/model/Menu.d.ts +21 -0
  53. package/dist/Declare/model/Menu.d.ts.map +1 -0
  54. package/dist/Declare/model/Query.d.ts +56 -0
  55. package/dist/Declare/model/Query.d.ts.map +1 -0
  56. package/dist/Declare/model/Row.d.ts +129 -0
  57. package/dist/Declare/model/Row.d.ts.map +1 -0
  58. package/dist/Declare/model/Source.d.ts +83 -0
  59. package/dist/Declare/model/Source.d.ts.map +1 -0
  60. package/dist/Declare/usecase/apply.d.ts +23 -0
  61. package/dist/Declare/usecase/apply.d.ts.map +1 -0
  62. package/dist/Declare/usecase/project.d.ts +66 -0
  63. package/dist/Declare/usecase/project.d.ts.map +1 -0
  64. package/dist/Declare/usecase/reconcile.d.ts +63 -0
  65. package/dist/Declare/usecase/reconcile.d.ts.map +1 -0
  66. package/dist/Flow/model/forms.d.ts +45 -0
  67. package/dist/Flow/model/forms.d.ts.map +1 -0
  68. package/dist/Flow/model/run.d.ts +74 -0
  69. package/dist/Flow/model/run.d.ts.map +1 -0
  70. package/dist/Flow/model/script.d.ts +279 -0
  71. package/dist/Flow/model/script.d.ts.map +1 -0
  72. package/dist/Flow/usecase/interpret.d.ts +17 -0
  73. package/dist/Flow/usecase/interpret.d.ts.map +1 -0
  74. package/dist/Flow/usecase/read.d.ts +46 -0
  75. package/dist/Flow/usecase/read.d.ts.map +1 -0
  76. package/dist/Form/index.d.ts +14 -0
  77. package/dist/Form/index.d.ts.map +1 -0
  78. package/dist/Form/model/control.d.ts +9 -0
  79. package/dist/Form/model/control.d.ts.map +1 -0
  80. package/dist/Form/model/submission.d.ts +30 -0
  81. package/dist/Form/model/submission.d.ts.map +1 -0
  82. package/dist/Form/usecase/controlParts.d.ts +30 -0
  83. package/dist/Form/usecase/controlParts.d.ts.map +1 -0
  84. package/dist/Form/usecase/formView.d.ts +21 -0
  85. package/dist/Form/usecase/formView.d.ts.map +1 -0
  86. package/dist/Form/usecase/parseForm.d.ts +28 -0
  87. package/dist/Form/usecase/parseForm.d.ts.map +1 -0
  88. package/dist/Layout/index.d.ts +16 -0
  89. package/dist/Layout/index.d.ts.map +1 -0
  90. package/dist/Layout/model/pane.d.ts +15 -0
  91. package/dist/Layout/model/pane.d.ts.map +1 -0
  92. package/dist/Layout/usecase/combinators.d.ts +49 -0
  93. package/dist/Layout/usecase/combinators.d.ts.map +1 -0
  94. package/dist/Meta/model/identity.d.ts +16 -0
  95. package/dist/Meta/model/identity.d.ts.map +1 -0
  96. package/dist/Render/index.d.ts +17 -0
  97. package/dist/Render/index.d.ts.map +1 -0
  98. package/dist/Render/model/mode.d.ts +13 -0
  99. package/dist/Render/model/mode.d.ts.map +1 -0
  100. package/dist/Render/model/screen.d.ts +27 -0
  101. package/dist/Render/model/screen.d.ts.map +1 -0
  102. package/dist/Render/usecase/multiColumn.d.ts +52 -0
  103. package/dist/Render/usecase/multiColumn.d.ts.map +1 -0
  104. package/dist/Render/usecase/parts.d.ts +56 -0
  105. package/dist/Render/usecase/parts.d.ts.map +1 -0
  106. package/dist/Render/usecase/renderMode.d.ts +17 -0
  107. package/dist/Render/usecase/renderMode.d.ts.map +1 -0
  108. package/dist/Render/usecase/singleColumn.d.ts +20 -0
  109. package/dist/Render/usecase/singleColumn.d.ts.map +1 -0
  110. package/dist/Schedule/model/Model.d.ts +103 -0
  111. package/dist/Schedule/model/Model.d.ts.map +1 -0
  112. package/dist/Schedule/model/Msg.d.ts +131 -0
  113. package/dist/Schedule/model/Msg.d.ts.map +1 -0
  114. package/dist/Schedule/model/Scene.d.ts +190 -0
  115. package/dist/Schedule/model/Scene.d.ts.map +1 -0
  116. package/dist/Schedule/model/View.d.ts +54 -0
  117. package/dist/Schedule/model/View.d.ts.map +1 -0
  118. package/dist/Schedule/usecase/chain.d.ts +16 -0
  119. package/dist/Schedule/usecase/chain.d.ts.map +1 -0
  120. package/dist/Schedule/usecase/codec.d.ts +44 -0
  121. package/dist/Schedule/usecase/codec.d.ts.map +1 -0
  122. package/dist/Schedule/usecase/lower.d.ts +45 -0
  123. package/dist/Schedule/usecase/lower.d.ts.map +1 -0
  124. package/dist/Schedule/usecase/scene.d.ts +16 -0
  125. package/dist/Schedule/usecase/scene.d.ts.map +1 -0
  126. package/dist/Schedule/usecase/schedule.d.ts +72 -0
  127. package/dist/Schedule/usecase/schedule.d.ts.map +1 -0
  128. package/dist/Schedule/usecase/update.d.ts +39 -0
  129. package/dist/Schedule/usecase/update.d.ts.map +1 -0
  130. package/dist/Style/index.d.ts +30 -0
  131. package/dist/Style/index.d.ts.map +1 -0
  132. package/dist/Style/model/appearance.d.ts +23 -0
  133. package/dist/Style/model/appearance.d.ts.map +1 -0
  134. package/dist/Style/model/breakpoint.d.ts +43 -0
  135. package/dist/Style/model/breakpoint.d.ts.map +1 -0
  136. package/dist/Style/model/hexColor.d.ts +24 -0
  137. package/dist/Style/model/hexColor.d.ts.map +1 -0
  138. package/dist/Style/model/metric.d.ts +35 -0
  139. package/dist/Style/model/metric.d.ts.map +1 -0
  140. package/dist/Style/model/palette.d.ts +38 -0
  141. package/dist/Style/model/palette.d.ts.map +1 -0
  142. package/dist/Style/model/scheme.d.ts +26 -0
  143. package/dist/Style/model/scheme.d.ts.map +1 -0
  144. package/dist/Style/model/syntax.d.ts +54 -0
  145. package/dist/Style/model/syntax.d.ts.map +1 -0
  146. package/dist/Style/model/theme.d.ts +58 -0
  147. package/dist/Style/model/theme.d.ts.map +1 -0
  148. package/dist/Style/model/token.d.ts +142 -0
  149. package/dist/Style/model/token.d.ts.map +1 -0
  150. package/dist/Style/model/typography.d.ts +83 -0
  151. package/dist/Style/model/typography.d.ts.map +1 -0
  152. package/dist/Style/model/zIndex.d.ts +25 -0
  153. package/dist/Style/model/zIndex.d.ts.map +1 -0
  154. package/dist/Style/usecase/appearanceScript.d.ts +43 -0
  155. package/dist/Style/usecase/appearanceScript.d.ts.map +1 -0
  156. package/dist/Style/usecase/chromeCss.d.ts +41 -0
  157. package/dist/Style/usecase/chromeCss.d.ts.map +1 -0
  158. package/dist/Style/usecase/contrast.d.ts +3 -0
  159. package/dist/Style/usecase/contrast.d.ts.map +1 -0
  160. package/dist/Style/usecase/metricCss.d.ts +17 -0
  161. package/dist/Style/usecase/metricCss.d.ts.map +1 -0
  162. package/dist/Style/usecase/reducedMotion.d.ts +20 -0
  163. package/dist/Style/usecase/reducedMotion.d.ts.map +1 -0
  164. package/dist/Style/usecase/schemeCss.d.ts +25 -0
  165. package/dist/Style/usecase/schemeCss.d.ts.map +1 -0
  166. package/dist/Style/usecase/syntaxCss.d.ts +14 -0
  167. package/dist/Style/usecase/syntaxCss.d.ts.map +1 -0
  168. package/dist/Style/usecase/utilities.d.ts +98 -0
  169. package/dist/Style/usecase/utilities.d.ts.map +1 -0
  170. package/dist/brand.d.ts +29 -0
  171. package/dist/brand.d.ts.map +1 -0
  172. package/dist/index.d.ts +52 -13
  173. package/dist/index.d.ts.map +1 -1
  174. package/dist/index.es.js +4369 -407
  175. package/dist/styleEntry.d.ts +29 -0
  176. package/dist/styleEntry.d.ts.map +1 -0
  177. package/dist/styleEntry.es.js +1036 -0
  178. package/package.json +17 -22
  179. package/dist/App/model/AppError.d.ts +0 -31
  180. package/dist/App/model/AppError.d.ts.map +0 -1
  181. package/dist/App/model/AppOptions.d.ts +0 -31
  182. package/dist/App/model/AppOptions.d.ts.map +0 -1
  183. package/dist/Build/usecase/build.d.ts +0 -48
  184. package/dist/Build/usecase/build.d.ts.map +0 -1
  185. package/dist/Cli/usecase/resolveOptions.d.ts +0 -27
  186. package/dist/Cli/usecase/resolveOptions.d.ts.map +0 -1
  187. package/dist/Cli/usecase/runApp.d.ts +0 -39
  188. package/dist/Cli/usecase/runApp.d.ts.map +0 -1
  189. package/dist/Config/usecase/fixtures/invalid.config.d.ts +0 -5
  190. package/dist/Config/usecase/fixtures/invalid.config.d.ts.map +0 -1
  191. package/dist/Config/usecase/fixtures/named-only.config.d.ts +0 -2
  192. package/dist/Config/usecase/fixtures/named-only.config.d.ts.map +0 -1
  193. package/dist/Config/usecase/fixtures/throws.config.d.ts +0 -2
  194. package/dist/Config/usecase/fixtures/throws.config.d.ts.map +0 -1
  195. package/dist/Config/usecase/fixtures/valid.config.d.ts +0 -5
  196. package/dist/Config/usecase/fixtures/valid.config.d.ts.map +0 -1
  197. package/dist/Config/usecase/loadConfig.d.ts +0 -15
  198. package/dist/Config/usecase/loadConfig.d.ts.map +0 -1
  199. package/dist/Routing/usecase/buildRouter.d.ts +0 -17
  200. package/dist/Routing/usecase/buildRouter.d.ts.map +0 -1
  201. package/dist/ssg.d.ts +0 -2
  202. package/dist/ssg.d.ts.map +0 -1
  203. package/dist/ssg.es.js +0 -54
  204. package/dist/style.d.ts +0 -2
  205. package/dist/style.d.ts.map +0 -1
  206. package/dist/style.es.js +0 -98
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controlParts.d.ts","sourceRoot":"","sources":["../../../src/Form/usecase/controlParts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAGZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EAOf,MAAM,WAAW,CAAC;AAGnB;;;;;;;GAOG;AAEH,8DAA8D;AAC9D,eAAO,MAAM,UAAU,GAAI,GAAG,EAC5B,MAAM,OAAO,EACb,WAAW,OAAO,KACjB,IAAI,CAAC,GAAG,EAAE,OAAO,CAOjB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,MAAM,OAAO,KAAG,OACvB,CAAC;AAElB;;;;GAIG;AACH,eAAO,MAAM,SAAS,GACpB,MAAM,OAAO,EACb,OAAO,MAAM,CAAC,OAAO,CAAC,KACrB,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAMzB,CAAC;AAET;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,GAAG,EAC5B,MAAM,OAAO,EACb,OAAO,MAAM,CAAC,OAAO,CAAC,KACrB,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAgBhB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { type SoftStr } from "plgg";
2
+ import { type Html, type Flow } from "plgg-view";
3
+ /**
4
+ * The form assembly: a `<form>` (plgg-view already
5
+ * `preventDefault`s `onSubmit`) wrapping the field
6
+ * controls and a submit button. When `submitting`, the
7
+ * submit button is natively disabled and dims (the
8
+ * pending state; the CONTROLS are disabled by the
9
+ * consumer passing `disabled` to each). One `onSubmit`
10
+ * Msg — the consumer's `update` parses the drafts
11
+ * (`parseForm`) and folds to field errors or the Action's
12
+ * `Cmd`; this component owns no state.
13
+ */
14
+ export type FormViewProps<Msg> = Readonly<{
15
+ fields: ReadonlyArray<Flow<Msg>>;
16
+ submitLabel: SoftStr;
17
+ submitting: boolean;
18
+ onSubmit: Msg;
19
+ }>;
20
+ export declare const formView: <Msg>(props: FormViewProps<Msg>) => Html<Msg, "form">;
21
+ //# sourceMappingURL=formView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formView.d.ts","sourceRoot":"","sources":["../../../src/Form/usecase/formView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,IAAI,EACT,KAAK,IAAI,EAQV,MAAM,WAAW,CAAC;AAQnB;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,CAAC,GAAG,IAAI,QAAQ,CAAC;IACxC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,QAAQ,GAAI,GAAG,EAC1B,OAAO,aAAa,CAAC,GAAG,CAAC,KACxB,IAAI,CAAC,GAAG,EAAE,MAAM,CA6BhB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { type SoftStr, type Datum, type Result, type Option, type InvalidError } from "plgg";
2
+ /**
3
+ * One field's parse contract: its name and a caster that
4
+ * turns the raw draft into a typed value or an
5
+ * `InvalidError`. The caster IS the validation — "parse,
6
+ * don't validate" (`asStr`'s `Result<A, InvalidError>`
7
+ * shape); there is no second validate-then-convert layer.
8
+ */
9
+ export type FieldSpec = Readonly<{
10
+ name: SoftStr;
11
+ cast: (value: unknown) => Result<Datum, InvalidError>;
12
+ }>;
13
+ /** Per-field parse errors — `[name, message]` pairs. */
14
+ export type FormErrors = ReadonlyArray<readonly [SoftStr, SoftStr]>;
15
+ /** The parsed payload — field name → typed value. */
16
+ export type Payload = Readonly<Record<string, Datum>>;
17
+ /**
18
+ * Parses every field's draft through its caster in ONE
19
+ * pass, collecting ALL failures (not fail-fast, unlike a
20
+ * `cast` pipeline — a form shows every field's error at
21
+ * once). `Ok` with the typed payload when all fields
22
+ * parse; `Err` with per-field `[name, message]` errors
23
+ * when any fails. Total and DOM-free.
24
+ */
25
+ export declare const parseForm: (specs: ReadonlyArray<FieldSpec>, draftOf: (name: SoftStr) => SoftStr) => Result<Payload, FormErrors>;
26
+ /** The error message for a field name, if any. */
27
+ export declare const errorFor: (errors: FormErrors, name: SoftStr) => Option<SoftStr>;
28
+ //# sourceMappingURL=parseForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseForm.d.ts","sourceRoot":"","sources":["../../../src/Form/usecase/parseForm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,YAAY,EAUlB,MAAM,MAAM,CAAC;AAEd;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,CACJ,KAAK,EAAE,OAAO,KACX,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;CAClC,CAAC,CAAC;AAEH,wDAAwD;AACxD,MAAM,MAAM,UAAU,GAAG,aAAa,CACpC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAC5B,CAAC;AAEF,qDAAqD;AACrD,MAAM,MAAM,OAAO,GAAG,QAAQ,CAC5B,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CACtB,CAAC;AASF;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,aAAa,CAAC,SAAS,CAAC,EAC/B,SAAS,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,KAClC,MAAM,CAAC,OAAO,EAAE,UAAU,CAwB5B,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,QAAQ,GACnB,QAAQ,UAAU,EAClB,MAAM,OAAO,KACZ,MAAM,CAAC,OAAO,CAad,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The plggmatic Layout module: the column-oriented
3
+ * pattern as COMPOSITION. A screen is an ordered
4
+ * {@link row} of {@link column}s, each holding
5
+ * {@link pane} landmarks — small builders that take
6
+ * `(parts, children)` like element builders take
7
+ * `(attributes, children)`. There is no layout config
8
+ * object and no interpreter: sizing (`basis`/`fluid`),
9
+ * scroll, and responsiveness are style parts and the
10
+ * consumer's own stylesheet targeting the `pm-row`/
11
+ * `pm-col`/`pm-pane` hooks. An explicit named barrel
12
+ * (house style); it grows one recorded rule at a time.
13
+ */
14
+ export { type PaneRole, landmarkTag, } from "./model/pane";
15
+ export { type Parts, row, column, pane, navPane, mainPane, asidePane, } from "./usecase/combinators";
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Layout/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,KAAK,QAAQ,EACb,WAAW,GACZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,KAAK,EACV,GAAG,EACH,MAAM,EACN,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,SAAS,GACV,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type SoftStr } from "plgg";
2
+ /**
3
+ * The landmark role a pane plays in the page. A closed
4
+ * union (not a free string), mapped to a semantic HTML
5
+ * element by an exhaustive `Record` — so every pane
6
+ * renders as a real landmark and a new role cannot be
7
+ * added without giving it an element. This is the seed
8
+ * set the known consumers need (a `navigation` sidebar,
9
+ * a `main` content column, a `complementary` rail/list);
10
+ * more roles arrive one at a time with a consumer.
11
+ */
12
+ export type PaneRole = "navigation" | "main" | "complementary";
13
+ /** The landmark tag for a role. */
14
+ export declare const landmarkTag: (role: PaneRole) => SoftStr;
15
+ //# sourceMappingURL=pane.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pane.d.ts","sourceRoot":"","sources":["../../../src/Layout/model/pane.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC;;;;;;;;;GASG;AACH,MAAM,MAAM,QAAQ,GAClB,YAAY,GAAG,MAAM,GAAG,eAAe,CAAC;AAc1C,mCAAmC;AACnC,eAAO,MAAM,WAAW,GACtB,MAAM,QAAQ,KACb,OAAyB,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { type SoftStr } from "plgg";
2
+ import { type Html } from "plgg-view";
3
+ import { type Styles, type Variant } from "../../styleEntry";
4
+ import { type PaneRole } from "../model/pane";
5
+ /**
6
+ * What a combinator accepts as its style slot: exactly
7
+ * `style_`'s parts (class hooks, atom groups, variants).
8
+ * The combinator merges its own base parts and the
9
+ * consumer's into ONE `style_` call — `style_` is the
10
+ * sole class authority, so two calls on one element
11
+ * would clobber each other.
12
+ */
13
+ export type Parts = ReadonlyArray<SoftStr | Styles | Variant>;
14
+ /**
15
+ * The screen as a horizontal strip of columns — the
16
+ * column-oriented pattern's outermost piece. Purely
17
+ * compositional: `row` contributes only `display:flex`
18
+ * and its `pm-row` hook; height, snapping, and collapse
19
+ * are the consumer's parts and stylesheet. **Recorded
20
+ * rule**: layout combinators take `(parts, children)`
21
+ * like element builders take `(attributes, children)` —
22
+ * options are style atoms you compose, never fields on a
23
+ * config object.
24
+ */
25
+ export declare const row: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
26
+ /**
27
+ * One vertical track of the row. Contributes only the
28
+ * column flow (`flex-direction:column`) and its `pm-col`
29
+ * hook; sizing is a composed atom — `basis("220px")` for
30
+ * a fixed track, `fluid` for the one that fills the
31
+ * remaining row.
32
+ */
33
+ export declare const column: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
34
+ /**
35
+ * A landmark content region inside a column: the
36
+ * accessibility skeleton of the pattern. `pane(role)`
37
+ * renders the role's semantic element (`nav`, `main`,
38
+ * `aside` — see {@link landmarkTag}) around arbitrary
39
+ * consumer content, with the `pm-pane` hook. Scroll,
40
+ * padding, and measure caps are composed parts.
41
+ */
42
+ export declare const pane: (role: PaneRole) => <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
43
+ /** The `navigation` pane — renders a `<nav>` landmark. */
44
+ export declare const navPane: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
45
+ /** The `main` pane — renders the `<main>` landmark. */
46
+ export declare const mainPane: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
47
+ /** The `complementary` pane — renders an `<aside>`. */
48
+ export declare const asidePane: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
49
+ //# sourceMappingURL=combinators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combinators.d.ts","sourceRoot":"","sources":["../../../src/Layout/usecase/combinators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,IAAI,EAAM,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,KAAK,MAAM,EACX,KAAK,OAAO,EAIb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,6BAA6B,CAAC;AAErC;;;;;;;GAOG;AACH,MAAM,MAAM,KAAK,GAAG,aAAa,CAC/B,OAAO,GAAG,MAAM,GAAG,OAAO,CAC3B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,GAAG,GAAI,GAAG,EACrB,OAAO,KAAK,EACZ,UAAU,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KACjC,IAAI,CAAC,GAAG,CAKR,CAAC;AAEJ;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,EACxB,OAAO,KAAK,EACZ,UAAU,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KACjC,IAAI,CAAC,GAAG,CAKR,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI,GACd,MAAM,QAAQ,MACd,GAAG,EACF,OAAO,KAAK,EACZ,UAAU,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KACjC,IAAI,CAAC,GAAG,CAKR,CAAC;AAEN,0DAA0D;AAC1D,eAAO,MAAM,OAAO,GAXjB,GAAG,SACK,KAAK,YACF,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KACjC,IAAI,CAAC,GAAG,CAQ4B,CAAC;AAC1C,uDAAuD;AACvD,eAAO,MAAM,QAAQ,GAblB,GAAG,SACK,KAAK,YACF,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KACjC,IAAI,CAAC,GAAG,CAUuB,CAAC;AACrC,uDAAuD;AACvD,eAAO,MAAM,SAAS,GAfnB,GAAG,SACK,KAAK,YACF,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KACjC,IAAI,CAAC,GAAG,CAYiC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The framework's fixed identity values. `frameworkName`
3
+ * is the one word for this framework everywhere (docs,
4
+ * data attributes, error messages); `cssPrefix` is the
5
+ * namespace every plggmatic CSS custom property carries
6
+ * (`--pm-...`), keeping framework variables from
7
+ * colliding with an app's own.
8
+ */
9
+ export declare const frameworkName = "plggmatic";
10
+ /**
11
+ * Prefix for CSS custom properties owned by plggmatic
12
+ * (e.g. `--pm-surface`). Consumed by the color-scheme
13
+ * emitter.
14
+ */
15
+ export declare const cssPrefix = "pm";
16
+ //# sourceMappingURL=identity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/Meta/model/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,SAAS,OAAO,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The plggmatic Render module: the screen-mode renderers
3
+ * (D10) — pure projections of ticket 09's scheduled
4
+ * `Scene` into a display. The multi-column mode (ticket
5
+ * 10) and the single-column mode + runtime `Mode`
6
+ * dispatcher (ticket 11) live here; each is
7
+ * `(Scene) => Html<SchedulerMsg>`, stores no state, and
8
+ * touches no `window`. `renderMode(mode)(scene)` is the
9
+ * public entry; the two renderers are exported for direct
10
+ * use and testing.
11
+ */
12
+ export { type Mode, modes, toggleMode, } from "./model/mode";
13
+ export { type Screen, currentScreen, } from "./model/screen";
14
+ export { type HeaderLink, type ExtraColumn, type MultiColumnOptions, multiColumn, multiColumnWith, crumbsOf, } from "./usecase/multiColumn";
15
+ export { singleColumn } from "./usecase/singleColumn";
16
+ export { renderMode } from "./usecase/renderMode";
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Render/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,EACL,UAAU,GACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,MAAM,EACX,aAAa,GACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,WAAW,EACX,eAAe,EACf,QAAQ,GACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The display mode a consuming app holds BESIDE the
3
+ * scheduled model (never inside it, never in the
4
+ * declaration, never in the URL — D10). A closed union so
5
+ * the render dispatcher's `match` is exhaustive: adding a
6
+ * third mode is a `tsc` error at the dispatcher, not a
7
+ * blank screen. Pure data — no persistence, no DOM.
8
+ */
9
+ export type Mode = "multiColumn" | "singleColumn";
10
+ export declare const modes: ReadonlyArray<Mode>;
11
+ /** Flips the mode — the runtime toggle a consumer wires. */
12
+ export declare const toggleMode: (m: Mode) => Mode;
13
+ //# sourceMappingURL=mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mode.d.ts","sourceRoot":"","sources":["../../../src/Render/model/mode.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,IAAI,GAAG,aAAa,GAAG,cAAc,CAAC;AAElD,eAAO,MAAM,KAAK,EAAE,aAAa,CAAC,IAAI,CAGrC,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,UAAU,GAAI,GAAG,IAAI,KAAG,IAGlB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { type Option } from "plgg";
2
+ import { type Scene, type Level } from "../../Schedule/model/Scene";
3
+ /**
4
+ * The single-column mode shows ONE operation per screen —
5
+ * and the current screen is DERIVED, never stored (the
6
+ * strongest answer to ticket 09's tenet (g): this
7
+ * renderer holds no state at all). The current screen is
8
+ * the DEEPEST level of the scheduled `Scene` (the menu
9
+ * when nothing is open, the deepest list while browsing,
10
+ * the detail when an item is selected). A `Level` already
11
+ * IS the screen union (menu / list / detail), so `Screen`
12
+ * aliases it; the confirmation is a renderer-owned overlay
13
+ * in both modes (parity is reachability, not identical
14
+ * DOM). The back target for each screen is the level's own
15
+ * truncating `back`, obtained from the scheduler — never
16
+ * recomputed renderer-side.
17
+ */
18
+ export type Screen = Level;
19
+ /**
20
+ * The current screen — the deepest level. `None` only for
21
+ * a structurally-empty scene (the scheduler always emits
22
+ * at least the menu level, so in practice this is
23
+ * `Some`); the renderer degrades to an empty screen rather
24
+ * than crashing.
25
+ */
26
+ export declare const currentScreen: (scene: Scene) => Option<Screen>;
27
+ //# sourceMappingURL=screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../src/Render/model/screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,MAAM,CAAC;AACjD,OAAO,EACL,KAAK,KAAK,EACV,KAAK,KAAK,EACX,MAAM,gCAAgC,CAAC;AAExC;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC;AAE3B;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO,KAAK,KACX,MAAM,CAAC,MAAM,CAGb,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { type SoftStr, type Option } from "plgg";
2
+ import { type Html } from "plgg-view";
3
+ import { type Crumb } from "../../Component/usecase/breadcrumb";
4
+ import { type SchedulerMsg } from "../../Schedule/model/Msg";
5
+ import { type Scene } from "../../Schedule/model/Scene";
6
+ export type HeaderLink = Readonly<{
7
+ collection: SoftStr;
8
+ label: SoftStr;
9
+ href: SoftStr;
10
+ active?: boolean;
11
+ }>;
12
+ export type ExtraColumn<Msg> = Readonly<{
13
+ key: SoftStr;
14
+ title: SoftStr;
15
+ close: Option<SoftStr>;
16
+ body: ReadonlyArray<Html<Msg>>;
17
+ }>;
18
+ export type MultiColumnOptions<Msg> = Readonly<{
19
+ mapMsg: (msg: SchedulerMsg) => Msg;
20
+ headerLinks?: ReadonlyArray<HeaderLink>;
21
+ extraColumns?: ReadonlyArray<ExtraColumn<Msg>>;
22
+ /**
23
+ * When true, the internal breadcrumb is not rendered —
24
+ * the consumer renders its own, e.g. in an app navbar.
25
+ */
26
+ omitBreadcrumb?: boolean;
27
+ /**
28
+ * App-owned columns inserted right AFTER the menu column
29
+ * and before the collection's list/detail columns — e.g.
30
+ * a section sub-menu. Rendered in order; empty when the
31
+ * consumer provides none.
32
+ */
33
+ afterMenu?: ReadonlyArray<ExtraColumn<Msg>>;
34
+ }>;
35
+ /**
36
+ * The MULTI-COLUMN mode renderer (D10) — a pure
37
+ * projection of ticket 09's scheduled {@link Scene} into
38
+ * panes expanding rightward. The base renderer is kept
39
+ * lightweight; consumers that need app-specific actions or
40
+ * forms can use {@link multiColumnWith} to add header links
41
+ * and arbitrary extra columns without teaching the
42
+ * scheduler those domain concepts.
43
+ */
44
+ export declare const multiColumn: (scene: Scene) => Html<SchedulerMsg, "div">;
45
+ export declare const multiColumnWith: <Msg>(scene: Scene, options: MultiColumnOptions<Msg>) => Html<Msg, "div">;
46
+ /**
47
+ * One crumb per level; each crumb links to the URL that
48
+ * makes ITS level the deepest — obtained as the NEXT
49
+ * level's `back` (which truncates to exactly there).
50
+ */
51
+ export declare const crumbsOf: (scene: Scene) => ReadonlyArray<Crumb>;
52
+ //# sourceMappingURL=multiColumn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiColumn.d.ts","sourceRoot":"","sources":["../../../src/Render/usecase/multiColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAQZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAUV,MAAM,WAAW,CAAC;AAanB,OAAO,EACL,KAAK,KAAK,EAEX,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EACL,KAAK,KAAK,EAQX,MAAM,gCAAgC,CAAC;AAexC,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,CAAC,GAAG,IAAI,QAAQ,CAAC;IACtC,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;CAChC,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,CAAC,GAAG,IAAI,QAAQ,CAAC;IAC7C,MAAM,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,GAAG,CAAC;IACnC,WAAW,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACxC,YAAY,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/C;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7C,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GACtB,OAAO,KAAK,KACX,IAAI,CAAC,YAAY,EAAE,KAAK,CAGvB,CAAC;AAEL,eAAO,MAAM,eAAe,GAAI,GAAG,EACjC,OAAO,KAAK,EACZ,SAAS,kBAAkB,CAAC,GAAG,CAAC,KAC/B,IAAI,CAAC,GAAG,EAAE,KAAK,CAgCf,CAAC;AA0CJ;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GACnB,OAAO,KAAK,KACX,aAAa,CAAC,KAAK,CAYnB,CAAC"}
@@ -0,0 +1,56 @@
1
+ import { type SoftStr, type Option } from "plgg";
2
+ import { type Html } from "plgg-view";
3
+ import { type SchedulerMsg } from "../../Schedule/model/Msg";
4
+ import { type ConfirmPrompt, type ActionButton, type QueryState, type RowLink, type MenuLink, type Tile, type DetailField } from "../../Schedule/model/Scene";
5
+ /**
6
+ * The rendering pieces BOTH mode renderers (multi-column,
7
+ * single-column) share — so the two projections of the
8
+ * same {@link Scene} can never drift (mode parity is the
9
+ * proof obligation of ticket 11): the confirmation
10
+ * overlay, the action buttons, the query box, the list
11
+ * rows, the menu nav, and the detail fields. Navigation
12
+ * is links (the runtime turns an in-app `<a>` click into
13
+ * `onUrlChange`); the query, actions, and confirmation
14
+ * dispatch scheduler `Msg`s.
15
+ */
16
+ /**
17
+ * The confirmation, if parked — rendered by ticket 12's
18
+ * framework `confirmDialog` (a real `role="dialog"` /
19
+ * `aria-modal` modal with a backdrop), so both renderers
20
+ * get the accessible dialog. Backdrop-click and Cancel
21
+ * dispatch `cancelAction`, Confirm dispatches
22
+ * `confirmAction`.
23
+ */
24
+ export declare const confirmOverlay: (confirm: Option<ConfirmPrompt>) => ReadonlyArray<Html<SchedulerMsg>>;
25
+ /** The action buttons for a collection (empty when none). */
26
+ export declare const actionRow: (collection: SoftStr, target: Option<SoftStr>, actions: ReadonlyArray<ActionButton>) => ReadonlyArray<Html<SchedulerMsg>>;
27
+ /** The query controls (empty when the list has no query). */
28
+ export declare const queryField: (q: Option<QueryState>) => ReadonlyArray<Html<SchedulerMsg>>;
29
+ /** One list row as a drilling link (`aria-current` when active). */
30
+ export declare const rowItem: (r: RowLink) => Html<SchedulerMsg, "li">;
31
+ /** A row list. */
32
+ export declare const rowList: (rows: ReadonlyArray<RowLink>) => Html<SchedulerMsg, "ul">;
33
+ /**
34
+ * A board's tile grid — the shared `BoardLevel` fold of
35
+ * BOTH mode renderers (the parity obligation), as the
36
+ * `rowList`/`detailFields` parts are for the other level
37
+ * kinds.
38
+ */
39
+ export declare const tileGrid: (tiles: ReadonlyArray<Tile>) => Html<SchedulerMsg, "ul">;
40
+ /** The menu entries as a `navTree`, active one marked. */
41
+ export declare const menuNav: (entries: ReadonlyArray<MenuLink>) => Html<SchedulerMsg>;
42
+ /** A loading hint line (empty when not loading). */
43
+ export declare const loadingHint: (loading: boolean) => ReadonlyArray<Html<SchedulerMsg>>;
44
+ /** A failure hint line (empty when no error). */
45
+ export declare const errorHint: (error: Option<SoftStr>) => ReadonlyArray<Html<SchedulerMsg>>;
46
+ /**
47
+ * The detail fields block. A field's `label` is rendered
48
+ * as a caption above its value when non-empty; an empty
49
+ * label (a body paragraph) renders the value alone — the
50
+ * emptiness is presentation. Values render by their
51
+ * {@link FieldValue} kind via {@link valueNode}.
52
+ */
53
+ export declare const detailFields: (fields: ReadonlyArray<DetailField>) => Html<SchedulerMsg, "div">;
54
+ /** A labelled back affordance (a truncating link), if any. */
55
+ export declare const backControl: (back: Option<SoftStr>) => ReadonlyArray<Html<SchedulerMsg>>;
56
+ //# sourceMappingURL=parts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../../src/Render/usecase/parts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAKZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAkBV,MAAM,WAAW,CAAC;AAOnB,OAAO,EACL,KAAK,YAAY,EAMlB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,UAAU,EAEf,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,WAAW,EACjB,MAAM,gCAAgC,CAAC;AAYxC;;;;;;;;;;GAUG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GACzB,SAAS,MAAM,CAAC,aAAa,CAAC,KAC7B,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAmBvB,CAAC;AAEb,6DAA6D;AAC7D,eAAO,MAAM,SAAS,GACpB,YAAY,OAAO,EACnB,QAAQ,MAAM,CAAC,OAAO,CAAC,EACvB,SAAS,aAAa,CAAC,YAAY,CAAC,KACnC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAyB5B,CAAC;AA0CR,6DAA6D;AAC7D,eAAO,MAAM,UAAU,GACrB,GAAG,MAAM,CAAC,UAAU,CAAC,KACpB,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAmB7B,CAAC;AAEP,oEAAoE;AACpE,eAAO,MAAM,OAAO,GAClB,GAAG,OAAO,KACT,IAAI,CAAC,YAAY,EAAE,IAAI,CAkBvB,CAAC;AAEJ,kBAAkB;AAClB,eAAO,MAAM,OAAO,GAClB,MAAM,aAAa,CAAC,OAAO,CAAC,KAC3B,IAAI,CAAC,YAAY,EAAE,IAAI,CAIvB,CAAC;AAyDJ;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GACnB,OAAO,aAAa,CAAC,IAAI,CAAC,KACzB,IAAI,CAAC,YAAY,EAAE,IAAI,CAIvB,CAAC;AAEJ,0DAA0D;AAC1D,eAAO,MAAM,OAAO,GAClB,SAAS,aAAa,CAAC,QAAQ,CAAC,KAC/B,IAAI,CAAC,YAAY,CAWjB,CAAC;AAWJ,oDAAoD;AACpD,eAAO,MAAM,WAAW,GACtB,SAAS,OAAO,KACf,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAQ3B,CAAC;AAET,iDAAiD;AACjD,eAAO,MAAM,SAAS,GACpB,OAAO,MAAM,CAAC,OAAO,CAAC,KACrB,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAYzB,CAAC;AAoGX;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GACvB,QAAQ,aAAa,CAAC,WAAW,CAAC,KACjC,IAAI,CAAC,YAAY,EAAE,KAAK,CA8BxB,CAAC;AAEJ,8DAA8D;AAC9D,eAAO,MAAM,WAAW,GACtB,MAAM,MAAM,CAAC,OAAO,CAAC,KACpB,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAgB1B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type Html } from "plgg-view";
2
+ import { type SchedulerMsg } from "../../Schedule/model/Msg";
3
+ import { type Scene } from "../../Schedule/model/Scene";
4
+ import { type Mode } from "../model/mode";
5
+ /**
6
+ * The runtime render dispatcher (D10) — the PUBLIC entry a
7
+ * consuming app calls: `renderMode(mode)(scene)`. It
8
+ * exhaustively matches the closed {@link Mode} to a
9
+ * renderer, so adding a mode without a renderer is a `tsc`
10
+ * error here, not a runtime fallback. Because both
11
+ * renderers are pure projections of the SAME scene, a mode
12
+ * flip mid-flow is loss-free by construction: same flow
13
+ * position, selection, query, pending confirmation, and
14
+ * URL — only the projection changes.
15
+ */
16
+ export declare const renderMode: (mode: Mode) => (scene: Scene) => Html<SchedulerMsg, "div">;
17
+ //# sourceMappingURL=renderMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderMode.d.ts","sourceRoot":"","sources":["../../../src/Render/usecase/renderMode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAIxD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,GACpB,MAAM,IAAI,MACV,OAAO,KAAK,KAAG,IAAI,CAAC,YAAY,EAAE,KAAK,CAOvC,CAAC"}
@@ -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;AAoBxC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,KAAK,KACX,IAAI,CAAC,YAAY,EAAE,KAAK,CAwBxB,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,GACrB,MAAM,aAAa,CAAC,GAAG,CAAC,KACvB,IAA2B,CAAC;AAC/B,wCAAwC;AACxC,eAAO,MAAM,UAAU,GACrB,OAAO,OAAO,KACb,IAA4B,CAAC;AAEhC,2CAA2C;AAC3C,eAAO,MAAM,KAAK;;;;CAA0B,CAAC;AAC7C,eAAO,MAAM,QAAQ;;;;CACC,CAAC;AACvB,eAAO,MAAM,WAAW;;;;CACH,CAAC;AACtB,eAAO,MAAM,WAAW;;;;CACH,CAAC;AAEtB;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACtB,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,aAAa,CACzB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAC5B,CAAC;IACF,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/C,OAAO,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;CAChC,CAAC,CAAC;AAEH,yCAAyC;AACzC,eAAO,MAAM,UAAU,GACrB,MAAM,OAAO,KACZ,KAQD,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GACnB,OAAO,KAAK,EACZ,QAAQ,OAAO,KACd,OAcA,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,MAAM,GACjB,OAAO,KAAK,EACZ,YAAY,OAAO,KAClB,IAWA,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,OAAO,GAClB,OAAO,KAAK,EACZ,YAAY,OAAO,EACnB,MAAM,IAAI,KACT,KAQD,CAAC"}