@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
|
@@ -4,33 +4,38 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* The lists the Roster reads over the app's own rows (#1368, `Builder
|
|
7
|
-
* Interfaces Spec.md` §5.2): its shifts, groups, positions, activities
|
|
8
|
-
* proposals, each from a keyed record of the app's —
|
|
9
|
-
* through accessors, none of which writes the record.
|
|
7
|
+
* Interfaces Spec.md` §5.2): its shifts, groups, positions, activities,
|
|
8
|
+
* proposals and week patterns (#1406), each from a keyed record of the app's —
|
|
9
|
+
* usually its `read()` — through accessors, none of which writes the record.
|
|
10
|
+
* Each accessor is
|
|
10
11
|
* reified once and called per row (`shared/reify.ts`' rule), held to the type
|
|
11
12
|
* it returns; one returning another type is refused, naming the accessor and
|
|
12
13
|
* what it returns. The rows come in their `order`, lowest first, then in key
|
|
13
14
|
* order; with no `order`, in key order. Each row's key is its record's key.
|
|
14
15
|
*
|
|
15
|
-
* `Roster.shifts`, `groups`, `positions` and `
|
|
16
|
-
* Roster's props take, which say what they are;
|
|
17
|
-
* activities themselves, which the app's own tasks
|
|
16
|
+
* `Roster.shifts`, `groups`, `positions`, `proposals` and `patterns` are
|
|
17
|
+
* declarations the Roster's props take, which say what they are;
|
|
18
|
+
* `Roster.activities` is the activities themselves, which the app's own tasks
|
|
19
|
+
* may read too.
|
|
18
20
|
*
|
|
19
21
|
* @packageDocumentation
|
|
20
22
|
*/
|
|
21
23
|
import { ArrayType, BooleanType, DateTimeType, FloatType, IntegerType, OptionType, StringType, type DictType, type EastType, type ExprType, type SubtypeExprOrValue } from "@elaraai/east";
|
|
24
|
+
import { ColorTokenType } from "@elaraai/east-ui";
|
|
22
25
|
import { ScheduleClockType } from "../schedule/types.js";
|
|
23
|
-
import { RosterGroupType, RosterPositionType, RosterProposalType, RosterShiftType, RosterSkillType } from "./types.js";
|
|
26
|
+
import { RosterGroupType, RosterPatternType, RosterPositionType, RosterProposalType, RosterShiftType, RosterSkillType } from "./types.js";
|
|
24
27
|
/** The key a Roster list's declaration carries what it is under. */
|
|
25
28
|
export declare const ROSTER_LIST: unique symbol;
|
|
29
|
+
/** What a Roster list is: which prop takes it. */
|
|
30
|
+
export type RosterListKind = "shifts" | "groups" | "positions" | "proposals" | "patterns";
|
|
26
31
|
/**
|
|
27
|
-
* A list, declared: what the Roster's `shifts`, `groups`, `positions
|
|
28
|
-
* `proposals` takes.
|
|
32
|
+
* A list, declared: what the Roster's `shifts`, `groups`, `positions`,
|
|
33
|
+
* `proposals` or `patterns` takes.
|
|
29
34
|
*
|
|
30
35
|
* @typeParam K - What it is
|
|
31
36
|
* @typeParam T - Its rows' type
|
|
32
37
|
*/
|
|
33
|
-
export interface RosterList<K extends
|
|
38
|
+
export interface RosterList<K extends RosterListKind, T extends EastType> {
|
|
34
39
|
/** What it is. */
|
|
35
40
|
readonly [ROSTER_LIST]: K;
|
|
36
41
|
/** Its rows, resolved, in their order. */
|
|
@@ -44,6 +49,13 @@ export type RosterGroups = RosterList<"groups", RosterGroupType>;
|
|
|
44
49
|
export type RosterPositions = RosterList<"positions", RosterPositionType>;
|
|
45
50
|
/** The proposals, declared: `Roster.proposals(rows, …)`. */
|
|
46
51
|
export type RosterProposals = RosterList<"proposals", RosterProposalType>;
|
|
52
|
+
/** The week patterns, declared: `Roster.patterns(rows, { name, icon?, … })` (#1406) — the rows, and their tab's name and icon. */
|
|
53
|
+
export interface RosterPatterns extends RosterList<"patterns", RosterPatternType> {
|
|
54
|
+
/** The tab's title. */
|
|
55
|
+
readonly name: string;
|
|
56
|
+
/** The cards' Font Awesome solid icon. */
|
|
57
|
+
readonly icon: string;
|
|
58
|
+
}
|
|
47
59
|
/** One of a list's accessors, over a row of the app's and its key. */
|
|
48
60
|
type Accessor<R extends EastType, T extends EastType> = (row: ExprType<R>, key: ExprType<StringType>) => SubtypeExprOrValue<T>;
|
|
49
61
|
/**
|
|
@@ -61,6 +73,28 @@ export interface RosterShiftsConfig<R extends EastType> {
|
|
|
61
73
|
hours: Accessor<R, FloatType>;
|
|
62
74
|
/** Where it shows among the shifts, lowest first; shifts of one order show in key order. */
|
|
63
75
|
order?: Accessor<R, IntegerType>;
|
|
76
|
+
/**
|
|
77
|
+
* Its colour (#1406): an `Option` of a `ColorTokenType` — `Style.ColorToken("teal", "500")` in the row — the People
|
|
78
|
+
* layout's tiles' and marks' fill, resolved through the theme; `none`, neutral. Omitted, every shift is neutral.
|
|
79
|
+
*/
|
|
80
|
+
color?: Accessor<R, OptionType<ColorTokenType>>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Accessors adapting the app's week pattern rows to the Roster's patterns
|
|
84
|
+
* (#1406), with their tab's name and icon, the declaration's own words.
|
|
85
|
+
* @typeParam R - The app's week pattern row type
|
|
86
|
+
*/
|
|
87
|
+
export interface RosterPatternsConfig<R extends EastType> {
|
|
88
|
+
/** The tab's title (`Patterns`, `Weeks`): required, as `Schedule.events`' `name` is. */
|
|
89
|
+
name: string;
|
|
90
|
+
/** The cards' Font Awesome solid icon name; `calendar-week` by default. */
|
|
91
|
+
icon?: string;
|
|
92
|
+
/** The card's name, and the drop's words. */
|
|
93
|
+
label: Accessor<R, StringType>;
|
|
94
|
+
/** Seven entries from the week's first day (`week.start`): a shift's key, or `none` for a day off. */
|
|
95
|
+
days: Accessor<R, ArrayType<OptionType<StringType>>>;
|
|
96
|
+
/** Where it shows among the patterns, lowest first; patterns of one order show in key order. */
|
|
97
|
+
order?: Accessor<R, IntegerType>;
|
|
64
98
|
}
|
|
65
99
|
/**
|
|
66
100
|
* Accessors adapting the app's group rows to the Roster's groups.
|
|
@@ -129,11 +163,24 @@ export interface RosterProposalsConfig<R extends EastType> {
|
|
|
129
163
|
*
|
|
130
164
|
* @typeParam R - The app's shift row type
|
|
131
165
|
* @param rows - The shifts by String key, usually `Data.bind(record).read()`
|
|
132
|
-
* @param config - The label, code, start and hours accessors, and an optional order
|
|
166
|
+
* @param config - The label, code, start and hours accessors, and an optional order and colour
|
|
133
167
|
* @returns The shifts, declared, for the Roster's `shifts`
|
|
134
168
|
* @throws {Error} When the rows are not a Dict keyed by String, or an accessor returns another type than it takes, naming what it returns
|
|
135
169
|
*/
|
|
136
170
|
export declare function rosterShifts<R extends EastType>(rows: ExprType<DictType<StringType, R>>, config: RosterShiftsConfig<R>): RosterShifts;
|
|
171
|
+
/**
|
|
172
|
+
* Reads the app's week pattern rows as the Roster's patterns (#1406, see the
|
|
173
|
+
* module docs): the cards of the tab `name` titles, each seven days from the
|
|
174
|
+
* week's first day, which a drop on a person's week applies.
|
|
175
|
+
*
|
|
176
|
+
* @typeParam R - The app's week pattern row type
|
|
177
|
+
* @param rows - The patterns by String key, usually `Data.bind(record).read()`
|
|
178
|
+
* @param config - The tab's `name` and optional `icon`, the label and days accessors, and an optional order
|
|
179
|
+
* @returns The patterns, declared, for the Roster's `patterns`
|
|
180
|
+
* @remarks A pattern with other than seven days, or naming a shift the Roster has not configured, is listed greyed with the reason and cannot be dragged or applied.
|
|
181
|
+
* @throws {Error} When `name` is missing, the rows are not a Dict keyed by String, or an accessor returns another type than it takes, naming what it returns
|
|
182
|
+
*/
|
|
183
|
+
export declare function rosterPatterns<R extends EastType>(rows: ExprType<DictType<StringType, R>>, config: RosterPatternsConfig<R>): RosterPatterns;
|
|
137
184
|
/**
|
|
138
185
|
* Reads the app's group rows as the Roster's groups (see the module docs).
|
|
139
186
|
*
|
|
@@ -190,6 +237,6 @@ export declare function rosterProposals<R extends EastType>(rows: ExprType<DictT
|
|
|
190
237
|
* @returns Whether it is that list, declared
|
|
191
238
|
* @internal
|
|
192
239
|
*/
|
|
193
|
-
export declare function isRosterList<K extends
|
|
240
|
+
export declare function isRosterList<K extends RosterListKind>(value: unknown, kind: K): value is RosterList<K, EastType>;
|
|
194
241
|
export {};
|
|
195
242
|
//# sourceMappingURL=lists.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../../src/roster/lists.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../../src/roster/lists.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACH,SAAS,EAAE,WAAW,EAAE,YAAY,EAAQ,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAC1F,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAqB,KAAK,kBAAkB,EAC1F,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE1I,oEAAoE;AACpE,eAAO,MAAM,WAAW,EAAE,OAAO,MAA8B,CAAC;AAEhE,kDAAkD;AAClD,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;AAE1F;;;;;;GAMG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,cAAc,EAAE,CAAC,SAAS,QAAQ;IACpE,kBAAkB;IAClB,QAAQ,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC1B,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;CACzC;AAED,sDAAsD;AACtD,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;AACjE,sDAAsD;AACtD,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,QAAQ,EAAE,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,CAAC,GAAG,YAAY,CAWrI;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,eAAe,CAe9I;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAmBrK;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,eAAe,CAqB9I;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,IAAI,UAAU,CAAC,CAAC,EAAE,QAAQ,CAAC,CAEhH"}
|
package/dist/src/roster/lists.js
CHANGED
|
@@ -4,74 +4,30 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* The lists the Roster reads over the app's own rows (#1368, `Builder
|
|
7
|
-
* Interfaces Spec.md` §5.2): its shifts, groups, positions, activities
|
|
8
|
-
* proposals, each from a keyed record of the app's —
|
|
9
|
-
* through accessors, none of which writes the record.
|
|
7
|
+
* Interfaces Spec.md` §5.2): its shifts, groups, positions, activities,
|
|
8
|
+
* proposals and week patterns (#1406), each from a keyed record of the app's —
|
|
9
|
+
* usually its `read()` — through accessors, none of which writes the record.
|
|
10
|
+
* Each accessor is
|
|
10
11
|
* reified once and called per row (`shared/reify.ts`' rule), held to the type
|
|
11
12
|
* it returns; one returning another type is refused, naming the accessor and
|
|
12
13
|
* what it returns. The rows come in their `order`, lowest first, then in key
|
|
13
14
|
* order; with no `order`, in key order. Each row's key is its record's key.
|
|
14
15
|
*
|
|
15
|
-
* `Roster.shifts`, `groups`, `positions` and `
|
|
16
|
-
* Roster's props take, which say what they are;
|
|
17
|
-
* activities themselves, which the app's own tasks
|
|
16
|
+
* `Roster.shifts`, `groups`, `positions`, `proposals` and `patterns` are
|
|
17
|
+
* declarations the Roster's props take, which say what they are;
|
|
18
|
+
* `Roster.activities` is the activities themselves, which the app's own tasks
|
|
19
|
+
* may read too.
|
|
18
20
|
*
|
|
19
21
|
* @packageDocumentation
|
|
20
22
|
*/
|
|
21
|
-
import { ArrayType, BooleanType, DateTimeType, East,
|
|
23
|
+
import { ArrayType, BooleanType, DateTimeType, East, FloatType, IntegerType, OptionType, StringType, none, } from "@elaraai/east";
|
|
24
|
+
import { ColorTokenType } from "@elaraai/east-ui";
|
|
22
25
|
import { scheduleAccessor } from "../schedule/accessor.js";
|
|
23
26
|
import { ScheduleClockType } from "../schedule/types.js";
|
|
24
|
-
import {
|
|
25
|
-
import { RosterGroupType, RosterPositionType, RosterProposalType, RosterShiftType, RosterSkillType } from "./types.js";
|
|
27
|
+
import { keyedRows, orderedRows as ordered } from "../utils/keyed-rows.js";
|
|
28
|
+
import { RosterGroupType, RosterPatternType, RosterPositionType, RosterProposalType, RosterShiftType, RosterSkillType } from "./types.js";
|
|
26
29
|
/** The key a Roster list's declaration carries what it is under. */
|
|
27
30
|
export const ROSTER_LIST = Symbol("Roster.list");
|
|
28
|
-
/**
|
|
29
|
-
* The app's rows a list reads, checked: a `Dict` keyed by String.
|
|
30
|
-
*
|
|
31
|
-
* @param where - The list, as its refusals name it (`Roster.shifts`)
|
|
32
|
-
* @param what - What its rows are (`shifts`)
|
|
33
|
-
* @param rows - The rows, as the app gave them
|
|
34
|
-
* @returns The rows and their row type
|
|
35
|
-
* @throws {Error} When they are not a Dict keyed by String
|
|
36
|
-
*/
|
|
37
|
-
function keyedRows(where, what, rows) {
|
|
38
|
-
const type = rows instanceof Expr ? Expr.type(rows) : undefined;
|
|
39
|
-
if (type === undefined || type.type !== "Dict" || type.key.type !== "String") {
|
|
40
|
-
throw new Error(`${where}: ${what} are a Dict keyed by String — a record's read() — and these are ${type === undefined ? "no East expression" : typeText(type)}`);
|
|
41
|
-
}
|
|
42
|
-
return { rows: rows, rowType: type.value };
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* A list's rows, each made by one reified East function, in their order: by
|
|
46
|
-
* `order`, lowest first, then by key — or, with no `order`, by key.
|
|
47
|
-
*
|
|
48
|
-
* @param rows - The app's rows, by key
|
|
49
|
-
* @param rowType - Their row type
|
|
50
|
-
* @param itemType - The list's row type
|
|
51
|
-
* @param item - Makes one of the list's rows from one of the app's and its key
|
|
52
|
-
* @param order - Where one shows, lowest first; `undefined` for none
|
|
53
|
-
* @returns The list
|
|
54
|
-
*/
|
|
55
|
-
function ordered(rows, rowType, itemType, item, order) {
|
|
56
|
-
if (order === undefined) {
|
|
57
|
-
return rows.toArray(($, row, key) => {
|
|
58
|
-
const make = $.const(item);
|
|
59
|
-
return make(row, key);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
// Each row beside its rank, sorted by it: its order, then its key, so rows of one order keep the record's.
|
|
63
|
-
const Ranked = StructType({ rank: StructType({ order: IntegerType, key: StringType }), item: itemType });
|
|
64
|
-
const rank = East.function([rowType, StringType], Ranked, ($, row, key) => {
|
|
65
|
-
const make = $.const(item);
|
|
66
|
-
const orderOf = $.const(order);
|
|
67
|
-
return { rank: { order: orderOf(row, key), key }, item: make(row, key) };
|
|
68
|
-
});
|
|
69
|
-
const ranked = rows.toArray(($, row, key) => {
|
|
70
|
-
const ranking = $.const(rank);
|
|
71
|
-
return ranking(row, key);
|
|
72
|
-
});
|
|
73
|
-
return ranked.sort((_$, entry) => entry.rank).map((_$, entry) => entry.item);
|
|
74
|
-
}
|
|
75
31
|
/** An accessor reified over a list's rows, held to the type it returns, refused in the list's words. */
|
|
76
32
|
function accessorOf(where, rowType, prop, out, what, fn) {
|
|
77
33
|
if (fn === undefined)
|
|
@@ -83,7 +39,7 @@ function accessorOf(where, rowType, prop, out, what, fn) {
|
|
|
83
39
|
*
|
|
84
40
|
* @typeParam R - The app's shift row type
|
|
85
41
|
* @param rows - The shifts by String key, usually `Data.bind(record).read()`
|
|
86
|
-
* @param config - The label, code, start and hours accessors, and an optional order
|
|
42
|
+
* @param config - The label, code, start and hours accessors, and an optional order and colour
|
|
87
43
|
* @returns The shifts, declared, for the Roster's `shifts`
|
|
88
44
|
* @throws {Error} When the rows are not a Dict keyed by String, or an accessor returns another type than it takes, naming what it returns
|
|
89
45
|
*/
|
|
@@ -96,15 +52,52 @@ export function rosterShifts(rows, config) {
|
|
|
96
52
|
const start = accessorOf(where, rowType, "start", ScheduleClockType, "a Schedule.Types.Clock, when a shift starts in UTC", c.start);
|
|
97
53
|
const hours = accessorOf(where, rowType, "hours", FloatType, "a Float, a shift's hours", c.hours);
|
|
98
54
|
const order = accessorOf(where, rowType, "order", IntegerType, "an Integer, where a shift shows", c.order);
|
|
55
|
+
const color = accessorOf(where, rowType, "color", OptionType(ColorTokenType), "an Option of a ColorTokenType, a shift's colour (Style.ColorToken(\"teal\", \"500\"))", c.color);
|
|
99
56
|
const item = East.function([rowType, StringType], RosterShiftType, ($, row, key) => {
|
|
100
57
|
const labelOf = $.const(label);
|
|
101
58
|
const codeOf = $.const(code);
|
|
102
59
|
const startOf = $.const(start);
|
|
103
60
|
const hoursOf = $.const(hours);
|
|
104
|
-
|
|
61
|
+
const colorOf = color === undefined ? undefined : $.const(color);
|
|
62
|
+
return {
|
|
63
|
+
key, label: labelOf(row, key), code: codeOf(row, key), start: startOf(row, key), hours: hoursOf(row, key),
|
|
64
|
+
color: colorOf === undefined ? East.value(none, OptionType(ColorTokenType)) : colorOf(row, key),
|
|
65
|
+
};
|
|
105
66
|
});
|
|
106
67
|
return { [ROSTER_LIST]: "shifts", rows: ordered(held, rowType, RosterShiftType, item, order) };
|
|
107
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Reads the app's week pattern rows as the Roster's patterns (#1406, see the
|
|
71
|
+
* module docs): the cards of the tab `name` titles, each seven days from the
|
|
72
|
+
* week's first day, which a drop on a person's week applies.
|
|
73
|
+
*
|
|
74
|
+
* @typeParam R - The app's week pattern row type
|
|
75
|
+
* @param rows - The patterns by String key, usually `Data.bind(record).read()`
|
|
76
|
+
* @param config - The tab's `name` and optional `icon`, the label and days accessors, and an optional order
|
|
77
|
+
* @returns The patterns, declared, for the Roster's `patterns`
|
|
78
|
+
* @remarks A pattern with other than seven days, or naming a shift the Roster has not configured, is listed greyed with the reason and cannot be dragged or applied.
|
|
79
|
+
* @throws {Error} When `name` is missing, the rows are not a Dict keyed by String, or an accessor returns another type than it takes, naming what it returns
|
|
80
|
+
*/
|
|
81
|
+
export function rosterPatterns(rows, config) {
|
|
82
|
+
const where = "Roster.patterns";
|
|
83
|
+
const c = (config ?? {});
|
|
84
|
+
if (typeof c.name !== "string" || c.name === "") {
|
|
85
|
+
throw new Error(`${where}: \`name\` titles the tab ("Patterns", "Weeks") — a String, as Schedule.events' \`name\` is`);
|
|
86
|
+
}
|
|
87
|
+
if (c.icon !== undefined && (typeof c.icon !== "string" || c.icon === "")) {
|
|
88
|
+
throw new Error(`${where}: \`icon\` is the cards' Font Awesome solid icon name ("calendar-week"), a String`);
|
|
89
|
+
}
|
|
90
|
+
const { rows: held, rowType } = keyedRows(where, "patterns", rows);
|
|
91
|
+
const label = accessorOf(where, rowType, "label", StringType, "a String, a pattern's name", c.label);
|
|
92
|
+
const days = accessorOf(where, rowType, "days", ArrayType(OptionType(StringType)), "an Array of seven Option<String> shift keys from the week's first day", c.days);
|
|
93
|
+
const order = accessorOf(where, rowType, "order", IntegerType, "an Integer, where a pattern shows", c.order);
|
|
94
|
+
const item = East.function([rowType, StringType], RosterPatternType, ($, row, key) => {
|
|
95
|
+
const labelOf = $.const(label);
|
|
96
|
+
const daysOf = $.const(days);
|
|
97
|
+
return { key, label: labelOf(row, key), days: daysOf(row, key) };
|
|
98
|
+
});
|
|
99
|
+
return { [ROSTER_LIST]: "patterns", rows: ordered(held, rowType, RosterPatternType, item, order), name: c.name, icon: c.icon ?? "calendar-week" };
|
|
100
|
+
}
|
|
108
101
|
/**
|
|
109
102
|
* Reads the app's group rows as the Roster's groups (see the module docs).
|
|
110
103
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.js","sourceRoot":"","sources":["../../../src/roster/lists.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"lists.js","sourceRoot":"","sources":["../../../src/roster/lists.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACH,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,GAEnG,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE1I,oEAAoE;AACpE,MAAM,CAAC,MAAM,WAAW,GAAkB,MAAM,CAAC,aAAa,CAAC,CAAC;AAgJhE,wGAAwG;AACxG,SAAS,UAAU,C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,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/B,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/B,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACjC,OAAO;YACH,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,GAAY,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,GAAY,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,GAAY,EAAE,GAAG,CAAC;YACxG,MAAM,EAAE,QAAQ,CAAC,GAAY,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,GAAY,EAAE,GAAG,CAAC;SAC3E,CAAC;IACN,CAAC,CAAkF,CAAC;IACpF,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;AAC7G,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,YAAY,CAA2B,KAAc,EAAE,IAAO;IAC1E,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAK,KAAoC,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;AACtH,CAAC"}
|
|
@@ -81,7 +81,7 @@ export interface RosterTargets {
|
|
|
81
81
|
* Declares the app's targets (see the module docs).
|
|
82
82
|
*
|
|
83
83
|
* @typeParam R - The app's target row type
|
|
84
|
-
* @param record - The app's record of targets, `Record.bind(record,
|
|
84
|
+
* @param record - The app's record of targets, `Record.bind(record), its record declaring patch: mutation.patch()`: a `Dict` keyed by String
|
|
85
85
|
* @param config - The fields its roles name, the app's own form, and its read by key
|
|
86
86
|
* @returns The targets, for the Roster's `targets`
|
|
87
87
|
* @throws {Error} Naming the option: a record not bound with its patch mutation, not keyed by String, or whose rows are no
|
|
@@ -95,11 +95,15 @@ export interface RosterTargets {
|
|
|
95
95
|
* import e3 from "@elaraai/e3";
|
|
96
96
|
*
|
|
97
97
|
* const Cover = StructType({ day: DateTimeType, team: StringType, shift: StringType, heads: IntegerType, hours: DictType(StringType, FloatType) });
|
|
98
|
-
* const cover = e3.record("cover", DictType(StringType, Cover),
|
|
99
|
-
*
|
|
98
|
+
* const cover = e3.record("cover", DictType(StringType, Cover), {
|
|
99
|
+
* initial: new Map(),
|
|
100
|
+
* mutations: (mutation) => ({
|
|
101
|
+
* patch: mutation.patch(),
|
|
102
|
+
* }),
|
|
103
|
+
* });
|
|
100
104
|
*
|
|
101
105
|
* // Inside the Roster's Reactive body: a target per slot, over the app's own rows.
|
|
102
|
-
* const targets = Roster.targets(Record.bind(cover
|
|
106
|
+
* const targets = Roster.targets(Record.bind(cover), { day: "day", group: "team", shift: "shift", positions: "heads", hours: "hours" });
|
|
103
107
|
* ```
|
|
104
108
|
*/
|
|
105
109
|
export declare function rosterTargets<R extends StructType>(record: ScheduleRecordHandle<StringType, R>, config: RosterTargetsConfig<R>): RosterTargets;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"targets.d.ts","sourceRoot":"","sources":["../../../src/roster/targets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EACmE,QAAQ,EAAc,UAAU,EACtE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAC7G,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACtJ,OAAO,EAAwB,KAAK,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAI3F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AE,gBAAgB,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAC;CACnE;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,UAAU,EAAE,MAAM,EAAE,oBAAoB,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,aAAa,CAqI9I;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE"}
|
|
@@ -44,7 +44,7 @@ function fieldOf(row, name) {
|
|
|
44
44
|
* Declares the app's targets (see the module docs).
|
|
45
45
|
*
|
|
46
46
|
* @typeParam R - The app's target row type
|
|
47
|
-
* @param record - The app's record of targets, `Record.bind(record,
|
|
47
|
+
* @param record - The app's record of targets, `Record.bind(record), its record declaring patch: mutation.patch()`: a `Dict` keyed by String
|
|
48
48
|
* @param config - The fields its roles name, the app's own form, and its read by key
|
|
49
49
|
* @returns The targets, for the Roster's `targets`
|
|
50
50
|
* @throws {Error} Naming the option: a record not bound with its patch mutation, not keyed by String, or whose rows are no
|
|
@@ -58,11 +58,15 @@ function fieldOf(row, name) {
|
|
|
58
58
|
* import e3 from "@elaraai/e3";
|
|
59
59
|
*
|
|
60
60
|
* const Cover = StructType({ day: DateTimeType, team: StringType, shift: StringType, heads: IntegerType, hours: DictType(StringType, FloatType) });
|
|
61
|
-
* const cover = e3.record("cover", DictType(StringType, Cover),
|
|
62
|
-
*
|
|
61
|
+
* const cover = e3.record("cover", DictType(StringType, Cover), {
|
|
62
|
+
* initial: new Map(),
|
|
63
|
+
* mutations: (mutation) => ({
|
|
64
|
+
* patch: mutation.patch(),
|
|
65
|
+
* }),
|
|
66
|
+
* });
|
|
63
67
|
*
|
|
64
68
|
* // Inside the Roster's Reactive body: a target per slot, over the app's own rows.
|
|
65
|
-
* const targets = Roster.targets(Record.bind(cover
|
|
69
|
+
* const targets = Roster.targets(Record.bind(cover), { day: "day", group: "team", shift: "shift", positions: "heads", hours: "hours" });
|
|
66
70
|
* ```
|
|
67
71
|
*/
|
|
68
72
|
export function rosterTargets(record, config) {
|
|
@@ -72,7 +76,7 @@ export function rosterTargets(record, config) {
|
|
|
72
76
|
const read = handleType.type === "Struct" ? handleType.fields["read"] : undefined;
|
|
73
77
|
if (handleType.type !== "Struct" || read === undefined || read.type !== "Function"
|
|
74
78
|
|| handleType.fields["binding"] === undefined) {
|
|
75
|
-
throw new Error(`${where}: \`record\` is the app's record of targets, bound with its patch mutation — Record.bind(record,
|
|
79
|
+
throw new Error(`${where}: \`record\` is the app's record of targets, bound with its patch mutation — Record.bind(record), its record declaring patch: mutation.patch()`);
|
|
76
80
|
}
|
|
77
81
|
const recordType = read.output;
|
|
78
82
|
if (recordType.type !== "Dict" || !isTypeEqual(recordType.key, StringType)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"targets.js","sourceRoot":"","sources":["../../../src/roster/targets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EACH,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAC7I,eAAe,GAClB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,oBAAoB,EAAyB,MAAM,8BAA8B,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,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