@elaraai/e3-ui 1.0.59 → 1.0.61
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/test/bind/data/data.examples.d.ts +2 -7
- package/dist/test/bind/data/data.examples.d.ts.map +1 -1
- package/dist/test/bind/data/data.examples.js +50 -80
- package/dist/test/bind/data/data.examples.js.map +1 -1
- package/dist/test/decision/queue.examples.d.ts +2 -5
- package/dist/test/decision/queue.examples.d.ts.map +1 -1
- package/dist/test/decision/queue.examples.js +48 -72
- package/dist/test/decision/queue.examples.js.map +1 -1
- package/dist/test/diff/diff.examples.d.ts +33 -61
- package/dist/test/diff/diff.examples.d.ts.map +1 -1
- package/dist/test/diff/diff.examples.js +200 -317
- package/dist/test/diff/diff.examples.js.map +1 -1
- package/dist/test/experiment/experiment.examples.d.ts +7 -9
- package/dist/test/experiment/experiment.examples.d.ts.map +1 -1
- package/dist/test/experiment/experiment.examples.js +56 -68
- package/dist/test/experiment/experiment.examples.js.map +1 -1
- package/package.json +8 -8
|
@@ -9,11 +9,14 @@
|
|
|
9
9
|
* surfacing the pending changes for sign-off.
|
|
10
10
|
*
|
|
11
11
|
* Coverage:
|
|
12
|
-
* 1. Slider-driven editor
|
|
13
|
-
* 2.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
12
|
+
* 1. Slider-driven editor → workforcePolicyEditor
|
|
13
|
+
* 2. Editor variants panel → diffEditorVariants (heterogeneous inputs /
|
|
14
|
+
* mixed sliders + inputs / Set / Dict / Variant / density presets)
|
|
15
|
+
* 3. Editable Table cells → rosterTableEditor
|
|
16
|
+
* 4. Minimal call site → diffDefaults (IR-roundtrip)
|
|
17
|
+
* 5. Merge-conflict chooser → mergeConflictDemo
|
|
18
|
+
* 6. Overlay-mode patches → diffOverlayVariants
|
|
19
|
+
* 7. Staged + patch datasets → diffStagedPatchVariants
|
|
17
20
|
*
|
|
18
21
|
* Pattern:
|
|
19
22
|
* 1. Declare an `e3.input(name, type, default)` per editable scalar.
|
|
@@ -54,12 +57,8 @@ export declare const deploymentStatusInput: e3.DatasetDef<VariantType<{
|
|
|
54
57
|
readonly failed: NullType;
|
|
55
58
|
}>, [variant<"field", "inputs">, variant<"field", "deployment_status">]>;
|
|
56
59
|
export declare const workforcePolicyEditor: import("@elaraai/east").ExampleDef<[], any>;
|
|
57
|
-
export declare const
|
|
60
|
+
export declare const diffEditorVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
58
61
|
export declare const rosterTableEditor: import("@elaraai/east").ExampleDef<[], any>;
|
|
59
|
-
export declare const pricingRulesEditor: import("@elaraai/east").ExampleDef<[], any>;
|
|
60
|
-
export declare const featureFlagsEditor: import("@elaraai/east").ExampleDef<[], any>;
|
|
61
|
-
export declare const regionalPricingEditor: import("@elaraai/east").ExampleDef<[], any>;
|
|
62
|
-
export declare const deploymentStatusEditor: import("@elaraai/east").ExampleDef<[], any>;
|
|
63
62
|
export declare const diffDefaults: import("@elaraai/east").ExampleDef<[], any>;
|
|
64
63
|
/**
|
|
65
64
|
* Demonstrates the staged-mode merge tool / orange chooser. Workflow:
|
|
@@ -75,65 +74,38 @@ export declare const diffDefaults: import("@elaraai/east").ExampleDef<[], any>;
|
|
|
75
74
|
* theirs (42), or manual (type a fresh number).
|
|
76
75
|
*/
|
|
77
76
|
export declare const mergeConflictDemo: import("@elaraai/east").ExampleDef<[], any>;
|
|
78
|
-
/**
|
|
79
|
-
* Pricing-rules editor at `compact` density — tighter row padding and smaller
|
|
80
|
-
* type scale than the default `comfortable`. Suited to data-dense pages where
|
|
81
|
-
* the Diff card is one of several panels competing for vertical space.
|
|
82
|
-
*/
|
|
83
|
-
export declare const pricingRulesEditorCompact: import("@elaraai/east").ExampleDef<[], any>;
|
|
84
|
-
/**
|
|
85
|
-
* Pricing-rules editor at `condensed` density — mission-control sizing.
|
|
86
|
-
* Tightest row padding and smallest type scale; pairs with status dashboards
|
|
87
|
-
* and other read-heavy contexts where a diff list is reference data, not the
|
|
88
|
-
* main interaction surface.
|
|
89
|
-
*/
|
|
90
|
-
export declare const pricingRulesEditorCondensed: import("@elaraai/east").ExampleDef<[], any>;
|
|
91
77
|
export declare const maxWeeklyHoursPatchInput: e3.DatasetDef<import("@elaraai/east").EastType, [variant<"field", "inputs">, variant<"field", "max_weekly_hours_patch">]>;
|
|
92
78
|
export declare const regionalPricesPatchInput: e3.DatasetDef<import("@elaraai/east").EastType, [variant<"field", "inputs">, variant<"field", "regional_prices_patch">]>;
|
|
93
79
|
export declare const rosterPatchInput: e3.DatasetDef<import("@elaraai/east").EastType, [variant<"field", "inputs">, variant<"field", "roster_patch">]>;
|
|
94
80
|
export declare const regionalPricesDriftPatchInput: e3.DatasetDef<import("@elaraai/east").EastType, [variant<"field", "inputs">, variant<"field", "regional_prices_drift_patch">]>;
|
|
95
81
|
export declare const rosterDriftPatchInput: e3.DatasetDef<import("@elaraai/east").EastType, [variant<"field", "inputs">, variant<"field", "roster_drift_patch">]>;
|
|
96
82
|
/**
|
|
97
|
-
*
|
|
98
|
-
* the Diff card surfaces the patch against the
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*/
|
|
113
|
-
export declare const regionalPricingOverlayDrift: import("@elaraai/east").ExampleDef<[], any>;
|
|
114
|
-
/**
|
|
115
|
-
* Roster overlay drift — array-of-structs patch surfaced by the Diff card,
|
|
116
|
-
* exercising nested grouping (binding → `[index]` → struct field). The patch
|
|
117
|
-
* touches only `rate` on the first two entries, so the card renders
|
|
118
|
-
* `ROSTER → [0] → rate`, `[1] → rate`.
|
|
119
|
-
*/
|
|
120
|
-
export declare const rosterOverlayDrift: import("@elaraai/east").ExampleDef<[], any>;
|
|
121
|
-
/**
|
|
122
|
-
* Roster table editor in overlay mode — patches stored in `roster_patch`,
|
|
123
|
-
* survive page reload and are visible to other workspace sessions.
|
|
124
|
-
*/
|
|
125
|
-
export declare const rosterTableEditorOverlay: import("@elaraai/east").ExampleDef<[], any>;
|
|
126
|
-
/**
|
|
127
|
-
* Single-Float staged-with-patch editor — buffered Slider edits publish to
|
|
128
|
-
* `max_weekly_hours_patch` on Apply. The source `max_weekly_hours` stays
|
|
129
|
-
* untouched until a separate apply-patch-to-source step.
|
|
83
|
+
* Overlay-mode variant panel. POLICY OVERLAY: Slider edits go to
|
|
84
|
+
* `max_weekly_hours_patch`, the Diff card surfaces the patch against the
|
|
85
|
+
* source. REGIONAL PRICING OVERLAY DRIFT: the patch input *starts* with a
|
|
86
|
+
* non-trivial patch that is stale relative to the source — what the Diff card
|
|
87
|
+
* displays when a server-stored patch was authored against an older revision
|
|
88
|
+
* (stale delete, stale insert, stale replace); no form components, because
|
|
89
|
+
* `view.read()` calls `apply(source, patch)` which throws `ConflictError` on
|
|
90
|
+
* the stale ops, while the Diff card walks the patch IR directly from cache
|
|
91
|
+
* bytes (no apply) so it renders cleanly (the bind is kept so the renderer's
|
|
92
|
+
* overlay-type registry knows how to decode the patch bytes). ROSTER OVERLAY
|
|
93
|
+
* DRIFT: an array-of-structs patch exercising nested grouping (binding →
|
|
94
|
+
* `[index]` → struct field) — only `rate` of entries 0 and 1 change, so the
|
|
95
|
+
* card renders `ROSTER → [0] → rate`, `[1] → rate`. ROSTER TABLE OVERLAY:
|
|
96
|
+
* the roster table editor with patches stored in `roster_patch`, surviving
|
|
97
|
+
* page reload and visible to other workspace sessions.
|
|
130
98
|
*/
|
|
131
|
-
export declare const
|
|
99
|
+
export declare const diffOverlayVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
132
100
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
101
|
+
* Staged + patch variant panel. POLICY STAGED PATCH: single-Float
|
|
102
|
+
* staged-with-patch editor — buffered Slider edits publish to
|
|
103
|
+
* `max_weekly_hours_patch` on Apply; the source `max_weekly_hours` stays
|
|
104
|
+
* untouched until a separate apply-patch-to-source step. ROSTER STAGED
|
|
105
|
+
* PATCH: the roster table editor in staged + patch mode — cell edits buffer
|
|
106
|
+
* in IndexedDB until Apply, which publishes a fresh patch to `roster_patch`;
|
|
107
|
+
* survives reload as a draft, and multi-session reviewers see the patch only
|
|
136
108
|
* after the author commits.
|
|
137
109
|
*/
|
|
138
|
-
export declare const
|
|
110
|
+
export declare const diffStagedPatchVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
139
111
|
//# sourceMappingURL=diff.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff.examples.d.ts","sourceRoot":"","sources":["../../../test/diff/diff.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AAEtC
|
|
1
|
+
{"version":3,"file":"diff.examples.d.ts","sourceRoot":"","sources":["../../../test/diff/diff.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AAEtC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAEH,SAAS,EACT,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,OAAO,EACP,QAAQ,EACR,WAAW,EACX,QAAQ,EAKR,OAAO,EAEV,MAAM,eAAe,CAAC;AAMvB,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAQlC,eAAO,MAAM,mBAAmB,8FAA6D,CAAC;AAC9F,eAAO,MAAM,sBAAsB,sGAA0D,CAAC;AAC9F,eAAO,MAAM,iBAAiB,sGAA+D,CAAC;AAC9F,eAAO,MAAM,mBAAmB,oGAA4D,CAAC;AAG7F,eAAO,MAAM,gBAAgB,2FAAwD,CAAC;AACtF,eAAO,MAAM,aAAa,wFAAmD,CAAC;AAC9E,eAAO,MAAM,cAAc,0FAAqD,CAAC;AACjF,eAAO,MAAM,WAAW,qFAAmE,CA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