@elaraai/e3-ui 1.0.93 → 1.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/allocation/adapters.d.ts +159 -0
- package/dist/src/allocation/adapters.d.ts.map +1 -0
- package/dist/src/allocation/adapters.js +241 -0
- package/dist/src/allocation/adapters.js.map +1 -0
- package/dist/src/allocation/functions.d.ts +664 -0
- package/dist/src/allocation/functions.d.ts.map +1 -0
- package/dist/src/allocation/functions.js +782 -0
- package/dist/src/allocation/functions.js.map +1 -0
- package/dist/src/allocation/index.d.ts +2985 -0
- package/dist/src/allocation/index.d.ts.map +1 -0
- package/dist/src/allocation/index.js +499 -0
- package/dist/src/allocation/index.js.map +1 -0
- package/dist/src/allocation/types.d.ts +832 -0
- package/dist/src/allocation/types.d.ts.map +1 -0
- package/dist/src/allocation/types.js +360 -0
- package/dist/src/allocation/types.js.map +1 -0
- package/dist/src/bind/func.d.ts +14 -0
- package/dist/src/bind/func.d.ts.map +1 -1
- package/dist/src/bind/func.js +22 -1
- package/dist/src/bind/func.js.map +1 -1
- package/dist/src/calendar/index.d.ts +510 -1639
- package/dist/src/calendar/index.d.ts.map +1 -1
- package/dist/src/calendar/index.js +56 -29
- package/dist/src/calendar/index.js.map +1 -1
- package/dist/src/flowchart/canvas.d.ts +9 -21
- package/dist/src/flowchart/canvas.d.ts.map +1 -1
- package/dist/src/flowchart/canvas.js +10 -22
- package/dist/src/flowchart/canvas.js.map +1 -1
- package/dist/src/flowchart/flowchart.d.ts +19 -13
- package/dist/src/flowchart/flowchart.d.ts.map +1 -1
- package/dist/src/flowchart/flowchart.js.map +1 -1
- package/dist/src/flowchart/index.d.ts +44 -21
- package/dist/src/flowchart/index.d.ts.map +1 -1
- package/dist/src/flowchart/index.js +43 -20
- package/dist/src/flowchart/index.js.map +1 -1
- package/dist/src/flowchart/library.d.ts +166 -81
- package/dist/src/flowchart/library.d.ts.map +1 -1
- package/dist/src/flowchart/library.js +232 -105
- package/dist/src/flowchart/library.js.map +1 -1
- package/dist/src/flowchart/over.d.ts +9 -16
- package/dist/src/flowchart/over.d.ts.map +1 -1
- package/dist/src/flowchart/over.js +9 -16
- package/dist/src/flowchart/over.js.map +1 -1
- package/dist/src/flowchart/payload.d.ts +710 -508
- package/dist/src/flowchart/payload.d.ts.map +1 -1
- package/dist/src/flowchart/payload.js +128 -74
- package/dist/src/flowchart/payload.js.map +1 -1
- package/dist/src/flowchart/window.d.ts +132 -347
- package/dist/src/flowchart/window.d.ts.map +1 -1
- package/dist/src/flowchart/window.js +48 -55
- package/dist/src/flowchart/window.js.map +1 -1
- package/dist/src/index.d.ts +11 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +14 -6
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +18 -7
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +28 -9
- package/dist/src/internal.js.map +1 -1
- package/dist/src/plan/event-rows.d.ts +26 -10
- package/dist/src/plan/event-rows.d.ts.map +1 -1
- package/dist/src/plan/event-rows.js +39 -13
- package/dist/src/plan/event-rows.js.map +1 -1
- package/dist/src/plan/ir.d.ts +244 -815
- package/dist/src/plan/ir.d.ts.map +1 -1
- package/dist/src/plan/ir.js +8 -6
- package/dist/src/plan/ir.js.map +1 -1
- package/dist/src/plan/library.d.ts +3 -0
- package/dist/src/plan/library.d.ts.map +1 -1
- package/dist/src/plan/library.js +1 -1
- package/dist/src/plan/library.js.map +1 -1
- package/dist/src/plan/ordered-source.d.ts +1 -0
- package/dist/src/plan/ordered-source.d.ts.map +1 -1
- package/dist/src/plan/plan.d.ts +559 -1667
- package/dist/src/plan/plan.d.ts.map +1 -1
- package/dist/src/plan/plan.js +123 -45
- package/dist/src/plan/plan.js.map +1 -1
- package/dist/src/plan/root.d.ts +16 -20
- package/dist/src/plan/root.d.ts.map +1 -1
- package/dist/src/plan/root.js +23 -33
- package/dist/src/plan/root.js.map +1 -1
- package/dist/src/roster/coverage.d.ts +17 -231
- package/dist/src/roster/coverage.d.ts.map +1 -1
- package/dist/src/roster/coverage.js +94 -90
- package/dist/src/roster/coverage.js.map +1 -1
- package/dist/src/roster/fit.d.ts +59 -0
- package/dist/src/roster/fit.d.ts.map +1 -0
- package/dist/src/roster/fit.js +155 -0
- package/dist/src/roster/fit.js.map +1 -0
- package/dist/src/roster/index.d.ts +2862 -3662
- package/dist/src/roster/index.d.ts.map +1 -1
- package/dist/src/roster/index.js +383 -81
- package/dist/src/roster/index.js.map +1 -1
- package/dist/src/roster/library.d.ts +37 -92
- package/dist/src/roster/library.d.ts.map +1 -1
- package/dist/src/roster/library.js +25 -64
- package/dist/src/roster/library.js.map +1 -1
- package/dist/src/roster/lists.d.ts +195 -0
- package/dist/src/roster/lists.d.ts.map +1 -0
- package/dist/src/roster/lists.js +233 -0
- package/dist/src/roster/lists.js.map +1 -0
- package/dist/src/roster/rules.d.ts +17 -260
- package/dist/src/roster/rules.d.ts.map +1 -1
- package/dist/src/roster/rules.js +135 -132
- package/dist/src/roster/rules.js.map +1 -1
- package/dist/src/roster/targets.d.ts +115 -0
- package/dist/src/roster/targets.d.ts.map +1 -0
- package/dist/src/roster/targets.js +213 -0
- package/dist/src/roster/targets.js.map +1 -0
- package/dist/src/roster/times.d.ts +251 -0
- package/dist/src/roster/times.d.ts.map +1 -0
- package/dist/src/roster/times.js +174 -0
- package/dist/src/roster/times.js.map +1 -0
- package/dist/src/roster/types.d.ts +828 -183
- package/dist/src/roster/types.d.ts.map +1 -1
- package/dist/src/roster/types.js +224 -97
- package/dist/src/roster/types.js.map +1 -1
- package/dist/src/schedule/accessor.d.ts +28 -0
- package/dist/src/schedule/accessor.d.ts.map +1 -0
- package/dist/src/schedule/accessor.js +39 -0
- package/dist/src/schedule/accessor.js.map +1 -0
- package/dist/src/schedule/events.d.ts +170 -42
- package/dist/src/schedule/events.d.ts.map +1 -1
- package/dist/src/schedule/events.js +431 -171
- package/dist/src/schedule/events.js.map +1 -1
- package/dist/src/schedule/index.d.ts +41 -4
- package/dist/src/schedule/index.d.ts.map +1 -1
- package/dist/src/schedule/index.js +35 -3
- package/dist/src/schedule/index.js.map +1 -1
- package/dist/src/schedule/library.d.ts +13 -3
- package/dist/src/schedule/library.d.ts.map +1 -1
- package/dist/src/schedule/library.js +11 -4
- package/dist/src/schedule/library.js.map +1 -1
- package/dist/src/schedule/periods.d.ts +115 -0
- package/dist/src/schedule/periods.d.ts.map +1 -0
- package/dist/src/schedule/periods.js +215 -0
- package/dist/src/schedule/periods.js.map +1 -0
- package/dist/src/schedule/record-window.d.ts +25 -3
- package/dist/src/schedule/record-window.d.ts.map +1 -1
- package/dist/src/schedule/record-window.js +31 -18
- package/dist/src/schedule/record-window.js.map +1 -1
- package/dist/src/schedule/resources.d.ts +82 -4
- package/dist/src/schedule/resources.d.ts.map +1 -1
- package/dist/src/schedule/resources.js +44 -14
- package/dist/src/schedule/resources.js.map +1 -1
- package/dist/src/schedule/session.d.ts +69 -0
- package/dist/src/schedule/session.d.ts.map +1 -0
- package/dist/src/schedule/session.js +121 -0
- package/dist/src/schedule/session.js.map +1 -0
- package/dist/src/schedule/templates.d.ts +14 -2
- package/dist/src/schedule/templates.d.ts.map +1 -1
- package/dist/src/schedule/templates.js +5 -3
- package/dist/src/schedule/templates.js.map +1 -1
- package/dist/src/schedule/types.d.ts +1671 -37
- package/dist/src/schedule/types.d.ts.map +1 -1
- package/dist/src/schedule/types.js +196 -5
- package/dist/src/schedule/types.js.map +1 -1
- package/dist/src/schedule/window.d.ts +14 -0
- package/dist/src/schedule/window.d.ts.map +1 -1
- package/dist/src/schedule/window.js +14 -4
- package/dist/src/schedule/window.js.map +1 -1
- package/dist/src/schedule/words.d.ts +22 -0
- package/dist/src/schedule/words.d.ts.map +1 -0
- package/dist/src/schedule/words.js +25 -0
- package/dist/src/schedule/words.js.map +1 -0
- package/dist/src/sheet/index.d.ts +61 -27
- package/dist/src/sheet/index.d.ts.map +1 -1
- package/dist/src/sheet/index.js +59 -25
- package/dist/src/sheet/index.js.map +1 -1
- package/dist/src/sheet/library.d.ts +21 -3
- package/dist/src/sheet/library.d.ts.map +1 -1
- package/dist/src/sheet/library.js +23 -6
- package/dist/src/sheet/library.js.map +1 -1
- package/dist/src/sheet/registers.d.ts +100 -85
- package/dist/src/sheet/registers.d.ts.map +1 -1
- package/dist/src/sheet/registers.js +100 -85
- package/dist/src/sheet/registers.js.map +1 -1
- package/dist/src/sheet/root.d.ts +8 -12
- package/dist/src/sheet/root.d.ts.map +1 -1
- package/dist/src/sheet/root.js +6 -40
- package/dist/src/sheet/root.js.map +1 -1
- package/dist/src/sheet/sheet.d.ts +598 -2349
- package/dist/src/sheet/sheet.d.ts.map +1 -1
- package/dist/src/sheet/sheet.js +124 -37
- package/dist/src/sheet/sheet.js.map +1 -1
- package/dist/src/sheet/sub-rows.d.ts +74 -28
- package/dist/src/sheet/sub-rows.d.ts.map +1 -1
- package/dist/src/sheet/sub-rows.js +74 -28
- package/dist/src/sheet/sub-rows.js.map +1 -1
- package/dist/src/sheet/templates.d.ts +98 -34
- package/dist/src/sheet/templates.d.ts.map +1 -1
- package/dist/src/sheet/templates.js +102 -58
- package/dist/src/sheet/templates.js.map +1 -1
- package/dist/src/sheet/types.d.ts +289 -1359
- package/dist/src/sheet/types.d.ts.map +1 -1
- package/dist/src/sheet/types.js +20 -26
- package/dist/src/sheet/types.js.map +1 -1
- package/dist/src/sheet/views.d.ts +10 -11
- package/dist/src/sheet/views.d.ts.map +1 -1
- package/dist/src/sheet/views.js +15 -20
- package/dist/src/sheet/views.js.map +1 -1
- package/dist/src/{roster/visibility.d.ts → utils/key-visibility.d.ts} +42 -7
- package/dist/src/utils/key-visibility.d.ts.map +1 -0
- package/dist/src/utils/key-visibility.js +36 -0
- package/dist/src/utils/key-visibility.js.map +1 -0
- package/dist/src/utils/ordered-source.d.ts +1 -0
- package/dist/src/utils/ordered-source.d.ts.map +1 -1
- package/dist/src/utils/ordered-source.js +8 -3
- package/dist/src/utils/ordered-source.js.map +1 -1
- package/dist/src/utils/record-sources.d.ts +107 -0
- package/dist/src/utils/record-sources.d.ts.map +1 -0
- package/dist/src/utils/record-sources.js +132 -0
- package/dist/src/utils/record-sources.js.map +1 -0
- package/dist/test/allocation/allocation.examples.d.ts +2902 -0
- package/dist/test/allocation/allocation.examples.d.ts.map +1 -0
- package/dist/test/allocation/allocation.examples.js +643 -0
- package/dist/test/allocation/allocation.examples.js.map +1 -0
- package/dist/test/allocation/fit.examples.d.ts +546 -0
- package/dist/test/allocation/fit.examples.d.ts.map +1 -0
- package/dist/test/allocation/fit.examples.js +171 -0
- package/dist/test/allocation/fit.examples.js.map +1 -0
- package/dist/test/allocation/kiln-yard.d.ts +181 -0
- package/dist/test/allocation/kiln-yard.d.ts.map +1 -0
- package/dist/test/allocation/kiln-yard.js +228 -0
- package/dist/test/allocation/kiln-yard.js.map +1 -0
- package/dist/test/bind/data/data.examples.d.ts +651 -1
- package/dist/test/bind/data/data.examples.d.ts.map +1 -1
- package/dist/test/bind/data/data.examples.js +140 -2
- package/dist/test/bind/data/data.examples.js.map +1 -1
- package/dist/test/bind/func/func.examples.d.ts +10 -1
- package/dist/test/bind/func/func.examples.d.ts.map +1 -1
- package/dist/test/bind/func/func.examples.js +8 -1
- package/dist/test/bind/func/func.examples.js.map +1 -1
- package/dist/test/bind/record/record.examples.d.ts +633 -1
- package/dist/test/bind/record/record.examples.d.ts.map +1 -1
- package/dist/test/bind/record/record.examples.js +26 -2
- package/dist/test/bind/record/record.examples.js.map +1 -1
- package/dist/test/calendar/calendar-records.examples.d.ts.map +1 -1
- package/dist/test/calendar/calendar-records.examples.js +18 -14
- package/dist/test/calendar/calendar-records.examples.js.map +1 -1
- package/dist/test/calendar/calendar.examples.d.ts +521 -16
- package/dist/test/calendar/calendar.examples.d.ts.map +1 -1
- package/dist/test/calendar/calendar.examples.js +182 -135
- package/dist/test/calendar/calendar.examples.js.map +1 -1
- package/dist/test/examples-package.d.ts +75 -0
- package/dist/test/examples-package.d.ts.map +1 -0
- package/dist/test/examples-package.js +263 -0
- package/dist/test/examples-package.js.map +1 -0
- package/dist/test/flowchart/flowchart.examples.d.ts +211 -19
- package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -1
- package/dist/test/flowchart/flowchart.examples.js +102 -75
- package/dist/test/flowchart/flowchart.examples.js.map +1 -1
- package/dist/test/plan/plan-events.examples.d.ts +1439 -209
- package/dist/test/plan/plan-events.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-events.examples.js +199 -59
- package/dist/test/plan/plan-events.examples.js.map +1 -1
- package/dist/test/plan/plan-records.examples.d.ts +420 -0
- package/dist/test/plan/plan-records.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-records.examples.js +70 -19
- package/dist/test/plan/plan-records.examples.js.map +1 -1
- package/dist/test/plan/plan-windows.examples.d.ts +636 -55
- package/dist/test/plan/plan-windows.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-windows.examples.js +69 -33
- package/dist/test/plan/plan-windows.examples.js.map +1 -1
- package/dist/test/plan/plan.examples.d.ts +153 -31
- package/dist/test/plan/plan.examples.d.ts.map +1 -1
- package/dist/test/plan/plan.examples.js +178 -101
- package/dist/test/plan/plan.examples.js.map +1 -1
- package/dist/test/roster/domain.examples.d.ts +467 -250
- package/dist/test/roster/domain.examples.d.ts.map +1 -1
- package/dist/test/roster/domain.examples.js +92 -29
- package/dist/test/roster/domain.examples.js.map +1 -1
- package/dist/test/roster/roster-records.examples.d.ts +430 -586
- package/dist/test/roster/roster-records.examples.d.ts.map +1 -1
- package/dist/test/roster/roster-records.examples.js +102 -43
- package/dist/test/roster/roster-records.examples.js.map +1 -1
- package/dist/test/roster/roster.examples.d.ts +2319 -606
- package/dist/test/roster/roster.examples.d.ts.map +1 -1
- package/dist/test/roster/roster.examples.js +456 -148
- package/dist/test/roster/roster.examples.js.map +1 -1
- package/dist/test/roster/warehouse.d.ts +172 -63
- package/dist/test/roster/warehouse.d.ts.map +1 -1
- package/dist/test/roster/warehouse.js +172 -39
- package/dist/test/roster/warehouse.js.map +1 -1
- package/dist/test/schedule/schedule.examples.d.ts +3499 -0
- package/dist/test/schedule/schedule.examples.d.ts.map +1 -0
- package/dist/test/schedule/schedule.examples.js +192 -0
- package/dist/test/schedule/schedule.examples.js.map +1 -0
- package/dist/test/sheet/sheet-records.examples.d.ts.map +1 -1
- package/dist/test/sheet/sheet-records.examples.js +22 -18
- package/dist/test/sheet/sheet-records.examples.js.map +1 -1
- package/dist/test/sheet/sheet.examples.d.ts +715 -26
- package/dist/test/sheet/sheet.examples.d.ts.map +1 -1
- package/dist/test/sheet/sheet.examples.js +204 -130
- package/dist/test/sheet/sheet.examples.js.map +1 -1
- package/package.json +17 -10
- package/dist/src/roster/people.d.ts +0 -50
- package/dist/src/roster/people.d.ts.map +0 -1
- package/dist/src/roster/people.js +0 -32
- package/dist/src/roster/people.js.map +0 -1
- package/dist/src/roster/visibility.d.ts.map +0 -1
- package/dist/src/roster/visibility.js +0 -25
- package/dist/src/roster/visibility.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAc,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EACvH,UAAU,EAAE,WAAW,EAAuB,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EACtG,MAAM,eAAe,CAAC;AACvB,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAA0B,aAAa,EAAE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EAAE,OAAO,CAAC;IACvE,wCAAwC;IACxC,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,CAAC;IAClC,mCAAmC;IACnC,OAAO,EAAE;QAAE,SAAS,EAAE,OAAO,YAAY,CAAC;QAAC,OAAO,EAAE,OAAO,UAAU,CAAC;QAAC,GAAG,EAAE,OAAO,SAAS,CAAA;KAAE,CAAC;IAC/F,uDAAuD;IACvD,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG;QAAE,MAAM,EAAE,OAAO,kBAAkB,CAAC;QAAC,MAAM,EAAE,OAAO,kBAAkB,CAAC;QAAC,IAAI,EAAE,OAAO,gBAAgB,CAAA;KAAE,CAAC;CAC/I;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,QAAQ,EAAE,iBAItB,CAAC"}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
3
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
|
-
import { ArrayType, BooleanType, DateTimeType, DictType, East, FunctionType, IntegerType, NullType, OptionType, StringType, StructType, VariantType, none, some, variant, } from "@elaraai/east";
|
|
5
|
+
import { ArrayType, BooleanType, DateTimeType, DictType, East, Expr, FunctionType, IntegerType, NullType, OptionType, StringType, StructType, VariantType, none, some, variant, } from "@elaraai/east";
|
|
6
6
|
import { EastUI } from "@elaraai/east-ui";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { RecordSlicesChromeType, RowSourceType } from "@elaraai/east-ui/internal";
|
|
8
|
+
import { recordSources, sliceSourceNames, templatesSource } from "../utils/record-sources.js";
|
|
9
|
+
import { Schedule, scheduleCheck, scheduleTitled } from "../schedule/index.js";
|
|
9
10
|
import { ScheduleAuthorTabType, buildScheduleTab } from "../schedule/library.js";
|
|
10
11
|
import { ScheduleCandidateType, ScheduleEventRefType, ScheduleKindType, ScheduleResourcesType } from "../schedule/types.js";
|
|
11
12
|
/** Calendar's layout: a time grid, resource columns or a horizontal timeline. */
|
|
@@ -24,13 +25,19 @@ export const CalendarSettingsType = StructType({
|
|
|
24
25
|
density: VariantType({ compact: NullType, comfortable: NullType, spacious: NullType }),
|
|
25
26
|
now: OptionType(DateTimeType), readOnly: BooleanType,
|
|
26
27
|
});
|
|
27
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Calendar's closed interface to its React renderer. The frame is a renderer detail.
|
|
30
|
+
* @property slice - The narrowing's chrome: a Slice over the event kinds', the resource kinds' and the templates' records, one rail (#1343)
|
|
31
|
+
* @property narrowed - Each source's narrowed keys, paged through its own data, by the source's name — a resource
|
|
32
|
+
* kind's narrow its columns, rows and Choosers, a templates list's and a tab's their cards; an event kind reads its
|
|
33
|
+
* own narrowing through its part
|
|
34
|
+
*/
|
|
28
35
|
export const CalendarPayloadType = StructType({
|
|
29
36
|
events: ArrayType(ScheduleKindType), resources: ArrayType(ScheduleResourcesType), settings: CalendarSettingsType,
|
|
30
|
-
library: ArrayType(CalendarLibraryTabType), inspector: BooleanType, slice: OptionType(
|
|
37
|
+
library: ArrayType(CalendarLibraryTabType), inspector: BooleanType, slice: OptionType(RecordSlicesChromeType),
|
|
38
|
+
narrowed: DictType(StringType, RowSourceType(ArrayType(StringType))),
|
|
31
39
|
canDrop: OptionType(FunctionType([ScheduleCandidateType], OptionType(StringType))),
|
|
32
40
|
onSelect: OptionType(FunctionType([ScheduleEventRefType], NullType)), id: OptionType(StringType),
|
|
33
|
-
recordSlice: OptionType(RecordSliceChromeType),
|
|
34
41
|
});
|
|
35
42
|
/** The extension carrier registered by e3-ui-components. */
|
|
36
43
|
export const CalendarComponent = EastUI.component("Calendar", CalendarPayloadType, { optional: true });
|
|
@@ -52,18 +59,39 @@ function authorTab(rows, config) {
|
|
|
52
59
|
* interaction behavior belongs to the renderer, not this factory.
|
|
53
60
|
* @param props - Calendar's props
|
|
54
61
|
* @returns The closed payload
|
|
55
|
-
* @throws {Error} When kinds or library tabs are invalid,
|
|
62
|
+
* @throws {Error} When kinds or library tabs are invalid, a kind has no `title` (#1367), working hours are outside the
|
|
63
|
+
* day, `slice` is not `Slice.bindRecords` or names a source no kind, templates list or tab names, a templates list is
|
|
64
|
+
* written in the code or names no source of the slice (templates are records, #1340), or a tab names a source the
|
|
65
|
+
* slice lacks
|
|
56
66
|
* @internal
|
|
57
67
|
*/
|
|
58
68
|
export function createCalendarPayload(props) {
|
|
59
69
|
const resources = props.resources ?? {};
|
|
60
70
|
scheduleCheck(resources, props.events, "Calendar");
|
|
71
|
+
// The Calendar draws each event's title, which `Schedule.events` takes as optional.
|
|
72
|
+
scheduleTitled(props.events, "Calendar");
|
|
61
73
|
if (Object.keys(props.events).length === 0)
|
|
62
74
|
throw new Error("Calendar: declare at least one event kind");
|
|
63
75
|
const hours = props.hours ?? { from: 6n, to: 22n };
|
|
64
76
|
if (hours.from < 0n || hours.to > 24n || hours.from >= hours.to)
|
|
65
77
|
throw new Error("Calendar: hours must satisfy 0 <= from < to <= 24");
|
|
66
78
|
const events = Object.entries(props.events);
|
|
79
|
+
// Every templates list is a record of its own, naming its source of the slice (#1340): one written in the code,
|
|
80
|
+
// or naming none the slice holds, is refused before a source no list names is, so the refusal says the change. A
|
|
81
|
+
// slice of another kind is refused below, as such.
|
|
82
|
+
const sliceNames = sliceSourceNames(props.slice);
|
|
83
|
+
if (props.slice === undefined || sliceNames.length > 0) {
|
|
84
|
+
for (const [slot, kind] of events) {
|
|
85
|
+
if (kind.templatesList !== "none")
|
|
86
|
+
templatesSource("Calendar", `Calendar.templates(rows, { …, source: "${slot}Templates" })`, kind.templatesSource, sliceNames);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
// The sources a Calendar takes: an event kind's or a resource kind's slot, or one a templates list or a tab names.
|
|
90
|
+
const named = new Set([...Object.keys(props.events), ...Object.keys(resources),
|
|
91
|
+
...events.flatMap(([, kind]) => kind.templatesSource === undefined ? [] : [kind.templatesSource]),
|
|
92
|
+
...(props.library ?? []).flatMap(tab => tab.kind === "tab" && tab.config.source !== undefined ? [tab.config.source] : [])]);
|
|
93
|
+
const narrowing = recordSources(props.slice, { builder: "Calendar", names: [...named], what: "its event kinds, its resource kinds and the templates and tabs that name a source",
|
|
94
|
+
takes: name => named.has(name) });
|
|
67
95
|
const seen = new Set();
|
|
68
96
|
const library = (props.library ?? []).map(tab => {
|
|
69
97
|
const name = tab.kind === "tab" ? "tab:" + tab.config.name : tab.kind;
|
|
@@ -71,30 +99,29 @@ export function createCalendarPayload(props) {
|
|
|
71
99
|
throw new Error("Calendar: library tab " + name + " is listed twice");
|
|
72
100
|
seen.add(name);
|
|
73
101
|
return tab.kind === "tab"
|
|
74
|
-
? East.value(variant("tab", buildScheduleTab(tab, events, "Calendar")), CalendarLibraryTabType)
|
|
102
|
+
? East.value(variant("tab", buildScheduleTab(tab, events, "Calendar", narrowing.names)), CalendarLibraryTabType)
|
|
75
103
|
: East.value(variant(tab.kind, null), CalendarLibraryTabType);
|
|
76
104
|
});
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
slice:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}, CalendarPayloadType);
|
|
105
|
+
return Expr.block($ => {
|
|
106
|
+
const bound = narrowing.bind($);
|
|
107
|
+
return East.value({
|
|
108
|
+
// Each event kind narrowed through its own source of the slice, when the slice has one.
|
|
109
|
+
events: events.map(([slot, kind]) => kind.build(slot, bound.parts[slot])),
|
|
110
|
+
resources: Object.entries(resources).map(([slot, kind]) => kind.build(slot)),
|
|
111
|
+
settings: {
|
|
112
|
+
layout: variant(props.view?.layout ?? "calendar", null), period: variant(props.view?.period ?? "week", null),
|
|
113
|
+
date: props.view?.date === undefined ? none : some(props.view.date), hours,
|
|
114
|
+
weekStart: variant(props.week?.start ?? "monday", null), weekends: props.week?.weekends ?? true,
|
|
115
|
+
density: variant(props.density ?? "comfortable", null), now: props.now === undefined ? none : some(props.now),
|
|
116
|
+
readOnly: props.readOnly ?? false,
|
|
117
|
+
},
|
|
118
|
+
library, inspector: props.inspector ?? false,
|
|
119
|
+
slice: narrowing.chrome,
|
|
120
|
+
narrowed: new Map(narrowing.names.map(source => [source, bound.keys[source]])),
|
|
121
|
+
canDrop: props.canDrop === undefined ? none : some(props.canDrop),
|
|
122
|
+
onSelect: props.onSelect === undefined ? none : some(props.onSelect), id: props.id === undefined ? none : some(props.id),
|
|
123
|
+
}, CalendarPayloadType);
|
|
124
|
+
});
|
|
98
125
|
}
|
|
99
126
|
/**
|
|
100
127
|
* Schedules typed records in calendar, resource and timeline views. Optional
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/calendar/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/calendar/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EACvH,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,GAC/C,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAkB,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAkC,M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AAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;SAC3H,EAAE,mBAAmB,CAAC,CAAC;IAC5B,CAAC,CAAyC,CAAC;AAC/C,CAAC;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAsB,MAAM,CAAC,MAAM,CACpD,CAAC,KAAoB,EAAa,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,EACzF,EAAE,GAAG,QAAQ,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE;IACpF,KAAK,EAAE,EAAE,GAAG,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,kBAAkB,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,CACrH,CAAC"}
|
|
@@ -5,17 +5,18 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* The flowchart's canvas (#1244, `Flowchart Builder Spec.md` §5.2): what it
|
|
7
7
|
* draws with besides its flow — orientation, the freshness chip, the legend
|
|
8
|
-
* and the minimap, the selection callbacks
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
8
|
+
* and the minimap, the selection callbacks and the connect veto. The payload
|
|
9
|
+
* carries one whole, as its `canvas`. The flowchart fills the box it is given
|
|
10
|
+
* (#1245): it takes no height of its own. Its gestures are its editing
|
|
11
|
+
* session's (#1247): it takes no callback for an edit. It has no hover cards
|
|
12
|
+
* (#1250): the inspector shows what is selected. It draws at one rhythm, the
|
|
13
|
+
* spec's 116×40 cards in their lanes (#1251): it takes no density. A flow
|
|
14
|
+
* built from the host's tables is never narrowed (#1346): the flowchart's one
|
|
15
|
+
* narrowing is its `slice` over records, the payload's, never the canvas's.
|
|
14
16
|
*
|
|
15
17
|
* @packageDocumentation
|
|
16
18
|
*/
|
|
17
19
|
import { type ExprType, type SubtypeExprOrValue, BooleanType, DateTimeType, FunctionType, NullType, OptionType, StringType, StructType } from "@elaraai/east";
|
|
18
|
-
import { SliceBindType, SliceChromeType, type SliceAffordanceLiteral } from "@elaraai/east-ui/internal";
|
|
19
20
|
import { FlowchartOrientationType, FlowchartFreshnessType } from "./types.js";
|
|
20
21
|
/**
|
|
21
22
|
* East type for the flowchart's canvas — what it draws its flow with: the
|
|
@@ -31,7 +32,6 @@ export declare const FlowchartCanvasType: StructType<{
|
|
|
31
32
|
freshness: OptionType<FlowchartFreshnessType>;
|
|
32
33
|
minimap: OptionType<BooleanType>;
|
|
33
34
|
legend: OptionType<BooleanType>;
|
|
34
|
-
slice: OptionType<SliceChromeType>;
|
|
35
35
|
onSelectState: OptionType<FunctionType<[StringType], NullType>>;
|
|
36
36
|
onSelectLink: OptionType<FunctionType<[StringType], NullType>>;
|
|
37
37
|
onSelectTrigger: OptionType<FunctionType<[StringType], NullType>>;
|
|
@@ -90,25 +90,13 @@ export interface FlowchartCanvasOptions {
|
|
|
90
90
|
/** Optional connection validator — `(from, to)` BEFORE the draft snaps; false forbids the pair. A throwing validator logs and ALLOWS (fail-open). */
|
|
91
91
|
canConnect?: SubtypeExprOrValue<FunctionType<[StringType, StringType], BooleanType>>;
|
|
92
92
|
}
|
|
93
|
-
/**
|
|
94
|
-
* The host's slice over the transitions it builds its flow from — given over
|
|
95
|
-
* `data` only: a flow from a record is the record's, never narrowed.
|
|
96
|
-
*/
|
|
97
|
-
export interface FlowchartSliceOptions {
|
|
98
|
-
/** Optional bound slice handle — mounts the slice's rail in the toolbar; the host feeds `Flowchart.over`'s `links` through `Slice.rows`. */
|
|
99
|
-
slice?: SubtypeExprOrValue<SliceBindType>;
|
|
100
|
-
/** The rail's affordances (default `["filter","search"]`), narrowing the transitions. `"brush"` is refused at build — a flowchart has no continuous 1-D axis. */
|
|
101
|
-
affordances?: SliceAffordanceLiteral[];
|
|
102
|
-
}
|
|
103
93
|
/**
|
|
104
94
|
* Builds the canvas the payload carries: every option given, `none` for every
|
|
105
95
|
* one left out.
|
|
106
96
|
*
|
|
107
97
|
* @param options - The canvas's options ({@link FlowchartCanvasOptions})
|
|
108
|
-
* @param slice - The host's slice and its affordances, over `data`
|
|
109
98
|
* @returns An East expression of {@link FlowchartCanvasType}
|
|
110
|
-
* @throws {Error} When `affordances` lists `"brush"`
|
|
111
99
|
* @internal
|
|
112
100
|
*/
|
|
113
|
-
export declare function buildCanvas(options: FlowchartCanvasOptions
|
|
101
|
+
export declare function buildCanvas(options: FlowchartCanvasOptions): ExprType<FlowchartCanvasType>;
|
|
114
102
|
//# sourceMappingURL=canvas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../../../src/flowchart/canvas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../../../src/flowchart/canvas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAKvB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE9E;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC;IACzC,WAAW,EAAE,UAAU,CAAC,wBAAwB,CAAC,CAAC;IAClD,SAAS,EAAE,UAAU,CAAC,sBAAsB,CA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,EAAE,kBAAkB,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC;IAEnD,gDAAgD;IAChD,aAAa,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;IACzE,+CAA+C;IAC/C,YAAY,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;IACxE,+FAA+F;IAC/F,eAAe,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC3E,uDAAuD;IACvD,WAAW,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEvE,qJAAqJ;IACrJ,UAAU,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC;CACxF;AAMD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,sBAAsB,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAmB1F"}
|
|
@@ -5,17 +5,18 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* The flowchart's canvas (#1244, `Flowchart Builder Spec.md` §5.2): what it
|
|
7
7
|
* draws with besides its flow — orientation, the freshness chip, the legend
|
|
8
|
-
* and the minimap, the selection callbacks
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
8
|
+
* and the minimap, the selection callbacks and the connect veto. The payload
|
|
9
|
+
* carries one whole, as its `canvas`. The flowchart fills the box it is given
|
|
10
|
+
* (#1245): it takes no height of its own. Its gestures are its editing
|
|
11
|
+
* session's (#1247): it takes no callback for an edit. It has no hover cards
|
|
12
|
+
* (#1250): the inspector shows what is selected. It draws at one rhythm, the
|
|
13
|
+
* spec's 116×40 cards in their lanes (#1251): it takes no density. A flow
|
|
14
|
+
* built from the host's tables is never narrowed (#1346): the flowchart's one
|
|
15
|
+
* narrowing is its `slice` over records, the payload's, never the canvas's.
|
|
14
16
|
*
|
|
15
17
|
* @packageDocumentation
|
|
16
18
|
*/
|
|
17
|
-
import { East, variant, some, none,
|
|
18
|
-
import { localSliceHandle, SliceAffordanceType, SliceBindType, SliceChromeType } from "@elaraai/east-ui/internal";
|
|
19
|
+
import { East, variant, some, none, BooleanType, DateTimeType, FunctionType, NullType, OptionType, StringType, StructType, } from "@elaraai/east";
|
|
19
20
|
import { FlowchartOrientationType, FlowchartFreshnessType } from "./types.js";
|
|
20
21
|
/**
|
|
21
22
|
* East type for the flowchart's canvas — what it draws its flow with: the
|
|
@@ -31,7 +32,6 @@ export const FlowchartCanvasType = StructType({
|
|
|
31
32
|
freshness: OptionType(FlowchartFreshnessType),
|
|
32
33
|
minimap: OptionType(BooleanType),
|
|
33
34
|
legend: OptionType(BooleanType),
|
|
34
|
-
slice: OptionType(SliceChromeType),
|
|
35
35
|
onSelectState: OptionType(FunctionType([StringType], NullType)),
|
|
36
36
|
onSelectLink: OptionType(FunctionType([StringType], NullType)),
|
|
37
37
|
onSelectTrigger: OptionType(FunctionType([StringType], NullType)),
|
|
@@ -46,21 +46,10 @@ export const FlowchartCanvasType = StructType({
|
|
|
46
46
|
* one left out.
|
|
47
47
|
*
|
|
48
48
|
* @param options - The canvas's options ({@link FlowchartCanvasOptions})
|
|
49
|
-
* @param slice - The host's slice and its affordances, over `data`
|
|
50
49
|
* @returns An East expression of {@link FlowchartCanvasType}
|
|
51
|
-
* @throws {Error} When `affordances` lists `"brush"`
|
|
52
50
|
* @internal
|
|
53
51
|
*/
|
|
54
|
-
export function buildCanvas(options
|
|
55
|
-
if (slice.affordances?.includes("brush")) {
|
|
56
|
-
throw new Error("Flowchart: `affordances` lists \"brush\", and a flowchart has no continuous axis to brush along — give \"filter\" and \"search\", or leave `affordances` out for both");
|
|
57
|
-
}
|
|
58
|
-
const sliceChromeValue = slice.slice !== undefined
|
|
59
|
-
? East.value({
|
|
60
|
-
slice: localSliceHandle(slice.slice),
|
|
61
|
-
affordances: East.value((slice.affordances ?? ["filter", "search"]).map(a => variant(a, null)), ArrayType(SliceAffordanceType)),
|
|
62
|
-
}, SliceChromeType)
|
|
63
|
-
: undefined;
|
|
52
|
+
export function buildCanvas(options) {
|
|
64
53
|
return East.value({
|
|
65
54
|
orientation: options.orientation !== undefined
|
|
66
55
|
? some(typeof options.orientation === "string" ? variant(options.orientation, null) : options.orientation)
|
|
@@ -73,7 +62,6 @@ export function buildCanvas(options, slice) {
|
|
|
73
62
|
: none,
|
|
74
63
|
minimap: options.minimap !== undefined ? some(options.minimap) : none,
|
|
75
64
|
legend: options.legend !== undefined ? some(options.legend) : none,
|
|
76
|
-
slice: sliceChromeValue ? some(sliceChromeValue) : none,
|
|
77
65
|
onSelectState: options.onSelectState !== undefined ? some(options.onSelectState) : none,
|
|
78
66
|
onSelectLink: options.onSelectLink !== undefined ? some(options.onSelectLink) : none,
|
|
79
67
|
onSelectTrigger: options.onSelectTrigger !== undefined ? some(options.onSelectTrigger) : none,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.js","sourceRoot":"","sources":["../../../src/flowchart/canvas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"canvas.js","sourceRoot":"","sources":["../../../src/flowchart/canvas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAGH,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,GACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE9E;;;;;;;;GAQG;AAC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(#1248). No form takes a callback
|
|
12
12
|
* for an edit: the gestures are the editing session's, which Save commits
|
|
13
|
-
* (#1247, FB24).
|
|
14
|
-
*
|
|
13
|
+
* (#1247, FB24). Every form narrows through one `Slice.bindRecords` (#1346):
|
|
14
|
+
* over a record its `flows` source pages the Flows tab, and over any source
|
|
15
|
+
* each other source narrows the templates list or the tab that names it. Its
|
|
16
|
+
* payload and every refusal are `payload.ts`'s, and its library's tabs and
|
|
17
|
+
* their refusals `library.ts`'s.
|
|
15
18
|
*
|
|
16
19
|
* @packageDocumentation
|
|
17
20
|
*/
|
|
18
21
|
import type { StringType, SubtypeExprOrValue } from "@elaraai/east";
|
|
19
|
-
import type {
|
|
22
|
+
import type { RecordSlicesChromeOptions } from "@elaraai/east-ui/internal";
|
|
20
23
|
import type { UIElement } from "@elaraai/east-ui";
|
|
21
|
-
import type { FlowchartSliceOptions } from "./canvas.js";
|
|
22
24
|
import type { FlowchartLibraryTab, FlowchartOneFlowLibraryTab } from "./library.js";
|
|
23
25
|
import { type FlowchartBindHandle, type FlowchartCommon, type FlowchartFlowApplyType, type FlowchartFlowsApplyType, type FlowchartRecordHandle } from "./payload.js";
|
|
24
26
|
import type { FlowchartFlowType, FlowchartFlowsType } from "./types.js";
|
|
@@ -31,13 +33,13 @@ import type { FlowchartFlowType, FlowchartFlowsType } from "./types.js";
|
|
|
31
33
|
*/
|
|
32
34
|
export declare function FlowchartTag(props: {
|
|
33
35
|
record: FlowchartRecordHandle;
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
slice?:
|
|
36
|
+
/**
|
|
37
|
+
* The narrowing (#1346): slice={{ slice: Slice.bindRecords(key, { flows, … }) }}, one rail on the toolbar,
|
|
38
|
+
* with its `affordances` and `persist`. Its `flows` source — `Data.bindPaged(record, { indexes })` over the
|
|
39
|
+
* same record — narrows the Flows tab, which pages it; the open flow is the viewer's, read by its name
|
|
40
|
+
* whatever the narrowing. Each other source narrows the templates list or the tab that names it.
|
|
41
|
+
*/
|
|
42
|
+
slice?: RecordSlicesChromeOptions;
|
|
41
43
|
/** Over many flows, the one opened first. */
|
|
42
44
|
flow?: SubtypeExprOrValue<StringType>;
|
|
43
45
|
/** The library pane's tabs, in order, each a `Flowchart.library.*` call; left out, or empty, no library pane. */
|
|
@@ -58,7 +60,9 @@ export declare function FlowchartTag(props: {
|
|
|
58
60
|
onApply?: SubtypeExprOrValue<FlowchartFlowsApplyType>;
|
|
59
61
|
/** The library pane's tabs, in order, each a `Flowchart.library.*` call; left out, or empty, no library pane. */
|
|
60
62
|
library?: readonly FlowchartLibraryTab[];
|
|
61
|
-
|
|
63
|
+
/** The narrowing of the templates lists and the tabs that name a source (#1346): the host's flows are never narrowed. */
|
|
64
|
+
slice?: RecordSlicesChromeOptions;
|
|
65
|
+
} & FlowchartCommon): UIElement;
|
|
62
66
|
/**
|
|
63
67
|
* `<Flowchart data={Flowchart.over(states, { … })} />` — the host's one flow:
|
|
64
68
|
* a value, an expression or a bind handle, `Flowchart.over` building it from
|
|
@@ -73,7 +77,9 @@ export declare function FlowchartTag(props: {
|
|
|
73
77
|
onApply?: SubtypeExprOrValue<FlowchartFlowApplyType>;
|
|
74
78
|
/** The library pane's tabs, in order — every tab but the Flows tab; left out, or empty, no library pane. */
|
|
75
79
|
library?: readonly FlowchartOneFlowLibraryTab[];
|
|
76
|
-
|
|
80
|
+
/** The narrowing of the templates lists and the tabs that name a source (#1346): a flow built from the host's tables is never narrowed. */
|
|
81
|
+
slice?: RecordSlicesChromeOptions;
|
|
82
|
+
} & FlowchartCommon): UIElement;
|
|
77
83
|
/** The type of `<Flowchart>` as a tag: every form its props take. */
|
|
78
84
|
export type FlowchartTagType = typeof FlowchartTag;
|
|
79
85
|
//# sourceMappingURL=flowchart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowchart.d.ts","sourceRoot":"","sources":["../../../src/flowchart/flowchart.ts"],"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AC;IACtD,iHAAiH;IACjH,OAAO,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACzC,yHAAyH;IACzH,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACrC,GAAG,eAAe,GACpB,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;IAChD,2IAA2I;IAC3I,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACrC,GAAG,eAAe,GACpB,SAAS,CAAC;AAKb,qEAAqE;AACrE,MAAM,MAAM,gBAAgB,GAAG,OAAO,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowchart.js","sourceRoot":"","sources":["../../../src/flowchart/flowchart.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"flowchart.js","sourceRoot":"","sources":["../../../src/flowchart/flowchart.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuBH,OAAO,EACH,kBAAkB,EAClB,sBAAsB,GAMzB,MAAM,cAAc,CAAC;AAiEtB,MAAM,UAAU,YAAY,CAAC,KAAa;IACtC,OAAO,kBAAkB,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -18,8 +18,11 @@
|
|
|
18
18
|
* - `patch.ts` — `Flowchart.patch`, a patch over one of a flow's rows.
|
|
19
19
|
* - `library.ts` — `Flowchart.library`, the library pane's tabs — the Flows
|
|
20
20
|
* tab, the state and transition templates and the author's tabs, each
|
|
21
|
-
* reading its own rows
|
|
21
|
+
* reading its own rows and following the source of the slice it names —
|
|
22
|
+
* and their wire.
|
|
22
23
|
* - `canvas.ts` — the canvas: what the flowchart draws its flow with.
|
|
24
|
+
* - `window.ts` — the `flows` source of its slice: the Flows tab's pages, a
|
|
25
|
+
* flow read by its name, and the tab's own search (#1346).
|
|
23
26
|
* - `payload.ts` — the payload, its carrier, the shared keys, the props and
|
|
24
27
|
* their refusals.
|
|
25
28
|
* - `flowchart.ts` — the tag.
|
|
@@ -35,10 +38,10 @@ import { FlowchartComponent, FlowchartDataType, FlowchartFlowsHandleType, Flowch
|
|
|
35
38
|
import { FlowchartEvidenceType, FlowchartFlowType, FlowchartFlowsType, FlowchartFreshnessType, FlowchartLaneType, FlowchartLinkKindType, FlowchartLinkType, FlowchartOrientationType, FlowchartStateType, FlowchartTriggerType } from "./types.js";
|
|
36
39
|
import { flowchartValue, flowchartValues } from "./values.js";
|
|
37
40
|
export { FlowchartTag, type FlowchartTagType } from "./flowchart.js";
|
|
38
|
-
export { FlowchartCanvasType, buildCanvas, type FlowchartCanvasOptions, type
|
|
41
|
+
export { FlowchartCanvasType, buildCanvas, type FlowchartCanvasOptions, type FlowchartFreshnessInput, type FlowchartOrientationLiteral, } from "./canvas.js";
|
|
39
42
|
export { flowchartOver, type RowElement, type FlowchartTables, type FlowchartStateFields, type FlowchartLinkFields, type FlowchartLaneFields, type FlowchartTriggerFields, type FlowchartEvidenceFields, type FlowchartLaneLiteral, } from "./over.js";
|
|
40
43
|
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";
|
|
44
|
+
export { FlowchartCardType, FlowchartDecisionCardType, FlowchartLandsType, FlowchartLaneCardType, FlowchartLibraryFactories, FlowchartLibraryTabType, FlowchartStateCardType, FlowchartTransitionCardType, buildLibrary as buildFlowchartLibrary, 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 FlowchartTemplateRows, type FlowchartTransitionsConfig, type FlowchartTransitionsTab, } from "./library.js";
|
|
42
45
|
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
46
|
export { flowchartValue, flowchartValues, type FlowchartFlowInput, type FlowchartLaneInput, type FlowchartStateInput, type FlowchartLinkInput, type FlowchartEvidenceInput, type FlowchartTriggerInput, type FlowchartLinkKindLiteral, } from "./values.js";
|
|
44
47
|
/** The East types a flowchart is written with — `Flowchart.Types`. */
|
|
@@ -94,12 +97,12 @@ export interface FlowchartNamespace extends FlowchartTagType {
|
|
|
94
97
|
*
|
|
95
98
|
* @remarks
|
|
96
99
|
* - **Its frame**: it renders in its builder frame wherever it is used — one
|
|
97
|
-
* toolbar (find state, LR · TD, the freshness chip
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
100
|
+
* toolbar (find state, LR · TD, the freshness chip, the slice's rail and,
|
|
101
|
+
* where it edits, the history item), the canvas filling main and scrolling
|
|
102
|
+
* both ways inside it, and the footer's counts; a library pane when
|
|
103
|
+
* `library` lists tabs, and the inspector pane unless `inspector={false}`.
|
|
104
|
+
* It fills the box it is given and draws no border: give it a box of its
|
|
105
|
+
* own height.
|
|
103
106
|
* - **Its inspector** (#1250, on by default, ruled by the user on
|
|
104
107
|
* 2026-10-08): the end pane, Details and Issues — Issues with its count, and
|
|
105
108
|
* collapsed a rail with its icon and the issue count. Details shows what is
|
|
@@ -137,10 +140,14 @@ export interface FlowchartNamespace extends FlowchartTagType {
|
|
|
137
140
|
* (`Flowchart.library.states(rows, …)`) and transition templates
|
|
138
141
|
* (`Flowchart.library.transitions(rows, …)`), each card a drag source; and
|
|
139
142
|
* 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
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
143
|
+
* when the tab declares a `drop`. Each data tab reads its own rows apart
|
|
144
|
+
* from the flows and from the other tabs. Templates are records (#1340,
|
|
145
|
+
* ruling 9): each list's rows are its record's (`Data.bind(record).read()`,
|
|
146
|
+
* a `Dict<String, T>`), and it names its `source` of the slice. An author's
|
|
147
|
+
* tab reads an Array or a `Dict<String, T>`, and naming a `source` follows
|
|
148
|
+
* it. A click selects a card, and a click on the selected card lets it go;
|
|
149
|
+
* an empty tab says so in the shared empty state, and one the rail leaves
|
|
150
|
+
* none says so, with a Clear.
|
|
144
151
|
* - **Its drops** (#1249): a card carried onto the canvas lands where its tab
|
|
145
152
|
* says — a state template on a lane, adding a state at the row under the
|
|
146
153
|
* pointer, its key the drop's, made unique or minted; a transition template
|
|
@@ -170,8 +177,17 @@ export interface FlowchartNamespace extends FlowchartTagType {
|
|
|
170
177
|
* is a record of one entry. Or they are the host's (`data`): flows by name
|
|
171
178
|
* or one flow — a value, an expression or a bind handle — the value's type
|
|
172
179
|
* picking the arm, one prop taking either; `Flowchart.over` builds one flow
|
|
173
|
-
* from the host's own tables through their row mappers
|
|
174
|
-
* narrows
|
|
180
|
+
* from the host's own tables through their row mappers. The host's flows
|
|
181
|
+
* are never narrowed: a task narrows the rows it builds them from.
|
|
182
|
+
* - **Its narrowing** (#1346) is one `Slice.bindRecords`, `slice={{ slice:
|
|
183
|
+
* Slice.bindRecords(key, { flows, … }) }}`, its rail on the toolbar. Over a
|
|
184
|
+
* record, its `flows` source — `Data.bindPaged(record, { indexes })` over
|
|
185
|
+
* the same record, its `fields` the indexes' — narrows the Flows tab, which
|
|
186
|
+
* pages it a window at a time with its count, the tab's own search finding
|
|
187
|
+
* within the narrowing by the source's `search` fields; the open flow is
|
|
188
|
+
* read by its name whatever the narrowing, and keeps its drafts. Each other
|
|
189
|
+
* source narrows the templates list or the author's tab that names it, by
|
|
190
|
+
* its cards' keys.
|
|
175
191
|
* - **A dataset's value** is written as literals with `Flowchart.values`
|
|
176
192
|
* (flows by name) or `Flowchart.value` (one flow), checked when the package
|
|
177
193
|
* builds.
|
|
@@ -179,11 +195,16 @@ export interface FlowchartNamespace extends FlowchartTagType {
|
|
|
179
195
|
* `onSelectTrigger`) and a traced path (`onTracePath`), and vetoes a
|
|
180
196
|
* connection with `canConnect`.
|
|
181
197
|
* - **Refused when the surface is built**, each naming the prop and the
|
|
182
|
-
* remedy: flows from both `record` and `data`, or neither; `onApply
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
198
|
+
* remedy: flows from both `record` and `data`, or neither; `onApply` over a
|
|
199
|
+
* record; `window`, which the slice's `flows` source replaced; a `slice`
|
|
200
|
+
* that is not `{ slice }` — the bare handle a flow from the host's tables
|
|
201
|
+
* was narrowed by — or not `Slice.bindRecords` (`Slice.bind`,
|
|
202
|
+
* `Slice.bindRecord`), or holding a source nothing names; a `flows` source
|
|
203
|
+
* over `data`; `affordances` outside `slice`; a templates list written in
|
|
204
|
+
* the code, naming no source, or naming `flows`, and the two lists naming
|
|
205
|
+
* one source; `flow` over one flow; a record of one flow, or of another
|
|
206
|
+
* type, or not bound with its patch mutation; `"brush"` among the
|
|
207
|
+
* affordances; `height` or `maxHeight`, which the box it fills sets; `density`, which nothing drew by — the canvas draws at one
|
|
187
208
|
* rhythm, the spec's 116×40 cards in their lanes (#1251); a callback for an
|
|
188
209
|
* edit (`onAddState`, `onCreateLink`, …)
|
|
189
210
|
* or `linkMode`, which the session's gestures replace; a hover card's
|
|
@@ -193,7 +214,9 @@ export interface FlowchartNamespace extends FlowchartTagType {
|
|
|
193
214
|
* another type than `(Row, (Row) => Null) => UIComponentType`; a library
|
|
194
215
|
* that lists a tab twice — the Flows tab or a template tab, or two of the
|
|
195
216
|
* 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
|
|
217
|
+
* whose rows are neither an Array nor a `Dict<String, T>`, or a templates
|
|
218
|
+
* list's or a sourced tab's that are no `Dict<String, T>`; a tab's source
|
|
219
|
+
* the slice lacks; a `states` drop
|
|
197
220
|
* over another type than a state's patch, a `transitions` drop over another
|
|
198
221
|
* than a transition's, and a `tab` drop over none of a flow's row types.
|
|
199
222
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/flowchart/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/flowchart/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACH,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EAClB,qBAAqB,EAErB,uBAAuB,EACvB,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