@elaraai/e3-ui 1.0.98 → 1.0.100
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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.examples.d.ts","sourceRoot":"","sources":["../../../../test/bind/record/record.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAQ,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAW,MAAM,eAAe,CAAC;AAQlH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"record.examples.d.ts","sourceRoot":"","sources":["../../../../test/bind/record/record.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAQ,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAW,MAAM,eAAe,CAAC;AAQlH,eAAO,MAAM,OAAO;;;;gBAWlB,CAAC;AAEH,eAAO,MAAM,gBAAgB,6CAwC3B,CAAC;AAEH,eAAO,MAAM,gBAAgB,6CAsB3B,CAAC;AAIH,eAAO,MAAM,OAAO;;;EAAqD,CAAC;AAC1E,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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import e3 from "@elaraai/e3";
|
|
|
11
11
|
// The package-side record + mutation definitions. `Record.bind` takes the
|
|
12
12
|
// record def + its mutations — the state type, mutation names and arg types
|
|
13
13
|
// all come from them, so the binding can never drift from the deployed record.
|
|
14
|
-
export const counter = e3.record("counter", IntegerType,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
//
|
|
20
|
-
|
|
14
|
+
export const counter = e3.record("counter", IntegerType, {
|
|
15
|
+
initial: 0n,
|
|
16
|
+
mutations: (mutation) => ({
|
|
17
|
+
increment: mutation.reduce(East.function([IntegerType, IntegerType], IntegerType, ($, state, by) => state.add(by))),
|
|
18
|
+
reset: mutation.reduce(East.function([IntegerType], IntegerType, (_$, _state) => 0n)),
|
|
19
|
+
// What the record runtime's specs write beside them (#1378): a take off the
|
|
20
|
+
// counter that refuses to leave it below zero, so a mutation fails as a
|
|
21
|
+
// reducer's program does.
|
|
22
|
+
take: mutation.reduce(East.function([IntegerType, IntegerType], IntegerType, (_$, state, n) => East.less(state, n).ifElse(() => East.error("the counter holds fewer than that"), () => state.subtract(n)))),
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
21
25
|
export const recordBindMutate = example({
|
|
22
26
|
keywords: ["Record", "bind", "mutate", "Reactive", "Button", "read", "pending", "status", "system of record"],
|
|
23
27
|
description: "Bind an e3.record + its mutations; buttons apply typed mutations, a stat shows the current state, and the mutate lifecycle status is rendered",
|
|
24
28
|
fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
|
|
25
|
-
const r = $.let(Record.bind(counter, [increment, reset]));
|
|
29
|
+
const r = $.let(Record.bind(counter, ["increment", "reset"]));
|
|
26
30
|
const status = $.let(r.mutate.status().getTag().upperCase());
|
|
27
31
|
// Surface the failure detail so a failed mutation shows WHY, not just
|
|
28
32
|
// that it failed.
|
|
@@ -50,7 +54,7 @@ export const recordBindStatus = example({
|
|
|
50
54
|
keywords: ["Record", "bind", "status", "error", "lifecycle", "mutate"],
|
|
51
55
|
description: "Render the mutation lifecycle (idle / running / committed / failed / cancelled) and any failure",
|
|
52
56
|
fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
|
|
53
|
-
const r = $.let(Record.bind(counter, [increment]));
|
|
57
|
+
const r = $.let(Record.bind(counter, ["increment"]));
|
|
54
58
|
const bump = $.const(East.function([], NullType, $ => { $(r.mutate.increment(1n)); }));
|
|
55
59
|
const statusLine = $.let(r.mutate.status().getTag().upperCase());
|
|
56
60
|
const detail = $.let(r.mutate.error().match({
|
|
@@ -64,34 +68,50 @@ export const recordBindStatus = example({
|
|
|
64
68
|
// A keyed record a Sheet edits — each job's key is its id — and its patch
|
|
65
69
|
// door, which every Save commits through.
|
|
66
70
|
export const JobType = StructType({ task: StringType, qty: IntegerType });
|
|
67
|
-
export const jobs = e3.record("jobs", DictType(StringType, JobType),
|
|
68
|
-
|
|
71
|
+
export const jobs = e3.record("jobs", DictType(StringType, JobType), {
|
|
72
|
+
initial: new Map(),
|
|
73
|
+
mutations: (mutation) => ({
|
|
74
|
+
patch: mutation.patch(),
|
|
75
|
+
}),
|
|
76
|
+
});
|
|
69
77
|
// The records `Record.onApply`'s specs commit through beside the jobs (#1378),
|
|
70
78
|
// each through its patch door: jobs whose index refuses a quantity below zero,
|
|
71
79
|
// so a write fails as an index's program does; a page whose cells a layout
|
|
72
80
|
// edits inside its one entry; and a week whose groups and loose tasks a Sheet
|
|
73
81
|
// edits inside its entry.
|
|
74
|
-
export const checkedJobs = e3.record("checked_jobs", DictType(StringType, JobType),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
82
|
+
export const checkedJobs = e3.record("checked_jobs", DictType(StringType, JobType), {
|
|
83
|
+
initial: new Map(),
|
|
84
|
+
indexes: (index) => ({
|
|
85
|
+
checked_jobs_by_qty: index.key(East.function([StringType, JobType], IntegerType, (_$, _id, job) => East.less(job.qty, 0n).ifElse(() => East.error("a job's quantity is never below zero"), () => job.qty))),
|
|
86
|
+
}),
|
|
87
|
+
mutations: (mutation) => ({
|
|
88
|
+
patch: mutation.patch(),
|
|
89
|
+
}),
|
|
78
90
|
});
|
|
79
91
|
export const CellType = StructType({ key: StringType, span: IntegerType });
|
|
80
92
|
export const PageType = StructType({ title: StringType, cells: ArrayType(CellType) });
|
|
81
|
-
export const layoutPages = e3.record("layout_pages", DictType(StringType, PageType),
|
|
82
|
-
|
|
93
|
+
export const layoutPages = e3.record("layout_pages", DictType(StringType, PageType), {
|
|
94
|
+
initial: new Map(),
|
|
95
|
+
mutations: (mutation) => ({
|
|
96
|
+
patch: mutation.patch(),
|
|
97
|
+
}),
|
|
98
|
+
});
|
|
83
99
|
export const WeekLineType = StructType({ id: StringType, task: StringType });
|
|
84
100
|
export const WeekGroupType = StructType({ id: StringType, name: StringType, lines: ArrayType(WeekLineType) });
|
|
85
101
|
export const WeekEntryType = Editing.Types.Entry(WeekGroupType, "lines");
|
|
86
102
|
export const WeekType = StructType({ title: StringType, entries: ArrayType(WeekEntryType) });
|
|
87
|
-
export const plannedWeeks = e3.record("planned_weeks", DictType(StringType, WeekType),
|
|
88
|
-
|
|
103
|
+
export const plannedWeeks = e3.record("planned_weeks", DictType(StringType, WeekType), {
|
|
104
|
+
initial: new Map(),
|
|
105
|
+
mutations: (mutation) => ({
|
|
106
|
+
patch: mutation.patch(),
|
|
107
|
+
}),
|
|
108
|
+
});
|
|
89
109
|
export const recordSheetApply = example({
|
|
90
110
|
keywords: ["Record", "onApply", "Sheet", "Save", "patch", "commit", "conflict", "discard", "bindPaged", "editing", "system of record"],
|
|
91
111
|
description: "A Sheet over a record: its rows paged from the record, each Save one commit through the record's patch door — a stale Save is a conflict naming the entry, and nothing is overwritten",
|
|
92
112
|
fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
|
|
93
113
|
const rows = $.let(Data.bindPaged(jobs));
|
|
94
|
-
const record = $.let(Record.bind(jobs
|
|
114
|
+
const record = $.let(Record.bind(jobs));
|
|
95
115
|
return (_jsx(Box, { height: "360px", children: _jsx(Sheet, { data: rows, columns: {
|
|
96
116
|
task: Sheet.column.text(JobType, { header: "Task", width: "220px" }),
|
|
97
117
|
qty: Sheet.column.integer(JobType, { header: "Qty", width: "96px" }),
|
|
@@ -103,7 +123,7 @@ export const recordBindHistory = example({
|
|
|
103
123
|
keywords: ["Record", "bind", "history", "audit", "commit", "chain"],
|
|
104
124
|
description: "Read the record's commit history (the audit trail) alongside its current value",
|
|
105
125
|
fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
|
|
106
|
-
const r = $.let(Record.bind(counter, [increment]));
|
|
126
|
+
const r = $.let(Record.bind(counter, ["increment"]));
|
|
107
127
|
const count = $.let(r.history().match({
|
|
108
128
|
some: (_$, commits) => commits.size(),
|
|
109
129
|
none: _$ => 0n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.examples.js","sourceRoot":"","sources":["../../../../test/bind/record/record.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClH,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/G,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,aAAa,CAAC;AAE7B,0EAA0E;AAC1E,4EAA4E;AAC5E,+EAA+E;AAC/E,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"record.examples.js","sourceRoot":"","sources":["../../../../test/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,CAAC,GAAG,CAAA,GAAG,KAAK,UAAU,GAAkB,IACxD,CACZ,CAAC;QACN,CAAC,GAAY,CAChB,CAAC;IACF,MAAM,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -21,208 +21,200 @@ export declare const indexedCalendarEvents: e3.RecordDef<DictType<StringType, St
|
|
|
21
21
|
readonly machine: StringType;
|
|
22
22
|
readonly status: StringType;
|
|
23
23
|
readonly customer: StringType;
|
|
24
|
-
}>>, [variant<"field", "records">, variant<"field", "indexed_calendar_events">]
|
|
25
|
-
|
|
24
|
+
}>>, [variant<"field", "records">, variant<"field", "indexed_calendar_events">], e3.IndexesOf<{
|
|
25
|
+
calendar_by_time: e3.IndexDraft<StructType<{
|
|
26
|
+
on: StructType<Record<never, never>>;
|
|
27
|
+
node: import("@elaraai/east").IntegerType;
|
|
28
|
+
at: OptionType<DateTimeType>;
|
|
29
|
+
}>, import("@elaraai/east").NullType, readonly [], {
|
|
30
|
+
readonly interval: {
|
|
31
|
+
readonly from: "start";
|
|
32
|
+
readonly to: "end";
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
calendar_by_status_time: e3.IndexDraft<StructType<{
|
|
36
|
+
on: StructType<{
|
|
37
|
+
status: StringType;
|
|
38
|
+
}>;
|
|
39
|
+
node: import("@elaraai/east").IntegerType;
|
|
40
|
+
at: OptionType<DateTimeType>;
|
|
41
|
+
}>, import("@elaraai/east").NullType, readonly ["status"], {
|
|
42
|
+
readonly interval: {
|
|
43
|
+
readonly from: "start";
|
|
44
|
+
readonly to: "end";
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
calendar_by_machine_time: e3.IndexDraft<StructType<{
|
|
48
|
+
on: StructType<{
|
|
49
|
+
machine: StringType;
|
|
50
|
+
}>;
|
|
51
|
+
node: import("@elaraai/east").IntegerType;
|
|
52
|
+
at: OptionType<DateTimeType>;
|
|
53
|
+
}>, import("@elaraai/east").NullType, readonly ["machine"], {
|
|
54
|
+
readonly interval: {
|
|
55
|
+
readonly from: "start";
|
|
56
|
+
readonly to: "end";
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
}, DictType<StringType, StructType<{
|
|
26
60
|
readonly title: StringType;
|
|
27
61
|
readonly start: OptionType<DateTimeType>;
|
|
28
62
|
readonly end: OptionType<DateTimeType>;
|
|
29
63
|
readonly machine: StringType;
|
|
30
64
|
readonly status: StringType;
|
|
31
65
|
readonly customer: StringType;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
patch: DictType<StringType, import("@elaraai/east").VariantType<{
|
|
53
|
-
delete: StructType<{
|
|
54
|
-
readonly title: StringType;
|
|
55
|
-
readonly start: OptionType<DateTimeType>;
|
|
56
|
-
readonly end: OptionType<DateTimeType>;
|
|
57
|
-
readonly machine: StringType;
|
|
58
|
-
readonly status: StringType;
|
|
59
|
-
readonly customer: StringType;
|
|
60
|
-
}>;
|
|
61
|
-
insert: StructType<{
|
|
62
|
-
readonly title: StringType;
|
|
63
|
-
readonly start: OptionType<DateTimeType>;
|
|
64
|
-
readonly end: OptionType<DateTimeType>;
|
|
65
|
-
readonly machine: StringType;
|
|
66
|
-
readonly status: StringType;
|
|
67
|
-
readonly customer: StringType;
|
|
66
|
+
}>>>, e3.MutationsOf<{
|
|
67
|
+
patch: e3.MutationDraft<[import("@elaraai/east").VariantType<{
|
|
68
|
+
unchanged: import("@elaraai/east").NullType;
|
|
69
|
+
replace: StructType<{
|
|
70
|
+
before: DictType<StringType, StructType<{
|
|
71
|
+
readonly title: StringType;
|
|
72
|
+
readonly start: OptionType<DateTimeType>;
|
|
73
|
+
readonly end: OptionType<DateTimeType>;
|
|
74
|
+
readonly machine: StringType;
|
|
75
|
+
readonly status: StringType;
|
|
76
|
+
readonly customer: StringType;
|
|
77
|
+
}>>;
|
|
78
|
+
after: DictType<StringType, StructType<{
|
|
79
|
+
readonly title: StringType;
|
|
80
|
+
readonly start: OptionType<DateTimeType>;
|
|
81
|
+
readonly end: OptionType<DateTimeType>;
|
|
82
|
+
readonly machine: StringType;
|
|
83
|
+
readonly status: StringType;
|
|
84
|
+
readonly customer: StringType;
|
|
85
|
+
}>>;
|
|
68
86
|
}>;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
readonly status: StringType;
|
|
78
|
-
readonly customer: StringType;
|
|
79
|
-
}>;
|
|
80
|
-
after: StructType<{
|
|
81
|
-
readonly title: StringType;
|
|
82
|
-
readonly start: OptionType<DateTimeType>;
|
|
83
|
-
readonly end: OptionType<DateTimeType>;
|
|
84
|
-
readonly machine: StringType;
|
|
85
|
-
readonly status: StringType;
|
|
86
|
-
readonly customer: StringType;
|
|
87
|
-
}>;
|
|
87
|
+
patch: DictType<StringType, import("@elaraai/east").VariantType<{
|
|
88
|
+
delete: StructType<{
|
|
89
|
+
readonly title: StringType;
|
|
90
|
+
readonly start: OptionType<DateTimeType>;
|
|
91
|
+
readonly end: OptionType<DateTimeType>;
|
|
92
|
+
readonly machine: StringType;
|
|
93
|
+
readonly status: StringType;
|
|
94
|
+
readonly customer: StringType;
|
|
88
95
|
}>;
|
|
89
|
-
|
|
90
|
-
readonly title:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
insert: StructType<{
|
|
97
|
+
readonly title: StringType;
|
|
98
|
+
readonly start: OptionType<DateTimeType>;
|
|
99
|
+
readonly end: OptionType<DateTimeType>;
|
|
100
|
+
readonly machine: StringType;
|
|
101
|
+
readonly status: StringType;
|
|
102
|
+
readonly customer: StringType;
|
|
103
|
+
}>;
|
|
104
|
+
update: import("@elaraai/east").VariantType<{
|
|
105
|
+
unchanged: import("@elaraai/east").NullType;
|
|
106
|
+
replace: StructType<{
|
|
107
|
+
before: StructType<{
|
|
108
|
+
readonly title: StringType;
|
|
109
|
+
readonly start: OptionType<DateTimeType>;
|
|
110
|
+
readonly end: OptionType<DateTimeType>;
|
|
111
|
+
readonly machine: StringType;
|
|
112
|
+
readonly status: StringType;
|
|
113
|
+
readonly customer: StringType;
|
|
114
|
+
}>;
|
|
115
|
+
after: StructType<{
|
|
116
|
+
readonly title: StringType;
|
|
117
|
+
readonly start: OptionType<DateTimeType>;
|
|
118
|
+
readonly end: OptionType<DateTimeType>;
|
|
119
|
+
readonly machine: StringType;
|
|
120
|
+
readonly status: StringType;
|
|
121
|
+
readonly customer: StringType;
|
|
95
122
|
}>;
|
|
96
123
|
}>;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
124
|
+
patch: StructType<{
|
|
125
|
+
readonly title: import("@elaraai/east").VariantType<{
|
|
126
|
+
unchanged: import("@elaraai/east").NullType;
|
|
127
|
+
replace: StructType<{
|
|
128
|
+
before: StringType;
|
|
129
|
+
after: StringType;
|
|
130
|
+
}>;
|
|
102
131
|
}>;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
after: import("@elaraai/east").NullType;
|
|
109
|
-
}>;
|
|
132
|
+
readonly start: import("@elaraai/east").VariantType<{
|
|
133
|
+
unchanged: import("@elaraai/east").NullType;
|
|
134
|
+
replace: StructType<{
|
|
135
|
+
before: OptionType<DateTimeType>;
|
|
136
|
+
after: OptionType<DateTimeType>;
|
|
110
137
|
}>;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
138
|
+
patch: import("@elaraai/east").VariantType<{
|
|
139
|
+
none: import("@elaraai/east").VariantType<{
|
|
140
|
+
unchanged: import("@elaraai/east").NullType;
|
|
141
|
+
replace: StructType<{
|
|
142
|
+
before: import("@elaraai/east").NullType;
|
|
143
|
+
after: import("@elaraai/east").NullType;
|
|
144
|
+
}>;
|
|
145
|
+
}>;
|
|
146
|
+
some: import("@elaraai/east").VariantType<{
|
|
147
|
+
unchanged: import("@elaraai/east").NullType;
|
|
148
|
+
replace: StructType<{
|
|
149
|
+
before: DateTimeType;
|
|
150
|
+
after: DateTimeType;
|
|
151
|
+
}>;
|
|
116
152
|
}>;
|
|
117
153
|
}>;
|
|
118
154
|
}>;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
after: OptionType<DateTimeType>;
|
|
125
|
-
}>;
|
|
126
|
-
patch: import("@elaraai/east").VariantType<{
|
|
127
|
-
none: import("@elaraai/east").VariantType<{
|
|
128
|
-
unchanged: import("@elaraai/east").NullType;
|
|
129
|
-
replace: StructType<{
|
|
130
|
-
before: import("@elaraai/east").NullType;
|
|
131
|
-
after: import("@elaraai/east").NullType;
|
|
132
|
-
}>;
|
|
155
|
+
readonly end: import("@elaraai/east").VariantType<{
|
|
156
|
+
unchanged: import("@elaraai/east").NullType;
|
|
157
|
+
replace: StructType<{
|
|
158
|
+
before: OptionType<DateTimeType>;
|
|
159
|
+
after: OptionType<DateTimeType>;
|
|
133
160
|
}>;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
161
|
+
patch: import("@elaraai/east").VariantType<{
|
|
162
|
+
none: import("@elaraai/east").VariantType<{
|
|
163
|
+
unchanged: import("@elaraai/east").NullType;
|
|
164
|
+
replace: StructType<{
|
|
165
|
+
before: import("@elaraai/east").NullType;
|
|
166
|
+
after: import("@elaraai/east").NullType;
|
|
167
|
+
}>;
|
|
168
|
+
}>;
|
|
169
|
+
some: import("@elaraai/east").VariantType<{
|
|
170
|
+
unchanged: import("@elaraai/east").NullType;
|
|
171
|
+
replace: StructType<{
|
|
172
|
+
before: DateTimeType;
|
|
173
|
+
after: DateTimeType;
|
|
174
|
+
}>;
|
|
139
175
|
}>;
|
|
140
176
|
}>;
|
|
141
177
|
}>;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
178
|
+
readonly machine: import("@elaraai/east").VariantType<{
|
|
179
|
+
unchanged: import("@elaraai/east").NullType;
|
|
180
|
+
replace: StructType<{
|
|
181
|
+
before: StringType;
|
|
182
|
+
after: StringType;
|
|
183
|
+
}>;
|
|
148
184
|
}>;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
185
|
+
readonly status: import("@elaraai/east").VariantType<{
|
|
186
|
+
unchanged: import("@elaraai/east").NullType;
|
|
187
|
+
replace: StructType<{
|
|
188
|
+
before: StringType;
|
|
189
|
+
after: StringType;
|
|
190
|
+
}>;
|
|
155
191
|
}>;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
192
|
+
readonly customer: import("@elaraai/east").VariantType<{
|
|
193
|
+
unchanged: import("@elaraai/east").NullType;
|
|
194
|
+
replace: StructType<{
|
|
195
|
+
before: StringType;
|
|
196
|
+
after: StringType;
|
|
197
|
+
}>;
|
|
162
198
|
}>;
|
|
163
199
|
}>;
|
|
164
200
|
}>;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
export declare const indexedCalendarByTime: e3.RecordIndexDef<"calendar_by_time", DictType<StringType, StructType<{
|
|
169
|
-
readonly title: StringType;
|
|
170
|
-
readonly start: OptionType<DateTimeType>;
|
|
171
|
-
readonly end: OptionType<DateTimeType>;
|
|
172
|
-
readonly machine: StringType;
|
|
173
|
-
readonly status: StringType;
|
|
174
|
-
readonly customer: StringType;
|
|
175
|
-
}>>, StructType<Record<never, never> & {
|
|
176
|
-
__interval: import("@elaraai/east").IntegerType;
|
|
177
|
-
} & {
|
|
178
|
-
start: OptionType<DateTimeType>;
|
|
179
|
-
}>, import("@elaraai/east").NullType, readonly ["start"]> & {
|
|
180
|
-
interval: {
|
|
181
|
-
readonly from: "start";
|
|
182
|
-
readonly to: "end";
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
export declare const indexedCalendarByStatus: e3.RecordIndexDef<"calendar_by_status_time", DictType<StringType, StructType<{
|
|
186
|
-
readonly title: StringType;
|
|
187
|
-
readonly start: OptionType<DateTimeType>;
|
|
188
|
-
readonly end: OptionType<DateTimeType>;
|
|
189
|
-
readonly machine: StringType;
|
|
190
|
-
readonly status: StringType;
|
|
191
|
-
readonly customer: StringType;
|
|
192
|
-
}>>, StructType<{
|
|
193
|
-
status: StringType;
|
|
194
|
-
} & {
|
|
195
|
-
__interval: import("@elaraai/east").IntegerType;
|
|
196
|
-
} & {
|
|
197
|
-
start: OptionType<DateTimeType>;
|
|
198
|
-
}>, import("@elaraai/east").NullType, readonly ["status", "start"]> & {
|
|
199
|
-
interval: {
|
|
200
|
-
readonly from: "start";
|
|
201
|
-
readonly to: "end";
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
export declare const indexedCalendarByMachine: e3.RecordIndexDef<"calendar_by_machine_time", DictType<StringType, StructType<{
|
|
201
|
+
}>>;
|
|
202
|
+
}>]>;
|
|
203
|
+
}, DictType<StringType, StructType<{
|
|
205
204
|
readonly title: StringType;
|
|
206
205
|
readonly start: OptionType<DateTimeType>;
|
|
207
206
|
readonly end: OptionType<DateTimeType>;
|
|
208
207
|
readonly machine: StringType;
|
|
209
208
|
readonly status: StringType;
|
|
210
209
|
readonly customer: StringType;
|
|
211
|
-
}
|
|
212
|
-
machine: StringType;
|
|
213
|
-
} & {
|
|
214
|
-
__interval: import("@elaraai/east").IntegerType;
|
|
215
|
-
} & {
|
|
216
|
-
start: OptionType<DateTimeType>;
|
|
217
|
-
}>, import("@elaraai/east").NullType, readonly ["machine", "start"]> & {
|
|
218
|
-
interval: {
|
|
219
|
-
readonly from: "start";
|
|
220
|
-
readonly to: "end";
|
|
221
|
-
};
|
|
222
|
-
};
|
|
210
|
+
}>>>>;
|
|
223
211
|
export declare const indexedCalendarMachines: e3.RecordDef<DictType<StringType, StructType<{
|
|
224
212
|
readonly name: StringType;
|
|
225
|
-
}>>, [variant<"field", "records">, variant<"field", "indexed_calendar_machines">]
|
|
213
|
+
}>>, [variant<"field", "records">, variant<"field", "indexed_calendar_machines">], e3.IndexesOf<Record<never, never>, DictType<StringType, StructType<{
|
|
214
|
+
readonly name: StringType;
|
|
215
|
+
}>>>, e3.MutationsOf<Record<never, never>, DictType<StringType, StructType<{
|
|
216
|
+
readonly name: StringType;
|
|
217
|
+
}>>>>;
|
|
226
218
|
export declare const calendarRecordIndexes: import("@elaraai/east").ExampleDef<[], any>;
|
|
227
219
|
export declare const calendarRecordIndexesMobile: import("@elaraai/east").ExampleDef<[], any>;
|
|
228
220
|
//# sourceMappingURL=calendar-records.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-records.examples.d.ts","sourceRoot":"","sources":["../../../test/calendar/calendar-records.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AACtC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAQ,UAAU,EAAE,UAAU,EAAE,UAAU,EAAuB,OAAO,EAAoB,MAAM,eAAe,CAAC;AAGjJ,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAElC,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB;;;;;;;EAG/B,CAAC;AA0BH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"calendar-records.examples.d.ts","sourceRoot":"","sources":["../../../test/calendar/calendar-records.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AACtC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAQ,UAAU,EAAE,UAAU,EAAE,UAAU,EAAuB,OAAO,EAAoB,MAAM,eAAe,CAAC;AAGjJ,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAElC,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB;;;;;;;EAG/B,CAAC;AA0BH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAUhC,CAAC;AACH,eAAO,MAAM,uBAAuB;;;;;;KAIlC,CAAC;AAEH,eAAO,MAAM,qBAAqB,6CA4BhC,CAAC;AAEH,eAAO,MAAM,2BAA2B,6CA4BtC,CAAC"}
|
|
@@ -38,22 +38,30 @@ function calendarSeed() {
|
|
|
38
38
|
}
|
|
39
39
|
return rows;
|
|
40
40
|
}
|
|
41
|
-
export const indexedCalendarEvents = e3.record("indexed_calendar_events", DictType(StringType, IndexedCalendarEvent),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
export const indexedCalendarEvents = e3.record("indexed_calendar_events", DictType(StringType, IndexedCalendarEvent), {
|
|
42
|
+
initial: calendarSeed(),
|
|
43
|
+
indexes: (index) => ({
|
|
44
|
+
calendar_by_time: index.interval({ from: "start", to: "end" }),
|
|
45
|
+
calendar_by_status_time: index.interval({ on: ["status"], from: "start", to: "end" }),
|
|
46
|
+
calendar_by_machine_time: index.interval({ on: ["machine"], from: "start", to: "end" }),
|
|
47
|
+
}),
|
|
48
|
+
mutations: (mutation) => ({
|
|
49
|
+
patch: mutation.patch(),
|
|
50
|
+
}),
|
|
51
|
+
});
|
|
52
|
+
export const indexedCalendarMachines = e3.record("indexed_calendar_machines", DictType(StringType, StructType({ name: StringType })), {
|
|
53
|
+
initial: new Map([
|
|
54
|
+
["press-a", { name: "Press A" }], ["press-b", { name: "Press B" }],
|
|
55
|
+
]),
|
|
56
|
+
});
|
|
49
57
|
export const calendarRecordIndexes = example({
|
|
50
58
|
description: "12,000 events across a year, narrowed through interval indexes. The opening days demonstrate carry-in and year-long events; navigate to other dates for the larger production schedule. Filters and navigation share Slice, and drafts save by original key.",
|
|
51
59
|
keywords: ["Calendar", "Slice", "Slice.bindRecords", "interval", "overlap", "records", "paging"],
|
|
52
60
|
inputs: [],
|
|
53
61
|
fn: East.function([], UIComponentType, _$ => _jsx(Reactive, { children: $ => {
|
|
54
|
-
const events = $.let(Record.bind(indexedCalendarEvents
|
|
62
|
+
const events = $.let(Record.bind(indexedCalendarEvents));
|
|
55
63
|
const entries = $.let(Data.bindPaged(indexedCalendarEvents));
|
|
56
|
-
const indexed = $.let(Data.bindPaged(indexedCalendarEvents, { indexes: [
|
|
64
|
+
const indexed = $.let(Data.bindPaged(indexedCalendarEvents, { indexes: ["calendar_by_time", "calendar_by_status_time", "calendar_by_machine_time"] }));
|
|
57
65
|
// The rail's one source, named after the kind it narrows (#1343): its interval indexes keep every overlapping event.
|
|
58
66
|
const slice = $.let(Slice.bindRecords("ex.calendarRecordIndexes", {
|
|
59
67
|
job: { source: indexed, icon: { prefix: "fas", name: "print" },
|
|
@@ -74,9 +82,9 @@ export const calendarRecordIndexesMobile = example({
|
|
|
74
82
|
keywords: ["Calendar", "Slice", "Slice.bindRecords", "interval", "mobile", "agenda"],
|
|
75
83
|
inputs: [],
|
|
76
84
|
fn: East.function([], UIComponentType, _$ => _jsx(Reactive, { children: $ => {
|
|
77
|
-
const events = $.let(Record.bind(indexedCalendarEvents
|
|
85
|
+
const events = $.let(Record.bind(indexedCalendarEvents));
|
|
78
86
|
const entries = $.let(Data.bindPaged(indexedCalendarEvents));
|
|
79
|
-
const indexed = $.let(Data.bindPaged(indexedCalendarEvents, { indexes: [
|
|
87
|
+
const indexed = $.let(Data.bindPaged(indexedCalendarEvents, { indexes: ["calendar_by_time", "calendar_by_status_time", "calendar_by_machine_time"] }));
|
|
80
88
|
// The rail's one source, named after the kind it narrows (#1343): its interval indexes keep every overlapping event.
|
|
81
89
|
const slice = $.let(Slice.bindRecords("ex.calendarRecordIndexesMobile", {
|
|
82
90
|
job: { source: indexed, icon: { prefix: "fas", name: "print" },
|