@elaraai/e3-ui 1.0.103 → 1.0.104

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 (287) hide show
  1. package/dist/src/allocation/functions.d.ts +2 -1
  2. package/dist/src/allocation/functions.d.ts.map +1 -1
  3. package/dist/src/allocation/functions.js +3 -2
  4. package/dist/src/allocation/functions.js.map +1 -1
  5. package/dist/src/allocation/index.d.ts +120 -1
  6. package/dist/src/allocation/index.d.ts.map +1 -1
  7. package/dist/src/allocation/index.js +24 -4
  8. package/dist/src/allocation/index.js.map +1 -1
  9. package/dist/src/bind/data-indexed.d.ts +25 -4
  10. package/dist/src/bind/data-indexed.d.ts.map +1 -1
  11. package/dist/src/bind/data-indexed.js +58 -7
  12. package/dist/src/bind/data-indexed.js.map +1 -1
  13. package/dist/src/bind/data.d.ts +12 -14
  14. package/dist/src/bind/data.d.ts.map +1 -1
  15. package/dist/src/bind/data.js +11 -11
  16. package/dist/src/bind/data.js.map +1 -1
  17. package/dist/src/bind/func.d.ts +7 -2
  18. package/dist/src/bind/func.d.ts.map +1 -1
  19. package/dist/src/bind/func.js +10 -3
  20. package/dist/src/bind/func.js.map +1 -1
  21. package/dist/src/calendar/index.d.ts +148 -1
  22. package/dist/src/calendar/index.d.ts.map +1 -1
  23. package/dist/src/calendar/index.js +55 -5
  24. package/dist/src/calendar/index.js.map +1 -1
  25. package/dist/src/flowchart/canvas.d.ts +32 -14
  26. package/dist/src/flowchart/canvas.d.ts.map +1 -1
  27. package/dist/src/flowchart/canvas.js +21 -6
  28. package/dist/src/flowchart/canvas.js.map +1 -1
  29. package/dist/src/flowchart/details.d.ts +469 -0
  30. package/dist/src/flowchart/details.d.ts.map +1 -0
  31. package/dist/src/flowchart/details.js +1035 -0
  32. package/dist/src/flowchart/details.js.map +1 -0
  33. package/dist/src/flowchart/flowchart.d.ts +16 -72
  34. package/dist/src/flowchart/flowchart.d.ts.map +1 -1
  35. package/dist/src/flowchart/flowchart.js +10 -1
  36. package/dist/src/flowchart/flowchart.js.map +1 -1
  37. package/dist/src/flowchart/index.d.ts +282 -251
  38. package/dist/src/flowchart/index.d.ts.map +1 -1
  39. package/dist/src/flowchart/index.js +234 -220
  40. package/dist/src/flowchart/index.js.map +1 -1
  41. package/dist/src/flowchart/kinds.d.ts +438 -0
  42. package/dist/src/flowchart/kinds.d.ts.map +1 -0
  43. package/dist/src/flowchart/kinds.js +799 -0
  44. package/dist/src/flowchart/kinds.js.map +1 -0
  45. package/dist/src/flowchart/library.d.ts +154 -739
  46. package/dist/src/flowchart/library.d.ts.map +1 -1
  47. package/dist/src/flowchart/library.js +191 -673
  48. package/dist/src/flowchart/library.js.map +1 -1
  49. package/dist/src/flowchart/payload.d.ts +3652 -7843
  50. package/dist/src/flowchart/payload.d.ts.map +1 -1
  51. package/dist/src/flowchart/payload.js +331 -469
  52. package/dist/src/flowchart/payload.js.map +1 -1
  53. package/dist/src/flowchart/templates.d.ts +657 -0
  54. package/dist/src/flowchart/templates.d.ts.map +1 -0
  55. package/dist/src/flowchart/templates.js +658 -0
  56. package/dist/src/flowchart/templates.js.map +1 -0
  57. package/dist/src/flowchart/types.d.ts +2258 -214
  58. package/dist/src/flowchart/types.d.ts.map +1 -1
  59. package/dist/src/flowchart/types.js +374 -124
  60. package/dist/src/flowchart/types.js.map +1 -1
  61. package/dist/src/index.d.ts +13 -15
  62. package/dist/src/index.d.ts.map +1 -1
  63. package/dist/src/index.js +24 -29
  64. package/dist/src/index.js.map +1 -1
  65. package/dist/src/internal.d.ts +5 -7
  66. package/dist/src/internal.d.ts.map +1 -1
  67. package/dist/src/internal.js +12 -19
  68. package/dist/src/internal.js.map +1 -1
  69. package/dist/src/ontology/index.d.ts +44 -15
  70. package/dist/src/ontology/index.d.ts.map +1 -1
  71. package/dist/src/ontology/index.js +19 -11
  72. package/dist/src/ontology/index.js.map +1 -1
  73. package/dist/src/plan/event-rows.d.ts +2 -1
  74. package/dist/src/plan/event-rows.d.ts.map +1 -1
  75. package/dist/src/plan/event-rows.js +6 -4
  76. package/dist/src/plan/event-rows.js.map +1 -1
  77. package/dist/src/plan/ir.d.ts +1 -0
  78. package/dist/src/plan/ir.d.ts.map +1 -1
  79. package/dist/src/plan/plan.d.ts +145 -1
  80. package/dist/src/plan/plan.d.ts.map +1 -1
  81. package/dist/src/plan/plan.js +67 -3
  82. package/dist/src/plan/plan.js.map +1 -1
  83. package/dist/src/plan/types.d.ts +1 -0
  84. package/dist/src/plan/types.d.ts.map +1 -1
  85. package/dist/src/query/builder.d.ts +362 -315
  86. package/dist/src/query/builder.d.ts.map +1 -1
  87. package/dist/src/query/builder.js +12 -1
  88. package/dist/src/query/builder.js.map +1 -1
  89. package/dist/src/query/index.d.ts +5 -1
  90. package/dist/src/query/index.d.ts.map +1 -1
  91. package/dist/src/query/index.js +3 -1
  92. package/dist/src/query/index.js.map +1 -1
  93. package/dist/src/roster/fit.d.ts +5 -2
  94. package/dist/src/roster/fit.d.ts.map +1 -1
  95. package/dist/src/roster/fit.js +5 -3
  96. package/dist/src/roster/fit.js.map +1 -1
  97. package/dist/src/roster/index.d.ts +103 -2
  98. package/dist/src/roster/index.d.ts.map +1 -1
  99. package/dist/src/roster/index.js +45 -6
  100. package/dist/src/roster/index.js.map +1 -1
  101. package/dist/src/runtime/index.d.ts +1 -3
  102. package/dist/src/runtime/index.d.ts.map +1 -1
  103. package/dist/src/runtime/index.js +1 -3
  104. package/dist/src/runtime/index.js.map +1 -1
  105. package/dist/src/schedule/record-window.d.ts +1 -0
  106. package/dist/src/schedule/record-window.d.ts.map +1 -1
  107. package/dist/src/schematic/index.d.ts +1 -1
  108. package/dist/src/schematic/index.d.ts.map +1 -1
  109. package/dist/src/schematic/index.js +1 -1
  110. package/dist/src/schematic/index.js.map +1 -1
  111. package/dist/src/schematic/kinds.d.ts +4 -24
  112. package/dist/src/schematic/kinds.d.ts.map +1 -1
  113. package/dist/src/schematic/kinds.js +8 -212
  114. package/dist/src/schematic/kinds.js.map +1 -1
  115. package/dist/src/schematic/payload.d.ts +140 -1
  116. package/dist/src/schematic/payload.d.ts.map +1 -1
  117. package/dist/src/schematic/payload.js +38 -1
  118. package/dist/src/schematic/payload.js.map +1 -1
  119. package/dist/src/schematic/types.d.ts.map +1 -1
  120. package/dist/src/schematic/types.js +4 -36
  121. package/dist/src/schematic/types.js.map +1 -1
  122. package/dist/src/schematic/window.d.ts +9 -42
  123. package/dist/src/schematic/window.d.ts.map +1 -1
  124. package/dist/src/schematic/window.js +10 -115
  125. package/dist/src/schematic/window.js.map +1 -1
  126. package/dist/src/sheet/actions.d.ts +388 -0
  127. package/dist/src/sheet/actions.d.ts.map +1 -0
  128. package/dist/src/sheet/actions.js +594 -0
  129. package/dist/src/sheet/actions.js.map +1 -0
  130. package/dist/src/sheet/bridge.d.ts +12 -1
  131. package/dist/src/sheet/bridge.d.ts.map +1 -1
  132. package/dist/src/sheet/bridge.js +30 -6
  133. package/dist/src/sheet/bridge.js.map +1 -1
  134. package/dist/src/sheet/columns.d.ts +5 -2
  135. package/dist/src/sheet/columns.d.ts.map +1 -1
  136. package/dist/src/sheet/columns.js.map +1 -1
  137. package/dist/src/sheet/draft-bridge.d.ts +9 -4
  138. package/dist/src/sheet/draft-bridge.d.ts.map +1 -1
  139. package/dist/src/sheet/draft-bridge.js +22 -7
  140. package/dist/src/sheet/draft-bridge.js.map +1 -1
  141. package/dist/src/sheet/fields.d.ts +13 -0
  142. package/dist/src/sheet/fields.d.ts.map +1 -1
  143. package/dist/src/sheet/fields.js +3 -0
  144. package/dist/src/sheet/fields.js.map +1 -1
  145. package/dist/src/sheet/index.d.ts +32 -2
  146. package/dist/src/sheet/index.d.ts.map +1 -1
  147. package/dist/src/sheet/index.js +18 -3
  148. package/dist/src/sheet/index.js.map +1 -1
  149. package/dist/src/sheet/library.d.ts +8 -0
  150. package/dist/src/sheet/library.d.ts.map +1 -1
  151. package/dist/src/sheet/root.d.ts +23 -1
  152. package/dist/src/sheet/root.d.ts.map +1 -1
  153. package/dist/src/sheet/root.js +40 -5
  154. package/dist/src/sheet/root.js.map +1 -1
  155. package/dist/src/sheet/sheet.d.ts +7843 -4132
  156. package/dist/src/sheet/sheet.d.ts.map +1 -1
  157. package/dist/src/sheet/sheet.js +41 -2
  158. package/dist/src/sheet/sheet.js.map +1 -1
  159. package/dist/src/sheet/templates.d.ts +4 -0
  160. package/dist/src/sheet/templates.d.ts.map +1 -1
  161. package/dist/src/sheet/types.d.ts +12449 -5268
  162. package/dist/src/sheet/types.d.ts.map +1 -1
  163. package/dist/src/sheet/types.js +114 -2
  164. package/dist/src/sheet/types.js.map +1 -1
  165. package/dist/src/utils/derive.d.ts +1 -1
  166. package/dist/src/utils/derive.js +1 -1
  167. package/dist/src/utils/record-kind.d.ts +625 -0
  168. package/dist/src/utils/record-kind.d.ts.map +1 -0
  169. package/dist/src/utils/record-kind.js +450 -0
  170. package/dist/src/utils/record-kind.js.map +1 -0
  171. package/dist/src/utils/views.d.ts +55 -0
  172. package/dist/src/utils/views.d.ts.map +1 -0
  173. package/dist/src/utils/views.js +72 -0
  174. package/dist/src/utils/views.js.map +1 -0
  175. package/dist/src/utils/vocabulary.d.ts +48 -0
  176. package/dist/src/utils/vocabulary.d.ts.map +1 -0
  177. package/dist/src/utils/vocabulary.js +47 -0
  178. package/dist/src/utils/vocabulary.js.map +1 -0
  179. package/dist/test/allocation/allocation.examples.d.ts +2 -0
  180. package/dist/test/allocation/allocation.examples.d.ts.map +1 -1
  181. package/dist/test/allocation/allocation.examples.js +81 -2
  182. package/dist/test/allocation/allocation.examples.js.map +1 -1
  183. package/dist/test/bind/func/func.examples.d.ts +19 -1
  184. package/dist/test/bind/func/func.examples.d.ts.map +1 -1
  185. package/dist/test/bind/func/func.examples.js +36 -1
  186. package/dist/test/bind/func/func.examples.js.map +1 -1
  187. package/dist/test/calendar/calendar.examples.d.ts +2 -0
  188. package/dist/test/calendar/calendar.examples.d.ts.map +1 -1
  189. package/dist/test/calendar/calendar.examples.js +80 -2
  190. package/dist/test/calendar/calendar.examples.js.map +1 -1
  191. package/dist/test/decision/queue.examples.d.ts +1 -0
  192. package/dist/test/decision/queue.examples.d.ts.map +1 -1
  193. package/dist/test/decision/queue.examples.js +12 -0
  194. package/dist/test/decision/queue.examples.js.map +1 -1
  195. package/dist/test/examples-package.d.ts.map +1 -1
  196. package/dist/test/examples-package.js +5 -4
  197. package/dist/test/examples-package.js.map +1 -1
  198. package/dist/test/flowchart/flowchart.examples.d.ts +1250 -4605
  199. package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -1
  200. package/dist/test/flowchart/flowchart.examples.js +861 -512
  201. package/dist/test/flowchart/flowchart.examples.js.map +1 -1
  202. package/dist/test/ontology/ontology.examples.d.ts +2 -3
  203. package/dist/test/ontology/ontology.examples.d.ts.map +1 -1
  204. package/dist/test/ontology/ontology.examples.js +32 -21
  205. package/dist/test/ontology/ontology.examples.js.map +1 -1
  206. package/dist/test/plan/plan-events.examples.d.ts +1 -0
  207. package/dist/test/plan/plan-events.examples.d.ts.map +1 -1
  208. package/dist/test/plan/plan-events.examples.js +44 -0
  209. package/dist/test/plan/plan-events.examples.js.map +1 -1
  210. package/dist/test/plan/plan-nested.examples.d.ts +2 -2
  211. package/dist/test/plan/plan-nested.examples.js +5 -5
  212. package/dist/test/plan/plan-nested.examples.js.map +1 -1
  213. package/dist/test/plan/plan-records.examples.d.ts.map +1 -1
  214. package/dist/test/plan/plan-records.examples.js +1 -1
  215. package/dist/test/plan/plan-records.examples.js.map +1 -1
  216. package/dist/test/query/query.examples.d.ts +2 -0
  217. package/dist/test/query/query.examples.d.ts.map +1 -1
  218. package/dist/test/query/query.examples.js +37 -1
  219. package/dist/test/query/query.examples.js.map +1 -1
  220. package/dist/test/roster/roster.examples.d.ts +2 -0
  221. package/dist/test/roster/roster.examples.d.ts.map +1 -1
  222. package/dist/test/roster/roster.examples.js +76 -15
  223. package/dist/test/roster/roster.examples.js.map +1 -1
  224. package/dist/test/schematic/schematic-records.examples.d.ts.map +1 -1
  225. package/dist/test/schematic/schematic-records.examples.js +6 -4
  226. package/dist/test/schematic/schematic-records.examples.js.map +1 -1
  227. package/dist/test/schematic/schematic.examples.d.ts +1 -0
  228. package/dist/test/schematic/schematic.examples.d.ts.map +1 -1
  229. package/dist/test/schematic/schematic.examples.js +144 -0
  230. package/dist/test/schematic/schematic.examples.js.map +1 -1
  231. package/dist/test/sheet/sheet-actions.examples.d.ts +1264 -0
  232. package/dist/test/sheet/sheet-actions.examples.d.ts.map +1 -0
  233. package/dist/test/sheet/sheet-actions.examples.js +394 -0
  234. package/dist/test/sheet/sheet-actions.examples.js.map +1 -0
  235. package/dist/test/sheet/sheet.examples.d.ts +1 -0
  236. package/dist/test/sheet/sheet.examples.d.ts.map +1 -1
  237. package/dist/test/sheet/sheet.examples.js +77 -0
  238. package/dist/test/sheet/sheet.examples.js.map +1 -1
  239. package/dist/test/studio/studio.examples.d.ts +1 -0
  240. package/dist/test/studio/studio.examples.d.ts.map +1 -1
  241. package/dist/test/studio/studio.examples.js +18 -8
  242. package/dist/test/studio/studio.examples.js.map +1 -1
  243. package/package.json +12 -12
  244. package/dist/src/diff/index.d.ts +0 -407
  245. package/dist/src/diff/index.d.ts.map +0 -1
  246. package/dist/src/diff/index.js +0 -203
  247. package/dist/src/diff/index.js.map +0 -1
  248. package/dist/src/experiment/index.d.ts +0 -1033
  249. package/dist/src/experiment/index.d.ts.map +0 -1
  250. package/dist/src/experiment/index.js +0 -197
  251. package/dist/src/experiment/index.js.map +0 -1
  252. package/dist/src/experiment/types.d.ts +0 -1093
  253. package/dist/src/experiment/types.d.ts.map +0 -1
  254. package/dist/src/experiment/types.js +0 -423
  255. package/dist/src/experiment/types.js.map +0 -1
  256. package/dist/src/flowchart/over.d.ts +0 -227
  257. package/dist/src/flowchart/over.d.ts.map +0 -1
  258. package/dist/src/flowchart/over.js +0 -213
  259. package/dist/src/flowchart/over.js.map +0 -1
  260. package/dist/src/flowchart/patch.d.ts +0 -64
  261. package/dist/src/flowchart/patch.d.ts.map +0 -1
  262. package/dist/src/flowchart/patch.js +0 -67
  263. package/dist/src/flowchart/patch.js.map +0 -1
  264. package/dist/src/flowchart/values.d.ts +0 -271
  265. package/dist/src/flowchart/values.d.ts.map +0 -1
  266. package/dist/src/flowchart/values.js +0 -220
  267. package/dist/src/flowchart/values.js.map +0 -1
  268. package/dist/src/flowchart/window.d.ts +0 -306
  269. package/dist/src/flowchart/window.d.ts.map +0 -1
  270. package/dist/src/flowchart/window.js +0 -63
  271. package/dist/src/flowchart/window.js.map +0 -1
  272. package/dist/src/runtime/diff.d.ts +0 -36
  273. package/dist/src/runtime/diff.d.ts.map +0 -1
  274. package/dist/src/runtime/diff.js +0 -34
  275. package/dist/src/runtime/diff.js.map +0 -1
  276. package/dist/src/runtime/experiment.d.ts +0 -48
  277. package/dist/src/runtime/experiment.d.ts.map +0 -1
  278. package/dist/src/runtime/experiment.js +0 -10
  279. package/dist/src/runtime/experiment.js.map +0 -1
  280. package/dist/test/diff/diff.examples.d.ts +0 -313
  281. package/dist/test/diff/diff.examples.d.ts.map +0 -1
  282. package/dist/test/diff/diff.examples.js +0 -452
  283. package/dist/test/diff/diff.examples.js.map +0 -1
  284. package/dist/test/experiment/experiment.examples.d.ts +0 -1512
  285. package/dist/test/experiment/experiment.examples.d.ts.map +0 -1
  286. package/dist/test/experiment/experiment.examples.js +0 -609
  287. package/dist/test/experiment/experiment.examples.js.map +0 -1
@@ -1,313 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Elara AI Pty Ltd
3
- * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
- */
5
- /** @jsxImportSource @elaraai/e3-ui */
6
- /**
7
- * Diff component examples — realistic editing scenes that combine
8
- * `Data.bind` with east-ui form components and a `<Diff>` panel
9
- * surfacing the pending changes for sign-off.
10
- *
11
- * Coverage:
12
- * 1. Slider-driven editor → workforcePolicyEditor
13
- * 2. Editor variants panel → diffEditorVariants (heterogeneous inputs /
14
- * mixed sliders + inputs / Set / Dict / Variant / density presets)
15
- * 3. Editable Table cells → rosterTableEditor
16
- * 4. Minimal call site → diffDefaults (IR-roundtrip)
17
- * 5. Merge-conflict chooser → mergeConflictDemo
18
- * 6. Overlay-mode patches → diffOverlayVariants
19
- * 7. Staged + patch datasets → diffStagedPatchVariants
20
- *
21
- * Pattern:
22
- * 1. Declare an `e3.input(name, type, variant('value', default))` per editable scalar.
23
- * 2. Inside `<Reactive>`, bind each via `Data.bind`.
24
- * 3. Wire form components — `read()` for the current value,
25
- * `write()` on change.
26
- * 4. Close the scene with `<Diff bindings={[...]} />` — Apply commits
27
- * the merged batch; Discard drops the buffer.
28
- */
29
- import { FloatType, IntegerType, StringType, BooleanType, DateTimeType, ArrayType, StructType, SetType, DictType, VariantType, NullType, variant } from "@elaraai/east";
30
- import * as e3 from "@elaraai/e3";
31
- export declare const maxWeeklyHoursInput: e3.DatasetDef<FloatType, [variant<"field", "inputs">, variant<"field", "max_weekly_hours">]>;
32
- export declare const overtimeThresholdInput: e3.DatasetDef<FloatType, [variant<"field", "inputs">, variant<"field", "overtime_threshold_hours">]>;
33
- export declare const restGapHoursInput: e3.DatasetDef<FloatType, [variant<"field", "inputs">, variant<"field", "mandatory_rest_gap_hours">]>;
34
- export declare const holidayPenaltyInput: e3.DatasetDef<FloatType, [variant<"field", "inputs">, variant<"field", "public_holiday_penalty">]>;
35
- export declare const serviceNameInput: e3.DatasetDef<StringType, [variant<"field", "inputs">, variant<"field", "service_name">]>;
36
- export declare const replicasInput: e3.DatasetDef<IntegerType, [variant<"field", "inputs">, variant<"field", "replicas">]>;
37
- export declare const autoScaleInput: e3.DatasetDef<BooleanType, [variant<"field", "inputs">, variant<"field", "auto_scale">]>;
38
- export declare const regionInput: e3.DatasetDef<StringType, [variant<"field", "inputs">, variant<"field", "region">]>;
39
- export declare const deployAfterInput: e3.DatasetDef<DateTimeType, [variant<"field", "inputs">, variant<"field", "deploy_after">]>;
40
- export declare const rosterInput: e3.DatasetDef<ArrayType<StructType<{
41
- readonly id: StringType;
42
- readonly name: StringType;
43
- readonly rate: FloatType;
44
- readonly shiftLength: IntegerType;
45
- }>>, [variant<"field", "inputs">, variant<"field", "roster">]>;
46
- export declare const mergeDemoHoursInput: e3.DatasetDef<FloatType, [variant<"field", "inputs">, variant<"field", "merge_demo_hours">]>;
47
- export declare const listPriceInput: e3.DatasetDef<FloatType, [variant<"field", "inputs">, variant<"field", "list_price">]>;
48
- export declare const discountPctInput: e3.DatasetDef<FloatType, [variant<"field", "inputs">, variant<"field", "discount_pct">]>;
49
- export declare const minOrderQtyInput: e3.DatasetDef<IntegerType, [variant<"field", "inputs">, variant<"field", "min_order_qty">]>;
50
- export declare const currencyCodeInput: e3.DatasetDef<StringType, [variant<"field", "inputs">, variant<"field", "currency_code">]>;
51
- export declare const featureFlagsInput: e3.DatasetDef<SetType<StringType>, [variant<"field", "inputs">, variant<"field", "feature_flags">]>;
52
- export declare const regionalPricesInput: e3.DatasetDef<DictType<StringType, FloatType>, [variant<"field", "inputs">, variant<"field", "regional_prices">]>;
53
- export declare const deploymentStatusInput: e3.DatasetDef<VariantType<{
54
- readonly pending: NullType;
55
- readonly in_progress: NullType;
56
- readonly complete: NullType;
57
- readonly failed: NullType;
58
- }>, [variant<"field", "inputs">, variant<"field", "deployment_status">]>;
59
- export declare const workforcePolicyEditor: import("@elaraai/east").ExampleDef<[], any>;
60
- export declare const diffEditorVariants: import("@elaraai/east").ExampleDef<[], any>;
61
- export declare const rosterTableEditor: import("@elaraai/east").ExampleDef<[], any>;
62
- export declare const diffDefaults: import("@elaraai/east").ExampleDef<[], any>;
63
- /**
64
- * Demonstrates the staged-mode merge tool / orange chooser. Workflow:
65
- *
66
- * 1. Drag the slider — your edit gets staged (snapshot pinned in StagedStore).
67
- * 2. Click "Simulate concurrent edit" — `Data.bind.write(42.0)` writes 42 to
68
- * the same path through the live cache, mimicking another session
69
- * committing while you have edits open. Server view is now 42; your
70
- * pinned snapshot is still 38; your buffer is whatever you dragged to.
71
- * 3. Click Apply — `detectConflictsFor(userPatch, serverPatch)` finds both
72
- * sides touching the root, switches the renderer to conflict mode, and
73
- * shows the orange chooser row: keep yours (your dragged value), keep
74
- * theirs (42), or manual (type a fresh number).
75
- */
76
- export declare const mergeConflictDemo: import("@elaraai/east").ExampleDef<[], any>;
77
- export declare const maxWeeklyHoursPatchInput: e3.DatasetDef<VariantType<{
78
- unchanged: NullType;
79
- replace: StructType<{
80
- before: FloatType;
81
- after: FloatType;
82
- }>;
83
- }>, [variant<"field", "inputs">, variant<"field", "max_weekly_hours_patch">]>;
84
- export declare const regionalPricesPatchInput: e3.DatasetDef<VariantType<{
85
- unchanged: NullType;
86
- replace: StructType<{
87
- before: DictType<StringType, FloatType>;
88
- after: DictType<StringType, FloatType>;
89
- }>;
90
- patch: DictType<StringType, VariantType<{
91
- delete: FloatType;
92
- insert: FloatType;
93
- update: VariantType<{
94
- unchanged: NullType;
95
- replace: StructType<{
96
- before: FloatType;
97
- after: FloatType;
98
- }>;
99
- }>;
100
- }>>;
101
- }>, [variant<"field", "inputs">, variant<"field", "regional_prices_patch">]>;
102
- export declare const rosterPatchInput: e3.DatasetDef<VariantType<{
103
- unchanged: NullType;
104
- replace: StructType<{
105
- before: ArrayType<StructType<{
106
- readonly id: StringType;
107
- readonly name: StringType;
108
- readonly rate: FloatType;
109
- readonly shiftLength: IntegerType;
110
- }>>;
111
- after: ArrayType<StructType<{
112
- readonly id: StringType;
113
- readonly name: StringType;
114
- readonly rate: FloatType;
115
- readonly shiftLength: IntegerType;
116
- }>>;
117
- }>;
118
- patch: ArrayType<StructType<{
119
- key: IntegerType;
120
- offset: IntegerType;
121
- operation: VariantType<{
122
- delete: StructType<{
123
- readonly id: StringType;
124
- readonly name: StringType;
125
- readonly rate: FloatType;
126
- readonly shiftLength: IntegerType;
127
- }>;
128
- insert: StructType<{
129
- readonly id: StringType;
130
- readonly name: StringType;
131
- readonly rate: FloatType;
132
- readonly shiftLength: IntegerType;
133
- }>;
134
- update: VariantType<{
135
- unchanged: NullType;
136
- replace: StructType<{
137
- before: StructType<{
138
- readonly id: StringType;
139
- readonly name: StringType;
140
- readonly rate: FloatType;
141
- readonly shiftLength: IntegerType;
142
- }>;
143
- after: StructType<{
144
- readonly id: StringType;
145
- readonly name: StringType;
146
- readonly rate: FloatType;
147
- readonly shiftLength: IntegerType;
148
- }>;
149
- }>;
150
- patch: StructType<{
151
- readonly id: VariantType<{
152
- unchanged: NullType;
153
- replace: StructType<{
154
- before: StringType;
155
- after: StringType;
156
- }>;
157
- }>;
158
- readonly name: VariantType<{
159
- unchanged: NullType;
160
- replace: StructType<{
161
- before: StringType;
162
- after: StringType;
163
- }>;
164
- }>;
165
- readonly rate: VariantType<{
166
- unchanged: NullType;
167
- replace: StructType<{
168
- before: FloatType;
169
- after: FloatType;
170
- }>;
171
- }>;
172
- readonly shiftLength: VariantType<{
173
- unchanged: NullType;
174
- replace: StructType<{
175
- before: IntegerType;
176
- after: IntegerType;
177
- }>;
178
- }>;
179
- }>;
180
- }>;
181
- }>;
182
- }>>;
183
- }>, [variant<"field", "inputs">, variant<"field", "roster_patch">]>;
184
- export declare const regionalPricesDriftPatchInput: e3.DatasetDef<VariantType<{
185
- unchanged: NullType;
186
- replace: StructType<{
187
- before: DictType<StringType, FloatType>;
188
- after: DictType<StringType, FloatType>;
189
- }>;
190
- patch: DictType<StringType, VariantType<{
191
- delete: FloatType;
192
- insert: FloatType;
193
- update: VariantType<{
194
- unchanged: NullType;
195
- replace: StructType<{
196
- before: FloatType;
197
- after: FloatType;
198
- }>;
199
- }>;
200
- }>>;
201
- }>, [variant<"field", "inputs">, variant<"field", "regional_prices_drift_patch">]>;
202
- export declare const rosterDriftPatchInput: e3.DatasetDef<VariantType<{
203
- unchanged: NullType;
204
- replace: StructType<{
205
- before: ArrayType<StructType<{
206
- readonly id: StringType;
207
- readonly name: StringType;
208
- readonly rate: FloatType;
209
- readonly shiftLength: IntegerType;
210
- }>>;
211
- after: ArrayType<StructType<{
212
- readonly id: StringType;
213
- readonly name: StringType;
214
- readonly rate: FloatType;
215
- readonly shiftLength: IntegerType;
216
- }>>;
217
- }>;
218
- patch: ArrayType<StructType<{
219
- key: IntegerType;
220
- offset: IntegerType;
221
- operation: VariantType<{
222
- delete: StructType<{
223
- readonly id: StringType;
224
- readonly name: StringType;
225
- readonly rate: FloatType;
226
- readonly shiftLength: IntegerType;
227
- }>;
228
- insert: StructType<{
229
- readonly id: StringType;
230
- readonly name: StringType;
231
- readonly rate: FloatType;
232
- readonly shiftLength: IntegerType;
233
- }>;
234
- update: VariantType<{
235
- unchanged: NullType;
236
- replace: StructType<{
237
- before: StructType<{
238
- readonly id: StringType;
239
- readonly name: StringType;
240
- readonly rate: FloatType;
241
- readonly shiftLength: IntegerType;
242
- }>;
243
- after: StructType<{
244
- readonly id: StringType;
245
- readonly name: StringType;
246
- readonly rate: FloatType;
247
- readonly shiftLength: IntegerType;
248
- }>;
249
- }>;
250
- patch: StructType<{
251
- readonly id: VariantType<{
252
- unchanged: NullType;
253
- replace: StructType<{
254
- before: StringType;
255
- after: StringType;
256
- }>;
257
- }>;
258
- readonly name: VariantType<{
259
- unchanged: NullType;
260
- replace: StructType<{
261
- before: StringType;
262
- after: StringType;
263
- }>;
264
- }>;
265
- readonly rate: VariantType<{
266
- unchanged: NullType;
267
- replace: StructType<{
268
- before: FloatType;
269
- after: FloatType;
270
- }>;
271
- }>;
272
- readonly shiftLength: VariantType<{
273
- unchanged: NullType;
274
- replace: StructType<{
275
- before: IntegerType;
276
- after: IntegerType;
277
- }>;
278
- }>;
279
- }>;
280
- }>;
281
- }>;
282
- }>>;
283
- }>, [variant<"field", "inputs">, variant<"field", "roster_drift_patch">]>;
284
- /**
285
- * Overlay-mode variant panel. POLICY OVERLAY: Slider edits go to
286
- * `max_weekly_hours_patch`, the Diff card surfaces the patch against the
287
- * source. REGIONAL PRICING OVERLAY DRIFT: the patch input *starts* with a
288
- * non-trivial patch that is stale relative to the source — what the Diff card
289
- * displays when a server-stored patch was authored against an older revision
290
- * (stale delete, stale insert, stale replace); no form components, because
291
- * `view.read()` calls `apply(source, patch)` which throws `ConflictError` on
292
- * the stale ops, while the Diff card walks the patch IR directly from cache
293
- * bytes (no apply) so it renders cleanly (the bind is kept so the renderer's
294
- * overlay-type registry knows how to decode the patch bytes). ROSTER OVERLAY
295
- * DRIFT: an array-of-structs patch exercising nested grouping (binding →
296
- * `[index]` → struct field) — only `rate` of entries 0 and 1 change, so the
297
- * card renders `ROSTER → [0] → rate`, `[1] → rate`. ROSTER TABLE OVERLAY:
298
- * the roster table editor with patches stored in `roster_patch`, surviving
299
- * page reload and visible to other workspace sessions.
300
- */
301
- export declare const diffOverlayVariants: import("@elaraai/east").ExampleDef<[], any>;
302
- /**
303
- * Staged + patch variant panel. POLICY STAGED PATCH: single-Float
304
- * staged-with-patch editor — buffered Slider edits publish to
305
- * `max_weekly_hours_patch` on Apply; the source `max_weekly_hours` stays
306
- * untouched until a separate apply-patch-to-source step. ROSTER STAGED
307
- * PATCH: the roster table editor in staged + patch mode — cell edits buffer
308
- * in IndexedDB until Apply, which publishes a fresh patch to `roster_patch`;
309
- * survives reload as a draft, and multi-session reviewers see the patch only
310
- * after the author commits.
311
- */
312
- export declare const diffStagedPatchVariants: import("@elaraai/east").ExampleDef<[], any>;
313
- //# sourceMappingURL=diff.examples.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diff.examples.d.ts","sourceRoot":"","sources":["../../../test/diff/diff.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AAEtC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAEH,SAAS,EACT,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,OAAO,EACP,QAAQ,EACR,WAAW,EACX,QAAQ,EAKR,OAAO,EAIV,MAAM,eAAe,CAAC;AAMvB,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAQlC,eAAO,MAAM,mBAAmB,8FAA+E,CAAC;AAChH,eAAO,MAAM,sBAAsB,sGAA4E,CAAC;AAChH,eAAO,MAAM,iBAAiB,sGAAiF,CAAC;AAChH,eAAO,MAAM,mBAAmB,oGAA8E,CAAC;AAG/G,eAAO,MAAM,gBAAgB,2FAA0E,CAAC;AACxG,eAAO,MAAM,aAAa,wFAAqE,CAAC;AAChG,eAAO,MAAM,cAAc,0FAAuE,CAAC;AACnG,eAAO,MAAM,WAAW,qFAAqF,CAAC;AAC9G,eAAO,MAAM,gBAAgB,6FAAgG,CAAC;AAU9H,eAAO,MAAM,WAAW;;;;;8DAKrB,CAAC;AAMJ,eAAO,MAAM,mBAAmB,8FAAkE,CAAC;AAGnG,eAAO,MAAM,cAAc,wFAA2E,CAAC;AACvG,eAAO,MAAM,gBAAgB,0FAAwE,CAAC;AACtG,eAAO,MAAM,gBAAgB,6FAAsE,CAAC;AACpG,eAAO,MAAM,iBAAiB,4FAAwE,CAAC;AAGvG,eAAO,MAAM,iBAAiB,qGAI7B,CAAC;AAGF,eAAO,MAAM,mBAAmB,mHAS/B,CAAC;AASF,eAAO,MAAM,qBAAqB;;;;;wEAIjC,CAAC;AAMF,eAAO,MAAM,qBAAqB,6CA4ChC,CAAC;AASH,eAAO,MAAM,kBAAkB,6CA2Q7B,CAAC;AAQH,eAAO,MAAM,iBAAiB,6CAuE5B,CAAC;AAMH,eAAO,MAAM,YAAY,6CAYvB,CAAC;AAUH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,6CA2C5B,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;6EAIpC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;4EAIpC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAI5B,CAAC;AAiBF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;kFASzC,CAAC;AAkBF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAIjC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB,6CAkI9B,CAAC;AAUH;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,6CAwFlC,CAAC"}