@elaraai/e3-ui 1.0.98 → 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 +46 -90
- package/dist/src/allocation/index.d.ts.map +1 -1
- package/dist/src/allocation/index.js +5 -5
- package/dist/src/allocation/index.js.map +1 -1
- package/dist/src/bind/data-indexed.d.ts +273 -51
- package/dist/src/bind/data-indexed.d.ts.map +1 -1
- package/dist/src/bind/data-indexed.js +233 -56
- 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 +55 -95
- package/dist/src/calendar/index.d.ts.map +1 -1
- package/dist/src/calendar/index.js +10 -6
- package/dist/src/calendar/index.js.map +1 -1
- 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 +39 -107
- 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 +0 -12
- 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 +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +7 -3
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +12 -3
- 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 +1518 -2
- package/dist/src/plan/builders.d.ts.map +1 -1
- package/dist/src/plan/builders.js +248 -114
- package/dist/src/plan/builders.js.map +1 -1
- package/dist/src/plan/event-rows.d.ts +9 -14
- package/dist/src/plan/event-rows.d.ts.map +1 -1
- package/dist/src/plan/event-rows.js +6 -46
- 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 +147 -125
- package/dist/src/plan/index.d.ts.map +1 -1
- package/dist/src/plan/index.js +135 -122
- package/dist/src/plan/index.js.map +1 -1
- package/dist/src/plan/ir.d.ts +1105 -44
- 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 +1030 -1
- package/dist/src/plan/ordered-source.d.ts.map +1 -1
- package/dist/src/plan/ordered-source.js +48 -6
- 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 +2719 -558
- package/dist/src/plan/plan.d.ts.map +1 -1
- package/dist/src/plan/plan.js +14 -2
- 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 +10 -5
- package/dist/src/plan/root.d.ts.map +1 -1
- package/dist/src/plan/root.js +76 -13
- package/dist/src/plan/root.js.map +1 -1
- package/dist/src/plan/series.d.ts +5140 -4331
- package/dist/src/plan/series.d.ts.map +1 -1
- package/dist/src/plan/series.js +1026 -264
- 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 +178 -18
- package/dist/src/plan/types.d.ts.map +1 -1
- package/dist/src/plan/types.js +69 -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 +47 -91
- package/dist/src/roster/index.d.ts.map +1 -1
- package/dist/src/roster/index.js +6 -6
- package/dist/src/roster/index.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/schedule/cell-checks.js +3 -3
- package/dist/src/schedule/cell-checks.js.map +1 -1
- package/dist/src/schedule/days.d.ts +1 -1
- package/dist/src/schedule/days.js +1 -1
- package/dist/src/schedule/events.d.ts +10 -6
- package/dist/src/schedule/events.d.ts.map +1 -1
- package/dist/src/schedule/events.js +252 -228
- package/dist/src/schedule/events.js.map +1 -1
- 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 +38 -58
- package/dist/src/schedule/record-window.d.ts.map +1 -1
- package/dist/src/schedule/record-window.js +15 -16
- package/dist/src/schedule/record-window.js.map +1 -1
- package/dist/src/schedule/resources.d.ts +1 -1
- package/dist/src/schedule/session.d.ts +1 -1
- package/dist/src/schedule/session.js +1 -1
- package/dist/src/schedule/types.d.ts +29 -1
- package/dist/src/schedule/types.d.ts.map +1 -1
- package/dist/src/schedule/types.js +16 -1
- package/dist/src/schedule/types.js.map +1 -1
- package/dist/src/schematic/index.d.ts +19 -9
- package/dist/src/schematic/index.d.ts.map +1 -1
- package/dist/src/schematic/index.js +19 -9
- package/dist/src/schematic/index.js.map +1 -1
- package/dist/src/schematic/kinds.d.ts +4 -4
- package/dist/src/schematic/kinds.js +9 -9
- package/dist/src/schematic/kinds.js.map +1 -1
- package/dist/src/schematic/payload.d.ts +38 -88
- package/dist/src/schematic/payload.d.ts.map +1 -1
- package/dist/src/schematic/payload.js +4 -4
- package/dist/src/schematic/payload.js.map +1 -1
- package/dist/src/schematic/window.d.ts +8 -7
- package/dist/src/schematic/window.d.ts.map +1 -1
- package/dist/src/schematic/window.js +22 -19
- package/dist/src/schematic/window.js.map +1 -1
- 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/index.d.ts +66 -46
- package/dist/src/sheet/index.d.ts.map +1 -1
- package/dist/src/sheet/index.js +66 -46
- 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/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 +152 -128
- package/dist/src/sheet/registers.d.ts.map +1 -1
- package/dist/src/sheet/registers.js +152 -128
- package/dist/src/sheet/registers.js.map +1 -1
- package/dist/src/sheet/root.d.ts +4 -1
- package/dist/src/sheet/root.d.ts.map +1 -1
- package/dist/src/sheet/root.js +15 -3
- package/dist/src/sheet/root.js.map +1 -1
- package/dist/src/sheet/sheet.d.ts +39 -113
- package/dist/src/sheet/sheet.d.ts.map +1 -1
- package/dist/src/sheet/sheet.js +7 -5
- 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 +19 -62
- package/dist/src/sheet/types.d.ts.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/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 -1598
- 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.map +1 -1
- package/dist/test/allocation/optimise.examples.js +7 -7
- package/dist/test/allocation/optimise.examples.js.map +1 -1
- package/dist/test/bind/data/data.examples.d.ts +1057 -903
- package/dist/test/bind/data/data.examples.d.ts.map +1 -1
- package/dist/test/bind/data/data.examples.js +260 -204
- package/dist/test/bind/data/data.examples.js.map +1 -1
- package/dist/test/bind/record/record.examples.d.ts +457 -426
- 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.map +1 -1
- package/dist/test/calendar/calendar-windows.examples.js +12 -12
- package/dist/test/calendar/calendar-windows.examples.js.map +1 -1
- package/dist/test/calendar/calendar.examples.d.ts +1172 -901
- 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.js +2 -2
- package/dist/test/calendar/optimise.examples.js.map +1 -1
- package/dist/test/examples-package.d.ts +6 -9
- package/dist/test/examples-package.d.ts.map +1 -1
- package/dist/test/examples-package.js +11 -32
- package/dist/test/examples-package.js.map +1 -1
- package/dist/test/flowchart/flowchart.examples.d.ts +3841 -2820
- 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.js +2 -2
- package/dist/test/plan/optimise.examples.js.map +1 -1
- package/dist/test/plan/plan-events.examples.d.ts +4055 -3263
- 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 +328 -362
- package/dist/test/plan/plan-records.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-records.examples.js +81 -57
- package/dist/test/plan/plan-records.examples.js.map +1 -1
- package/dist/test/plan/plan-windows.examples.d.ts +1756 -1398
- package/dist/test/plan/plan-windows.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-windows.examples.js +161 -128
- package/dist/test/plan/plan-windows.examples.js.map +1 -1
- package/dist/test/plan/plan.examples.d.ts +2238 -5712
- package/dist/test/plan/plan.examples.d.ts.map +1 -1
- package/dist/test/plan/plan.examples.js +839 -968
- 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/optimise.examples.d.ts.map +1 -1
- package/dist/test/roster/optimise.examples.js +7 -7
- package/dist/test/roster/optimise.examples.js.map +1 -1
- package/dist/test/roster/roster-records.examples.d.ts +364 -392
- 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 +4605 -4308
- package/dist/test/roster/roster.examples.d.ts.map +1 -1
- package/dist/test/roster/roster.examples.js +212 -113
- package/dist/test/roster/roster.examples.js.map +1 -1
- package/dist/test/schedule/schedule.examples.d.ts +2646 -2471
- 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 +286 -276
- package/dist/test/schematic/schematic-records.examples.d.ts.map +1 -1
- package/dist/test/schematic/schematic-records.examples.js +52 -38
- package/dist/test/schematic/schematic-records.examples.js.map +1 -1
- package/dist/test/schematic/schematic.examples.d.ts +1842 -1491
- package/dist/test/schematic/schematic.examples.d.ts.map +1 -1
- package/dist/test/schematic/schematic.examples.js +240 -134
- package/dist/test/schematic/schematic.examples.js.map +1 -1
- package/dist/test/sheet/optimise.examples.d.ts +102 -95
- package/dist/test/sheet/optimise.examples.d.ts.map +1 -1
- package/dist/test/sheet/optimise.examples.js +7 -3
- package/dist/test/sheet/optimise.examples.js.map +1 -1
- package/dist/test/sheet/sheet-records.examples.d.ts +175 -214
- package/dist/test/sheet/sheet-records.examples.d.ts.map +1 -1
- package/dist/test/sheet/sheet-records.examples.js +29 -17
- package/dist/test/sheet/sheet-records.examples.js.map +1 -1
- package/dist/test/sheet/sheet.examples.d.ts +3642 -3353
- package/dist/test/sheet/sheet.examples.d.ts.map +1 -1
- package/dist/test/sheet/sheet.examples.js +389 -282
- 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
|
@@ -79,57 +79,72 @@ export interface SheetSubRowsValue<R extends StructType> {
|
|
|
79
79
|
* export const BatchStep = StructType({ task: StringType, qty: OptionType(FloatType), parts: ArrayType(BatchPart), bookings: ArrayType(BatchBooking) });
|
|
80
80
|
* export const Batch = StructType({ id: StringType, name: StringType, steps: ArrayType(BatchStep) });
|
|
81
81
|
* export const BatchDay = StructType({ batches: ArrayType(Batch) });
|
|
82
|
-
* export const sheetBatchDays = e3.record("sheet_batch_days", DictType(StringType, BatchDay),
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* {
|
|
86
|
-
* {
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* {
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* {
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* {
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
* ]
|
|
103
|
-
*
|
|
82
|
+
* export const sheetBatchDays = e3.record("sheet_batch_days", DictType(StringType, BatchDay), {
|
|
83
|
+
* initial: new Map([
|
|
84
|
+
* ["2026-10-12", { batches: [
|
|
85
|
+
* { id: "B-101", name: "Doors, oak", steps: [
|
|
86
|
+
* { task: "Cut doors", qty: some(12.0), parts: [
|
|
87
|
+
* { id: "B-101-1", code: "CUT", name: "Cut the door blanks", materials: ["Oak veneered board × 6"], station: some("S101") },
|
|
88
|
+
* ], bookings: [variant("labour", { team: "Cutting", people: 1n, hours: 3.0 })] },
|
|
89
|
+
* { task: "Band doors", qty: some(48.0), parts: [], bookings: [variant("equipment", { resource: "Edge bander E201" })] },
|
|
90
|
+
* { task: "Spray doors", qty: some(12.0), parts: [
|
|
91
|
+
* { id: "B-101-3", code: "SPR", name: "Seal and lacquer", materials: ["Sealer", "Matt lacquer"], station: none },
|
|
92
|
+
* ], bookings: [] },
|
|
93
|
+
* ] },
|
|
94
|
+
* { id: "B-102", name: "Carcasses, birch", steps: [
|
|
95
|
+
* { task: "Cut carcasses", qty: some(8.0), parts: [], bookings: [] },
|
|
96
|
+
* { task: "Drill carcasses", qty: some(8.0), parts: [], bookings: [variant("labour", { team: "Machining", people: 2n, hours: 2.5 })] },
|
|
97
|
+
* ] },
|
|
98
|
+
* { id: "B-103", name: "Shelves, ash", steps: [
|
|
99
|
+
* { task: "Cut shelves", qty: some(20.0), parts: [], bookings: [] },
|
|
100
|
+
* { task: "Sand shelves", qty: some(20.0), parts: [], bookings: [] },
|
|
101
|
+
* ] },
|
|
102
|
+
* ] }],
|
|
103
|
+
* ]),
|
|
104
|
+
* mutations: (mutation) => ({
|
|
105
|
+
* // The days' patch door — every Save commits through it.
|
|
106
|
+
* patch: mutation.patch(),
|
|
107
|
+
* }),
|
|
108
|
+
* });
|
|
104
109
|
* export const BatchStepTemplate = StructType({ name: StringType, group: StringType, task: StringType });
|
|
105
|
-
* export const sheetBatchStepTemplates = e3.record("sheet_batch_step_templates", DictType(StringType, BatchStepTemplate),
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* ]
|
|
109
|
-
*
|
|
110
|
+
* export const sheetBatchStepTemplates = e3.record("sheet_batch_step_templates", DictType(StringType, BatchStepTemplate), {
|
|
111
|
+
* initial: new Map([
|
|
112
|
+
* ["sand", { name: "Sand", group: "Steps", task: "Sand" }],
|
|
113
|
+
* ["seal", { name: "Seal", group: "Steps", task: "Seal" }],
|
|
114
|
+
* ]),
|
|
115
|
+
* indexes: (index) => ({
|
|
116
|
+
* // The step templates by their group: what the rail narrows them by.
|
|
117
|
+
* sheet_batch_step_templates_by_group: index.on(["group"]),
|
|
118
|
+
* }),
|
|
119
|
+
* });
|
|
110
120
|
* export const BatchTemplate = StructType({ name: StringType, group: StringType, batch: StringType, steps: ArrayType(BatchStep) });
|
|
111
|
-
* export const sheetBatchTemplates = e3.record("sheet_batch_templates", DictType(StringType, BatchTemplate),
|
|
112
|
-
*
|
|
113
|
-
* {
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* ]
|
|
118
|
-
*
|
|
121
|
+
* export const sheetBatchTemplates = e3.record("sheet_batch_templates", DictType(StringType, BatchTemplate), {
|
|
122
|
+
* initial: new Map([
|
|
123
|
+
* ["finishing", { name: "Finishing batch", group: "Batches", batch: "Finishing", steps: [
|
|
124
|
+
* { task: "Sand", qty: none, parts: [], bookings: [] },
|
|
125
|
+
* { task: "Seal", qty: none, parts: [], bookings: [] },
|
|
126
|
+
* { task: "Spray", qty: none, parts: [], bookings: [] },
|
|
127
|
+
* ] }],
|
|
128
|
+
* ]),
|
|
129
|
+
* indexes: (index) => ({
|
|
130
|
+
* // The batch templates by their group: what the rail narrows them by.
|
|
131
|
+
* sheet_batch_templates_by_group: index.on(["group"]),
|
|
132
|
+
* }),
|
|
133
|
+
* });
|
|
119
134
|
*
|
|
120
135
|
* const sheet = East.function([], UIComponentType, (_$) => (
|
|
121
136
|
* <Reactive>{$ => {
|
|
122
|
-
* const days = $.let(Record.bind(sheetBatchDays
|
|
137
|
+
* const days = $.let(Record.bind(sheetBatchDays));
|
|
123
138
|
* const stepTemplates = $.let(Data.bind(sheetBatchStepTemplates));
|
|
124
139
|
* const batchTemplates = $.let(Data.bind(sheetBatchTemplates));
|
|
125
140
|
* // One rail over the templates records, each its own source: they narrow the Rows tab's cards.
|
|
126
141
|
* const slice = $.let(Slice.bindRecords("sheet.batches", {
|
|
127
142
|
* rowTemplates: {
|
|
128
|
-
* source: Data.bindPaged(sheetBatchStepTemplates, { indexes: [
|
|
143
|
+
* source: Data.bindPaged(sheetBatchStepTemplates, { indexes: ["sheet_batch_step_templates_by_group"] }),
|
|
129
144
|
* label: "Step templates", fields: { group: { label: "Group", hints: ["Steps"] } },
|
|
130
145
|
* },
|
|
131
146
|
* groupTemplates: {
|
|
132
|
-
* source: Data.bindPaged(sheetBatchTemplates, { indexes: [
|
|
147
|
+
* source: Data.bindPaged(sheetBatchTemplates, { indexes: ["sheet_batch_templates_by_group"] }),
|
|
133
148
|
* label: "Batch templates", fields: { group: { label: "Group", hints: ["Batches"] } },
|
|
134
149
|
* },
|
|
135
150
|
* }));
|
|
@@ -233,57 +248,72 @@ export interface SheetSubRowInput {
|
|
|
233
248
|
* export const BatchStep = StructType({ task: StringType, qty: OptionType(FloatType), parts: ArrayType(BatchPart), bookings: ArrayType(BatchBooking) });
|
|
234
249
|
* export const Batch = StructType({ id: StringType, name: StringType, steps: ArrayType(BatchStep) });
|
|
235
250
|
* export const BatchDay = StructType({ batches: ArrayType(Batch) });
|
|
236
|
-
* export const sheetBatchDays = e3.record("sheet_batch_days", DictType(StringType, BatchDay),
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
* {
|
|
240
|
-
* {
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
* {
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
* {
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
* {
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
* ]
|
|
257
|
-
*
|
|
251
|
+
* export const sheetBatchDays = e3.record("sheet_batch_days", DictType(StringType, BatchDay), {
|
|
252
|
+
* initial: new Map([
|
|
253
|
+
* ["2026-10-12", { batches: [
|
|
254
|
+
* { id: "B-101", name: "Doors, oak", steps: [
|
|
255
|
+
* { task: "Cut doors", qty: some(12.0), parts: [
|
|
256
|
+
* { id: "B-101-1", code: "CUT", name: "Cut the door blanks", materials: ["Oak veneered board × 6"], station: some("S101") },
|
|
257
|
+
* ], bookings: [variant("labour", { team: "Cutting", people: 1n, hours: 3.0 })] },
|
|
258
|
+
* { task: "Band doors", qty: some(48.0), parts: [], bookings: [variant("equipment", { resource: "Edge bander E201" })] },
|
|
259
|
+
* { task: "Spray doors", qty: some(12.0), parts: [
|
|
260
|
+
* { id: "B-101-3", code: "SPR", name: "Seal and lacquer", materials: ["Sealer", "Matt lacquer"], station: none },
|
|
261
|
+
* ], bookings: [] },
|
|
262
|
+
* ] },
|
|
263
|
+
* { id: "B-102", name: "Carcasses, birch", steps: [
|
|
264
|
+
* { task: "Cut carcasses", qty: some(8.0), parts: [], bookings: [] },
|
|
265
|
+
* { task: "Drill carcasses", qty: some(8.0), parts: [], bookings: [variant("labour", { team: "Machining", people: 2n, hours: 2.5 })] },
|
|
266
|
+
* ] },
|
|
267
|
+
* { id: "B-103", name: "Shelves, ash", steps: [
|
|
268
|
+
* { task: "Cut shelves", qty: some(20.0), parts: [], bookings: [] },
|
|
269
|
+
* { task: "Sand shelves", qty: some(20.0), parts: [], bookings: [] },
|
|
270
|
+
* ] },
|
|
271
|
+
* ] }],
|
|
272
|
+
* ]),
|
|
273
|
+
* mutations: (mutation) => ({
|
|
274
|
+
* // The days' patch door — every Save commits through it.
|
|
275
|
+
* patch: mutation.patch(),
|
|
276
|
+
* }),
|
|
277
|
+
* });
|
|
258
278
|
* export const BatchStepTemplate = StructType({ name: StringType, group: StringType, task: StringType });
|
|
259
|
-
* export const sheetBatchStepTemplates = e3.record("sheet_batch_step_templates", DictType(StringType, BatchStepTemplate),
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
* ]
|
|
263
|
-
*
|
|
279
|
+
* export const sheetBatchStepTemplates = e3.record("sheet_batch_step_templates", DictType(StringType, BatchStepTemplate), {
|
|
280
|
+
* initial: new Map([
|
|
281
|
+
* ["sand", { name: "Sand", group: "Steps", task: "Sand" }],
|
|
282
|
+
* ["seal", { name: "Seal", group: "Steps", task: "Seal" }],
|
|
283
|
+
* ]),
|
|
284
|
+
* indexes: (index) => ({
|
|
285
|
+
* // The step templates by their group: what the rail narrows them by.
|
|
286
|
+
* sheet_batch_step_templates_by_group: index.on(["group"]),
|
|
287
|
+
* }),
|
|
288
|
+
* });
|
|
264
289
|
* export const BatchTemplate = StructType({ name: StringType, group: StringType, batch: StringType, steps: ArrayType(BatchStep) });
|
|
265
|
-
* export const sheetBatchTemplates = e3.record("sheet_batch_templates", DictType(StringType, BatchTemplate),
|
|
266
|
-
*
|
|
267
|
-
* {
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
* ]
|
|
272
|
-
*
|
|
290
|
+
* export const sheetBatchTemplates = e3.record("sheet_batch_templates", DictType(StringType, BatchTemplate), {
|
|
291
|
+
* initial: new Map([
|
|
292
|
+
* ["finishing", { name: "Finishing batch", group: "Batches", batch: "Finishing", steps: [
|
|
293
|
+
* { task: "Sand", qty: none, parts: [], bookings: [] },
|
|
294
|
+
* { task: "Seal", qty: none, parts: [], bookings: [] },
|
|
295
|
+
* { task: "Spray", qty: none, parts: [], bookings: [] },
|
|
296
|
+
* ] }],
|
|
297
|
+
* ]),
|
|
298
|
+
* indexes: (index) => ({
|
|
299
|
+
* // The batch templates by their group: what the rail narrows them by.
|
|
300
|
+
* sheet_batch_templates_by_group: index.on(["group"]),
|
|
301
|
+
* }),
|
|
302
|
+
* });
|
|
273
303
|
*
|
|
274
304
|
* const sheet = East.function([], UIComponentType, (_$) => (
|
|
275
305
|
* <Reactive>{$ => {
|
|
276
|
-
* const days = $.let(Record.bind(sheetBatchDays
|
|
306
|
+
* const days = $.let(Record.bind(sheetBatchDays));
|
|
277
307
|
* const stepTemplates = $.let(Data.bind(sheetBatchStepTemplates));
|
|
278
308
|
* const batchTemplates = $.let(Data.bind(sheetBatchTemplates));
|
|
279
309
|
* // One rail over the templates records, each its own source: they narrow the Rows tab's cards.
|
|
280
310
|
* const slice = $.let(Slice.bindRecords("sheet.batches", {
|
|
281
311
|
* rowTemplates: {
|
|
282
|
-
* source: Data.bindPaged(sheetBatchStepTemplates, { indexes: [
|
|
312
|
+
* source: Data.bindPaged(sheetBatchStepTemplates, { indexes: ["sheet_batch_step_templates_by_group"] }),
|
|
283
313
|
* label: "Step templates", fields: { group: { label: "Group", hints: ["Steps"] } },
|
|
284
314
|
* },
|
|
285
315
|
* groupTemplates: {
|
|
286
|
-
* source: Data.bindPaged(sheetBatchTemplates, { indexes: [
|
|
316
|
+
* source: Data.bindPaged(sheetBatchTemplates, { indexes: ["sheet_batch_templates_by_group"] }),
|
|
287
317
|
* label: "Batch templates", fields: { group: { label: "Group", hints: ["Batches"] } },
|
|
288
318
|
* },
|
|
289
319
|
* }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sub-rows.d.ts","sourceRoot":"","sources":["../../../src/sheet/sub-rows.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAGvB,SAAS,EACT,UAAU,EACV,UAAU,EACV,KAAK,UAAU,EAGlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAkB,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;;GAKG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,UAAU,IAAI;KAC/C,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS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AAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAEpH;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC7B,uBAAuB;IACvB,IAAI,CAAC,EAAE,kBAAkB,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IAC/D,wBAAwB;IACxB,IAAI,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACrC,oCAAoC;IACpC,KAAK,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IAClD,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACjF,wCAAwC;IACxC,EAAE,CAAC,EAAE,kBAAkB,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;CAChE;AAoBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkJG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAa/E"}
|
|
@@ -41,57 +41,72 @@ import { SheetFacetType, SheetSubRowType } from "./types.js";
|
|
|
41
41
|
* export const BatchStep = StructType({ task: StringType, qty: OptionType(FloatType), parts: ArrayType(BatchPart), bookings: ArrayType(BatchBooking) });
|
|
42
42
|
* export const Batch = StructType({ id: StringType, name: StringType, steps: ArrayType(BatchStep) });
|
|
43
43
|
* export const BatchDay = StructType({ batches: ArrayType(Batch) });
|
|
44
|
-
* export const sheetBatchDays = e3.record("sheet_batch_days", DictType(StringType, BatchDay),
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* {
|
|
48
|
-
* {
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* {
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* {
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* {
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* ]
|
|
65
|
-
*
|
|
44
|
+
* export const sheetBatchDays = e3.record("sheet_batch_days", DictType(StringType, BatchDay), {
|
|
45
|
+
* initial: new Map([
|
|
46
|
+
* ["2026-10-12", { batches: [
|
|
47
|
+
* { id: "B-101", name: "Doors, oak", steps: [
|
|
48
|
+
* { task: "Cut doors", qty: some(12.0), parts: [
|
|
49
|
+
* { id: "B-101-1", code: "CUT", name: "Cut the door blanks", materials: ["Oak veneered board × 6"], station: some("S101") },
|
|
50
|
+
* ], bookings: [variant("labour", { team: "Cutting", people: 1n, hours: 3.0 })] },
|
|
51
|
+
* { task: "Band doors", qty: some(48.0), parts: [], bookings: [variant("equipment", { resource: "Edge bander E201" })] },
|
|
52
|
+
* { task: "Spray doors", qty: some(12.0), parts: [
|
|
53
|
+
* { id: "B-101-3", code: "SPR", name: "Seal and lacquer", materials: ["Sealer", "Matt lacquer"], station: none },
|
|
54
|
+
* ], bookings: [] },
|
|
55
|
+
* ] },
|
|
56
|
+
* { id: "B-102", name: "Carcasses, birch", steps: [
|
|
57
|
+
* { task: "Cut carcasses", qty: some(8.0), parts: [], bookings: [] },
|
|
58
|
+
* { task: "Drill carcasses", qty: some(8.0), parts: [], bookings: [variant("labour", { team: "Machining", people: 2n, hours: 2.5 })] },
|
|
59
|
+
* ] },
|
|
60
|
+
* { id: "B-103", name: "Shelves, ash", steps: [
|
|
61
|
+
* { task: "Cut shelves", qty: some(20.0), parts: [], bookings: [] },
|
|
62
|
+
* { task: "Sand shelves", qty: some(20.0), parts: [], bookings: [] },
|
|
63
|
+
* ] },
|
|
64
|
+
* ] }],
|
|
65
|
+
* ]),
|
|
66
|
+
* mutations: (mutation) => ({
|
|
67
|
+
* // The days' patch door — every Save commits through it.
|
|
68
|
+
* patch: mutation.patch(),
|
|
69
|
+
* }),
|
|
70
|
+
* });
|
|
66
71
|
* export const BatchStepTemplate = StructType({ name: StringType, group: StringType, task: StringType });
|
|
67
|
-
* export const sheetBatchStepTemplates = e3.record("sheet_batch_step_templates", DictType(StringType, BatchStepTemplate),
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* ]
|
|
71
|
-
*
|
|
72
|
+
* export const sheetBatchStepTemplates = e3.record("sheet_batch_step_templates", DictType(StringType, BatchStepTemplate), {
|
|
73
|
+
* initial: new Map([
|
|
74
|
+
* ["sand", { name: "Sand", group: "Steps", task: "Sand" }],
|
|
75
|
+
* ["seal", { name: "Seal", group: "Steps", task: "Seal" }],
|
|
76
|
+
* ]),
|
|
77
|
+
* indexes: (index) => ({
|
|
78
|
+
* // The step templates by their group: what the rail narrows them by.
|
|
79
|
+
* sheet_batch_step_templates_by_group: index.on(["group"]),
|
|
80
|
+
* }),
|
|
81
|
+
* });
|
|
72
82
|
* export const BatchTemplate = StructType({ name: StringType, group: StringType, batch: StringType, steps: ArrayType(BatchStep) });
|
|
73
|
-
* export const sheetBatchTemplates = e3.record("sheet_batch_templates", DictType(StringType, BatchTemplate),
|
|
74
|
-
*
|
|
75
|
-
* {
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* ]
|
|
80
|
-
*
|
|
83
|
+
* export const sheetBatchTemplates = e3.record("sheet_batch_templates", DictType(StringType, BatchTemplate), {
|
|
84
|
+
* initial: new Map([
|
|
85
|
+
* ["finishing", { name: "Finishing batch", group: "Batches", batch: "Finishing", steps: [
|
|
86
|
+
* { task: "Sand", qty: none, parts: [], bookings: [] },
|
|
87
|
+
* { task: "Seal", qty: none, parts: [], bookings: [] },
|
|
88
|
+
* { task: "Spray", qty: none, parts: [], bookings: [] },
|
|
89
|
+
* ] }],
|
|
90
|
+
* ]),
|
|
91
|
+
* indexes: (index) => ({
|
|
92
|
+
* // The batch templates by their group: what the rail narrows them by.
|
|
93
|
+
* sheet_batch_templates_by_group: index.on(["group"]),
|
|
94
|
+
* }),
|
|
95
|
+
* });
|
|
81
96
|
*
|
|
82
97
|
* const sheet = East.function([], UIComponentType, (_$) => (
|
|
83
98
|
* <Reactive>{$ => {
|
|
84
|
-
* const days = $.let(Record.bind(sheetBatchDays
|
|
99
|
+
* const days = $.let(Record.bind(sheetBatchDays));
|
|
85
100
|
* const stepTemplates = $.let(Data.bind(sheetBatchStepTemplates));
|
|
86
101
|
* const batchTemplates = $.let(Data.bind(sheetBatchTemplates));
|
|
87
102
|
* // One rail over the templates records, each its own source: they narrow the Rows tab's cards.
|
|
88
103
|
* const slice = $.let(Slice.bindRecords("sheet.batches", {
|
|
89
104
|
* rowTemplates: {
|
|
90
|
-
* source: Data.bindPaged(sheetBatchStepTemplates, { indexes: [
|
|
105
|
+
* source: Data.bindPaged(sheetBatchStepTemplates, { indexes: ["sheet_batch_step_templates_by_group"] }),
|
|
91
106
|
* label: "Step templates", fields: { group: { label: "Group", hints: ["Steps"] } },
|
|
92
107
|
* },
|
|
93
108
|
* groupTemplates: {
|
|
94
|
-
* source: Data.bindPaged(sheetBatchTemplates, { indexes: [
|
|
109
|
+
* source: Data.bindPaged(sheetBatchTemplates, { indexes: ["sheet_batch_templates_by_group"] }),
|
|
95
110
|
* label: "Batch templates", fields: { group: { label: "Group", hints: ["Batches"] } },
|
|
96
111
|
* },
|
|
97
112
|
* }));
|
|
@@ -194,57 +209,72 @@ function textOrBlank(v) {
|
|
|
194
209
|
* export const BatchStep = StructType({ task: StringType, qty: OptionType(FloatType), parts: ArrayType(BatchPart), bookings: ArrayType(BatchBooking) });
|
|
195
210
|
* export const Batch = StructType({ id: StringType, name: StringType, steps: ArrayType(BatchStep) });
|
|
196
211
|
* export const BatchDay = StructType({ batches: ArrayType(Batch) });
|
|
197
|
-
* export const sheetBatchDays = e3.record("sheet_batch_days", DictType(StringType, BatchDay),
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
* {
|
|
201
|
-
* {
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* {
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
* {
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
* {
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
* ]
|
|
218
|
-
*
|
|
212
|
+
* export const sheetBatchDays = e3.record("sheet_batch_days", DictType(StringType, BatchDay), {
|
|
213
|
+
* initial: new Map([
|
|
214
|
+
* ["2026-10-12", { batches: [
|
|
215
|
+
* { id: "B-101", name: "Doors, oak", steps: [
|
|
216
|
+
* { task: "Cut doors", qty: some(12.0), parts: [
|
|
217
|
+
* { id: "B-101-1", code: "CUT", name: "Cut the door blanks", materials: ["Oak veneered board × 6"], station: some("S101") },
|
|
218
|
+
* ], bookings: [variant("labour", { team: "Cutting", people: 1n, hours: 3.0 })] },
|
|
219
|
+
* { task: "Band doors", qty: some(48.0), parts: [], bookings: [variant("equipment", { resource: "Edge bander E201" })] },
|
|
220
|
+
* { task: "Spray doors", qty: some(12.0), parts: [
|
|
221
|
+
* { id: "B-101-3", code: "SPR", name: "Seal and lacquer", materials: ["Sealer", "Matt lacquer"], station: none },
|
|
222
|
+
* ], bookings: [] },
|
|
223
|
+
* ] },
|
|
224
|
+
* { id: "B-102", name: "Carcasses, birch", steps: [
|
|
225
|
+
* { task: "Cut carcasses", qty: some(8.0), parts: [], bookings: [] },
|
|
226
|
+
* { task: "Drill carcasses", qty: some(8.0), parts: [], bookings: [variant("labour", { team: "Machining", people: 2n, hours: 2.5 })] },
|
|
227
|
+
* ] },
|
|
228
|
+
* { id: "B-103", name: "Shelves, ash", steps: [
|
|
229
|
+
* { task: "Cut shelves", qty: some(20.0), parts: [], bookings: [] },
|
|
230
|
+
* { task: "Sand shelves", qty: some(20.0), parts: [], bookings: [] },
|
|
231
|
+
* ] },
|
|
232
|
+
* ] }],
|
|
233
|
+
* ]),
|
|
234
|
+
* mutations: (mutation) => ({
|
|
235
|
+
* // The days' patch door — every Save commits through it.
|
|
236
|
+
* patch: mutation.patch(),
|
|
237
|
+
* }),
|
|
238
|
+
* });
|
|
219
239
|
* export const BatchStepTemplate = StructType({ name: StringType, group: StringType, task: StringType });
|
|
220
|
-
* export const sheetBatchStepTemplates = e3.record("sheet_batch_step_templates", DictType(StringType, BatchStepTemplate),
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
* ]
|
|
224
|
-
*
|
|
240
|
+
* export const sheetBatchStepTemplates = e3.record("sheet_batch_step_templates", DictType(StringType, BatchStepTemplate), {
|
|
241
|
+
* initial: new Map([
|
|
242
|
+
* ["sand", { name: "Sand", group: "Steps", task: "Sand" }],
|
|
243
|
+
* ["seal", { name: "Seal", group: "Steps", task: "Seal" }],
|
|
244
|
+
* ]),
|
|
245
|
+
* indexes: (index) => ({
|
|
246
|
+
* // The step templates by their group: what the rail narrows them by.
|
|
247
|
+
* sheet_batch_step_templates_by_group: index.on(["group"]),
|
|
248
|
+
* }),
|
|
249
|
+
* });
|
|
225
250
|
* export const BatchTemplate = StructType({ name: StringType, group: StringType, batch: StringType, steps: ArrayType(BatchStep) });
|
|
226
|
-
* export const sheetBatchTemplates = e3.record("sheet_batch_templates", DictType(StringType, BatchTemplate),
|
|
227
|
-
*
|
|
228
|
-
* {
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
* ]
|
|
233
|
-
*
|
|
251
|
+
* export const sheetBatchTemplates = e3.record("sheet_batch_templates", DictType(StringType, BatchTemplate), {
|
|
252
|
+
* initial: new Map([
|
|
253
|
+
* ["finishing", { name: "Finishing batch", group: "Batches", batch: "Finishing", steps: [
|
|
254
|
+
* { task: "Sand", qty: none, parts: [], bookings: [] },
|
|
255
|
+
* { task: "Seal", qty: none, parts: [], bookings: [] },
|
|
256
|
+
* { task: "Spray", qty: none, parts: [], bookings: [] },
|
|
257
|
+
* ] }],
|
|
258
|
+
* ]),
|
|
259
|
+
* indexes: (index) => ({
|
|
260
|
+
* // The batch templates by their group: what the rail narrows them by.
|
|
261
|
+
* sheet_batch_templates_by_group: index.on(["group"]),
|
|
262
|
+
* }),
|
|
263
|
+
* });
|
|
234
264
|
*
|
|
235
265
|
* const sheet = East.function([], UIComponentType, (_$) => (
|
|
236
266
|
* <Reactive>{$ => {
|
|
237
|
-
* const days = $.let(Record.bind(sheetBatchDays
|
|
267
|
+
* const days = $.let(Record.bind(sheetBatchDays));
|
|
238
268
|
* const stepTemplates = $.let(Data.bind(sheetBatchStepTemplates));
|
|
239
269
|
* const batchTemplates = $.let(Data.bind(sheetBatchTemplates));
|
|
240
270
|
* // One rail over the templates records, each its own source: they narrow the Rows tab's cards.
|
|
241
271
|
* const slice = $.let(Slice.bindRecords("sheet.batches", {
|
|
242
272
|
* rowTemplates: {
|
|
243
|
-
* source: Data.bindPaged(sheetBatchStepTemplates, { indexes: [
|
|
273
|
+
* source: Data.bindPaged(sheetBatchStepTemplates, { indexes: ["sheet_batch_step_templates_by_group"] }),
|
|
244
274
|
* label: "Step templates", fields: { group: { label: "Group", hints: ["Steps"] } },
|
|
245
275
|
* },
|
|
246
276
|
* groupTemplates: {
|
|
247
|
-
* source: Data.bindPaged(sheetBatchTemplates, { indexes: [
|
|
277
|
+
* source: Data.bindPaged(sheetBatchTemplates, { indexes: ["sheet_batch_templates_by_group"] }),
|
|
248
278
|
* label: "Batch templates", fields: { group: { label: "Group", hints: ["Batches"] } },
|
|
249
279
|
* },
|
|
250
280
|
* }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sub-rows.js","sourceRoot":"","sources":["../../../src/sheet/sub-rows.ts"],"names":[],"mapp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