@masterteam/components 0.0.345 → 0.0.347
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/assets/i18n/ar.json +25 -3
- package/assets/i18n/en.json +25 -3
- package/fesm2022/masterteam-components-business-fields.mjs +2 -2
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +1886 -1589
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +34 -3
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +95 -7
- package/types/masterteam-components-table.d.ts +42 -3
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 };
|
|
@@ -85,6 +85,18 @@ type TableActionPlacement = 'menu' | 'inline';
|
|
|
85
85
|
* Add new modes here + a matching branch in the table header template.
|
|
86
86
|
*/
|
|
87
87
|
type TableFilterMode = 'popover' | 'column';
|
|
88
|
+
/**
|
|
89
|
+
* What the general search box matches against.
|
|
90
|
+
*
|
|
91
|
+
* - `row`: every string anywhere in the row (up to four levels deep),
|
|
92
|
+
* including fields no column shows. The default, kept for
|
|
93
|
+
* existing tables.
|
|
94
|
+
* - `columns`: only the table's columns — each column's `searchValue`, or the
|
|
95
|
+
* value at its `key`. Columns marked `filterOnly` or
|
|
96
|
+
* `searchable: false` are skipped, so internal keys and config
|
|
97
|
+
* blobs on the row can no longer produce matches.
|
|
98
|
+
*/
|
|
99
|
+
type TableSearchScope = 'row' | 'columns';
|
|
88
100
|
/**
|
|
89
101
|
* Keys that can be excluded from mt-table storage persistence.
|
|
90
102
|
*
|
|
@@ -186,6 +198,18 @@ interface ColumnDef {
|
|
|
186
198
|
* cell value isn't trivially resolvable, or to format any column's export value.
|
|
187
199
|
*/
|
|
188
200
|
exportValue?: (row: any) => string | number | boolean | null;
|
|
201
|
+
/**
|
|
202
|
+
* `searchScope: 'columns'` only — leaves the column out of the general
|
|
203
|
+
* search. Defaults to searchable. `filterOnly` columns are never searched.
|
|
204
|
+
*/
|
|
205
|
+
searchable?: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* `searchScope: 'columns'` only — the text the general search matches for
|
|
208
|
+
* this column, instead of the value at `key`. Use it for `custom` columns
|
|
209
|
+
* whose cell shows text that is not stored at `key` (a translated label, a
|
|
210
|
+
* composed string). Return several strings to match any of them.
|
|
211
|
+
*/
|
|
212
|
+
searchValue?: (row: any) => string | string[] | null | undefined;
|
|
189
213
|
}
|
|
190
214
|
interface TableAction {
|
|
191
215
|
icon?: MTIcon | undefined;
|
|
@@ -299,6 +323,12 @@ declare class Table {
|
|
|
299
323
|
clickableRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
300
324
|
generalSearch: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
301
325
|
lazyLocalSearch: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
326
|
+
/**
|
|
327
|
+
* What the general search matches: every string on the row (`row`, the
|
|
328
|
+
* default) or only the table's columns (`columns`). Applies wherever the
|
|
329
|
+
* table searches locally — not on lazy tables without `lazyLocalSearch`.
|
|
330
|
+
*/
|
|
331
|
+
searchScope: _angular_core.InputSignal<TableSearchScope>;
|
|
302
332
|
showFilters: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
303
333
|
filterMode: _angular_core.InputSignal<TableFilterMode>;
|
|
304
334
|
/** `filterMode: 'popover'` only — close the filter drawer on an outside click. */
|
|
@@ -410,7 +440,7 @@ declare class Table {
|
|
|
410
440
|
* the query it actually sent.
|
|
411
441
|
*/
|
|
412
442
|
sortField: _angular_core.ModelSignal<string | null>;
|
|
413
|
-
sortDirection: _angular_core.ModelSignal<"
|
|
443
|
+
sortDirection: _angular_core.ModelSignal<"asc" | "desc" | null>;
|
|
414
444
|
confirmationService: ConfirmationService;
|
|
415
445
|
private readonly exportService;
|
|
416
446
|
private readonly transloco;
|
|
@@ -621,7 +651,7 @@ declare class Table {
|
|
|
621
651
|
private resolveScrollHeightPixels;
|
|
622
652
|
private toNonNegativeInteger;
|
|
623
653
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, never>;
|
|
624
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showGridlines": { "alias": "showGridlines"; "required": false; "isSignal": true; }; "stripedRows": { "alias": "stripedRows"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; "generalSearch": { "alias": "generalSearch"; "required": false; "isSignal": true; }; "lazyLocalSearch": { "alias": "lazyLocalSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "filterCloseOnOutsideClick": { "alias": "filterCloseOnOutsideClick"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "updating": { "alias": "updating"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "lazyLocalSort": { "alias": "lazyLocalSort"; "required": false; "isSignal": true; }; "lazyTotalRecords": { "alias": "lazyTotalRecords"; "required": false; "isSignal": true; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; "isSignal": true; }; "reorderableRows": { "alias": "reorderableRows"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "storageMode": { "alias": "storageMode"; "required": false; "isSignal": true; }; "persistStateExclude": { "alias": "persistStateExclude"; "required": false; "isSignal": true; }; "exportable": { "alias": "exportable"; "required": false; "isSignal": true; }; "printable": { "alias": "printable"; "required": false; "isSignal": true; }; "groupable": { "alias": "groupable"; "required": false; "isSignal": true; }; "groupCountMap": { "alias": "groupCountMap"; "required": false; "isSignal": true; }; "cellClickFilter": { "alias": "cellClickFilter"; "required": false; "isSignal": true; }; "freezeActions": { "alias": "freezeActions"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "printTitle": { "alias": "printTitle"; "required": false; "isSignal": true; }; "exportFilename": { "alias": "exportFilename"; "required": false; "isSignal": true; }; "actionShape": { "alias": "actionShape"; "required": false; "isSignal": true; }; "rowActionsLoadingFn": { "alias": "rowActionsLoadingFn"; "required": false; "isSignal": true; }; "tableLayout": { "alias": "tableLayout"; "required": false; "isSignal": true; }; "noCard": { "alias": "noCard"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "tabsOptionLabel": { "alias": "tabsOptionLabel"; "required": false; "isSignal": true; }; "tabsOptionValue": { "alias": "tabsOptionValue"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "captionStartTemplate": { "alias": "captionStartTemplate"; "required": false; "isSignal": true; }; "captionEndTemplate": { "alias": "captionEndTemplate"; "required": false; "isSignal": true; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; "isSignal": true; }; "emptyDescription": { "alias": "emptyDescription"; "required": false; "isSignal": true; }; "emptyActionLabel": { "alias": "emptyActionLabel"; "required": false; "isSignal": true; }; "emptyActionIcon": { "alias": "emptyActionIcon"; "required": false; "isSignal": true; }; "externalFiltersActive": { "alias": "externalFiltersActive"; "required": false; "isSignal": true; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; "isSignal": true; }; "alwaysShowPaginator": { "alias": "alwaysShowPaginator"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "sortField": { "alias": "sortField"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "cellChange": "cellChange"; "lazyLoad": "lazyLoad"; "columnReorder": "columnReorder"; "rowReorder": "rowReorder"; "rowClick": "rowClick"; "emptyAction": "emptyAction"; "filtersCleared": "filtersCleared"; "rowActionsRequested": "rowActionsRequested"; "filters": "filtersChange"; "activeTab": "activeTabChange"; "onTabChange": "onTabChange"; "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; "first": "firstChange"; "filterTerm": "filterTermChange"; "groupBy": "groupByChange"; "sortField": "sortFieldChange"; "sortDirection": "sortDirectionChange"; }, ["captionStartContent", "captionEndContent", "emptyContent"], never, true, never>;
|
|
654
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showGridlines": { "alias": "showGridlines"; "required": false; "isSignal": true; }; "stripedRows": { "alias": "stripedRows"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; "generalSearch": { "alias": "generalSearch"; "required": false; "isSignal": true; }; "lazyLocalSearch": { "alias": "lazyLocalSearch"; "required": false; "isSignal": true; }; "searchScope": { "alias": "searchScope"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "filterCloseOnOutsideClick": { "alias": "filterCloseOnOutsideClick"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "updating": { "alias": "updating"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "lazyLocalSort": { "alias": "lazyLocalSort"; "required": false; "isSignal": true; }; "lazyTotalRecords": { "alias": "lazyTotalRecords"; "required": false; "isSignal": true; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; "isSignal": true; }; "reorderableRows": { "alias": "reorderableRows"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "storageMode": { "alias": "storageMode"; "required": false; "isSignal": true; }; "persistStateExclude": { "alias": "persistStateExclude"; "required": false; "isSignal": true; }; "exportable": { "alias": "exportable"; "required": false; "isSignal": true; }; "printable": { "alias": "printable"; "required": false; "isSignal": true; }; "groupable": { "alias": "groupable"; "required": false; "isSignal": true; }; "groupCountMap": { "alias": "groupCountMap"; "required": false; "isSignal": true; }; "cellClickFilter": { "alias": "cellClickFilter"; "required": false; "isSignal": true; }; "freezeActions": { "alias": "freezeActions"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "printTitle": { "alias": "printTitle"; "required": false; "isSignal": true; }; "exportFilename": { "alias": "exportFilename"; "required": false; "isSignal": true; }; "actionShape": { "alias": "actionShape"; "required": false; "isSignal": true; }; "rowActionsLoadingFn": { "alias": "rowActionsLoadingFn"; "required": false; "isSignal": true; }; "tableLayout": { "alias": "tableLayout"; "required": false; "isSignal": true; }; "noCard": { "alias": "noCard"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "tabsOptionLabel": { "alias": "tabsOptionLabel"; "required": false; "isSignal": true; }; "tabsOptionValue": { "alias": "tabsOptionValue"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "captionStartTemplate": { "alias": "captionStartTemplate"; "required": false; "isSignal": true; }; "captionEndTemplate": { "alias": "captionEndTemplate"; "required": false; "isSignal": true; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; "isSignal": true; }; "emptyDescription": { "alias": "emptyDescription"; "required": false; "isSignal": true; }; "emptyActionLabel": { "alias": "emptyActionLabel"; "required": false; "isSignal": true; }; "emptyActionIcon": { "alias": "emptyActionIcon"; "required": false; "isSignal": true; }; "externalFiltersActive": { "alias": "externalFiltersActive"; "required": false; "isSignal": true; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; "isSignal": true; }; "alwaysShowPaginator": { "alias": "alwaysShowPaginator"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "sortField": { "alias": "sortField"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "cellChange": "cellChange"; "lazyLoad": "lazyLoad"; "columnReorder": "columnReorder"; "rowReorder": "rowReorder"; "rowClick": "rowClick"; "emptyAction": "emptyAction"; "filtersCleared": "filtersCleared"; "rowActionsRequested": "rowActionsRequested"; "filters": "filtersChange"; "activeTab": "activeTabChange"; "onTabChange": "onTabChange"; "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; "first": "firstChange"; "filterTerm": "filterTermChange"; "groupBy": "groupByChange"; "sortField": "sortFieldChange"; "sortDirection": "sortDirectionChange"; }, ["captionStartContent", "captionEndContent", "emptyContent"], never, true, never>;
|
|
625
655
|
}
|
|
626
656
|
|
|
627
657
|
type TableEntityUsage = 'sort' | 'export' | 'filter';
|
|
@@ -656,6 +686,15 @@ declare class TableValueResolver {
|
|
|
656
686
|
* matched. `searchTerm` is expected to be lowercase.
|
|
657
687
|
*/
|
|
658
688
|
static matchesSearchTerm(value: unknown, searchTerm: string, depth?: number): boolean;
|
|
689
|
+
/**
|
|
690
|
+
* `searchScope: 'columns'` matching: true when any searchable column's value
|
|
691
|
+
* contains `searchTerm`. A column with `searchValue` is matched on that text
|
|
692
|
+
* only; any other column on the value at its `key`, scanned recursively like
|
|
693
|
+
* the row search so nested displays (`name.display`, user objects) still
|
|
694
|
+
* match. `filterOnly` and `searchable: false` columns are skipped.
|
|
695
|
+
* `searchTerm` is expected to be lowercase.
|
|
696
|
+
*/
|
|
697
|
+
static matchesColumnSearch(row: unknown, columns: readonly ColumnDef[], searchTerm: string): boolean;
|
|
659
698
|
static getColumnFilterType(column: ColumnDef, row?: Record<string, unknown>): FilterConfig['type'] | null;
|
|
660
699
|
/**
|
|
661
700
|
* Whether the filter UI should offer a control for this column.
|
|
@@ -1041,4 +1080,4 @@ declare class TableExportService {
|
|
|
1041
1080
|
}
|
|
1042
1081
|
|
|
1043
1082
|
export { EMPTY_GROUP_KEY, Table, TableActionsMenu, TableCaption, TableColumnFilter, TableExportService, TableFilter, TableFilterField, TableGroupingController, TableValueResolver };
|
|
1044
|
-
export type { CellChangeEvent, ColumnDef, ColumnType, ColumnTypeForActionCell, FilterConfig, FilterOption, FilterValue, TableAction, TableActionConfirmationConfig, TableActionPlacement, TableActionShape, TableEntityUsage, TableExportConfig, TableExportValueResolver, TableFilterMode, TableFilters, TablePersistStateKey, TablePrintConfig, TableStatusMapValue };
|
|
1083
|
+
export type { CellChangeEvent, ColumnDef, ColumnType, ColumnTypeForActionCell, FilterConfig, FilterOption, FilterValue, TableAction, TableActionConfirmationConfig, TableActionPlacement, TableActionShape, TableEntityUsage, TableExportConfig, TableExportValueResolver, TableFilterMode, TableFilters, TablePersistStateKey, TablePrintConfig, TableSearchScope, TableStatusMapValue };
|