@c8y/ngx-components 1021.63.2 → 1021.67.0
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/auth-configuration/sso-configuration/template-parts/signature-configuration.component.d.ts +7 -2
- package/auth-configuration/sso-configuration/template-parts/signature-configuration.component.d.ts.map +1 -1
- package/core/bottom-drawer/bottom-drawer-ref.d.ts +4 -0
- package/core/bottom-drawer/bottom-drawer-ref.d.ts.map +1 -1
- package/core/breadcrumb/breadcrumb-item.component.d.ts +1 -1
- package/core/breadcrumb/breadcrumb-item.component.d.ts.map +1 -1
- package/core/breadcrumb/breadcrumb-outlet.component.d.ts +1 -1
- package/core/breadcrumb/breadcrumb-outlet.component.d.ts.map +1 -1
- package/core/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/core/breadcrumb/breadcrumb.component.d.ts.map +1 -1
- package/core/breadcrumb/breadcrumb.module.d.ts +7 -7
- package/core/breadcrumb/breadcrumb.module.d.ts.map +1 -1
- package/core/common/common.module.d.ts +38 -38
- package/core/common/date-format.service.d.ts +30 -0
- package/core/common/date-format.service.d.ts.map +1 -0
- package/core/common/date.pipe.d.ts +7 -3
- package/core/common/date.pipe.d.ts.map +1 -1
- package/core/common/index.d.ts +1 -0
- package/core/common/index.d.ts.map +1 -1
- package/core/common/outlet.directive.d.ts +1 -1
- package/core/common/outlet.directive.d.ts.map +1 -1
- package/core/common/user-preferences/user-preferences-store-current-user.d.ts +11 -0
- package/core/common/user-preferences/user-preferences-store-current-user.d.ts.map +1 -0
- package/core/common/user-preferences/user-preferences.service.d.ts +40 -1
- package/core/common/user-preferences/user-preferences.service.d.ts.map +1 -1
- package/core/date-picker/date-picker.component.d.ts +3 -1
- package/core/date-picker/date-picker.component.d.ts.map +1 -1
- package/core/date-time-picker/date-time-picker.component.d.ts +6 -3
- package/core/date-time-picker/date-time-picker.component.d.ts.map +1 -1
- package/core/dynamic-forms/date/date.type.component.d.ts +3 -0
- package/core/dynamic-forms/date/date.type.component.d.ts.map +1 -1
- package/core/plugins/plugins.model.d.ts +1 -0
- package/core/plugins/plugins.model.d.ts.map +1 -1
- package/core/plugins/plugins.service.d.ts +7 -2
- package/core/plugins/plugins.service.d.ts.map +1 -1
- package/core/time-interval/time-interval.component.d.ts +4 -2
- package/core/time-interval/time-interval.component.d.ts.map +1 -1
- package/ecosystem/application-plugins/application-plugin-readme.component.d.ts +15 -0
- package/ecosystem/application-plugins/application-plugin-readme.component.d.ts.map +1 -0
- package/ecosystem/application-plugins/application-plugins.component.d.ts +4 -2
- package/ecosystem/application-plugins/application-plugins.component.d.ts.map +1 -1
- package/ecosystem/application-plugins/application-plugins.module.d.ts +4 -3
- package/ecosystem/application-plugins/application-plugins.module.d.ts.map +1 -1
- package/ecosystem/application-plugins/install-plugin.component.d.ts +8 -4
- package/ecosystem/application-plugins/install-plugin.component.d.ts.map +1 -1
- package/ecosystem/application-plugins/plugin-list.component.d.ts +10 -26
- package/ecosystem/application-plugins/plugin-list.component.d.ts.map +1 -1
- package/ecosystem/application-plugins/plugin-list.service.d.ts +27 -0
- package/ecosystem/application-plugins/plugin-list.service.d.ts.map +1 -0
- package/ecosystem/ecosystem.module.d.ts +2 -1
- package/ecosystem/ecosystem.module.d.ts.map +1 -1
- package/ecosystem/packages/package-changelog-tab/package-changelog-tab.component.d.ts +15 -0
- package/ecosystem/packages/package-changelog-tab/package-changelog-tab.component.d.ts.map +1 -0
- package/ecosystem/packages/package-changelog.guard.d.ts +10 -0
- package/ecosystem/packages/package-changelog.guard.d.ts.map +1 -0
- package/ecosystem/packages/package-details/package-details.component.d.ts +7 -9
- package/ecosystem/packages/package-details/package-details.component.d.ts.map +1 -1
- package/ecosystem/packages/package-versions/package-contents/contents-plugins/contents-plugins.component.d.ts +5 -1
- package/ecosystem/packages/package-versions/package-contents/contents-plugins/contents-plugins.component.d.ts.map +1 -1
- package/ecosystem/packages/package-versions/package-contents/packages-contents.component.d.ts +8 -3
- package/ecosystem/packages/package-versions/package-contents/packages-contents.component.d.ts.map +1 -1
- package/ecosystem/packages/package-versions/packages-versions.component.d.ts +9 -2
- package/ecosystem/packages/package-versions/packages-versions.component.d.ts.map +1 -1
- package/ecosystem/shared/index.d.ts +1 -0
- package/ecosystem/shared/index.d.ts.map +1 -1
- package/ecosystem/shared/package-changelog/package-changelog.component.d.ts +24 -0
- package/ecosystem/shared/package-changelog/package-changelog.component.d.ts.map +1 -0
- package/ecosystem/shared/shared-ecosystem.module.d.ts +2 -1
- package/ecosystem/shared/shared-ecosystem.module.d.ts.map +1 -1
- package/esm2022/auth-configuration/sso-configuration/template-parts/signature-configuration.component.mjs +11 -7
- package/esm2022/core/bottom-drawer/bottom-drawer-ref.mjs +9 -3
- package/esm2022/core/breadcrumb/breadcrumb-item.component.mjs +3 -3
- package/esm2022/core/breadcrumb/breadcrumb-outlet.component.mjs +19 -9
- package/esm2022/core/breadcrumb/breadcrumb.component.mjs +3 -3
- package/esm2022/core/breadcrumb/breadcrumb.module.mjs +16 -5
- package/esm2022/core/common/common.module.mjs +6 -6
- package/esm2022/core/common/date-format.service.mjs +81 -0
- package/esm2022/core/common/date.pipe.mjs +29 -6
- package/esm2022/core/common/index.mjs +2 -1
- package/esm2022/core/common/outlet.directive.mjs +4 -3
- package/esm2022/core/common/user-preferences/user-preferences-store-current-user.mjs +22 -0
- package/esm2022/core/common/user-preferences/user-preferences.service.mjs +106 -16
- package/esm2022/core/date-picker/date-picker.component.mjs +11 -4
- package/esm2022/core/date-time-picker/date-time-picker.component.mjs +20 -11
- package/esm2022/core/dynamic-forms/date/date.type.component.mjs +12 -4
- package/esm2022/core/plugins/plugins.model.mjs +1 -1
- package/esm2022/core/plugins/plugins.service.mjs +31 -5
- package/esm2022/core/time-interval/time-interval.component.mjs +9 -2
- package/esm2022/ecosystem/application-plugins/application-plugin-readme.component.mjs +26 -0
- package/esm2022/ecosystem/application-plugins/application-plugins.component.mjs +29 -14
- package/esm2022/ecosystem/application-plugins/application-plugins.module.mjs +6 -3
- package/esm2022/ecosystem/application-plugins/install-plugin.component.mjs +21 -15
- package/esm2022/ecosystem/application-plugins/plugin-list-item.component.mjs +3 -3
- package/esm2022/ecosystem/application-plugins/plugin-list.component.mjs +26 -202
- package/esm2022/ecosystem/application-plugins/plugin-list.service.mjs +200 -0
- package/esm2022/ecosystem/application-plugins/update-plugin-of-app/update-plugin-of-app.component.mjs +3 -3
- package/esm2022/ecosystem/application-properties/update-application-modal/update-application-modal.component.mjs +1 -1
- package/esm2022/ecosystem/ecosystem.module.mjs +21 -5
- package/esm2022/ecosystem/packages/package-changelog-tab/package-changelog-tab.component.mjs +33 -0
- package/esm2022/ecosystem/packages/package-changelog.guard.mjs +22 -0
- package/esm2022/ecosystem/packages/package-details/package-details.component.mjs +25 -44
- package/esm2022/ecosystem/packages/package-versions/package-contents/contents-plugins/contents-plugins.component.mjs +14 -4
- package/esm2022/ecosystem/packages/package-versions/package-contents/packages-contents.component.mjs +27 -8
- package/esm2022/ecosystem/packages/package-versions/packages-versions.component.mjs +22 -8
- package/esm2022/ecosystem/shared/index.mjs +2 -1
- package/esm2022/ecosystem/shared/list-filters/list-filters.component.mjs +3 -3
- package/esm2022/ecosystem/shared/package-changelog/package-changelog.component.mjs +82 -0
- package/esm2022/ecosystem/shared/package-version-select/package-version-select.component.mjs +3 -3
- package/esm2022/ecosystem/shared/shared-ecosystem.module.mjs +12 -6
- package/esm2022/operations/bulk-operation-scheduler/operation-scheduler.component.mjs +9 -7
- package/esm2022/operations/bulk-operations-list/bulk-operations-list.component.mjs +1 -1
- package/esm2022/upgrade/ng1/downgraded.services.mjs +3 -2
- package/esm2022/upgrade/ng1/index.mjs +3 -2
- package/esm2022/widgets/cockpit/index.mjs +3 -1
- package/esm2022/widgets/cockpit-exports/index.mjs +8 -1
- package/esm2022/widgets/definitions/index.mjs +2 -1
- package/esm2022/widgets/definitions/radial-gauge/c8y-ngx-components-widgets-definitions-radial-gauge.mjs +5 -0
- package/esm2022/widgets/definitions/radial-gauge/index.mjs +33 -0
- package/esm2022/widgets/implementations/info-gauge/index.mjs +2 -2
- package/esm2022/widgets/implementations/info-gauge/info-gauge-widget-config/gauge.model.mjs +295 -0
- package/esm2022/widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.mjs +141 -11
- package/esm2022/widgets/implementations/info-gauge/info-gauge-widget-config/preset-preview/preset-preview.component.mjs +67 -0
- package/esm2022/widgets/implementations/info-gauge/info-gauge-widget-view/info-gauge-widget-view.component.mjs +34 -6
- package/esm2022/widgets/implementations/info-gauge/info-gauge-widget.module.mjs +9 -4
- package/esm2022/widgets/implementations/info-gauge/radial-gauge/radial-gauge.component.mjs +97 -0
- package/esm2022/widgets/implementations/info-gauge/radial-gauge/radial-gauge.service.mjs +369 -0
- package/fesm2022/c8y-ngx-components-auth-configuration.mjs +9 -5
- package/fesm2022/c8y-ngx-components-auth-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs +209 -142
- package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs +96 -13
- package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem.mjs +336 -186
- package/fesm2022/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs +7 -5
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-bulk-operations-list.mjs +1 -1
- package/fesm2022/c8y-ngx-components-operations-bulk-operations-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-upgrade.mjs +3 -1
- package/fesm2022/c8y-ngx-components-upgrade.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-cockpit-exports.mjs +7 -0
- package/fesm2022/c8y-ngx-components-widgets-cockpit-exports.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-cockpit.mjs +2 -0
- package/fesm2022/c8y-ngx-components-widgets-cockpit.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-radial-gauge.mjs +40 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions-radial-gauge.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-implementations-info-gauge.mjs +991 -28
- package/fesm2022/c8y-ngx-components-widgets-implementations-info-gauge.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +833 -550
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +45 -6
- package/locales/es.po +45 -6
- package/locales/fr.po +45 -6
- package/locales/ja_JP.po +45 -6
- package/locales/ko.po +45 -6
- package/locales/locales.pot +73 -10
- package/locales/nl.po +45 -6
- package/locales/pl.po +45 -6
- package/locales/pt_BR.po +45 -6
- package/locales/zh_CN.po +45 -6
- package/locales/zh_TW.po +45 -6
- package/operations/bulk-operation-scheduler/operation-scheduler.component.d.ts +4 -2
- package/operations/bulk-operation-scheduler/operation-scheduler.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/upgrade/ng1/downgraded.services.d.ts +1 -0
- package/upgrade/ng1/downgraded.services.d.ts.map +1 -1
- package/upgrade/ng1/index.d.ts.map +1 -1
- package/widgets/cockpit/index.d.ts +29 -0
- package/widgets/cockpit/index.d.ts.map +1 -1
- package/widgets/cockpit-exports/index.d.ts +6 -0
- package/widgets/cockpit-exports/index.d.ts.map +1 -1
- package/widgets/definitions/index.d.ts +1 -0
- package/widgets/definitions/index.d.ts.map +1 -1
- package/widgets/definitions/radial-gauge/c8y-ngx-components-widgets-definitions-radial-gauge.d.ts.map +1 -0
- package/widgets/definitions/radial-gauge/index.d.ts +33 -0
- package/widgets/definitions/radial-gauge/index.d.ts.map +1 -0
- package/widgets/implementations/info-gauge/index.d.ts +1 -1
- package/widgets/implementations/info-gauge/index.d.ts.map +1 -1
- package/widgets/implementations/info-gauge/info-gauge-widget-config/gauge.model.d.ts +339 -0
- package/widgets/implementations/info-gauge/info-gauge-widget-config/gauge.model.d.ts.map +1 -0
- package/widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.d.ts +27 -7
- package/widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.d.ts.map +1 -1
- package/widgets/implementations/info-gauge/info-gauge-widget-config/preset-preview/preset-preview.component.d.ts +33 -0
- package/widgets/implementations/info-gauge/info-gauge-widget-config/preset-preview/preset-preview.component.d.ts.map +1 -0
- package/widgets/implementations/info-gauge/info-gauge-widget-view/info-gauge-widget-view.component.d.ts +7 -3
- package/widgets/implementations/info-gauge/info-gauge-widget-view/info-gauge-widget-view.component.d.ts.map +1 -1
- package/widgets/implementations/info-gauge/info-gauge-widget.module.d.ts +2 -1
- package/widgets/implementations/info-gauge/info-gauge-widget.module.d.ts.map +1 -1
- package/widgets/implementations/info-gauge/radial-gauge/radial-gauge.component.d.ts +37 -0
- package/widgets/implementations/info-gauge/radial-gauge/radial-gauge.component.d.ts.map +1 -0
- package/widgets/implementations/info-gauge/radial-gauge/radial-gauge.service.d.ts +146 -0
- package/widgets/implementations/info-gauge/radial-gauge/radial-gauge.service.d.ts.map +1 -0
- package/esm2022/widgets/implementations/info-gauge/info-gauge.model.mjs +0 -2
- package/widgets/implementations/info-gauge/info-gauge.model.d.ts +0 -7
- package/widgets/implementations/info-gauge/info-gauge.model.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../widgets/cockpit-exports/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../widgets/cockpit-exports/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsIG,CAAC"}
|
|
@@ -18,6 +18,7 @@ export declare const defaultWidgetIds: {
|
|
|
18
18
|
readonly RECENT_ALARMS: "Recent Alarms";
|
|
19
19
|
readonly LINEAR_GAUGE: "KPI Linear Gauge";
|
|
20
20
|
readonly SILO: "KPI Silo";
|
|
21
|
+
readonly RADIAL_GAUGE: "KPI Radial Gauge";
|
|
21
22
|
readonly DATAPOINTS_GRAPH: "Data points graph 2";
|
|
22
23
|
};
|
|
23
24
|
export type DefaultWidgetIdKeys = keyof typeof defaultWidgetIds;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../widgets/definitions/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../widgets/definitions/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;CAsBnB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAChE,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-widgets-definitions-radial-gauge.d.ts","sourceRoot":"","sources":["../../../../widgets/definitions/radial-gauge/c8y-ngx-components-widgets-definitions-radial-gauge.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DynamicDatapointsResolver } from '@c8y/ngx-components';
|
|
2
|
+
export declare const radialGaugeWidgetDefinition: {
|
|
3
|
+
id: "KPI Radial Gauge";
|
|
4
|
+
label: "Radial gauge";
|
|
5
|
+
description: "Shows the device measurements in a radial gauge.";
|
|
6
|
+
loadComponent: () => Promise<import("@angular/core").Type<any> | typeof import("@c8y/ngx-components/widgets/implementations/info-gauge").InfoGaugeWidgetViewComponent>;
|
|
7
|
+
loadConfigComponent: () => Promise<import("@angular/core").Type<any> | typeof import("@c8y/ngx-components/widgets/implementations/info-gauge").InfoGaugeWidgetConfigComponent>;
|
|
8
|
+
previewImage: string;
|
|
9
|
+
resolve: {
|
|
10
|
+
datapoints: typeof DynamicDatapointsResolver;
|
|
11
|
+
};
|
|
12
|
+
data: {
|
|
13
|
+
schema: () => Promise<{
|
|
14
|
+
default: typeof import("c8y-schema-loader?interfaceName=*");
|
|
15
|
+
schema: import("json-schema").JSONSchema7;
|
|
16
|
+
}>;
|
|
17
|
+
settings: {
|
|
18
|
+
noNewWidgets: false;
|
|
19
|
+
widgetDefaults: {
|
|
20
|
+
_width: number;
|
|
21
|
+
_height: number;
|
|
22
|
+
};
|
|
23
|
+
ng1: {
|
|
24
|
+
options: {
|
|
25
|
+
noDeviceTarget: true;
|
|
26
|
+
groupsSelectable: false;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const radialGaugeWidgetProviders: (import("@angular/core").ValueProvider | import("@angular/core").ClassProvider | import("@angular/core").ExistingProvider)[];
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../widgets/definitions/radial-gauge/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAuB,MAAM,qBAAqB,CAAC;AAGrF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCL,CAAC;AAEpC,eAAO,MAAM,0BAA0B,8HAA4C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './info-gauge-widget.module';
|
|
2
2
|
export * from './info-gauge-widget-view/info-gauge-widget-view.component';
|
|
3
3
|
export * from './info-gauge-widget-config/info-gauge-widget-config.component';
|
|
4
|
-
export * from './info-gauge.model';
|
|
4
|
+
export * from './info-gauge-widget-config/gauge.model';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/info-gauge/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2DAA2D,CAAC;AAC1E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/info-gauge/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2DAA2D,CAAC;AAC1E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { KPIDetails } from '@c8y/ngx-components/datapoint-selector';
|
|
2
|
+
export interface GeneralGaugeOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Name of the gauge preset
|
|
5
|
+
*/
|
|
6
|
+
name?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Radius of the gauge (e.g., '90%')
|
|
9
|
+
*/
|
|
10
|
+
radius?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Center of the gauge (e.g., ['50%', '50%'])
|
|
13
|
+
*/
|
|
14
|
+
center?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Starting angle of the gauge
|
|
17
|
+
*/
|
|
18
|
+
startAngle?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Ending angle of the gauge
|
|
21
|
+
*/
|
|
22
|
+
endAngle?: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Properties related to the split lines of the gauge
|
|
26
|
+
*/
|
|
27
|
+
export interface SplitPropertiesGaugeOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Number of segments in the gauge
|
|
30
|
+
*/
|
|
31
|
+
splitNumber?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Length of the split line, can be a percentage value relative to radius
|
|
34
|
+
*/
|
|
35
|
+
splitLineLength?: number | string;
|
|
36
|
+
/**
|
|
37
|
+
* Length of the split line as a ratio relative to the axisLineWidth (overrides splitLineLength)
|
|
38
|
+
*/
|
|
39
|
+
splitLineLengthRatio?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Distance between the split line and axis line
|
|
42
|
+
*/
|
|
43
|
+
splitLineDistance?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Distance between the split line and axis line as a ratio relative to the axisLineWidth (overrides splitLineDistance)
|
|
46
|
+
*/
|
|
47
|
+
splitLineDistanceRatio?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Color of the split lines (used only in the custom preset)
|
|
50
|
+
*/
|
|
51
|
+
splitLineColor?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Width of the split lines
|
|
54
|
+
*/
|
|
55
|
+
splitLineWidth?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Properties related to the ticks of the gauge
|
|
59
|
+
*/
|
|
60
|
+
export interface TickPropertiesGaugeOptions {
|
|
61
|
+
/**
|
|
62
|
+
* Whether to show ticks
|
|
63
|
+
*/
|
|
64
|
+
tickShow?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Width of the ticks
|
|
67
|
+
*/
|
|
68
|
+
tickWidth?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Color of the ticks (used only in the custom preset)
|
|
71
|
+
*/
|
|
72
|
+
tickColor?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Distance of the ticks from the center
|
|
75
|
+
*/
|
|
76
|
+
tickDistance?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Distance of the ticks from the center as a ratio relative to the axisLineWidth (overrides tickDistance)
|
|
79
|
+
*/
|
|
80
|
+
tickDistanceRatio?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Length of the ticks
|
|
83
|
+
*/
|
|
84
|
+
tickLength?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Length of the ticks as a ratio relative to the axisLineWidth (overrides tickLength)
|
|
87
|
+
*/
|
|
88
|
+
tickLengthRatio?: number;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Properties related to the axis of the gauge
|
|
92
|
+
*/
|
|
93
|
+
export interface AxisPropertiesGaugeOptions {
|
|
94
|
+
/**
|
|
95
|
+
* Distance of the axis labels from the center
|
|
96
|
+
*/
|
|
97
|
+
axisLabelDistance?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Distance of the axis labels from the center as a ratio relative to the axisLineWidth (overrides axisLabelDistance)
|
|
100
|
+
*/
|
|
101
|
+
axisLabelDistanceRatio?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Color of the axis labels (used only in the custom preset)
|
|
104
|
+
*/
|
|
105
|
+
axisLabelColor?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Font size of the axis labels
|
|
108
|
+
*/
|
|
109
|
+
axisLabelFontSize?: number;
|
|
110
|
+
/**
|
|
111
|
+
* Font size of the axis labels as a ratio relative to the container size (overrides axisLabelFontSize)
|
|
112
|
+
*/
|
|
113
|
+
axisLabelFontSizeRatio?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Minimum font size of the axis labels (used for clamping)
|
|
116
|
+
*/
|
|
117
|
+
axisLabelFontSizeMin?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Maximum font size of the axis labels (used for clamping)
|
|
120
|
+
*/
|
|
121
|
+
axisLabelFontSizeMax?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Width of the axis line
|
|
124
|
+
*/
|
|
125
|
+
axisLineWidth?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Width of the axis line as a ratio relative to the container size (overrides axisLineWidth)
|
|
128
|
+
*/
|
|
129
|
+
axisLineWidthRatio?: number;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Properties related to the pointer of the gauge
|
|
133
|
+
*/
|
|
134
|
+
export interface PointerPropertiesGaugeOptions {
|
|
135
|
+
/**
|
|
136
|
+
* Whether to show the pointer
|
|
137
|
+
*/
|
|
138
|
+
showPointer?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Style of the pointer (e.g., custom path)
|
|
141
|
+
*/
|
|
142
|
+
pointerStyle?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Color of the pointer (used only in the custom preset)
|
|
145
|
+
*/
|
|
146
|
+
pointerColor?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Width of the pointer
|
|
149
|
+
*/
|
|
150
|
+
pointerWidth?: string | number;
|
|
151
|
+
/**
|
|
152
|
+
* Width of the pointer as a ratio relative to the container size (overrides pointerWidth)
|
|
153
|
+
*/
|
|
154
|
+
pointerWidthRatio?: number;
|
|
155
|
+
/**
|
|
156
|
+
* Length of the pointer
|
|
157
|
+
*/
|
|
158
|
+
pointerLength?: string | number;
|
|
159
|
+
/**
|
|
160
|
+
* Length of the pointer as a ratio relative to the container size (overrides pointerLength)
|
|
161
|
+
*/
|
|
162
|
+
pointerLenghtRatio?: number;
|
|
163
|
+
/**
|
|
164
|
+
* Offset of the pointer from the center
|
|
165
|
+
*/
|
|
166
|
+
pointerOffset?: string | number;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Properties related to the progress bar of the gauge
|
|
170
|
+
*/
|
|
171
|
+
export interface ProgressBarGaugeOptions {
|
|
172
|
+
/**
|
|
173
|
+
* Whether to show a progress bar
|
|
174
|
+
*/
|
|
175
|
+
progressBar?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Width of the progress bar
|
|
178
|
+
*/
|
|
179
|
+
progressBarWidth?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Whether the progress bar has rounded caps
|
|
182
|
+
*/
|
|
183
|
+
progressBarRoundCap?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Color of the progress bar
|
|
186
|
+
*/
|
|
187
|
+
progressBarColor?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Additional colors for the gauge
|
|
190
|
+
*/
|
|
191
|
+
additionalGaugeColors?: string[];
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Typography-related properties for the gauge
|
|
195
|
+
*/
|
|
196
|
+
export interface TypographyGaugeOptions {
|
|
197
|
+
/**
|
|
198
|
+
* Font size of the measurement value
|
|
199
|
+
*/
|
|
200
|
+
measurementValueFontRatio?: number;
|
|
201
|
+
/**
|
|
202
|
+
* Minimum font size of the measurement value
|
|
203
|
+
*/
|
|
204
|
+
measurementValueFontMin?: number;
|
|
205
|
+
/**
|
|
206
|
+
* Maximum font size of the measurement value
|
|
207
|
+
*/
|
|
208
|
+
measurementValueFontMax?: number;
|
|
209
|
+
/**
|
|
210
|
+
* Color of the measurement value
|
|
211
|
+
*/
|
|
212
|
+
measurementValueColor?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Font size of the unit
|
|
215
|
+
*/
|
|
216
|
+
unitFontSize?: number;
|
|
217
|
+
/**
|
|
218
|
+
* Font size of the unit as a ratio relative to the container size (overrides unitFontSize)
|
|
219
|
+
*/
|
|
220
|
+
unitFontRatio?: number;
|
|
221
|
+
/**
|
|
222
|
+
* Minimum font size of the unit
|
|
223
|
+
*/
|
|
224
|
+
unitFontMin?: number;
|
|
225
|
+
/**
|
|
226
|
+
* Maximum font size of the unit
|
|
227
|
+
*/
|
|
228
|
+
unitFontMax?: number;
|
|
229
|
+
/**
|
|
230
|
+
* Color of the unit
|
|
231
|
+
*/
|
|
232
|
+
unitColor?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Font size of the date
|
|
235
|
+
*/
|
|
236
|
+
dateFontSize?: number;
|
|
237
|
+
/**
|
|
238
|
+
* Font size of the date as a ratio relative to the container size (overrides dateFontSize)
|
|
239
|
+
*/
|
|
240
|
+
dateFontRatio?: number;
|
|
241
|
+
/**
|
|
242
|
+
* Minimum font size of the date
|
|
243
|
+
*/
|
|
244
|
+
dateFontMin?: number;
|
|
245
|
+
/**
|
|
246
|
+
* Maximum font size of the date
|
|
247
|
+
*/
|
|
248
|
+
dateFontMax?: number;
|
|
249
|
+
/**
|
|
250
|
+
* Color of the date
|
|
251
|
+
*/
|
|
252
|
+
dateColor?: string;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Properties related to detailed information display
|
|
256
|
+
*/
|
|
257
|
+
export interface DetailPropertiesGaugeOptions {
|
|
258
|
+
/**
|
|
259
|
+
* Whether to show detailed information
|
|
260
|
+
*/
|
|
261
|
+
showDetail?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Font size of the value displayed
|
|
264
|
+
*/
|
|
265
|
+
valueFontSize?: number;
|
|
266
|
+
/**
|
|
267
|
+
* Offset of the detail from the center
|
|
268
|
+
*/
|
|
269
|
+
detailOffsetCenter?: number[] | string[];
|
|
270
|
+
/**
|
|
271
|
+
* Whether to show mark points
|
|
272
|
+
*/
|
|
273
|
+
showMarkPoint?: boolean;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Main interface combining all the smaller interfaces
|
|
277
|
+
*/
|
|
278
|
+
export interface GaugeOptions extends GeneralGaugeOptions, SplitPropertiesGaugeOptions, TickPropertiesGaugeOptions, AxisPropertiesGaugeOptions, PointerPropertiesGaugeOptions, ProgressBarGaugeOptions, TypographyGaugeOptions, DetailPropertiesGaugeOptions {
|
|
279
|
+
/**
|
|
280
|
+
* Miscellaneous properties for flexibility
|
|
281
|
+
*/
|
|
282
|
+
[key: string]: any;
|
|
283
|
+
}
|
|
284
|
+
export interface GaugeOptionsColors {
|
|
285
|
+
splitLineColor: string;
|
|
286
|
+
tickColor: string;
|
|
287
|
+
axisLabelColor: string;
|
|
288
|
+
pointerColor: string;
|
|
289
|
+
knobColor: string;
|
|
290
|
+
knobFontColor: string;
|
|
291
|
+
measurementValueColor: string;
|
|
292
|
+
unitColor: string;
|
|
293
|
+
dateColor: string;
|
|
294
|
+
progressBarColor: string;
|
|
295
|
+
fontFamily: string;
|
|
296
|
+
}
|
|
297
|
+
export interface GaugeAnchor {
|
|
298
|
+
/**
|
|
299
|
+
* Indicates whether to show the anchor.
|
|
300
|
+
*/
|
|
301
|
+
show?: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Indicates whether to show the anchor above the gauge.
|
|
304
|
+
*/
|
|
305
|
+
showAbove?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* The size of the anchor.
|
|
308
|
+
*/
|
|
309
|
+
size?: number;
|
|
310
|
+
/**
|
|
311
|
+
* The size of the anchor as a ratio relative to the container size.
|
|
312
|
+
* Overrides the `size` property when set.
|
|
313
|
+
*/
|
|
314
|
+
sizeRatio?: number;
|
|
315
|
+
/**
|
|
316
|
+
* The style of the anchor, represented as a key-value pair object.
|
|
317
|
+
*/
|
|
318
|
+
itemStyle?: {
|
|
319
|
+
[key: string]: any;
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
export declare const GAUGE_PRESET_NAMES: {
|
|
323
|
+
readonly DEFAULT: "Default";
|
|
324
|
+
readonly CUSTOM: "Custom preset";
|
|
325
|
+
readonly POINTER: "Pointer";
|
|
326
|
+
readonly PROGRESS_BAR: "Progress bar";
|
|
327
|
+
readonly PROGRESS_INDICATOR: "Progress indicator";
|
|
328
|
+
readonly GRADE_RATING: "Grade rating";
|
|
329
|
+
};
|
|
330
|
+
export interface InfoGaugeWidgetConfig {
|
|
331
|
+
datapoints?: KPIDetails[];
|
|
332
|
+
datapointsLabels?: KPIDetails[];
|
|
333
|
+
datapointsGauge?: KPIDetails[];
|
|
334
|
+
selectedPresetId?: string;
|
|
335
|
+
gaugeOptions?: GaugeOptions;
|
|
336
|
+
fractionSize: number;
|
|
337
|
+
}
|
|
338
|
+
export declare const GAUGE_PRESETS: GaugeOptions[];
|
|
339
|
+
//# sourceMappingURL=gauge.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gauge.model.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/info-gauge-widget-config/gauge.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAElC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAA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ular/core';
|
|
2
2
|
import { FormBuilder, NgForm } from '@angular/forms';
|
|
3
|
-
import { type DatapointAttributesFormConfig, type DatapointSelectorModalOptions } from '@c8y/ngx-components/datapoint-selector';
|
|
3
|
+
import { type DatapointAttributesFormConfig, type DatapointSelectorModalOptions, type KPIDetails } from '@c8y/ngx-components/datapoint-selector';
|
|
4
4
|
import { WidgetConfigComponent } from '@c8y/ngx-components/context-dashboard';
|
|
5
|
-
import { OnBeforeSave } from '@c8y/ngx-components';
|
|
5
|
+
import { DynamicComponentComponent, OnBeforeSave } from '@c8y/ngx-components';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
|
-
import { InfoGaugeWidgetConfig } from '
|
|
7
|
+
import { GaugeOptions, InfoGaugeWidgetConfig } from './gauge.model';
|
|
8
|
+
import { EditorComponent } from '@c8y/ngx-components/editor';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class InfoGaugeWidgetConfigComponent implements OnInit, OnBeforeSave {
|
|
10
|
+
export declare class InfoGaugeWidgetConfigComponent implements OnInit, OnBeforeSave, OnDestroy {
|
|
10
11
|
private formBuilder;
|
|
11
12
|
private form;
|
|
12
13
|
private widgetConfig;
|
|
14
|
+
private dynamicComponent?;
|
|
13
15
|
config: InfoGaugeWidgetConfig;
|
|
16
|
+
editorComponent: EditorComponent;
|
|
14
17
|
formGroup: ReturnType<InfoGaugeWidgetConfigComponent['createForm']>;
|
|
15
18
|
datapointSelectionConfig: Partial<DatapointSelectorModalOptions>;
|
|
16
19
|
defaultFormOptions: Partial<DatapointAttributesFormConfig>;
|
|
20
|
+
isInfoGauge: boolean;
|
|
21
|
+
activeDatapointGauge: KPIDetails;
|
|
22
|
+
showAdvancedOptions: boolean;
|
|
23
|
+
gaugeOptionsString: string;
|
|
24
|
+
gaugeOptions: GaugeOptions;
|
|
25
|
+
showAdvancedOptionsLabel: "Show advanced options";
|
|
26
|
+
hideAdvancedOptionsLabel: "Hide advanced options";
|
|
27
|
+
ALL_GAUGE_PRESETS: GaugeOptions[];
|
|
17
28
|
private limits;
|
|
18
|
-
|
|
29
|
+
readonly GAUGE_PRESETS: GaugeOptions[];
|
|
30
|
+
private destroy$;
|
|
31
|
+
constructor(formBuilder: FormBuilder, form: NgForm, widgetConfig: WidgetConfigComponent, dynamicComponent?: DynamicComponentComponent);
|
|
19
32
|
onBeforeSave(config?: InfoGaugeWidgetConfigComponent['config']): boolean | Promise<boolean> | Observable<boolean>;
|
|
20
33
|
ngOnInit(): void;
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
onRadioPresetChange(presetId: string): void;
|
|
36
|
+
assignSchema(): Promise<void>;
|
|
37
|
+
gaugeJSONChange(value: string): void;
|
|
38
|
+
trackByFn(_index: number, item: GaugeOptions): string;
|
|
39
|
+
private getPresetId;
|
|
40
|
+
private setupRadialGauge;
|
|
21
41
|
private initForm;
|
|
22
42
|
private createForm;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetConfigComponent,
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetConfigComponent, [null, null, null, { optional: true; }]>;
|
|
24
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<InfoGaugeWidgetConfigComponent, "c8y-info-gauge-widget-config", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
45
|
}
|
|
26
46
|
//# sourceMappingURL=info-gauge-widget-config.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-gauge-widget-config.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,
|
|
1
|
+
{"version":3,"file":"info-gauge-widget-config.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM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AAE,MAAM,EACZ,YAAY,EAAE,qBAAqB,EACvB,gBAAgB,CAAC,EAAE,yBAAyB;IAGlE,YAAY,CACV,MAAM,CAAC,EAAE,8BAA8B,CAAC,QAAQ,CAAC,GAChD,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;IAYnD,QAAQ,IAAI,IAAI;IA6BhB,WAAW,IAAI,IAAI;IAKnB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAkBrC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAkBnC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAiCpC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM;IAIrD,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,UAAU;yCAxLP,8BAA8B;2CAA9B,8BAA8B;CA8M1C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { GaugeOptions } from '../gauge.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PresetPreviewComponent {
|
|
5
|
+
ALL_GAUGE_PRESETS: GaugeOptions[];
|
|
6
|
+
onPresetChange: EventEmitter<string>;
|
|
7
|
+
measurement: {
|
|
8
|
+
value: number;
|
|
9
|
+
unit: string;
|
|
10
|
+
date: string;
|
|
11
|
+
};
|
|
12
|
+
activeDatapointGauge: {
|
|
13
|
+
fragment: string;
|
|
14
|
+
series: string;
|
|
15
|
+
unit: string;
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
yellowRangeMax: number;
|
|
19
|
+
yellowRangeMin: number;
|
|
20
|
+
redRangeMin: number;
|
|
21
|
+
redRangeMax: number;
|
|
22
|
+
};
|
|
23
|
+
selectedPresetId: string | null;
|
|
24
|
+
private onChange;
|
|
25
|
+
private onTouched;
|
|
26
|
+
writeValue(value: string): void;
|
|
27
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
28
|
+
registerOnTouched(fn: () => void): void;
|
|
29
|
+
emitPresetChange(presetId: string): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PresetPreviewComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PresetPreviewComponent, "c8y-preset-preview", never, { "ALL_GAUGE_PRESETS": { "alias": "ALL_GAUGE_PRESETS"; "required": false; }; }, { "onPresetChange": "onPresetChange"; }, never, never, true, never>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=preset-preview.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-preview.component.d.ts","sourceRoot":"","sources":["../../../../../../widgets/implementations/info-gauge/info-gauge-widget-config/preset-preview/preset-preview.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAA6B,MAAM,eAAe,CAAC;AAGnF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAG9C,qBAaa,sBAAsB;IACxB,iBAAiB,EAAE,YAAY,EAAE,CAAC;IACjC,cAAc,uBAA8B;IAEtD,WAAW;;;;MAIT;IACF,oBAAoB;;;;;;;;;;MAUlB;IACF,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEvC,OAAO,CAAC,QAAQ,CAA0B;IAC1C,OAAO,CAAC,SAAS,CAAa;IAE9B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI/B,gBAAgB,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAInD,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAIvC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;yCArC7B,sBAAsB;2CAAtB,sBAAsB;CA2ClC"}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
|
2
2
|
import type { KPIDetails } from '@c8y/ngx-components/datapoint-selector';
|
|
3
|
+
import { DynamicComponentComponent } from '@c8y/ngx-components';
|
|
3
4
|
import { ContextDashboardComponent } from '@c8y/ngx-components/context-dashboard';
|
|
4
|
-
import { InfoGaugeWidgetConfig } from '../info-gauge.model';
|
|
5
|
+
import { InfoGaugeWidgetConfig } from '../info-gauge-widget-config/gauge.model';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class InfoGaugeWidgetViewComponent implements OnChanges {
|
|
7
8
|
private dashboard;
|
|
9
|
+
private dynamicComponent?;
|
|
8
10
|
config: InfoGaugeWidgetConfig;
|
|
9
11
|
activeDatapointLabels: any[];
|
|
10
12
|
activeDatapointGauge: KPIDetails;
|
|
11
13
|
fractionSize: string;
|
|
12
|
-
|
|
14
|
+
isInfoGauge: boolean;
|
|
15
|
+
constructor(dashboard: ContextDashboardComponent, dynamicComponent?: DynamicComponentComponent);
|
|
16
|
+
ngOnInit(): void;
|
|
13
17
|
ngOnChanges(): void;
|
|
14
18
|
private assignContextFromContextDashboard;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetViewComponent, [{ optional: true; }]>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetViewComponent, [{ optional: true; }, { optional: true; }]>;
|
|
16
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<InfoGaugeWidgetViewComponent, "c8y-info-gauge-widget-view", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
21
|
}
|
|
18
22
|
//# sourceMappingURL=info-gauge-widget-view.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-gauge-widget-view.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/info-gauge-widget-view/info-gauge-widget-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAmB,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"info-gauge-widget-view.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/info-gauge-widget-view/info-gauge-widget-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAmB,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAEL,yBAAyB,EAE1B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAGlF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;;AAEhF,qBAiBa,4BAA6B,YAAW,SAAS;IAQ9C,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,gBAAgB,CAAC;IAR9B,MAAM,EAAE,qBAAqB,CAAC;IACvC,qBAAqB,QAAM;IAC3B,oBAAoB,EAAE,UAAU,CAAC;IACjC,YAAY,SAAW;IACvB,WAAW,EAAE,OAAO,CAAC;gBAGC,SAAS,EAAE,yBAAyB,EACpC,gBAAgB,CAAC,EAAE,yBAAyB;IAGlE,QAAQ;IAMR,WAAW,IAAI,IAAI;IA2BnB,OAAO,CAAC,iCAAiC;yCA7C9B,4BAA4B;2CAA5B,4BAA4B;CAuDxC"}
|
|
@@ -2,12 +2,13 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./info-gauge-widget-view/info-gauge-widget-view.component";
|
|
3
3
|
import * as i2 from "./info-gauge-widget-config/info-gauge-widget-config.component";
|
|
4
4
|
import * as i3 from "./current-measurement.pipe";
|
|
5
|
+
import * as i4 from "./radial-gauge/radial-gauge.component";
|
|
5
6
|
/**
|
|
6
7
|
* @deprecated
|
|
7
8
|
*/
|
|
8
9
|
export declare class InfoGaugeWidgetModule {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InfoGaugeWidgetModule, never, [typeof i1.InfoGaugeWidgetViewComponent, typeof i2.InfoGaugeWidgetConfigComponent, typeof i3.InfoGaugeCurrentMeasurementPipe], never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InfoGaugeWidgetModule, never, [typeof i1.InfoGaugeWidgetViewComponent, typeof i2.InfoGaugeWidgetConfigComponent, typeof i3.InfoGaugeCurrentMeasurementPipe, typeof i4.RadialGaugeViewComponent], never>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<InfoGaugeWidgetModule>;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=info-gauge-widget.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-gauge-widget.module.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/info-gauge/info-gauge-widget.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"info-gauge-widget.module.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/info-gauge/info-gauge-widget.module.ts"],"names":[],"mappings":";;;;;AAMA;;GAEG;AACH,qBAQa,qBAAqB;yCAArB,qBAAqB;0CAArB,qBAAqB;0CAArB,qBAAqB;CAAG"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges, ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import type { ECharts } from 'echarts';
|
|
3
|
+
import type { KPIDetails } from '@c8y/ngx-components/datapoint-selector';
|
|
4
|
+
import { IMeasurementValue } from '@c8y/client';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { GaugeOptions, GaugeOptionsColors } from '../info-gauge-widget-config/gauge.model';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class RadialGaugeViewComponent implements OnChanges, OnDestroy, AfterViewInit {
|
|
9
|
+
activeDatapointGauge: KPIDetails;
|
|
10
|
+
measurement: IMeasurementValue;
|
|
11
|
+
fractionSize: number;
|
|
12
|
+
gaugeOptions: GaugeOptions;
|
|
13
|
+
selectedPresetId: string;
|
|
14
|
+
chart: ElementRef;
|
|
15
|
+
private resizeObserver;
|
|
16
|
+
chartOptions$: Observable<GaugeOptions>;
|
|
17
|
+
echartsInstance: ECharts;
|
|
18
|
+
rangeColors: {
|
|
19
|
+
default: string;
|
|
20
|
+
yellow: string;
|
|
21
|
+
red: string;
|
|
22
|
+
};
|
|
23
|
+
gaugeOptionsColors: GaugeOptionsColors;
|
|
24
|
+
private configChangedSubject;
|
|
25
|
+
private themeSubscription;
|
|
26
|
+
private readonly themeSwitcherService;
|
|
27
|
+
private readonly radialGaugeService;
|
|
28
|
+
constructor();
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
ngAfterViewInit(): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
+
onChartInit(ec: ECharts): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadialGaugeViewComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadialGaugeViewComponent, "c8y-radial-gauge", never, { "activeDatapointGauge": { "alias": "activeDatapointGauge"; "required": false; }; "measurement": { "alias": "measurement"; "required": false; }; "fractionSize": { "alias": "fractionSize"; "required": false; }; "gaugeOptions": { "alias": "gaugeOptions"; "required": false; }; "selectedPresetId": { "alias": "selectedPresetId"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=radial-gauge.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radial-gauge.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/radial-gauge/radial-gauge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAET,aAAa,EACb,UAAU,EAEV,aAAa,EACb,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAmB,UAAU,EAAoC,MAAM,MAAM,CAAC;AAErF,OAAO,EAEL,YAAY,EACZ,kBAAkB,EACnB,MAAM,yCAAyC,CAAC;;AAGjD,qBAYa,wBAAyB,YAAW,SAAS,EAAE,SAAS,EAAE,aAAa;IACzE,oBAAoB,EAAE,UAAU,CAAC;IACjC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,YAAY,SAAK;IACjB,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,SAAM;IACQ,KAAK,EAAG,UAAU,CAAC;IAC1D,OAAO,CAAC,cAAc,CAAkB;IAExC,aAAa,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;IACxC,eAAe,EAAG,OAAO,CAAC;IAC1B,WAAW;;;;MAA6D;IACxE,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,OAAO,CAAC,oBAAoB,CAA0C;IACtE,OAAO,CAAC,iBAAiB,CAAe;IAExC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IACrE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA8B;;IAyBjE,QAAQ;IAiBR,eAAe;IAgBf,WAAW;IAUX,WAAW,CAAC,OAAO,EAAE,aAAa;IAMlC,WAAW,CAAC,EAAE,EAAE,OAAO;yCA3FZ,wBAAwB;2CAAxB,wBAAwB;CA8FpC"}
|