@elaraai/e3-ui 1.0.86 → 1.0.88
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,79 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* `<Flowchart>` (#1244) — the tag: one form per source of flows — a record of
|
|
7
|
+
* flows by name, or the host's flows or flow, `data`'s type picking its form —
|
|
8
|
+
* each form's props typed (`Flowchart Builder Spec.md` §4.1, decision 3). A
|
|
9
|
+
* record always holds flows by name (ruled 2026-10-07). Over one flow the
|
|
10
|
+
* library lists every tab but the Flows tab (#1246, FB16) — its templates and
|
|
11
|
+
* the author's tabs, each over its own rows (#1248). No form takes a callback
|
|
12
|
+
* for an edit: the gestures are the editing session's, which Save commits
|
|
13
|
+
* (#1247, FB24). Its payload and every refusal are `payload.ts`'s, and its
|
|
14
|
+
* library's tabs and their refusals `library.ts`'s.
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
import type { StringType, SubtypeExprOrValue } from "@elaraai/east";
|
|
19
|
+
import type { RecordSliceChromeOptions } from "@elaraai/east-ui/internal";
|
|
20
|
+
import type { UIElement } from "@elaraai/east-ui";
|
|
21
|
+
import type { FlowchartSliceOptions } from "./canvas.js";
|
|
22
|
+
import type { FlowchartLibraryTab, FlowchartOneFlowLibraryTab } from "./library.js";
|
|
23
|
+
import { type FlowchartBindHandle, type FlowchartCommon, type FlowchartFlowApplyType, type FlowchartFlowsApplyType, type FlowchartRecordHandle } from "./payload.js";
|
|
24
|
+
import type { FlowchartFlowType, FlowchartFlowsType } from "./types.js";
|
|
25
|
+
/**
|
|
26
|
+
* `<Flowchart record={flows} flow="Inbound parcels" />` — a record of flows
|
|
27
|
+
* by name, bound with its patch mutation: the canvas shows `flow`, opened
|
|
28
|
+
* first, else the first flow by name. A lone flow is a record of one entry.
|
|
29
|
+
* Every gesture is a draft of the open flow's editing session, and Save
|
|
30
|
+
* commits the drafts as one patch through the record's patch mutation.
|
|
31
|
+
*/
|
|
32
|
+
export declare function FlowchartTag(props: {
|
|
33
|
+
record: FlowchartRecordHandle;
|
|
34
|
+
/** Page flows through Data.bindPaged(record), or Slice.rows of a record slice. */
|
|
35
|
+
window?: {
|
|
36
|
+
readonly page: unknown;
|
|
37
|
+
readonly total: unknown;
|
|
38
|
+
};
|
|
39
|
+
/** Shared index filters for the record's flows; never filters the open flow's children. */
|
|
40
|
+
slice?: RecordSliceChromeOptions;
|
|
41
|
+
/** Over many flows, the one opened first. */
|
|
42
|
+
flow?: SubtypeExprOrValue<StringType>;
|
|
43
|
+
/** The library pane's tabs, in order, each a `Flowchart.library.*` call; left out, or empty, no library pane. */
|
|
44
|
+
library?: readonly FlowchartLibraryTab[];
|
|
45
|
+
} & FlowchartCommon): UIElement;
|
|
46
|
+
/**
|
|
47
|
+
* `<Flowchart data={flows} />` — the host's flows by name: a value, an
|
|
48
|
+
* expression or a bind handle. Read only unless the host commits its edits
|
|
49
|
+
* through `onApply`: then every gesture is a draft, and Save hands the host
|
|
50
|
+
* the session's request id and one patch of the flows, the open flow's insert,
|
|
51
|
+
* update or delete by name — a Retry the same id again (#1275).
|
|
52
|
+
*/
|
|
53
|
+
export declare function FlowchartTag(props: {
|
|
54
|
+
data: SubtypeExprOrValue<FlowchartFlowsType> | FlowchartBindHandle<FlowchartFlowsType>;
|
|
55
|
+
/** Over many flows, the one opened first. */
|
|
56
|
+
flow?: SubtypeExprOrValue<StringType>;
|
|
57
|
+
/** The host's commit: the session's request id and one patch of the flows, answered as the editing session's Save is; a Retry hands the same id. */
|
|
58
|
+
onApply?: SubtypeExprOrValue<FlowchartFlowsApplyType>;
|
|
59
|
+
/** The library pane's tabs, in order, each a `Flowchart.library.*` call; left out, or empty, no library pane. */
|
|
60
|
+
library?: readonly FlowchartLibraryTab[];
|
|
61
|
+
} & FlowchartSliceOptions & FlowchartCommon): UIElement;
|
|
62
|
+
/**
|
|
63
|
+
* `<Flowchart data={Flowchart.over(states, { … })} />` — the host's one flow:
|
|
64
|
+
* a value, an expression or a bind handle, `Flowchart.over` building it from
|
|
65
|
+
* the host's tables. Read only unless the host commits its edits through
|
|
66
|
+
* `onApply`: then every gesture is a draft, and Save hands the host the
|
|
67
|
+
* session's request id and one patch of the flow — a Retry the same id again
|
|
68
|
+
* (#1275). Its library lists no Flows tab: one flow has none to list.
|
|
69
|
+
*/
|
|
70
|
+
export declare function FlowchartTag(props: {
|
|
71
|
+
data: SubtypeExprOrValue<FlowchartFlowType> | FlowchartBindHandle<FlowchartFlowType>;
|
|
72
|
+
/** The host's commit: the session's request id and one patch of the flow, answered as the editing session's Save is; a Retry hands the same id. */
|
|
73
|
+
onApply?: SubtypeExprOrValue<FlowchartFlowApplyType>;
|
|
74
|
+
/** The library pane's tabs, in order — every tab but the Flows tab; left out, or empty, no library pane. */
|
|
75
|
+
library?: readonly FlowchartOneFlowLibraryTab[];
|
|
76
|
+
} & FlowchartSliceOptions & FlowchartCommon): UIElement;
|
|
77
|
+
/** The type of `<Flowchart>` as a tag: every form its props take. */
|
|
78
|
+
export type FlowchartTagType = typeof FlowchartTag;
|
|
79
|
+
//# sourceMappingURL=flowchart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowchart.d.ts","sourceRoot":"","sources":["../../../src/flowchart/flowchart.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,EAGH,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAExE;;;;;;GAMG;AACH,wBAAgB,YAAY,CACxB,KAAK,EAAE;IACH,MAAM,EAAE,qBAAqB,CAAC;IAC9B,kFAAkF;IAClF,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;IAC7D,2FAA2F;IAC3F,KAAK,CAAC,EAAE,wBAAwB,CAAC;IACjC,6CAA6C;IAC7C,IAAI,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACtC,iHAAiH;IACjH,OAAO,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;CAC5C,GAAG,eAAe,GACpB,SAAS,CAAC;AACb;;;;;;GAMG;AACH,wBAAgB,YAAY,CACxB,KAAK,EAAE;IACH,IAAI,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IACvF,6CAA6C;IAC7C,IAAI,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACtC,oJAAoJ;IACpJ,OAAO,CAAC,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;IACtD,iHAAiH;IACjH,OAAO,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;CAC5C,GAAG,qBAAqB,GAAG,eAAe,GAC5C,SAAS,CAAC;AACb;;;;;;;GAOG;AACH,wBAAgB,YAAY,CACxB,KAAK,EAAE;IACH,IAAI,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;IACrF,mJAAmJ;IACnJ,OAAO,CAAC,EAAE,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;IACrD,4GAA4G;IAC5G,OAAO,CAAC,EAAE,SAAS,0BAA0B,EAAE,CAAC;CACnD,GAAG,qBAAqB,GAAG,eAAe,GAC5C,SAAS,CAAC;AAKb,qEAAqE;AACrE,MAAM,MAAM,gBAAgB,GAAG,OAAO,YAAY,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 { FlowchartComponent, createFlowchartPayload, } from "./payload.js";
|
|
6
|
+
export function FlowchartTag(props) {
|
|
7
|
+
return FlowchartComponent.Root(createFlowchartPayload(props));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=flowchart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowchart.js","sourceRoot":"","sources":["../../../src/flowchart/flowchart.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqBH,OAAO,EACH,kBAAkB,EAClB,sBAAsB,GAMzB,MAAM,cAAc,CAAC;AA0DtB,MAAM,UAAU,YAAY,CAAC,KAAa;IACtC,OAAO,kBAAkB,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,305 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* The Flowchart (#1243–#1250): the state-transition flowchart, e3-ui's as the
|
|
7
|
+
* Plan (#1177) and the Sheet (#1179) are. `<Flowchart>` takes its flows from
|
|
8
|
+
* an e3 record of flows by name, or from the host — flows by name, or one
|
|
9
|
+
* flow — and returns its payload through the `Flowchart` carrier, which
|
|
10
|
+
* e3-ui-components' renderer draws in its builder frame and edits through its
|
|
11
|
+
* editing session.
|
|
12
|
+
*
|
|
13
|
+
* - `types.ts` — the flow, the record of flows, and the row and closed-set
|
|
14
|
+
* types (`Flowchart.Types.*`).
|
|
15
|
+
* - `values.ts` — `Flowchart.value` and `Flowchart.values`, a record's value
|
|
16
|
+
* written as literals and checked when the package builds.
|
|
17
|
+
* - `over.ts` — `Flowchart.over`, one flow from an app's own tables.
|
|
18
|
+
* - `patch.ts` — `Flowchart.patch`, a patch over one of a flow's rows.
|
|
19
|
+
* - `library.ts` — `Flowchart.library`, the library pane's tabs — the Flows
|
|
20
|
+
* tab, the state and transition templates and the author's tabs, each
|
|
21
|
+
* reading its own rows — and their wire.
|
|
22
|
+
* - `canvas.ts` — the canvas: what the flowchart draws its flow with.
|
|
23
|
+
* - `payload.ts` — the payload, its carrier, the shared keys, the props and
|
|
24
|
+
* their refusals.
|
|
25
|
+
* - `flowchart.ts` — the tag.
|
|
26
|
+
*
|
|
27
|
+
* @packageDocumentation
|
|
28
|
+
*/
|
|
29
|
+
import { type FlowchartTagType } from "./flowchart.js";
|
|
30
|
+
import { FlowchartCanvasType } from "./canvas.js";
|
|
31
|
+
import { FlowchartCardType, FlowchartDecisionCardType, FlowchartLandsType, FlowchartLaneCardType, FlowchartLibraryTabType, FlowchartStateCardType, FlowchartTransitionCardType, type FlowchartLibrary } from "./library.js";
|
|
32
|
+
import { flowchartOver } from "./over.js";
|
|
33
|
+
import { FlowchartPatchTypeFor, flowchartPatch } from "./patch.js";
|
|
34
|
+
import { FlowchartComponent, FlowchartDataType, FlowchartFlowsHandleType, FlowchartInspectorType, FlowchartPayloadType, FlowchartSessionApplyType, FlowchartSourceType, createFlowchartPayload } from "./payload.js";
|
|
35
|
+
import { FlowchartEvidenceType, FlowchartFlowType, FlowchartFlowsType, FlowchartFreshnessType, FlowchartLaneType, FlowchartLinkKindType, FlowchartLinkType, FlowchartOrientationType, FlowchartStateType, FlowchartTriggerType } from "./types.js";
|
|
36
|
+
import { flowchartValue, flowchartValues } from "./values.js";
|
|
37
|
+
export { FlowchartTag, type FlowchartTagType } from "./flowchart.js";
|
|
38
|
+
export { FlowchartCanvasType, buildCanvas, type FlowchartCanvasOptions, type FlowchartSliceOptions, type FlowchartFreshnessInput, type FlowchartOrientationLiteral, } from "./canvas.js";
|
|
39
|
+
export { flowchartOver, type RowElement, type FlowchartTables, type FlowchartStateFields, type FlowchartLinkFields, type FlowchartLaneFields, type FlowchartTriggerFields, type FlowchartEvidenceFields, type FlowchartLaneLiteral, } from "./over.js";
|
|
40
|
+
export { FlowchartPatchTypeFor, flowchartPatch, type FlowchartRowType, type FlowchartPatchOf, type FlowchartPatchInput } from "./patch.js";
|
|
41
|
+
export { FlowchartCardType, FlowchartDecisionCardType, FlowchartLandsType, FlowchartLaneCardType, FlowchartLibraryFactories, FlowchartLibraryTabType, FlowchartStateCardType, FlowchartTransitionCardType, libraryFlows, libraryStates, libraryTab, libraryTransitions, type FlowchartAuthorTab, type FlowchartCardAccessors, type FlowchartFlowsTab, type FlowchartLibrary, type FlowchartLibraryRows, type FlowchartLibraryTab, type FlowchartOneFlowLibraryTab, type FlowchartStatesConfig, type FlowchartStatesTab, type FlowchartTabConfig, type FlowchartTransitionsConfig, type FlowchartTransitionsTab, } from "./library.js";
|
|
42
|
+
export { FlowchartComponent, FlowchartDataType, FlowchartFlowApplyType, FlowchartFlowsApplyType, FlowchartFlowsHandleType, FlowchartHistoryType, FlowchartInspectorType, FlowchartPayloadType, FlowchartSessionApplyType, FlowchartSourceType, createFlowchartPayload, flowchartKeys, type FlowchartBindHandle, type FlowchartCommon, type FlowchartInspectorOptions, type FlowchartRecordHandle, type FlowchartRowInspector, } from "./payload.js";
|
|
43
|
+
export { flowchartValue, flowchartValues, type FlowchartFlowInput, type FlowchartLaneInput, type FlowchartStateInput, type FlowchartLinkInput, type FlowchartEvidenceInput, type FlowchartTriggerInput, type FlowchartLinkKindLiteral, } from "./values.js";
|
|
44
|
+
/** The East types a flowchart is written with — `Flowchart.Types`. */
|
|
45
|
+
export interface FlowchartTypes {
|
|
46
|
+
/** One flow: its lanes, states, transitions and decisions, and a sentence about it ({@link FlowchartFlowType}). */
|
|
47
|
+
Flow: typeof FlowchartFlowType;
|
|
48
|
+
/** A record of flows, by name ({@link FlowchartFlowsType}). */
|
|
49
|
+
Flows: typeof FlowchartFlowsType;
|
|
50
|
+
/** One state node ({@link FlowchartStateType}). */
|
|
51
|
+
State: typeof FlowchartStateType;
|
|
52
|
+
/** One transition ({@link FlowchartLinkType}). */
|
|
53
|
+
Link: typeof FlowchartLinkType;
|
|
54
|
+
/** One ordered phase band ({@link FlowchartLaneType}). */
|
|
55
|
+
Lane: typeof FlowchartLaneType;
|
|
56
|
+
/** One decision trigger ({@link FlowchartTriggerType}). */
|
|
57
|
+
Trigger: typeof FlowchartTriggerType;
|
|
58
|
+
/** Imported link evidence ({@link FlowchartEvidenceType}). */
|
|
59
|
+
Evidence: typeof FlowchartEvidenceType;
|
|
60
|
+
/** Link kind — planned | observed ({@link FlowchartLinkKindType}). */
|
|
61
|
+
Kind: typeof FlowchartLinkKindType;
|
|
62
|
+
/** Canvas orientation — LR | TD ({@link FlowchartOrientationType}). */
|
|
63
|
+
Orientation: typeof FlowchartOrientationType;
|
|
64
|
+
/** The toolbar's freshness chip ({@link FlowchartFreshnessType}). */
|
|
65
|
+
Freshness: typeof FlowchartFreshnessType;
|
|
66
|
+
/** `Patch(R)` — a patch over one of a flow's rows, every field an `Option` ({@link FlowchartPatchTypeFor}). */
|
|
67
|
+
Patch: typeof FlowchartPatchTypeFor;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The type of the {@link Flowchart} namespace: `<Flowchart>`, the values and
|
|
71
|
+
* patches a flowchart is written with, and its East types.
|
|
72
|
+
*/
|
|
73
|
+
export interface FlowchartNamespace extends FlowchartTagType {
|
|
74
|
+
/** One flow's value — written as a literal and checked when the package builds ({@link flowchartValue}). */
|
|
75
|
+
value: typeof flowchartValue;
|
|
76
|
+
/** A record of flows' value, by name — each flow written as a literal and checked when the package builds ({@link flowchartValues}). */
|
|
77
|
+
values: typeof flowchartValues;
|
|
78
|
+
/** One flow built from an app's own tables, through their row mappers ({@link flowchartOver}). */
|
|
79
|
+
over: typeof flowchartOver;
|
|
80
|
+
/** A patch over one of a flow's rows ({@link flowchartPatch}). */
|
|
81
|
+
patch: typeof flowchartPatch;
|
|
82
|
+
/** The library pane's tabs, each a factory `library` lists ({@link FlowchartLibrary}). */
|
|
83
|
+
library: FlowchartLibrary;
|
|
84
|
+
/** The East types a flowchart is written with ({@link FlowchartTypes}). */
|
|
85
|
+
Types: FlowchartTypes;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* `<Flowchart>` — the state-transition flowchart: states as nodes in ordered
|
|
89
|
+
* phase lanes (the layout derived, no coordinates), H/V-routed transitions,
|
|
90
|
+
* decision triggers (lettered diamonds) and evidence-weighted strokes. The
|
|
91
|
+
* selection — a state, a transition, a decision, a lane by its header, or
|
|
92
|
+
* several states — and the pointer-highlight grammar are built in, and the
|
|
93
|
+
* inspector shows what is selected.
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
* - **Its frame**: it renders in its builder frame wherever it is used — one
|
|
97
|
+
* toolbar (find state, LR · TD, the freshness chip and, over `data`, the
|
|
98
|
+
* slice's rail; over a record, the history item), the canvas filling main
|
|
99
|
+
* and scrolling both ways inside it, and the footer's counts; a library pane
|
|
100
|
+
* when `library` lists tabs, and the inspector pane unless
|
|
101
|
+
* `inspector={false}`. It fills the box it is given and draws no border:
|
|
102
|
+
* give it a box of its own height.
|
|
103
|
+
* - **Its inspector** (#1250, on by default, ruled by the user on
|
|
104
|
+
* 2026-10-08): the end pane, Details and Issues — Issues with its count, and
|
|
105
|
+
* collapsed a rail with its icon and the issue count. Details shows what is
|
|
106
|
+
* selected through its form, every field by the shared input its type
|
|
107
|
+
* takes: a state (its key — a new one rekeying its transitions and the
|
|
108
|
+
* decisions' queues — label, lane, members and notes; its transitions in and
|
|
109
|
+
* out, each selecting it; Duplicate, Delete), a transition (its ends, its
|
|
110
|
+
* kind, its decision and its key; its evidence read only; Delete), a
|
|
111
|
+
* decision (its fields, its queue as tags over the flow's states; the
|
|
112
|
+
* transitions it governs; Delete), a lane — a click on its header selects
|
|
113
|
+
* it — (its key, which moves its states, and its label; its states' count;
|
|
114
|
+
* Delete while it holds none), several states (their count; moved to a
|
|
115
|
+
* lane, or deleted, together) or, with nothing selected, the open flow (its
|
|
116
|
+
* name and description — a new name renames it — Duplicate and Delete over
|
|
117
|
+
* many flows; its counts, its last save and who made it, and three hints).
|
|
118
|
+
* Each edit is one transaction, a field the drafts changed tinted against
|
|
119
|
+
* the record; read only, Details shows every field and edits none. Issues
|
|
120
|
+
* lists a transition naming a missing state, a state naming a missing lane,
|
|
121
|
+
* two of one key — which holds Save off — a decision's queue naming a
|
|
122
|
+
* missing state, and a Save's conflict or refusal, a click selecting what
|
|
123
|
+
* each names. `inspector={{ state, transition }}` gives a kind its own
|
|
124
|
+
* Details in place of its form: an East function over the row and its
|
|
125
|
+
* writer, `update` writing the edited row back as one transaction. The
|
|
126
|
+
* hover cards went: the inspector is where details live.
|
|
127
|
+
* - **Its open flow**, over many flows: `flow`, else the first by name, until
|
|
128
|
+
* the viewer opens another — from the Flows tab
|
|
129
|
+
* (`Flowchart.library.flows()`), which lists every flow by name — kept in
|
|
130
|
+
* the UI store under its `name`, so a remount opens it again; a `flow` it
|
|
131
|
+
* doesn't hold is named in a banner above main. LR · TD is the viewer's
|
|
132
|
+
* too, kept under its `name`. Where it edits, "+ New flow" names a new
|
|
133
|
+
* flow, opened empty with one lane; each flow keeps its own drafts until
|
|
134
|
+
* the history item saves or discards them.
|
|
135
|
+
* - **Its library** (#1248): the tabs `library` lists, in its order, each with
|
|
136
|
+
* its count and a search — the Flows tab; state templates
|
|
137
|
+
* (`Flowchart.library.states(rows, …)`) and transition templates
|
|
138
|
+
* (`Flowchart.library.transitions(rows, …)`), each card a drag source; and
|
|
139
|
+
* the author's own cards (`Flowchart.library.tab(rows, …)`), a drag source
|
|
140
|
+
* when the tab declares a `drop`. Each data tab reads its own rows — an
|
|
141
|
+
* input's or a record's, an Array or a `Dict<String, T>` — apart from the
|
|
142
|
+
* flows and from the other tabs. A click selects a card, and a click on the
|
|
143
|
+
* selected card lets it go; an empty tab says so in the shared empty state.
|
|
144
|
+
* - **Its drops** (#1249): a card carried onto the canvas lands where its tab
|
|
145
|
+
* says — a state template on a lane, adding a state at the row under the
|
|
146
|
+
* pointer, its key the drop's, made unique or minted; a transition template
|
|
147
|
+
* on a transition, retyping it; an author's card on what its drop's type
|
|
148
|
+
* names — the ghost saying where, or, red, why not. ⏎ on a card drops it on
|
|
149
|
+
* the canvas's selection, and on a touch screen so does a tap on the
|
|
150
|
+
* selected card. Each drop is one transaction of the open flow's session.
|
|
151
|
+
* - **Its edits** are its editing session's (#1247): over a record, and over
|
|
152
|
+
* `data` given `onApply`, every gesture — "+ LANE", a lane's header
|
|
153
|
+
* double-clicked into its rename (a click selects the lane, #1250) or its ×
|
|
154
|
+
* (off while the lane holds states), the "+ STATE" ghost, a state
|
|
155
|
+
* double-clicked into its editor (a new key rekeys its transitions and the
|
|
156
|
+
* decisions' queues) or dragged across lanes, a handle dragged to another
|
|
157
|
+
* state, Del on the selected state, states, transition, decision or empty
|
|
158
|
+
* lane, and every edit the inspector makes — is one transaction the history
|
|
159
|
+
* item undoes and redoes (⌘Z, ⇧⌘Z or ⌘Y anywhere in the frame but a field
|
|
160
|
+
* being typed into), and Save sends the open flow's drafts as one commit:
|
|
161
|
+
* through the record's patch mutation, or as one patch of `data`'s value to
|
|
162
|
+
* the host's `onApply`, handed the session's request id with it — the same
|
|
163
|
+
* id on a Retry, so a host that keys its write by it writes once (#1275).
|
|
164
|
+
* Two lanes, states, transitions or decisions of one
|
|
165
|
+
* key hold Save off. The footer counts the changes waiting on Save.
|
|
166
|
+
* - **Its flows** are an e3 record's (`record`): `Flowchart.Types.Flows`,
|
|
167
|
+
* flows by name, bound with its patch mutation, the canvas showing `flow`,
|
|
168
|
+
* else the first by name. A record always holds flows by name (ruled
|
|
169
|
+
* 2026-10-07: e3's patch mutation writes only keyed records), so a lone flow
|
|
170
|
+
* is a record of one entry. Or they are the host's (`data`): flows by name
|
|
171
|
+
* or one flow — a value, an expression or a bind handle — the value's type
|
|
172
|
+
* picking the arm, one prop taking either; `Flowchart.over` builds one flow
|
|
173
|
+
* from the host's own tables through their row mappers, and `slice`
|
|
174
|
+
* narrows what it builds.
|
|
175
|
+
* - **A dataset's value** is written as literals with `Flowchart.values`
|
|
176
|
+
* (flows by name) or `Flowchart.value` (one flow), checked when the package
|
|
177
|
+
* builds.
|
|
178
|
+
* - **The host hears** the selection (`onSelectState`, `onSelectLink`,
|
|
179
|
+
* `onSelectTrigger`) and a traced path (`onTracePath`), and vetoes a
|
|
180
|
+
* connection with `canConnect`.
|
|
181
|
+
* - **Refused when the surface is built**, each naming the prop and the
|
|
182
|
+
* remedy: flows from both `record` and `data`, or neither; `onApply`,
|
|
183
|
+
* `slice` or `affordances` over a record; `flow` over one flow; a record of
|
|
184
|
+
* one flow, or of another type, or not bound with its patch mutation;
|
|
185
|
+
* `"brush"` among the affordances; `height` or `maxHeight`, which the box
|
|
186
|
+
* it fills sets; `density`, which nothing drew by — the canvas draws at one
|
|
187
|
+
* rhythm, the spec's 116×40 cards in their lanes (#1251); a callback for an
|
|
188
|
+
* edit (`onAddState`, `onCreateLink`, …)
|
|
189
|
+
* or `linkMode`, which the session's gestures replace; a hover card's
|
|
190
|
+
* builder (`stateHover`, `linkHover`, `triggerHover`), which the inspector
|
|
191
|
+
* replaces; an `inspector` of another kind than a Boolean or `{ state,
|
|
192
|
+
* transition }`, a key other than those two, or a kind's own Details of
|
|
193
|
+
* another type than `(Row, (Row) => Null) => UIComponentType`; a library
|
|
194
|
+
* that lists a tab twice — the Flows tab or a template tab, or two of the
|
|
195
|
+
* author's tabs of one name — or the Flows tab over one flow; a data tab
|
|
196
|
+
* whose rows are neither an Array nor a `Dict<String, T>`; a `states` drop
|
|
197
|
+
* over another type than a state's patch, a `transitions` drop over another
|
|
198
|
+
* than a transition's, and a `tab` drop over none of a flow's row types.
|
|
199
|
+
*
|
|
200
|
+
* The closed-set fields in data (`kind`, `orientation`) are typed variant
|
|
201
|
+
* values, `Flowchart.Types.*`.
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```tsx
|
|
205
|
+
* // .tsx file with the `@jsxImportSource @elaraai/e3-ui` pragma
|
|
206
|
+
* import { East } from "@elaraai/east";
|
|
207
|
+
* import { Box, Reactive, UIComponentType } from "@elaraai/east-ui";
|
|
208
|
+
* import { Flowchart, Record } from "@elaraai/e3-ui";
|
|
209
|
+
* import e3 from "@elaraai/e3";
|
|
210
|
+
*
|
|
211
|
+
* export const depotFlows = e3.record("flowchart_depot_flows", Flowchart.Types.Flows, Flowchart.values({
|
|
212
|
+
* "Inbound parcels": {
|
|
213
|
+
* description: "From the trailer to the van",
|
|
214
|
+
* lanes: [{ key: "intake", label: "Intake" }, { key: "sort", label: "Sort" }, { key: "load", label: "Load" }],
|
|
215
|
+
* states: [
|
|
216
|
+
* { key: "ARV", label: "Arrived", lane: "intake" },
|
|
217
|
+
* { key: "SCN", label: "Scanned", lane: "intake" },
|
|
218
|
+
* { key: "CH*", label: "Sort chutes", lane: "sort", members: 12n },
|
|
219
|
+
* { key: "LDD", label: "Loaded", lane: "load" },
|
|
220
|
+
* ],
|
|
221
|
+
* links: [
|
|
222
|
+
* { from: "ARV", to: "SCN" },
|
|
223
|
+
* { from: "SCN", to: "CH*", trigger: "route" },
|
|
224
|
+
* { from: "CH*", to: "LDD" },
|
|
225
|
+
* { from: "SCN", to: "SCN", kind: "observed" },
|
|
226
|
+
* ],
|
|
227
|
+
* triggers: [{ key: "route", label: "route", owner: "sort-planner" }],
|
|
228
|
+
* },
|
|
229
|
+
* "Returns": {
|
|
230
|
+
* description: "From the counter back to the sender",
|
|
231
|
+
* lanes: [{ key: "counter", label: "Counter" }, { key: "check", label: "Check" }, { key: "out", label: "Out" }],
|
|
232
|
+
* states: [
|
|
233
|
+
* { key: "RCV", label: "Received", lane: "counter" },
|
|
234
|
+
* { key: "INS", label: "Inspected", lane: "check" },
|
|
235
|
+
* { key: "RSD", label: "Resent", lane: "out" },
|
|
236
|
+
* ],
|
|
237
|
+
* links: [{ from: "RCV", to: "INS" }, { from: "INS", to: "RSD" }, { from: "INS", to: "BIN", kind: "observed" }],
|
|
238
|
+
* },
|
|
239
|
+
* }));
|
|
240
|
+
* export const depotFlowsPatch = e3.mutation.patch(depotFlows);
|
|
241
|
+
*
|
|
242
|
+
* const flowchart = East.function([], UIComponentType, (_$) => (
|
|
243
|
+
* <Reactive>{$ => {
|
|
244
|
+
* const flows = $.let(Record.bind(depotFlows, [depotFlowsPatch]));
|
|
245
|
+
* return (
|
|
246
|
+
* <Box height="500px">
|
|
247
|
+
* <Flowchart record={flows} flow="Inbound parcels" library={[Flowchart.library.flows()]} />
|
|
248
|
+
* </Box>
|
|
249
|
+
* );
|
|
250
|
+
* }}</Reactive>
|
|
251
|
+
* ));
|
|
252
|
+
* ```
|
|
253
|
+
*/
|
|
254
|
+
export declare const Flowchart: FlowchartNamespace;
|
|
255
|
+
/**
|
|
256
|
+
* The type of the internal Flowchart namespace — the public one, the payload
|
|
257
|
+
* the tag returns through its carrier, the carrier the renderer registers
|
|
258
|
+
* against, and the payload's own East types.
|
|
259
|
+
*/
|
|
260
|
+
export interface FlowchartInternalNamespace extends FlowchartNamespace {
|
|
261
|
+
/** Creates the flowchart's payload alone — what `<Flowchart>` returns through the `Flowchart` carrier ({@link createFlowchartPayload}). */
|
|
262
|
+
Payload: typeof createFlowchartPayload;
|
|
263
|
+
/** The `Flowchart` carrier ({@link FlowchartComponent}). */
|
|
264
|
+
Component: typeof FlowchartComponent;
|
|
265
|
+
/** The East types a flowchart is written with, and its payload's. */
|
|
266
|
+
Types: FlowchartTypes & {
|
|
267
|
+
/** The renderer's payload ({@link FlowchartPayloadType}). */
|
|
268
|
+
Payload: typeof FlowchartPayloadType;
|
|
269
|
+
/** What the canvas draws its flow with ({@link FlowchartCanvasType}). */
|
|
270
|
+
Canvas: typeof FlowchartCanvasType;
|
|
271
|
+
/** Where the flows come from ({@link FlowchartSourceType}). */
|
|
272
|
+
Source: typeof FlowchartSourceType;
|
|
273
|
+
/** The host's flows ({@link FlowchartDataType}). */
|
|
274
|
+
Data: typeof FlowchartDataType;
|
|
275
|
+
/** A record of flows, bound ({@link FlowchartFlowsHandleType}). */
|
|
276
|
+
FlowsHandle: typeof FlowchartFlowsHandleType;
|
|
277
|
+
/** The editing session's Save, over a record or the host's flows ({@link FlowchartSessionApplyType}). */
|
|
278
|
+
SessionApply: typeof FlowchartSessionApplyType;
|
|
279
|
+
/** The inspector pane: each kind's own Details ({@link FlowchartInspectorType}). */
|
|
280
|
+
Inspector: typeof FlowchartInspectorType;
|
|
281
|
+
/** One tab of the library ({@link FlowchartLibraryTabType}). */
|
|
282
|
+
LibraryTab: typeof FlowchartLibraryTabType;
|
|
283
|
+
/** An author's tab's cards, by what they land on ({@link FlowchartLandsType}). */
|
|
284
|
+
Lands: typeof FlowchartLandsType;
|
|
285
|
+
/** A card that drops nothing ({@link FlowchartCardType}). */
|
|
286
|
+
Card: typeof FlowchartCardType;
|
|
287
|
+
/** A state template's card ({@link FlowchartStateCardType}). */
|
|
288
|
+
StateCard: typeof FlowchartStateCardType;
|
|
289
|
+
/** A transition template's card ({@link FlowchartTransitionCardType}). */
|
|
290
|
+
TransitionCard: typeof FlowchartTransitionCardType;
|
|
291
|
+
/** An author's card that lands on a lane ({@link FlowchartLaneCardType}). */
|
|
292
|
+
LaneCard: typeof FlowchartLaneCardType;
|
|
293
|
+
/** An author's card that lands on a decision ({@link FlowchartDecisionCardType}). */
|
|
294
|
+
DecisionCard: typeof FlowchartDecisionCardType;
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* The internal Flowchart namespace — `@elaraai/e3-ui/internal`'s `Flowchart`:
|
|
299
|
+
* the public one, `Flowchart.Payload`, the `Flowchart` carrier and the
|
|
300
|
+
* payload's types, for the renderer and the tests.
|
|
301
|
+
*
|
|
302
|
+
* @internal
|
|
303
|
+
*/
|
|
304
|
+
export declare const FlowchartInternal: FlowchartInternalNamespace;
|
|
305
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/flowchart/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACH,iBAAiB,E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