@masterteam/components 0.0.344 → 0.0.346

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.
@@ -4,6 +4,7 @@ import * as _masterteam_components_entities from '@masterteam/components/entitie
4
4
  import { MTDateFormatType } from '@masterteam/components';
5
5
  import { MTIcon } from '@masterteam/icons';
6
6
  import { HttpContext } from '@angular/common/http';
7
+ import { Popover } from 'primeng/popover';
7
8
  import { Observable } from 'rxjs';
8
9
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
9
10
  import { TranslocoService } from '@jsverse/transloco';
@@ -126,9 +127,11 @@ interface EntityCalculationExplanationTarget {
126
127
  }
127
128
  /**
128
129
  * `GET properties/calculation-explanation`. The backend returns these as
129
- * camelCase strings; anything else is treated as unavailable.
130
+ * camelCase strings; anything else is treated as unavailable. `summarized` is
131
+ * an explanation too: a large schedule rollup, with totals over every item and
132
+ * only some of the items listed.
130
133
  */
131
- type CalculationExplanationStatus = 'available' | 'notCaptured' | 'unsupported' | 'limitExceeded' | 'restricted' | 'valueChanged' | 'notCalculated';
134
+ type CalculationExplanationStatus = 'available' | 'summarized' | 'notCaptured' | 'unsupported' | 'limitExceeded' | 'restricted' | 'valueChanged' | 'notCalculated';
132
135
  /**
133
136
  * What the explanation describes. `savedCalculation` is the calculation that
134
137
  * produced the persisted value; `currentCalculation` evaluates current data
@@ -162,7 +165,7 @@ interface CalculationExplanationResponse {
162
165
  valueVersion: string | null;
163
166
  /** The formula was changed after this value was saved. */
164
167
  definitionChanged: boolean;
165
- /** Only with `available`. */
168
+ /** Only with `available` and `summarized`. */
166
169
  explanation?: CalculationExplanationDocument | null;
167
170
  /** The persisted, normalized value the explanation belongs to (saved basis). */
168
171
  savedValue?: string | null;
@@ -177,11 +180,24 @@ interface CalculationExplanationDocument {
177
180
  providerVersion: string;
178
181
  engineVersion: string;
179
182
  status: string;
183
+ /**
184
+ * `summary`: a large schedule rollup whose items are given as totals, with
185
+ * only the highest-weight ones listed (response status `summarized`). Absent
186
+ * on a complete explanation.
187
+ */
188
+ completeness?: 'summary' | (string & {}) | null;
180
189
  /**
181
190
  * The saved formula with internal property references; for a native method
182
- * or a schedule field, a description of the calculation instead.
191
+ * or a schedule field, an English description of the calculation instead.
192
+ * Diagnostic only: never shown, the UI builds its wording from the nodes.
183
193
  */
184
194
  formula: string;
195
+ /**
196
+ * A stable key for a server-authored description (`calculation.method.*`,
197
+ * `calculation.schedule.*`, `calculation.status.*`). Absent on older saved
198
+ * captures and on ordinary formulas.
199
+ */
200
+ descriptionKey?: string | null;
185
201
  definitionHash: string;
186
202
  calculatedAt: string;
187
203
  /** The formula with every input replaced by its value: `(20 * 2)`. */
@@ -201,7 +217,10 @@ interface CalculationExplanationNode {
201
217
  id: number;
202
218
  kind: CalculationExplanationNodeKind | (string & {});
203
219
  operation: string | null;
220
+ /** Diagnostic text (formula source or an English fact label); never shown. */
204
221
  expression: string;
222
+ /** A stable key for a native fact's label (`calculation.fact.*`). */
223
+ labelKey?: string | null;
205
224
  children: number[];
206
225
  argumentNames: (string | null)[];
207
226
  /** `notEvaluated` (a branch never reached) is not an evaluated `null`. */
@@ -210,8 +229,22 @@ interface CalculationExplanationNode {
210
229
  reference: string | null;
211
230
  /** The referenced property, for an input whose source was authorized. */
212
231
  display?: CalculationPropertyDisplay | null;
213
- /** The rows behind a vector input, aligned with its values. */
232
+ /**
233
+ * The rows behind a vector input: `recordIds[i]` is the row of `value[i]`,
234
+ * nulls and repeats included. Never re-sorted, never taken from `sources`.
235
+ */
214
236
  recordIds?: number[];
237
+ /**
238
+ * A summarized rollup (a large schedule's progress, or its baseline count):
239
+ * how many rows it read. It then has no children and lists no rows.
240
+ */
241
+ rowCount?: number | null;
242
+ }
243
+ /** A record a calculation read, to be named through an authorized read. */
244
+ interface CalculationRecordRef {
245
+ /** `Level:1/Module:4`, as the explanation wrote it. */
246
+ contextKey: string;
247
+ recordId: number;
215
248
  }
216
249
  interface CalculationExplanationSourceRecords {
217
250
  tablePath: string;
@@ -242,7 +275,40 @@ interface ScheduleCalculationExplanation {
242
275
  leafOnly: boolean;
243
276
  excludedRowCount: number;
244
277
  notes: string[];
278
+ /** Every contributor, or with a `summary` only the highest-weight ones. */
245
279
  contributors: ScheduleCalculationContributor[];
280
+ /**
281
+ * Totals over every contributor, when there are more than an explanation
282
+ * lists. Absent when `contributors` is the complete list.
283
+ */
284
+ summary?: ScheduleCalculationSummary | null;
285
+ }
286
+ /**
287
+ * A large rollup in totals, taken from the same pass that calculated it:
288
+ * `weightedProgressTotal ÷ weightTotal`, bounded to 0–100 and rounded, is the
289
+ * result. With a simple average the weight total is the number of items and
290
+ * the weighted total the sum of their progress.
291
+ */
292
+ interface ScheduleCalculationSummary {
293
+ totalContributors: number;
294
+ /** How many of them `contributors` lists. */
295
+ shownContributors: number;
296
+ includedContributors: number;
297
+ zeroWeightExcludedContributors: number;
298
+ missingInputContributors: number;
299
+ weightTotal: number;
300
+ weightedProgressTotal: number;
301
+ byModule: ScheduleCalculationSummaryGroup[];
302
+ }
303
+ /** The items of one kind (`Task`, `Milestone`, …) in a summarized rollup. */
304
+ interface ScheduleCalculationSummaryGroup {
305
+ moduleKey: string;
306
+ contributors: number;
307
+ includedContributors: number;
308
+ weightTotal: number;
309
+ weightedProgressTotal: number;
310
+ /** Percentage points these items add to the result; the groups add up to it. */
311
+ resultContribution: number;
246
312
  }
247
313
  interface ScheduleCalculationContributor {
248
314
  recordId: number;
@@ -1609,7 +1675,7 @@ declare class EntityAttachment {
1609
1675
  readonly data: _angular_core.InputSignal<EntityData | undefined>;
1610
1676
  readonly name: _angular_core.InputSignal<string | undefined>;
1611
1677
  readonly shape: _angular_core.InputSignal<"default" | "compact">;
1612
- readonly value: _angular_core.InputSignal<string | EntityAttachmentValue | EntityAttachmentItemValue | null | undefined>;
1678
+ readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;
1613
1679
  readonly endPoint: _angular_core.InputSignal<string>;
1614
1680
  readonly context: _angular_core.InputSignal<HttpContext | undefined>;
1615
1681
  private readonly httpClient;
@@ -2219,8 +2285,10 @@ declare class EntityCalculatedIndicator {
2219
2285
  readonly change: _angular_core.InputSignal<EntityCalculationChange | null | undefined>;
2220
2286
  /** The value to explain on click. Without it the mark only has a tooltip. */
2221
2287
  readonly explanation: _angular_core.InputSignal<EntityCalculationExplanationTarget | null>;
2222
- private readonly popover;
2288
+ protected readonly popover: _angular_core.Signal<Popover | undefined>;
2223
2289
  protected readonly opened: _angular_core.WritableSignal<boolean>;
2290
+ private readonly explanationElement;
2291
+ constructor();
2224
2292
  protected readonly pulsing: _angular_core.Signal<boolean>;
2225
2293
  protected readonly tooltipKey: _angular_core.Signal<string>;
2226
2294
  protected readonly tooltipParams: _angular_core.Signal<{
@@ -2243,6 +2311,26 @@ declare class CalculationExplanationApi {
2243
2311
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalculationExplanationApi, never>;
2244
2312
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<CalculationExplanationApi>;
2245
2313
  }
2314
+ /**
2315
+ * Names the records a calculation read (schedule items, financial rows) through
2316
+ * the normal runtime record reads, so a contributor reads as its title rather
2317
+ * than its id. Only names are taken; the numbers stay the captured ones.
2318
+ */
2319
+ declare class CalculationRecordNames {
2320
+ private readonly http;
2321
+ /**
2322
+ * Names by {@link calculationRecordKey}. A record the reader may not see, or
2323
+ * any failed read, is simply absent.
2324
+ */
2325
+ read(owner: EntityCalculationSource, refs: CalculationRecordRef[]): Observable<Record<string, string>>;
2326
+ private readContext;
2327
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalculationRecordNames, never>;
2328
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<CalculationRecordNames>;
2329
+ }
2330
+ /** `Level:1/Module:4` → `level:1/module:4`, the casing record reads use. */
2331
+ declare function toFetchContextKey(contextKey: string | null): string | null;
2332
+ /** The key a record's name is stored under. */
2333
+ declare function calculationRecordKey(contextKey: string | null, recordId: number): string;
2246
2334
  /**
2247
2335
  * The context key in the casing the endpoint accepts. Fetch contexts are
2248
2336
  * written `level:12/module:5`, but this endpoint validates `Level:12/Module:5`
@@ -2271,6 +2359,13 @@ declare abstract class EntityCalculationRefresher {
2271
2359
  * unit, amounts are shown as plain numbers.
2272
2360
  */
2273
2361
  declare const MT_CALCULATION_CURRENCY: InjectionToken<Signal<string>>;
2362
+ /**
2363
+ * The names of a status property's statuses in a language, by status key, so
2364
+ * a status rule reads as its business name. Read inside a reactive context:
2365
+ * a host backed by signals updates the explanation when its statuses load.
2366
+ */
2367
+ type CalculationStatusNames = (propertyKey: string, lang: string) => Record<string, string>;
2368
+ declare const MT_CALCULATION_STATUS_NAMES: InjectionToken<CalculationStatusNames>;
2274
2369
  declare const CALCULATION_EXPLANATION_KEYS = "components.entitiesPreview.calculationExplanation";
2275
2370
  /** What formatting needs from the host: language, currency, dates, text. */
2276
2371
  interface ExplanationFormatContext {
@@ -2297,6 +2392,12 @@ type ExplanationSegment = {
2297
2392
  kind: 'muted';
2298
2393
  text: string;
2299
2394
  };
2395
+ /**
2396
+ * How an equation reads: `labels` is its shape (`Budget − Spent`), `values`
2397
+ * the captured values in that shape (`10,000 SAR − 125,454 SAR`), `inline`
2398
+ * both at once (`Budget (10,000 SAR)`), for status conditions.
2399
+ */
2400
+ type SegmentMode = 'inline' | 'labels' | 'values';
2300
2401
  /** Captured JSON shown as labelled data. */
2301
2402
  type ExplanationData = {
2302
2403
  kind: 'text';
@@ -2308,6 +2409,7 @@ type ExplanationData = {
2308
2409
  kind: 'table';
2309
2410
  columns: string[];
2310
2411
  rows: string[][];
2412
+ more: number;
2311
2413
  } | {
2312
2414
  kind: 'fields';
2313
2415
  fields: {
@@ -2321,39 +2423,84 @@ declare function formatExplanationNumber(value: number): string;
2321
2423
  declare function formatExplanationValue(value: CalculationExplanationValue | undefined): string;
2322
2424
  /**
2323
2425
  * A captured value the way its property shows values: grouped numbers, the
2324
- * application currency, `%`, the configured date format.
2426
+ * application currency, `%`, the configured date format, yes/no. An untyped
2427
+ * value (a function result) that is a date reads as one.
2325
2428
  */
2326
2429
  declare function formatTypedValue(value: CalculationExplanationValue | undefined, viewType: string | null | undefined, ctx: ExplanationFormatContext): string;
2327
2430
  /** A property's current name in the active language. */
2328
2431
  declare function displayName(display: CalculationPropertyDisplay | null | undefined, lang: string): string | null;
2329
- /** `Modules.LevelDataFinancial` → `LevelDataFinancial`. */
2330
- declare function tableLabel(tablePath: string | null | undefined): string;
2331
2432
  /** `totalLevelWeight` / `is_cancelled` → `Total level weight` / `Is cancelled`. */
2332
2433
  declare function humanizeKey(key: string): string;
2434
+ /**
2435
+ * A server-authored text key (`calculation.method.leafAverage`) in the active
2436
+ * language; null for a missing or unknown key.
2437
+ */
2438
+ declare function serverText(key: string | null | undefined, ctx: ExplanationFormatContext): string | null;
2439
+ /**
2440
+ * What a document's calculation does, in words: its description key, or for
2441
+ * an older capture a generic description of its kind.
2442
+ */
2443
+ declare function describeDocument(document: CalculationExplanationDocument, ctx: ExplanationFormatContext): string;
2333
2444
  /** Whether the document's root reads as an equation. */
2334
2445
  declare function isEquationDocument(document: CalculationExplanationDocument): boolean;
2335
2446
  /**
2336
- * The calculation as a readable equation: every input by its property name
2337
- * with the value it had, operators as symbols, nested function results shown
2338
- * after the call. `null` when the document is not an equation (a native
2339
- * method, a status selection, a generated code).
2447
+ * The calculation as readable business wording: inputs by their property
2448
+ * names, operators as symbols, functions as words (`sum of Amount where …`).
2449
+ * `null` when the document is not an equation (a native method, a status
2450
+ * selection, a generated code), or, in `values` mode, when an input is a list
2451
+ * of values the line cannot show (the details list them by record).
2452
+ *
2453
+ * Nodes form a graph: the same input can be reached from several places, and
2454
+ * each place shows it in full. Only a node already on the current path (a
2455
+ * cycle, which a valid document never has) reads as `…`.
2456
+ */
2457
+ declare function buildExplanationSegments(document: CalculationExplanationDocument, ctx: ExplanationFormatContext, mode?: SegmentMode, startId?: number): ExplanationSegment[] | null;
2458
+ /** Capitalizes the first word, for an equation that starts a line. */
2459
+ declare function capitalizeSegments(segments: ExplanationSegment[]): ExplanationSegment[];
2460
+ /** One part of a condition and whether it held. */
2461
+ interface ExplanationCheckView {
2462
+ segments: ExplanationSegment[];
2463
+ /** The captured truth; null when it was never evaluated. */
2464
+ met: boolean | null;
2465
+ /** At least one of these must hold (an `or`). */
2466
+ anyOf: ExplanationCheckView[] | null;
2467
+ }
2468
+ /**
2469
+ * A condition as a checklist: each part the rule requires on its own line
2470
+ * with whether it held, so a reader sees why a rule matched or which part
2471
+ * failed. Every truth is the captured one; nothing is evaluated here.
2472
+ *
2473
+ * `a and b and c` becomes three parts. `IF(guard, false, rest)` — the usual
2474
+ * "skip when data is missing" form — becomes `Unless guard` plus the parts of
2475
+ * `rest`. An `or` becomes one part whose options are listed. Null when the
2476
+ * document is not an equation.
2340
2477
  */
2341
- declare function buildExplanationSegments(document: CalculationExplanationDocument, ctx: ExplanationFormatContext): ExplanationSegment[] | null;
2342
- /** Captured JSON (native method facts) as labelled fields, lists or tables. */
2343
- declare function toExplanationData(value: CalculationExplanationValue | undefined, ctx: ExplanationFormatContext, depth?: number): ExplanationData;
2344
- interface ExplanationInputView {
2478
+ declare function buildConditionChecks(document: CalculationExplanationDocument, ctx: ExplanationFormatContext): ExplanationCheckView[] | null;
2479
+ /** A generated code as its parts: `PRJ + - + 2026 + - + 0042`. */
2480
+ declare function buildCodeSegments(document: CalculationExplanationDocument, ctx: ExplanationFormatContext): ExplanationSegment[];
2481
+ /**
2482
+ * Captured JSON (native method facts) as labelled fields, lists or tables.
2483
+ * Field names read as business labels; record ids read as a count.
2484
+ */
2485
+ declare function toExplanationData(value: CalculationExplanationValue | undefined, ctx: ExplanationFormatContext, depth?: number, field?: string): ExplanationData;
2486
+ /** A scalar input the calculation used. */
2487
+ interface ExplanationValueView {
2345
2488
  label: string;
2346
2489
  value: string;
2347
- /** A vector input: each value with the record it came from. */
2490
+ }
2491
+ /** List inputs read from the same rows, one row per record. */
2492
+ interface ExplanationRecordTableView {
2493
+ columns: string[];
2348
2494
  rows: {
2349
- recordId: number | null;
2350
- value: string;
2495
+ /** The record, for its name; null when the context is unknown. */
2496
+ ref: CalculationRecordRef | null;
2497
+ cells: string[];
2351
2498
  }[];
2352
2499
  }
2353
- interface ExplanationFunctionView {
2354
- name: string;
2500
+ /** A nested function and what it gave. */
2501
+ interface ExplanationStepView {
2502
+ segments: ExplanationSegment[];
2355
2503
  result: string;
2356
- notEvaluated: boolean;
2357
2504
  }
2358
2505
  interface ExplanationFactView {
2359
2506
  label: string;
@@ -2364,77 +2511,112 @@ interface ExplanationCodeBlockView {
2364
2511
  value: string;
2365
2512
  /** The block's value before its transformations, when it differs. */
2366
2513
  raw: string | null;
2367
- settings: ExplanationData | null;
2368
2514
  }
2369
2515
  interface ExplanationStatusRuleView {
2370
2516
  key: string;
2371
2517
  name: string;
2372
- order: number;
2518
+ /** Its place in the order rules are checked, from 1. */
2519
+ position: number;
2373
2520
  verdict: 'selected' | 'matched' | 'notMatched' | 'checked' | 'failed' | 'notEvaluated';
2521
+ /** The condition in one line, when it has no checklist. */
2374
2522
  segments: ExplanationSegment[] | null;
2375
- }
2376
- interface ExplanationPlannedView {
2377
- recordId: number;
2378
- rule: string;
2379
- minutes: string | null;
2380
- dates: string | null;
2381
- }
2382
- interface ExplanationCalendarView {
2383
- timeZone: string;
2384
- source: string;
2385
- workingHours: string;
2386
- workingDays: string;
2387
- holidays: string;
2523
+ /** The condition as the parts it requires, each with whether it held. */
2524
+ checks: ExplanationCheckView[] | null;
2525
+ }
2526
+ interface ExplanationContributorView {
2527
+ ref: CalculationRecordRef;
2528
+ type: string | null;
2529
+ progress: string;
2530
+ weight: string;
2531
+ counted: boolean;
2532
+ /** Why it was not counted, or how a missing value was treated. */
2533
+ reason: string | null;
2534
+ /** A planned item's dates and the working time elapsed of its total. */
2535
+ planned: {
2536
+ dates: string | null;
2537
+ time: string | null;
2538
+ } | null;
2388
2539
  }
2389
2540
  interface ExplanationScheduleView {
2541
+ kind: 'actual' | 'planned' | 'baseline' | 'other';
2542
+ /** The rollup is the whole formula: its title and result are the summary's. */
2543
+ standalone: boolean;
2390
2544
  title: string;
2545
+ /** What this progress means, so actual, planned and baseline read apart. */
2546
+ meaning: string | null;
2391
2547
  result: string;
2392
- formulaWithValues: string;
2393
- facts: string[];
2548
+ /** `Weighted average · Weighted by working days`. */
2549
+ method: string;
2550
+ /** Contributors actually counted. */
2551
+ counted: string;
2394
2552
  notes: string[];
2395
- contributors: {
2396
- recordId: number;
2397
- progress: string;
2398
- weight: string;
2399
- included: boolean;
2400
- inputMissing: boolean;
2401
- }[];
2402
- planned: ExplanationPlannedView[];
2403
- calendar: ExplanationCalendarView | null;
2404
- }
2405
- interface ExplanationSourceView {
2406
- label: string;
2407
- count: number;
2408
- ids: string;
2553
+ missingBaseline: boolean;
2554
+ weightLabel: string;
2555
+ /** How many items are listed: `12`, or `25 of 265` for a summary. */
2556
+ listed: string;
2557
+ contributors: ExplanationContributorView[];
2558
+ /** A large rollup's totals over every item; only some items are listed. */
2559
+ summary: ExplanationScheduleSummaryView | null;
2560
+ }
2561
+ interface ExplanationScheduleSummaryView {
2562
+ /** Which items are listed: `The 25 items with the most weight`. */
2563
+ listedItems: string;
2564
+ /**
2565
+ * `Sum of progress × weight (16,340) ÷ Sum of weights (265)`; the result is
2566
+ * the rollup's. Null when nothing was averaged.
2567
+ */
2568
+ totals: ExplanationSegment[] | null;
2569
+ /** Items counted differently, only when there are any. */
2570
+ counts: string[];
2571
+ /** The items by kind, when there is more than one kind. */
2572
+ groups: ExplanationScheduleGroupView[];
2573
+ }
2574
+ interface ExplanationScheduleGroupView {
2575
+ type: string;
2576
+ /** `240 of 240`: counted of all. */
2577
+ counted: string;
2578
+ /** Null for a simple average, where items carry no weight. */
2579
+ weight: string | null;
2580
+ /** The percentage points these items add to the result. */
2581
+ share: string;
2409
2582
  }
2410
2583
  interface ExplanationDetailsView {
2411
- formula: string | null;
2412
- formulaWithValues: string | null;
2413
- inputs: ExplanationInputView[];
2414
- functions: ExplanationFunctionView[];
2415
- facts: ExplanationFactView[];
2416
- codeBlocks: ExplanationCodeBlockView[];
2584
+ /** What a native method or schedule field does, in words. */
2585
+ description: string | null;
2586
+ values: ExplanationValueView[];
2587
+ records: ExplanationRecordTableView[];
2588
+ steps: ExplanationStepView[];
2417
2589
  statusRules: ExplanationStatusRuleView[];
2418
2590
  schedule: ExplanationScheduleView[];
2419
- sources: ExplanationSourceView[];
2591
+ codeBlocks: ExplanationCodeBlockView[];
2592
+ facts: ExplanationFactView[];
2420
2593
  }
2421
- /** Everything the expandable details show, read from the document as is. */
2594
+ /** Everything the details panel shows, read from the document as is. */
2422
2595
  declare function buildExplanationDetails(document: CalculationExplanationDocument, ctx: ExplanationFormatContext, statusNames?: Record<string, string>): ExplanationDetailsView;
2423
- /** Whether the details have anything to expand. */
2596
+ /** Whether the details have anything beyond the summary. */
2424
2597
  declare function hasExplanationDetails(view: ExplanationDetailsView): boolean;
2425
- /** A generated code as its parts: `PRJ + - + 2026 + - + 0042`. */
2426
- declare function buildCodeSegments(document: CalculationExplanationDocument, ctx: ExplanationFormatContext): ExplanationSegment[];
2427
- /** The status a rule selects, by the name the host knows or its key. */
2598
+ /** Every record the details name, for one batch of name reads. */
2599
+ declare function detailRecordRefs(view: ExplanationDetailsView): CalculationRecordRef[];
2600
+ /**
2601
+ * The status a rule selects, by the name its property gives it. A status the
2602
+ * host has no name for reads as its key in words (`no_baseline` → `No
2603
+ * baseline`): a generic label would make every rule read the same.
2604
+ */
2428
2605
  declare function statusName(key: string, statusNames: Record<string, string>): string;
2429
2606
  /** The rule that chose the status, if one did. */
2430
2607
  declare function selectedStatusRule(document: CalculationExplanationDocument): CalculationStatusRuleExplanation | null;
2608
+ /** Status rules in the order they are checked. */
2609
+ declare function orderedStatusRules(document: CalculationExplanationDocument): CalculationStatusRuleExplanation[];
2610
+ /** Whether a rollup found no baseline at all, so its 0 is not a baseline. */
2611
+ declare function isMissingBaseline(detail: ScheduleCalculationExplanation): boolean;
2431
2612
 
2432
2613
  /**
2433
- * A readable equation: `Budget (12,000 SAR) − Spent (15,000 SAR) = −3,000 SAR`.
2434
- * A left-to-right block in every language, like a formula in a spreadsheet:
2435
- * inside a right-to-left page an inline left-to-right run breaks across lines
2436
- * in the wrong order. Each term is isolated and kept whole, so an Arabic name
2437
- * reads with its own value. Every piece is interpolated as text.
2614
+ * A readable equation: `Remaining = Budget − Spent`, or its values
2615
+ * `10,000 SAR − 125,454 SAR = −115,454 SAR`. It reads in the page's direction:
2616
+ * functions read as words (`sum of Amount where …`), and in Arabic those words
2617
+ * run right to left. Each term and value is isolated and kept whole, so a name
2618
+ * or an amount never breaks across lines or reorders with its neighbours.
2619
+ * Every piece is interpolated as text.
2438
2620
  */
2439
2621
  declare class CalculationExplanationEquation {
2440
2622
  readonly segments: _angular_core.InputSignal<ExplanationSegment[]>;
@@ -2449,114 +2631,207 @@ declare class CalculationExplanationEquation {
2449
2631
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalculationExplanationEquation, "mt-calculation-explanation-equation", never, { "segments": { "alias": "segments"; "required": true; "isSignal": true; }; "result": { "alias": "result"; "required": false; "isSignal": true; }; "resultOperator": { "alias": "resultOperator"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2450
2632
  }
2451
2633
 
2634
+ declare const MARKS: Record<'met' | 'notMet' | 'notChecked', {
2635
+ text: string;
2636
+ class: string;
2637
+ }>;
2638
+ /**
2639
+ * A condition as a checklist: each part a rule requires on its own line,
2640
+ * marked met, not met, or not checked (a part evaluation never reached).
2641
+ * An `or` lists its options under "At least one of".
2642
+ */
2643
+ declare class CalculationExplanationChecks {
2644
+ readonly checks: _angular_core.InputSignal<ExplanationCheckView[]>;
2645
+ protected readonly prefix = "components.entitiesPreview.calculationExplanation";
2646
+ protected readonly marks: Record<"met" | "notMet" | "notChecked", {
2647
+ text: string;
2648
+ class: string;
2649
+ }>;
2650
+ protected markOf(met: boolean | null): keyof typeof MARKS;
2651
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalculationExplanationChecks, never>;
2652
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalculationExplanationChecks, "mt-calculation-explanation-checks", never, { "checks": { "alias": "checks"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2653
+ }
2654
+
2452
2655
  /**
2453
- * The expandable part of an explanation: the inputs with the rows they came
2454
- * from, function results, status rules, schedule rollups, generated-code
2455
- * parts and contributing records. Everything is the backend's captured data,
2456
- * shown as text; nothing is recalculated here.
2656
+ * The detailed part of an explanation, shown in its side panel below the
2657
+ * summary. Each part folds, so a long status or schedule reads as a short
2658
+ * list of titles first: records behind list inputs (by name), intermediate
2659
+ * results, status rules (one row each, opening to their checklist), schedule
2660
+ * rollups with their items (a large one in totals, with only its
2661
+ * highest-weight items listed), generated-code parts
2662
+ * and native facts. Everything is the backend's captured data in business
2663
+ * wording; nothing is recalculated here.
2457
2664
  */
2458
2665
  declare class CalculationExplanationDetails {
2459
2666
  readonly details: _angular_core.InputSignal<ExplanationDetailsView>;
2667
+ /** Record titles by `calculationRecordKey`; `null` while they are read. */
2668
+ readonly recordNames: _angular_core.InputSignal<Record<string, string> | null>;
2669
+ /** Generic labels for records without a readable title, by position. */
2670
+ readonly fallbackLabel: _angular_core.InputSignal<(position: number) => string>;
2460
2671
  protected readonly prefix = "components.entitiesPreview.calculationExplanation";
2461
2672
  protected readonly scheduleKeys = "components.entitiesPreview.calculationExplanation.schedule";
2673
+ protected readonly openRows = 10;
2462
2674
  protected readonly verdictClass: Record<string, string>;
2463
- protected hasMissingInput(rows: {
2464
- inputMissing: boolean;
2465
- }[]): boolean;
2675
+ /** A record by its title; never by its id. */
2676
+ protected nameOf(ref: CalculationRecordRef | null, index: number): string;
2466
2677
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalculationExplanationDetails, never>;
2467
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalculationExplanationDetails, "mt-calculation-explanation-details", never, { "details": { "alias": "details"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2678
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalculationExplanationDetails, "mt-calculation-explanation-details", never, { "details": { "alias": "details"; "required": true; "isSignal": true; }; "recordNames": { "alias": "recordNames"; "required": false; "isSignal": true; }; "fallbackLabel": { "alias": "fallbackLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2468
2679
  }
2469
2680
 
2470
- type ExplanationState = {
2471
- kind: 'loading';
2472
- } | {
2473
- kind: 'failed';
2474
- } | {
2475
- kind: 'unavailable';
2476
- messageKey: string;
2477
- } | {
2478
- kind: 'available';
2681
+ /**
2682
+ * An explanation the backend returned (`available`, or `summarized` for a
2683
+ * large schedule rollup), as the UI keeps it.
2684
+ */
2685
+ interface AvailableCalculationExplanation {
2479
2686
  basis: CalculationExplanationBasis;
2480
2687
  document: CalculationExplanationDocument;
2481
2688
  definitionChanged: boolean;
2482
2689
  /** The value on screen was older than the saved one and was re-read. */
2483
2690
  refreshed: boolean;
2484
2691
  viewType: string | undefined;
2485
- };
2486
- /** How the summary reads, by what the backend explained. */
2487
- type SummaryView = {
2488
- kind: 'equation';
2489
- segments: ExplanationSegment[];
2490
- operator: string;
2692
+ }
2693
+ /** How the calculation reads in short, for the tooltip and the panel. */
2694
+ interface ExplanationSummaryView {
2695
+ /** `Remaining = Budget − Spent`: the property, then the formula's shape. */
2696
+ labels: ExplanationSegment[] | null;
2697
+ /**
2698
+ * `10,000 SAR − 125,454 SAR`: the captured values in that shape. Null when
2699
+ * an input is a list of values; the panel lists them by record.
2700
+ */
2701
+ values: ExplanationSegment[] | null;
2702
+ /** The calculation in words, when it is not a formula. */
2703
+ description: string | null;
2704
+ /** The status rule that set a status, by its place in the order. */
2705
+ status: {
2706
+ position: number;
2707
+ total: number;
2708
+ condition: ExplanationSegment[] | null;
2709
+ /** The condition as the parts it required, each with whether it held. */
2710
+ checks: ExplanationCheckView[] | null;
2711
+ } | null;
2712
+ noRuleMatched: boolean;
2713
+ /** Records a list input read, when the values line can't show them. */
2714
+ recordCount: number | null;
2715
+ }
2716
+ interface CalculationExplanationView {
2717
+ basis: CalculationExplanationBasis;
2718
+ calculatedAt: string;
2719
+ result: string;
2720
+ summary: ExplanationSummaryView;
2721
+ definitionChanged: boolean;
2722
+ refreshed: boolean;
2723
+ /** A current calculation that differs from the value on the page. */
2724
+ differs: {
2725
+ page: string;
2726
+ current: string;
2727
+ } | null;
2728
+ /** A baseline rollup found no baseline: its 0 is not an approved 0%. */
2729
+ missingBaseline: boolean;
2730
+ /**
2731
+ * A summary of a large rollup: totals over every item, only some listed.
2732
+ * `items` is how many items it covers, when the rollup says.
2733
+ */
2734
+ summarized: {
2735
+ items: number | null;
2736
+ } | null;
2737
+ details: ExplanationDetailsView;
2738
+ hasDetails: boolean;
2739
+ }
2740
+ /** Everything both the tooltip and the details panel show. */
2741
+ declare function buildCalculationExplanationView(explanation: AvailableCalculationExplanation, target: EntityCalculationExplanationTarget, ctx: ExplanationFormatContext, statusNames: Record<string, string>): CalculationExplanationView;
2742
+ /**
2743
+ * Whether the saved value is the one on screen. Both are the persisted string,
2744
+ * but a number may be written either way (`40` and `40.0`), so numbers compare
2745
+ * as numbers.
2746
+ */
2747
+ declare function isSameSavedValue(saved: string | null | undefined, displayed: string | undefined): boolean;
2748
+
2749
+ /**
2750
+ * The short form of an explanation: the result with its business reason
2751
+ * (`Remaining = Budget − Spent`, then `10,000 SAR − 125,454 SAR =
2752
+ * −115,454 SAR`), and the notices that change how to read it. Shown in the
2753
+ * tooltip and at the top of the details panel.
2754
+ */
2755
+ declare class CalculationExplanationSummary {
2756
+ readonly view: _angular_core.InputSignal<CalculationExplanationView>;
2757
+ /**
2758
+ * Whether to say a summarized calculation is a summary. The details panel
2759
+ * does, above the totals and the few items it lists; the tooltip does not.
2760
+ */
2761
+ readonly summaryNotice: _angular_core.InputSignal<boolean>;
2762
+ protected readonly prefix = "components.entitiesPreview.calculationExplanation";
2763
+ protected readonly empty: ExplanationSegment[];
2764
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalculationExplanationSummary, never>;
2765
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalculationExplanationSummary, "mt-calculation-explanation-summary", never, { "view": { "alias": "view"; "required": true; "isSignal": true; }; "summaryNotice": { "alias": "summaryNotice"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2766
+ }
2767
+
2768
+ /**
2769
+ * The full explanation of a calculated value, in a wide side panel opened from
2770
+ * its tooltip: the result and reason, then the values, contributing records by
2771
+ * name, status rules, schedule rollups and their calendar.
2772
+ *
2773
+ * Created through `ModalService`, so it is built with the root injector and
2774
+ * its inputs arrive through `inputValues`: it takes the explanation the
2775
+ * tooltip already read and only reads the names of the records it shows.
2776
+ */
2777
+ declare class CalculationExplanationPanel implements OnInit {
2778
+ readonly target: _angular_core.InputSignal<EntityCalculationExplanationTarget>;
2779
+ readonly explanation: _angular_core.InputSignal<AvailableCalculationExplanation>;
2780
+ private readonly names;
2781
+ private readonly transloco;
2782
+ private readonly destroyRef;
2783
+ private readonly explanationContext;
2784
+ protected readonly prefix = "components.entitiesPreview.calculationExplanation";
2785
+ /** Record titles, `null` while they are being read. */
2786
+ protected readonly recordNames: _angular_core.WritableSignal<Record<string, string> | null>;
2787
+ protected readonly view: _angular_core.Signal<_masterteam_components_entities.CalculationExplanationView>;
2788
+ protected readonly fallbackLabel: (position: number) => string;
2789
+ ngOnInit(): void;
2790
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalculationExplanationPanel, never>;
2791
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalculationExplanationPanel, "mt-calculation-explanation-panel", never, { "target": { "alias": "target"; "required": true; "isSignal": true; }; "explanation": { "alias": "explanation"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2792
+ }
2793
+
2794
+ type ExplanationState = {
2795
+ kind: 'loading';
2491
2796
  } | {
2492
- kind: 'description';
2493
- text: string;
2494
- code: boolean;
2797
+ kind: 'failed';
2495
2798
  } | {
2496
- kind: 'message';
2497
- text: string;
2498
- };
2799
+ kind: 'unavailable';
2800
+ messageKey: string;
2801
+ } | ({
2802
+ kind: 'available';
2803
+ } & AvailableCalculationExplanation);
2499
2804
  /**
2500
- * How a calculated value was calculated: a readable equation with each input
2501
- * by name and the value it had, the result and when, with the captured
2502
- * details behind a toggle. Fetched each time it opens; reading it never
2503
- * recalculates anything, and nothing here is recalculated either.
2805
+ * How a calculated value was calculated, in short: the result with its
2806
+ * business reason (`Remaining = Budget − Spent`, then the values), when it was
2807
+ * calculated, and a way into the full details panel. Fetched each time it
2808
+ * opens; reading it never recalculates anything, and nothing here is
2809
+ * recalculated either.
2504
2810
  */
2505
2811
  declare class EntityCalculationExplanation implements OnInit {
2506
2812
  private readonly api;
2813
+ private readonly modal;
2507
2814
  private readonly refresher;
2508
- private readonly transloco;
2509
- private readonly lang;
2510
- private readonly currency;
2511
- private readonly datePipe;
2512
2815
  readonly target: _angular_core.InputSignal<EntityCalculationExplanationTarget>;
2816
+ /** The details panel opened; the host closes the tooltip under it. */
2817
+ readonly detailsOpened: _angular_core.OutputEmitterRef<void>;
2818
+ private readonly explanationContext;
2513
2819
  protected readonly prefix = "components.entitiesPreview.calculationExplanation";
2514
2820
  protected readonly state: _angular_core.WritableSignal<ExplanationState>;
2515
- protected readonly expanded: _angular_core.WritableSignal<boolean>;
2516
- protected readonly available: _angular_core.Signal<{
2821
+ protected readonly available: _angular_core.Signal<({
2517
2822
  kind: "available";
2518
- basis: CalculationExplanationBasis;
2519
- document: CalculationExplanationDocument;
2520
- definitionChanged: boolean;
2521
- /** The value on screen was older than the saved one and was re-read. */
2522
- refreshed: boolean;
2523
- viewType: string | undefined;
2524
- } | null>;
2823
+ } & AvailableCalculationExplanation) | null>;
2525
2824
  protected readonly unavailableKey: _angular_core.Signal<string | null>;
2526
- private readonly formatContext;
2527
- protected readonly view: _angular_core.Signal<{
2528
- basis: CalculationExplanationBasis;
2529
- calculatedAt: string;
2530
- definitionChanged: boolean;
2531
- refreshed: boolean;
2532
- result: string;
2533
- summary: SummaryView;
2534
- equation: ExplanationSegment[];
2535
- operator: string;
2536
- description: string;
2537
- descriptionIsCode: boolean;
2538
- differs: {
2539
- page: string;
2540
- current: string;
2541
- } | null;
2542
- details: ExplanationDetailsView;
2543
- hasDetails: boolean;
2544
- } | null>;
2825
+ protected readonly view: _angular_core.Signal<_masterteam_components_entities.CalculationExplanationView | null>;
2545
2826
  private request?;
2546
2827
  constructor();
2547
2828
  ngOnInit(): void;
2829
+ protected openDetails(): void;
2548
2830
  private load;
2549
2831
  private apply;
2550
- private summarize;
2551
2832
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityCalculationExplanation, never>;
2552
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityCalculationExplanation, "mt-entity-calculation-explanation", never, { "target": { "alias": "target"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2833
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityCalculationExplanation, "mt-entity-calculation-explanation", never, { "target": { "alias": "target"; "required": true; "isSignal": true; }; }, { "detailsOpened": "detailsOpened"; }, never, never, true, never>;
2553
2834
  }
2554
- /**
2555
- * Whether the saved value is the one on screen. Both are the persisted string,
2556
- * but a number may be written either way (`40` and `40.0`), so numbers compare
2557
- * as numbers.
2558
- */
2559
- declare function isSameSavedValue(saved: string | null | undefined, displayed: string | undefined): boolean;
2560
2835
 
2561
2836
  /**
2562
2837
  * Says how a calculated number just moved: the signed difference, with the
@@ -2723,7 +2998,7 @@ declare class EntityPreview {
2723
2998
  * `mt-entity-preview` usages in the app.
2724
2999
  */
2725
3000
  readonly infoText: _angular_core.Signal<string>;
2726
- readonly comparisonKind: _angular_core.Signal<"EntityList" | "Value" | null>;
3001
+ readonly comparisonKind: _angular_core.Signal<"Value" | "EntityList" | null>;
2727
3002
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
2728
3003
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreview, "mt-entity-preview", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2729
3004
  }
@@ -3009,5 +3284,5 @@ declare class FitText {
3009
3284
 
3010
3285
  declare function sharedActiveLang(transloco: TranslocoService): Signal<string>;
3011
3286
 
3012
- export { CALCULATION_CHANGE_CHIP_MS, CALCULATION_EXPLANATION_KEYS, CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, CalculatedValueHistory, CalculationExplanationApi, CalculationExplanationDetails, CalculationExplanationEquation, ComparisonEntityList, ComparisonValue, DEFAULT_PERFORMANCE_SCORE_CHART_SIZE, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_HEADER_VIEW_TYPES, ENTITY_LIST_TABLE_COMPONENT, ENTITY_ROW_SPANS, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCalculatedGlyph, EntityCalculatedIndicator, EntityCalculationChangeChip, EntityCalculationExplanation, EntityCalculationRefresher, EntityCheckbox, EntityColor, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityHeader, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPerformanceScore, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, MT_CALCULATION_CURRENCY, PERFORMANCE_SCORE_CHART_SIZES, SECTION_KEY_PREFIX, buildCodeSegments, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildExplanationDetails, buildExplanationSegments, buildSectionKey, canEntityBeHeader, compactCurrencyDisplay, currencyUnitOf, describeCalculationChange, displayName, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, formatCalculationDelta, formatExplanationNumber, formatExplanationValue, formatTypedValue, getEntitySectionTitle, getPerformanceScoreBands, groupEntitiesIntoSections, hasExplanationDetails, humanizeEntityListKey, humanizeKey, isCalculatedProperty, isConnectionSyntheticKey, isEntityAlignEnd, isEntityHeader, isEntityLabelHidden, isEntityListLocalDocument, isEntityListSelectionDocument, isEntitySection, isEquationDocument, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSameSavedValue, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, mergeStakeholderNameColumns, mergeStakeholderNameEntities, mergeStakeholderNameRows, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, parsePerformanceScore, pinEntityHeaderFirst, readEntityHeaderDefaults, readEntityValueColor, resolveConnectionLevelName, resolveEntityGridRow, resolveEntityHeader, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, resolvePerformanceScoreStatus, selectedStatusRule, serializeEntityRawValue, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, statusName, summarizeEntityListRows, tableLabel, toCalculationContextKey, toCalculationExplanationTarget, toExplanationData, visibleLocalSchemaFields };
3013
- export type { CalculatedPropertyMeta, CalculationExplanationBasis, CalculationExplanationDocument, CalculationExplanationNode, CalculationExplanationNodeKind, CalculationExplanationProvider, CalculationExplanationResponse, CalculationExplanationSourceRecords, CalculationExplanationStatus, CalculationExplanationValue, CalculationPropertyDisplay, CalculationStatusRuleExplanation, ComparisonValueSide, ConnectionCatalogConfiguration, ConnectionLevelSavedConfig, ConnectionSourceLevelConfig, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityCalculationChange, EntityCalculationExplanationTarget, EntityCalculationSource, EntityCalculationStatus, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionConfig, EntityConnectionSourceValue, EntityConnectionValue, EntityData, EntityHeaderConfig, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityListEntityValue, EntityListInlineFieldMeta, EntityListLocalCell, EntityListLocalDocument, EntityListLocalFieldDefinition, EntityListLocalFieldWidth, EntityListLocalRow, EntityListLocalSchema, EntityListLocalSchemaField, EntityListRenderedRow, EntityListRowValue, EntityListSelectionDocument, EntityListSelectionRecord, EntityListSelectionRecordValue, EntityListTableHost, EntityListTranslatable, EntityListValueItem, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPerformanceScoreChartSize, EntityPerformanceScoreConfig, EntityPerformanceScoreStatus, EntityPerformanceScoreValue, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityRowSpan, EntityRuntimeContext, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityTranslatableTextValue, EntityUserConfig, EntityUserValue, EntityViewType, ExplanationCalendarView, ExplanationCodeBlockView, ExplanationData, ExplanationDetailsView, ExplanationFactView, ExplanationFormatContext, ExplanationFunctionView, ExplanationInputView, ExplanationPlannedView, ExplanationScheduleView, ExplanationSegment, ExplanationSourceView, ExplanationStatusRuleView, LeafDetailsBadgeKind, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogPhaseValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsPhaseSummary, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimePhaseCount, LeafDetailsRuntimePhaseDetails, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, LeafPhaseSavedConfig, PercentageColorMode, PercentageColorPropertyRef, PercentageColorRule, PercentageColorSource, PlannedProgressExplanation, PropertyValueComparison, ScheduleCalculationContributor, ScheduleCalculationExplanation, ValueComparison };
3287
+ export { CALCULATION_CHANGE_CHIP_MS, CALCULATION_EXPLANATION_KEYS, CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, CalculatedValueHistory, CalculationExplanationApi, CalculationExplanationChecks, CalculationExplanationDetails, CalculationExplanationEquation, CalculationExplanationPanel, CalculationExplanationSummary, CalculationRecordNames, ComparisonEntityList, ComparisonValue, DEFAULT_PERFORMANCE_SCORE_CHART_SIZE, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_HEADER_VIEW_TYPES, ENTITY_LIST_TABLE_COMPONENT, ENTITY_ROW_SPANS, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCalculatedGlyph, EntityCalculatedIndicator, EntityCalculationChangeChip, EntityCalculationExplanation, EntityCalculationRefresher, EntityCheckbox, EntityColor, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityHeader, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPerformanceScore, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, MT_CALCULATION_CURRENCY, MT_CALCULATION_STATUS_NAMES, PERFORMANCE_SCORE_CHART_SIZES, SECTION_KEY_PREFIX, buildCalculationExplanationView, buildCodeSegments, buildConditionChecks, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildExplanationDetails, buildExplanationSegments, buildSectionKey, calculationRecordKey, canEntityBeHeader, capitalizeSegments, compactCurrencyDisplay, currencyUnitOf, describeCalculationChange, describeDocument, detailRecordRefs, displayName, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, formatCalculationDelta, formatExplanationNumber, formatExplanationValue, formatTypedValue, getEntitySectionTitle, getPerformanceScoreBands, groupEntitiesIntoSections, hasExplanationDetails, humanizeEntityListKey, humanizeKey, isCalculatedProperty, isConnectionSyntheticKey, isEntityAlignEnd, isEntityHeader, isEntityLabelHidden, isEntityListLocalDocument, isEntityListSelectionDocument, isEntitySection, isEquationDocument, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isMissingBaseline, isSameSavedValue, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, mergeStakeholderNameColumns, mergeStakeholderNameEntities, mergeStakeholderNameRows, normalizeConnectionSourceLevels, normalizeNumerals, orderedStatusRules, parseCurrencyAmount, parsePerformanceScore, pinEntityHeaderFirst, readEntityHeaderDefaults, readEntityValueColor, resolveConnectionLevelName, resolveEntityGridRow, resolveEntityHeader, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, resolvePerformanceScoreStatus, selectedStatusRule, serializeEntityRawValue, serverText, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, statusName, summarizeEntityListRows, toCalculationContextKey, toCalculationExplanationTarget, toExplanationData, toFetchContextKey, visibleLocalSchemaFields };
3288
+ export type { AvailableCalculationExplanation, CalculatedPropertyMeta, CalculationExplanationBasis, CalculationExplanationDocument, CalculationExplanationNode, CalculationExplanationNodeKind, CalculationExplanationProvider, CalculationExplanationResponse, CalculationExplanationSourceRecords, CalculationExplanationStatus, CalculationExplanationValue, CalculationExplanationView, CalculationPropertyDisplay, CalculationRecordRef, CalculationStatusNames, CalculationStatusRuleExplanation, ComparisonValueSide, ConnectionCatalogConfiguration, ConnectionLevelSavedConfig, ConnectionSourceLevelConfig, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityCalculationChange, EntityCalculationExplanationTarget, EntityCalculationSource, EntityCalculationStatus, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionConfig, EntityConnectionSourceValue, EntityConnectionValue, EntityData, EntityHeaderConfig, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityListEntityValue, EntityListInlineFieldMeta, EntityListLocalCell, EntityListLocalDocument, EntityListLocalFieldDefinition, EntityListLocalFieldWidth, EntityListLocalRow, EntityListLocalSchema, EntityListLocalSchemaField, EntityListRenderedRow, EntityListRowValue, EntityListSelectionDocument, EntityListSelectionRecord, EntityListSelectionRecordValue, EntityListTableHost, EntityListTranslatable, EntityListValueItem, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPerformanceScoreChartSize, EntityPerformanceScoreConfig, EntityPerformanceScoreStatus, EntityPerformanceScoreValue, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityRowSpan, EntityRuntimeContext, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityTranslatableTextValue, EntityUserConfig, EntityUserValue, EntityViewType, ExplanationCheckView, ExplanationCodeBlockView, ExplanationContributorView, ExplanationData, ExplanationDetailsView, ExplanationFactView, ExplanationFormatContext, ExplanationRecordTableView, ExplanationScheduleGroupView, ExplanationScheduleSummaryView, ExplanationScheduleView, ExplanationSegment, ExplanationStatusRuleView, ExplanationStepView, ExplanationSummaryView, ExplanationValueView, LeafDetailsBadgeKind, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogPhaseValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsPhaseSummary, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimePhaseCount, LeafDetailsRuntimePhaseDetails, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, LeafPhaseSavedConfig, PercentageColorMode, PercentageColorPropertyRef, PercentageColorRule, PercentageColorSource, PlannedProgressExplanation, PropertyValueComparison, ScheduleCalculationContributor, ScheduleCalculationExplanation, ScheduleCalculationSummary, ScheduleCalculationSummaryGroup, SegmentMode, ValueComparison };