@elaraai/e3-ui 1.0.30 → 1.0.32
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/decision/queue.d.ts +669 -17
- package/dist/src/decision/queue.d.ts.map +1 -1
- package/dist/src/decision/queue.js +44 -2
- package/dist/src/decision/queue.js.map +1 -1
- package/dist/src/decision/types.d.ts +10 -0
- package/dist/src/decision/types.d.ts.map +1 -1
- package/dist/src/decision/types.js +10 -0
- package/dist/src/decision/types.js.map +1 -1
- package/dist/src/experiment/index.d.ts +192 -93
- package/dist/src/experiment/index.d.ts.map +1 -1
- package/dist/src/experiment/index.js +34 -3
- package/dist/src/experiment/index.js.map +1 -1
- package/dist/src/experiment/types.d.ts +129 -0
- package/dist/src/experiment/types.d.ts.map +1 -1
- package/dist/src/experiment/types.js +51 -0
- package/dist/src/experiment/types.js.map +1 -1
- package/dist/src/runtime/decision/queue.d.ts +15 -0
- package/dist/src/runtime/decision/queue.d.ts.map +1 -1
- package/dist/src/runtime/decision/queue.js +15 -0
- package/dist/src/runtime/decision/queue.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 +21 -0
- package/dist/test/decision/queue.examples.js.map +1 -1
- package/dist/test/experiment/experiment.examples.d.ts +526 -0
- package/dist/test/experiment/experiment.examples.d.ts.map +1 -1
- package/dist/test/experiment/experiment.examples.js +218 -20
- package/dist/test/experiment/experiment.examples.js.map +1 -1
- package/package.json +8 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/experiment/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EACH,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,WAAW,EACX,UAAU,EAKV,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EACH,oBAAoB,EACpB,oBAAoB,EAEpB,WAAW,EAGX,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/experiment/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EACH,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,UAAU,EAKV,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EACH,oBAAoB,EACpB,oBAAoB,EAEpB,WAAW,EAGX,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EAUvB,MAAM,YAAY,CAAC;AAIpB,OAAO,EACH,MAAM,EACN,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,cAAc,EACd,cAAc,EACd,iBAAiB,GACpB,MAAM,YAAY,CAAC;AAOpB;;;;;GAKG;AACH,MAAM,MAAM,cAAc,CAAC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pD,iEAAiE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAEjE,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAEjD,6BAA6B;;;;;QAE7B,gDAAgD;;;;;;;;QAEhD,oEAAoE;;;;;;;;;QAEpE,yCAAyC;;;;;;;;;;;;QAEzC,8BAA8B;;;;;;;;;;;;;;;;;;QAE9B,6DAA6D;;;;;;;;;QAE7D,6EAA6E;;;;;QAE7E,+BAA+B;;;;;;;;QAE/B,gEAAgE;;;;;;;;;QAEhE,oEAAoE;;;;;;;;;QAEpE,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAEnD,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAEnE,4CAA4C;;;;;;;QAE5C,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAEnF,2FAA2F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAE3F,4CAA4C;;;;;;QAE5C,0DAA0D;;;;;QAE1D,kCAAkC;;;;;;;;CAGhC,CAAC"}
|
|
@@ -30,19 +30,26 @@
|
|
|
30
30
|
*
|
|
31
31
|
* @packageDocumentation
|
|
32
32
|
*/
|
|
33
|
-
import { NullType, BooleanType, ArrayType, StructType, VariantType, OptionType, East, none, some, variant, } from '@elaraai/east';
|
|
33
|
+
import { NullType, BooleanType, ArrayType, StringType, StructType, VariantType, OptionType, East, none, some, variant, } from '@elaraai/east';
|
|
34
34
|
import { EastUI } from '@elaraai/east-ui';
|
|
35
35
|
import { DiffBindingType } from '../bind/data.js';
|
|
36
36
|
import { FuncBindingType } from '../bind/func.js';
|
|
37
|
-
import { ExperimentConfigType, ExperimentResultType, DoseResponseType, JournalType, ColumnMetaType, PopulationType, ConfigurationType, DesignConfigType, ExperimentDesignType, CiType, BalanceRowType, OverlapDiagnosticType, RefutationType, SensitivityCurveType, AdjustedEffectType, ExperimentVerdictType, } from './types.js';
|
|
37
|
+
import { ExperimentConfigType, ExperimentResultType, DoseResponseType, JournalType, ColumnMetaType, PopulationType, ConfigurationType, DesignConfigType, ExperimentDesignType, CiType, BalanceRowType, OverlapDiagnosticType, RefutationType, SensitivityCurveType, SensitivityBenchmarkType, AdjustedEffectType, ExperimentVerdictType, VerdictReasonType, } from './types.js';
|
|
38
38
|
// Re-export the contract types so consumers can reach them from the component
|
|
39
39
|
// module too (the canonical home is `./types`).
|
|
40
|
-
export { CiType, WeightingSchemeType, EstimatorType, TargetUnitsType, BootstrapConfigType, RefuteSpecType, ExperimentConfigType, BalanceRowType, OverlapDiagnosticType, RefutationType, DoseResponseType, ExperimentVerdictType, ExperimentResultType, JournalRowType, JournalType, ColumnMetaType, PopulationType, ConfigurationType, } from './types.js';
|
|
40
|
+
export { CiType, WeightingSchemeType, EstimatorType, TargetUnitsType, BootstrapConfigType, RefuteSpecType, ExperimentConfigType, BalanceRowType, SensitivityBenchmarkType, OverlapDiagnosticType, RefutationType, DoseResponseType, ExperimentVerdictType, VerdictReasonType, ExperimentResultType, JournalRowType, JournalType, ColumnMetaType, PopulationType, ConfigurationType, } from './types.js';
|
|
41
41
|
// ============================================================================
|
|
42
42
|
// Component payload — descriptors only (binding handles + options).
|
|
43
43
|
// ============================================================================
|
|
44
44
|
/** Initial result tab variant — `answer` (default), `trust`, `dose`, or `validate`. */
|
|
45
45
|
export const ExperimentTabType = VariantType({ answer: NullType, trust: NullType, dose: NullType, validate: NullType });
|
|
46
|
+
/**
|
|
47
|
+
* The domain noun for one row of the bound dataset — singular + plural (e.g.
|
|
48
|
+
* `{ one: 'batch', many: 'batches' }`). The surface interpolates it everywhere
|
|
49
|
+
* it speaks about rows ("Which batches?", "480 batches", the guidance
|
|
50
|
+
* glossary), replacing the neutral default `record(s)`.
|
|
51
|
+
*/
|
|
52
|
+
export const ExperimentSubjectType = StructType({ one: StringType, many: StringType });
|
|
46
53
|
/**
|
|
47
54
|
* The `Experiment` component payload — binding descriptors + options. Renderers
|
|
48
55
|
* decode this and resolve each binding to a live, reactive value / call handle.
|
|
@@ -58,6 +65,7 @@ export const ExperimentTabType = VariantType({ answer: NullType, trust: NullType
|
|
|
58
65
|
* @property design - Optional {@link FuncBindingType} for the universal `design` function
|
|
59
66
|
* (the "Validate" tab); applies to any question.
|
|
60
67
|
* @property columnMeta - Optional per-column display metadata.
|
|
68
|
+
* @property subject - Optional domain noun for a row ({@link ExperimentSubjectType}).
|
|
61
69
|
* @property readonly - Render without the Apply / Commit / edit affordances.
|
|
62
70
|
* @property defaultTab - Initial result tab ({@link ExperimentTabType}).
|
|
63
71
|
*/
|
|
@@ -68,6 +76,7 @@ export const ExperimentPayloadType = StructType({
|
|
|
68
76
|
journal: OptionType(DiffBindingType),
|
|
69
77
|
design: OptionType(FuncBindingType),
|
|
70
78
|
columnMeta: OptionType(ColumnMetaType),
|
|
79
|
+
subject: OptionType(ExperimentSubjectType),
|
|
71
80
|
readonly: OptionType(BooleanType),
|
|
72
81
|
defaultTab: OptionType(ExperimentTabType),
|
|
73
82
|
});
|
|
@@ -76,6 +85,16 @@ export const ExperimentPayloadType = StructType({
|
|
|
76
85
|
* against this in `@elaraai/e3-ui-components`.
|
|
77
86
|
*/
|
|
78
87
|
export const ExperimentComponent = EastUI.component('Experiment', ExperimentPayloadType, { optional: true });
|
|
88
|
+
/** Naive English plural for a {@link ExperimentOptions.subject} noun given as a
|
|
89
|
+
* bare string — `batch` → `batches`, `delivery` → `deliveries`, `customer` →
|
|
90
|
+
* `customers`. Pass `{ one, many }` for anything irregular. */
|
|
91
|
+
function pluralize(one) {
|
|
92
|
+
if (/[^aeiou]y$/i.test(one))
|
|
93
|
+
return `${one.slice(0, -1)}ies`;
|
|
94
|
+
if (/(s|x|z|ch|sh)$/i.test(one))
|
|
95
|
+
return `${one}es`;
|
|
96
|
+
return `${one}s`;
|
|
97
|
+
}
|
|
79
98
|
/**
|
|
80
99
|
* Build an Experiment surface bound to an input dataset + the single experiment
|
|
81
100
|
* function.
|
|
@@ -96,6 +115,11 @@ function createExperiment(options) {
|
|
|
96
115
|
unit: c?.unit !== undefined ? some(c.unit) : none,
|
|
97
116
|
higherIsBetter: c?.higherIsBetter !== undefined ? some(c.higherIsBetter) : none,
|
|
98
117
|
}])), ColumnMetaType));
|
|
118
|
+
const subject = options.subject === undefined
|
|
119
|
+
? none
|
|
120
|
+
: some(East.value(typeof options.subject === 'string'
|
|
121
|
+
? { one: options.subject, many: pluralize(options.subject) }
|
|
122
|
+
: options.subject, ExperimentSubjectType));
|
|
99
123
|
// `configs` is a binding to a full Array<Configuration> (each entry's `spec` is a
|
|
100
124
|
// complete ExperimentConfigType + optional precomputed result/design) — no
|
|
101
125
|
// friendly-partial completion here; the bound dataset carries full values.
|
|
@@ -106,6 +130,7 @@ function createExperiment(options) {
|
|
|
106
130
|
journal: options.journal !== undefined ? some(options.journal.binding) : none,
|
|
107
131
|
design: options.design !== undefined ? some(options.design.binding) : none,
|
|
108
132
|
columnMeta,
|
|
133
|
+
subject,
|
|
109
134
|
readonly: options.readonly === undefined ? none : some(options.readonly),
|
|
110
135
|
defaultTab,
|
|
111
136
|
});
|
|
@@ -143,8 +168,12 @@ export const Experiment = {
|
|
|
143
168
|
Refutation: RefutationType,
|
|
144
169
|
/** The unobserved-confounder sensitivity (tipping) curve. */
|
|
145
170
|
Sensitivity: SensitivityCurveType,
|
|
171
|
+
/** One observed confounder benchmarked on the sensitivity strengths axis. */
|
|
172
|
+
SensitivityBenchmark: SensitivityBenchmarkType,
|
|
146
173
|
/** The honesty verdict tag. */
|
|
147
174
|
Verdict: ExperimentVerdictType,
|
|
175
|
+
/** Machine-readable reason a verdict fell short of `causal`. */
|
|
176
|
+
VerdictReason: VerdictReasonType,
|
|
148
177
|
/** The ALE dose-response curve value type (the "How much?" tab). */
|
|
149
178
|
DoseResponse: DoseResponseType,
|
|
150
179
|
/** The committed-experiment journal value type. */
|
|
@@ -159,6 +188,8 @@ export const Experiment = {
|
|
|
159
188
|
Configuration: ConfigurationType,
|
|
160
189
|
/** Optional per-column display metadata. */
|
|
161
190
|
ColumnMeta: ColumnMetaType,
|
|
191
|
+
/** Optional domain noun for a row (singular + plural). */
|
|
192
|
+
Subject: ExperimentSubjectType,
|
|
162
193
|
/** Initial result tab variant. */
|
|
163
194
|
Tab: ExperimentTabType,
|
|
164
195
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/experiment/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EACH,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,WAAW,EACX,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,GAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAwB,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAmB,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAkB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EACH,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,MAAM,EACN,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/experiment/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EACH,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,GAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAwB,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAmB,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAkB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EACH,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,MAAM,EACN,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,GACpB,MAAM,YAAY,CAAC;AAEpB,8EAA8E;AAC9E,gDAAgD;AAChD,OAAO,EACH,MAAM,EACN,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,cAAc,EACd,cAAc,EACd,iBAAiB,GACpB,MAAM,YAAY,CAAC;AAsBpB,+EAA+E;AAC/E,oEAAoE;AACpE,+EAA+E;AAE/E,uFAAuF;AACvF,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE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1B,6DAA6D;QAC7D,WAAW,EAAE,oBAAoB;QACjC,6EAA6E;QAC7E,oBAAoB,EAAE,wBAAwB;QAC9C,+BAA+B;QAC/B,OAAO,EAAE,qBAAqB;QAC9B,gEAAgE;QAChE,aAAa,EAAE,iBAAiB;QAChC,oEAAoE;QACpE,YAAY,EAAE,gBAAgB;QAC9B,mDAAmD;QACnD,OAAO,EAAE,WAAW;QACpB,mEAAmE;QACnE,MAAM,EAAE,oBAAoB;QAC5B,4CAA4C;QAC5C,YAAY,EAAE,gBAAgB;QAC9B,mFAAmF;QACnF,UAAU,EAAE,cAAc;QAC1B,2FAA2F;QAC3F,aAAa,EAAE,iBAAiB;QAChC,4CAA4C;QAC5C,UAAU,EAAE,cAAc;QAC1B,0DAA0D;QAC1D,OAAO,EAAE,qBAAqB;QAC9B,kCAAkC;QAClC,GAAG,EAAE,iBAAiB;KACzB;CACK,CAAC"}
|
|
@@ -162,9 +162,24 @@ export declare const BalanceRowType: StructType<{
|
|
|
162
162
|
readonly treated_mean: FloatType;
|
|
163
163
|
readonly control_mean: FloatType;
|
|
164
164
|
readonly std_diff: FloatType;
|
|
165
|
+
/** Post-adjustment SMD (weighted means, same pooled-sd denominator) — proof the
|
|
166
|
+
* adjustment closed the gap. `some` only for the propensity estimator with
|
|
167
|
+
* computable scores.
|
|
168
|
+
* twin: east-py-datascience BalanceRowType.std_diff_adjusted */
|
|
169
|
+
readonly std_diff_adjusted: OptionType<FloatType>;
|
|
165
170
|
}>;
|
|
166
171
|
/** Type alias for {@link BalanceRowType}. */
|
|
167
172
|
export type BalanceRowType = typeof BalanceRowType;
|
|
173
|
+
/** One observed confounder placed on the sensitivity strengths axis — the simulated
|
|
174
|
+
* strength whose effect-shift equals the shift from omitting that confounder, so
|
|
175
|
+
* "tips at 0.9" reads as "a hidden cause as strong as `column`".
|
|
176
|
+
* twin: east-py-datascience `SensitivityBenchmarkType` */
|
|
177
|
+
export declare const SensitivityBenchmarkType: StructType<{
|
|
178
|
+
readonly column: StringType;
|
|
179
|
+
readonly strength: FloatType;
|
|
180
|
+
}>;
|
|
181
|
+
/** Type alias for {@link SensitivityBenchmarkType}. */
|
|
182
|
+
export type SensitivityBenchmarkType = typeof SensitivityBenchmarkType;
|
|
168
183
|
/**
|
|
169
184
|
* Graded common-support tier — `refused` (below `min_overlap`), `thin` (clears the
|
|
170
185
|
* refuse gate but below `strong_overlap`), `strong` (≥ `strong_overlap`). Vacuously
|
|
@@ -200,6 +215,13 @@ export type OverlapDiagnosticType = typeof OverlapDiagnosticType;
|
|
|
200
215
|
export declare const SensitivityCurveType: StructType<{
|
|
201
216
|
readonly strengths: VectorType<FloatType>;
|
|
202
217
|
readonly effects: VectorType<FloatType>;
|
|
218
|
+
/** Observed-confounder benchmarks on the SAME strengths axis (empty when none is
|
|
219
|
+
* computable) — lets the surface say "survives a hidden cause as strong as
|
|
220
|
+
* `incoming_grade`". Clamped to the last simulated strength. */
|
|
221
|
+
readonly benchmarks: ArrayType<StructType<{
|
|
222
|
+
readonly column: StringType;
|
|
223
|
+
readonly strength: FloatType;
|
|
224
|
+
}>>;
|
|
203
225
|
}>;
|
|
204
226
|
/** Type alias for {@link SensitivityCurveType}. */
|
|
205
227
|
export type SensitivityCurveType = typeof SensitivityCurveType;
|
|
@@ -222,6 +244,13 @@ export declare const RefutationType: StructType<{
|
|
|
222
244
|
readonly sensitivity: OptionType<StructType<{
|
|
223
245
|
readonly strengths: VectorType<FloatType>;
|
|
224
246
|
readonly effects: VectorType<FloatType>;
|
|
247
|
+
/** Observed-confounder benchmarks on the SAME strengths axis (empty when none is
|
|
248
|
+
* computable) — lets the surface say "survives a hidden cause as strong as
|
|
249
|
+
* `incoming_grade`". Clamped to the last simulated strength. */
|
|
250
|
+
readonly benchmarks: ArrayType<StructType<{
|
|
251
|
+
readonly column: StringType;
|
|
252
|
+
readonly strength: FloatType;
|
|
253
|
+
}>>;
|
|
225
254
|
}>>;
|
|
226
255
|
/** Sign-prior check (when `config.expected_sign` is set): `some(true)` if a material
|
|
227
256
|
* effect matches the expected direction, `some(false)` if it points the other way,
|
|
@@ -256,6 +285,28 @@ export declare const ExperimentVerdictType: VariantType<{
|
|
|
256
285
|
}>;
|
|
257
286
|
/** Type alias for {@link ExperimentVerdictType}. */
|
|
258
287
|
export type ExperimentVerdictType = typeof ExperimentVerdictType;
|
|
288
|
+
/**
|
|
289
|
+
* Machine-readable reason a verdict fell short of `causal` — every FAILING gate
|
|
290
|
+
* (the verdict tag is chosen by severity precedence, but explaining "why modest?"
|
|
291
|
+
* needs all of them). Empty for `causal` and for the two refusal verdicts.
|
|
292
|
+
* twin: east-py-datascience `VerdictReasonType`
|
|
293
|
+
*/
|
|
294
|
+
export declare const VerdictReasonType: VariantType<{
|
|
295
|
+
/** The placebo (shuffle) refuter didn't collapse to ~0. */
|
|
296
|
+
readonly placebo_failed: NullType;
|
|
297
|
+
/** |effect| below the materiality band (0.10 × outcome_sd). */
|
|
298
|
+
readonly not_material: NullType;
|
|
299
|
+
/** The adjusted CI straddles zero. */
|
|
300
|
+
readonly ci_spans_zero: NullType;
|
|
301
|
+
/** Material + CI-clear but pointing against `config.expected_sign`. */
|
|
302
|
+
readonly wrong_sign: NullType;
|
|
303
|
+
/** Common support cleared the refuse gate but is below `strong_overlap`. */
|
|
304
|
+
readonly thin_support: NullType;
|
|
305
|
+
/** E-value below the (opt-in) `evalue_floor`. */
|
|
306
|
+
readonly low_robustness: NullType;
|
|
307
|
+
}>;
|
|
308
|
+
/** Type alias for {@link VerdictReasonType}. */
|
|
309
|
+
export type VerdictReasonType = typeof VerdictReasonType;
|
|
259
310
|
/** The adjusted (like-for-like) effect + its CI — `none` on the result when the engine refuses. */
|
|
260
311
|
export declare const AdjustedEffectType: StructType<{
|
|
261
312
|
readonly effect: FloatType;
|
|
@@ -287,6 +338,8 @@ export declare const ExperimentResultType: StructType<{
|
|
|
287
338
|
readonly n_total: IntegerType;
|
|
288
339
|
readonly n_treated: IntegerType;
|
|
289
340
|
readonly n_control: IntegerType;
|
|
341
|
+
/** Rows OUTSIDE the propensity common support — units with no like-for-like
|
|
342
|
+
* counterpart on the other side. Display-only; nothing is dropped. */
|
|
290
343
|
readonly n_dropped: IntegerType;
|
|
291
344
|
readonly balance: ArrayType<StructType<{
|
|
292
345
|
readonly column: StringType;
|
|
@@ -296,6 +349,11 @@ export declare const ExperimentResultType: StructType<{
|
|
|
296
349
|
readonly treated_mean: FloatType;
|
|
297
350
|
readonly control_mean: FloatType;
|
|
298
351
|
readonly std_diff: FloatType;
|
|
352
|
+
/** Post-adjustment SMD (weighted means, same pooled-sd denominator) — proof the
|
|
353
|
+
* adjustment closed the gap. `some` only for the propensity estimator with
|
|
354
|
+
* computable scores.
|
|
355
|
+
* twin: east-py-datascience BalanceRowType.std_diff_adjusted */
|
|
356
|
+
readonly std_diff_adjusted: OptionType<FloatType>;
|
|
299
357
|
}>>;
|
|
300
358
|
readonly overlap: StructType<{
|
|
301
359
|
readonly treated_propensity: VectorType<FloatType>;
|
|
@@ -330,6 +388,13 @@ export declare const ExperimentResultType: StructType<{
|
|
|
330
388
|
readonly sensitivity: OptionType<StructType<{
|
|
331
389
|
readonly strengths: VectorType<FloatType>;
|
|
332
390
|
readonly effects: VectorType<FloatType>;
|
|
391
|
+
/** Observed-confounder benchmarks on the SAME strengths axis (empty when none is
|
|
392
|
+
* computable) — lets the surface say "survives a hidden cause as strong as
|
|
393
|
+
* `incoming_grade`". Clamped to the last simulated strength. */
|
|
394
|
+
readonly benchmarks: ArrayType<StructType<{
|
|
395
|
+
readonly column: StringType;
|
|
396
|
+
readonly strength: FloatType;
|
|
397
|
+
}>>;
|
|
333
398
|
}>>;
|
|
334
399
|
/** Sign-prior check (when `config.expected_sign` is set): `some(true)` if a material
|
|
335
400
|
* effect matches the expected direction, `some(false)` if it points the other way,
|
|
@@ -354,6 +419,31 @@ export declare const ExperimentResultType: StructType<{
|
|
|
354
419
|
readonly non_identifiable_positivity: NullType;
|
|
355
420
|
readonly not_estimable: StringType;
|
|
356
421
|
}>;
|
|
422
|
+
/** Why the verdict fell short of `causal` — every failing gate (empty for
|
|
423
|
+
* `causal` and for the refusals, where the tag itself is the reason). */
|
|
424
|
+
readonly verdict_reasons: ArrayType<VariantType<{
|
|
425
|
+
/** The placebo (shuffle) refuter didn't collapse to ~0. */
|
|
426
|
+
readonly placebo_failed: NullType;
|
|
427
|
+
/** |effect| below the materiality band (0.10 × outcome_sd). */
|
|
428
|
+
readonly not_material: NullType;
|
|
429
|
+
/** The adjusted CI straddles zero. */
|
|
430
|
+
readonly ci_spans_zero: NullType;
|
|
431
|
+
/** Material + CI-clear but pointing against `config.expected_sign`. */
|
|
432
|
+
readonly wrong_sign: NullType;
|
|
433
|
+
/** Common support cleared the refuse gate but is below `strong_overlap`. */
|
|
434
|
+
readonly thin_support: NullType;
|
|
435
|
+
/** E-value below the (opt-in) `evalue_floor`. */
|
|
436
|
+
readonly low_robustness: NullType;
|
|
437
|
+
}>>;
|
|
438
|
+
/** The outcome's standard deviation — the scale the materiality band is on. */
|
|
439
|
+
readonly outcome_sd: FloatType;
|
|
440
|
+
/** The materiality band the verdict applied (0.10 × outcome_sd), echoed so the
|
|
441
|
+
* surface can say "smaller than what would matter here (±x)". */
|
|
442
|
+
readonly materiality_threshold: FloatType;
|
|
443
|
+
/** Raw outcome mean of the treated arm (`none` when the arm is empty). */
|
|
444
|
+
readonly treated_outcome_mean: OptionType<FloatType>;
|
|
445
|
+
/** Raw outcome mean of the control arm (`none` when the arm is empty). */
|
|
446
|
+
readonly control_outcome_mean: OptionType<FloatType>;
|
|
357
447
|
}>;
|
|
358
448
|
/** Type alias for {@link ExperimentResultType}. */
|
|
359
449
|
export type ExperimentResultType = typeof ExperimentResultType;
|
|
@@ -679,6 +769,8 @@ export declare const ConfigurationType: StructType<{
|
|
|
679
769
|
readonly n_total: IntegerType;
|
|
680
770
|
readonly n_treated: IntegerType;
|
|
681
771
|
readonly n_control: IntegerType;
|
|
772
|
+
/** Rows OUTSIDE the propensity common support — units with no like-for-like
|
|
773
|
+
* counterpart on the other side. Display-only; nothing is dropped. */
|
|
682
774
|
readonly n_dropped: IntegerType;
|
|
683
775
|
readonly balance: ArrayType<StructType<{
|
|
684
776
|
readonly column: StringType;
|
|
@@ -688,6 +780,11 @@ export declare const ConfigurationType: StructType<{
|
|
|
688
780
|
readonly treated_mean: FloatType;
|
|
689
781
|
readonly control_mean: FloatType;
|
|
690
782
|
readonly std_diff: FloatType;
|
|
783
|
+
/** Post-adjustment SMD (weighted means, same pooled-sd denominator) — proof the
|
|
784
|
+
* adjustment closed the gap. `some` only for the propensity estimator with
|
|
785
|
+
* computable scores.
|
|
786
|
+
* twin: east-py-datascience BalanceRowType.std_diff_adjusted */
|
|
787
|
+
readonly std_diff_adjusted: OptionType<FloatType>;
|
|
691
788
|
}>>;
|
|
692
789
|
readonly overlap: StructType<{
|
|
693
790
|
readonly treated_propensity: VectorType<FloatType>;
|
|
@@ -722,6 +819,13 @@ export declare const ConfigurationType: StructType<{
|
|
|
722
819
|
readonly sensitivity: OptionType<StructType<{
|
|
723
820
|
readonly strengths: VectorType<FloatType>;
|
|
724
821
|
readonly effects: VectorType<FloatType>;
|
|
822
|
+
/** Observed-confounder benchmarks on the SAME strengths axis (empty when none is
|
|
823
|
+
* computable) — lets the surface say "survives a hidden cause as strong as
|
|
824
|
+
* `incoming_grade`". Clamped to the last simulated strength. */
|
|
825
|
+
readonly benchmarks: ArrayType<StructType<{
|
|
826
|
+
readonly column: StringType;
|
|
827
|
+
readonly strength: FloatType;
|
|
828
|
+
}>>;
|
|
725
829
|
}>>;
|
|
726
830
|
/** Sign-prior check (when `config.expected_sign` is set): `some(true)` if a material
|
|
727
831
|
* effect matches the expected direction, `some(false)` if it points the other way,
|
|
@@ -746,6 +850,31 @@ export declare const ConfigurationType: StructType<{
|
|
|
746
850
|
readonly non_identifiable_positivity: NullType;
|
|
747
851
|
readonly not_estimable: StringType;
|
|
748
852
|
}>;
|
|
853
|
+
/** Why the verdict fell short of `causal` — every failing gate (empty for
|
|
854
|
+
* `causal` and for the refusals, where the tag itself is the reason). */
|
|
855
|
+
readonly verdict_reasons: ArrayType<VariantType<{
|
|
856
|
+
/** The placebo (shuffle) refuter didn't collapse to ~0. */
|
|
857
|
+
readonly placebo_failed: NullType;
|
|
858
|
+
/** |effect| below the materiality band (0.10 × outcome_sd). */
|
|
859
|
+
readonly not_material: NullType;
|
|
860
|
+
/** The adjusted CI straddles zero. */
|
|
861
|
+
readonly ci_spans_zero: NullType;
|
|
862
|
+
/** Material + CI-clear but pointing against `config.expected_sign`. */
|
|
863
|
+
readonly wrong_sign: NullType;
|
|
864
|
+
/** Common support cleared the refuse gate but is below `strong_overlap`. */
|
|
865
|
+
readonly thin_support: NullType;
|
|
866
|
+
/** E-value below the (opt-in) `evalue_floor`. */
|
|
867
|
+
readonly low_robustness: NullType;
|
|
868
|
+
}>>;
|
|
869
|
+
/** The outcome's standard deviation — the scale the materiality band is on. */
|
|
870
|
+
readonly outcome_sd: FloatType;
|
|
871
|
+
/** The materiality band the verdict applied (0.10 × outcome_sd), echoed so the
|
|
872
|
+
* surface can say "smaller than what would matter here (±x)". */
|
|
873
|
+
readonly materiality_threshold: FloatType;
|
|
874
|
+
/** Raw outcome mean of the treated arm (`none` when the arm is empty). */
|
|
875
|
+
readonly treated_outcome_mean: OptionType<FloatType>;
|
|
876
|
+
/** Raw outcome mean of the control arm (`none` when the arm is empty). */
|
|
877
|
+
readonly control_outcome_mean: OptionType<FloatType>;
|
|
749
878
|
}>>;
|
|
750
879
|
/** Optional precomputed "Validate" recipe ({@link ExperimentDesignType}) for this
|
|
751
880
|
* question; `none` ⇒ compute live via the `design` function (if bound). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/experiment/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACH,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS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/** Post-adjustment SMD (weighted means, same pooled-sd denominator) — proof the
|
|
124
|
+
* adjustment closed the gap. `some` only for the propensity estimator with
|
|
125
|
+
* computable scores.
|
|
126
|
+
* twin: east-py-datascience BalanceRowType.std_diff_adjusted */
|
|
127
|
+
std_diff_adjusted: OptionType(FloatType),
|
|
128
|
+
});
|
|
129
|
+
/** One observed confounder placed on the sensitivity strengths axis — the simulated
|
|
130
|
+
* strength whose effect-shift equals the shift from omitting that confounder, so
|
|
131
|
+
* "tips at 0.9" reads as "a hidden cause as strong as `column`".
|
|
132
|
+
* twin: east-py-datascience `SensitivityBenchmarkType` */
|
|
133
|
+
export const SensitivityBenchmarkType = StructType({
|
|
134
|
+
column: StringType,
|
|
135
|
+
strength: FloatType,
|
|
123
136
|
});
|
|
124
137
|
/**
|
|
125
138
|
* Graded common-support tier — `refused` (below `min_overlap`), `thin` (clears the
|
|
@@ -148,6 +161,10 @@ export const OverlapDiagnosticType = StructType({
|
|
|
148
161
|
export const SensitivityCurveType = StructType({
|
|
149
162
|
strengths: VectorType(FloatType),
|
|
150
163
|
effects: VectorType(FloatType),
|
|
164
|
+
/** Observed-confounder benchmarks on the SAME strengths axis (empty when none is
|
|
165
|
+
* computable) — lets the surface say "survives a hidden cause as strong as
|
|
166
|
+
* `incoming_grade`". Clamped to the last simulated strength. */
|
|
167
|
+
benchmarks: ArrayType(SensitivityBenchmarkType),
|
|
151
168
|
});
|
|
152
169
|
/** The robustness summary the verdict + trust tab consume. */
|
|
153
170
|
export const RefutationType = StructType({
|
|
@@ -193,6 +210,26 @@ export const ExperimentVerdictType = VariantType({
|
|
|
193
210
|
non_identifiable_positivity: NullType,
|
|
194
211
|
not_estimable: StringType,
|
|
195
212
|
});
|
|
213
|
+
/**
|
|
214
|
+
* Machine-readable reason a verdict fell short of `causal` — every FAILING gate
|
|
215
|
+
* (the verdict tag is chosen by severity precedence, but explaining "why modest?"
|
|
216
|
+
* needs all of them). Empty for `causal` and for the two refusal verdicts.
|
|
217
|
+
* twin: east-py-datascience `VerdictReasonType`
|
|
218
|
+
*/
|
|
219
|
+
export const VerdictReasonType = VariantType({
|
|
220
|
+
/** The placebo (shuffle) refuter didn't collapse to ~0. */
|
|
221
|
+
placebo_failed: NullType,
|
|
222
|
+
/** |effect| below the materiality band (0.10 × outcome_sd). */
|
|
223
|
+
not_material: NullType,
|
|
224
|
+
/** The adjusted CI straddles zero. */
|
|
225
|
+
ci_spans_zero: NullType,
|
|
226
|
+
/** Material + CI-clear but pointing against `config.expected_sign`. */
|
|
227
|
+
wrong_sign: NullType,
|
|
228
|
+
/** Common support cleared the refuse gate but is below `strong_overlap`. */
|
|
229
|
+
thin_support: NullType,
|
|
230
|
+
/** E-value below the (opt-in) `evalue_floor`. */
|
|
231
|
+
low_robustness: NullType,
|
|
232
|
+
});
|
|
196
233
|
/** The adjusted (like-for-like) effect + its CI — `none` on the result when the engine refuses. */
|
|
197
234
|
export const AdjustedEffectType = StructType({ effect: FloatType, ci: OptionType(CiType) });
|
|
198
235
|
/**
|
|
@@ -207,6 +244,8 @@ export const ExperimentResultType = StructType({
|
|
|
207
244
|
n_total: IntegerType,
|
|
208
245
|
n_treated: IntegerType,
|
|
209
246
|
n_control: IntegerType,
|
|
247
|
+
/** Rows OUTSIDE the propensity common support — units with no like-for-like
|
|
248
|
+
* counterpart on the other side. Display-only; nothing is dropped. */
|
|
210
249
|
n_dropped: IntegerType,
|
|
211
250
|
balance: ArrayType(BalanceRowType),
|
|
212
251
|
overlap: OverlapDiagnosticType,
|
|
@@ -214,6 +253,18 @@ export const ExperimentResultType = StructType({
|
|
|
214
253
|
/** ALE dose-response of `dose_feature` (present when `config.dose_feature` is set). */
|
|
215
254
|
dose_response: OptionType(DoseResponseType),
|
|
216
255
|
verdict: ExperimentVerdictType,
|
|
256
|
+
/** Why the verdict fell short of `causal` — every failing gate (empty for
|
|
257
|
+
* `causal` and for the refusals, where the tag itself is the reason). */
|
|
258
|
+
verdict_reasons: ArrayType(VerdictReasonType),
|
|
259
|
+
/** The outcome's standard deviation — the scale the materiality band is on. */
|
|
260
|
+
outcome_sd: FloatType,
|
|
261
|
+
/** The materiality band the verdict applied (0.10 × outcome_sd), echoed so the
|
|
262
|
+
* surface can say "smaller than what would matter here (±x)". */
|
|
263
|
+
materiality_threshold: FloatType,
|
|
264
|
+
/** Raw outcome mean of the treated arm (`none` when the arm is empty). */
|
|
265
|
+
treated_outcome_mean: OptionType(FloatType),
|
|
266
|
+
/** Raw outcome mean of the control arm (`none` when the arm is empty). */
|
|
267
|
+
control_outcome_mean: OptionType(FloatType),
|
|
217
268
|
});
|
|
218
269
|
// ============================================================================
|
|
219
270
|
// Validation-design contract (= Causal.Types.ExperimentDesign*)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/experiment/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACH,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,QAAQ,EACR,SAAS,EACT,WAAW,EACX,WAAW,EACX,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,UAAU,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,+EAA+E;AAC/E,uCAAuC;AACvC,+EAA+E;AAE/E,6BAA6B;AAC7B,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AAIzE,2CAA2C;AAC3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC;IAC3C,UAAU,EAAE,QAAQ;IACpB,qBAAqB,EAAE,QAAQ;IAC/B,qBAAqB,EAAE,QAAQ;CAClC,CAAC,CAAC;AAIH,0CAA0C;AAC1C,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC;IACrC,iBAAiB,EAAE,QAAQ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AAC,CAAC,CAAC;AAIJ;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACrC,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EAAE,qBAAqB;IAC9B,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC;IAC/B,YAAY,EAAE,YAAY;IAC1B,YAAY,EAAE,UAAU;IACxB;yFACqF;IACrF,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC;CACjC,CAAC,CAAC;AAIH,iEAAiE;AACjE,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -32,6 +32,21 @@ import { DecisionQueue as DecisionQueueFactory } from "../../decision/queue.js";
|
|
|
32
32
|
* ));
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* // Grouped queue — `groupBy` mounts the Group-by toolbar (built-in Urgency /
|
|
38
|
+
* // Kind / None plus the custom `groups` accessors); sections collapse.
|
|
39
|
+
* <DecisionQueue
|
|
40
|
+
* handle={handle}
|
|
41
|
+
* heading="Decisions waiting"
|
|
42
|
+
* groupBy="urgency"
|
|
43
|
+
* groups={{
|
|
44
|
+
* 'Value band': d => d.value.greater(50000.0).ifElse(() => 'High', () => 'Standard'),
|
|
45
|
+
* }}
|
|
46
|
+
* collapsible
|
|
47
|
+
* />
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
35
50
|
* @remarks
|
|
36
51
|
* Carries `DecisionQueue.Types`. Desugars to `DecisionQueue.Root(options)`. The
|
|
37
52
|
* renderer registers against `DecisionQueue.Component` (from
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../../src/runtime/decision/queue.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEhF
|
|
1
|
+
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../../src/runtime/decision/queue.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC,GAAG;IACjF,KAAK,EAAE,OAAO,oBAAoB,CAAC,KAAK,CAAC;CACkD,CAAC"}
|
|
@@ -32,6 +32,21 @@ import { DecisionQueue as DecisionQueueFactory } from "../../decision/queue.js";
|
|
|
32
32
|
* ));
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* // Grouped queue — `groupBy` mounts the Group-by toolbar (built-in Urgency /
|
|
38
|
+
* // Kind / None plus the custom `groups` accessors); sections collapse.
|
|
39
|
+
* <DecisionQueue
|
|
40
|
+
* handle={handle}
|
|
41
|
+
* heading="Decisions waiting"
|
|
42
|
+
* groupBy="urgency"
|
|
43
|
+
* groups={{
|
|
44
|
+
* 'Value band': d => d.value.greater(50000.0).ifElse(() => 'High', () => 'Standard'),
|
|
45
|
+
* }}
|
|
46
|
+
* collapsible
|
|
47
|
+
* />
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
35
50
|
* @remarks
|
|
36
51
|
* Carries `DecisionQueue.Types`. Desugars to `DecisionQueue.Root(options)`. The
|
|
37
52
|
* renderer registers against `DecisionQueue.Component` (from
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../src/runtime/decision/queue.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAE,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEhF
|
|
1
|
+
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../src/runtime/decision/queue.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAE,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,CAAC,MAAM,aAAa,GAEtB,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,oBAAoB,CAAC,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -272,4 +272,5 @@ export declare const decisionQueueOptions: import("@elaraai/east").ExampleDef<[]
|
|
|
272
272
|
export declare const decisionQueueNarrow: import("@elaraai/east").ExampleDef<[], any>;
|
|
273
273
|
export declare const decisionQueueScroll: import("@elaraai/east").ExampleDef<[], any>;
|
|
274
274
|
export declare const decisionQueueSlice: import("@elaraai/east").ExampleDef<[], any>;
|
|
275
|
+
export declare const decisionQueueGrouped: import("@elaraai/east").ExampleDef<[], any>;
|
|
275
276
|
//# sourceMappingURL=queue.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.examples.d.ts","sourceRoot":"","sources":["../../../test/decision/queue.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wCAAwC;AAExC;;;;;;;;;;;GAWG;AAEH,OAAO,EACG,S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AAM,aAAa,CAAC;AAQlC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;EAW3B,CAAC;AAeH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEAmH1B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAa3B,CAAC;AAMF,eAAO,MAAM,iBAAiB,6CAgF5B,CAAC;AAOH,eAAO,MAAM,sBAAsB,6CAuBjC,CAAC;AAEH,eAAO,MAAM,mBAAmB,6CAuB9B,CAAC;AAEH,eAAO,MAAM,sBAAsB,6CAsBjC,CAAC;AAMH,eAAO,MAAM,oBAAoB,6CAuB/B,CAAC;AAQH,eAAO,MAAM,mBAAmB,6CAyB9B,CAAC;AAMH,eAAO,MAAM,mBAAmB,6CAc9B,CAAC;AASH,eAAO,MAAM,kBAAkB,6CA0B7B,CAAC;AAUH,eAAO,MAAM,oBAAoB,6CAwB/B,CAAC"}
|
|
@@ -349,4 +349,25 @@ export const decisionQueueSlice = example({
|
|
|
349
349
|
}),
|
|
350
350
|
inputs: [],
|
|
351
351
|
});
|
|
352
|
+
// ============================================================================
|
|
353
|
+
// 8. Grouped queue — `groupBy` mounts the Group-by toolbar (built-in Urgency /
|
|
354
|
+
// Kind / None plus the custom `groups` accessors); sections collapse with a
|
|
355
|
+
// Collapse-all control, and the urgency grouping's Routine section ships
|
|
356
|
+
// collapsed hosting the bulk Accept all.
|
|
357
|
+
// ============================================================================
|
|
358
|
+
export const decisionQueueGrouped = example({
|
|
359
|
+
keywords: ['DecisionQueue', 'Decide', 'grouping', 'groupBy', 'groups', 'collapsible', 'urgency', 'kind', 'custom', 'accessor', 'Accept all'],
|
|
360
|
+
description: 'Grouped queue — Group-by Urgency (default) / Kind / a custom Value-band accessor; collapsible sections with Collapse-all, the Routine section collapsed with its bulk Accept all',
|
|
361
|
+
fn: East.function([], UIComponentType, (_$) => {
|
|
362
|
+
return (_jsx(Reactive, { children: $ => {
|
|
363
|
+
const decisions = $.let(Data.bind(queueDecisions, { mode: 'direct' }));
|
|
364
|
+
const judgements = $.let(Data.bind(queueJudgements, { mode: 'direct' }));
|
|
365
|
+
const handle = $.let(Decision.bind([RosterConstraint], { decisions: [decisions], judgements }));
|
|
366
|
+
return (_jsx(DecisionQueue, { handle: handle, heading: "Decisions waiting", groupBy: "urgency", groups: {
|
|
367
|
+
'Value band': d => d.value.greater(50000.0).ifElse(() => 'High', () => 'Standard'),
|
|
368
|
+
}, collapsible: true }));
|
|
369
|
+
} }));
|
|
370
|
+
}),
|
|
371
|
+
inputs: [],
|
|
372
|
+
});
|
|
352
373
|
//# sourceMappingURL=queue.examples.js.map
|