@masterteam/components 0.0.345 → 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.
package/package.json
CHANGED
|
@@ -127,9 +127,11 @@ interface EntityCalculationExplanationTarget {
|
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* `GET properties/calculation-explanation`. The backend returns these as
|
|
130
|
-
* 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.
|
|
131
133
|
*/
|
|
132
|
-
type CalculationExplanationStatus = 'available' | 'notCaptured' | 'unsupported' | 'limitExceeded' | 'restricted' | 'valueChanged' | 'notCalculated';
|
|
134
|
+
type CalculationExplanationStatus = 'available' | 'summarized' | 'notCaptured' | 'unsupported' | 'limitExceeded' | 'restricted' | 'valueChanged' | 'notCalculated';
|
|
133
135
|
/**
|
|
134
136
|
* What the explanation describes. `savedCalculation` is the calculation that
|
|
135
137
|
* produced the persisted value; `currentCalculation` evaluates current data
|
|
@@ -163,7 +165,7 @@ interface CalculationExplanationResponse {
|
|
|
163
165
|
valueVersion: string | null;
|
|
164
166
|
/** The formula was changed after this value was saved. */
|
|
165
167
|
definitionChanged: boolean;
|
|
166
|
-
/** Only with `available`. */
|
|
168
|
+
/** Only with `available` and `summarized`. */
|
|
167
169
|
explanation?: CalculationExplanationDocument | null;
|
|
168
170
|
/** The persisted, normalized value the explanation belongs to (saved basis). */
|
|
169
171
|
savedValue?: string | null;
|
|
@@ -178,6 +180,12 @@ interface CalculationExplanationDocument {
|
|
|
178
180
|
providerVersion: string;
|
|
179
181
|
engineVersion: string;
|
|
180
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;
|
|
181
189
|
/**
|
|
182
190
|
* The saved formula with internal property references; for a native method
|
|
183
191
|
* or a schedule field, an English description of the calculation instead.
|
|
@@ -226,6 +234,11 @@ interface CalculationExplanationNode {
|
|
|
226
234
|
* nulls and repeats included. Never re-sorted, never taken from `sources`.
|
|
227
235
|
*/
|
|
228
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;
|
|
229
242
|
}
|
|
230
243
|
/** A record a calculation read, to be named through an authorized read. */
|
|
231
244
|
interface CalculationRecordRef {
|
|
@@ -262,7 +275,40 @@ interface ScheduleCalculationExplanation {
|
|
|
262
275
|
leafOnly: boolean;
|
|
263
276
|
excludedRowCount: number;
|
|
264
277
|
notes: string[];
|
|
278
|
+
/** Every contributor, or with a `summary` only the highest-weight ones. */
|
|
265
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;
|
|
266
312
|
}
|
|
267
313
|
interface ScheduleCalculationContributor {
|
|
268
314
|
recordId: number;
|
|
@@ -2506,7 +2552,33 @@ interface ExplanationScheduleView {
|
|
|
2506
2552
|
notes: string[];
|
|
2507
2553
|
missingBaseline: boolean;
|
|
2508
2554
|
weightLabel: string;
|
|
2555
|
+
/** How many items are listed: `12`, or `25 of 265` for a summary. */
|
|
2556
|
+
listed: string;
|
|
2509
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;
|
|
2510
2582
|
}
|
|
2511
2583
|
interface ExplanationDetailsView {
|
|
2512
2584
|
/** What a native method or schedule field does, in words. */
|
|
@@ -2585,7 +2657,8 @@ declare class CalculationExplanationChecks {
|
|
|
2585
2657
|
* summary. Each part folds, so a long status or schedule reads as a short
|
|
2586
2658
|
* list of titles first: records behind list inputs (by name), intermediate
|
|
2587
2659
|
* results, status rules (one row each, opening to their checklist), schedule
|
|
2588
|
-
* rollups with their items,
|
|
2660
|
+
* rollups with their items (a large one in totals, with only its
|
|
2661
|
+
* highest-weight items listed), generated-code parts
|
|
2589
2662
|
* and native facts. Everything is the backend's captured data in business
|
|
2590
2663
|
* wording; nothing is recalculated here.
|
|
2591
2664
|
*/
|
|
@@ -2605,7 +2678,10 @@ declare class CalculationExplanationDetails {
|
|
|
2605
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>;
|
|
2606
2679
|
}
|
|
2607
2680
|
|
|
2608
|
-
/**
|
|
2681
|
+
/**
|
|
2682
|
+
* An explanation the backend returned (`available`, or `summarized` for a
|
|
2683
|
+
* large schedule rollup), as the UI keeps it.
|
|
2684
|
+
*/
|
|
2609
2685
|
interface AvailableCalculationExplanation {
|
|
2610
2686
|
basis: CalculationExplanationBasis;
|
|
2611
2687
|
document: CalculationExplanationDocument;
|
|
@@ -2651,6 +2727,13 @@ interface CalculationExplanationView {
|
|
|
2651
2727
|
} | null;
|
|
2652
2728
|
/** A baseline rollup found no baseline: its 0 is not an approved 0%. */
|
|
2653
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;
|
|
2654
2737
|
details: ExplanationDetailsView;
|
|
2655
2738
|
hasDetails: boolean;
|
|
2656
2739
|
}
|
|
@@ -2671,10 +2754,15 @@ declare function isSameSavedValue(saved: string | null | undefined, displayed: s
|
|
|
2671
2754
|
*/
|
|
2672
2755
|
declare class CalculationExplanationSummary {
|
|
2673
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>;
|
|
2674
2762
|
protected readonly prefix = "components.entitiesPreview.calculationExplanation";
|
|
2675
2763
|
protected readonly empty: ExplanationSegment[];
|
|
2676
2764
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalculationExplanationSummary, never>;
|
|
2677
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalculationExplanationSummary, "mt-calculation-explanation-summary", never, { "view": { "alias": "view"; "required": true; "isSignal": true; }; }, {}, never, never, true, 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>;
|
|
2678
2766
|
}
|
|
2679
2767
|
|
|
2680
2768
|
/**
|
|
@@ -3197,4 +3285,4 @@ declare class FitText {
|
|
|
3197
3285
|
declare function sharedActiveLang(transloco: TranslocoService): Signal<string>;
|
|
3198
3286
|
|
|
3199
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 };
|
|
3200
|
-
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, 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, SegmentMode, ValueComparison };
|
|
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 };
|