@elaraai/e3-ui 1.0.85 → 1.0.87
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/bind/data-indexed.d.ts +159 -0
- package/dist/src/bind/data-indexed.d.ts.map +1 -0
- package/dist/src/bind/data-indexed.js +105 -0
- package/dist/src/bind/data-indexed.js.map +1 -0
- package/dist/src/bind/data.d.ts +5 -3
- package/dist/src/bind/data.d.ts.map +1 -1
- package/dist/src/bind/data.js +6 -0
- package/dist/src/bind/data.js.map +1 -1
- package/dist/src/bind/record.d.ts +34 -23
- package/dist/src/bind/record.d.ts.map +1 -1
- package/dist/src/bind/record.js +46 -19
- package/dist/src/bind/record.js.map +1 -1
- package/dist/src/calendar/index.d.ts +2923 -0
- package/dist/src/calendar/index.d.ts.map +1 -0
- package/dist/src/calendar/index.js +135 -0
- package/dist/src/calendar/index.js.map +1 -0
- package/dist/src/decision/queue.d.ts +3 -3
- package/dist/src/decision/queue.d.ts.map +1 -1
- package/dist/src/decision/queue.js +2 -2
- package/dist/src/decision/queue.js.map +1 -1
- package/dist/src/decision/types.d.ts +4 -0
- package/dist/src/decision/types.d.ts.map +1 -1
- package/dist/src/decision/types.js +4 -0
- package/dist/src/decision/types.js.map +1 -1
- package/dist/src/flowchart/canvas.d.ts +114 -0
- package/dist/src/flowchart/canvas.d.ts.map +1 -0
- package/dist/src/flowchart/canvas.js +84 -0
- package/dist/src/flowchart/canvas.js.map +1 -0
- package/dist/src/flowchart/flowchart.d.ts +79 -0
- package/dist/src/flowchart/flowchart.d.ts.map +1 -0
- package/dist/src/flowchart/flowchart.js +9 -0
- package/dist/src/flowchart/flowchart.js.map +1 -0
- package/dist/src/flowchart/index.d.ts +305 -0
- package/dist/src/flowchart/index.d.ts.map +1 -0
- package/dist/src/flowchart/index.js +267 -0
- package/dist/src/flowchart/index.js.map +1 -0
- package/dist/src/flowchart/library.d.ts +720 -0
- package/dist/src/flowchart/library.d.ts.map +1 -0
- package/dist/src/flowchart/library.js +611 -0
- package/dist/src/flowchart/library.js.map +1 -0
- package/dist/src/flowchart/over.d.ts +234 -0
- package/dist/src/flowchart/over.d.ts.map +1 -0
- package/dist/src/flowchart/over.js +220 -0
- package/dist/src/flowchart/over.js.map +1 -0
- package/dist/src/flowchart/patch.d.ts +64 -0
- package/dist/src/flowchart/patch.d.ts.map +1 -0
- package/dist/src/flowchart/patch.js +67 -0
- package/dist/src/flowchart/patch.js.map +1 -0
- package/dist/src/flowchart/payload.d.ts +8220 -0
- package/dist/src/flowchart/payload.d.ts.map +1 -0
- package/dist/src/flowchart/payload.js +521 -0
- package/dist/src/flowchart/payload.js.map +1 -0
- package/dist/src/flowchart/types.d.ts +393 -0
- package/dist/src/flowchart/types.d.ts.map +1 -0
- package/dist/src/flowchart/types.js +216 -0
- package/dist/src/flowchart/types.js.map +1 -0
- package/dist/src/flowchart/values.d.ts +267 -0
- package/dist/src/flowchart/values.d.ts.map +1 -0
- package/dist/src/flowchart/values.js +216 -0
- package/dist/src/flowchart/values.js.map +1 -0
- package/dist/src/flowchart/window.d.ts +521 -0
- package/dist/src/flowchart/window.d.ts.map +1 -0
- package/dist/src/flowchart/window.js +69 -0
- package/dist/src/flowchart/window.js.map +1 -0
- package/dist/src/index.d.ts +25 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +48 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +35 -3
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +72 -3
- package/dist/src/internal.js.map +1 -1
- package/dist/src/plan/assemble.d.ts +2224 -0
- package/dist/src/plan/assemble.d.ts.map +1 -0
- package/dist/src/plan/assemble.js +210 -0
- package/dist/src/plan/assemble.js.map +1 -0
- package/dist/src/plan/builders.d.ts +790 -0
- package/dist/src/plan/builders.d.ts.map +1 -0
- package/dist/src/plan/builders.js +749 -0
- package/dist/src/plan/builders.js.map +1 -0
- package/dist/src/plan/event-rows.d.ts +2565 -0
- package/dist/src/plan/event-rows.d.ts.map +1 -0
- package/dist/src/plan/event-rows.js +689 -0
- package/dist/src/plan/event-rows.js.map +1 -0
- package/dist/src/plan/factories.d.ts +458 -0
- package/dist/src/plan/factories.d.ts.map +1 -0
- package/dist/src/plan/factories.js +484 -0
- package/dist/src/plan/factories.js.map +1 -0
- package/dist/src/plan/index.d.ts +672 -0
- package/dist/src/plan/index.d.ts.map +1 -0
- package/dist/src/plan/index.js +532 -0
- package/dist/src/plan/index.js.map +1 -0
- package/dist/src/plan/ir.d.ts +2594 -0
- package/dist/src/plan/ir.d.ts.map +1 -0
- package/dist/src/plan/ir.js +78 -0
- package/dist/src/plan/ir.js.map +1 -0
- package/dist/src/plan/library.d.ts +772 -0
- package/dist/src/plan/library.d.ts.map +1 -0
- package/dist/src/plan/library.js +424 -0
- package/dist/src/plan/library.js.map +1 -0
- package/dist/src/plan/ordered-source.d.ts +27 -0
- package/dist/src/plan/ordered-source.d.ts.map +1 -0
- package/dist/src/plan/ordered-source.js +48 -0
- package/dist/src/plan/ordered-source.js.map +1 -0
- package/dist/src/plan/over.d.ts +247 -0
- package/dist/src/plan/over.d.ts.map +1 -0
- package/dist/src/plan/over.js +266 -0
- package/dist/src/plan/over.js.map +1 -0
- package/dist/src/plan/pick.d.ts +78 -0
- package/dist/src/plan/pick.d.ts.map +1 -0
- package/dist/src/plan/pick.js +146 -0
- package/dist/src/plan/pick.js.map +1 -0
- package/dist/src/plan/plan.d.ts +11611 -0
- package/dist/src/plan/plan.d.ts.map +1 -0
- package/dist/src/plan/plan.js +428 -0
- package/dist/src/plan/plan.js.map +1 -0
- package/dist/src/plan/refs.d.ts +218 -0
- package/dist/src/plan/refs.d.ts.map +1 -0
- package/dist/src/plan/refs.js +226 -0
- package/dist/src/plan/refs.js.map +1 -0
- package/dist/src/plan/root.d.ts +290 -0
- package/dist/src/plan/root.d.ts.map +1 -0
- package/dist/src/plan/root.js +463 -0
- package/dist/src/plan/root.js.map +1 -0
- package/dist/src/plan/series.d.ts +13554 -0
- package/dist/src/plan/series.d.ts.map +1 -0
- package/dist/src/plan/series.js +1921 -0
- package/dist/src/plan/series.js.map +1 -0
- package/dist/src/plan/types.d.ts +12400 -0
- package/dist/src/plan/types.d.ts.map +1 -0
- package/dist/src/plan/types.js +1335 -0
- package/dist/src/plan/types.js.map +1 -0
- package/dist/src/roster/coverage.d.ts +240 -0
- package/dist/src/roster/coverage.d.ts.map +1 -0
- package/dist/src/roster/coverage.js +109 -0
- package/dist/src/roster/coverage.js.map +1 -0
- package/dist/src/roster/index.d.ts +4028 -0
- package/dist/src/roster/index.d.ts.map +1 -0
- package/dist/src/roster/index.js +115 -0
- package/dist/src/roster/index.js.map +1 -0
- package/dist/src/roster/library.d.ts +106 -0
- package/dist/src/roster/library.d.ts.map +1 -0
- package/dist/src/roster/library.js +78 -0
- package/dist/src/roster/library.js.map +1 -0
- package/dist/src/roster/people.d.ts +50 -0
- package/dist/src/roster/people.d.ts.map +1 -0
- package/dist/src/roster/people.js +32 -0
- package/dist/src/roster/people.js.map +1 -0
- package/dist/src/roster/rules.d.ts +275 -0
- package/dist/src/roster/rules.d.ts.map +1 -0
- package/dist/src/roster/rules.js +162 -0
- package/dist/src/roster/rules.js.map +1 -0
- package/dist/src/roster/types.d.ts +672 -0
- package/dist/src/roster/types.d.ts.map +1 -0
- package/dist/src/roster/types.js +248 -0
- package/dist/src/roster/types.js.map +1 -0
- package/dist/src/roster/visibility.d.ts +66 -0
- package/dist/src/roster/visibility.d.ts.map +1 -0
- package/dist/src/roster/visibility.js +25 -0
- package/dist/src/roster/visibility.js.map +1 -0
- package/dist/src/schedule/days.d.ts +54 -0
- package/dist/src/schedule/days.d.ts.map +1 -0
- package/dist/src/schedule/days.js +68 -0
- package/dist/src/schedule/days.js.map +1 -0
- package/dist/src/schedule/events.d.ts +433 -0
- package/dist/src/schedule/events.d.ts.map +1 -0
- package/dist/src/schedule/events.js +851 -0
- package/dist/src/schedule/events.js.map +1 -0
- package/dist/src/schedule/index.d.ts +150 -0
- package/dist/src/schedule/index.d.ts.map +1 -0
- package/dist/src/schedule/index.js +132 -0
- package/dist/src/schedule/index.js.map +1 -0
- package/dist/src/schedule/library.d.ts +70 -0
- package/dist/src/schedule/library.d.ts.map +1 -0
- package/dist/src/schedule/library.js +102 -0
- package/dist/src/schedule/library.js.map +1 -0
- package/dist/src/schedule/patch.d.ts +74 -0
- package/dist/src/schedule/patch.d.ts.map +1 -0
- package/dist/src/schedule/patch.js +68 -0
- package/dist/src/schedule/patch.js.map +1 -0
- package/dist/src/schedule/record-window.d.ts +189 -0
- package/dist/src/schedule/record-window.d.ts.map +1 -0
- package/dist/src/schedule/record-window.js +95 -0
- package/dist/src/schedule/record-window.js.map +1 -0
- package/dist/src/schedule/resources.d.ts +165 -0
- package/dist/src/schedule/resources.d.ts.map +1 -0
- package/dist/src/schedule/resources.js +234 -0
- package/dist/src/schedule/resources.js.map +1 -0
- package/dist/src/schedule/templates.d.ts +47 -0
- package/dist/src/schedule/templates.d.ts.map +1 -0
- package/dist/src/schedule/templates.js +61 -0
- package/dist/src/schedule/templates.js.map +1 -0
- package/dist/src/schedule/types.d.ts +1677 -0
- package/dist/src/schedule/types.d.ts.map +1 -0
- package/dist/src/schedule/types.js +374 -0
- package/dist/src/schedule/types.js.map +1 -0
- package/dist/src/schedule/window.d.ts +154 -0
- package/dist/src/schedule/window.d.ts.map +1 -0
- package/dist/src/schedule/window.js +363 -0
- package/dist/src/schedule/window.js.map +1 -0
- package/dist/src/sheet/bridge.d.ts +385 -0
- package/dist/src/sheet/bridge.d.ts.map +1 -0
- package/dist/src/sheet/bridge.js +809 -0
- package/dist/src/sheet/bridge.js.map +1 -0
- package/dist/src/sheet/columns.d.ts +410 -0
- package/dist/src/sheet/columns.d.ts.map +1 -0
- package/dist/src/sheet/columns.js +99 -0
- package/dist/src/sheet/columns.js.map +1 -0
- package/dist/src/sheet/context-bridge.d.ts +48 -0
- package/dist/src/sheet/context-bridge.d.ts.map +1 -0
- package/dist/src/sheet/context-bridge.js +216 -0
- package/dist/src/sheet/context-bridge.js.map +1 -0
- package/dist/src/sheet/draft-bridge.d.ts +37 -0
- package/dist/src/sheet/draft-bridge.d.ts.map +1 -0
- package/dist/src/sheet/draft-bridge.js +153 -0
- package/dist/src/sheet/draft-bridge.js.map +1 -0
- package/dist/src/sheet/drafts.d.ts +14 -0
- package/dist/src/sheet/drafts.d.ts.map +1 -0
- package/dist/src/sheet/drafts.js +14 -0
- package/dist/src/sheet/drafts.js.map +1 -0
- package/dist/src/sheet/editing-bridge.d.ts +40 -0
- package/dist/src/sheet/editing-bridge.d.ts.map +1 -0
- package/dist/src/sheet/editing-bridge.js +231 -0
- package/dist/src/sheet/editing-bridge.js.map +1 -0
- package/dist/src/sheet/editing-types.d.ts +268 -0
- package/dist/src/sheet/editing-types.d.ts.map +1 -0
- package/dist/src/sheet/editing-types.js +34 -0
- package/dist/src/sheet/editing-types.js.map +1 -0
- package/dist/src/sheet/edits.d.ts +37 -0
- package/dist/src/sheet/edits.d.ts.map +1 -0
- package/dist/src/sheet/edits.js +31 -0
- package/dist/src/sheet/edits.js.map +1 -0
- package/dist/src/sheet/fields.d.ts +693 -0
- package/dist/src/sheet/fields.d.ts.map +1 -0
- package/dist/src/sheet/fields.js +280 -0
- package/dist/src/sheet/fields.js.map +1 -0
- package/dist/src/sheet/group.d.ts +165 -0
- package/dist/src/sheet/group.d.ts.map +1 -0
- package/dist/src/sheet/group.js +52 -0
- package/dist/src/sheet/group.js.map +1 -0
- package/dist/src/sheet/index.d.ts +542 -0
- package/dist/src/sheet/index.d.ts.map +1 -0
- package/dist/src/sheet/index.js +387 -0
- package/dist/src/sheet/index.js.map +1 -0
- package/dist/src/sheet/library.d.ts +284 -0
- package/dist/src/sheet/library.d.ts.map +1 -0
- package/dist/src/sheet/library.js +259 -0
- package/dist/src/sheet/library.js.map +1 -0
- package/dist/src/sheet/link.d.ts +398 -0
- package/dist/src/sheet/link.d.ts.map +1 -0
- package/dist/src/sheet/link.js +228 -0
- package/dist/src/sheet/link.js.map +1 -0
- package/dist/src/sheet/record.d.ts +75 -0
- package/dist/src/sheet/record.d.ts.map +1 -0
- package/dist/src/sheet/record.js +128 -0
- package/dist/src/sheet/record.js.map +1 -0
- package/dist/src/sheet/registers.d.ts +681 -0
- package/dist/src/sheet/registers.d.ts.map +1 -0
- package/dist/src/sheet/registers.js +671 -0
- package/dist/src/sheet/registers.js.map +1 -0
- package/dist/src/sheet/root.d.ts +329 -0
- package/dist/src/sheet/root.d.ts.map +1 -0
- package/dist/src/sheet/root.js +511 -0
- package/dist/src/sheet/root.js.map +1 -0
- package/dist/src/sheet/seed-bridge.d.ts +14 -0
- package/dist/src/sheet/seed-bridge.d.ts.map +1 -0
- package/dist/src/sheet/seed-bridge.js +51 -0
- package/dist/src/sheet/seed-bridge.js.map +1 -0
- package/dist/src/sheet/sheet.d.ts +11819 -0
- package/dist/src/sheet/sheet.d.ts.map +1 -0
- package/dist/src/sheet/sheet.js +236 -0
- package/dist/src/sheet/sheet.js.map +1 -0
- package/dist/src/sheet/sub-rows.d.ts +299 -0
- package/dist/src/sheet/sub-rows.d.ts.map +1 -0
- package/dist/src/sheet/sub-rows.js +272 -0
- package/dist/src/sheet/sub-rows.js.map +1 -0
- package/dist/src/sheet/templates.d.ts +161 -0
- package/dist/src/sheet/templates.d.ts.map +1 -0
- package/dist/src/sheet/templates.js +122 -0
- package/dist/src/sheet/templates.js.map +1 -0
- package/dist/src/sheet/transactions.d.ts +76 -0
- package/dist/src/sheet/transactions.d.ts.map +1 -0
- package/dist/src/sheet/transactions.js +40 -0
- package/dist/src/sheet/transactions.js.map +1 -0
- package/dist/src/sheet/types.d.ts +15226 -0
- package/dist/src/sheet/types.d.ts.map +1 -0
- package/dist/src/sheet/types.js +1070 -0
- package/dist/src/sheet/types.js.map +1 -0
- package/dist/src/sheet/views.d.ts +29 -0
- package/dist/src/sheet/views.d.ts.map +1 -0
- package/dist/src/sheet/views.js +43 -0
- package/dist/src/sheet/views.js.map +1 -0
- package/dist/src/studio/component.d.ts.map +1 -1
- package/dist/src/studio/component.js +11 -8
- package/dist/src/studio/component.js.map +1 -1
- package/dist/src/utils/derive.d.ts +134 -8
- package/dist/src/utils/derive.d.ts.map +1 -1
- package/dist/src/utils/derive.js +409 -7
- package/dist/src/utils/derive.js.map +1 -1
- package/dist/src/utils/ordered-source.d.ts +38 -0
- package/dist/src/utils/ordered-source.d.ts.map +1 -0
- package/dist/src/utils/ordered-source.js +45 -0
- package/dist/src/utils/ordered-source.js.map +1 -0
- package/dist/src/utils/row-inspector.d.ts +36 -0
- package/dist/src/utils/row-inspector.d.ts.map +1 -0
- package/dist/src/utils/row-inspector.js +49 -0
- package/dist/src/utils/row-inspector.js.map +1 -0
- package/dist/test/bind/data/data.examples.d.ts +21 -19
- package/dist/test/bind/data/data.examples.d.ts.map +1 -1
- package/dist/test/bind/data/data.examples.js +122 -122
- package/dist/test/bind/data/data.examples.js.map +1 -1
- package/dist/test/bind/record/record.examples.d.ts.map +1 -1
- package/dist/test/bind/record/record.examples.js +9 -9
- package/dist/test/bind/record/record.examples.js.map +1 -1
- package/dist/test/calendar/calendar-records.examples.d.ts +228 -0
- package/dist/test/calendar/calendar-records.examples.d.ts.map +1 -0
- package/dist/test/calendar/calendar-records.examples.js +91 -0
- package/dist/test/calendar/calendar-records.examples.js.map +1 -0
- package/dist/test/calendar/calendar.examples.d.ts +776 -0
- package/dist/test/calendar/calendar.examples.d.ts.map +1 -0
- package/dist/test/calendar/calendar.examples.js +336 -0
- package/dist/test/calendar/calendar.examples.js.map +1 -0
- package/dist/test/decision/journal.examples.d.ts +28 -28
- package/dist/test/decision/journal.examples.d.ts.map +1 -1
- package/dist/test/decision/journal.examples.js +4 -4
- package/dist/test/decision/journal.examples.js.map +1 -1
- package/dist/test/decision/queue.examples.d.ts.map +1 -1
- package/dist/test/decision/queue.examples.js +5 -7
- package/dist/test/decision/queue.examples.js.map +1 -1
- package/dist/test/flowchart/flowchart.examples.d.ts +3713 -0
- package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -0
- package/dist/test/flowchart/flowchart.examples.js +465 -0
- package/dist/test/flowchart/flowchart.examples.js.map +1 -0
- package/dist/test/plan/plan-events.examples.d.ts +3666 -0
- package/dist/test/plan/plan-events.examples.d.ts.map +1 -0
- package/dist/test/plan/plan-events.examples.js +773 -0
- package/dist/test/plan/plan-events.examples.js.map +1 -0
- package/dist/test/plan/plan-records.examples.d.ts +3 -0
- package/dist/test/plan/plan-records.examples.d.ts.map +1 -0
- package/dist/test/plan/plan-records.examples.js +45 -0
- package/dist/test/plan/plan-records.examples.js.map +1 -0
- package/dist/test/plan/plan-windows.examples.d.ts +588 -0
- package/dist/test/plan/plan-windows.examples.d.ts.map +1 -0
- package/dist/test/plan/plan-windows.examples.js +170 -0
- package/dist/test/plan/plan-windows.examples.js.map +1 -0
- package/dist/test/plan/plan.examples.d.ts +8095 -0
- package/dist/test/plan/plan.examples.d.ts.map +1 -0
- package/dist/test/plan/plan.examples.js +2500 -0
- package/dist/test/plan/plan.examples.js.map +1 -0
- package/dist/test/roster/domain.examples.d.ts +367 -0
- package/dist/test/roster/domain.examples.d.ts.map +1 -0
- package/dist/test/roster/domain.examples.js +72 -0
- package/dist/test/roster/domain.examples.js.map +1 -0
- package/dist/test/roster/roster-records.examples.d.ts +729 -0
- package/dist/test/roster/roster-records.examples.d.ts.map +1 -0
- package/dist/test/roster/roster-records.examples.js +86 -0
- package/dist/test/roster/roster-records.examples.js.map +1 -0
- package/dist/test/roster/roster.examples.d.ts +750 -0
- package/dist/test/roster/roster.examples.d.ts.map +1 -0
- package/dist/test/roster/roster.examples.js +198 -0
- package/dist/test/roster/roster.examples.js.map +1 -0
- package/dist/test/roster/warehouse.d.ts +87 -0
- package/dist/test/roster/warehouse.d.ts.map +1 -0
- package/dist/test/roster/warehouse.js +883 -0
- package/dist/test/roster/warehouse.js.map +1 -0
- package/dist/test/sheet/sheet-link.examples.d.ts +7 -0
- package/dist/test/sheet/sheet-link.examples.d.ts.map +1 -0
- package/dist/test/sheet/sheet-link.examples.js +41 -0
- package/dist/test/sheet/sheet-link.examples.js.map +1 -0
- package/dist/test/sheet/sheet-records.examples.d.ts +421 -0
- package/dist/test/sheet/sheet-records.examples.d.ts.map +1 -0
- package/dist/test/sheet/sheet-records.examples.js +79 -0
- package/dist/test/sheet/sheet-records.examples.js.map +1 -0
- package/dist/test/sheet/sheet-transactions.examples.d.ts +7 -0
- package/dist/test/sheet/sheet-transactions.examples.d.ts.map +1 -0
- package/dist/test/sheet/sheet-transactions.examples.js +58 -0
- package/dist/test/sheet/sheet-transactions.examples.js.map +1 -0
- package/dist/test/sheet/sheet.examples.d.ts +5562 -0
- package/dist/test/sheet/sheet.examples.d.ts.map +1 -0
- package/dist/test/sheet/sheet.examples.js +1178 -0
- package/dist/test/sheet/sheet.examples.js.map +1 -0
- package/dist/test/studio/studio.examples.d.ts.map +1 -1
- package/dist/test/studio/studio.examples.js +11 -11
- package/dist/test/studio/studio.examples.js.map +1 -1
- package/package.json +12 -9
|
@@ -0,0 +1,393 @@
|
|
|
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
|
+
import { ArrayType, DateTimeType, DictType, FloatType, IntegerType, NullType, OptionType, StringType, StructType, VariantType } from "@elaraai/east";
|
|
6
|
+
/**
|
|
7
|
+
* Link kind — the transition's provenance class.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* `planned` renders solid; `observed` renders dashed (5/4). A link whose
|
|
11
|
+
* `from` / `to` reference has no state row is *unresolved* — that is a
|
|
12
|
+
* derived render class (dashed 4/4 in the negative tone against a ghost
|
|
13
|
+
* "No state row" node), never an authored kind.
|
|
14
|
+
*
|
|
15
|
+
* @property planned - A designed / expected transition (solid stroke)
|
|
16
|
+
* @property observed - A transition mined from evidence (dashed stroke)
|
|
17
|
+
*/
|
|
18
|
+
export declare const FlowchartLinkKindType: VariantType<{
|
|
19
|
+
/** A designed / expected transition (solid stroke) */
|
|
20
|
+
readonly planned: NullType;
|
|
21
|
+
/** A transition mined from evidence (dashed stroke) */
|
|
22
|
+
readonly observed: NullType;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Type representing flowchart link kinds.
|
|
26
|
+
*/
|
|
27
|
+
export type FlowchartLinkKindType = typeof FlowchartLinkKindType;
|
|
28
|
+
/**
|
|
29
|
+
* Canvas orientation — which axis the lane bands run along.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Orientation is VIEW state, not slice state: the eyebrow's orientation
|
|
33
|
+
* segment toggles it and it never appears as a filter chip. `LR` lays
|
|
34
|
+
* lanes left→right (links flow rightward); `TD` swaps the axes.
|
|
35
|
+
*
|
|
36
|
+
* @property LR - Lanes run left → right
|
|
37
|
+
* @property TD - Lanes run top → down
|
|
38
|
+
*/
|
|
39
|
+
export declare const FlowchartOrientationType: VariantType<{
|
|
40
|
+
/** Lanes run left → right */
|
|
41
|
+
readonly LR: NullType;
|
|
42
|
+
/** Lanes run top → down */
|
|
43
|
+
readonly TD: NullType;
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Type representing flowchart orientations.
|
|
47
|
+
*/
|
|
48
|
+
export type FlowchartOrientationType = typeof FlowchartOrientationType;
|
|
49
|
+
/**
|
|
50
|
+
* Imported evidence carried by a link — never hand-authored.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Evidence drives derived marks only: stroke weight scales with `volume`
|
|
54
|
+
* (log scale 1.6 / 2 / 2.5 px, floor 1.4), `volume` + `unit` print as the
|
|
55
|
+
* paper-filled badge on the longest straight run, and the inspector shows
|
|
56
|
+
* all four, read only, under the transition's fields (#1250).
|
|
57
|
+
*
|
|
58
|
+
* @property volume - Total measured volume behind the arrow
|
|
59
|
+
* @property count - Event count behind the arrow (e.g. cage moves)
|
|
60
|
+
* @property measuredAt - When the evidence was measured
|
|
61
|
+
* @property unit - Volume unit suffix for badges ("parcels")
|
|
62
|
+
*/
|
|
63
|
+
export declare const FlowchartEvidenceType: StructType<{
|
|
64
|
+
/** Total measured volume behind the arrow */
|
|
65
|
+
readonly volume: OptionType<FloatType>;
|
|
66
|
+
/** Event count behind the arrow (e.g. cage moves) */
|
|
67
|
+
readonly count: OptionType<IntegerType>;
|
|
68
|
+
/** When the evidence was measured */
|
|
69
|
+
readonly measuredAt: OptionType<DateTimeType>;
|
|
70
|
+
/** Volume unit suffix for badges ("parcels") */
|
|
71
|
+
readonly unit: OptionType<StringType>;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Type representing link evidence.
|
|
75
|
+
*/
|
|
76
|
+
export type FlowchartEvidenceType = typeof FlowchartEvidenceType;
|
|
77
|
+
/**
|
|
78
|
+
* One state — a node in the flowchart.
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* The short mono `key` is the node identity everywhere (selection events,
|
|
82
|
+
* link `from` / `to` refs, trigger queues). A state with `members` set is
|
|
83
|
+
* a STATE CLASS — one node standing for N interchangeable members (the
|
|
84
|
+
* `×N` badge). In-place transitions (`from == to` links) collapse to the
|
|
85
|
+
* `↻ n` badge on the node and never route through handles.
|
|
86
|
+
*
|
|
87
|
+
* @property key - Short mono code — the node identity ("IND")
|
|
88
|
+
* @property label - Display label under the code
|
|
89
|
+
* @property lane - The lane (ordered phase) this state belongs to
|
|
90
|
+
* @property members - State-class member count → the ×N badge
|
|
91
|
+
* @property notes - Free-text notes, shown and edited in the inspector
|
|
92
|
+
*/
|
|
93
|
+
export declare const FlowchartStateType: StructType<{
|
|
94
|
+
/** Short mono code — the node identity ("IND") */
|
|
95
|
+
readonly key: StringType;
|
|
96
|
+
/** Display label under the code */
|
|
97
|
+
readonly label: OptionType<StringType>;
|
|
98
|
+
/** The lane (ordered phase) this state belongs to */
|
|
99
|
+
readonly lane: StringType;
|
|
100
|
+
/** State-class member count → the ×N badge */
|
|
101
|
+
readonly members: OptionType<IntegerType>;
|
|
102
|
+
/** Free-text notes, shown and edited in the inspector */
|
|
103
|
+
readonly notes: OptionType<StringType>;
|
|
104
|
+
}>;
|
|
105
|
+
/**
|
|
106
|
+
* Type representing flowchart states.
|
|
107
|
+
*/
|
|
108
|
+
export type FlowchartStateType = typeof FlowchartStateType;
|
|
109
|
+
/**
|
|
110
|
+
* One link — a state transition drawn as an H/V-routed arrow.
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* `from` / `to` are state keys; a reference with no state row renders the
|
|
114
|
+
* neg-dashed ghost "No state row" node (derived, counted in the footer).
|
|
115
|
+
* At most one `trigger` per link — the lettered decision diamond anchored
|
|
116
|
+
* to the midpoint of the longest straight run.
|
|
117
|
+
*
|
|
118
|
+
* @property key - Stable identity (selection / delete events); default derived from endpoints
|
|
119
|
+
* @property from - Source state key
|
|
120
|
+
* @property to - Target state key
|
|
121
|
+
* @property kind - planned (default) | observed
|
|
122
|
+
* @property trigger - 0..1 decision trigger key → diamond
|
|
123
|
+
* @property evidence - Imported evidence (weight, badges, provenance)
|
|
124
|
+
*/
|
|
125
|
+
export declare const FlowchartLinkType: StructType<{
|
|
126
|
+
/** Stable identity (selection / delete events); default derived from endpoints */
|
|
127
|
+
readonly key: OptionType<StringType>;
|
|
128
|
+
/** Source state key */
|
|
129
|
+
readonly from: StringType;
|
|
130
|
+
/** Target state key */
|
|
131
|
+
readonly to: StringType;
|
|
132
|
+
/** planned (default) | observed */
|
|
133
|
+
readonly kind: OptionType<VariantType<{
|
|
134
|
+
/** A designed / expected transition (solid stroke) */
|
|
135
|
+
readonly planned: NullType;
|
|
136
|
+
/** A transition mined from evidence (dashed stroke) */
|
|
137
|
+
readonly observed: NullType;
|
|
138
|
+
}>>;
|
|
139
|
+
/** 0..1 decision trigger key → diamond */
|
|
140
|
+
readonly trigger: OptionType<StringType>;
|
|
141
|
+
/** Imported evidence (weight, badges, provenance) */
|
|
142
|
+
readonly evidence: OptionType<StructType<{
|
|
143
|
+
/** Total measured volume behind the arrow */
|
|
144
|
+
readonly volume: OptionType<FloatType>;
|
|
145
|
+
/** Event count behind the arrow (e.g. cage moves) */
|
|
146
|
+
readonly count: OptionType<IntegerType>;
|
|
147
|
+
/** When the evidence was measured */
|
|
148
|
+
readonly measuredAt: OptionType<DateTimeType>;
|
|
149
|
+
/** Volume unit suffix for badges ("parcels") */
|
|
150
|
+
readonly unit: OptionType<StringType>;
|
|
151
|
+
}>>;
|
|
152
|
+
}>;
|
|
153
|
+
/**
|
|
154
|
+
* Type representing flowchart links.
|
|
155
|
+
*/
|
|
156
|
+
export type FlowchartLinkType = typeof FlowchartLinkType;
|
|
157
|
+
/**
|
|
158
|
+
* One lane — an ordered phase band.
|
|
159
|
+
*
|
|
160
|
+
* @remarks
|
|
161
|
+
* Lane order is array order; every state names its lane by `key`. The
|
|
162
|
+
* dashed `+ LANE` affordance renders at the tail of the band row.
|
|
163
|
+
*
|
|
164
|
+
* @property key - Lane identity referenced by states
|
|
165
|
+
* @property label - Band header label (defaults to the key, uppercased)
|
|
166
|
+
*/
|
|
167
|
+
export declare const FlowchartLaneType: StructType<{
|
|
168
|
+
/** Lane identity referenced by states */
|
|
169
|
+
readonly key: StringType;
|
|
170
|
+
/** Band header label (defaults to the key, uppercased) */
|
|
171
|
+
readonly label: OptionType<StringType>;
|
|
172
|
+
}>;
|
|
173
|
+
/**
|
|
174
|
+
* Type representing flowchart lanes.
|
|
175
|
+
*/
|
|
176
|
+
export type FlowchartLaneType = typeof FlowchartLaneType;
|
|
177
|
+
/**
|
|
178
|
+
* One decision trigger — a governed decision seam referenced by links.
|
|
179
|
+
*
|
|
180
|
+
* @remarks
|
|
181
|
+
* Triggers render as diamonds (max one per link) carrying a letter per
|
|
182
|
+
* TYPE, not per instance. Clicking a diamond highlights every link it
|
|
183
|
+
* governs (plus queue and outcome nodes).
|
|
184
|
+
*
|
|
185
|
+
* @property key - Trigger identity referenced by links
|
|
186
|
+
* @property label - Decision name ("route")
|
|
187
|
+
* @property letter - Diamond letter (default: first letter of the label)
|
|
188
|
+
* @property owner - Owning role / system ("sort-planner")
|
|
189
|
+
* @property queue - State keys queued at the decision
|
|
190
|
+
* @property outcomes - Outcome summary line ("CH* (×14 chutes)")
|
|
191
|
+
*/
|
|
192
|
+
export declare const FlowchartTriggerType: StructType<{
|
|
193
|
+
/** Trigger identity referenced by links */
|
|
194
|
+
readonly key: StringType;
|
|
195
|
+
/** Decision name ("route") */
|
|
196
|
+
readonly label: StringType;
|
|
197
|
+
/** Diamond letter (default: first letter of the label) */
|
|
198
|
+
readonly letter: OptionType<StringType>;
|
|
199
|
+
/** Owning role / system ("sort-planner") */
|
|
200
|
+
readonly owner: OptionType<StringType>;
|
|
201
|
+
/** State keys queued at the decision */
|
|
202
|
+
readonly queue: OptionType<ArrayType<StringType>>;
|
|
203
|
+
/** Outcome summary line ("CH* (×14 chutes)") */
|
|
204
|
+
readonly outcomes: OptionType<StringType>;
|
|
205
|
+
}>;
|
|
206
|
+
/**
|
|
207
|
+
* Type representing flowchart triggers.
|
|
208
|
+
*/
|
|
209
|
+
export type FlowchartTriggerType = typeof FlowchartTriggerType;
|
|
210
|
+
/**
|
|
211
|
+
* One flow — a whole flowchart: its lanes, its states, the transitions
|
|
212
|
+
* between them and the decisions that govern them (#1244, `Flowchart Builder
|
|
213
|
+
* Spec.md` §5.1).
|
|
214
|
+
*
|
|
215
|
+
* @remarks
|
|
216
|
+
* A record of flows holds one per name ({@link FlowchartFlowsType}), and a
|
|
217
|
+
* lone flow is a record of one entry, or the host's `data`. `Flowchart.value`
|
|
218
|
+
* writes one from a literal, and `Flowchart.over` builds one from an app's
|
|
219
|
+
* own tables. A record's entries are flows, so it is a stored form.
|
|
220
|
+
*
|
|
221
|
+
* @property description - One sentence about the flow: the line its card in the Flows tab shows
|
|
222
|
+
* @property lanes - Its lanes, in band order
|
|
223
|
+
* @property states - Its states, each in one of its lanes
|
|
224
|
+
* @property links - Its transitions; one naming a state the flow does not have draws as the unresolved ghost
|
|
225
|
+
* @property triggers - Its decisions, each named by the transitions it governs
|
|
226
|
+
*/
|
|
227
|
+
export declare const FlowchartFlowType: StructType<{
|
|
228
|
+
/** One sentence about the flow: the line its card in the Flows tab shows */
|
|
229
|
+
readonly description: OptionType<StringType>;
|
|
230
|
+
/** Its lanes, in band order */
|
|
231
|
+
readonly lanes: ArrayType<StructType<{
|
|
232
|
+
/** Lane identity referenced by states */
|
|
233
|
+
readonly key: StringType;
|
|
234
|
+
/** Band header label (defaults to the key, uppercased) */
|
|
235
|
+
readonly label: OptionType<StringType>;
|
|
236
|
+
}>>;
|
|
237
|
+
/** Its states, each in one of its lanes */
|
|
238
|
+
readonly states: ArrayType<StructType<{
|
|
239
|
+
/** Short mono code — the node identity ("IND") */
|
|
240
|
+
readonly key: StringType;
|
|
241
|
+
/** Display label under the code */
|
|
242
|
+
readonly label: OptionType<StringType>;
|
|
243
|
+
/** The lane (ordered phase) this state belongs to */
|
|
244
|
+
readonly lane: StringType;
|
|
245
|
+
/** State-class member count → the ×N badge */
|
|
246
|
+
readonly members: OptionType<IntegerType>;
|
|
247
|
+
/** Free-text notes, shown and edited in the inspector */
|
|
248
|
+
readonly notes: OptionType<StringType>;
|
|
249
|
+
}>>;
|
|
250
|
+
/** Its transitions; one naming a state the flow does not have draws as the unresolved ghost */
|
|
251
|
+
readonly links: ArrayType<StructType<{
|
|
252
|
+
/** Stable identity (selection / delete events); default derived from endpoints */
|
|
253
|
+
readonly key: OptionType<StringType>;
|
|
254
|
+
/** Source state key */
|
|
255
|
+
readonly from: StringType;
|
|
256
|
+
/** Target state key */
|
|
257
|
+
readonly to: StringType;
|
|
258
|
+
/** planned (default) | observed */
|
|
259
|
+
readonly kind: OptionType<VariantType<{
|
|
260
|
+
/** A designed / expected transition (solid stroke) */
|
|
261
|
+
readonly planned: NullType;
|
|
262
|
+
/** A transition mined from evidence (dashed stroke) */
|
|
263
|
+
readonly observed: NullType;
|
|
264
|
+
}>>;
|
|
265
|
+
/** 0..1 decision trigger key → diamond */
|
|
266
|
+
readonly trigger: OptionType<StringType>;
|
|
267
|
+
/** Imported evidence (weight, badges, provenance) */
|
|
268
|
+
readonly evidence: OptionType<StructType<{
|
|
269
|
+
/** Total measured volume behind the arrow */
|
|
270
|
+
readonly volume: OptionType<FloatType>;
|
|
271
|
+
/** Event count behind the arrow (e.g. cage moves) */
|
|
272
|
+
readonly count: OptionType<IntegerType>;
|
|
273
|
+
/** When the evidence was measured */
|
|
274
|
+
readonly measuredAt: OptionType<DateTimeType>;
|
|
275
|
+
/** Volume unit suffix for badges ("parcels") */
|
|
276
|
+
readonly unit: OptionType<StringType>;
|
|
277
|
+
}>>;
|
|
278
|
+
}>>;
|
|
279
|
+
/** Its decisions, each named by the transitions it governs */
|
|
280
|
+
readonly triggers: ArrayType<StructType<{
|
|
281
|
+
/** Trigger identity referenced by links */
|
|
282
|
+
readonly key: StringType;
|
|
283
|
+
/** Decision name ("route") */
|
|
284
|
+
readonly label: StringType;
|
|
285
|
+
/** Diamond letter (default: first letter of the label) */
|
|
286
|
+
readonly letter: OptionType<StringType>;
|
|
287
|
+
/** Owning role / system ("sort-planner") */
|
|
288
|
+
readonly owner: OptionType<StringType>;
|
|
289
|
+
/** State keys queued at the decision */
|
|
290
|
+
readonly queue: OptionType<ArrayType<StringType>>;
|
|
291
|
+
/** Outcome summary line ("CH* (×14 chutes)") */
|
|
292
|
+
readonly outcomes: OptionType<StringType>;
|
|
293
|
+
}>>;
|
|
294
|
+
}>;
|
|
295
|
+
/**
|
|
296
|
+
* Type representing one flow.
|
|
297
|
+
*/
|
|
298
|
+
export type FlowchartFlowType = typeof FlowchartFlowType;
|
|
299
|
+
/**
|
|
300
|
+
* A record of flows, by name — the record a flowchart is bound to (#1244,
|
|
301
|
+
* `Flowchart Builder Spec.md` §5.1): a record always holds flows by name, e3's
|
|
302
|
+
* patch mutation writing only keyed records. A name is the flow's key in the
|
|
303
|
+
* record. `Flowchart.values` writes one from literals.
|
|
304
|
+
*/
|
|
305
|
+
export declare const FlowchartFlowsType: DictType<StringType, StructType<{
|
|
306
|
+
/** One sentence about the flow: the line its card in the Flows tab shows */
|
|
307
|
+
readonly description: OptionType<StringType>;
|
|
308
|
+
/** Its lanes, in band order */
|
|
309
|
+
readonly lanes: ArrayType<StructType<{
|
|
310
|
+
/** Lane identity referenced by states */
|
|
311
|
+
readonly key: StringType;
|
|
312
|
+
/** Band header label (defaults to the key, uppercased) */
|
|
313
|
+
readonly label: OptionType<StringType>;
|
|
314
|
+
}>>;
|
|
315
|
+
/** Its states, each in one of its lanes */
|
|
316
|
+
readonly states: ArrayType<StructType<{
|
|
317
|
+
/** Short mono code — the node identity ("IND") */
|
|
318
|
+
readonly key: StringType;
|
|
319
|
+
/** Display label under the code */
|
|
320
|
+
readonly label: OptionType<StringType>;
|
|
321
|
+
/** The lane (ordered phase) this state belongs to */
|
|
322
|
+
readonly lane: StringType;
|
|
323
|
+
/** State-class member count → the ×N badge */
|
|
324
|
+
readonly members: OptionType<IntegerType>;
|
|
325
|
+
/** Free-text notes, shown and edited in the inspector */
|
|
326
|
+
readonly notes: OptionType<StringType>;
|
|
327
|
+
}>>;
|
|
328
|
+
/** Its transitions; one naming a state the flow does not have draws as the unresolved ghost */
|
|
329
|
+
readonly links: ArrayType<StructType<{
|
|
330
|
+
/** Stable identity (selection / delete events); default derived from endpoints */
|
|
331
|
+
readonly key: OptionType<StringType>;
|
|
332
|
+
/** Source state key */
|
|
333
|
+
readonly from: StringType;
|
|
334
|
+
/** Target state key */
|
|
335
|
+
readonly to: StringType;
|
|
336
|
+
/** planned (default) | observed */
|
|
337
|
+
readonly kind: OptionType<VariantType<{
|
|
338
|
+
/** A designed / expected transition (solid stroke) */
|
|
339
|
+
readonly planned: NullType;
|
|
340
|
+
/** A transition mined from evidence (dashed stroke) */
|
|
341
|
+
readonly observed: NullType;
|
|
342
|
+
}>>;
|
|
343
|
+
/** 0..1 decision trigger key → diamond */
|
|
344
|
+
readonly trigger: OptionType<StringType>;
|
|
345
|
+
/** Imported evidence (weight, badges, provenance) */
|
|
346
|
+
readonly evidence: OptionType<StructType<{
|
|
347
|
+
/** Total measured volume behind the arrow */
|
|
348
|
+
readonly volume: OptionType<FloatType>;
|
|
349
|
+
/** Event count behind the arrow (e.g. cage moves) */
|
|
350
|
+
readonly count: OptionType<IntegerType>;
|
|
351
|
+
/** When the evidence was measured */
|
|
352
|
+
readonly measuredAt: OptionType<DateTimeType>;
|
|
353
|
+
/** Volume unit suffix for badges ("parcels") */
|
|
354
|
+
readonly unit: OptionType<StringType>;
|
|
355
|
+
}>>;
|
|
356
|
+
}>>;
|
|
357
|
+
/** Its decisions, each named by the transitions it governs */
|
|
358
|
+
readonly triggers: ArrayType<StructType<{
|
|
359
|
+
/** Trigger identity referenced by links */
|
|
360
|
+
readonly key: StringType;
|
|
361
|
+
/** Decision name ("route") */
|
|
362
|
+
readonly label: StringType;
|
|
363
|
+
/** Diamond letter (default: first letter of the label) */
|
|
364
|
+
readonly letter: OptionType<StringType>;
|
|
365
|
+
/** Owning role / system ("sort-planner") */
|
|
366
|
+
readonly owner: OptionType<StringType>;
|
|
367
|
+
/** State keys queued at the decision */
|
|
368
|
+
readonly queue: OptionType<ArrayType<StringType>>;
|
|
369
|
+
/** Outcome summary line ("CH* (×14 chutes)") */
|
|
370
|
+
readonly outcomes: OptionType<StringType>;
|
|
371
|
+
}>>;
|
|
372
|
+
}>>;
|
|
373
|
+
/**
|
|
374
|
+
* Type representing a record of flows.
|
|
375
|
+
*/
|
|
376
|
+
export type FlowchartFlowsType = typeof FlowchartFlowsType;
|
|
377
|
+
/**
|
|
378
|
+
* Eyebrow freshness chip content.
|
|
379
|
+
*
|
|
380
|
+
* @property label - Chip label ("evidence-2026.06")
|
|
381
|
+
* @property date - Optional stamp printed after the label
|
|
382
|
+
*/
|
|
383
|
+
export declare const FlowchartFreshnessType: StructType<{
|
|
384
|
+
/** Chip label ("evidence-2026.06") */
|
|
385
|
+
readonly label: StringType;
|
|
386
|
+
/** Optional stamp printed after the label */
|
|
387
|
+
readonly date: OptionType<DateTimeType>;
|
|
388
|
+
}>;
|
|
389
|
+
/**
|
|
390
|
+
* Type representing the freshness chip.
|
|
391
|
+
*/
|
|
392
|
+
export type FlowchartFreshnessType = typeof FlowchartFreshnessType;
|
|
393
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/flowchart/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,216 @@
|
|
|
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
|
+
import { ArrayType, DateTimeType, DictType, FloatType, IntegerType, NullType, OptionType, StringType, StructType, VariantType, } from "@elaraai/east";
|
|
6
|
+
/**
|
|
7
|
+
* Link kind — the transition's provenance class.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* `planned` renders solid; `observed` renders dashed (5/4). A link whose
|
|
11
|
+
* `from` / `to` reference has no state row is *unresolved* — that is a
|
|
12
|
+
* derived render class (dashed 4/4 in the negative tone against a ghost
|
|
13
|
+
* "No state row" node), never an authored kind.
|
|
14
|
+
*
|
|
15
|
+
* @property planned - A designed / expected transition (solid stroke)
|
|
16
|
+
* @property observed - A transition mined from evidence (dashed stroke)
|
|
17
|
+
*/
|
|
18
|
+
export const FlowchartLinkKindType = VariantType({
|
|
19
|
+
/** A designed / expected transition (solid stroke) */
|
|
20
|
+
planned: NullType,
|
|
21
|
+
/** A transition mined from evidence (dashed stroke) */
|
|
22
|
+
observed: NullType,
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* Canvas orientation — which axis the lane bands run along.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* Orientation is VIEW state, not slice state: the eyebrow's orientation
|
|
29
|
+
* segment toggles it and it never appears as a filter chip. `LR` lays
|
|
30
|
+
* lanes left→right (links flow rightward); `TD` swaps the axes.
|
|
31
|
+
*
|
|
32
|
+
* @property LR - Lanes run left → right
|
|
33
|
+
* @property TD - Lanes run top → down
|
|
34
|
+
*/
|
|
35
|
+
export const FlowchartOrientationType = VariantType({
|
|
36
|
+
/** Lanes run left → right */
|
|
37
|
+
LR: NullType,
|
|
38
|
+
/** Lanes run top → down */
|
|
39
|
+
TD: NullType,
|
|
40
|
+
});
|
|
41
|
+
/**
|
|
42
|
+
* Imported evidence carried by a link — never hand-authored.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Evidence drives derived marks only: stroke weight scales with `volume`
|
|
46
|
+
* (log scale 1.6 / 2 / 2.5 px, floor 1.4), `volume` + `unit` print as the
|
|
47
|
+
* paper-filled badge on the longest straight run, and the inspector shows
|
|
48
|
+
* all four, read only, under the transition's fields (#1250).
|
|
49
|
+
*
|
|
50
|
+
* @property volume - Total measured volume behind the arrow
|
|
51
|
+
* @property count - Event count behind the arrow (e.g. cage moves)
|
|
52
|
+
* @property measuredAt - When the evidence was measured
|
|
53
|
+
* @property unit - Volume unit suffix for badges ("parcels")
|
|
54
|
+
*/
|
|
55
|
+
export const FlowchartEvidenceType = StructType({
|
|
56
|
+
/** Total measured volume behind the arrow */
|
|
57
|
+
volume: OptionType(FloatType),
|
|
58
|
+
/** Event count behind the arrow (e.g. cage moves) */
|
|
59
|
+
count: OptionType(IntegerType),
|
|
60
|
+
/** When the evidence was measured */
|
|
61
|
+
measuredAt: OptionType(DateTimeType),
|
|
62
|
+
/** Volume unit suffix for badges ("parcels") */
|
|
63
|
+
unit: OptionType(StringType),
|
|
64
|
+
});
|
|
65
|
+
/**
|
|
66
|
+
* One state — a node in the flowchart.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* The short mono `key` is the node identity everywhere (selection events,
|
|
70
|
+
* link `from` / `to` refs, trigger queues). A state with `members` set is
|
|
71
|
+
* a STATE CLASS — one node standing for N interchangeable members (the
|
|
72
|
+
* `×N` badge). In-place transitions (`from == to` links) collapse to the
|
|
73
|
+
* `↻ n` badge on the node and never route through handles.
|
|
74
|
+
*
|
|
75
|
+
* @property key - Short mono code — the node identity ("IND")
|
|
76
|
+
* @property label - Display label under the code
|
|
77
|
+
* @property lane - The lane (ordered phase) this state belongs to
|
|
78
|
+
* @property members - State-class member count → the ×N badge
|
|
79
|
+
* @property notes - Free-text notes, shown and edited in the inspector
|
|
80
|
+
*/
|
|
81
|
+
export const FlowchartStateType = StructType({
|
|
82
|
+
/** Short mono code — the node identity ("IND") */
|
|
83
|
+
key: StringType,
|
|
84
|
+
/** Display label under the code */
|
|
85
|
+
label: OptionType(StringType),
|
|
86
|
+
/** The lane (ordered phase) this state belongs to */
|
|
87
|
+
lane: StringType,
|
|
88
|
+
/** State-class member count → the ×N badge */
|
|
89
|
+
members: OptionType(IntegerType),
|
|
90
|
+
/** Free-text notes, shown and edited in the inspector */
|
|
91
|
+
notes: OptionType(StringType),
|
|
92
|
+
});
|
|
93
|
+
/**
|
|
94
|
+
* One link — a state transition drawn as an H/V-routed arrow.
|
|
95
|
+
*
|
|
96
|
+
* @remarks
|
|
97
|
+
* `from` / `to` are state keys; a reference with no state row renders the
|
|
98
|
+
* neg-dashed ghost "No state row" node (derived, counted in the footer).
|
|
99
|
+
* At most one `trigger` per link — the lettered decision diamond anchored
|
|
100
|
+
* to the midpoint of the longest straight run.
|
|
101
|
+
*
|
|
102
|
+
* @property key - Stable identity (selection / delete events); default derived from endpoints
|
|
103
|
+
* @property from - Source state key
|
|
104
|
+
* @property to - Target state key
|
|
105
|
+
* @property kind - planned (default) | observed
|
|
106
|
+
* @property trigger - 0..1 decision trigger key → diamond
|
|
107
|
+
* @property evidence - Imported evidence (weight, badges, provenance)
|
|
108
|
+
*/
|
|
109
|
+
export const FlowchartLinkType = StructType({
|
|
110
|
+
/** Stable identity (selection / delete events); default derived from endpoints */
|
|
111
|
+
key: OptionType(StringType),
|
|
112
|
+
/** Source state key */
|
|
113
|
+
from: StringType,
|
|
114
|
+
/** Target state key */
|
|
115
|
+
to: StringType,
|
|
116
|
+
/** planned (default) | observed */
|
|
117
|
+
kind: OptionType(FlowchartLinkKindType),
|
|
118
|
+
/** 0..1 decision trigger key → diamond */
|
|
119
|
+
trigger: OptionType(StringType),
|
|
120
|
+
/** Imported evidence (weight, badges, provenance) */
|
|
121
|
+
evidence: OptionType(FlowchartEvidenceType),
|
|
122
|
+
});
|
|
123
|
+
/**
|
|
124
|
+
* One lane — an ordered phase band.
|
|
125
|
+
*
|
|
126
|
+
* @remarks
|
|
127
|
+
* Lane order is array order; every state names its lane by `key`. The
|
|
128
|
+
* dashed `+ LANE` affordance renders at the tail of the band row.
|
|
129
|
+
*
|
|
130
|
+
* @property key - Lane identity referenced by states
|
|
131
|
+
* @property label - Band header label (defaults to the key, uppercased)
|
|
132
|
+
*/
|
|
133
|
+
export const FlowchartLaneType = StructType({
|
|
134
|
+
/** Lane identity referenced by states */
|
|
135
|
+
key: StringType,
|
|
136
|
+
/** Band header label (defaults to the key, uppercased) */
|
|
137
|
+
label: OptionType(StringType),
|
|
138
|
+
});
|
|
139
|
+
/**
|
|
140
|
+
* One decision trigger — a governed decision seam referenced by links.
|
|
141
|
+
*
|
|
142
|
+
* @remarks
|
|
143
|
+
* Triggers render as diamonds (max one per link) carrying a letter per
|
|
144
|
+
* TYPE, not per instance. Clicking a diamond highlights every link it
|
|
145
|
+
* governs (plus queue and outcome nodes).
|
|
146
|
+
*
|
|
147
|
+
* @property key - Trigger identity referenced by links
|
|
148
|
+
* @property label - Decision name ("route")
|
|
149
|
+
* @property letter - Diamond letter (default: first letter of the label)
|
|
150
|
+
* @property owner - Owning role / system ("sort-planner")
|
|
151
|
+
* @property queue - State keys queued at the decision
|
|
152
|
+
* @property outcomes - Outcome summary line ("CH* (×14 chutes)")
|
|
153
|
+
*/
|
|
154
|
+
export const FlowchartTriggerType = StructType({
|
|
155
|
+
/** Trigger identity referenced by links */
|
|
156
|
+
key: StringType,
|
|
157
|
+
/** Decision name ("route") */
|
|
158
|
+
label: StringType,
|
|
159
|
+
/** Diamond letter (default: first letter of the label) */
|
|
160
|
+
letter: OptionType(StringType),
|
|
161
|
+
/** Owning role / system ("sort-planner") */
|
|
162
|
+
owner: OptionType(StringType),
|
|
163
|
+
/** State keys queued at the decision */
|
|
164
|
+
queue: OptionType(ArrayType(StringType)),
|
|
165
|
+
/** Outcome summary line ("CH* (×14 chutes)") */
|
|
166
|
+
outcomes: OptionType(StringType),
|
|
167
|
+
});
|
|
168
|
+
/**
|
|
169
|
+
* One flow — a whole flowchart: its lanes, its states, the transitions
|
|
170
|
+
* between them and the decisions that govern them (#1244, `Flowchart Builder
|
|
171
|
+
* Spec.md` §5.1).
|
|
172
|
+
*
|
|
173
|
+
* @remarks
|
|
174
|
+
* A record of flows holds one per name ({@link FlowchartFlowsType}), and a
|
|
175
|
+
* lone flow is a record of one entry, or the host's `data`. `Flowchart.value`
|
|
176
|
+
* writes one from a literal, and `Flowchart.over` builds one from an app's
|
|
177
|
+
* own tables. A record's entries are flows, so it is a stored form.
|
|
178
|
+
*
|
|
179
|
+
* @property description - One sentence about the flow: the line its card in the Flows tab shows
|
|
180
|
+
* @property lanes - Its lanes, in band order
|
|
181
|
+
* @property states - Its states, each in one of its lanes
|
|
182
|
+
* @property links - Its transitions; one naming a state the flow does not have draws as the unresolved ghost
|
|
183
|
+
* @property triggers - Its decisions, each named by the transitions it governs
|
|
184
|
+
*/
|
|
185
|
+
export const FlowchartFlowType = StructType({
|
|
186
|
+
/** One sentence about the flow: the line its card in the Flows tab shows */
|
|
187
|
+
description: OptionType(StringType),
|
|
188
|
+
/** Its lanes, in band order */
|
|
189
|
+
lanes: ArrayType(FlowchartLaneType),
|
|
190
|
+
/** Its states, each in one of its lanes */
|
|
191
|
+
states: ArrayType(FlowchartStateType),
|
|
192
|
+
/** Its transitions; one naming a state the flow does not have draws as the unresolved ghost */
|
|
193
|
+
links: ArrayType(FlowchartLinkType),
|
|
194
|
+
/** Its decisions, each named by the transitions it governs */
|
|
195
|
+
triggers: ArrayType(FlowchartTriggerType),
|
|
196
|
+
});
|
|
197
|
+
/**
|
|
198
|
+
* A record of flows, by name — the record a flowchart is bound to (#1244,
|
|
199
|
+
* `Flowchart Builder Spec.md` §5.1): a record always holds flows by name, e3's
|
|
200
|
+
* patch mutation writing only keyed records. A name is the flow's key in the
|
|
201
|
+
* record. `Flowchart.values` writes one from literals.
|
|
202
|
+
*/
|
|
203
|
+
export const FlowchartFlowsType = DictType(StringType, FlowchartFlowType);
|
|
204
|
+
/**
|
|
205
|
+
* Eyebrow freshness chip content.
|
|
206
|
+
*
|
|
207
|
+
* @property label - Chip label ("evidence-2026.06")
|
|
208
|
+
* @property date - Optional stamp printed after the label
|
|
209
|
+
*/
|
|
210
|
+
export const FlowchartFreshnessType = StructType({
|
|
211
|
+
/** Chip label ("evidence-2026.06") */
|
|
212
|
+
label: StringType,
|
|
213
|
+
/** Optional stamp printed after the label */
|
|
214
|
+
date: OptionType(DateTimeType),
|
|
215
|
+
});
|
|
216
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/flowchart/types.ts"],"names":[],"mappings":"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"}
|