@c8y/ngx-components 1023.63.1 → 1023.64.2
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/datapoints-export-selector/index.d.ts +213 -48
- package/datapoints-export-selector/index.d.ts.map +1 -1
- package/echart/index.d.ts +1 -0
- package/echart/index.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs +568 -138
- package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart.mjs +6 -3
- package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-global-context.mjs +36 -1
- package/fesm2022/c8y-ngx-components-global-context.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-list.mjs +80 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-list.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions.mjs +1 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-exports.mjs +8 -1
- package/fesm2022/c8y-ngx-components-widgets-exports.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-list.mjs +702 -0
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-list.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs +3 -110
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +116 -6
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/global-context/index.d.ts +2 -0
- package/global-context/index.d.ts.map +1 -1
- package/index.d.ts +59 -2
- package/index.d.ts.map +1 -1
- package/locales/de.po +94 -23
- package/locales/es.po +96 -23
- package/locales/fr.po +95 -23
- package/locales/ja_JP.po +82 -23
- package/locales/ko.po +97 -23
- package/locales/locales.pot +62 -11
- package/locales/nl.po +94 -23
- package/locales/pl.po +98 -23
- package/locales/pt_BR.po +97 -23
- package/locales/zh_CN.po +98 -23
- package/locales/zh_TW.po +98 -23
- package/package.json +1 -1
- package/widgets/cockpit-exports/index.d.ts +6 -0
- package/widgets/cockpit-exports/index.d.ts.map +1 -1
- package/widgets/definitions/datapoints-list/index.d.ts +51 -0
- package/widgets/definitions/datapoints-list/index.d.ts.map +1 -0
- package/widgets/definitions/index.d.ts +1 -0
- package/widgets/definitions/index.d.ts.map +1 -1
- package/widgets/device-management-exports/index.d.ts +6 -0
- package/widgets/device-management-exports/index.d.ts.map +1 -1
- package/widgets/exports/index.d.ts +8 -1
- package/widgets/exports/index.d.ts.map +1 -1
- package/widgets/implementations/alarms/index.d.ts +2 -0
- package/widgets/implementations/alarms/index.d.ts.map +1 -1
- package/widgets/implementations/datapoints-list/index.d.ts +286 -0
- package/widgets/implementations/datapoints-list/index.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/index.d.ts +5 -66
- package/widgets/implementations/datapoints-table/index.d.ts.map +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as json_schema from 'json-schema';
|
|
2
|
+
import * as c8y_schema_loader_interfaceName__ from 'c8y-schema-loader?interfaceName=*';
|
|
3
|
+
import * as _c8y_ngx_components_widgets_implementations_datapoints_list from '@c8y/ngx-components/widgets/implementations/datapoints-list';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { DynamicDatapointsResolver, DynamicComponentErrorStrategy } from '@c8y/ngx-components';
|
|
6
|
+
import { exportConfigWithTargets, importConfigWithTargets } from '@c8y/ngx-components/widgets/import-export-config';
|
|
7
|
+
|
|
8
|
+
declare const dataPointsListWidgetDefinition: {
|
|
9
|
+
id: "KPI List";
|
|
10
|
+
label: "Data points list";
|
|
11
|
+
description: "A list displaying current values for selected measurements";
|
|
12
|
+
loadComponent: () => Promise<_angular_core.Type<any> | typeof _c8y_ngx_components_widgets_implementations_datapoints_list.DatapointsListViewComponent>;
|
|
13
|
+
loadConfigComponent: () => Promise<_angular_core.Type<any> | typeof _c8y_ngx_components_widgets_implementations_datapoints_list.DatapointsListConfigComponent>;
|
|
14
|
+
previewImage: string;
|
|
15
|
+
resolve: {
|
|
16
|
+
datapoints: typeof DynamicDatapointsResolver;
|
|
17
|
+
};
|
|
18
|
+
errorStrategy: DynamicComponentErrorStrategy.OVERLAY_ERROR;
|
|
19
|
+
data: {
|
|
20
|
+
schema: () => Promise<{
|
|
21
|
+
default: typeof c8y_schema_loader_interfaceName__;
|
|
22
|
+
schema: json_schema.JSONSchema7;
|
|
23
|
+
}>;
|
|
24
|
+
export: typeof exportConfigWithTargets;
|
|
25
|
+
import: typeof importConfigWithTargets;
|
|
26
|
+
controls: "dataPointsListConfig";
|
|
27
|
+
settings: {
|
|
28
|
+
noNewWidgets: false;
|
|
29
|
+
widgetDefaults: {
|
|
30
|
+
_width: number;
|
|
31
|
+
_height: number;
|
|
32
|
+
};
|
|
33
|
+
ng1: {
|
|
34
|
+
options: {
|
|
35
|
+
noDeviceTarget: true;
|
|
36
|
+
minCol: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
displaySettings: {
|
|
41
|
+
globalAutoRefreshContext: true;
|
|
42
|
+
globalTimeContext: true;
|
|
43
|
+
globalRealtimeContext: false;
|
|
44
|
+
globalAggregationContext: true;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
declare const dataPointsListWidgetProviders: (_angular_core.ValueProvider | _angular_core.ClassProvider | _angular_core.ExistingProvider)[];
|
|
49
|
+
|
|
50
|
+
export { dataPointsListWidgetDefinition, dataPointsListWidgetProviders };
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../../widgets/definitions/datapoints-list/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAkBA,cAAA,8BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,cAAA,6BAAA,GAA0C,aAAA,CAAA,aAAA,GAAA,aAAA,CAAA,aAAA,GAAA,aAAA,CAAA,gBAAA;;;;"}
|
|
@@ -25,6 +25,7 @@ declare const defaultWidgetIds: {
|
|
|
25
25
|
readonly DATAPOINTS_GRAPH: "Data points graph";
|
|
26
26
|
readonly QUICK_LINKS: "Quick Links";
|
|
27
27
|
readonly EVENT_LIST: "Event list";
|
|
28
|
+
readonly DATA_POINTS_LIST: "KPI List";
|
|
28
29
|
readonly PIE_CHART: "KPI Pie Chart";
|
|
29
30
|
};
|
|
30
31
|
type DefaultWidgetIdKeys = keyof typeof defaultWidgetIds;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../widgets/definitions/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../widgets/definitions/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCM;;;"}
|
|
@@ -53,6 +53,12 @@ declare const deviceManagementWidgetsExports: ({
|
|
|
53
53
|
readonly path: "@c8y/ngx-components/widgets/definitions/alarms/all-critical-alarms";
|
|
54
54
|
readonly description: "All critical alarms widget";
|
|
55
55
|
readonly scope: "self";
|
|
56
|
+
} | {
|
|
57
|
+
readonly name: "Widgets: Data Points List";
|
|
58
|
+
readonly module: "dataPointsListWidgetProviders";
|
|
59
|
+
readonly path: "@c8y/ngx-components/widgets/definitions/datapoints-list";
|
|
60
|
+
readonly description: "Data Points List widget";
|
|
61
|
+
readonly scope: "self";
|
|
56
62
|
} | {
|
|
57
63
|
readonly name: "Widgets: Data Points Table";
|
|
58
64
|
readonly module: "dataPointsTableWidgetProviders";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../widgets/device-management-exports/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAGA,cAAA,uCAAA;;;;;;;;;;;;;AAKA,cAAA,8BAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../widgets/device-management-exports/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAGA,cAAA,uCAAA;;;;;;;;;;;;;AAKA,cAAA,8BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -187,6 +187,13 @@ declare const pieChartWidgetProviders: {
|
|
|
187
187
|
readonly description: "Pie Chart widget";
|
|
188
188
|
readonly scope: "self";
|
|
189
189
|
};
|
|
190
|
+
declare const dataPointsListWidgetExport: {
|
|
191
|
+
readonly name: "Widgets: Data Points List";
|
|
192
|
+
readonly module: "dataPointsListWidgetProviders";
|
|
193
|
+
readonly path: "@c8y/ngx-components/widgets/definitions/datapoints-list";
|
|
194
|
+
readonly description: "Data Points List widget";
|
|
195
|
+
readonly scope: "self";
|
|
196
|
+
};
|
|
190
197
|
|
|
191
|
-
export { alarmListWidgetExport, applicationsWidgetExport, assetNotesWidgetExport, assetTableWidgetExport, cockpitWelcomeWidgetExport, criticalAlarmsWidgetExport, dataPointsTableWidgetExport, datapointGraphWidgetExport, deviceControlMessageWidgetExport, deviceManagementWelcomeWidgetExport, eventListWidgetExport, helpAndServiceWidgetExport, htmlWidgetAIChat, htmlWidgetExport, imageWidgetExport, infoGaugeWidgetExport, kpiWidgetExport, legacyCockpitWelcomeWidgetExport, linearGaugeWidgetExport, mapWidgetExport, markdownWidgetExport, pieChartWidgetProviders, quickLinksWidgetExport, radialGaugeWidgetExport, recentAlarmsWidgetExport, siloWidgetExport, threeDRotationWidgetExport };
|
|
198
|
+
export { alarmListWidgetExport, applicationsWidgetExport, assetNotesWidgetExport, assetTableWidgetExport, cockpitWelcomeWidgetExport, criticalAlarmsWidgetExport, dataPointsListWidgetExport, dataPointsTableWidgetExport, datapointGraphWidgetExport, deviceControlMessageWidgetExport, deviceManagementWelcomeWidgetExport, eventListWidgetExport, helpAndServiceWidgetExport, htmlWidgetAIChat, htmlWidgetExport, imageWidgetExport, infoGaugeWidgetExport, kpiWidgetExport, legacyCockpitWelcomeWidgetExport, linearGaugeWidgetExport, mapWidgetExport, markdownWidgetExport, pieChartWidgetProviders, quickLinksWidgetExport, radialGaugeWidgetExport, recentAlarmsWidgetExport, siloWidgetExport, threeDRotationWidgetExport };
|
|
192
199
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../widgets/exports/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAGA,cAAA,uBAAA;;;;;;;AAQA,cAAA,eAAA;;;;;;;AAQA,cAAA,qBAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;AAQA,cAAA,wBAAA;;;;;;;AAQA,cAAA,wBAAA;;;;;;;AAQA,cAAA,gCAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;AAQA,cAAA,gCAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;AAQA,cAAA,iBAAA;;;;;;;AAQA,cAAA,qBAAA;;;;;;;AAQA,cAAA,eAAA;;;;;;;AAQA,cAAA,oBAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;AAQA,cAAA,gBAAA;;;;;;;AAQA,cAAA,uBAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;AAQA,cAAA,2BAAA;;;;;;;AAQA,cAAA,gBAAA;;;;;;;AAQA,cAAA,sBAAA;;;;;;;AAQA,cAAA,mCAAA;;;;;;;AAQA,cAAA,sBAAA;;;;;;;AAQA,cAAA,sBAAA;;;;;;;AAQA,cAAA,qBAAA;;;;;;;AAQA,cAAA,gBAAA;;;;;;;AAQA,cAAA,uBAAA;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../widgets/exports/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAGA,cAAA,uBAAA;;;;;;;AAQA,cAAA,eAAA;;;;;;;AAQA,cAAA,qBAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;AAQA,cAAA,wBAAA;;;;;;;AAQA,cAAA,wBAAA;;;;;;;AAQA,cAAA,gCAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;AAQA,cAAA,gCAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;AAQA,cAAA,iBAAA;;;;;;;AAQA,cAAA,qBAAA;;;;;;;AAQA,cAAA,eAAA;;;;;;;AAQA,cAAA,oBAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;AAQA,cAAA,gBAAA;;;;;;;AAQA,cAAA,uBAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;AAQA,cAAA,2BAAA;;;;;;;AAQA,cAAA,gBAAA;;;;;;;AAQA,cAAA,sBAAA;;;;;;;AAQA,cAAA,mCAAA;;;;;;;AAQA,cAAA,sBAAA;;;;;;;AAQA,cAAA,sBAAA;;;;;;;AAQA,cAAA,qBAAA;;;;;;;AAQA,cAAA,gBAAA;;;;;;;AAQA,cAAA,uBAAA;;;;;;;AAQA,cAAA,0BAAA;;;;;;;;;;"}
|
|
@@ -353,6 +353,8 @@ declare class AlarmListWidgetComponent implements OnInit, OnDestroy, DynamicComp
|
|
|
353
353
|
readonly HISTORY_ONLY: "historyOnly";
|
|
354
354
|
readonly ALARM_LIST_CONFIG: "alarmListConfig";
|
|
355
355
|
readonly ALARM_LIST_LEGACY: "alarmListLegacy";
|
|
356
|
+
readonly DATA_POINTS_LIST: "dataPointsList";
|
|
357
|
+
readonly DATA_POINTS_LIST_CONFIG: "dataPointsListConfig";
|
|
356
358
|
};
|
|
357
359
|
private TIMEOUT_ERROR_TEXT;
|
|
358
360
|
private SERVER_ERROR_TEXT;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../../widgets/implementations/alarms/alarm-list-widget.model.ts","../../../../widgets/implementations/alarms/alarm-widget.service.ts","../../../../widgets/implementations/alarms/alarm-list-widget-config/alarm-list-widget-config.component.ts","../../../../widgets/implementations/alarms/alarm-list-widget-view/alarm-list-widget.component.ts","../../../../widgets/implementations/alarms/severity-icon.pipe.ts","../../../../widgets/implementations/alarms/sorting-description-popover-message.pipe.ts","../../../../widgets/implementations/alarms/alarms-widget.module.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAKA;;;;;;AAOA;;;;;;;AASM;;;;AAEN;AAEA;AAGM;AAGN;AAEM;;AAEJ;;;;;;;AAOA;;;;;AAMI;;;AAKJ;;;AAGA;;;;AAID;;ACvCD;AAEA;AAEc;AAAQ;AAEpB;;;;;;;;AAQG;;AAOH;;;;;;;;;AASG;;AA8DH;;;;;;;;AAQG;AACH;AA6BA;;;;;;AAMG;AACH;AAIA;;;;;;;AAOG;AACH;AASA;;;;;;;;AAQG;;AAyBH;;;;;;;;;AASG;AACH;AAUA;;;;;;;;;AASG;;AAMH;;;;;;;;;;;;;;;;;;AAkBG;AACH;AAYA;;;;;;;AAOG;;AACmB;AAAwB;AAI9C;;;;;;;;;;AAUG;AACH;AAmBA;;;;;;;;;;;;;AAaG;AACH;AAOA;;;;;;;;;;AAUG;;AAKH;;;;;;;;;;;AAWG;AACH;AAIA;;;;;;AAMG;;AAOH;;;;;;;;;;;AAWG;AACH;;;AAGD;;ACpVD;AA8EI;AACA;AACA;AACA;AACA;AACA;AACA;;;AAzDF;;;;;AAA2C;AAC3C;;;;AAA6C;;;;;;AAS7C;;;;;AAAiD;;;;AAMjD;AACA;AACA;;AAEG;AACH;;;AAaA;;;AA0BA;AA6BA;AAKA;AAwBA;AAQA;;AAQA;AAIA;;AAmBA;AAYA;AAeA;AAaA;;;AAUD;;ACjQD;;;;;;;AAcE;AACA;AACA;;AAEA;;AAEA;;AAGA;;;;;;AAA2C;AAC3C;;;AAAyC;AACzC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../../widgets/implementations/alarms/alarm-list-widget.model.ts","../../../../widgets/implementations/alarms/alarm-widget.service.ts","../../../../widgets/implementations/alarms/alarm-list-widget-config/alarm-list-widget-config.component.ts","../../../../widgets/implementations/alarms/alarm-list-widget-view/alarm-list-widget.component.ts","../../../../widgets/implementations/alarms/severity-icon.pipe.ts","../../../../widgets/implementations/alarms/sorting-description-popover-message.pipe.ts","../../../../widgets/implementations/alarms/alarms-widget.module.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAKA;;;;;;AAOA;;;;;;;AASM;;;;AAEN;AAEA;AAGM;AAGN;AAEM;;AAEJ;;;;;;;AAOA;;;;;AAMI;;;AAKJ;;;AAGA;;;;AAID;;ACvCD;AAEA;AAEc;AAAQ;AAEpB;;;;;;;;AAQG;;AAOH;;;;;;;;;AASG;;AA8DH;;;;;;;;AAQG;AACH;AA6BA;;;;;;AAMG;AACH;AAIA;;;;;;;AAOG;AACH;AASA;;;;;;;;AAQG;;AAyBH;;;;;;;;;AASG;AACH;AAUA;;;;;;;;;AASG;;AAMH;;;;;;;;;;;;;;;;;;AAkBG;AACH;AAYA;;;;;;;AAOG;;AACmB;AAAwB;AAI9C;;;;;;;;;;AAUG;AACH;AAmBA;;;;;;;;;;;;;AAaG;AACH;AAOA;;;;;;;;;;AAUG;;AAKH;;;;;;;;;;;AAWG;AACH;AAIA;;;;;;AAMG;;AAOH;;;;;;;;;;;AAWG;AACH;;;AAGD;;ACpVD;AA8EI;AACA;AACA;AACA;AACA;AACA;AACA;;;AAzDF;;;;;AAA2C;AAC3C;;;;AAA6C;;;;;;AAS7C;;;;;AAAiD;;;;AAMjD;AACA;AACA;;AAEG;AACH;;;AAaA;;;AA0BA;AA6BA;AAKA;AAwBA;AAQA;;AAQA;AAIA;;AAmBA;AAYA;AAeA;AAaA;;;AAUD;;ACjQD;;;;;;;AAcE;AACA;AACA;;AAEA;;AAEA;;AAGA;;;;;;AAA2C;AAC3C;;;AAAyC;AACzC;;;;;;;;;;AAAmC;;;;AAOnC;AAEM;AAyEN;;;;AAOgF;AAchF;AAIA;AAIA;;;AA6CA;;;AAkBD;;ACxOD;;;;AAIC;AAED;AAEE;;;AA8BD;;ACtCD;AAEE;;;AAcD;;ACID;;;;AAuBkC;;;"}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { KPIDetails } from '@c8y/ngx-components/datapoint-selector';
|
|
2
|
+
import { GlobalContextState, GLOBAL_CONTEXT_DISPLAY_MODE, PresetName } from '@c8y/ngx-components/global-context';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { OnInit, AfterViewInit } from '@angular/core';
|
|
5
|
+
import { IManagedObject, IMeasurement } from '@c8y/client';
|
|
6
|
+
import { DynamicComponentAlertAggregator, DashboardChildComponent, ColorRangeBoundaries } from '@c8y/ngx-components';
|
|
7
|
+
import { ExportConfig } from '@c8y/ngx-components/datapoints-export-selector';
|
|
8
|
+
import * as _angular_forms from '@angular/forms';
|
|
9
|
+
import { FormGroup, FormArray } from '@angular/forms';
|
|
10
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
11
|
+
import { Observable } from 'rxjs';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Datapoint with enriched measurement data
|
|
15
|
+
*/
|
|
16
|
+
interface DatapointWithMeasurement extends KPIDetails {
|
|
17
|
+
id?: string;
|
|
18
|
+
currentValue?: number | null;
|
|
19
|
+
timestamp?: Date | null;
|
|
20
|
+
diffValue?: number | null;
|
|
21
|
+
diffPercentValue?: number | null;
|
|
22
|
+
currentFractionSize?: string;
|
|
23
|
+
diffFractionSize?: string;
|
|
24
|
+
diffPercentFractionSize?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Individual column configuration with ordering support
|
|
28
|
+
*/
|
|
29
|
+
interface ColumnConfig {
|
|
30
|
+
id: 'kpi' | 'target' | 'current' | 'diff' | 'diffPercentage' | 'asset';
|
|
31
|
+
label: string;
|
|
32
|
+
visible: boolean;
|
|
33
|
+
order: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Column visibility options for the Datapoints List widget
|
|
37
|
+
*/
|
|
38
|
+
interface DatapointsListOptions {
|
|
39
|
+
/**
|
|
40
|
+
* Array of column configurations with visibility and ordering
|
|
41
|
+
*/
|
|
42
|
+
columns?: ColumnConfig[];
|
|
43
|
+
/**
|
|
44
|
+
* Legacy boolean properties for backwards compatibility
|
|
45
|
+
* These are automatically migrated to the columns array format
|
|
46
|
+
*/
|
|
47
|
+
kpi?: boolean;
|
|
48
|
+
target?: boolean;
|
|
49
|
+
current?: boolean;
|
|
50
|
+
diff?: boolean;
|
|
51
|
+
diffPercentage?: boolean;
|
|
52
|
+
asset?: boolean;
|
|
53
|
+
dataPoints?: KPIDetails[];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Configuration interface for the Datapoints List widget
|
|
57
|
+
* Extends GlobalContextState to support global context integration
|
|
58
|
+
*/
|
|
59
|
+
interface DatapointsListConfig extends Partial<GlobalContextState> {
|
|
60
|
+
/**
|
|
61
|
+
* Array of selected datapoints to display in the list
|
|
62
|
+
*/
|
|
63
|
+
datapoints: KPIDetails[];
|
|
64
|
+
/**
|
|
65
|
+
* Display settings inherited from the widget definition
|
|
66
|
+
*/
|
|
67
|
+
displaySettings: {
|
|
68
|
+
globalTimeContext: boolean;
|
|
69
|
+
globalRealtimeContext: boolean;
|
|
70
|
+
globalAggregationContext: boolean;
|
|
71
|
+
globalAutoRefreshContext: boolean;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Column visibility and widget options
|
|
75
|
+
*/
|
|
76
|
+
options?: DatapointsListOptions;
|
|
77
|
+
/**
|
|
78
|
+
* Number of decimal places to display for numeric values
|
|
79
|
+
*/
|
|
80
|
+
decimalPlaces?: number;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class DatapointsListViewComponent implements OnInit {
|
|
84
|
+
config: _angular_core.InputSignal<DatapointsListConfig>;
|
|
85
|
+
isInPreviewMode: _angular_core.InputSignal<boolean>;
|
|
86
|
+
private readonly alertService;
|
|
87
|
+
private readonly dashboardChild;
|
|
88
|
+
private readonly defaultColumns;
|
|
89
|
+
private readonly fetchService;
|
|
90
|
+
private readonly groupService;
|
|
91
|
+
private readonly inventoryService;
|
|
92
|
+
private readonly router;
|
|
93
|
+
private readonly widgetConfigMigrationService;
|
|
94
|
+
readonly CONTEXT_FEATURE: {
|
|
95
|
+
readonly LIVE_TIME: "liveTime";
|
|
96
|
+
readonly HISTORY_TIME: "historyTime";
|
|
97
|
+
readonly AGGREGATION: "aggregation";
|
|
98
|
+
readonly AUTO_REFRESH: "autoRefresh";
|
|
99
|
+
readonly REFRESH: "refresh";
|
|
100
|
+
};
|
|
101
|
+
readonly GLOBAL_CONTEXT_DISPLAY_MODE: typeof GLOBAL_CONTEXT_DISPLAY_MODE;
|
|
102
|
+
missingAllPermissionsAlert: DynamicComponentAlertAggregator;
|
|
103
|
+
targetManagedObjects: Map<string, IManagedObject>;
|
|
104
|
+
configSignal: _angular_core.WritableSignal<DatapointsListConfig>;
|
|
105
|
+
contextConfig: _angular_core.WritableSignal<GlobalContextState>;
|
|
106
|
+
dataPoints: _angular_core.WritableSignal<DatapointWithMeasurement[]>;
|
|
107
|
+
displayMode: _angular_core.WritableSignal<"dashboard" | "config" | "view_and_config">;
|
|
108
|
+
hasLoadedOnce: _angular_core.WritableSignal<boolean>;
|
|
109
|
+
hasNoPermissionsToReadAnyMeasurement: _angular_core.WritableSignal<boolean>;
|
|
110
|
+
isLinkedToGlobal: _angular_core.WritableSignal<boolean>;
|
|
111
|
+
isLoading: _angular_core.WritableSignal<boolean>;
|
|
112
|
+
widgetControls: _angular_core.WritableSignal<PresetName>;
|
|
113
|
+
fractionSize: _angular_core.Signal<string>;
|
|
114
|
+
columns: _angular_core.Signal<ColumnConfig[]>;
|
|
115
|
+
visibleColumns: _angular_core.Signal<ColumnConfig[]>;
|
|
116
|
+
exportConfig: _angular_core.Signal<ExportConfig>;
|
|
117
|
+
activeDataPoints: _angular_core.Signal<KPIDetails[]>;
|
|
118
|
+
private loadRequestId;
|
|
119
|
+
private readonly seriesWithoutPermissionToReadCount;
|
|
120
|
+
constructor();
|
|
121
|
+
ngOnInit(): void;
|
|
122
|
+
onContextChange(event: {
|
|
123
|
+
context: GlobalContextState;
|
|
124
|
+
diff: GlobalContextState;
|
|
125
|
+
}): void;
|
|
126
|
+
onRefresh(): void;
|
|
127
|
+
onExportModalOpen(isOpened: boolean): void;
|
|
128
|
+
redirectToAsset(assetId: string | number | undefined): Promise<void>;
|
|
129
|
+
getTargetManagedObject(targetId: string | number): IManagedObject | undefined;
|
|
130
|
+
getDashboardChild(): DashboardChildComponent | null;
|
|
131
|
+
getRangeValues(dp: KPIDetails): ColorRangeBoundaries;
|
|
132
|
+
onListScrolled(): void;
|
|
133
|
+
onListScrolledToTop(): void;
|
|
134
|
+
private extractContextState;
|
|
135
|
+
private setAutoRefreshPaused;
|
|
136
|
+
private loadDatapoints;
|
|
137
|
+
private fetchMeasurements;
|
|
138
|
+
private checkAndDisplayPermissionErrors;
|
|
139
|
+
private handleNoPermissionErrorMessage;
|
|
140
|
+
private showMessageForMissingPermissionsForAllSeries;
|
|
141
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatapointsListViewComponent, never>;
|
|
142
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatapointsListViewComponent, "c8y-datapoints-list", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "isInPreviewMode": { "alias": "isInPreviewMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
declare class DatapointsListService {
|
|
146
|
+
/**
|
|
147
|
+
* Calculate difference between current value and target
|
|
148
|
+
* @param datapoint - Datapoint record
|
|
149
|
+
* @returns Difference value or null if value/target is undefined
|
|
150
|
+
*/
|
|
151
|
+
diff(datapoint: DatapointWithMeasurement): number | null;
|
|
152
|
+
/**
|
|
153
|
+
* Calculate percentage difference between current value and target
|
|
154
|
+
* @param datapoint - Datapoint record
|
|
155
|
+
* @returns Percentage difference or null if target is undefined
|
|
156
|
+
*/
|
|
157
|
+
diffPercent(datapoint: DatapointWithMeasurement): number | null;
|
|
158
|
+
/**
|
|
159
|
+
* Get fraction size format based on whether the value is an integer
|
|
160
|
+
* @param value - Number to check
|
|
161
|
+
* @param defaultFractionSize - Default fraction size format to use for non-integers
|
|
162
|
+
* @returns Fraction size format ('1.0-0' for integers, defaultFractionSize for decimals)
|
|
163
|
+
*/
|
|
164
|
+
getFractionSize(value: number | null | undefined, defaultFractionSize: string): string;
|
|
165
|
+
/**
|
|
166
|
+
* Extract current value and timestamp from a measurement
|
|
167
|
+
* @param datapoint - Datapoint configuration (contains fragment and series)
|
|
168
|
+
* @param measurement - Measurement to extract value from
|
|
169
|
+
* @returns Object containing extracted value and timestamp (null if not found)
|
|
170
|
+
*/
|
|
171
|
+
extractMeasurementValue(datapoint: KPIDetails, measurement: IMeasurement | undefined): {
|
|
172
|
+
value: number | null;
|
|
173
|
+
timestamp: Date | null;
|
|
174
|
+
};
|
|
175
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatapointsListService, never>;
|
|
176
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DatapointsListService>;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
interface FetchConfig {
|
|
180
|
+
fractionSize: string;
|
|
181
|
+
dateFrom?: string;
|
|
182
|
+
dateTo?: string;
|
|
183
|
+
}
|
|
184
|
+
interface FetchResult {
|
|
185
|
+
dataPoints: DatapointWithMeasurement[];
|
|
186
|
+
seriesWithoutPermissionCount: number;
|
|
187
|
+
targetManagedObjects: Map<string, IManagedObject>;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Service that handles all data-fetching operations for the datapoints list widget.
|
|
191
|
+
* Encapsulates measurement fetching, data enrichment, and error handling.
|
|
192
|
+
*/
|
|
193
|
+
declare class DatapointsListFetchService {
|
|
194
|
+
private alertService;
|
|
195
|
+
private measurementService;
|
|
196
|
+
private inventoryService;
|
|
197
|
+
private datapointsListService;
|
|
198
|
+
/**
|
|
199
|
+
* Fetch measurements for all active datapoints and enrich them with calculated values.
|
|
200
|
+
*/
|
|
201
|
+
fetchDatapointsWithMeasurements(datapoints: KPIDetails[], config: FetchConfig): Promise<FetchResult>;
|
|
202
|
+
/**
|
|
203
|
+
* Fetch and enrich all datapoints in parallel.
|
|
204
|
+
* Each datapoint fetch is independent - one failure doesn't affect others.
|
|
205
|
+
*/
|
|
206
|
+
private fetchAllDatapoints;
|
|
207
|
+
/**
|
|
208
|
+
* Fetch measurement for a single datapoint and return enriched result.
|
|
209
|
+
* Handles errors gracefully - returns empty datapoint on failure.
|
|
210
|
+
*/
|
|
211
|
+
private fetchSingleDatapoint;
|
|
212
|
+
/**
|
|
213
|
+
* Handle fetch error and return appropriate result.
|
|
214
|
+
*/
|
|
215
|
+
private handleFetchError;
|
|
216
|
+
/**
|
|
217
|
+
* Create an enriched datapoint with measurement value and all calculated fields.
|
|
218
|
+
*/
|
|
219
|
+
private createEnrichedDatapoint;
|
|
220
|
+
/**
|
|
221
|
+
* Calculate and set all derived fields on a datapoint.
|
|
222
|
+
* Includes diff, diffPercent, and fraction sizes for display formatting.
|
|
223
|
+
*/
|
|
224
|
+
private calculateDerivedFields;
|
|
225
|
+
/**
|
|
226
|
+
* Fetch managed objects for device status display.
|
|
227
|
+
*/
|
|
228
|
+
private fetchTargetManagedObjects;
|
|
229
|
+
/**
|
|
230
|
+
* Get unique target IDs from datapoints.
|
|
231
|
+
*/
|
|
232
|
+
private getUniqueTargetIds;
|
|
233
|
+
/**
|
|
234
|
+
* Fetch a single managed object and add to the map.
|
|
235
|
+
*/
|
|
236
|
+
private fetchManagedObject;
|
|
237
|
+
/**
|
|
238
|
+
* Fetch the most recent measurement for a datapoint within the specified date range.
|
|
239
|
+
*/
|
|
240
|
+
private getMeasurementForDatapoint;
|
|
241
|
+
/**
|
|
242
|
+
* Get unique ID for a datapoint.
|
|
243
|
+
* Uses target ID if available, otherwise generates fallback based on index.
|
|
244
|
+
*/
|
|
245
|
+
private getDatapointId;
|
|
246
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatapointsListFetchService, never>;
|
|
247
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DatapointsListFetchService>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
declare class DatapointsListConfigComponent implements OnInit, AfterViewInit {
|
|
251
|
+
config: _angular_core.InputSignal<DatapointsListConfig>;
|
|
252
|
+
private readonly previewTemplate;
|
|
253
|
+
private readonly defaultColumns;
|
|
254
|
+
private readonly destroyRef;
|
|
255
|
+
private readonly form;
|
|
256
|
+
private readonly formBuilder;
|
|
257
|
+
private readonly widgetConfigService;
|
|
258
|
+
readonly controls: PresetName;
|
|
259
|
+
readonly minDecimalPlaces = 0;
|
|
260
|
+
readonly maxDecimalPlaces = 10;
|
|
261
|
+
configForm: _angular_core.WritableSignal<FormGroup<{
|
|
262
|
+
decimalPlaces: _angular_forms.FormControl<number>;
|
|
263
|
+
columns: FormArray<FormGroup<any>>;
|
|
264
|
+
}>>;
|
|
265
|
+
readonly columnsFormArray: _angular_core.Signal<FormArray<any>>;
|
|
266
|
+
/**
|
|
267
|
+
* Debounced config for preview to prevent multiple series requests on initial load.
|
|
268
|
+
* Uses debounceTime to batch rapid emissions (e.g., from initConfig + GlobalContext processing).
|
|
269
|
+
*/
|
|
270
|
+
previewConfig$: Observable<DatapointsListConfig>;
|
|
271
|
+
ngOnInit(): void;
|
|
272
|
+
ngAfterViewInit(): void;
|
|
273
|
+
onColumnDrop(event: CdkDragDrop<ColumnConfig[]>): void;
|
|
274
|
+
private initForm;
|
|
275
|
+
private pushFormToService;
|
|
276
|
+
private createForm;
|
|
277
|
+
private createColumnFormGroup;
|
|
278
|
+
private migrateColumnsConfig;
|
|
279
|
+
private minOneColumnVisible;
|
|
280
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatapointsListConfigComponent, never>;
|
|
281
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatapointsListConfigComponent, "c8y-datapoints-list-view-config", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export { DatapointsListConfigComponent, DatapointsListFetchService, DatapointsListService, DatapointsListViewComponent };
|
|
285
|
+
export type { ColumnConfig, DatapointWithMeasurement, DatapointsListConfig, DatapointsListOptions };
|
|
286
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../../widgets/implementations/datapoints-list/datapoints-list-widget.model.ts","../../../../widgets/implementations/datapoints-list/datapoints-list-view/datapoints-list-view.component.ts","../../../../widgets/implementations/datapoints-list/datapoints-list-view/datapoints-list-view.service.ts","../../../../widgets/implementations/datapoints-list/datapoints-list-view/datapoints-list-fetch.service.ts","../../../../widgets/implementations/datapoints-list/datapoints-list-config/datapoints-list-config.component.ts"],"sourcesContent":[null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;AAGA;;AAEG;AACG;;AAEJ;AACA;AACA;AACA;;;;AAID;AAED;;AAEG;;AAED;;;;AAID;AAED;;AAEG;;AAED;;AAEG;AACH;AAEA;;;AAGG;;;;;;;AAQH;AACD;AAED;;;AAGG;;AAED;;AAEG;;AAGH;;AAEG;AACH;;;;;;AAOA;;AAEG;;AAGH;;AAEG;;AAEJ;;AClBD;AA6BE;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;;;;;AAA2C;;AAE3C;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAQA;AAaA;AAIA;AAmCA;;AAKA;;AAyBA;;;;AAagF;AAgBhF;AAKA;AAIM;;;AAyBN;AASA;AAIA;AAIA;AAUA;AAiBA;;AA8CA;AAOA;AAUA;;;AAsBD;;AC9YD;AAIE;;;;AAIG;AACH;AASA;;;;AAIG;AACH;AAgBA;;;;;AAKG;AACH;AAOA;;;;;AAKG;;AAIE;AAAsB;AAAwB;;;AA6BpD;;ACjFD;;;;AAIC;AAED;;;AAGE;AACD;AAOD;;;AAGG;AACH;;;;;AASE;;AAEG;AACG;AAoBN;;;AAGG;AACH;AASA;;;AAGG;;AAsBH;;AAEG;AACH;AAuBA;;AAEG;AACH;AAkBA;;;AAGG;AACH;AAiBA;;AAEG;;AAkBH;;AAEG;AACH;AAYA;;AAEG;;AAaH;;AAEG;;AAwBH;;;AAGG;AACH;;;AAGD;;AC7MD;AAmBE;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;;;;;;AAKE;;AAGF;;;AAGG;AACH;AAKA;AAUA;;AAYA;AAgCA;AAaA;AAqBA;AASA;AAWA;;;AAYD;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as packages_client_lib from 'packages/client/lib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { OnInit, OnDestroy, TemplateRef, PipeTransform, OnChanges, EventEmitter
|
|
4
|
-
import { GlobalAutoRefreshWidgetConfig, OnBeforeSave, AggregationOption, DynamicComponentAlertAggregator, AlertService } from '@c8y/ngx-components';
|
|
3
|
+
import { OnInit, OnDestroy, TemplateRef, PipeTransform, OnChanges, EventEmitter } from '@angular/core';
|
|
4
|
+
import { GlobalAutoRefreshWidgetConfig, OnBeforeSave, AggregationOption, DynamicComponentAlertAggregator, AlertService, ColorRangeBoundaries } from '@c8y/ngx-components';
|
|
5
5
|
import { WidgetConfigService, ContextDashboardComponent } from '@c8y/ngx-components/context-dashboard';
|
|
6
6
|
import { KPIDetails, DatapointSelectorModalOptions, DatapointAttributesFormConfig } from '@c8y/ngx-components/datapoint-selector';
|
|
7
7
|
import { GlobalContextState, AggregationOptionStatus, WidgetControlsPresetConfig, GlobalContextWidgetWrapperComponent, WidgetConfigMigrationService, GlobalContextEvent } from '@c8y/ngx-components/global-context';
|
|
8
|
+
import { Observable, BehaviorSubject } from 'rxjs';
|
|
8
9
|
import { ISeries, IFetchResponse } from '@c8y/client';
|
|
9
10
|
import { TimeStamp, MinMaxValues, SourceId, DataFetchingService, DatapointsValuesDataMap, ExportConfig } from '@c8y/ngx-components/datapoints-export-selector';
|
|
10
11
|
import { Interval } from '@c8y/ngx-components/interval-picker';
|
|
11
|
-
import { Observable, BehaviorSubject } from 'rxjs';
|
|
12
12
|
import { TranslateService } from '@ngx-translate/core';
|
|
13
13
|
|
|
14
14
|
declare const DEFAULT_DPT_REFRESH_INTERVAL_VALUE = 30000;
|
|
@@ -101,12 +101,6 @@ declare const DURATION_OPTIONS: ({
|
|
|
101
101
|
unit?: undefined;
|
|
102
102
|
amount?: undefined;
|
|
103
103
|
})[];
|
|
104
|
-
interface ColorRangeBoundaries {
|
|
105
|
-
yellowRangeMin: number;
|
|
106
|
-
yellowRangeMax: number;
|
|
107
|
-
redRangeMin: number;
|
|
108
|
-
redRangeMax: number;
|
|
109
|
-
}
|
|
110
104
|
interface DatapointWithValues extends KPIDetails {
|
|
111
105
|
seriesUnit?: string;
|
|
112
106
|
values: MeasurementRanges;
|
|
@@ -327,22 +321,6 @@ declare class AdjustAggregatedTimeRangePipe implements PipeTransform {
|
|
|
327
321
|
static ɵpipe: i0.ɵɵPipeDeclaration<AdjustAggregatedTimeRangePipe, "adjustAggregatedTimeRange", true>;
|
|
328
322
|
}
|
|
329
323
|
|
|
330
|
-
/**
|
|
331
|
-
* Applies CSS classes based on the value's range.
|
|
332
|
-
*/
|
|
333
|
-
declare class ApplyRangeClassPipe implements PipeTransform {
|
|
334
|
-
/**
|
|
335
|
-
* Transforms the input value based on the specified ranges.
|
|
336
|
-
*
|
|
337
|
-
* @param value - Initial value used to determine the CSS class.
|
|
338
|
-
* @param ranges - An object containing the min and max range values for yellow and red colors.
|
|
339
|
-
* @returns The CSS class to be applied.
|
|
340
|
-
*/
|
|
341
|
-
transform(value: number, ranges: ColorRangeBoundaries): string;
|
|
342
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ApplyRangeClassPipe, never>;
|
|
343
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ApplyRangeClassPipe, "applyRangeClass", true>;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
324
|
declare class DatapointsTableViewService {
|
|
347
325
|
private dataFetchingService;
|
|
348
326
|
constructor(dataFetchingService: DataFetchingService);
|
|
@@ -674,45 +652,6 @@ declare class DatapointsTableComponent implements OnChanges {
|
|
|
674
652
|
static ɵcmp: i0.ɵɵComponentDeclaration<DatapointsTableComponent, "c8y-datapoints-table", never, { "aggregationType": { "alias": "aggregationType"; "required": false; }; "datapointsTableItems": { "alias": "datapointsTableItems"; "required": false; }; "devicesColumnHeaders": { "alias": "devicesColumnHeaders"; "required": false; }; "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; "hasMultipleDatapoints": { "alias": "hasMultipleDatapoints"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "seriesWithoutPermissionToReadCount": { "alias": "seriesWithoutPermissionToReadCount"; "required": false; }; }, { "isScrolling": "isScrolling"; }, never, never, true, never>;
|
|
675
653
|
}
|
|
676
654
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
* Emits `scrolled` and `scrolledToTop` events.
|
|
680
|
-
*
|
|
681
|
-
* The directive listens for scroll events on a virtual scroll container.
|
|
682
|
-
* - When the container is scrolled by at least 50 pixels (or a custom threshold), the `scrolled` event is emitted.
|
|
683
|
-
* - When the container is scrolled to the top, the `scrolledToTop` event is emitted.
|
|
684
|
-
*
|
|
685
|
-
*/
|
|
686
|
-
declare class VirtualScrollListenerDirective implements AfterViewInit, OnDestroy {
|
|
687
|
-
private el;
|
|
688
|
-
private ngZone;
|
|
689
|
-
/**
|
|
690
|
-
* Pixel threshold for emitting the scrolled event.
|
|
691
|
-
*/
|
|
692
|
-
scrollThreshold: number;
|
|
693
|
-
/**
|
|
694
|
-
* Event emitted when the virtual scroll container is scrolled by at least 50 pixels.
|
|
695
|
-
*/
|
|
696
|
-
scrolled: EventEmitter<void>;
|
|
697
|
-
/**
|
|
698
|
-
* Event emitted when the virtual scroll container is scrolled to the top.
|
|
699
|
-
*/
|
|
700
|
-
scrolledToTop: EventEmitter<void>;
|
|
701
|
-
private virtualScrollContainer;
|
|
702
|
-
private lastScrollTop;
|
|
703
|
-
constructor(el: ElementRef, ngZone: NgZone);
|
|
704
|
-
ngAfterViewInit(): void;
|
|
705
|
-
ngOnDestroy(): void;
|
|
706
|
-
/**
|
|
707
|
-
* Handles the scroll event. Emits `scrolled` event if scrolled by at least `scrollThreshold` pixels
|
|
708
|
-
* and `scrolledToTop` event if scrolled to the top.
|
|
709
|
-
* @param event - The scroll event.
|
|
710
|
-
*/
|
|
711
|
-
private onScroll;
|
|
712
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VirtualScrollListenerDirective, never>;
|
|
713
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<VirtualScrollListenerDirective, "[c8yVirtualScrollListener]", never, { "scrollThreshold": { "alias": "scrollThreshold"; "required": false; }; }, { "scrolled": "scrolled"; "scrolledToTop": "scrolledToTop"; }, never, never, true, never>;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
export { AdjustAggregatedTimeRangePipe, ApplyRangeClassPipe, DATE_SELECTION_LABELS, DATE_SELECTION_VALUES, DATE_SELECTION_VALUES_ARR, DEFAULT_DPT_REFRESH_INTERVAL_VALUE, DURATION_OPTIONS, DatapointsTableComponent, DatapointsTableViewService, DatapointsTableViewWidgetComponent, DatapointsTableWidgetConfigComponent, INTERVAL_VALUES_ARR, REFRESH_INTERVAL_VALUES_ARR, RENDER_TYPES_LABELS, TIME_RANGE_INTERVAL_LABELS, VirtualScrollListenerDirective };
|
|
717
|
-
export type { ColorRangeBoundaries, DataPointsTableMap, DatapointTableItem, DatapointTableMapKey, DatapointWithValues, DatapointsSeriesDataMap, DatapointsTableConfig, DateRange, Duration, GroupedDatapointTableItem, MeasurementRanges, RenderType, SeriesDataWithResponse, TableColumnHeader, Value };
|
|
655
|
+
export { AdjustAggregatedTimeRangePipe, DATE_SELECTION_LABELS, DATE_SELECTION_VALUES, DATE_SELECTION_VALUES_ARR, DEFAULT_DPT_REFRESH_INTERVAL_VALUE, DURATION_OPTIONS, DatapointsTableComponent, DatapointsTableViewService, DatapointsTableViewWidgetComponent, DatapointsTableWidgetConfigComponent, INTERVAL_VALUES_ARR, REFRESH_INTERVAL_VALUES_ARR, RENDER_TYPES_LABELS, TIME_RANGE_INTERVAL_LABELS };
|
|
656
|
+
export type { DataPointsTableMap, DatapointTableItem, DatapointTableMapKey, DatapointWithValues, DatapointsSeriesDataMap, DatapointsTableConfig, DateRange, Duration, GroupedDatapointTableItem, MeasurementRanges, RenderType, SeriesDataWithResponse, TableColumnHeader, Value };
|
|
718
657
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../../widgets/implementations/datapoints-table/datapoints-table-widget.model.ts","../../../../widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.ts","../../../../widgets/implementations/datapoints-table/datapoints-table-view/adjust-aggregated-time-range.pipe.ts","../../../../widgets/implementations/datapoints-table/datapoints-table-view/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../../widgets/implementations/datapoints-table/datapoints-table-widget.model.ts","../../../../widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.ts","../../../../widgets/implementations/datapoints-table/datapoints-table-view/adjust-aggregated-time-range.pipe.ts","../../../../widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.service.ts","../../../../widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.ts","../../../../widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table/datapoints-table.component.ts"],"sourcesContent":[null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;AAQA;AAEM;AACN;;AAEG;AACG;AAEN;AAEA;;;AAGG;AACG;AACN;;;AAGG;;AAEH;;;AAGG;AACG;;;AAGN;;AAEG;AACG;AACH;;AAGH;;AAEG;AACH;;;;;AAMA;AAMA;;;;;AAMA;AAEA;;;;;AAMA;AASA;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCM;;;AAGL;;;;;;AAOA;;;;;;AAOA;;;;AAKA;AAEK;;;;AAMJ;;AAEA;AACA;AACD;AAED;AACE;;AAEG;AACH;;;;AAIA;;;;;;AAMA;AACA;AACD;;;;;;;;;;;;;AAcA;;;;AAKC;;;;;;;;;;;AAWD;;;;;AAMA;;ACtKD;AAcE;AACA;AACA;AACA;;;;AAUA;;;;;AAAiD;AACjD;;;;AAAuD;;;AAGvD;;;;;;;AAAiE;;;;;AAOjE;;AAEA;;;AAWA;;;;AAIG;AACH;;AAMA;AAQA;AAIA;AAQA;AAMA;AAQA;;;AAaD;;ACtJD;;;;;;;AAOG;AACH;AAKE;;;;;AAKG;;AAuBH;;;;AAIG;AACH;AAiBA;;;;;AAKG;AACH;AAYA;AAMA;AAUA;AAQA;AAMA;AAMA;;;;AAIG;AACH;AAQA;;;;AAIG;AACH;AAIA;;;;;AAKG;AACH;AAUA;;;;AAIG;AACH;AAIA;;;;;AAKG;AACH;AAMA;;;;;AAKG;AACH;AAMA;;;;;;AAMG;AACH;;;AAWD;;ACjLD;AAIc;AAAQ;AAEpB;;;;;AAKG;AACH;AAIA;AAKA;;;;;;;;;;;;;;;;;;;;;;AAsBG;AACH;AAYA;;;;;;;;;AASG;;AAsCH;;;;;;;;AAQG;;AAgCH;;;;;AAKG;AACH;AAQA;AA6BA;;;;;;;;;;;;;;;AAeG;;AAqBH;;;;;;AAMG;AACH;AAQA;;;;;;;;;;;AAWG;;AAiCH;;;;;AAKG;AACH;AAmBA;AAMA;;;;;;;AAOG;AACH;;;AAIuC;AAqBvC;;;;;;;AAOG;AACH;AAuBA;;;;AAiBA;AAaA;;;;;AAKG;AACH;AAIA;AAQA;AAcA;;;;;;;;;;;;AAYG;AACH;AAIA;;;;;AAKG;AACH;;;AAGD;;AC1cD;AAkGI;AACA;AACA;AACY;AACZ;;AAtFF;;AAEG;;AAEH;;;AAGG;AACM;;AAIT;;AAEG;;AAEH;;AAEG;;AAEH;;;AAGG;;AAEH;;;AAGG;;;AAIH;;AAEG;;AAGH;;;AAGG;;AAEH;;;AAGG;AACH;AACA;;;AAGG;AACH;AACA;;AAEG;AACH;AAEA;AAEA;;;AAAiE;;;;;;;;;AAgBjE;;;AAGG;;AAIO;;AAkBJ;AAWN;;;AA2CA;AAmBA;;;;AAIG;AACH;AAMA;;;;;;;;;;;;;;AAcG;;AAgFH;;;;;;;;;;;AAWG;;AAmBH;AA2CA;AAYA;AAoBA;AAoBA;AAOA;;;AAUD;;AChcD;;;;;;;;AA6BY;AAEV;AACA;AAEA;;AAEG;;AAGH;AAaA;AAIA;AAIA;AASA;;;;;AAKG;AACH;AAIA;AASA;;;AAsBD;;;"}
|