@elaraai/e3-ui 1.0.103 → 1.0.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/allocation/functions.d.ts +2 -1
- package/dist/src/allocation/functions.d.ts.map +1 -1
- package/dist/src/allocation/functions.js +3 -2
- package/dist/src/allocation/functions.js.map +1 -1
- package/dist/src/allocation/index.d.ts +120 -1
- package/dist/src/allocation/index.d.ts.map +1 -1
- package/dist/src/allocation/index.js +24 -4
- package/dist/src/allocation/index.js.map +1 -1
- package/dist/src/bind/data-indexed.d.ts +25 -4
- package/dist/src/bind/data-indexed.d.ts.map +1 -1
- package/dist/src/bind/data-indexed.js +58 -7
- package/dist/src/bind/data-indexed.js.map +1 -1
- package/dist/src/bind/data.d.ts +12 -14
- package/dist/src/bind/data.d.ts.map +1 -1
- package/dist/src/bind/data.js +11 -11
- package/dist/src/bind/data.js.map +1 -1
- package/dist/src/bind/func.d.ts +7 -2
- package/dist/src/bind/func.d.ts.map +1 -1
- package/dist/src/bind/func.js +10 -3
- package/dist/src/bind/func.js.map +1 -1
- package/dist/src/calendar/index.d.ts +148 -1
- package/dist/src/calendar/index.d.ts.map +1 -1
- package/dist/src/calendar/index.js +55 -5
- package/dist/src/calendar/index.js.map +1 -1
- package/dist/src/flowchart/canvas.d.ts +32 -14
- package/dist/src/flowchart/canvas.d.ts.map +1 -1
- package/dist/src/flowchart/canvas.js +21 -6
- package/dist/src/flowchart/canvas.js.map +1 -1
- package/dist/src/flowchart/details.d.ts +469 -0
- package/dist/src/flowchart/details.d.ts.map +1 -0
- package/dist/src/flowchart/details.js +1035 -0
- package/dist/src/flowchart/details.js.map +1 -0
- package/dist/src/flowchart/flowchart.d.ts +16 -72
- package/dist/src/flowchart/flowchart.d.ts.map +1 -1
- package/dist/src/flowchart/flowchart.js +10 -1
- package/dist/src/flowchart/flowchart.js.map +1 -1
- package/dist/src/flowchart/index.d.ts +282 -251
- package/dist/src/flowchart/index.d.ts.map +1 -1
- package/dist/src/flowchart/index.js +234 -220
- package/dist/src/flowchart/index.js.map +1 -1
- package/dist/src/flowchart/kinds.d.ts +438 -0
- package/dist/src/flowchart/kinds.d.ts.map +1 -0
- package/dist/src/flowchart/kinds.js +799 -0
- package/dist/src/flowchart/kinds.js.map +1 -0
- package/dist/src/flowchart/library.d.ts +154 -739
- package/dist/src/flowchart/library.d.ts.map +1 -1
- package/dist/src/flowchart/library.js +191 -673
- package/dist/src/flowchart/library.js.map +1 -1
- package/dist/src/flowchart/payload.d.ts +3652 -7843
- package/dist/src/flowchart/payload.d.ts.map +1 -1
- package/dist/src/flowchart/payload.js +331 -469
- package/dist/src/flowchart/payload.js.map +1 -1
- package/dist/src/flowchart/templates.d.ts +657 -0
- package/dist/src/flowchart/templates.d.ts.map +1 -0
- package/dist/src/flowchart/templates.js +658 -0
- package/dist/src/flowchart/templates.js.map +1 -0
- package/dist/src/flowchart/types.d.ts +2258 -214
- package/dist/src/flowchart/types.d.ts.map +1 -1
- package/dist/src/flowchart/types.js +374 -124
- package/dist/src/flowchart/types.js.map +1 -1
- package/dist/src/index.d.ts +13 -15
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +24 -29
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +5 -7
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +12 -19
- package/dist/src/internal.js.map +1 -1
- package/dist/src/ontology/index.d.ts +44 -15
- package/dist/src/ontology/index.d.ts.map +1 -1
- package/dist/src/ontology/index.js +19 -11
- package/dist/src/ontology/index.js.map +1 -1
- package/dist/src/plan/event-rows.d.ts +2 -1
- package/dist/src/plan/event-rows.d.ts.map +1 -1
- package/dist/src/plan/event-rows.js +6 -4
- package/dist/src/plan/event-rows.js.map +1 -1
- package/dist/src/plan/ir.d.ts +1 -0
- package/dist/src/plan/ir.d.ts.map +1 -1
- package/dist/src/plan/plan.d.ts +145 -1
- package/dist/src/plan/plan.d.ts.map +1 -1
- package/dist/src/plan/plan.js +67 -3
- package/dist/src/plan/plan.js.map +1 -1
- package/dist/src/plan/types.d.ts +1 -0
- package/dist/src/plan/types.d.ts.map +1 -1
- package/dist/src/query/builder.d.ts +362 -315
- package/dist/src/query/builder.d.ts.map +1 -1
- package/dist/src/query/builder.js +12 -1
- package/dist/src/query/builder.js.map +1 -1
- package/dist/src/query/index.d.ts +5 -1
- package/dist/src/query/index.d.ts.map +1 -1
- package/dist/src/query/index.js +3 -1
- package/dist/src/query/index.js.map +1 -1
- package/dist/src/roster/fit.d.ts +5 -2
- package/dist/src/roster/fit.d.ts.map +1 -1
- package/dist/src/roster/fit.js +5 -3
- package/dist/src/roster/fit.js.map +1 -1
- package/dist/src/roster/index.d.ts +103 -2
- package/dist/src/roster/index.d.ts.map +1 -1
- package/dist/src/roster/index.js +45 -6
- package/dist/src/roster/index.js.map +1 -1
- package/dist/src/runtime/index.d.ts +1 -3
- package/dist/src/runtime/index.d.ts.map +1 -1
- package/dist/src/runtime/index.js +1 -3
- package/dist/src/runtime/index.js.map +1 -1
- package/dist/src/schedule/record-window.d.ts +1 -0
- package/dist/src/schedule/record-window.d.ts.map +1 -1
- package/dist/src/schematic/index.d.ts +1 -1
- package/dist/src/schematic/index.d.ts.map +1 -1
- package/dist/src/schematic/index.js +1 -1
- package/dist/src/schematic/index.js.map +1 -1
- package/dist/src/schematic/kinds.d.ts +4 -24
- package/dist/src/schematic/kinds.d.ts.map +1 -1
- package/dist/src/schematic/kinds.js +8 -212
- package/dist/src/schematic/kinds.js.map +1 -1
- package/dist/src/schematic/payload.d.ts +140 -1
- package/dist/src/schematic/payload.d.ts.map +1 -1
- package/dist/src/schematic/payload.js +38 -1
- package/dist/src/schematic/payload.js.map +1 -1
- package/dist/src/schematic/types.d.ts.map +1 -1
- package/dist/src/schematic/types.js +4 -36
- package/dist/src/schematic/types.js.map +1 -1
- package/dist/src/schematic/window.d.ts +9 -42
- package/dist/src/schematic/window.d.ts.map +1 -1
- package/dist/src/schematic/window.js +10 -115
- package/dist/src/schematic/window.js.map +1 -1
- package/dist/src/sheet/actions.d.ts +388 -0
- package/dist/src/sheet/actions.d.ts.map +1 -0
- package/dist/src/sheet/actions.js +594 -0
- package/dist/src/sheet/actions.js.map +1 -0
- package/dist/src/sheet/bridge.d.ts +12 -1
- package/dist/src/sheet/bridge.d.ts.map +1 -1
- package/dist/src/sheet/bridge.js +30 -6
- package/dist/src/sheet/bridge.js.map +1 -1
- package/dist/src/sheet/columns.d.ts +5 -2
- package/dist/src/sheet/columns.d.ts.map +1 -1
- package/dist/src/sheet/columns.js.map +1 -1
- package/dist/src/sheet/draft-bridge.d.ts +9 -4
- package/dist/src/sheet/draft-bridge.d.ts.map +1 -1
- package/dist/src/sheet/draft-bridge.js +22 -7
- package/dist/src/sheet/draft-bridge.js.map +1 -1
- package/dist/src/sheet/fields.d.ts +13 -0
- package/dist/src/sheet/fields.d.ts.map +1 -1
- package/dist/src/sheet/fields.js +3 -0
- package/dist/src/sheet/fields.js.map +1 -1
- package/dist/src/sheet/index.d.ts +32 -2
- package/dist/src/sheet/index.d.ts.map +1 -1
- package/dist/src/sheet/index.js +18 -3
- package/dist/src/sheet/index.js.map +1 -1
- package/dist/src/sheet/library.d.ts +8 -0
- package/dist/src/sheet/library.d.ts.map +1 -1
- package/dist/src/sheet/root.d.ts +23 -1
- package/dist/src/sheet/root.d.ts.map +1 -1
- package/dist/src/sheet/root.js +40 -5
- package/dist/src/sheet/root.js.map +1 -1
- package/dist/src/sheet/sheet.d.ts +7843 -4132
- package/dist/src/sheet/sheet.d.ts.map +1 -1
- package/dist/src/sheet/sheet.js +41 -2
- package/dist/src/sheet/sheet.js.map +1 -1
- package/dist/src/sheet/templates.d.ts +4 -0
- package/dist/src/sheet/templates.d.ts.map +1 -1
- package/dist/src/sheet/types.d.ts +12449 -5268
- package/dist/src/sheet/types.d.ts.map +1 -1
- package/dist/src/sheet/types.js +114 -2
- package/dist/src/sheet/types.js.map +1 -1
- package/dist/src/utils/derive.d.ts +1 -1
- package/dist/src/utils/derive.js +1 -1
- package/dist/src/utils/record-kind.d.ts +625 -0
- package/dist/src/utils/record-kind.d.ts.map +1 -0
- package/dist/src/utils/record-kind.js +450 -0
- package/dist/src/utils/record-kind.js.map +1 -0
- package/dist/src/utils/views.d.ts +55 -0
- package/dist/src/utils/views.d.ts.map +1 -0
- package/dist/src/utils/views.js +72 -0
- package/dist/src/utils/views.js.map +1 -0
- package/dist/src/utils/vocabulary.d.ts +48 -0
- package/dist/src/utils/vocabulary.d.ts.map +1 -0
- package/dist/src/utils/vocabulary.js +47 -0
- package/dist/src/utils/vocabulary.js.map +1 -0
- package/dist/test/allocation/allocation.examples.d.ts +2 -0
- package/dist/test/allocation/allocation.examples.d.ts.map +1 -1
- package/dist/test/allocation/allocation.examples.js +81 -2
- package/dist/test/allocation/allocation.examples.js.map +1 -1
- package/dist/test/bind/func/func.examples.d.ts +19 -1
- package/dist/test/bind/func/func.examples.d.ts.map +1 -1
- package/dist/test/bind/func/func.examples.js +36 -1
- package/dist/test/bind/func/func.examples.js.map +1 -1
- package/dist/test/calendar/calendar.examples.d.ts +2 -0
- package/dist/test/calendar/calendar.examples.d.ts.map +1 -1
- package/dist/test/calendar/calendar.examples.js +80 -2
- package/dist/test/calendar/calendar.examples.js.map +1 -1
- package/dist/test/decision/queue.examples.d.ts +1 -0
- package/dist/test/decision/queue.examples.d.ts.map +1 -1
- package/dist/test/decision/queue.examples.js +12 -0
- package/dist/test/decision/queue.examples.js.map +1 -1
- package/dist/test/examples-package.d.ts.map +1 -1
- package/dist/test/examples-package.js +5 -4
- package/dist/test/examples-package.js.map +1 -1
- package/dist/test/flowchart/flowchart.examples.d.ts +1250 -4605
- package/dist/test/flowchart/flowchart.examples.d.ts.map +1 -1
- package/dist/test/flowchart/flowchart.examples.js +861 -512
- package/dist/test/flowchart/flowchart.examples.js.map +1 -1
- package/dist/test/ontology/ontology.examples.d.ts +2 -3
- package/dist/test/ontology/ontology.examples.d.ts.map +1 -1
- package/dist/test/ontology/ontology.examples.js +32 -21
- package/dist/test/ontology/ontology.examples.js.map +1 -1
- package/dist/test/plan/plan-events.examples.d.ts +1 -0
- package/dist/test/plan/plan-events.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-events.examples.js +44 -0
- package/dist/test/plan/plan-events.examples.js.map +1 -1
- package/dist/test/plan/plan-nested.examples.d.ts +2 -2
- package/dist/test/plan/plan-nested.examples.js +5 -5
- package/dist/test/plan/plan-nested.examples.js.map +1 -1
- package/dist/test/plan/plan-records.examples.d.ts.map +1 -1
- package/dist/test/plan/plan-records.examples.js +1 -1
- package/dist/test/plan/plan-records.examples.js.map +1 -1
- package/dist/test/query/query.examples.d.ts +2 -0
- package/dist/test/query/query.examples.d.ts.map +1 -1
- package/dist/test/query/query.examples.js +37 -1
- package/dist/test/query/query.examples.js.map +1 -1
- package/dist/test/roster/roster.examples.d.ts +2 -0
- package/dist/test/roster/roster.examples.d.ts.map +1 -1
- package/dist/test/roster/roster.examples.js +76 -15
- package/dist/test/roster/roster.examples.js.map +1 -1
- package/dist/test/schematic/schematic-records.examples.d.ts.map +1 -1
- package/dist/test/schematic/schematic-records.examples.js +6 -4
- package/dist/test/schematic/schematic-records.examples.js.map +1 -1
- package/dist/test/schematic/schematic.examples.d.ts +1 -0
- package/dist/test/schematic/schematic.examples.d.ts.map +1 -1
- package/dist/test/schematic/schematic.examples.js +144 -0
- package/dist/test/schematic/schematic.examples.js.map +1 -1
- package/dist/test/sheet/sheet-actions.examples.d.ts +1264 -0
- package/dist/test/sheet/sheet-actions.examples.d.ts.map +1 -0
- package/dist/test/sheet/sheet-actions.examples.js +394 -0
- package/dist/test/sheet/sheet-actions.examples.js.map +1 -0
- package/dist/test/sheet/sheet.examples.d.ts +1 -0
- package/dist/test/sheet/sheet.examples.d.ts.map +1 -1
- package/dist/test/sheet/sheet.examples.js +77 -0
- package/dist/test/sheet/sheet.examples.js.map +1 -1
- package/dist/test/studio/studio.examples.d.ts +1 -0
- package/dist/test/studio/studio.examples.d.ts.map +1 -1
- package/dist/test/studio/studio.examples.js +18 -8
- package/dist/test/studio/studio.examples.js.map +1 -1
- package/package.json +12 -12
- package/dist/src/diff/index.d.ts +0 -407
- package/dist/src/diff/index.d.ts.map +0 -1
- package/dist/src/diff/index.js +0 -203
- package/dist/src/diff/index.js.map +0 -1
- package/dist/src/experiment/index.d.ts +0 -1033
- package/dist/src/experiment/index.d.ts.map +0 -1
- package/dist/src/experiment/index.js +0 -197
- package/dist/src/experiment/index.js.map +0 -1
- package/dist/src/experiment/types.d.ts +0 -1093
- package/dist/src/experiment/types.d.ts.map +0 -1
- package/dist/src/experiment/types.js +0 -423
- package/dist/src/experiment/types.js.map +0 -1
- package/dist/src/flowchart/over.d.ts +0 -227
- package/dist/src/flowchart/over.d.ts.map +0 -1
- package/dist/src/flowchart/over.js +0 -213
- package/dist/src/flowchart/over.js.map +0 -1
- package/dist/src/flowchart/patch.d.ts +0 -64
- package/dist/src/flowchart/patch.d.ts.map +0 -1
- package/dist/src/flowchart/patch.js +0 -67
- package/dist/src/flowchart/patch.js.map +0 -1
- package/dist/src/flowchart/values.d.ts +0 -271
- package/dist/src/flowchart/values.d.ts.map +0 -1
- package/dist/src/flowchart/values.js +0 -220
- package/dist/src/flowchart/values.js.map +0 -1
- package/dist/src/flowchart/window.d.ts +0 -306
- package/dist/src/flowchart/window.d.ts.map +0 -1
- package/dist/src/flowchart/window.js +0 -63
- package/dist/src/flowchart/window.js.map +0 -1
- package/dist/src/runtime/diff.d.ts +0 -36
- package/dist/src/runtime/diff.d.ts.map +0 -1
- package/dist/src/runtime/diff.js +0 -34
- package/dist/src/runtime/diff.js.map +0 -1
- package/dist/src/runtime/experiment.d.ts +0 -48
- package/dist/src/runtime/experiment.d.ts.map +0 -1
- package/dist/src/runtime/experiment.js +0 -10
- package/dist/src/runtime/experiment.js.map +0 -1
- package/dist/test/diff/diff.examples.d.ts +0 -313
- package/dist/test/diff/diff.examples.d.ts.map +0 -1
- package/dist/test/diff/diff.examples.js +0 -452
- package/dist/test/diff/diff.examples.js.map +0 -1
- package/dist/test/experiment/experiment.examples.d.ts +0 -1512
- package/dist/test/experiment/experiment.examples.d.ts.map +0 -1
- package/dist/test/experiment/experiment.examples.js +0 -609
- package/dist/test/experiment/experiment.examples.js.map +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* What a builder's `vocabulary` prop is made of (#1516): the app's own words for what the builder draws of its own, each
|
|
7
|
+
* keeping its default where left out. A noun is its singular, its plural that and `s` unless given; a word is one string.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
import { StringType, StructType } from "@elaraai/east";
|
|
12
|
+
/** One noun, resolved: as a heading writes it, and its plural. */
|
|
13
|
+
export declare const VocabularyNounType: StructType<{
|
|
14
|
+
readonly one: StringType;
|
|
15
|
+
readonly other: StringType;
|
|
16
|
+
}>;
|
|
17
|
+
/** One noun, as the app gives it: its singular, its plural that and `s` — or both, where it isn't regular. */
|
|
18
|
+
export type VocabularyNoun = string | {
|
|
19
|
+
one: string;
|
|
20
|
+
other?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* One noun, resolved.
|
|
24
|
+
*
|
|
25
|
+
* @param builder - The builder's name, for what a refusal says
|
|
26
|
+
* @param name - The entry's name
|
|
27
|
+
* @param given - The entry
|
|
28
|
+
* @param one - Its default singular
|
|
29
|
+
* @param other - Its default plural, where it isn't regular
|
|
30
|
+
* @returns The noun
|
|
31
|
+
* @throws {Error} Naming an entry given empty
|
|
32
|
+
*/
|
|
33
|
+
export declare function vocabularyNoun(builder: string, name: string, given: VocabularyNoun | undefined, one: string, other?: string): {
|
|
34
|
+
one: string;
|
|
35
|
+
other: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* One word, resolved.
|
|
39
|
+
*
|
|
40
|
+
* @param builder - The builder's name, for what a refusal says
|
|
41
|
+
* @param name - The entry's name
|
|
42
|
+
* @param given - The entry
|
|
43
|
+
* @param word - Its default
|
|
44
|
+
* @returns The word
|
|
45
|
+
* @throws {Error} Naming an entry given empty
|
|
46
|
+
*/
|
|
47
|
+
export declare function vocabularyWord(builder: string, name: string, given: string | undefined, word: string): string;
|
|
48
|
+
//# sourceMappingURL=vocabulary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabulary.d.ts","sourceRoot":"","sources":["../../../src/utils/vocabulary.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEvD,kEAAkE;AAClE,eAAO,MAAM,kBAAkB;;;EAAqD,CAAC;AAErF,8GAA8G;AAC9G,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAK5J;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAG7G"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* What a builder's `vocabulary` prop is made of (#1516): the app's own words for what the builder draws of its own, each
|
|
7
|
+
* keeping its default where left out. A noun is its singular, its plural that and `s` unless given; a word is one string.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
import { StringType, StructType } from "@elaraai/east";
|
|
12
|
+
/** One noun, resolved: as a heading writes it, and its plural. */
|
|
13
|
+
export const VocabularyNounType = StructType({ one: StringType, other: StringType });
|
|
14
|
+
/**
|
|
15
|
+
* One noun, resolved.
|
|
16
|
+
*
|
|
17
|
+
* @param builder - The builder's name, for what a refusal says
|
|
18
|
+
* @param name - The entry's name
|
|
19
|
+
* @param given - The entry
|
|
20
|
+
* @param one - Its default singular
|
|
21
|
+
* @param other - Its default plural, where it isn't regular
|
|
22
|
+
* @returns The noun
|
|
23
|
+
* @throws {Error} Naming an entry given empty
|
|
24
|
+
*/
|
|
25
|
+
export function vocabularyNoun(builder, name, given, one, other) {
|
|
26
|
+
if (given === undefined)
|
|
27
|
+
return { one, other: other ?? `${one}s` };
|
|
28
|
+
const noun = typeof given === "string" ? { one: given } : given;
|
|
29
|
+
vocabularyWord(builder, name, noun.one, one);
|
|
30
|
+
return { one: noun.one, other: noun.other ?? `${noun.one}s` };
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* One word, resolved.
|
|
34
|
+
*
|
|
35
|
+
* @param builder - The builder's name, for what a refusal says
|
|
36
|
+
* @param name - The entry's name
|
|
37
|
+
* @param given - The entry
|
|
38
|
+
* @param word - Its default
|
|
39
|
+
* @returns The word
|
|
40
|
+
* @throws {Error} Naming an entry given empty
|
|
41
|
+
*/
|
|
42
|
+
export function vocabularyWord(builder, name, given, word) {
|
|
43
|
+
if (given !== undefined && given.trim() === "")
|
|
44
|
+
throw new Error(`${builder}: \`vocabulary.${name}\` must not be empty — leave it out to keep "${word}"`);
|
|
45
|
+
return given ?? word;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=vocabulary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabulary.js","sourceRoot":"","sources":["../../../src/utils/vocabulary.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEvD,kEAAkE;AAClE,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AAKrF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,cAAc,CAAC,OAAe,EAAE,IAAY,EAAE,KAAiC,EAAE,GAAW,EAAE,KAAc;IACxH,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,IAAI,GAAG,GAAG,GAAG,EAAE,CAAC;IACnE,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IAChE,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC7C,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,GAAG,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;AAClE,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAAC,OAAe,EAAE,IAAY,EAAE,KAAyB,EAAE,IAAY;IACjG,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,kBAAkB,IAAI,gDAAgD,IAAI,GAAG,CAAC,CAAC;IACzJ,OAAO,KAAK,IAAI,IAAI,CAAC;AACzB,CAAC"}
|
|
@@ -2912,9 +2912,11 @@ export declare const minimalFit: import("@elaraai/e3").FunctionDef<[import("../.
|
|
|
2912
2912
|
readonly basis: StringType;
|
|
2913
2913
|
}>>;
|
|
2914
2914
|
export declare const allocationMinimal: import("@elaraai/east").ExampleDef<[], any>;
|
|
2915
|
+
export declare const allocationViews: import("@elaraai/east").ExampleDef<[], any>;
|
|
2915
2916
|
export declare const allocationKilnYard: import("@elaraai/east").ExampleDef<[], any>;
|
|
2916
2917
|
export declare const allocationTable: import("@elaraai/east").ExampleDef<[], any>;
|
|
2917
2918
|
export declare const allocationLabels: import("@elaraai/east").ExampleDef<[], any>;
|
|
2919
|
+
export declare const allocationWording: import("@elaraai/east").ExampleDef<[], any>;
|
|
2918
2920
|
export declare const allocationPublished: import("@elaraai/east").ExampleDef<[], any>;
|
|
2919
2921
|
export declare const allocationNoPublish: import("@elaraai/east").ExampleDef<[], any>;
|
|
2920
2922
|
export declare const allocationSplit: import("@elaraai/east").ExampleDef<[], any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocation.examples.d.ts","sourceRoot":"","sources":["../../../test/allocation/allocation.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAsB,QAAQ,EAAa,UAAU,EAAuB,OAAO,EAAE,MAAM,eAAe,CAAC;AAYrJ,sDAAsD;AACtD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAavB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,6CA8B9B,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "@elaraai/e3-ui/jsx-runtime";
|
|
|
6
6
|
/** @jsxImportSource @elaraai/e3-ui */
|
|
7
7
|
import { ArrayType, DateTimeType, DictType, East, FunctionType, NullType, PatchType, StringType, example, none, some, variant } from "@elaraai/east";
|
|
8
8
|
import e3 from "@elaraai/e3";
|
|
9
|
-
import { Box, Button, Field, HStack, Reactive, Slice, Text, UIComponentType, VStack } from "@elaraai/east-ui";
|
|
9
|
+
import { Box, Button, Field, HStack, Reactive, Select, Slice, State, Text, UIComponentType, VStack } from "@elaraai/east-ui";
|
|
10
10
|
import { Allocation, Data, Func, Record, Schedule } from "@elaraai/e3-ui";
|
|
11
11
|
import { Bay, Kiln, KilnBin, MinimalBin, TimberLoad, YardDay, yardArrivals, yardBayRows, yardBinHistoryRows, yardBinRows, yardDay, yardDayHistoryRows, yardDayRows, yardKilns, yardMinimalBinRows, yardPublishedDay, yardSplitDay, } from "./kiln-yard.js";
|
|
12
12
|
// The kiln yard's own records (`Builder Interfaces Spec.md` §6.5): its bins and the days of its plan, which the board
|
|
@@ -151,6 +151,31 @@ export const allocationMinimal = example({
|
|
|
151
151
|
}, arrivals: Allocation.arrivals(loads.read(), { label: l => l.code, quantity: l => l.m3, hold: l => variant("days", l.dryingDays) }) }) });
|
|
152
152
|
} })),
|
|
153
153
|
});
|
|
154
|
+
export const allocationViews = example({
|
|
155
|
+
description: "Which layouts an instance offers, chosen as the page runs: a multi-select wired into `views`, an expression of an array of Allocation.Types.Layout. Choose Table alone and Timeline is gone, its button and all; with one layout left no switch shows, and with none chosen, both. `views={[\"table\"]}` writes the same choice in the code.",
|
|
156
|
+
keywords: ["Allocation", "views", "Allocation.Types.Layout", "layout", "hide a view", "Timeline", "Table", "Select", "multiple", "onChangeMultiple", "State", "Reactive"], inputs: [],
|
|
157
|
+
fn: East.function([], UIComponentType, _$ => _jsx(Reactive, { children: $ => {
|
|
158
|
+
const bins = $.let(Record.bind(minimalBins));
|
|
159
|
+
const loads = $.let(Data.bind(arrivals));
|
|
160
|
+
const yard = $.let(Data.bind(kilns));
|
|
161
|
+
const bays = $.let(Data.bind(yardBays));
|
|
162
|
+
const fit = $.let(Func.bind(minimalFit));
|
|
163
|
+
// The tags the multi-select holds, and the layouts they name.
|
|
164
|
+
const chosen = $.let(State.bind([ArrayType(StringType)], "ex.allocationViews.views", []));
|
|
165
|
+
const tags = $.let(chosen.read());
|
|
166
|
+
const onViews = $.const(East.function([ArrayType(StringType)], NullType, ($, next) => { $(chosen.write(next)); }));
|
|
167
|
+
const every = $.const([variant("timeline", null), variant("table", null)], ArrayType(Allocation.Types.Layout));
|
|
168
|
+
const views = $.let(every.filter(($, view) => tags.toSet().has(view.getTag())));
|
|
169
|
+
return _jsxs(VStack, { gap: "3", align: "stretch", width: "100%", children: [_jsxs(HStack, { gap: "2", align: "center", children: [_jsx(Text, { children: "Views" }), _jsx(Select, { value: "", placeholder: "Every view", multiple: true, onChangeMultiple: onViews, items: [Select.Item("timeline", "Timeline"), Select.Item("table", "Table")] })] }), _jsx(Box, { width: "100%", height: "700px", children: _jsx(Allocation, { id: "allocationViews", views: views, fit: fit, view: { date: yardDay }, events: { bin: Schedule.events(bins, {
|
|
170
|
+
name: "Bin", icon: "box",
|
|
171
|
+
at: "at", resource: { field: "bay", of: "bays" }, arrival: "load",
|
|
172
|
+
quantity: { field: "m3", unit: "m³" }, parts: { field: "kilns", of: "kilns" }, hold: "dryFor",
|
|
173
|
+
}) }, resources: {
|
|
174
|
+
bays: Schedule.resources(bays.read(), { name: "Bays", icon: "warehouse", label: b => b.name, offset: b => b.offset }),
|
|
175
|
+
kilns: Schedule.resources(yard.read(), { name: "Kilns", icon: "fire", label: k => k.name, min: k => k.min, max: k => k.max, jobs: k => k.charges }),
|
|
176
|
+
}, arrivals: Allocation.arrivals(loads.read(), { label: l => l.code, quantity: l => l.m3, hold: l => variant("days", l.dryingDays) }) }) })] });
|
|
177
|
+
} })),
|
|
178
|
+
});
|
|
154
179
|
export const allocationKilnYard = example({
|
|
155
180
|
description: "The kiln yard's board over its own records: its bins, each with the yard's spec and grade beside the board's roles, read a day at a time through the slice; the days it publishes; a check over the bins' own fields; the rail over the bays, the kilns and the loads — each source with its icon, and each narrowing every place its rows appear, the Library's tabs included; the yard's fields as columns; the Arrivals and Resources library; the inspector; and the yard's greedy fit on e3.",
|
|
156
181
|
keywords: ["Allocation", "Schedule.events", "Schedule.resources", "Schedule.periods", "Allocation.arrivals", "Slice.bindRecords", "Data.bindPaged", "Func.bind", "fit", "check", "columns", "links", "Publish", "Library", "narrowing"], inputs: [],
|
|
@@ -329,6 +354,60 @@ export const allocationLabels = example({
|
|
|
329
354
|
] }) });
|
|
330
355
|
} })),
|
|
331
356
|
});
|
|
357
|
+
export const allocationWording = example({
|
|
358
|
+
description: "The kiln yard in all its own words (#1516): beside the nouns, `labels` takes what the board books (`bin`), a slot held with nothing booked in it (`reservation`, `reserved`), the legend's jobs, the hold and the Library's groups, each kept in its place and its look whatever it is called.",
|
|
359
|
+
keywords: ["Allocation", "labels", "vocabulary", "bin", "reservation", "reserved", "hold", "groups", "Library", "Schedule.events", "Allocation.arrivals"], inputs: [],
|
|
360
|
+
fn: East.function([], UIComponentType, _$ => _jsx(Reactive, { children: $ => {
|
|
361
|
+
const bins = $.let(Record.bind(kilnBins));
|
|
362
|
+
const entries = $.let(Data.bindPaged(kilnBins));
|
|
363
|
+
const byTime = $.let(Data.bindPaged(kilnBins, { indexes: ["kiln_bins_by_time"] }));
|
|
364
|
+
const days = $.let(Record.bind(yardDays));
|
|
365
|
+
// Every bay and kiln is the calculation scope; the narrowing only chooses which show.
|
|
366
|
+
const yard = $.let(Data.bind(kilns));
|
|
367
|
+
const loads = $.let(Data.bind(arrivals));
|
|
368
|
+
const bays = $.let(Data.bind(yardBays));
|
|
369
|
+
const bayIndex = $.let(Data.bindPaged(yardBays, { indexes: ["yard_bays_by_area"] }));
|
|
370
|
+
const kilnIndex = $.let(Data.bindPaged(kilns, { indexes: ["kilns_by_group"] }));
|
|
371
|
+
const slice = $.let(Slice.bindRecords("ex.allocationWording", {
|
|
372
|
+
bin: { source: byTime, range: "at" },
|
|
373
|
+
bays: { source: bayIndex, fields: { area: { label: "Area", hints: ["North", "South"] } } },
|
|
374
|
+
kilns: { source: kilnIndex, fields: { group: { label: "Kiln group", hints: ["Hall A", "Hall B", "Compact", "Standard", "Large", "Bulk"] } } },
|
|
375
|
+
}, {
|
|
376
|
+
presets: [
|
|
377
|
+
{ id: "halls", name: "Halls", where: { kilns: { group: ["Hall A", "Hall B"] } } },
|
|
378
|
+
{ id: "small", name: "Compact and standard", where: { kilns: { group: ["Compact", "Standard"] } } },
|
|
379
|
+
{ id: "large", name: "Large and bulk", where: { kilns: { group: ["Large", "Bulk"] } } },
|
|
380
|
+
{ id: "north", name: "North bays, halls", where: { bays: { area: ["North"] }, kilns: { group: ["Hall A", "Hall B"] } } },
|
|
381
|
+
],
|
|
382
|
+
}));
|
|
383
|
+
const fit = $.let(Func.bind(yardFit));
|
|
384
|
+
return _jsx(Box, { width: "100%", height: "900px", children: _jsx(Allocation, { id: "allocationWording", title: "Kiln loading", fit: fit, slice: { slice }, inspector: true, library: [Allocation.library.arrivals(), Allocation.library.resources()], view: { layout: "timeline", date: yardDay }, labels: {
|
|
385
|
+
lane: "Bay", arrival: { one: "Delivery", other: "Deliveries" }, resource: "Kiln", quantity: "Vol",
|
|
386
|
+
bin: { one: "Charge", other: "Charges" }, reservation: "Booking", reserved: "Booked", priorJob: "Last firing", nextJob: "Next firing", hold: "Dwell",
|
|
387
|
+
groups: { overdue: "Late", ready: "Due soon", removed: "Taken off", allocated: "Charged", free: "Idle", loading: "Filling", busy: "Firing" },
|
|
388
|
+
}, table: { bands: [{ from: 0, label: "Night" }, { from: 6, label: "Day shift" }, { from: 18, label: "Evening" }] }, events: { bin: Schedule.events(bins, {
|
|
389
|
+
name: "Charge", icon: "box", entries,
|
|
390
|
+
at: "at", resource: { field: "bay", of: "bays" }, arrival: "load",
|
|
391
|
+
quantity: { field: "m3", unit: "m³" }, parts: { field: "kilns", of: "kilns" }, hold: "dryFor", kind: "spec",
|
|
392
|
+
fields: { specMeasured: Schedule.field.text({ label: "Spec measured" }), instruction: Schedule.field.text({ label: "Loading instruction" }) },
|
|
393
|
+
}) }, resources: {
|
|
394
|
+
bays: Schedule.resources(bays.read(), { name: "Bays", icon: "warehouse", label: b => b.name, offset: b => b.offset }),
|
|
395
|
+
kilns: Schedule.resources(yard.read(), { name: "Kilns", icon: "fire", label: k => k.name, group: k => k.group,
|
|
396
|
+
meta: k => some(East.str `${k.group} · ${East.Float.roundHalf(k.max)} m³`), note: k => k.note,
|
|
397
|
+
min: k => k.min, max: k => k.max, hold: k => variant("days", k.days), jobs: k => k.charges }),
|
|
398
|
+
}, arrivals: Allocation.arrivals(loads.read(), {
|
|
399
|
+
label: l => l.code, meta: l => some(East.str `${l.mill} · ${l.grade} · spec ${l.spec}`),
|
|
400
|
+
quantity: l => l.m3, hold: l => variant("days", l.dryingDays), kind: l => some(l.spec),
|
|
401
|
+
due: l => some(l.due), window: l => some({ from: l.from, to: l.to }),
|
|
402
|
+
details: l => [{ label: "Settings", value: l.schedule }],
|
|
403
|
+
values: l => ({ specBooked: l.spec, specMeasured: l.spec, gradeBooked: l.grade.substring(0n, 1n), gradeMeasured: l.grade, instruction: l.instruction }),
|
|
404
|
+
}), periods: Schedule.periods(days, { every: "day", status: { field: "state", draft: "draft", published: "issued" } }), columns: [
|
|
405
|
+
{ key: "spec", label: "Spec", text: b => East.equal(b.specBooked, b.specMeasured).ifElse(() => b.specMeasured, () => East.str `booked ${b.specBooked} · measured ${b.specMeasured}`),
|
|
406
|
+
tone: b => East.equal(b.specBooked, b.specMeasured).ifElse(() => none, () => some(variant("warning", null))) },
|
|
407
|
+
{ key: "grade", label: "Grade", text: b => b.gradeMeasured.startsWith(b.gradeBooked).ifElse(() => b.gradeMeasured, () => East.str `booked ${b.gradeBooked} · measured ${b.gradeMeasured}`), table: false },
|
|
408
|
+
] }) });
|
|
409
|
+
} })),
|
|
410
|
+
});
|
|
332
411
|
export const allocationPublished = example({
|
|
333
412
|
description: "A published day, Tue 4 May, its status the yard's own day issued: read-only under its banner; navigation, the narrowing, the focus, links and the inspector still work.",
|
|
334
413
|
keywords: ["Allocation", "Schedule.periods", "Publish", "published", "readOnly", "Record.bind"], inputs: [],
|
|
@@ -532,7 +611,7 @@ export const allocationWindowed = example({
|
|
|
532
611
|
} })),
|
|
533
612
|
});
|
|
534
613
|
export const allocationMobile = example({
|
|
535
|
-
description: "The kiln yard in a 390px container: a card per kiln (or per slot in the Table) with Book, Reserve, Allocate, Unlink and Back to Arrivals in
|
|
614
|
+
description: "The kiln yard in a 390px container: a card per kiln (or per slot in the Table) with Book, Reserve, Allocate, Unlink and Back to Arrivals in the bottom panel over the pane strip; no drag source or target.",
|
|
536
615
|
keywords: ["Allocation", "mobile", "narrow", "cards", "Schedule.events", "Record.bind"], inputs: [],
|
|
537
616
|
fn: East.function([], UIComponentType, _$ => _jsx(Reactive, { children: $ => {
|
|
538
617
|
const bins = $.let(Record.bind(kilnBins));
|