@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.
- package/dist/src/allocation/functions.d.ts +2 -1
- package/dist/src/allocation/functions.d.ts.map +1 -1
- package/dist/src/allocation/functions.js +3 -2
- package/dist/src/allocation/functions.js.map +1 -1
- package/dist/src/allocation/index.d.ts +120 -1
- package/dist/src/allocation/index.d.ts.map +1 -1
- package/dist/src/allocation/index.js +24 -4
- package/dist/src/allocation/index.js.map +1 -1
- package/dist/src/bind/data-indexed.d.ts +25 -4
- package/dist/src/bind/data-indexed.d.ts.map +1 -1
- package/dist/src/bind/data-indexed.js +58 -7
- package/dist/src/bind/data-indexed.js.map +1 -1
- package/dist/src/bind/data.d.ts +12 -14
- package/dist/src/bind/data.d.ts.map +1 -1
- package/dist/src/bind/data.js +11 -11
- package/dist/src/bind/data.js.map +1 -1
- package/dist/src/bind/func.d.ts +7 -2
- package/dist/src/bind/func.d.ts.map +1 -1
- package/dist/src/bind/func.js +10 -3
- package/dist/src/bind/func.js.map +1 -1
- package/dist/src/calendar/index.d.ts +148 -1
- package/dist/src/calendar/index.d.ts.map +1 -1
- package/dist/src/calendar/index.js +55 -5
- package/dist/src/calendar/index.js.map +1 -1
- package/dist/src/flowchart/canvas.d.ts +32 -14
- package/dist/src/flowchart/canvas.d.ts.map +1 -1
- package/dist/src/flowchart/canvas.js +21 -6
- package/dist/src/flowchart/canvas.js.map +1 -1
- package/dist/src/flowchart/details.d.ts +469 -0
- package/dist/src/flowchart/details.d.ts.map +1 -0
- package/dist/src/flowchart/details.js +1035 -0
- package/dist/src/flowchart/details.js.map +1 -0
- package/dist/src/flowchart/flowchart.d.ts +16 -72
- package/dist/src/flowchart/flowchart.d.ts.map +1 -1
- package/dist/src/flowchart/flowchart.js +10 -1
- package/dist/src/flowchart/flowchart.js.map +1 -1
- package/dist/src/flowchart/index.d.ts +282 -251
- package/dist/src/flowchart/index.d.ts.map +1 -1
- package/dist/src/flowchart/index.js +234 -220
- package/dist/src/flowchart/index.js.map +1 -1
- package/dist/src/flowchart/kinds.d.ts +438 -0
- package/dist/src/flowchart/kinds.d.ts.map +1 -0
- package/dist/src/flowchart/kinds.js +799 -0
- package/dist/src/flowchart/kinds.js.map +1 -0
- package/dist/src/flowchart/library.d.ts +154 -739
- package/dist/src/flowchart/library.d.ts.map +1 -1
- package/dist/src/flowchart/library.js +191 -673
- package/dist/src/flowchart/library.js.map +1 -1
- package/dist/src/flowchart/payload.d.ts +3652 -7843
- package/dist/src/flowchart/payload.d.ts.map +1 -1
- package/dist/src/flowchart/payload.js +331 -469
- package/dist/src/flowchart/payload.js.map +1 -1
- package/dist/src/flowchart/templates.d.ts +657 -0
- package/dist/src/flowchart/templates.d.ts.map +1 -0
- package/dist/src/flowchart/templates.js +658 -0
- package/dist/src/flowchart/templates.js.map +1 -0
- package/dist/src/flowchart/types.d.ts +2258 -214
- package/dist/src/flowchart/types.d.ts.map +1 -1
- package/dist/src/flowchart/types.js +374 -124
- package/dist/src/flowchart/types.js.map +1 -1
- package/dist/src/index.d.ts +13 -15
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +24 -29
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +5 -7
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +12 -19
- package/dist/src/internal.js.map +1 -1
- package/dist/src/ontology/index.d.ts +44 -15
- package/dist/src/ontology/index.d.ts.map +1 -1
- package/dist/src/ontology/index.js +19 -11
- package/dist/src/ontology/index.js.map +1 -1
- package/dist/src/plan/event-rows.d.ts +2 -1
- package/dist/src/plan/event-rows.d.ts.map +1 -1
- package/dist/src/plan/event-rows.js +6 -4
- package/dist/src/plan/event-rows.js.map +1 -1
- package/dist/src/plan/ir.d.ts +1 -0
- package/dist/src/plan/ir.d.ts.map +1 -1
- package/dist/src/plan/plan.d.ts +145 -1
- package/dist/src/plan/plan.d.ts.map +1 -1
- package/dist/src/plan/plan.js +67 -3
- package/dist/src/plan/plan.js.map +1 -1
- package/dist/src/plan/types.d.ts +1 -0
- package/dist/src/plan/types.d.ts.map +1 -1
- package/dist/src/query/builder.d.ts +362 -315
- package/dist/src/query/builder.d.ts.map +1 -1
- package/dist/src/query/builder.js +12 -1
- package/dist/src/query/builder.js.map +1 -1
- package/dist/src/query/index.d.ts +5 -1
- package/dist/src/query/index.d.ts.map +1 -1
- package/dist/src/query/index.js +3 -1
- package/dist/src/query/index.js.map +1 -1
- package/dist/src/roster/fit.d.ts +5 -2
- package/dist/src/roster/fit.d.ts.map +1 -1
- package/dist/src/roster/fit.js +5 -3
- package/dist/src/roster/fit.js.map +1 -1
- package/dist/src/roster/index.d.ts +103 -2
- package/dist/src/roster/index.d.ts.map +1 -1
- package/dist/src/roster/index.js +45 -6
- package/dist/src/roster/index.js.map +1 -1
- package/dist/src/runtime/index.d.ts +1 -3
- package/dist/src/runtime/index.d.ts.map +1 -1
- package/dist/src/runtime/index.js +1 -3
- package/dist/src/runtime/index.js.map +1 -1
- package/dist/src/schedule/record-window.d.ts +1 -0
- package/dist/src/schedule/record-window.d.ts.map +1 -1
- package/dist/src/schematic/index.d.ts +1 -1
- package/dist/src/schematic/index.d.ts.map +1 -1
- package/dist/src/schematic/index.js +1 -1
- package/dist/src/schematic/index.js.map +1 -1
- package/dist/src/schematic/kinds.d.ts +4 -24
- package/dist/src/schematic/kinds.d.ts.map +1 -1
- package/dist/src/schematic/kinds.js +8 -212
- package/dist/src/schematic/kinds.js.map +1 -1
- package/dist/src/schematic/payload.d.ts +140 -1
- package/dist/src/schematic/payload.d.ts.map +1 -1
- package/dist/src/schematic/payload.js +38 -1
- package/dist/src/schematic/payload.js.map +1 -1
- package/dist/src/schematic/types.d.ts.map +1 -1
- package/dist/src/schematic/types.js +4 -36
- package/dist/src/schematic/types.js.map +1 -1
- package/dist/src/schematic/window.d.ts +9 -42
- package/dist/src/schematic/window.d.ts.map +1 -1
- package/dist/src/schematic/window.js +10 -115
- package/dist/src/schematic/window.js.map +1 -1
- package/dist/src/sheet/actions.d.ts +388 -0
- package/dist/src/sheet/actions.d.ts.map +1 -0
- package/dist/src/sheet/actions.js +594 -0
- package/dist/src/sheet/actions.js.map +1 -0
- package/dist/src/sheet/bridge.d.ts +12 -1
- package/dist/src/sheet/bridge.d.ts.map +1 -1
- package/dist/src/sheet/bridge.js +30 -6
- package/dist/src/sheet/bridge.js.map +1 -1
- package/dist/src/sheet/columns.d.ts +5 -2
- package/dist/src/sheet/columns.d.ts.map +1 -1
- package/dist/src/sheet/columns.js.map +1 -1
- package/dist/src/sheet/draft-bridge.d.ts +9 -4
- package/dist/src/sheet/draft-bridge.d.ts.map +1 -1
- package/dist/src/sheet/draft-bridge.js +22 -7
- package/dist/src/sheet/draft-bridge.js.map +1 -1
- package/dist/src/sheet/fields.d.ts +13 -0
- package/dist/src/sheet/fields.d.ts.map +1 -1
- package/dist/src/sheet/fields.js +3 -0
- package/dist/src/sheet/fields.js.map +1 -1
- package/dist/src/sheet/index.d.ts +32 -2
- package/dist/src/sheet/index.d.ts.map +1 -1
- package/dist/src/sheet/index.js +18 -3
- package/dist/src/sheet/index.js.map +1 -1
- package/dist/src/sheet/library.d.ts +8 -0
- package/dist/src/sheet/library.d.ts.map +1 -1
- package/dist/src/sheet/root.d.ts +23 -1
- package/dist/src/sheet/root.d.ts.map +1 -1
- package/dist/src/sheet/root.js +40 -5
- package/dist/src/sheet/root.js.map +1 -1
- package/dist/src/sheet/sheet.d.ts +7843 -4132
- package/dist/src/sheet/sheet.d.ts.map +1 -1
- package/dist/src/sheet/sheet.js +41 -2
- package/dist/src/sheet/sheet.js.map +1 -1
- package/dist/src/sheet/templates.d.ts +4 -0
- package/dist/src/sheet/templates.d.ts.map +1 -1
- package/dist/src/sheet/types.d.ts +12449 -5268
- package/dist/src/sheet/types.d.ts.map +1 -1
- package/dist/src/sheet/types.js +114 -2
- package/dist/src/sheet/types.js.map +1 -1
- package/dist/src/utils/derive.d.ts +1 -1
- package/dist/src/utils/derive.js +1 -1
- package/dist/src/utils/record-kind.d.ts +625 -0
- package/dist/src/utils/record-kind.d.ts.map +1 -0
- package/dist/src/utils/record-kind.js +450 -0
- package/dist/src/utils/record-kind.js.map +1 -0
- package/dist/src/utils/views.d.ts +55 -0
- package/dist/src/utils/views.d.ts.map +1 -0
- package/dist/src/utils/views.js +72 -0
- package/dist/src/utils/views.js.map +1 -0
- package/dist/src/utils/vocabulary.d.ts +48 -0
- package/dist/src/utils/vocabulary.d.ts.map +1 -0
- package/dist/src/utils/vocabulary.js +47 -0
- package/dist/src/utils/vocabulary.js.map +1 -0
- package/dist/test/allocation/allocation.examples.d.ts +2 -0
- package/dist/test/allocation/allocation.examples.d.ts.map +1 -1
- package/dist/test/allocation/allocation.examples.js +81 -2
- package/dist/test/allocation/allocation.examples.js.map +1 -1
- package/dist/test/bind/func/func.examples.d.ts +19 -1
- package/dist/test/bind/func/func.examples.d.ts.map +1 -1
- package/dist/test/bind/func/func.examples.js +36 -1
- package/dist/test/bind/func/func.examples.js.map +1 -1
- package/dist/test/calendar/calendar.examples.d.ts +2 -0
- package/dist/test/calendar/calendar.examples.d.ts.map +1 -1
- package/dist/test/calendar/calendar.examples.js +80 -2
- package/dist/test/calendar/calendar.examples.js.map +1 -1
- package/dist/test/decision/queue.examples.d.ts +1 -0
- package/dist/test/decision/queue.examples.d.ts.map +1 -1
- package/dist/test/decision/queue.examples.js +12 -0
- package/dist/test/decision/queue.examples.js.map +1 -1
- package/dist/test/examples-package.d.ts.map +1 -1
- package/dist/test/examples-package.js +5 -4
- package/dist/test/examples-package.js.map +1 -1
- package/dist/test/flowchart/flowchart.examples.d.ts +1250 -4605
- package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -1
- package/dist/test/flowchart/flowchart.examples.js +861 -512
- package/dist/test/flowchart/flowchart.examples.js.map +1 -1
- package/dist/test/ontology/ontology.examples.d.ts +2 -3
- package/dist/test/ontology/ontology.examples.d.ts.map +1 -1
- package/dist/test/ontology/ontology.examples.js +32 -21
- package/dist/test/ontology/ontology.examples.js.map +1 -1
- package/dist/test/plan/plan-events.examples.d.ts +1 -0
- package/dist/test/plan/plan-events.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-events.examples.js +44 -0
- package/dist/test/plan/plan-events.examples.js.map +1 -1
- package/dist/test/plan/plan-nested.examples.d.ts +2 -2
- package/dist/test/plan/plan-nested.examples.js +5 -5
- package/dist/test/plan/plan-nested.examples.js.map +1 -1
- package/dist/test/plan/plan-records.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-records.examples.js +1 -1
- package/dist/test/plan/plan-records.examples.js.map +1 -1
- package/dist/test/query/query.examples.d.ts +2 -0
- package/dist/test/query/query.examples.d.ts.map +1 -1
- package/dist/test/query/query.examples.js +37 -1
- package/dist/test/query/query.examples.js.map +1 -1
- package/dist/test/roster/roster.examples.d.ts +2 -0
- package/dist/test/roster/roster.examples.d.ts.map +1 -1
- package/dist/test/roster/roster.examples.js +76 -15
- package/dist/test/roster/roster.examples.js.map +1 -1
- package/dist/test/schematic/schematic-records.examples.d.ts.map +1 -1
- package/dist/test/schematic/schematic-records.examples.js +6 -4
- package/dist/test/schematic/schematic-records.examples.js.map +1 -1
- package/dist/test/schematic/schematic.examples.d.ts +1 -0
- package/dist/test/schematic/schematic.examples.d.ts.map +1 -1
- package/dist/test/schematic/schematic.examples.js +144 -0
- package/dist/test/schematic/schematic.examples.js.map +1 -1
- package/dist/test/sheet/sheet-actions.examples.d.ts +1264 -0
- package/dist/test/sheet/sheet-actions.examples.d.ts.map +1 -0
- package/dist/test/sheet/sheet-actions.examples.js +394 -0
- package/dist/test/sheet/sheet-actions.examples.js.map +1 -0
- package/dist/test/sheet/sheet.examples.d.ts +1 -0
- package/dist/test/sheet/sheet.examples.d.ts.map +1 -1
- package/dist/test/sheet/sheet.examples.js +77 -0
- package/dist/test/sheet/sheet.examples.js.map +1 -1
- package/dist/test/studio/studio.examples.d.ts +1 -0
- package/dist/test/studio/studio.examples.d.ts.map +1 -1
- package/dist/test/studio/studio.examples.js +18 -8
- package/dist/test/studio/studio.examples.js.map +1 -1
- package/package.json +12 -12
- package/dist/src/diff/index.d.ts +0 -407
- package/dist/src/diff/index.d.ts.map +0 -1
- package/dist/src/diff/index.js +0 -203
- package/dist/src/diff/index.js.map +0 -1
- package/dist/src/experiment/index.d.ts +0 -1033
- package/dist/src/experiment/index.d.ts.map +0 -1
- package/dist/src/experiment/index.js +0 -197
- package/dist/src/experiment/index.js.map +0 -1
- package/dist/src/experiment/types.d.ts +0 -1093
- package/dist/src/experiment/types.d.ts.map +0 -1
- package/dist/src/experiment/types.js +0 -423
- package/dist/src/experiment/types.js.map +0 -1
- package/dist/src/flowchart/over.d.ts +0 -227
- package/dist/src/flowchart/over.d.ts.map +0 -1
- package/dist/src/flowchart/over.js +0 -213
- package/dist/src/flowchart/over.js.map +0 -1
- package/dist/src/flowchart/patch.d.ts +0 -64
- package/dist/src/flowchart/patch.d.ts.map +0 -1
- package/dist/src/flowchart/patch.js +0 -67
- package/dist/src/flowchart/patch.js.map +0 -1
- package/dist/src/flowchart/values.d.ts +0 -271
- package/dist/src/flowchart/values.d.ts.map +0 -1
- package/dist/src/flowchart/values.js +0 -220
- package/dist/src/flowchart/values.js.map +0 -1
- package/dist/src/flowchart/window.d.ts +0 -306
- package/dist/src/flowchart/window.d.ts.map +0 -1
- package/dist/src/flowchart/window.js +0 -63
- package/dist/src/flowchart/window.js.map +0 -1
- package/dist/src/runtime/diff.d.ts +0 -36
- package/dist/src/runtime/diff.d.ts.map +0 -1
- package/dist/src/runtime/diff.js +0 -34
- package/dist/src/runtime/diff.js.map +0 -1
- package/dist/src/runtime/experiment.d.ts +0 -48
- package/dist/src/runtime/experiment.d.ts.map +0 -1
- package/dist/src/runtime/experiment.js +0 -10
- package/dist/src/runtime/experiment.js.map +0 -1
- package/dist/test/diff/diff.examples.d.ts +0 -313
- package/dist/test/diff/diff.examples.d.ts.map +0 -1
- package/dist/test/diff/diff.examples.js +0 -452
- package/dist/test/diff/diff.examples.js.map +0 -1
- package/dist/test/experiment/experiment.examples.d.ts +0 -1512
- package/dist/test/experiment/experiment.examples.d.ts.map +0 -1
- package/dist/test/experiment/experiment.examples.js +0 -609
- package/dist/test/experiment/experiment.examples.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/flowchart/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/flowchart/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACnH,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvG,OAAO,EAAE,wBAAwB,EAA6B,uBAAuB,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACnI,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EACH,0BAA0B,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,EACtJ,sBAAsB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,qBAAqB,EAC5I,qBAAqB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C;QAC/B,mFAAmF;QACnF,SAAS,EAAE,OAAO,sBAAsB,CAAC;QACzC,kFAAkF;QAClF,OAAO,EAAE,OAAO,oBAAoB,CAAC;KACxC,CAAC;CACL;AAOD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,0BAgC9B,CAAC"}
|
|
@@ -3,255 +3,257 @@
|
|
|
3
3
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* The Flowchart (#
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* The Flowchart (#1498): the state-transition flowchart over the app's own
|
|
7
|
+
* records, e3-ui's as the Plan, the Sheet and the Schematic are.
|
|
8
|
+
* `<Flowchart>` declares its kinds over the app's records — its states, and
|
|
9
|
+
* beside them its transitions, lanes and decisions, each record's fields
|
|
10
|
+
* mapped to the Flowchart's roles — and returns its payload through the
|
|
11
|
+
* `Flowchart` carrier, which e3-ui-components' renderer draws in its builder
|
|
12
|
+
* frame and edits through its editing session.
|
|
12
13
|
*
|
|
13
|
-
* - `types.ts` — the
|
|
14
|
-
*
|
|
15
|
-
* - `
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* - `
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* - `
|
|
24
|
-
*
|
|
25
|
-
*
|
|
14
|
+
* - `types.ts` — the value types its accessors return and its canvas
|
|
15
|
+
* carries, and the kinds' wire (`Flowchart.Types.*`).
|
|
16
|
+
* - `kinds.ts` — `Flowchart.states`, `transitions`, `lanes` and
|
|
17
|
+
* `decisions`: each role's check, the binding a kind's read takes, and the
|
|
18
|
+
* closed functions over beast2 bytes.
|
|
19
|
+
* - `details.ts` — `Flowchart.details` and its four reads, `Flowchart.figure`,
|
|
20
|
+
* `.histogram`, `.list` and `.tags`: a state's or a transition's details
|
|
21
|
+
* over the app's rows, read as the kind is.
|
|
22
|
+
* - `templates.ts` — `Flowchart.templates`, a kind's cards read from a
|
|
23
|
+
* record.
|
|
24
|
+
* - `library.ts` — `Flowchart.library`, the library pane's tabs, and their
|
|
25
|
+
* wire.
|
|
26
|
+
* - `canvas.ts` — the canvas: what the Flowchart draws with besides its kinds.
|
|
26
27
|
* - `payload.ts` — the payload, its carrier, the shared keys, the props and
|
|
27
28
|
* their refusals.
|
|
28
29
|
* - `flowchart.ts` — the tag.
|
|
29
30
|
*
|
|
30
31
|
* @packageDocumentation
|
|
31
32
|
*/
|
|
32
|
-
import {
|
|
33
|
+
import { SchedulePatchTypeFor, schedulePatch } from "../schedule/patch.js";
|
|
33
34
|
import { FlowchartCanvasType } from "./canvas.js";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
35
|
+
import { flowchartDetails, flowchartFigure, flowchartHistogram, flowchartList, flowchartTags } from "./details.js";
|
|
36
|
+
import { FlowchartTag } from "./flowchart.js";
|
|
37
|
+
import { flowchartDecisions, flowchartLanes, flowchartStates, flowchartTransitions } from "./kinds.js";
|
|
38
|
+
import { FlowchartKindTabWireType, FlowchartLibraryFactories, FlowchartLibraryTabType } from "./library.js";
|
|
39
|
+
import { FlowchartComponent, FlowchartPayloadType, createFlowchartPayload } from "./payload.js";
|
|
40
|
+
import { flowchartTemplates } from "./templates.js";
|
|
41
|
+
import { FlowchartDecisionEntryType, FlowchartDecisionKindType, FlowchartDecisionRolesType, FlowchartDetailRowType, FlowchartDetailsType, FlowchartEvidenceType, FlowchartFreshnessType, FlowchartLaneEntryType, FlowchartLaneKindType, FlowchartLaneRolesType, FlowchartLaneWriteType, FlowchartLinkKindType, FlowchartNarrowedType, FlowchartOrientationType, FlowchartReadType, FlowchartShowType, FlowchartStateEntryType, FlowchartStateKindType, FlowchartStateRolesType, FlowchartStateWriteType, FlowchartTagColorType, FlowchartTemplateType, FlowchartTransitionEntryType, FlowchartTransitionKindType, FlowchartTransitionRolesType, FlowchartTransitionWriteType, FlowchartWeighedType, } from "./types.js";
|
|
40
42
|
export { FlowchartTag } from "./flowchart.js";
|
|
41
43
|
export { FlowchartCanvasType, buildCanvas, } from "./canvas.js";
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
/** The East types a
|
|
44
|
+
export { FLOWCHART_DEF, flowchartDecisions, flowchartLanes, flowchartStates, flowchartTransitions, isFlowchartKind, } from "./kinds.js";
|
|
45
|
+
export { FLOWCHART_DETAILS, FlowchartDetailsBrand, FlowchartReadBrand, flowchartDetails, flowchartFigure, flowchartHistogram, flowchartList, flowchartTags, isFlowchartDetails, } from "./details.js";
|
|
46
|
+
export { FLOWCHART_TEMPLATES, checkedFlowchartTemplates, flowchartTemplates, isFlowchartTemplates, } from "./templates.js";
|
|
47
|
+
export { FlowchartKindTabWireType, FlowchartLibraryCardType, FlowchartLibraryFactories, FlowchartLibraryTabType, buildFlowchartLibrary, flowchartTabSources, libraryLanes, libraryStates, libraryTab, libraryTransitions, } from "./library.js";
|
|
48
|
+
export { FlowchartComponent, FlowchartPayloadType, createFlowchartPayload, flowchartKeys, } from "./payload.js";
|
|
49
|
+
/** The East types a Flowchart is written with. */
|
|
48
50
|
const TYPES = {
|
|
49
|
-
Flow: FlowchartFlowType,
|
|
50
|
-
Flows: FlowchartFlowsType,
|
|
51
|
-
State: FlowchartStateType,
|
|
52
|
-
Link: FlowchartLinkType,
|
|
53
|
-
Lane: FlowchartLaneType,
|
|
54
|
-
Trigger: FlowchartTriggerType,
|
|
55
51
|
Evidence: FlowchartEvidenceType,
|
|
56
52
|
Kind: FlowchartLinkKindType,
|
|
57
53
|
Orientation: FlowchartOrientationType,
|
|
58
54
|
Freshness: FlowchartFreshnessType,
|
|
59
|
-
Patch:
|
|
55
|
+
Patch: SchedulePatchTypeFor,
|
|
56
|
+
TagColor: FlowchartTagColorType,
|
|
60
57
|
};
|
|
61
58
|
/** The namespace's members — everything `Flowchart` carries beside the tag itself. */
|
|
62
59
|
const MEMBERS = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
states: flowchartStates,
|
|
61
|
+
transitions: flowchartTransitions,
|
|
62
|
+
lanes: flowchartLanes,
|
|
63
|
+
decisions: flowchartDecisions,
|
|
64
|
+
details: flowchartDetails,
|
|
65
|
+
figure: flowchartFigure,
|
|
66
|
+
histogram: flowchartHistogram,
|
|
67
|
+
list: flowchartList,
|
|
68
|
+
tags: flowchartTags,
|
|
69
|
+
templates: flowchartTemplates,
|
|
70
|
+
patch: schedulePatch,
|
|
67
71
|
library: FlowchartLibraryFactories,
|
|
68
72
|
Types: TYPES,
|
|
69
73
|
};
|
|
70
74
|
/**
|
|
71
|
-
* `<Flowchart>` —
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* inspector shows what is
|
|
75
|
+
* `<Flowchart>` — one state-transition flowchart over the app's own records:
|
|
76
|
+
* its states as cards in ordered lanes (the layout derived, no coordinates),
|
|
77
|
+
* H/V-routed transitions between them, the decisions that govern them as
|
|
78
|
+
* lettered diamonds, and evidence-weighted strokes. The selection — a state,
|
|
79
|
+
* a transition, a decision, a lane by its header, or several states — and the
|
|
80
|
+
* pointer-highlight grammar are built in, and the inspector shows what is
|
|
81
|
+
* selected.
|
|
77
82
|
*
|
|
78
83
|
* @remarks
|
|
79
|
-
* - **Its
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* `
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* the
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* the
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* the author's own cards (`Flowchart.library.tab(rows, …)`), a drag source
|
|
123
|
-
* when the tab declares a `drop`. Each data tab reads its own rows apart
|
|
124
|
-
* from the flows and from the other tabs. Templates are records (#1340,
|
|
125
|
-
* ruling 9): each list's rows are its record's (`Data.bind(record).read()`,
|
|
126
|
-
* a `Dict<String, T>`), and it names its `source` of the slice. An author's
|
|
127
|
-
* tab reads an Array or a `Dict<String, T>`, and naming a `source` follows
|
|
128
|
-
* it. A click selects a card, and a click on the selected card lets it go;
|
|
129
|
-
* an empty tab says so in the shared empty state, and one the rail leaves
|
|
130
|
-
* none says so, with a Clear.
|
|
131
|
-
* - **Its drops** (#1249): a card carried onto the canvas lands where its tab
|
|
132
|
-
* says — a state template on a lane, adding a state at the row under the
|
|
133
|
-
* pointer, its key the drop's, made unique or minted; a transition template
|
|
134
|
-
* on a transition, retyping it; an author's card on what its drop's type
|
|
135
|
-
* names — the ghost saying where, or, red, why not. ⏎ on a card drops it on
|
|
136
|
-
* the canvas's selection, and on a touch screen so does a tap on the
|
|
137
|
-
* selected card. Each drop is one transaction of the open flow's session.
|
|
138
|
-
* - **Its edits** are its editing session's (#1247): over a record, and over
|
|
139
|
-
* `data` given `onApply`, every gesture — "+ LANE", a lane's header
|
|
140
|
-
* double-clicked into its rename (a click selects the lane, #1250) or its ×
|
|
141
|
-
* (off while the lane holds states), the "+ STATE" ghost, a state
|
|
142
|
-
* double-clicked into its editor (a new key rekeys its transitions and the
|
|
143
|
-
* decisions' queues) or dragged across lanes, a handle dragged to another
|
|
144
|
-
* state, Del on the selected state, states, transition, decision or empty
|
|
145
|
-
* lane, and every edit the inspector makes — is one transaction the history
|
|
146
|
-
* item undoes and redoes (⌘Z, ⇧⌘Z or ⌘Y anywhere in the frame but a field
|
|
147
|
-
* being typed into), and Save sends the open flow's drafts as one commit:
|
|
148
|
-
* through the record's patch mutation, or as one patch of `data`'s value to
|
|
149
|
-
* the host's `onApply`, handed the session's request id with it — the same
|
|
150
|
-
* id on a Retry, so a host that keys its write by it writes once (#1275).
|
|
151
|
-
* Two lanes, states, transitions or decisions of one
|
|
152
|
-
* key hold Save off. The footer counts the changes waiting on Save.
|
|
153
|
-
* - **Its flows** are an e3 record's (`record`): `Flowchart.Types.Flows`,
|
|
154
|
-
* flows by name, bound with its patch mutation, the canvas showing `flow`,
|
|
155
|
-
* else the first by name. A record always holds flows by name (ruled
|
|
156
|
-
* 2026-10-07: e3's patch mutation writes only keyed records), so a lone flow
|
|
157
|
-
* is a record of one entry. Or they are the host's (`data`): flows by name
|
|
158
|
-
* or one flow — a value, an expression or a bind handle — the value's type
|
|
159
|
-
* picking the arm, one prop taking either; `Flowchart.over` builds one flow
|
|
160
|
-
* from the host's own tables through their row mappers. The host's flows
|
|
161
|
-
* are never narrowed: a task narrows the rows it builds them from.
|
|
162
|
-
* - **Its narrowing** (#1346) is one `Slice.bindRecords`, `slice={{ slice:
|
|
163
|
-
* Slice.bindRecords(key, { flows, … }) }}`, its rail on the toolbar. Over a
|
|
164
|
-
* record, its `flows` source — `Data.bindPaged(record, { indexes })` over
|
|
165
|
-
* the same record, its `fields` the indexes' — narrows the Flows tab, which
|
|
166
|
-
* pages it a window at a time with its count, the tab's own search finding
|
|
167
|
-
* within the narrowing by the source's `search` fields; the open flow is
|
|
168
|
-
* read by its name whatever the narrowing, and keeps its drafts. Each other
|
|
169
|
-
* source narrows the templates list or the author's tab that names it, by
|
|
170
|
-
* its cards' keys.
|
|
171
|
-
* - **A dataset's value** is written as literals with `Flowchart.values`
|
|
172
|
-
* (flows by name) or `Flowchart.value` (one flow), checked when the package
|
|
173
|
-
* builds.
|
|
84
|
+
* - **Its kinds** are the app's records (R1): `states`, and beside them
|
|
85
|
+
* `transitions`, `lanes` and `decisions` — `Flowchart.states(record, { … })`
|
|
86
|
+
* and the rest — whose roles are the record's fields where a gesture
|
|
87
|
+
* writes them or they name another row's key (a state's `label`, `lane`
|
|
88
|
+
* and `order`; a transition's `from`, `to` and `decision`; a lane's `label`
|
|
89
|
+
* and `order`; a decision's `queue`), and accessors over a row and its key
|
|
90
|
+
* for the rest (R2). A role naming a field the row lacks, or one of another
|
|
91
|
+
* type, is a type error naming the fields that fit. No record of the app's
|
|
92
|
+
* holds a type of the Flowchart's.
|
|
93
|
+
* - **How a kind is bound follows how it is read** (R3): a state or a
|
|
94
|
+
* transition `Record.bind(record)`, its record declaring `patch:
|
|
95
|
+
* mutation.patch()`, to edit it — read whole, or through its source of the
|
|
96
|
+
* slice with `entries: Data.bindPaged(record)` beside it — `Data.bind`,
|
|
97
|
+
* read only and whole, or `Data.bindPaged` alone, read only, through its
|
|
98
|
+
* source; a lane or a decision `Record.bind` or `Data.bind`, read whole.
|
|
99
|
+
* - **Its details** (R18–R21): a state or a transition takes `details`,
|
|
100
|
+
* `Flowchart.details(binding, { details: [ … ] })` over the app's rows keyed
|
|
101
|
+
* as the kind's are, read only and bound as the kind is read — four reads,
|
|
102
|
+
* `Flowchart.figure`, `.histogram`, `.list` and `.tags`, in one array drawn
|
|
103
|
+
* in its order on the cards and labels and shown in full in the inspector,
|
|
104
|
+
* each where its `show` says.
|
|
105
|
+
* - **Its narrowing** (R4) is one `Slice.bindRecords`, `slice={{ slice:
|
|
106
|
+
* Slice.bindRecords(key, { … }) }}`, its rail on the toolbar: its sources
|
|
107
|
+
* named `states` and `transitions` — each `Data.bindPaged(record, { indexes
|
|
108
|
+
* })` over that kind's own record — narrow that kind, and each other source
|
|
109
|
+
* the cards list or the author's tab that names it. A preset may narrow
|
|
110
|
+
* both at once: a record holding many flows shows one through a preset over
|
|
111
|
+
* the field both share. `narrowed="dim"` draws what the narrowing leaves
|
|
112
|
+
* out as context.
|
|
113
|
+
* - **Its edits** are its editing session's: every gesture — "+ LANE", a
|
|
114
|
+
* lane's rename, the "+ STATE" ghost, a state's rename or move across lanes
|
|
115
|
+
* or between two cards, a handle dragged to another state, Del, a card
|
|
116
|
+
* dropped from the library, and every edit the inspector makes — writes
|
|
117
|
+
* only its roles' fields, one transaction the history item undoes and
|
|
118
|
+
* redoes, and Save writes each record through its own patch door.
|
|
119
|
+
* - **Its library** (R14): the Steps, Transitions and Lanes tabs
|
|
120
|
+
* (`Flowchart.library.states()`, `.transitions()`, `.lanes()`) list each
|
|
121
|
+
* kind's cards — `Flowchart.templates(rows, { name, values, source })` on
|
|
122
|
+
* the kind — and `Flowchart.library.tab(rows, { … })` the app's own, its
|
|
123
|
+
* `drop` a `Flowchart.patch(R, { … })` over one kind's row type.
|
|
124
|
+
* - **Its inspector** is on unless `inspector={false}`: Details shows what is
|
|
125
|
+
* selected through its kind's form, or its kind's own `inspector`, and
|
|
126
|
+
* Issues what holds Save off.
|
|
174
127
|
* - **The host hears** the selection (`onSelectState`, `onSelectLink`,
|
|
175
128
|
* `onSelectTrigger`) and a traced path (`onTracePath`), and vetoes a
|
|
176
129
|
* connection with `canConnect`.
|
|
177
|
-
* -
|
|
178
|
-
*
|
|
179
|
-
* record; `window`, which the slice's `flows` source replaced; a `slice`
|
|
180
|
-
* that is not `{ slice }` — the bare handle a flow from the host's tables
|
|
181
|
-
* was narrowed by — or not `Slice.bindRecords` (`Slice.bind`,
|
|
182
|
-
* `Slice.bindRecord`), or holding a source nothing names; a `flows` source
|
|
183
|
-
* over `data`; `affordances` outside `slice`; a templates list written in
|
|
184
|
-
* the code, naming no source, or naming `flows`, and the two lists naming
|
|
185
|
-
* one source; `flow` over one flow; a record of one flow, or of another
|
|
186
|
-
* type, or not bound with its patch mutation; `"brush"` among the
|
|
187
|
-
* affordances; `height` or `maxHeight`, which the box it fills sets; `density`, which nothing drew by — the canvas draws at one
|
|
188
|
-
* rhythm, the spec's 116×40 cards in their lanes (#1251); a callback for an
|
|
189
|
-
* edit (`onAddState`, `onCreateLink`, …)
|
|
190
|
-
* or `linkMode`, which the session's gestures replace; a hover card's
|
|
191
|
-
* builder (`stateHover`, `linkHover`, `triggerHover`), which the inspector
|
|
192
|
-
* replaces; an `inspector` of another kind than a Boolean or `{ state,
|
|
193
|
-
* transition }`, a key other than those two, or a kind's own Details of
|
|
194
|
-
* another type than `(Row, (Row) => Null) => UIComponentType`; a library
|
|
195
|
-
* that lists a tab twice — the Flows tab or a template tab, or two of the
|
|
196
|
-
* author's tabs of one name — or the Flows tab over one flow; a data tab
|
|
197
|
-
* whose rows are neither an Array nor a `Dict<String, T>`, or a templates
|
|
198
|
-
* list's or a sourced tab's that are no `Dict<String, T>`; a tab's source
|
|
199
|
-
* the slice lacks; a `states` drop
|
|
200
|
-
* over another type than a state's patch, a `transitions` drop over another
|
|
201
|
-
* than a transition's, and a `tab` drop over none of a flow's row types.
|
|
202
|
-
*
|
|
203
|
-
* The closed-set fields in data (`kind`, `orientation`) are typed variant
|
|
204
|
-
* values, `Flowchart.Types.*`.
|
|
130
|
+
* - It fills the box it is given and draws no border: give it a box of its
|
|
131
|
+
* own height.
|
|
205
132
|
*
|
|
206
133
|
* @example
|
|
207
134
|
* ```tsx
|
|
208
135
|
* // .tsx file with the `@jsxImportSource @elaraai/e3-ui` pragma
|
|
209
|
-
* import { East } from "@elaraai/east";
|
|
136
|
+
* import { DateTimeType, DictType, East, FloatType, IntegerType, NullType, OptionType, StringType, StructType, VariantType, none, some, variant } from "@elaraai/east";
|
|
210
137
|
* import { Box, Reactive, UIComponentType } from "@elaraai/east-ui";
|
|
211
|
-
* import {
|
|
138
|
+
* import { Data, Flowchart } from "@elaraai/e3-ui";
|
|
212
139
|
* import e3 from "@elaraai/e3";
|
|
213
140
|
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
* },
|
|
141
|
+
* // The depot's states, transitions and lanes: three records of the app's, keyed by String, each row its own type.
|
|
142
|
+
* export const DepotState = StructType({
|
|
143
|
+
* name: StringType, // what its card calls it
|
|
144
|
+
* phase: StringType, // the lane it stands in, by the lane's key
|
|
145
|
+
* seq: FloatType, // its place in its lane
|
|
146
|
+
* slots: OptionType(IntegerType), // a class of interchangeable states: the ×N badge
|
|
147
|
+
* flow: StringType, // the flow it belongs to: one record holds the depot's flows
|
|
148
|
+
* });
|
|
149
|
+
* export const DepotTransition = StructType({
|
|
150
|
+
* src: StringType, // the state it leaves, by its key
|
|
151
|
+
* dst: StringType, // the state it enters
|
|
152
|
+
* kind: VariantType({ planned: NullType, observed: NullType }),
|
|
153
|
+
* trigger: OptionType(StringType), // the decision that governs it, by its key
|
|
154
|
+
* volume: OptionType(FloatType), // the parcels measured on it
|
|
155
|
+
* n: OptionType(IntegerType), // the moves behind them
|
|
156
|
+
* at: OptionType(DateTimeType), // when they were measured
|
|
157
|
+
* flow: StringType,
|
|
158
|
+
* });
|
|
159
|
+
* export const DepotLane = StructType({ label: StringType, seq: FloatType });
|
|
160
|
+
* export const depotStates = e3.record("flowchart_depot_states", DictType(StringType, DepotState), {
|
|
161
|
+
* initial: new Map([
|
|
162
|
+
* ["ARV", { name: "Arrived", phase: "intake", seq: 1, slots: none, flow: "Parcels" }],
|
|
163
|
+
* ["SCN", { name: "Scanned", phase: "intake", seq: 2, slots: none, flow: "Parcels" }],
|
|
164
|
+
* ["IND", { name: "Inducted", phase: "induct", seq: 1, slots: none, flow: "Parcels" }],
|
|
165
|
+
* ["LBL", { name: "Relabelled", phase: "induct", seq: 2, slots: none, flow: "Parcels" }],
|
|
166
|
+
* ["CH*", { name: "Sort chutes (class)", phase: "sort", seq: 1, slots: some(14n), flow: "Parcels" }],
|
|
167
|
+
* ["SRD", { name: "Sorted", phase: "sort", seq: 2, slots: none, flow: "Parcels" }],
|
|
168
|
+
* ["HLD", { name: "Held", phase: "hold", seq: 1, slots: none, flow: "Parcels" }],
|
|
169
|
+
* ["CLR", { name: "Cleared", phase: "hold", seq: 2, slots: none, flow: "Parcels" }],
|
|
170
|
+
* ["LDD", { name: "Loaded", phase: "dispatch", seq: 1, slots: none, flow: "Parcels" }],
|
|
171
|
+
* ["DSP", { name: "Dispatched", phase: "dispatch", seq: 2, slots: none, flow: "Parcels" }],
|
|
172
|
+
* // The returns flow's states, beside the parcels'.
|
|
173
|
+
* ["RCV", { name: "Received", phase: "intake", seq: 3, slots: none, flow: "Returns" }],
|
|
174
|
+
* ["INS", { name: "Inspected", phase: "hold", seq: 3, slots: none, flow: "Returns" }],
|
|
175
|
+
* ["RSD", { name: "Resent", phase: "dispatch", seq: 3, slots: none, flow: "Returns" }],
|
|
176
|
+
* ]),
|
|
177
|
+
* mutations: (mutation) => ({ patch: mutation.patch() }),
|
|
178
|
+
* indexes: (index) => ({
|
|
179
|
+
* flowchart_states_by_flow: index.on(["flow"]),
|
|
180
|
+
* flowchart_states_by_lane: index.on(["flow", "phase"]),
|
|
243
181
|
* }),
|
|
244
|
-
*
|
|
245
|
-
*
|
|
182
|
+
* });
|
|
183
|
+
* export const depotTransitions = e3.record("flowchart_depot_transitions", DictType(StringType, DepotTransition), {
|
|
184
|
+
* initial: new Map([
|
|
185
|
+
* ["l1", { src: "ARV", dst: "SCN", kind: variant("planned", null), trigger: none, volume: some(18460), n: some(412n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
186
|
+
* ["l2", { src: "SCN", dst: "IND", kind: variant("planned", null), trigger: none, volume: some(18390), n: some(409n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
187
|
+
* // In place: parcels inducted again, counted but not weighed.
|
|
188
|
+
* ["l3", { src: "IND", dst: "IND", kind: variant("observed", null), trigger: none, volume: none, n: some(2n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
189
|
+
* ["l4", { src: "IND", dst: "CH*", kind: variant("planned", null), trigger: some("route"), volume: some(17350), n: some(386n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
190
|
+
* ["l5", { src: "CH*", dst: "SRD", kind: variant("planned", null), trigger: none, volume: some(18210), n: some(405n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
191
|
+
* ["l6", { src: "SRD", dst: "HLD", kind: variant("planned", null), trigger: none, volume: some(8420), n: some(188n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
192
|
+
* ["l7", { src: "HLD", dst: "CLR", kind: variant("planned", null), trigger: some("customs"), volume: some(8350), n: some(186n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
193
|
+
* ["l8", { src: "CLR", dst: "LDD", kind: variant("planned", null), trigger: none, volume: some(8240), n: some(183n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
194
|
+
* ["l9", { src: "LDD", dst: "DSP", kind: variant("planned", null), trigger: none, volume: some(17030), n: some(378n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
195
|
+
* // Its far end names a state no row is keyed by: drawn as a ghost, and listed in Issues.
|
|
196
|
+
* ["l10", { src: "DSP", dst: "DLV", kind: variant("planned", null), trigger: none, volume: none, n: none, at: none, flow: "Parcels" }],
|
|
197
|
+
* // Observed, not planned: parcels relabelled before they are sorted.
|
|
198
|
+
* ["l11", { src: "IND", dst: "LBL", kind: variant("observed", null), trigger: none, volume: some(980), n: some(22n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
199
|
+
* ["l12", { src: "LBL", dst: "CH*", kind: variant("observed", null), trigger: none, volume: some(975), n: some(22n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
200
|
+
* ["l13", { src: "SRD", dst: "LDD", kind: variant("planned", null), trigger: none, volume: some(8790), n: some(195n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Parcels" }],
|
|
201
|
+
* ["r1", { src: "RCV", dst: "INS", kind: variant("planned", null), trigger: none, volume: some(640), n: some(15n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Returns" }],
|
|
202
|
+
* ["r2", { src: "INS", dst: "RSD", kind: variant("planned", null), trigger: none, volume: some(610), n: some(14n), at: some(new Date("2026-06-30T00:00:00Z")), flow: "Returns" }],
|
|
203
|
+
* ]),
|
|
204
|
+
* mutations: (mutation) => ({ patch: mutation.patch() }),
|
|
205
|
+
* indexes: (index) => ({
|
|
206
|
+
* flowchart_transitions_by_flow: index.on(["flow"]),
|
|
246
207
|
* }),
|
|
247
208
|
* });
|
|
209
|
+
* export const depotLanes = e3.record("flowchart_depot_lanes", DictType(StringType, DepotLane), {
|
|
210
|
+
* initial: new Map([
|
|
211
|
+
* ["intake", { label: "Intake", seq: 1 }], ["induct", { label: "Induct", seq: 2 }], ["sort", { label: "Sort", seq: 3 }],
|
|
212
|
+
* ["hold", { label: "Hold", seq: 4 }], ["dispatch", { label: "Dispatch", seq: 5 }],
|
|
213
|
+
* ]),
|
|
214
|
+
* mutations: (mutation) => ({ patch: mutation.patch() }),
|
|
215
|
+
* });
|
|
216
|
+
*
|
|
217
|
+
* // The time each parcel spent in each state, keyed as the states are: its parcels counted into bins by how
|
|
218
|
+
* // long they stayed, each key a bin's lower edge, in hours.
|
|
219
|
+
* export const StateDwell = StructType({ hours: DictType(FloatType, IntegerType) });
|
|
220
|
+
* export const stateDwell = e3.input("flowchart_depot_dwell", DictType(StringType, StateDwell), variant("value", new Map([
|
|
221
|
+
* ["ARV", { hours: new Map([[0, 7752n], [0.25, 6092n], [0.5, 2769n], [1, 1108n], [2, 554n], [4, 185n]]) }],
|
|
222
|
+
* ["SCN", { hours: new Map([[0, 9195n], [0.25, 5517n], [0.5, 2391n], [1, 920n], [2, 367n]]) }],
|
|
223
|
+
* ["IND", { hours: new Map([[0, 2207n], [0.25, 4781n], [0.5, 5517n], [1, 3310n], [2, 1655n], [4, 736n], [8, 184n]]) }],
|
|
224
|
+
* ["LBL", { hours: new Map([[0.25, 59n], [0.5, 137n], [1, 255n], [2, 273n], [4, 157n], [8, 79n], [12, 20n]]) }],
|
|
225
|
+
* ["CH*", { hours: new Map([[0, 1457n], [0.25, 4007n], [0.5, 6192n], [1, 4007n], [2, 1639n], [4, 728n], [8, 180n]]) }],
|
|
226
|
+
* ["SRD", { hours: new Map([[0, 861n], [0.25, 2065n], [0.5, 4303n], [1, 4818n], [2, 3098n], [4, 1377n], [8, 516n], [12, 172n]]) }],
|
|
227
|
+
* ["HLD", { hours: new Map([[0.25, 84n], [0.5, 167n], [1, 418n], [2, 752n], [4, 1169n], [8, 1417n],
|
|
228
|
+
* [12, 1253n], [24, 1336n], [48, 1002n], [96, 501n], [168, 251n]]) }],
|
|
229
|
+
* ["CLR", { hours: new Map([[0, 824n], [0.25, 1648n], [0.5, 2060n], [1, 1648n], [2, 989n], [4, 659n], [8, 330n], [12, 82n]]) }],
|
|
230
|
+
* ["LDD", { hours: new Map([[0, 681n], [0.25, 1362n], [0.5, 2725n], [1, 4088n], [2, 3747n], [4, 2384n], [8, 1362n], [12, 511n], [24, 170n]]) }],
|
|
231
|
+
* // Dispatched has no row: the app counts no time in it once a parcel has left, and its card says no data.
|
|
232
|
+
* ["RCV", { hours: new Map([[0, 64n], [0.25, 115n], [0.5, 154n], [1, 141n], [2, 90n], [4, 51n], [8, 19n], [12, 6n]]) }],
|
|
233
|
+
* ["INS", { hours: new Map([[0.25, 12n], [0.5, 37n], [1, 73n], [2, 122n], [4, 146n], [8, 110n], [12, 61n], [24, 37n], [48, 12n]]) }],
|
|
234
|
+
* ["RSD", { hours: new Map([[0, 122n], [0.25, 183n], [0.5, 159n], [1, 85n], [2, 43n], [4, 18n]]) }],
|
|
235
|
+
* ])));
|
|
248
236
|
*
|
|
249
|
-
* const
|
|
237
|
+
* const flowchartDwell = East.function([], UIComponentType, (_$) => (
|
|
250
238
|
* <Reactive>{$ => {
|
|
251
|
-
* const
|
|
239
|
+
* const states = $.let(Data.bind(depotStates));
|
|
240
|
+
* const transitions = $.let(Data.bind(depotTransitions));
|
|
241
|
+
* const lanes = $.let(Data.bind(depotLanes));
|
|
242
|
+
* const dwell = $.let(Data.bind(stateDwell));
|
|
252
243
|
* return (
|
|
253
|
-
* <Box height="
|
|
254
|
-
* <Flowchart
|
|
244
|
+
* <Box height="600px">
|
|
245
|
+
* <Flowchart
|
|
246
|
+
* states={Flowchart.states(states, {
|
|
247
|
+
* label: "name", lane: "phase", order: "seq",
|
|
248
|
+
* // Keyed as the states are, and read as they are: whole.
|
|
249
|
+
* details: Flowchart.details(dwell, {
|
|
250
|
+
* details: [Flowchart.histogram("hours", { unit: "hours", label: "Time in state" })],
|
|
251
|
+
* }),
|
|
252
|
+
* })}
|
|
253
|
+
* transitions={Flowchart.transitions(transitions, { from: "src", to: "dst" })}
|
|
254
|
+
* lanes={Flowchart.lanes(lanes, { label: "label", order: "seq" })}
|
|
255
|
+
* name="dwell"
|
|
256
|
+
* />
|
|
255
257
|
* </Box>
|
|
256
258
|
* );
|
|
257
259
|
* }}</Reactive>
|
|
@@ -277,18 +279,30 @@ export const FlowchartInternal = Object.assign(FlowchartInternalTag, MEMBERS, {
|
|
|
277
279
|
...TYPES,
|
|
278
280
|
Payload: FlowchartPayloadType,
|
|
279
281
|
Canvas: FlowchartCanvasType,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
StateKind: FlowchartStateKindType,
|
|
283
|
+
TransitionKind: FlowchartTransitionKindType,
|
|
284
|
+
LaneKind: FlowchartLaneKindType,
|
|
285
|
+
DecisionKind: FlowchartDecisionKindType,
|
|
286
|
+
StateRoles: FlowchartStateRolesType,
|
|
287
|
+
TransitionRoles: FlowchartTransitionRolesType,
|
|
288
|
+
LaneRoles: FlowchartLaneRolesType,
|
|
289
|
+
DecisionRoles: FlowchartDecisionRolesType,
|
|
290
|
+
StateWrite: FlowchartStateWriteType,
|
|
291
|
+
TransitionWrite: FlowchartTransitionWriteType,
|
|
292
|
+
LaneWrite: FlowchartLaneWriteType,
|
|
293
|
+
StateEntry: FlowchartStateEntryType,
|
|
294
|
+
TransitionEntry: FlowchartTransitionEntryType,
|
|
295
|
+
LaneEntry: FlowchartLaneEntryType,
|
|
296
|
+
DecisionEntry: FlowchartDecisionEntryType,
|
|
297
|
+
Template: FlowchartTemplateType,
|
|
298
|
+
Narrowed: FlowchartNarrowedType,
|
|
285
299
|
LibraryTab: FlowchartLibraryTabType,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
300
|
+
KindTab: FlowchartKindTabWireType,
|
|
301
|
+
Details: FlowchartDetailsType,
|
|
302
|
+
Read: FlowchartReadType,
|
|
303
|
+
Show: FlowchartShowType,
|
|
304
|
+
DetailRow: FlowchartDetailRowType,
|
|
305
|
+
Weighed: FlowchartWeighedType,
|
|
292
306
|
},
|
|
293
307
|
});
|
|
294
308
|
//# sourceMappingURL=index.js.map
|