@elaraai/e3-ui 1.0.97 → 1.0.99
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/README.md +0 -2
- package/dist/src/allocation/adapters.d.ts +1 -1
- package/dist/src/allocation/adapters.js +1 -1
- package/dist/src/allocation/index.d.ts +232 -25
- package/dist/src/allocation/index.d.ts.map +1 -1
- package/dist/src/allocation/index.js +35 -6
- package/dist/src/allocation/index.js.map +1 -1
- package/dist/src/allocation/types.d.ts +41 -0
- package/dist/src/allocation/types.d.ts.map +1 -1
- package/dist/src/allocation/types.js +35 -0
- package/dist/src/allocation/types.js.map +1 -1
- package/dist/src/bind/data-indexed.d.ts +286 -37
- package/dist/src/bind/data-indexed.d.ts.map +1 -1
- package/dist/src/bind/data-indexed.js +259 -38
- package/dist/src/bind/data-indexed.js.map +1 -1
- package/dist/src/bind/data.d.ts +48 -9
- package/dist/src/bind/data.d.ts.map +1 -1
- package/dist/src/bind/data.js +48 -3
- package/dist/src/bind/data.js.map +1 -1
- package/dist/src/bind/record.d.ts +61 -24
- package/dist/src/bind/record.d.ts.map +1 -1
- package/dist/src/bind/record.js +17 -57
- package/dist/src/bind/record.js.map +1 -1
- package/dist/src/calendar/index.d.ts +522 -36
- package/dist/src/calendar/index.d.ts.map +1 -1
- package/dist/src/calendar/index.js +53 -13
- package/dist/src/calendar/index.js.map +1 -1
- package/dist/src/calendar/paged.d.ts +89 -0
- package/dist/src/calendar/paged.d.ts.map +1 -0
- package/dist/src/calendar/paged.js +148 -0
- package/dist/src/calendar/paged.js.map +1 -0
- package/dist/src/flowchart/index.d.ts +35 -31
- package/dist/src/flowchart/index.d.ts.map +1 -1
- package/dist/src/flowchart/index.js +35 -31
- package/dist/src/flowchart/index.js.map +1 -1
- package/dist/src/flowchart/library.d.ts +108 -84
- package/dist/src/flowchart/library.d.ts.map +1 -1
- package/dist/src/flowchart/library.js +108 -84
- package/dist/src/flowchart/library.js.map +1 -1
- package/dist/src/flowchart/payload.d.ts +105 -17
- package/dist/src/flowchart/payload.d.ts.map +1 -1
- package/dist/src/flowchart/payload.js +3 -3
- package/dist/src/flowchart/payload.js.map +1 -1
- package/dist/src/flowchart/values.d.ts +35 -31
- package/dist/src/flowchart/values.d.ts.map +1 -1
- package/dist/src/flowchart/values.js +35 -31
- package/dist/src/flowchart/values.js.map +1 -1
- package/dist/src/flowchart/window.d.ts.map +1 -1
- package/dist/src/flowchart/window.js +3 -2
- package/dist/src/flowchart/window.js.map +1 -1
- package/dist/src/index.d.ts +13 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +20 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +18 -8
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +40 -10
- package/dist/src/internal.js.map +1 -1
- package/dist/src/plan/assemble.d.ts +8 -0
- package/dist/src/plan/assemble.d.ts.map +1 -1
- package/dist/src/plan/assemble.js +1 -1
- package/dist/src/plan/assemble.js.map +1 -1
- package/dist/src/plan/builders.d.ts +1530 -10
- package/dist/src/plan/builders.d.ts.map +1 -1
- package/dist/src/plan/builders.js +260 -122
- package/dist/src/plan/builders.js.map +1 -1
- package/dist/src/plan/event-rows.d.ts +224 -157
- package/dist/src/plan/event-rows.d.ts.map +1 -1
- package/dist/src/plan/event-rows.js +201 -56
- package/dist/src/plan/event-rows.js.map +1 -1
- package/dist/src/plan/factories.d.ts +72 -4
- package/dist/src/plan/factories.d.ts.map +1 -1
- package/dist/src/plan/factories.js +147 -1
- package/dist/src/plan/factories.js.map +1 -1
- package/dist/src/plan/index.d.ts +152 -125
- package/dist/src/plan/index.d.ts.map +1 -1
- package/dist/src/plan/index.js +138 -122
- package/dist/src/plan/index.js.map +1 -1
- package/dist/src/plan/ir.d.ts +1139 -8
- package/dist/src/plan/ir.d.ts.map +1 -1
- package/dist/src/plan/ir.js +5 -0
- package/dist/src/plan/ir.js.map +1 -1
- package/dist/src/plan/library.d.ts +65 -42
- package/dist/src/plan/library.d.ts.map +1 -1
- package/dist/src/plan/library.js +65 -42
- package/dist/src/plan/library.js.map +1 -1
- package/dist/src/plan/nested-checks.d.ts +146 -0
- package/dist/src/plan/nested-checks.d.ts.map +1 -0
- package/dist/src/plan/nested-checks.js +468 -0
- package/dist/src/plan/nested-checks.js.map +1 -0
- package/dist/src/plan/nested-patch.d.ts +35 -0
- package/dist/src/plan/nested-patch.d.ts.map +1 -0
- package/dist/src/plan/nested-patch.js +143 -0
- package/dist/src/plan/nested-patch.js.map +1 -0
- package/dist/src/plan/nested-read.d.ts +3250 -0
- package/dist/src/plan/nested-read.d.ts.map +1 -0
- package/dist/src/plan/nested-read.js +163 -0
- package/dist/src/plan/nested-read.js.map +1 -0
- package/dist/src/plan/nested.d.ts +280 -0
- package/dist/src/plan/nested.d.ts.map +1 -0
- package/dist/src/plan/nested.js +6 -0
- package/dist/src/plan/nested.js.map +1 -0
- package/dist/src/plan/ordered-source.d.ts +3067 -1
- package/dist/src/plan/ordered-source.d.ts.map +1 -1
- package/dist/src/plan/ordered-source.js +67 -17
- package/dist/src/plan/ordered-source.js.map +1 -1
- package/dist/src/plan/over.d.ts +111 -75
- package/dist/src/plan/over.d.ts.map +1 -1
- package/dist/src/plan/over.js +111 -75
- package/dist/src/plan/over.js.map +1 -1
- package/dist/src/plan/pick.d.ts +15 -3
- package/dist/src/plan/pick.d.ts.map +1 -1
- package/dist/src/plan/pick.js +75 -36
- package/dist/src/plan/pick.js.map +1 -1
- package/dist/src/plan/plan.d.ts +3143 -501
- package/dist/src/plan/plan.d.ts.map +1 -1
- package/dist/src/plan/plan.js +133 -34
- package/dist/src/plan/plan.js.map +1 -1
- package/dist/src/plan/reads.d.ts +421 -0
- package/dist/src/plan/reads.d.ts.map +1 -0
- package/dist/src/plan/reads.js +143 -0
- package/dist/src/plan/reads.js.map +1 -0
- package/dist/src/plan/refs.d.ts +111 -75
- package/dist/src/plan/refs.d.ts.map +1 -1
- package/dist/src/plan/refs.js +111 -75
- package/dist/src/plan/refs.js.map +1 -1
- package/dist/src/plan/root.d.ts +14 -7
- package/dist/src/plan/root.d.ts.map +1 -1
- package/dist/src/plan/root.js +82 -17
- package/dist/src/plan/root.js.map +1 -1
- package/dist/src/plan/series.d.ts +5153 -4331
- package/dist/src/plan/series.d.ts.map +1 -1
- package/dist/src/plan/series.js +1082 -266
- package/dist/src/plan/series.js.map +1 -1
- package/dist/src/plan/shade.d.ts +981 -0
- package/dist/src/plan/shade.d.ts.map +1 -0
- package/dist/src/plan/shade.js +60 -0
- package/dist/src/plan/shade.js.map +1 -0
- package/dist/src/plan/types.d.ts +192 -18
- package/dist/src/plan/types.d.ts.map +1 -1
- package/dist/src/plan/types.js +77 -19
- package/dist/src/plan/types.js.map +1 -1
- package/dist/src/query/builder.d.ts +3 -3
- package/dist/src/query/builder.d.ts.map +1 -1
- package/dist/src/query/builder.js +1 -1
- package/dist/src/query/library.d.ts +3 -3
- package/dist/src/query/library.d.ts.map +1 -1
- package/dist/src/query/library.js +1 -1
- package/dist/src/query/queries.d.ts +2 -2
- package/dist/src/query/queries.js +1 -1
- package/dist/src/query/saved.d.ts +8 -4
- package/dist/src/query/saved.d.ts.map +1 -1
- package/dist/src/query/saved.js +8 -4
- package/dist/src/query/saved.js.map +1 -1
- package/dist/src/query/types.d.ts +8 -3
- package/dist/src/query/types.d.ts.map +1 -1
- package/dist/src/query/types.js +8 -3
- package/dist/src/query/types.js.map +1 -1
- package/dist/src/roster/index.d.ts +583 -39
- package/dist/src/roster/index.d.ts.map +1 -1
- package/dist/src/roster/index.js +109 -35
- package/dist/src/roster/index.js.map +1 -1
- package/dist/src/roster/library.d.ts +12 -2
- package/dist/src/roster/library.d.ts.map +1 -1
- package/dist/src/roster/library.js +8 -0
- package/dist/src/roster/library.js.map +1 -1
- package/dist/src/roster/lists.d.ts +59 -12
- package/dist/src/roster/lists.d.ts.map +1 -1
- package/dist/src/roster/lists.js +51 -58
- package/dist/src/roster/lists.js.map +1 -1
- package/dist/src/roster/targets.d.ts +8 -4
- package/dist/src/roster/targets.d.ts.map +1 -1
- package/dist/src/roster/targets.js +9 -5
- package/dist/src/roster/targets.js.map +1 -1
- package/dist/src/roster/times.d.ts +402 -0
- package/dist/src/roster/times.d.ts.map +1 -1
- package/dist/src/roster/types.d.ts +913 -1
- package/dist/src/roster/types.d.ts.map +1 -1
- package/dist/src/roster/types.js +43 -3
- package/dist/src/roster/types.js.map +1 -1
- package/dist/src/schedule/cell-checks.d.ts +85 -0
- package/dist/src/schedule/cell-checks.d.ts.map +1 -0
- package/dist/src/schedule/cell-checks.js +211 -0
- package/dist/src/schedule/cell-checks.js.map +1 -0
- package/dist/src/schedule/days.d.ts +1 -1
- package/dist/src/schedule/days.js +1 -1
- package/dist/src/schedule/events.d.ts +52 -16
- package/dist/src/schedule/events.d.ts.map +1 -1
- package/dist/src/schedule/events.js +574 -356
- package/dist/src/schedule/events.js.map +1 -1
- package/dist/src/schedule/fields.d.ts +134 -0
- package/dist/src/schedule/fields.d.ts.map +1 -0
- package/dist/src/schedule/fields.js +207 -0
- package/dist/src/schedule/fields.js.map +1 -0
- package/dist/src/schedule/library.d.ts +11 -3
- package/dist/src/schedule/library.d.ts.map +1 -1
- package/dist/src/schedule/library.js +9 -6
- package/dist/src/schedule/library.js.map +1 -1
- package/dist/src/schedule/optimise.d.ts +124 -0
- package/dist/src/schedule/optimise.d.ts.map +1 -0
- package/dist/src/schedule/optimise.js +140 -0
- package/dist/src/schedule/optimise.js.map +1 -0
- package/dist/src/schedule/pages.d.ts +76 -0
- package/dist/src/schedule/pages.d.ts.map +1 -0
- package/dist/src/schedule/pages.js +86 -0
- package/dist/src/schedule/pages.js.map +1 -0
- package/dist/src/schedule/patch.d.ts +1 -1
- package/dist/src/schedule/patch.js +1 -1
- package/dist/src/schedule/periods.d.ts +8 -4
- package/dist/src/schedule/periods.d.ts.map +1 -1
- package/dist/src/schedule/periods.js +1 -1
- package/dist/src/schedule/periods.js.map +1 -1
- package/dist/src/schedule/record-window.d.ts +115 -22
- package/dist/src/schedule/record-window.d.ts.map +1 -1
- package/dist/src/schedule/record-window.js +140 -62
- package/dist/src/schedule/record-window.js.map +1 -1
- package/dist/src/schedule/resources.d.ts +9 -5
- package/dist/src/schedule/resources.d.ts.map +1 -1
- package/dist/src/schedule/resources.js +35 -15
- package/dist/src/schedule/resources.js.map +1 -1
- package/dist/src/schedule/session.d.ts +15 -1
- package/dist/src/schedule/session.d.ts.map +1 -1
- package/dist/src/schedule/session.js +30 -18
- package/dist/src/schedule/session.js.map +1 -1
- package/dist/src/schedule/types.d.ts +455 -37
- package/dist/src/schedule/types.d.ts.map +1 -1
- package/dist/src/schedule/types.js +79 -18
- package/dist/src/schedule/types.js.map +1 -1
- package/dist/src/schedule/window.d.ts +30 -9
- package/dist/src/schedule/window.d.ts.map +1 -1
- package/dist/src/schedule/window.js +101 -49
- package/dist/src/schedule/window.js.map +1 -1
- package/dist/src/schematic/index.d.ts +287 -0
- package/dist/src/schematic/index.d.ts.map +1 -0
- package/dist/src/schematic/index.js +216 -0
- package/dist/src/schematic/index.js.map +1 -0
- package/dist/src/schematic/kinds.d.ts +501 -0
- package/dist/src/schematic/kinds.d.ts.map +1 -0
- package/dist/src/schematic/kinds.js +1027 -0
- package/dist/src/schematic/kinds.js.map +1 -0
- package/dist/src/schematic/layers.d.ts +74 -0
- package/dist/src/schematic/layers.d.ts.map +1 -0
- package/dist/src/schematic/layers.js +99 -0
- package/dist/src/schematic/layers.js.map +1 -0
- package/dist/src/schematic/library.d.ts +202 -0
- package/dist/src/schematic/library.d.ts.map +1 -0
- package/dist/src/schematic/library.js +244 -0
- package/dist/src/schematic/library.js.map +1 -0
- package/dist/src/schematic/payload.d.ts +8310 -0
- package/dist/src/schematic/payload.d.ts.map +1 -0
- package/dist/src/schematic/payload.js +446 -0
- package/dist/src/schematic/payload.js.map +1 -0
- package/dist/src/schematic/schematic.d.ts +27 -0
- package/dist/src/schematic/schematic.d.ts.map +1 -0
- package/dist/src/schematic/schematic.js +17 -0
- package/dist/src/schematic/schematic.js.map +1 -0
- package/dist/src/schematic/shapes.d.ts +150 -0
- package/dist/src/schematic/shapes.d.ts.map +1 -0
- package/dist/src/schematic/shapes.js +171 -0
- package/dist/src/schematic/shapes.js.map +1 -0
- package/dist/src/schematic/templates.d.ts +96 -0
- package/dist/src/schematic/templates.d.ts.map +1 -0
- package/dist/src/schematic/templates.js +91 -0
- package/dist/src/schematic/templates.js.map +1 -0
- package/dist/src/schematic/types.d.ts +5766 -0
- package/dist/src/schematic/types.d.ts.map +1 -0
- package/dist/src/schematic/types.js +688 -0
- package/dist/src/schematic/types.js.map +1 -0
- package/dist/src/schematic/window.d.ts +213 -0
- package/dist/src/schematic/window.d.ts.map +1 -0
- package/dist/src/schematic/window.js +340 -0
- package/dist/src/schematic/window.js.map +1 -0
- package/dist/src/sheet/bridge.d.ts +19 -0
- package/dist/src/sheet/bridge.d.ts.map +1 -1
- package/dist/src/sheet/bridge.js +28 -21
- package/dist/src/sheet/bridge.js.map +1 -1
- package/dist/src/sheet/editing-bridge.d.ts +4 -2
- package/dist/src/sheet/editing-bridge.d.ts.map +1 -1
- package/dist/src/sheet/editing-bridge.js +8 -2
- package/dist/src/sheet/editing-bridge.js.map +1 -1
- package/dist/src/sheet/editing-types.d.ts +9 -5
- package/dist/src/sheet/editing-types.d.ts.map +1 -1
- package/dist/src/sheet/editing-types.js +9 -5
- package/dist/src/sheet/editing-types.js.map +1 -1
- package/dist/src/sheet/index.d.ts +84 -54
- package/dist/src/sheet/index.d.ts.map +1 -1
- package/dist/src/sheet/index.js +81 -53
- package/dist/src/sheet/index.js.map +1 -1
- package/dist/src/sheet/library.d.ts +13 -8
- package/dist/src/sheet/library.d.ts.map +1 -1
- package/dist/src/sheet/library.js +13 -8
- package/dist/src/sheet/library.js.map +1 -1
- package/dist/src/sheet/optimise.d.ts +69 -0
- package/dist/src/sheet/optimise.d.ts.map +1 -0
- package/dist/src/sheet/optimise.js +81 -0
- package/dist/src/sheet/optimise.js.map +1 -0
- package/dist/src/sheet/record.d.ts +1 -1
- package/dist/src/sheet/record.js +2 -2
- package/dist/src/sheet/record.js.map +1 -1
- package/dist/src/sheet/registers.d.ts +157 -133
- package/dist/src/sheet/registers.d.ts.map +1 -1
- package/dist/src/sheet/registers.js +157 -133
- package/dist/src/sheet/registers.js.map +1 -1
- package/dist/src/sheet/root.d.ts +6 -1
- package/dist/src/sheet/root.d.ts.map +1 -1
- package/dist/src/sheet/root.js +17 -5
- package/dist/src/sheet/root.js.map +1 -1
- package/dist/src/sheet/sheet.d.ts +696 -590
- package/dist/src/sheet/sheet.d.ts.map +1 -1
- package/dist/src/sheet/sheet.js +49 -15
- package/dist/src/sheet/sheet.js.map +1 -1
- package/dist/src/sheet/sub-rows.d.ts +106 -76
- package/dist/src/sheet/sub-rows.d.ts.map +1 -1
- package/dist/src/sheet/sub-rows.js +106 -76
- package/dist/src/sheet/sub-rows.js.map +1 -1
- package/dist/src/sheet/types.d.ts +57 -20
- package/dist/src/sheet/types.d.ts.map +1 -1
- package/dist/src/sheet/types.js +4 -8
- package/dist/src/sheet/types.js.map +1 -1
- package/dist/src/studio/builder.d.ts +3 -153
- package/dist/src/studio/builder.d.ts.map +1 -1
- package/dist/src/studio/builder.js +1 -1
- package/dist/src/studio/canvas.d.ts +5 -4
- package/dist/src/studio/canvas.d.ts.map +1 -1
- package/dist/src/studio/canvas.js +8 -7
- package/dist/src/studio/canvas.js.map +1 -1
- package/dist/src/studio/component.d.ts +30 -20
- package/dist/src/studio/component.d.ts.map +1 -1
- package/dist/src/studio/component.js +26 -61
- package/dist/src/studio/component.js.map +1 -1
- package/dist/src/studio/index.d.ts +2 -2
- package/dist/src/studio/index.d.ts.map +1 -1
- package/dist/src/studio/index.js +1 -1
- package/dist/src/studio/index.js.map +1 -1
- package/dist/src/studio/inspector.d.ts +10 -39
- package/dist/src/studio/inspector.d.ts.map +1 -1
- package/dist/src/studio/inspector.js +11 -31
- package/dist/src/studio/inspector.js.map +1 -1
- package/dist/src/studio/library.d.ts +3 -169
- package/dist/src/studio/library.d.ts.map +1 -1
- package/dist/src/studio/library.js +1 -1
- package/dist/src/studio/page.d.ts +0 -8
- package/dist/src/studio/page.d.ts.map +1 -1
- package/dist/src/studio/pages.d.ts +17 -591
- package/dist/src/studio/pages.d.ts.map +1 -1
- package/dist/src/studio/pages.js +17 -44
- package/dist/src/studio/pages.js.map +1 -1
- package/dist/src/studio/palette.d.ts +2 -7
- package/dist/src/studio/palette.d.ts.map +1 -1
- package/dist/src/studio/palette.js +4 -5
- package/dist/src/studio/palette.js.map +1 -1
- package/dist/src/studio/publish.d.ts +8 -18
- package/dist/src/studio/publish.d.ts.map +1 -1
- package/dist/src/studio/publish.js +10 -36
- package/dist/src/studio/publish.js.map +1 -1
- package/dist/src/utils/derive.d.ts +12 -12
- package/dist/src/utils/derive.d.ts.map +1 -1
- package/dist/src/utils/derive.js +5 -2
- package/dist/src/utils/derive.js.map +1 -1
- package/dist/src/utils/keyed-rows.d.ts +41 -0
- package/dist/src/utils/keyed-rows.d.ts.map +1 -0
- package/dist/src/utils/keyed-rows.js +64 -0
- package/dist/src/utils/keyed-rows.js.map +1 -0
- package/dist/src/utils/optimise.d.ts +79 -0
- package/dist/src/utils/optimise.d.ts.map +1 -0
- package/dist/src/utils/optimise.js +46 -0
- package/dist/src/utils/optimise.js.map +1 -0
- package/dist/src/utils/ordered-source.d.ts.map +1 -1
- package/dist/src/utils/ordered-source.js +14 -5
- package/dist/src/utils/ordered-source.js.map +1 -1
- package/dist/test/allocation/allocation.examples.d.ts +1900 -1610
- package/dist/test/allocation/allocation.examples.d.ts.map +1 -1
- package/dist/test/allocation/allocation.examples.js +179 -89
- package/dist/test/allocation/allocation.examples.js.map +1 -1
- package/dist/test/allocation/optimise.examples.d.ts +109 -0
- package/dist/test/allocation/optimise.examples.d.ts.map +1 -0
- package/dist/test/allocation/optimise.examples.js +223 -0
- package/dist/test/allocation/optimise.examples.js.map +1 -0
- package/dist/test/bind/data/data.examples.d.ts +1172 -514
- package/dist/test/bind/data/data.examples.d.ts.map +1 -1
- package/dist/test/bind/data/data.examples.js +284 -164
- package/dist/test/bind/data/data.examples.js.map +1 -1
- package/dist/test/bind/record/record.examples.d.ts +457 -428
- package/dist/test/bind/record/record.examples.d.ts.map +1 -1
- package/dist/test/bind/record/record.examples.js +41 -21
- package/dist/test/bind/record/record.examples.js.map +1 -1
- package/dist/test/calendar/calendar-records.examples.d.ts +162 -170
- package/dist/test/calendar/calendar-records.examples.d.ts.map +1 -1
- package/dist/test/calendar/calendar-records.examples.js +20 -12
- package/dist/test/calendar/calendar-records.examples.js.map +1 -1
- package/dist/test/calendar/calendar-windows.examples.d.ts +9 -0
- package/dist/test/calendar/calendar-windows.examples.d.ts.map +1 -0
- package/dist/test/calendar/calendar-windows.examples.js +111 -0
- package/dist/test/calendar/calendar-windows.examples.js.map +1 -0
- package/dist/test/calendar/calendar.examples.d.ts +1172 -915
- package/dist/test/calendar/calendar.examples.d.ts.map +1 -1
- package/dist/test/calendar/calendar.examples.js +211 -124
- package/dist/test/calendar/calendar.examples.js.map +1 -1
- package/dist/test/calendar/optimise.examples.d.ts +132 -0
- package/dist/test/calendar/optimise.examples.d.ts.map +1 -0
- package/dist/test/calendar/optimise.examples.js +75 -0
- package/dist/test/calendar/optimise.examples.js.map +1 -0
- package/dist/test/examples-package.d.ts +49 -16
- package/dist/test/examples-package.d.ts.map +1 -1
- package/dist/test/examples-package.js +138 -49
- package/dist/test/examples-package.js.map +1 -1
- package/dist/test/flowchart/flowchart.examples.d.ts +3841 -2840
- package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -1
- package/dist/test/flowchart/flowchart.examples.js +211 -121
- package/dist/test/flowchart/flowchart.examples.js.map +1 -1
- package/dist/test/plan/optimise.examples.d.ts +207 -0
- package/dist/test/plan/optimise.examples.d.ts.map +1 -0
- package/dist/test/plan/optimise.examples.js +98 -0
- package/dist/test/plan/optimise.examples.js.map +1 -0
- package/dist/test/plan/plan-events.examples.d.ts +4055 -3279
- package/dist/test/plan/plan-events.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-events.examples.js +492 -319
- package/dist/test/plan/plan-events.examples.js.map +1 -1
- package/dist/test/plan/plan-nested.examples.d.ts +1829 -0
- package/dist/test/plan/plan-nested.examples.d.ts.map +1 -0
- package/dist/test/plan/plan-nested.examples.js +321 -0
- package/dist/test/plan/plan-nested.examples.js.map +1 -0
- package/dist/test/plan/plan-records.examples.d.ts +391 -244
- package/dist/test/plan/plan-records.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-records.examples.js +186 -65
- package/dist/test/plan/plan-records.examples.js.map +1 -1
- package/dist/test/plan/plan-windows.examples.d.ts +1978 -803
- package/dist/test/plan/plan-windows.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-windows.examples.js +269 -99
- package/dist/test/plan/plan-windows.examples.js.map +1 -1
- package/dist/test/plan/plan.examples.d.ts +2238 -5726
- package/dist/test/plan/plan.examples.d.ts.map +1 -1
- package/dist/test/plan/plan.examples.js +846 -973
- package/dist/test/plan/plan.examples.js.map +1 -1
- package/dist/test/query/query.examples.d.ts +5221 -3005
- package/dist/test/query/query.examples.d.ts.map +1 -1
- package/dist/test/query/query.examples.js +169 -118
- package/dist/test/query/query.examples.js.map +1 -1
- package/dist/test/roster/domain.examples.d.ts +804 -0
- package/dist/test/roster/domain.examples.d.ts.map +1 -1
- package/dist/test/roster/domain.examples.js +3 -3
- package/dist/test/roster/domain.examples.js.map +1 -1
- package/dist/test/roster/optimise.examples.d.ts +485 -0
- package/dist/test/roster/optimise.examples.d.ts.map +1 -0
- package/dist/test/roster/optimise.examples.js +155 -0
- package/dist/test/roster/optimise.examples.js.map +1 -0
- package/dist/test/roster/roster-records.examples.d.ts +364 -404
- package/dist/test/roster/roster-records.examples.d.ts.map +1 -1
- package/dist/test/roster/roster-records.examples.js +40 -26
- package/dist/test/roster/roster-records.examples.js.map +1 -1
- package/dist/test/roster/roster.examples.d.ts +5091 -1424
- package/dist/test/roster/roster.examples.d.ts.map +1 -1
- package/dist/test/roster/roster.examples.js +255 -109
- package/dist/test/roster/roster.examples.js.map +1 -1
- package/dist/test/roster/warehouse.d.ts +150 -7
- package/dist/test/roster/warehouse.d.ts.map +1 -1
- package/dist/test/roster/warehouse.js +36 -11
- package/dist/test/roster/warehouse.js.map +1 -1
- package/dist/test/schedule/schedule.examples.d.ts +2646 -2473
- package/dist/test/schedule/schedule.examples.d.ts.map +1 -1
- package/dist/test/schedule/schedule.examples.js +144 -88
- package/dist/test/schedule/schedule.examples.js.map +1 -1
- package/dist/test/schematic/schematic-records.examples.d.ts +454 -0
- package/dist/test/schematic/schematic-records.examples.d.ts.map +1 -0
- package/dist/test/schematic/schematic-records.examples.js +219 -0
- package/dist/test/schematic/schematic-records.examples.js.map +1 -0
- package/dist/test/schematic/schematic.examples.d.ts +2640 -0
- package/dist/test/schematic/schematic.examples.d.ts.map +1 -0
- package/dist/test/schematic/schematic.examples.js +559 -0
- package/dist/test/schematic/schematic.examples.js.map +1 -0
- package/dist/test/sheet/optimise.examples.d.ts +184 -0
- package/dist/test/sheet/optimise.examples.d.ts.map +1 -0
- package/dist/test/sheet/optimise.examples.js +79 -0
- package/dist/test/sheet/optimise.examples.js.map +1 -0
- package/dist/test/sheet/sheet-records.examples.d.ts +208 -356
- package/dist/test/sheet/sheet-records.examples.d.ts.map +1 -1
- package/dist/test/sheet/sheet-records.examples.js +66 -29
- package/dist/test/sheet/sheet-records.examples.js.map +1 -1
- package/dist/test/sheet/sheet.examples.d.ts +3650 -3377
- package/dist/test/sheet/sheet.examples.d.ts.map +1 -1
- package/dist/test/sheet/sheet.examples.js +406 -296
- package/dist/test/sheet/sheet.examples.js.map +1 -1
- package/dist/test/studio/component.examples.js +2 -2
- package/dist/test/studio/component.examples.js.map +1 -1
- package/dist/test/studio/page.examples.js +6 -6
- package/dist/test/studio/page.examples.js.map +1 -1
- package/dist/test/studio/studio.examples.d.ts +2329 -873
- package/dist/test/studio/studio.examples.d.ts.map +1 -1
- package/dist/test/studio/studio.examples.js +155 -107
- package/dist/test/studio/studio.examples.js.map +1 -1
- package/package.json +15 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-rows.d.ts","sourceRoot":"","sources":["../../../src/plan/event-rows.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"event-rows.d.ts","sourceRoot":"","sources":["../../../src/plan/event-rows.ts"],"names":[],"mappings":"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"}
|
|
@@ -51,17 +51,31 @@
|
|
|
51
51
|
* Unassigned row: whether the kind has its resource would take every window
|
|
52
52
|
* to know, so an event naming a resource it has not draws nowhere.
|
|
53
53
|
*
|
|
54
|
+
* A paged kind its Plan's slice names a source after takes its windows from
|
|
55
|
+
* that source's narrowed rows themselves (#1344): the narrowing's rows, paged
|
|
56
|
+
* in the source's index's order, as the `rows` source gives the canvas its
|
|
57
|
+
* rows — never a window of every resource filtered by the keys the source
|
|
58
|
+
* shows. Its count is the narrowing's, its keys come in the order its rows
|
|
59
|
+
* draw, so a reader reads the cells of the narrowed resources in view alone,
|
|
60
|
+
* and `query` names the narrowing its windows belong to. It has no key
|
|
61
|
+
* search: the narrowing's searches run in its index's order, which a key's
|
|
62
|
+
* does not follow.
|
|
63
|
+
*
|
|
54
64
|
* @packageDocumentation
|
|
55
65
|
*/
|
|
56
|
-
import { ArrayType, BooleanType, DateTimeType, DictType, East, FunctionType, IntegerType, NullType, OptionType, SetType, StringType, StructType, isTypeEqual, none, some, variant, } from "@elaraai/east";
|
|
66
|
+
import { ArrayType, BlobType, BooleanType, DateTimeType, DictType, East, FloatType, FunctionType, IntegerType, NullType, OptionType, SetType, StringType, StructType, isTypeEqual, none, some, variant, } from "@elaraai/east";
|
|
57
67
|
import { IconType, PickStateType, SeekQueryType, SeekRangeType, StatusValueType } from "@elaraai/east-ui";
|
|
58
|
-
import { buildPagedWindow, resolveRowSource } from "@elaraai/east-ui/internal";
|
|
59
68
|
import { PlanEventItemType, PlanEventKindType, ScheduleDraftsType, ScheduleEventRefType, ScheduleStatusType } from "../schedule/types.js";
|
|
60
|
-
import {
|
|
69
|
+
import { scheduleNarrowedWindows, scheduleOwnWindows } from "../schedule/pages.js";
|
|
70
|
+
import { planIndexOrder } from "./ordered-source.js";
|
|
71
|
+
import { PlanEventShadeType, shadedKind } from "./shade.js";
|
|
72
|
+
// The shade a bucket draws past the cap, given on as ever (#1039).
|
|
73
|
+
export { PlanEventShadeType } from "./shade.js";
|
|
74
|
+
import { PlanBlockType, PlanBlocksType, PlanBucketEventType, PlanChipType, PlanEventMarkKindType, PlanEventMarkType, PlanLaneType, PlanRollupType, PlanRowIdType, PlanRowType, PlanRowsCollectionType, PlanRunType, } from "./types.js";
|
|
61
75
|
import { planGutter, planRow } from "./assemble.js";
|
|
62
76
|
import { bucketsKind, cardsKind, eventsKind, spanKind } from "./factories.js";
|
|
63
77
|
import { planHideId } from "./library.js";
|
|
64
|
-
import { applySeries,
|
|
78
|
+
import { applySeries, createChildrenOf, createSeriesBuckets, createSeriesCards, createSeriesEvents, createSeriesGroup, createSeriesSpan, createSeriesViews, planSeriesFacts, } from "./series.js";
|
|
65
79
|
// ============================================================================
|
|
66
80
|
// The seam
|
|
67
81
|
// ============================================================================
|
|
@@ -75,18 +89,41 @@ export const PlanEventDraftsType = DictType(StringType, ScheduleDraftsType);
|
|
|
75
89
|
* the resources its source shows. A kind it does not name draws every resource.
|
|
76
90
|
*/
|
|
77
91
|
export const PlanEventShownType = DictType(StringType, SetType(StringType));
|
|
92
|
+
/**
|
|
93
|
+
* What a reader read of each event kind by its series index's cells (#1039),
|
|
94
|
+
* by the kind's slot: the entries, one beast2 of the kind's `cellsType`, that
|
|
95
|
+
* the kind draws its events from — a kind past the budget, which draws its
|
|
96
|
+
* summary's shading or the notice in their place, given none. A kind it does
|
|
97
|
+
* not name is read over the window, as ever.
|
|
98
|
+
*/
|
|
99
|
+
export const PlanEventReadsType = DictType(StringType, BlobType);
|
|
100
|
+
/**
|
|
101
|
+
* The resources' shading (#1039): by the key of the rows it stands in for —
|
|
102
|
+
* a resource kind's slot and a way of drawing, `<slot>.<draw>`, as a
|
|
103
|
+
* resource's rows are keyed — then by the resource key's text, its buckets.
|
|
104
|
+
* Each resource's row of a key it names draws heat over those buckets in
|
|
105
|
+
* place of its events: a booked-vs-free bar a bucket for bars and chips, how
|
|
106
|
+
* many for tiles and marks — the counts on one scale across every resource
|
|
107
|
+
* the key shades — and a row with a bucket of no value the no-data hatch.
|
|
108
|
+
*/
|
|
109
|
+
export const PlanEventShadingType = DictType(StringType, DictType(StringType, ArrayType(PlanEventShadeType)));
|
|
78
110
|
/**
|
|
79
111
|
* The resources' rows over a window, every event kind's drafts in place
|
|
80
112
|
* (#1192): `(from, to, drafts by kind, then by entry id, the ids the viewer
|
|
81
|
-
* hides, the resources the rail shows
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* time.
|
|
113
|
+
* hides, the resources the rail shows, what a reader read of each kind by its
|
|
114
|
+
* cells, the resources' shading)` → the canvas's blocks, `none` while a kind's
|
|
115
|
+
* read is in flight. The hidden ids are the library's Series tab's (#1195):
|
|
116
|
+
* `resources.<slot>`, `events.<slot>` and `measures.<key>` stay out, and the
|
|
117
|
+
* rest are not this seam's. A resource kind the shown resources name draws
|
|
118
|
+
* those alone (#1344). A paged resource kind's place (#1199) is an empty block
|
|
119
|
+
* that is not fixed, which the payload's `paged` fills a window at a time. A
|
|
120
|
+
* kind a reader read by its cells (#1039) places the events of the entries it
|
|
121
|
+
* was given, every draft given in place — those on no resource here, on its
|
|
122
|
+
* Unassigned row; those on the paged kind's resources through `paged.placed`
|
|
123
|
+
* — and never reads the window. Each resource's row the shading names draws
|
|
124
|
+
* its heat in place of its events.
|
|
88
125
|
*/
|
|
89
|
-
export const PlanEventBlocksType = FunctionType([DateTimeType, DateTimeType, PlanEventDraftsType, PickStateType, PlanEventShownType], OptionType(PlanBlocksType));
|
|
126
|
+
export const PlanEventBlocksType = FunctionType([DateTimeType, DateTimeType, PlanEventDraftsType, PickStateType, PlanEventShownType, PlanEventReadsType, PlanEventShadingType], OptionType(PlanBlocksType));
|
|
90
127
|
/** The ways a kind draws, in the order a resource's rows take them (PB12). */
|
|
91
128
|
const DRAW_ORDER = ["span", "buckets", "cards", "marks"];
|
|
92
129
|
/**
|
|
@@ -233,6 +270,59 @@ const placedLanes = East.function([PlacedListType], ArrayType(PlanLaneType), ($,
|
|
|
233
270
|
});
|
|
234
271
|
return lanes.toArray(($2, lane) => East.value({ key: lane, label: some(lane) }, PlanLaneType));
|
|
235
272
|
});
|
|
273
|
+
/**
|
|
274
|
+
* The resources' rows with their shading in place (#1039), `(blocks, shading,
|
|
275
|
+
* the keys of the rows that draw bars or chips)`: every resource's row of a
|
|
276
|
+
* way of drawing the shading names draws its heat in place of its events —
|
|
277
|
+
* one whose resource it holds no shading of yet draws none, at the height it
|
|
278
|
+
* will draw it at — the counts of one key on one scale, the largest it holds.
|
|
279
|
+
* Every other row stands.
|
|
280
|
+
*/
|
|
281
|
+
const shadedRows = East.function([PlanBlocksType, PlanEventShadingType, SetType(StringType)], PlanBlocksType, ($, blocks, shading, booked) => {
|
|
282
|
+
const kindOf = $.const(shadedKind);
|
|
283
|
+
const noShades = $.const([], ArrayType(PlanEventShadeType));
|
|
284
|
+
const tops = $.let(new Map(), DictType(StringType, FloatType));
|
|
285
|
+
$.for(shading, ($2, byKey, series) => {
|
|
286
|
+
const top = $2.let(0, FloatType);
|
|
287
|
+
$2.for(byKey, ($3, shades) => {
|
|
288
|
+
$3.for(shades, ($4, shade) => {
|
|
289
|
+
$4.match(shade.value, { some: ($5, v) => { $5.if(East.greater(v, top), ($6) => { $6.assign(top, v); }); } });
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
$2(tops.insert(series, top));
|
|
293
|
+
});
|
|
294
|
+
return blocks.map(($2, b) => East.value({
|
|
295
|
+
fixed: b.fixed,
|
|
296
|
+
parent: b.parent,
|
|
297
|
+
charts: b.charts,
|
|
298
|
+
rows: b.rows.map(($3, row) => row.id.match({
|
|
299
|
+
section: (_$4, _at) => row,
|
|
300
|
+
entry: (_$4, at) => shading.tryGet(at.series).match({
|
|
301
|
+
none: (_$5) => row,
|
|
302
|
+
some: ($5, byKey) => {
|
|
303
|
+
// A resource's row's path ends in its key.
|
|
304
|
+
const key = $5.let(at.path.get(at.path.size().subtract(1n)));
|
|
305
|
+
const heat = $5.let(kindOf(byKey.get(key, () => noShades), tops.get(at.series), booked.has(at.series)));
|
|
306
|
+
const fields = row;
|
|
307
|
+
return East.value(Object.fromEntries(Object.keys(PlanRowType.fields).map((f) => [f, f === "kind" ? heat : fields[f]])), PlanRowType);
|
|
308
|
+
},
|
|
309
|
+
}),
|
|
310
|
+
})),
|
|
311
|
+
}, PlanBlockType));
|
|
312
|
+
});
|
|
313
|
+
/**
|
|
314
|
+
* The keys of the resources' rows that draw bars or chips (#1039): shaded,
|
|
315
|
+
* they draw booked-vs-free bars.
|
|
316
|
+
*
|
|
317
|
+
* @param resources - The resource kinds, by slot
|
|
318
|
+
* @param events - The event kinds, by slot
|
|
319
|
+
* @returns Each `<slot>.span` and `<slot>.cards` the kinds draw
|
|
320
|
+
*/
|
|
321
|
+
function bookedKeys(resources, events) {
|
|
322
|
+
return new Set(resources.flatMap(([slot]) => eventDrawsOf(slot, events)
|
|
323
|
+
.filter((draw) => draw === "span" || draw === "cards")
|
|
324
|
+
.map((draw) => `${slot}.${draw}`)));
|
|
325
|
+
}
|
|
236
326
|
/**
|
|
237
327
|
* One resource kind's rows over the window: its resources as a views series
|
|
238
328
|
* — a member per way the kinds placed on it draw, then its measures — nested
|
|
@@ -393,7 +483,7 @@ function resourceBlocks($, slot, kind, all, placed, events, hidden, fixed = true
|
|
|
393
483
|
key: `${slot}.group`,
|
|
394
484
|
title: kind.name,
|
|
395
485
|
label: (_group, name) => name,
|
|
396
|
-
children:
|
|
486
|
+
children: createChildrenOf((group) => group, [views]),
|
|
397
487
|
...(heat ? { summaryAggregate: "mean" } : {}),
|
|
398
488
|
});
|
|
399
489
|
blocks = applySeries([strips], groups);
|
|
@@ -401,6 +491,24 @@ function resourceBlocks($, slot, kind, all, placed, events, hidden, fixed = true
|
|
|
401
491
|
else {
|
|
402
492
|
blocks = applySeries([views], roots);
|
|
403
493
|
}
|
|
494
|
+
// ── What each resource makes of chart rows (#1398) ──
|
|
495
|
+
// A paged kind's window is its source's entries, a resource each, and a paged kind nests and groups none: each
|
|
496
|
+
// makes its measures' chart rows that the viewer shows — a chart measure's one, or as many as its own `match`
|
|
497
|
+
// takes, which no definition fixes. A kind read whole is fixed blocks, which no entry makes.
|
|
498
|
+
const charts = $.let(East.value(fixed ? none : some(0n), OptionType(IntegerType)), OptionType(IntegerType));
|
|
499
|
+
if (!fixed) {
|
|
500
|
+
for (const facts of kind.measures.map((m) => planSeriesFacts(m, collection, where))) {
|
|
501
|
+
const each = facts.charts;
|
|
502
|
+
if (each === 0)
|
|
503
|
+
continue;
|
|
504
|
+
$.if(hidden.has(planHideId.measures(facts.key)).not(), ($2) => {
|
|
505
|
+
if (each === undefined)
|
|
506
|
+
$2.assign(charts, none);
|
|
507
|
+
else
|
|
508
|
+
$2.match(charts, { some: ($3, n) => { $3.assign(charts, some(n.add(BigInt(each)))); } });
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
}
|
|
404
512
|
// ── What the viewer hides (PB29): rows by their series' key ──
|
|
405
513
|
// A measure's rows, and a way of drawing's after the first once all its
|
|
406
514
|
// kinds are hidden: each a leaf, since a resource's children nest under its
|
|
@@ -413,7 +521,7 @@ function resourceBlocks($, slot, kind, all, placed, events, hidden, fixed = true
|
|
|
413
521
|
}),
|
|
414
522
|
];
|
|
415
523
|
if (hiders.length === 0) {
|
|
416
|
-
return $.let(blocks.map(($2, b) => ({ fixed, parent: b.parent, rows: b.rows })), PlanBlocksType);
|
|
524
|
+
return $.let(blocks.map(($2, b) => ({ fixed, parent: b.parent, charts, rows: b.rows })), PlanBlocksType);
|
|
417
525
|
}
|
|
418
526
|
const dropped = $.let(new Set(), SetType(StringType));
|
|
419
527
|
for (const [series, ids] of hiders) {
|
|
@@ -423,6 +531,7 @@ function resourceBlocks($, slot, kind, all, placed, events, hidden, fixed = true
|
|
|
423
531
|
return $.let(blocks.map(($2, b) => ({
|
|
424
532
|
fixed,
|
|
425
533
|
parent: b.parent,
|
|
534
|
+
charts,
|
|
426
535
|
rows: b.rows.filter(($3, row) => dropped.has(row.id.match({
|
|
427
536
|
entry: (_$4, at) => at.series,
|
|
428
537
|
section: (_$4, at) => at.series,
|
|
@@ -457,13 +566,15 @@ function unassignedBlock($, events, lost) {
|
|
|
457
566
|
})));
|
|
458
567
|
});
|
|
459
568
|
});
|
|
460
|
-
return $.let({ fixed: true, parent: none, rows }, PlanBlockType);
|
|
569
|
+
return $.let({ fixed: true, parent: none, charts: none, rows }, PlanBlockType);
|
|
461
570
|
}
|
|
462
571
|
/**
|
|
463
|
-
* The `blocks` seam (see the module docs): `(from, to, drafts, hidden, shown
|
|
464
|
-
* → the resources' rows over `[from, to)`, every kind's
|
|
465
|
-
* the viewer hides left out,
|
|
466
|
-
* resources it shows
|
|
572
|
+
* The `blocks` seam (see the module docs): `(from, to, drafts, hidden, shown,
|
|
573
|
+
* reads, shading)` → the resources' rows over `[from, to)`, every kind's
|
|
574
|
+
* drafts in place, what the viewer hides left out, of a resource kind the
|
|
575
|
+
* rail narrows the resources it shows, each kind a reader read by its cells
|
|
576
|
+
* drawn from what it read, and each resource's row the shading names drawing
|
|
577
|
+
* its heat.
|
|
467
578
|
*
|
|
468
579
|
* @remarks
|
|
469
580
|
* Made inside the function that assembles the payload, so `built` is the
|
|
@@ -477,17 +588,23 @@ function unassignedBlock($, events, lost) {
|
|
|
477
588
|
* @internal
|
|
478
589
|
*/
|
|
479
590
|
export function createEventBlocks(resources, events, built) {
|
|
480
|
-
|
|
591
|
+
// The keys of the rows that draw bars or chips (#1039): a shaded one draws booked-vs-free bars.
|
|
592
|
+
const booked = bookedKeys(resources, events);
|
|
593
|
+
return East.function([
|
|
594
|
+
DateTimeType, DateTimeType, PlanEventDraftsType, PickStateType, PlanEventShownType, PlanEventReadsType, PlanEventShadingType,
|
|
595
|
+
], OptionType(PlanBlocksType), ($, from, to, drafts, hiding, shown, given, shading) => {
|
|
481
596
|
const result = $.let(none, OptionType(PlanBlocksType));
|
|
482
597
|
const noDrafts = $.const(new Map(), ScheduleDraftsType);
|
|
483
598
|
const hidden = $.let(hiding.toSet(), SetType(StringType));
|
|
484
|
-
|
|
485
|
-
|
|
599
|
+
const shade = $.const(shadedRows);
|
|
600
|
+
const drawsBars = $.const(booked, SetType(StringType));
|
|
601
|
+
// Each kind's events over the window, its drafts in place (PB17) — a kind a reader read by its cells from
|
|
602
|
+
// what it read (#1039). A hidden kind is not read: it places nothing, so nothing waits on it.
|
|
486
603
|
const reads = events.map(([slot], i) => {
|
|
487
604
|
const kind = $.let(built.get(BigInt(i)));
|
|
488
605
|
const kindDrafts = $.let(drafts.get(slot, () => noDrafts));
|
|
489
606
|
const read = $.let(some([]), OptionType(ArrayType(PlanEventItemType)));
|
|
490
|
-
$.if(hidden.has(planHideId.events(slot)).not(), ($2) => { $2.assign(read, kind.planItems(from, to, kindDrafts)); });
|
|
607
|
+
$.if(hidden.has(planHideId.events(slot)).not(), ($2) => { $2.assign(read, kind.planItems(from, to, kindDrafts, given.tryGet(slot))); });
|
|
491
608
|
return read;
|
|
492
609
|
});
|
|
493
610
|
const ready = reads.reduce((all, read) => all.and(() => read.hasTag("some")), East.value(true, BooleanType));
|
|
@@ -543,8 +660,9 @@ export function createEventBlocks(resources, events, built) {
|
|
|
543
660
|
for (const [slot, kind] of resources) {
|
|
544
661
|
if (paged.has(slot)) {
|
|
545
662
|
// A paged kind's place (#1199): the one block that is not fixed, which the payload's
|
|
546
|
-
// `paged` fills a window at a time — there whether or not the viewer hides the kind.
|
|
547
|
-
|
|
663
|
+
// `paged` fills a window at a time — there whether or not the viewer hides the kind. What its
|
|
664
|
+
// resources make of chart rows is the window's block's to say (#1398).
|
|
665
|
+
$2(blocks.pushLast(East.value({ fixed: false, parent: none, charts: none, rows: [] }, PlanBlockType)));
|
|
548
666
|
continue;
|
|
549
667
|
}
|
|
550
668
|
// A hidden resource kind draws no rows; its events stay its own, off the Unassigned row.
|
|
@@ -561,7 +679,7 @@ export function createEventBlocks(resources, events, built) {
|
|
|
561
679
|
return keyed.filter((_$5, _row, key) => keys.has(key));
|
|
562
680
|
}, () => keyed));
|
|
563
681
|
}
|
|
564
|
-
$3(blocks.append(resourceBlocks($3, slot, kind, drawn, placed.get(slot), events, hidden)));
|
|
682
|
+
$3(blocks.append(shade(resourceBlocks($3, slot, kind, drawn, placed.get(slot), events, hidden), shading, drawsBars)));
|
|
565
683
|
});
|
|
566
684
|
}
|
|
567
685
|
$2(blocks.pushLast(unassignedBlock($2, events, lost)));
|
|
@@ -580,26 +698,32 @@ export function createEventBlocks(resources, events, built) {
|
|
|
580
698
|
* source whose every window is the event kinds' blocks with this kind's place
|
|
581
699
|
* filled by `rows` over that window of its resources — so its rows come as
|
|
582
700
|
* the canvas scrolls, its key search seeks a resource by its key, and its
|
|
583
|
-
* resources are never read whole.
|
|
701
|
+
* resources are never read whole. Narrowed by its source of the slice
|
|
702
|
+
* (#1344), its windows are the narrowing's rows, in the source's index's
|
|
703
|
+
* order, and it has no key search.
|
|
584
704
|
*
|
|
585
705
|
* @property kind - The paged resource kind's slot
|
|
586
|
-
* @property id - The identity of the kind's resources' window
|
|
587
|
-
* @property placed - `(from, to, drafts by kind, the ids the viewer hides)` → the events placed on the kind's resources over `[from, to)`, every kind's drafts in place, by way of drawing and by the resource key's text; `none` while a kind's read is in flight
|
|
588
|
-
* @property rows - `(offset, limit, placed, the ids the viewer hides)` → the kind's rows for its resources `[offset, offset + limit)` — a whole window of them — with the events given placed on them: one block, not fixed (an empty one while the viewer hides the kind); `none` while the window is in flight
|
|
589
|
-
* @property
|
|
590
|
-
* @property
|
|
706
|
+
* @property id - The identity of the kind's resources' window: the source's, the same under every narrowing, when its source of the slice narrows it
|
|
707
|
+
* @property placed - `(from, to, drafts by kind, the ids the viewer hides, what a reader read of each kind by its cells)` → the events placed on the kind's resources over `[from, to)`, every kind's drafts in place, by way of drawing and by the resource key's text; `none` while a kind's read is in flight. A kind a reader read by its cells (#1039) places the events of the entries it was given, and never reads the window
|
|
708
|
+
* @property rows - `(offset, limit, placed, shading, the ids the viewer hides)` → the kind's rows for its resources `[offset, offset + limit)` — a whole window of them, in the resources' key order, or the narrowing's in its index's order (#1344) — with the events given placed on them, and each resource's row whose key the shading names drawing its heat in their place (#1039): one block, not fixed (an empty one while the viewer hides the kind); `none` while the window is in flight
|
|
709
|
+
* @property keys - `(offset, limit)` → the texts of the keys of the kind's resources `[offset, offset + limit)`, in the order `rows` draws them (#1039): the resources a reader reads the cells of; `none` while the window is in flight
|
|
710
|
+
* @property total - How many resources the kind has — the narrowing holds, when its source narrows it — once known
|
|
711
|
+
* @property seek - Where a key search lands among the kind's resources: the window's own key search; `none` when its source narrows it, whose searches run in its index's order
|
|
591
712
|
* @property revision - The snapshot of the resources the windows are read at
|
|
592
713
|
* @property refresh - Moves the resources' window to a snapshot, or to the one it holds now
|
|
714
|
+
* @property query - The narrowing the windows, the total and the keys belong to, as text (#1344): it moves when a choice does, and the windows are read again under it; `none` when no source narrows the kind
|
|
593
715
|
*/
|
|
594
716
|
export const PlanEventPagedType = StructType({
|
|
595
717
|
kind: StringType,
|
|
596
718
|
id: StringType,
|
|
597
|
-
placed: FunctionType([DateTimeType, DateTimeType, PlanEventDraftsType, PickStateType], OptionType(PlanEventPlacedType)),
|
|
598
|
-
rows: FunctionType([IntegerType, IntegerType, PlanEventPlacedType, PickStateType], OptionType(PlanBlocksType)),
|
|
719
|
+
placed: FunctionType([DateTimeType, DateTimeType, PlanEventDraftsType, PickStateType, PlanEventReadsType], OptionType(PlanEventPlacedType)),
|
|
720
|
+
rows: FunctionType([IntegerType, IntegerType, PlanEventPlacedType, PlanEventShadingType, PickStateType], OptionType(PlanBlocksType)),
|
|
721
|
+
keys: FunctionType([IntegerType, IntegerType], OptionType(ArrayType(StringType))),
|
|
599
722
|
total: FunctionType([], OptionType(IntegerType)),
|
|
600
723
|
seek: OptionType(FunctionType([SeekQueryType], OptionType(SeekRangeType))),
|
|
601
724
|
revision: FunctionType([], OptionType(StringType)),
|
|
602
725
|
refresh: FunctionType([OptionType(StringType)], NullType),
|
|
726
|
+
query: OptionType(FunctionType([], StringType)),
|
|
603
727
|
});
|
|
604
728
|
/**
|
|
605
729
|
* The paged resource kind's rows (see {@link PlanEventPagedType}), when a
|
|
@@ -607,41 +731,40 @@ export const PlanEventPagedType = StructType({
|
|
|
607
731
|
*
|
|
608
732
|
* @remarks
|
|
609
733
|
* Made inside the function that assembles the payload, as the `blocks` seam
|
|
610
|
-
* is, so `built` is the payload's own array of event kinds
|
|
734
|
+
* is, so `built` is the payload's own array of event kinds — and `narrowed`
|
|
735
|
+
* is the kind's source of the slice as the payload's block bound it, so the
|
|
736
|
+
* kind's rows hold that source alone (#1356).
|
|
611
737
|
*
|
|
612
738
|
* @param resources - The resource kinds, by slot, in order — at most one of them paged (the Plan refuses more)
|
|
613
739
|
* @param events - The event kinds, by slot, in order
|
|
614
740
|
* @param built - The event kinds as the payload holds them, in the same order
|
|
741
|
+
* @param narrowed - The paged kind's source of the slice's narrowed data, when the slice names one after its slot (#1344): its windows are then the narrowing's rows
|
|
615
742
|
* @returns The paged rows, or `undefined` when no resource kind is paged
|
|
616
|
-
* @throws {Error} When the kind's paged read is not a paged source of its resources
|
|
743
|
+
* @throws {Error} When the kind's paged read is not a paged source of its resources, or its source's rows are not the kind's
|
|
617
744
|
* @internal
|
|
618
745
|
*/
|
|
619
|
-
export function createEventPaged(resources, events, built) {
|
|
746
|
+
export function createEventPaged(resources, events, built, narrowed) {
|
|
620
747
|
const at = resources.find(([, kind]) => kind.window !== undefined);
|
|
621
748
|
if (at === undefined)
|
|
622
749
|
return undefined;
|
|
623
750
|
const [slot, kind] = at;
|
|
624
751
|
const where = `Plan: resources.${slot}`;
|
|
625
|
-
|
|
626
|
-
const
|
|
627
|
-
if (resolved.kind === "inline") {
|
|
628
|
-
throw new Error(`${where}: a paged kind's resources are a paged read — Data.bindPaged(record) over the resources' record`);
|
|
629
|
-
}
|
|
630
|
-
const window = buildPagedWindow(resolved);
|
|
631
|
-
const handle = resolved.source;
|
|
752
|
+
const pages = narrowed === undefined ? scheduleOwnWindows(kind, where) : scheduleNarrowedWindows(kind, slot, narrowed, "Plan");
|
|
753
|
+
const handle = pages.handle;
|
|
632
754
|
const draws = eventDrawsOf(slot, events);
|
|
633
755
|
// The event kinds placed on it, with their place in `events` — the payload's array of them.
|
|
634
756
|
const takers = events.flatMap(([s, k], i) => (k.takes.includes(slot) ? [[s, k, i]] : []));
|
|
635
|
-
const placed = East.function([DateTimeType, DateTimeType, PlanEventDraftsType, PickStateType], OptionType(PlanEventPlacedType), ($, from, to, drafts, hiding) => {
|
|
757
|
+
const placed = East.function([DateTimeType, DateTimeType, PlanEventDraftsType, PickStateType, PlanEventReadsType], OptionType(PlanEventPlacedType), ($, from, to, drafts, hiding, given) => {
|
|
636
758
|
const result = $.let(none, OptionType(PlanEventPlacedType));
|
|
637
759
|
const noDrafts = $.const(new Map(), ScheduleDraftsType);
|
|
638
760
|
const hidden = $.let(hiding.toSet(), SetType(StringType));
|
|
639
|
-
// Each kind's events over the window, its drafts in place
|
|
761
|
+
// Each kind's events over the window, its drafts in place — a kind a reader read by its cells from what it
|
|
762
|
+
// read (#1039); a hidden kind is not read.
|
|
640
763
|
const reads = takers.map(([s, , i]) => {
|
|
641
764
|
const k = $.let(built.get(BigInt(i)));
|
|
642
765
|
const kindDrafts = $.let(drafts.get(s, () => noDrafts));
|
|
643
766
|
const read = $.let(some([]), OptionType(ArrayType(PlanEventItemType)));
|
|
644
|
-
$.if(hidden.has(planHideId.events(s)).not(), ($2) => { $2.assign(read, k.planItems(from, to, kindDrafts)); });
|
|
767
|
+
$.if(hidden.has(planHideId.events(s)).not(), ($2) => { $2.assign(read, k.planItems(from, to, kindDrafts, given.tryGet(s))); });
|
|
645
768
|
return read;
|
|
646
769
|
});
|
|
647
770
|
const ready = reads.reduce((all, read) => all.and(() => read.hasTag("some")), East.value(true, BooleanType));
|
|
@@ -676,40 +799,62 @@ export function createEventPaged(resources, events, built) {
|
|
|
676
799
|
});
|
|
677
800
|
return result;
|
|
678
801
|
});
|
|
679
|
-
|
|
802
|
+
// The keys of its rows that draw bars or chips (#1039): a shaded one draws booked-vs-free bars.
|
|
803
|
+
const booked = bookedKeys([[slot, kind]], events);
|
|
804
|
+
const rows = East.function([IntegerType, IntegerType, PlanEventPlacedType, PlanEventShadingType, PickStateType], OptionType(PlanBlocksType), ($, offset, limit, given, shading, hiding) => {
|
|
680
805
|
const result = $.let(none, OptionType(PlanBlocksType));
|
|
681
806
|
const hidden = $.let(hiding.toSet(), SetType(StringType));
|
|
682
807
|
$.if(hidden.has(planHideId.resources(slot)), ($2) => {
|
|
683
|
-
// A hidden kind draws no rows: its place stands empty in every window.
|
|
684
|
-
$2.assign(result, some(East.value([{ fixed: false, parent: none, rows: [] }], PlanBlocksType)));
|
|
808
|
+
// A hidden kind draws no rows: its place stands empty in every window, and its resources make no chart row (#1398).
|
|
809
|
+
$2.assign(result, some(East.value([{ fixed: false, parent: none, charts: some(0n), rows: [] }], PlanBlocksType)));
|
|
685
810
|
}).else(($2) => {
|
|
686
|
-
const read = $2.const(
|
|
811
|
+
const read = $2.const(pages.read);
|
|
812
|
+
const shade = $2.const(shadedRows);
|
|
813
|
+
const drawsBars = $2.const(booked, SetType(StringType));
|
|
687
814
|
const got = $2.let(read(offset, limit));
|
|
688
815
|
$2.match(got, {
|
|
689
|
-
some: ($3,
|
|
816
|
+
some: ($3, page) => {
|
|
817
|
+
const all = $3.let(pages.rows(page));
|
|
690
818
|
const onIt = new Map(draws.map((draw) => [draw, $3.let(given.get(draw, () => East.value(new Map(), PlacedByKeyType)))]));
|
|
691
|
-
$3.
|
|
819
|
+
const blocks = $3.let(resourceBlocks($3, slot, kind, all, onIt, events, hidden, false));
|
|
820
|
+
// A narrowed window's rows in its index's order (#1344), each resource's rows together.
|
|
821
|
+
const drawn = pages.indexed ? $3.let(planIndexOrder(blocks, pages.keys($3, page))) : blocks;
|
|
822
|
+
$3.assign(result, some(shade(drawn, shading, drawsBars)));
|
|
692
823
|
},
|
|
693
824
|
});
|
|
694
825
|
});
|
|
695
826
|
return result;
|
|
696
827
|
});
|
|
828
|
+
// The keys of a window's resources as the rows name them, in the order they draw (#1039): what a reader reads the cells of.
|
|
829
|
+
const keys = East.function([IntegerType, IntegerType], OptionType(ArrayType(StringType)), ($, offset, limit) => {
|
|
830
|
+
const read = $.const(pages.read);
|
|
831
|
+
const result = $.let(none, OptionType(ArrayType(StringType)));
|
|
832
|
+
$.match(read(offset, limit), {
|
|
833
|
+
some: ($2, page) => { $2.assign(result, some(pages.keys($2, page))); },
|
|
834
|
+
});
|
|
835
|
+
return result;
|
|
836
|
+
});
|
|
697
837
|
// A source that names no snapshot is read at none, and moves nowhere.
|
|
698
|
-
const revision =
|
|
838
|
+
const revision = pages.pinned
|
|
699
839
|
? handle.revision
|
|
700
840
|
: East.function([], OptionType(StringType), (_$) => East.value(none, OptionType(StringType)));
|
|
701
|
-
const refresh =
|
|
841
|
+
const refresh = pages.pinned
|
|
702
842
|
? handle.refresh
|
|
703
843
|
: East.function([OptionType(StringType)], NullType, (_$, _target) => East.value(null, NullType));
|
|
844
|
+
const Seek = PlanEventPagedType.fields.seek;
|
|
845
|
+
const Query = PlanEventPagedType.fields.query;
|
|
704
846
|
return East.value({
|
|
705
847
|
kind: slot,
|
|
706
848
|
id: handle.id,
|
|
707
849
|
placed,
|
|
708
850
|
rows,
|
|
851
|
+
keys,
|
|
709
852
|
total: handle.total,
|
|
710
|
-
|
|
853
|
+
// A narrowing's searches run in its index's order, which a resource's key does not follow: no key search.
|
|
854
|
+
seek: pages.indexed ? East.value(none, Seek) : handle.seek,
|
|
711
855
|
revision,
|
|
712
856
|
refresh,
|
|
857
|
+
query: pages.query ? East.value(some(handle.query), Query) : East.value(none, Query),
|
|
713
858
|
}, PlanEventPagedType);
|
|
714
859
|
}
|
|
715
860
|
//# sourceMappingURL=event-rows.js.map
|