@meshmakers/octo-meshboard 3.4.260 → 3.4.280
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
|
@@ -719,6 +719,14 @@ interface ChartReferenceLine {
|
|
|
719
719
|
* Color scheme options for heatmap
|
|
720
720
|
*/
|
|
721
721
|
type HeatmapColorScheme = 'green' | 'redGreen' | 'blue' | 'heat';
|
|
722
|
+
/**
|
|
723
|
+
* Heatmap coloring mode.
|
|
724
|
+
* - `gradient` (default): relative coloring across the data's own min/max using the
|
|
725
|
+
* selected {@link HeatmapColorScheme}.
|
|
726
|
+
* - `threshold`: absolute ok/warn/high bands around a target count per cell — green
|
|
727
|
+
* when the cell equals the target, amber below it (including empty cells), red above.
|
|
728
|
+
*/
|
|
729
|
+
type HeatmapColorMode = 'gradient' | 'threshold';
|
|
722
730
|
/**
|
|
723
731
|
* Client-side aggregation function for simple queries
|
|
724
732
|
*/
|
|
@@ -743,8 +751,17 @@ interface HeatmapWidgetConfig extends WidgetConfig {
|
|
|
743
751
|
valueField?: string;
|
|
744
752
|
/** Client-side aggregation function for simple queries */
|
|
745
753
|
aggregation: HeatmapAggregation;
|
|
746
|
-
/** Color scheme for the heatmap */
|
|
754
|
+
/** Color scheme for the heatmap (used in `gradient` color mode) */
|
|
747
755
|
colorScheme: HeatmapColorScheme;
|
|
756
|
+
/** Coloring mode — relative `gradient` (default) or absolute `threshold` bands */
|
|
757
|
+
colorMode?: HeatmapColorMode;
|
|
758
|
+
/**
|
|
759
|
+
* Threshold mode: the expected value per cell. A cell equal to the target is green,
|
|
760
|
+
* below it (including empty 0-cells) amber, above it red. When unset, the target is
|
|
761
|
+
* auto-derived from the number of asset-scoped source rtIds (the `entitySelectorId`
|
|
762
|
+
* binding) — e.g. the count of EnergyMeasurements under the picked MeteringPoint.
|
|
763
|
+
*/
|
|
764
|
+
thresholdTarget?: number;
|
|
748
765
|
/** Show the chart legend */
|
|
749
766
|
showLegend?: boolean;
|
|
750
767
|
/** Position of the legend */
|
|
@@ -4423,6 +4440,20 @@ declare class HeatmapWidgetComponent implements DashboardWidget<HeatmapWidgetCon
|
|
|
4423
4440
|
* Assigns colors to heatmap data items based on value range and color scheme.
|
|
4424
4441
|
*/
|
|
4425
4442
|
private assignColors;
|
|
4443
|
+
/**
|
|
4444
|
+
* Resolves the expected value per cell for `threshold` color mode. Uses the
|
|
4445
|
+
* explicit {@link HeatmapWidgetConfig.thresholdTarget} when set; otherwise
|
|
4446
|
+
* auto-derives it from the number of asset-scoped source rtIds (each scoped
|
|
4447
|
+
* source contributes one value per interval, so a "healthy" cell equals the
|
|
4448
|
+
* number of scoped sources — e.g. the EnergyMeasurements under a MeteringPoint).
|
|
4449
|
+
* Returns `null` when neither is available.
|
|
4450
|
+
*/
|
|
4451
|
+
private resolveThresholdTarget;
|
|
4452
|
+
/**
|
|
4453
|
+
* Bands a value around the target: equal → green, below (incl. empty 0-cells)
|
|
4454
|
+
* → amber, above → red.
|
|
4455
|
+
*/
|
|
4456
|
+
private getThresholdColor;
|
|
4426
4457
|
private aggregate;
|
|
4427
4458
|
private parseDate;
|
|
4428
4459
|
private convertFiltersToDto;
|
|
@@ -4445,6 +4476,8 @@ interface HeatmapConfigResult extends WidgetConfigResult {
|
|
|
4445
4476
|
valueField?: string;
|
|
4446
4477
|
aggregation: HeatmapAggregation;
|
|
4447
4478
|
colorScheme: HeatmapColorScheme;
|
|
4479
|
+
colorMode?: HeatmapColorMode;
|
|
4480
|
+
thresholdTarget?: number;
|
|
4448
4481
|
showLegend: boolean;
|
|
4449
4482
|
legendPosition: 'top' | 'bottom' | 'left' | 'right';
|
|
4450
4483
|
decimalPlaces?: number;
|
|
@@ -4468,6 +4501,8 @@ declare class HeatmapConfigDialogComponent implements OnInit {
|
|
|
4468
4501
|
initialValueField?: string;
|
|
4469
4502
|
initialAggregation?: HeatmapAggregation;
|
|
4470
4503
|
initialColorScheme?: HeatmapColorScheme;
|
|
4504
|
+
initialColorMode?: HeatmapColorMode;
|
|
4505
|
+
initialThresholdTarget?: number;
|
|
4471
4506
|
initialShowLegend?: boolean;
|
|
4472
4507
|
initialLegendPosition?: 'top' | 'bottom' | 'left' | 'right';
|
|
4473
4508
|
initialDecimalPlaces?: number;
|
|
@@ -4488,6 +4523,10 @@ declare class HeatmapConfigDialogComponent implements OnInit {
|
|
|
4488
4523
|
value: string;
|
|
4489
4524
|
label: string;
|
|
4490
4525
|
}[];
|
|
4526
|
+
colorModeOptions: {
|
|
4527
|
+
value: HeatmapColorMode;
|
|
4528
|
+
label: string;
|
|
4529
|
+
}[];
|
|
4491
4530
|
colorSchemeOptions: {
|
|
4492
4531
|
value: HeatmapColorScheme;
|
|
4493
4532
|
label: string;
|
|
@@ -4507,6 +4546,8 @@ declare class HeatmapConfigDialogComponent implements OnInit {
|
|
|
4507
4546
|
valueField: string | undefined;
|
|
4508
4547
|
aggregation: HeatmapAggregation;
|
|
4509
4548
|
colorScheme: HeatmapColorScheme;
|
|
4549
|
+
colorMode: HeatmapColorMode;
|
|
4550
|
+
thresholdTarget: number | undefined;
|
|
4510
4551
|
showLegend: boolean;
|
|
4511
4552
|
legendPosition: "top" | "bottom" | "left" | "right";
|
|
4512
4553
|
decimalPlaces: number;
|
|
@@ -4530,7 +4571,7 @@ declare class HeatmapConfigDialogComponent implements OnInit {
|
|
|
4530
4571
|
onSave(): void;
|
|
4531
4572
|
onCancel(): void;
|
|
4532
4573
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeatmapConfigDialogComponent, never>;
|
|
4533
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeatmapConfigDialogComponent, "mm-heatmap-config-dialog", never, { "initialQueryRtId": { "alias": "initialQueryRtId"; "required": false; }; "initialQueryName": { "alias": "initialQueryName"; "required": false; }; "initialQueryFamily": { "alias": "initialQueryFamily"; "required": false; }; "initialIgnoreTimeFilter": { "alias": "initialIgnoreTimeFilter"; "required": false; }; "initialEntitySelectorId": { "alias": "initialEntitySelectorId"; "required": false; }; "initialDateField": { "alias": "initialDateField"; "required": false; }; "initialDateEndField": { "alias": "initialDateEndField"; "required": false; }; "initialValueField": { "alias": "initialValueField"; "required": false; }; "initialAggregation": { "alias": "initialAggregation"; "required": false; }; "initialColorScheme": { "alias": "initialColorScheme"; "required": false; }; "initialShowLegend": { "alias": "initialShowLegend"; "required": false; }; "initialLegendPosition": { "alias": "initialLegendPosition"; "required": false; }; "initialDecimalPlaces": { "alias": "initialDecimalPlaces"; "required": false; }; "initialCompactNumbers": { "alias": "initialCompactNumbers"; "required": false; }; "initialValueMultiplier": { "alias": "initialValueMultiplier"; "required": false; }; "initialFilters": { "alias": "initialFilters"; "required": false; }; }, {}, never, never, true, never>;
|
|
4574
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeatmapConfigDialogComponent, "mm-heatmap-config-dialog", never, { "initialQueryRtId": { "alias": "initialQueryRtId"; "required": false; }; "initialQueryName": { "alias": "initialQueryName"; "required": false; }; "initialQueryFamily": { "alias": "initialQueryFamily"; "required": false; }; "initialIgnoreTimeFilter": { "alias": "initialIgnoreTimeFilter"; "required": false; }; "initialEntitySelectorId": { "alias": "initialEntitySelectorId"; "required": false; }; "initialDateField": { "alias": "initialDateField"; "required": false; }; "initialDateEndField": { "alias": "initialDateEndField"; "required": false; }; "initialValueField": { "alias": "initialValueField"; "required": false; }; "initialAggregation": { "alias": "initialAggregation"; "required": false; }; "initialColorScheme": { "alias": "initialColorScheme"; "required": false; }; "initialColorMode": { "alias": "initialColorMode"; "required": false; }; "initialThresholdTarget": { "alias": "initialThresholdTarget"; "required": false; }; "initialShowLegend": { "alias": "initialShowLegend"; "required": false; }; "initialLegendPosition": { "alias": "initialLegendPosition"; "required": false; }; "initialDecimalPlaces": { "alias": "initialDecimalPlaces"; "required": false; }; "initialCompactNumbers": { "alias": "initialCompactNumbers"; "required": false; }; "initialValueMultiplier": { "alias": "initialValueMultiplier"; "required": false; }; "initialFilters": { "alias": "initialFilters"; "required": false; }; }, {}, never, never, true, never>;
|
|
4534
4575
|
}
|
|
4535
4576
|
|
|
4536
4577
|
interface StatValue {
|
|
@@ -6286,4 +6327,4 @@ declare class MeshBoardManagerDialogComponent implements OnInit {
|
|
|
6286
6327
|
}
|
|
6287
6328
|
|
|
6288
6329
|
export { AddWidgetDialogComponent, AiInsightsConfigDialogComponent, AiInsightsService, AiInsightsWidgetComponent, AlertBannerConfigDialogComponent, AlertBannerWidgetComponent, AlertListConfigDialogComponent, AlertListWidgetComponent, AssociationsConfigDialogComponent, AutoRefreshTimerService, BarChartConfigDialogComponent, BarChartWidgetComponent, DEFAULT_TIME_ZONE_MODE, DashboardDataService, DashboardGridService, EditModeStateService, EditWidgetDialogComponent, EntityAssociationsWidgetComponent, EntityCardConfigDialogComponent, EntityCardWidgetComponent, EntityDetailDialogComponent, EntitySelectorEditorComponent, EntitySelectorToolbarComponent, GaugeConfigDialogComponent, GaugeWidgetComponent, HeatmapConfigDialogComponent, HeatmapWidgetComponent, KpiConfigDialogComponent, KpiWidgetComponent, LineChartConfigDialogComponent, LineChartWidgetComponent, MESHBOARD_OPTIONS, MESHBOARD_TENANT_ID_PROVIDER, MarkdownConfigDialogComponent, MarkdownWidgetComponent, MeshBoardDataService, MeshBoardGridService, MeshBoardManagerDialogComponent, MeshBoardPersistenceService, MeshBoardSettingsDialogComponent, MeshBoardSettingsResult, MeshBoardStateService, MeshBoardViewComponent, PieChartConfigDialogComponent, PieChartWidgetComponent, QueryExecutorService, QuerySelectorComponent, RuntimeEntitySelectorComponent, ServiceHealthConfigDialogComponent, ServiceHealthWidgetComponent, StatsGridConfigDialogComponent, StatsGridWidgetComponent, StatusIndicatorConfigDialogComponent, StatusIndicatorWidgetComponent, StatusListConfigDialogComponent, StatusListWidgetComponent, SummaryCardConfigDialogComponent, SummaryCardWidgetComponent, TableConfigDialogComponent, TableWidgetComponent, TableWidgetDataSourceDirective, WidgetFactoryService, WidgetGroupComponent, WidgetGroupConfigDialogComponent, WidgetNotConfiguredComponent, WidgetRegistryService, classifyQuery, provideDefaultWidgets, provideMeshBoard, provideProcessWidget, provideWidgetRegistrations, queryFamily, registerDefaultWidgets, registerProcessWidget };
|
|
6289
|
-
export type { AggregationDataSource, AggregationQuery, AggregationType, AiInsightsConfigResult, AiInsightsWidgetConfig, AlertBannerConfigResult, AlertBannerWidgetConfig, AlertListConfigResult, AlertListWidgetConfig, AnyWidgetConfig, AssociationsConfigResult, BarChartColorThreshold, BarChartConfigResult, BarChartSeries, BarChartType, BarChartWidgetConfig, BaseWidgetConfig, CategoryValueItem, ChartReferenceLine, CkQueryResult, CkQueryTarget, CkTypeAttributeInfo, ConfigDialogResult, ConfigResultApplier, ConstructionKitQueryDataSource, DashboardConfig, DashboardWidget, DataSource, DataSourceType, DiagramPropertyMapping, EntityAssociation, EntityAttribute, EntityCardConfigResult, EntityCardWidgetConfig, EntityListWidget, EntitySelectorAttributeMapping, EntitySelectorChildScope, EntitySelectorClearEvent, EntitySelectorConfig, EntitySelectorEvent, EntityWidget, EntityWithAssociationsWidgetConfig, GaugeConfigResult, GaugeRange, GaugeType, GaugeWidgetConfig, GridCell, GridPosition, GroupChildWidgetType, GroupedDataItem, HeatmapAggregation, HeatmapColorScheme, HeatmapConfigResult, HeatmapWidgetConfig, KpiConfigResult, KpiDataSourceType, KpiQueryMode, KpiWidgetConfig, LineChartConfigResult, LineChartType, LineChartWidgetConfig, MarkdownConfigResult, MarkdownTextAlign, MarkdownWidgetConfig, MeshBoardConfig, MeshBoardOptions, MeshBoardTimeFilterConfig, MeshBoardTimeZoneMode, MeshBoardVariable, MeshBoardVariableSource, MeshBoardVariableType, ParentAssociationMode, PersistedDashboard, PersistedMeshBoard, PersistedWidget, PersistedWidgetData, PersistentQueryCellMode, PersistentQueryCellSource, PersistentQueryDataSource, PersistentQueryItem, PieChartConfigResult, PieChartType, PieChartWidgetConfig, ProcessWidgetConfig, Quarter, QueryCell, QueryClassification, QueryColumn, QueryColumnInfo, QueryColumnItem, QueryExecutionOptions, QueryExecutionResult, QueryFamily, QueryKind, QueryResultRow, RelativeTimeUnit, RepeaterDataItem, RepeaterQueryDataSource, RuntimeEntityData, RuntimeEntityDataSource, RuntimeEntitySelectorValue, ServiceCallDataSource, ServiceCallType, ServiceHealthConfigResult, ServiceHealthWidgetConfig, StatColor, StatItem, StaticDataSource, StatsGridConfigResult, StatsGridWidgetConfig, StatusIndicatorConfigResult, StatusIndicatorWidgetConfig, StatusListConfigResult, StatusListWidgetConfig, StreamDataExecutionArgs, SummaryCardConfigResult, SummaryCardTile, SummaryCardWidgetConfig, TableColumn, TableColumnStatusIconMapping, TableConfigResult, TableFilterConfig, TableSortConfig, TableWidgetConfig, TargetEntityWithAttributes, TimeRangePickerConfig, TimeRangeSelection, TimeRangeType, UpdateDashboardResult, VariableResolutionError, WidgetConfig, WidgetConfigDialog, WidgetConfigDialogSize, WidgetConfigResult, WidgetCreationOptions, WidgetDataSource, WidgetFilterConfig, WidgetGroupAttributeMappings, WidgetGroupChildTemplate, WidgetGroupConfig, WidgetGroupConfigResult, WidgetGroupLayout, WidgetPersistenceData, WidgetPositionUpdate, WidgetRegistration, WidgetType, WidgetZone };
|
|
6330
|
+
export type { AggregationDataSource, AggregationQuery, AggregationType, AiInsightsConfigResult, AiInsightsWidgetConfig, AlertBannerConfigResult, AlertBannerWidgetConfig, AlertListConfigResult, AlertListWidgetConfig, AnyWidgetConfig, AssociationsConfigResult, BarChartColorThreshold, BarChartConfigResult, BarChartSeries, BarChartType, BarChartWidgetConfig, BaseWidgetConfig, CategoryValueItem, ChartReferenceLine, CkQueryResult, CkQueryTarget, CkTypeAttributeInfo, ConfigDialogResult, ConfigResultApplier, ConstructionKitQueryDataSource, DashboardConfig, DashboardWidget, DataSource, DataSourceType, DiagramPropertyMapping, EntityAssociation, EntityAttribute, EntityCardConfigResult, EntityCardWidgetConfig, EntityListWidget, EntitySelectorAttributeMapping, EntitySelectorChildScope, EntitySelectorClearEvent, EntitySelectorConfig, EntitySelectorEvent, EntityWidget, EntityWithAssociationsWidgetConfig, GaugeConfigResult, GaugeRange, GaugeType, GaugeWidgetConfig, GridCell, GridPosition, GroupChildWidgetType, GroupedDataItem, HeatmapAggregation, HeatmapColorMode, HeatmapColorScheme, HeatmapConfigResult, HeatmapWidgetConfig, KpiConfigResult, KpiDataSourceType, KpiQueryMode, KpiWidgetConfig, LineChartConfigResult, LineChartType, LineChartWidgetConfig, MarkdownConfigResult, MarkdownTextAlign, MarkdownWidgetConfig, MeshBoardConfig, MeshBoardOptions, MeshBoardTimeFilterConfig, MeshBoardTimeZoneMode, MeshBoardVariable, MeshBoardVariableSource, MeshBoardVariableType, ParentAssociationMode, PersistedDashboard, PersistedMeshBoard, PersistedWidget, PersistedWidgetData, PersistentQueryCellMode, PersistentQueryCellSource, PersistentQueryDataSource, PersistentQueryItem, PieChartConfigResult, PieChartType, PieChartWidgetConfig, ProcessWidgetConfig, Quarter, QueryCell, QueryClassification, QueryColumn, QueryColumnInfo, QueryColumnItem, QueryExecutionOptions, QueryExecutionResult, QueryFamily, QueryKind, QueryResultRow, RelativeTimeUnit, RepeaterDataItem, RepeaterQueryDataSource, RuntimeEntityData, RuntimeEntityDataSource, RuntimeEntitySelectorValue, ServiceCallDataSource, ServiceCallType, ServiceHealthConfigResult, ServiceHealthWidgetConfig, StatColor, StatItem, StaticDataSource, StatsGridConfigResult, StatsGridWidgetConfig, StatusIndicatorConfigResult, StatusIndicatorWidgetConfig, StatusListConfigResult, StatusListWidgetConfig, StreamDataExecutionArgs, SummaryCardConfigResult, SummaryCardTile, SummaryCardWidgetConfig, TableColumn, TableColumnStatusIconMapping, TableConfigResult, TableFilterConfig, TableSortConfig, TableWidgetConfig, TargetEntityWithAttributes, TimeRangePickerConfig, TimeRangeSelection, TimeRangeType, UpdateDashboardResult, VariableResolutionError, WidgetConfig, WidgetConfigDialog, WidgetConfigDialogSize, WidgetConfigResult, WidgetCreationOptions, WidgetDataSource, WidgetFilterConfig, WidgetGroupAttributeMappings, WidgetGroupChildTemplate, WidgetGroupConfig, WidgetGroupConfigResult, WidgetGroupLayout, WidgetPersistenceData, WidgetPositionUpdate, WidgetRegistration, WidgetType, WidgetZone };
|