@c8y/ngx-components 1022.16.2 → 1022.26.1
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/asset-properties/asset-properties.model.d.ts +117 -0
- package/asset-properties/asset-properties.model.d.ts.map +1 -0
- package/asset-properties/asset-properties.service.d.ts +72 -0
- package/asset-properties/asset-properties.service.d.ts.map +1 -0
- package/asset-properties/asset-property-list/asset-property-action.directive.d.ts +11 -0
- package/asset-properties/asset-property-list/asset-property-action.directive.d.ts.map +1 -0
- package/asset-properties/asset-property-list/asset-property-icon.pipe.d.ts +11 -0
- package/asset-properties/asset-property-list/asset-property-icon.pipe.d.ts.map +1 -0
- package/asset-properties/asset-property-list/asset-property-list.component.d.ts +195 -0
- package/asset-properties/asset-property-list/asset-property-list.component.d.ts.map +1 -0
- package/asset-properties/asset-property-list/asset-property-value.pipe.d.ts +17 -0
- package/asset-properties/asset-property-list/asset-property-value.pipe.d.ts.map +1 -0
- package/asset-properties/asset-property-list/tree-data-source.d.ts +19 -0
- package/asset-properties/asset-property-list/tree-data-source.d.ts.map +1 -0
- package/asset-properties/asset-property-selector-drawer/asset-property-selector-drawer.component.d.ts +75 -0
- package/asset-properties/asset-property-selector-drawer/asset-property-selector-drawer.component.d.ts.map +1 -0
- package/asset-properties/c8y-ngx-components-asset-properties.d.ts.map +1 -0
- package/asset-properties/index.d.ts +6 -0
- package/asset-properties/index.d.ts.map +1 -0
- package/core/asset-property/asset-property.model.d.ts +0 -8
- package/core/asset-property/asset-property.model.d.ts.map +1 -1
- package/core/authentication/new-password.component.d.ts +3 -2
- package/core/authentication/new-password.component.d.ts.map +1 -1
- package/core/modal/modal.service.d.ts +1 -0
- package/core/modal/modal.service.d.ts.map +1 -1
- package/core/user/user-edit-modal.component.d.ts +1 -0
- package/core/user/user-edit-modal.component.d.ts.map +1 -1
- package/core/user/user-edit.component.d.ts +4 -1
- package/core/user/user-edit.component.d.ts.map +1 -1
- package/datapoint-explorer/datapoint-explorer.module.d.ts +2 -0
- package/datapoint-explorer/datapoint-explorer.module.d.ts.map +1 -1
- package/datapoint-explorer/devicemanagement/c8y-ngx-components-datapoint-explorer-devicemanagement.d.ts.map +1 -0
- package/datapoint-explorer/devicemanagement/index.d.ts +2 -0
- package/datapoint-explorer/devicemanagement/index.d.ts.map +1 -0
- package/datapoint-explorer/view/datapoint-explorer.component.d.ts +8 -3
- package/datapoint-explorer/view/datapoint-explorer.component.d.ts.map +1 -1
- package/datapoint-explorer/view/datapoint-explorer.model.d.ts +8 -0
- package/datapoint-explorer/view/datapoint-explorer.model.d.ts.map +1 -0
- package/datapoint-explorer/view/index.d.ts +1 -0
- package/datapoint-explorer/view/index.d.ts.map +1 -1
- package/device-provisioned-certificates/device-tab-provisioned-certificates.component.d.ts +8 -2
- package/device-provisioned-certificates/device-tab-provisioned-certificates.component.d.ts.map +1 -1
- package/echart/charts.component.d.ts +1 -1
- package/echart/charts.component.d.ts.map +1 -1
- package/echart/index.d.ts +1 -0
- package/echart/index.d.ts.map +1 -1
- package/echart/models/datapoints-graph-widget.model.d.ts +13 -0
- package/echart/models/datapoints-graph-widget.model.d.ts.map +1 -1
- package/echart/services/chart-helpers.service.d.ts +23 -0
- package/echart/services/chart-helpers.service.d.ts.map +1 -0
- package/echart/services/chart-realtime.service.d.ts +2 -0
- package/echart/services/chart-realtime.service.d.ts.map +1 -1
- package/echart/services/echarts-options.service.d.ts +5 -5
- package/echart/services/echarts-options.service.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-alarms.mjs +2 -2
- package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-asset-properties.mjs +1573 -0
- package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-datapoint-explorer-devicemanagement.mjs +38 -0
- package/fesm2022/c8y-ngx-components-datapoint-explorer-devicemanagement.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +157 -141
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-list.mjs +2 -2
- package/fesm2022/c8y-ngx-components-device-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-provisioned-certificates.mjs +32 -18
- package/fesm2022/c8y-ngx-components-device-provisioned-certificates.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart-models.mjs +14 -1
- package/fesm2022/c8y-ngx-components-echart-models.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart.mjs +141 -46
- package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-protocol-opcua.mjs +3 -3
- package/fesm2022/c8y-ngx-components-protocol-opcua.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-time-context.mjs +12 -5
- package/fesm2022/c8y-ngx-components-time-context.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-trusted-certificates.mjs +2 -2
- package/fesm2022/c8y-ngx-components-trusted-certificates.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs +6 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +14 -6
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs +51 -10
- package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +1152 -1128
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +61 -46
- package/locales/es.po +44 -27
- package/locales/fr.po +72 -55
- package/locales/ja_JP.po +106 -88
- package/locales/ko.po +43 -27
- package/locales/locales.pot +49 -27
- package/locales/nl.po +44 -27
- package/locales/pl.po +44 -27
- package/locales/pt_BR.po +44 -27
- package/locales/zh_CN.po +44 -27
- package/locales/zh_TW.po +44 -27
- package/package.json +1 -1
- package/time-context/index.d.ts +1 -0
- package/time-context/index.d.ts.map +1 -1
- package/time-context/time-context.component.d.ts +6 -3
- package/time-context/time-context.component.d.ts.map +1 -1
- package/time-context/time-context.model.d.ts +10 -0
- package/time-context/time-context.model.d.ts.map +1 -0
- package/time-context/time-context.service.d.ts +2 -6
- package/time-context/time-context.service.d.ts.map +1 -1
- package/widgets/definitions/html-widget/html-widget-config.factory.d.ts.map +1 -1
- package/widgets/implementations/datapoints-graph/datapoints-graph-config/datapoints-graph-widget-config.component.d.ts +2 -0
- package/widgets/implementations/datapoints-graph/datapoints-graph-config/datapoints-graph-widget-config.component.d.ts.map +1 -1
- package/widgets/implementations/html-widget/html-widget-properties-selector/html-widget-properties-selector.component.d.ts +17 -0
- package/widgets/implementations/html-widget/html-widget-properties-selector/html-widget-properties-selector.component.d.ts.map +1 -0
- package/widgets/implementations/html-widget/html-widget.model.d.ts +2 -2
- package/widgets/implementations/html-widget/html-widget.model.d.ts.map +1 -1
- package/widgets/implementations/html-widget/index.d.ts +1 -0
- package/widgets/implementations/html-widget/index.d.ts.map +1 -1
- package/device-parameters/c8y-ngx-components-device-parameters.d.ts.map +0 -1
- package/device-parameters/device-parameter-details.component.d.ts +0 -22
- package/device-parameters/device-parameter-details.component.d.ts.map +0 -1
- package/device-parameters/device-parameter-value.component.d.ts +0 -12
- package/device-parameters/device-parameter-value.component.d.ts.map +0 -1
- package/device-parameters/device-parameters-list.component.d.ts +0 -23
- package/device-parameters/device-parameters-list.component.d.ts.map +0 -1
- package/device-parameters/device-parameters-tab.guard.d.ts +0 -11
- package/device-parameters/device-parameters-tab.guard.d.ts.map +0 -1
- package/device-parameters/index.d.ts +0 -7
- package/device-parameters/index.d.ts.map +0 -1
- package/device-parameters/parameter-type-cell-renderer.components.d.ts +0 -8
- package/device-parameters/parameter-type-cell-renderer.components.d.ts.map +0 -1
- package/fesm2022/c8y-ngx-components-device-parameters.mjs +0 -215
- package/fesm2022/c8y-ngx-components-device-parameters.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-widget-properties-selector.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/html-widget/html-widget-properties-selector/html-widget-properties-selector.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAGL,iBAAiB,EAClB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;;AAI5E,qBAgBa,qCAAqC;IAChD,mBAAmB,sBAA+B;IAClD,gBAAgB,mBAA4B;IAE5C;;;;OAIG;IACG,YAAY,CAAC,OAAO,EAAE,iBAAiB;yCATlC,qCAAqC;2CAArC,qCAAqC;CAsBjD"}
|
|
@@ -41,8 +41,8 @@ export interface ComputedProperty {
|
|
|
41
41
|
query: string;
|
|
42
42
|
reducer?: string;
|
|
43
43
|
}
|
|
44
|
-
export declare const INITIAL_HTML_FORMATTED = "<div>\n <
|
|
45
|
-
export declare const INITIAL_CSS_FORMATTED = "\n:host > div {\n padding
|
|
44
|
+
export declare const INITIAL_HTML_FORMATTED = "<div>\n <h2>Hello from <span class=\"branded\">HTML widget</span></h2>\n <p class=\"m-b-8 m-t-16\">\n You can use HTML and Javascript template literals here: <br>\n ${this.c8yContext ? this.c8yContext.name : 'No device selected'}\n </p>\n\n <a class=\"btn btn-primary m-b-16\" href=\"#/group\">Go to groups</a>\n\n <p>\n Use the CSS editor to customize the CSS. You can use <span class=\"text-bold\">any design-token CSS variable</span> in there.\n </p>\n</div>";
|
|
45
|
+
export declare const INITIAL_CSS_FORMATTED = "\n:host > div {\n padding: var(--c8y-root-component-padding-default);\n}\nspan.branded { \n color: var(--brand-primary, var(--c8y-brand-primary)); \n}";
|
|
46
46
|
export declare const defaultWebComponentName = "DefaultWebComponent";
|
|
47
47
|
export declare const defaultWebComponentAttributeNameContext = "c8yContext";
|
|
48
48
|
//# sourceMappingURL=html-widget.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-widget.model.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/html-widget/html-widget.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,cAAc,CAAC;IACzB,MAAM,EAAE,UAAU,CAAC;IAEnB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,YAAY,GAAG,gBAAgB,CAAC,CAAC;AAEnE,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"html-widget.model.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/html-widget/html-widget.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,cAAc,CAAC;IACzB,MAAM,EAAE,UAAU,CAAC;IAEnB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,YAAY,GAAG,gBAAgB,CAAC,CAAC;AAEnE,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,6dAY5B,CAAC;AACR,eAAO,MAAM,qBAAqB,6JAMhC,CAAC;AAEH,eAAO,MAAM,uBAAuB,wBAAwB,CAAC;AAE7D,eAAO,MAAM,uCAAuC,eAAe,CAAC"}
|
|
@@ -7,4 +7,5 @@ export * from './html-widget.model';
|
|
|
7
7
|
export * from './legacy-template';
|
|
8
8
|
export * from './webcomponent-template';
|
|
9
9
|
export * from './widget-code-editor-section/widget-code-editor.component';
|
|
10
|
+
export * from './html-widget-properties-selector/html-widget-properties-selector.component';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/html-widget/index.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC;AAChE,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2DAA2D,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/html-widget/index.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC;AAChE,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2DAA2D,CAAC;AAC1E,cAAc,6EAA6E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-device-parameters.d.ts","sourceRoot":"","sources":["../../device-parameters/c8y-ngx-components-device-parameters.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { IEvent, IManagedObject, IOperation, IResultList } from '@c8y/client';
|
|
3
|
-
import { DeviceParameter } from '@c8y/ngx-components';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DeviceParameterDetailsComponent implements OnInit {
|
|
6
|
-
asyncRenderSuccess: import("@angular/core").InputSignal<() => void>;
|
|
7
|
-
asyncRenderFail: import("@angular/core").InputSignal<() => void>;
|
|
8
|
-
context: import("@angular/core").InputSignal<DeviceParameter>;
|
|
9
|
-
device: IManagedObject;
|
|
10
|
-
operations: import("@angular/core").WritableSignal<IResultList<IOperation>>;
|
|
11
|
-
events: import("@angular/core").WritableSignal<IResultList<IEvent>>;
|
|
12
|
-
operationsFilterPipe: import("rxjs").UnaryFunction<import("rxjs").Observable<IOperation[]>, import("rxjs").Observable<IOperation[]>>;
|
|
13
|
-
eventsFilterPipe: import("rxjs").UnaryFunction<import("rxjs").Observable<IEvent[]>, import("rxjs").Observable<IEvent[]>>;
|
|
14
|
-
private activatedRoute;
|
|
15
|
-
private contextRouteService;
|
|
16
|
-
private operationsService;
|
|
17
|
-
private eventsService;
|
|
18
|
-
ngOnInit(): Promise<void>;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceParameterDetailsComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DeviceParameterDetailsComponent, "c8y-device-parameter-details", never, { "asyncRenderSuccess": { "alias": "asyncRenderSuccess"; "required": false; "isSignal": true; }; "asyncRenderFail": { "alias": "asyncRenderFail"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=device-parameter-details.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device-parameter-details.component.d.ts","sourceRoot":"","sources":["../../device-parameters/device-parameter-details.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqD,MAAM,EAAU,MAAM,eAAe,CAAC;AAElG,OAAO,EAEL,MAAM,EACN,cAAc,EACd,UAAU,EACV,WAAW,EAEZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAuB,eAAe,EAAE,MAAM,qBAAqB,CAAC;;AAM3E,qBAMa,+BAAgC,YAAW,MAAM;IAC5D,kBAAkB,4CAAe,IAAI,EAAI;IACzC,eAAe,4CAAe,IAAI,EAAI;IACtC,OAAO,uDAA4B;IAEnC,MAAM,EAAE,cAAc,CAAC;IAEvB,UAAU,kEAAgD;IAC1D,MAAM,8DAA4C;IAElD,oBAAoB,iHAMlB;IACF,gBAAgB,yGAMd;IAEF,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,mBAAmB,CAA+B;IAC1D,OAAO,CAAC,iBAAiB,CAA4B;IACrD,OAAO,CAAC,aAAa,CAAwB;IAEvC,QAAQ;yCA9BH,+BAA+B;2CAA/B,+BAA+B;CAoD3C"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DeviceParameterValueComponent implements OnInit {
|
|
4
|
-
value: import("@angular/core").InputSignal<object>;
|
|
5
|
-
key: import("@angular/core").InputSignal<string>;
|
|
6
|
-
padding: import("@angular/core").InputSignal<number>;
|
|
7
|
-
valuePairs: import("@angular/core").WritableSignal<[string, unknown][]>;
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceParameterValueComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DeviceParameterValueComponent, "c8y-device-parameter-value", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "key": { "alias": "key"; "required": true; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=device-parameter-value.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device-parameter-value.component.d.ts","sourceRoot":"","sources":["../../device-parameters/device-parameter-value.component.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,MAAM,EAAU,MAAM,eAAe,CAAC;;AAI1F,qBAMa,6BAA8B,YAAW,MAAM;IAC1D,KAAK,8CAA4B;IACjC,GAAG,8CAA4B;IAC/B,OAAO,8CAAoB;IAC3B,UAAU,8DAAmC;IAE7C,QAAQ,IAAI,IAAI;yCANL,6BAA6B;2CAA7B,6BAA6B;CAWzC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Column, DeviceParameter, Pagination } from '@c8y/ngx-components';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DeviceParametersListComponent implements OnInit {
|
|
5
|
-
private readonly route;
|
|
6
|
-
private readonly inventoryService;
|
|
7
|
-
private readonly assetPropertyService;
|
|
8
|
-
private readonly device;
|
|
9
|
-
rows: DeviceParameter[];
|
|
10
|
-
pagination: Pagination;
|
|
11
|
-
columns: Column[];
|
|
12
|
-
ngOnInit(): Promise<void>;
|
|
13
|
-
loadData(): Promise<{
|
|
14
|
-
data: any[];
|
|
15
|
-
res: any;
|
|
16
|
-
size: number;
|
|
17
|
-
filteredSize: number;
|
|
18
|
-
}>;
|
|
19
|
-
private getParameterKeys;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceParametersListComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DeviceParametersListComponent, "c8y-device-parameters-list", never, {}, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=device-parameters-list.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device-parameters-list.component.d.ts","sourceRoot":"","sources":["../../device-parameters/device-parameters-list.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,MAAM,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,EAGL,MAAM,EAEN,eAAe,EAIf,UAAU,EACX,MAAM,qBAAqB,CAAC;;AAK7B,qBAYa,6BAA8B,YAAW,MAAM;IAC1D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA0B;IAChD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA8C;IAC/E,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAsD;IAC3F,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiE;IAExF,IAAI,EAAE,eAAe,EAAE,CAAM;IAC7B,UAAU,EAAE,UAAU,CAAoC;IAC1D,OAAO,EAAE,MAAM,EAAE,CAUf;IAEI,QAAQ;IAIR,QAAQ;;aAQG,GAAG;;;;IAwBpB,OAAO,CAAC,gBAAgB;yCAxDb,6BAA6B;2CAA7B,6BAA6B;CA4EzC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CanActivate } from '@angular/router';
|
|
2
|
-
import { ApplicationService } from '@c8y/client';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DeviceParametersTabGuard implements CanActivate {
|
|
5
|
-
private applicationService;
|
|
6
|
-
constructor(applicationService: ApplicationService);
|
|
7
|
-
canActivate(): Promise<boolean>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceParametersTabGuard, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DeviceParametersTabGuard>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=device-parameters-tab.guard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device-parameters-tab.guard.d.ts","sourceRoot":"","sources":["../../device-parameters/device-parameters-tab.guard.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;;AAKjD,qBACa,wBAAyB,YAAW,WAAW;IAC9C,OAAO,CAAC,kBAAkB;gBAAlB,kBAAkB,EAAE,kBAAkB;IAEpD,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;yCAH1B,wBAAwB;6CAAxB,wBAAwB;CAgBpC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './device-parameter-details.component';
|
|
2
|
-
export * from './device-parameter-value.component';
|
|
3
|
-
export * from './device-parameters-list.component';
|
|
4
|
-
export * from './device-parameters-tab.guard';
|
|
5
|
-
export * from './parameter-type-cell-renderer.components';
|
|
6
|
-
export declare const deviceParametersFeatureProvider: (import("@angular/core").ValueProvider | import("@angular/core").ExistingProvider | import("@angular/core").ClassProvider)[];
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../device-parameters/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2CAA2C,CAAC;AAgB1D,eAAO,MAAM,+BAA+B,8HAAuC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CellRendererContext } from '@c8y/ngx-components';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ParameterTypeCellRendererComponent {
|
|
4
|
-
context: CellRendererContext;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ParameterTypeCellRendererComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ParameterTypeCellRendererComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=parameter-type-cell-renderer.components.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-type-cell-renderer.components.d.ts","sourceRoot":"","sources":["../../device-parameters/parameter-type-cell-renderer.components.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;;AAE1D,qBAKa,kCAAkC;IAC7C,OAAO,sBAA+B;yCAD3B,kCAAkC;2CAAlC,kCAAkC;CAE9C"}
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, signal, ChangeDetectionStrategy, Component, inject, Injectable } from '@angular/core';
|
|
3
|
-
import { ActivatedRoute } from '@angular/router';
|
|
4
|
-
import * as i1 from '@c8y/client';
|
|
5
|
-
import { OperationService, EventService, InventoryService } from '@c8y/client';
|
|
6
|
-
import { HumanizePipe, C8yTranslatePipe, ContextRouteService, CellRendererContext, AssetPropertyService, gettext, EmptyStateComponent, DataGridComponent, ExpandableRowDirective, ViewContext, hookRoute } from '@c8y/ngx-components';
|
|
7
|
-
import { EventsTimelineComponent } from '@c8y/ngx-components/events/events-timeline';
|
|
8
|
-
import { OperationsTimelineComponent } from '@c8y/ngx-components/operations/operations-timeline';
|
|
9
|
-
import { pipe, map } from 'rxjs';
|
|
10
|
-
import { NgClass, CommonModule } from '@angular/common';
|
|
11
|
-
import { toPairs } from 'lodash';
|
|
12
|
-
import { difference } from 'lodash-es';
|
|
13
|
-
|
|
14
|
-
class DeviceParameterValueComponent {
|
|
15
|
-
constructor() {
|
|
16
|
-
this.value = input.required();
|
|
17
|
-
this.key = input.required();
|
|
18
|
-
this.padding = input(0);
|
|
19
|
-
this.valuePairs = signal([]);
|
|
20
|
-
}
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
this.valuePairs.set(typeof this.value() === 'object' ? toPairs(this.value()) : [[this.key(), this.value()]]);
|
|
23
|
-
}
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DeviceParameterValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: DeviceParameterValueComponent, isStandalone: true, selector: "c8y-device-parameter-value", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: true, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ul class=\"list-unstyled small\">\n @for (pair of valuePairs(); track pair[0]) {\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n [ngClass]=\"'p-l-' + padding()\"\n data-cy=\"c8y-device-parameter-details--param-value\"\n >\n <label class=\"small m-0\">{{ pair[0] | humanize | translate }}</label>\n @if (typeof pair[1] !== 'object') {\n <span class=\"m-l-auto\">\n {{ pair[1] }}\n </span>\n }\n </li>\n @if (typeof pair[1] === 'object') {\n <c8y-device-parameter-value\n [key]=\"pair[0]\"\n [value]=\"pair[1]\"\n [padding]=\"padding() + 8\"\n ></c8y-device-parameter-value>\n }\n }\n</ul>\n", dependencies: [{ kind: "component", type: DeviceParameterValueComponent, selector: "c8y-device-parameter-value", inputs: ["value", "key", "padding"] }, { kind: "pipe", type: HumanizePipe, name: "humanize" }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DeviceParameterValueComponent, decorators: [{
|
|
28
|
-
type: Component,
|
|
29
|
-
args: [{ selector: 'c8y-device-parameter-value', imports: [HumanizePipe, C8yTranslatePipe, NgClass], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ul class=\"list-unstyled small\">\n @for (pair of valuePairs(); track pair[0]) {\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n [ngClass]=\"'p-l-' + padding()\"\n data-cy=\"c8y-device-parameter-details--param-value\"\n >\n <label class=\"small m-0\">{{ pair[0] | humanize | translate }}</label>\n @if (typeof pair[1] !== 'object') {\n <span class=\"m-l-auto\">\n {{ pair[1] }}\n </span>\n }\n </li>\n @if (typeof pair[1] === 'object') {\n <c8y-device-parameter-value\n [key]=\"pair[0]\"\n [value]=\"pair[1]\"\n [padding]=\"padding() + 8\"\n ></c8y-device-parameter-value>\n }\n }\n</ul>\n" }]
|
|
30
|
-
}] });
|
|
31
|
-
|
|
32
|
-
class DeviceParameterDetailsComponent {
|
|
33
|
-
constructor() {
|
|
34
|
-
this.asyncRenderSuccess = input();
|
|
35
|
-
this.asyncRenderFail = input();
|
|
36
|
-
this.context = input();
|
|
37
|
-
this.operations = signal(null);
|
|
38
|
-
this.events = signal(null);
|
|
39
|
-
this.operationsFilterPipe = pipe(map((operations) => (operations || []).filter((operation) => !!operation[`c8y_ParameterUpdate_${this.context()?.key}`])));
|
|
40
|
-
this.eventsFilterPipe = pipe(map((events) => (events || []).filter((event) => event.type === 'c8y_ParameterUpdate' && !!event[this.context()?.key])));
|
|
41
|
-
this.activatedRoute = inject(ActivatedRoute);
|
|
42
|
-
this.contextRouteService = inject(ContextRouteService);
|
|
43
|
-
this.operationsService = inject(OperationService);
|
|
44
|
-
this.eventsService = inject(EventService);
|
|
45
|
-
}
|
|
46
|
-
async ngOnInit() {
|
|
47
|
-
const { contextData } = this.contextRouteService.getContextData(this.activatedRoute);
|
|
48
|
-
this.device = contextData;
|
|
49
|
-
this.operations.set(await this.operationsService.list({
|
|
50
|
-
deviceId: this.device.id,
|
|
51
|
-
fragmentType: `c8y_ParameterUpdate_${this.context()?.key}`,
|
|
52
|
-
dateFrom: new Date(0).toISOString(),
|
|
53
|
-
withTotalPages: true,
|
|
54
|
-
revert: true
|
|
55
|
-
}));
|
|
56
|
-
this.events.set(await this.eventsService.list({
|
|
57
|
-
source: this.device.id,
|
|
58
|
-
type: 'c8y_ParameterUpdate',
|
|
59
|
-
fragmentType: this.context()?.key,
|
|
60
|
-
withTotalPages: true
|
|
61
|
-
}));
|
|
62
|
-
this.asyncRenderSuccess()?.();
|
|
63
|
-
}
|
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DeviceParameterDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
65
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: DeviceParameterDetailsComponent, isStandalone: true, selector: "c8y-device-parameter-details", inputs: { asyncRenderSuccess: { classPropertyName: "asyncRenderSuccess", publicName: "asyncRenderSuccess", isSignal: true, isRequired: false, transformFunction: null }, asyncRenderFail: { classPropertyName: "asyncRenderFail", publicName: "asyncRenderFail", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"row d-flex show-grid\">\n <div class=\"col-md-6\">\n @if (!!context()?.description) {\n <p data-cy=\"c8y-device-parameter-details--description\">{{ context().description }}</p>\n } @else {\n <small\n class=\"text-muted\"\n data-cy=\"c8y-device-parameter-details--description\"\n >\n <em translate>No description provided.</em>\n </small>\n }\n </div>\n <div class=\"col-md-6\">\n <c8y-device-parameter-value\n [key]=\"context()?.key\"\n [value]=\"context()?.value\"\n ></c8y-device-parameter-value>\n </div>\n</div>\n<div class=\"row d-flex show-grid\">\n <div class=\"col-md-6\">\n <div\n class=\"legend form-block p-t-16 m-b-0\"\n translate\n >\n Operations\n </div>\n <c8y-operations-timeline\n [operations]=\"operations()\"\n [sourceId]=\"device.id\"\n [filterPipe]=\"operationsFilterPipe\"\n [propertiesToHide]=\"['c8y_ParameterUpdate', 'c8y_ParameterUpdate_' + context()?.key]\"\n ></c8y-operations-timeline>\n </div>\n <div class=\"col-md-6\">\n <div\n class=\"legend form-block p-t-16 m-b-0\"\n translate\n >\n Events\n </div>\n <c8y-events-timeline\n [events]=\"events()\"\n [sourceId]=\"device.id\"\n [filterPipe]=\"eventsFilterPipe\"\n [propertiesToHide]=\"['lastUpdated', 'fragmentType']\"\n ></c8y-events-timeline>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: OperationsTimelineComponent, selector: "c8y-operations-timeline", inputs: ["operations", "sourceId", "filterPipe", "bodyTemplate", "footerTemplates", "propertiesToHide"] }, { kind: "component", type: EventsTimelineComponent, selector: "c8y-events-timeline", inputs: ["events", "sourceId", "filterPipe", "bodyTemplate", "footerTemplates", "propertiesToHide"] }, { kind: "component", type: DeviceParameterValueComponent, selector: "c8y-device-parameter-value", inputs: ["value", "key", "padding"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
66
|
-
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DeviceParameterDetailsComponent, decorators: [{
|
|
68
|
-
type: Component,
|
|
69
|
-
args: [{ selector: 'c8y-device-parameter-details', imports: [OperationsTimelineComponent, EventsTimelineComponent, DeviceParameterValueComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"row d-flex show-grid\">\n <div class=\"col-md-6\">\n @if (!!context()?.description) {\n <p data-cy=\"c8y-device-parameter-details--description\">{{ context().description }}</p>\n } @else {\n <small\n class=\"text-muted\"\n data-cy=\"c8y-device-parameter-details--description\"\n >\n <em translate>No description provided.</em>\n </small>\n }\n </div>\n <div class=\"col-md-6\">\n <c8y-device-parameter-value\n [key]=\"context()?.key\"\n [value]=\"context()?.value\"\n ></c8y-device-parameter-value>\n </div>\n</div>\n<div class=\"row d-flex show-grid\">\n <div class=\"col-md-6\">\n <div\n class=\"legend form-block p-t-16 m-b-0\"\n translate\n >\n Operations\n </div>\n <c8y-operations-timeline\n [operations]=\"operations()\"\n [sourceId]=\"device.id\"\n [filterPipe]=\"operationsFilterPipe\"\n [propertiesToHide]=\"['c8y_ParameterUpdate', 'c8y_ParameterUpdate_' + context()?.key]\"\n ></c8y-operations-timeline>\n </div>\n <div class=\"col-md-6\">\n <div\n class=\"legend form-block p-t-16 m-b-0\"\n translate\n >\n Events\n </div>\n <c8y-events-timeline\n [events]=\"events()\"\n [sourceId]=\"device.id\"\n [filterPipe]=\"eventsFilterPipe\"\n [propertiesToHide]=\"['lastUpdated', 'fragmentType']\"\n ></c8y-events-timeline>\n </div>\n</div>\n" }]
|
|
70
|
-
}] });
|
|
71
|
-
|
|
72
|
-
class ParameterTypeCellRendererComponent {
|
|
73
|
-
constructor() {
|
|
74
|
-
this.context = inject(CellRendererContext);
|
|
75
|
-
}
|
|
76
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ParameterTypeCellRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
77
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: ParameterTypeCellRendererComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `<span class="label label-info">
|
|
78
|
-
{{ context.item?.type }}
|
|
79
|
-
</span>`, isInline: true }); }
|
|
80
|
-
}
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ParameterTypeCellRendererComponent, decorators: [{
|
|
82
|
-
type: Component,
|
|
83
|
-
args: [{
|
|
84
|
-
template: `<span class="label label-info">
|
|
85
|
-
{{ context.item?.type }}
|
|
86
|
-
</span>`
|
|
87
|
-
}]
|
|
88
|
-
}] });
|
|
89
|
-
|
|
90
|
-
class DeviceParametersListComponent {
|
|
91
|
-
constructor() {
|
|
92
|
-
this.route = inject(ActivatedRoute);
|
|
93
|
-
this.inventoryService = inject(InventoryService);
|
|
94
|
-
this.assetPropertyService = inject(AssetPropertyService);
|
|
95
|
-
this.device = this.route.snapshot.parent?.data?.contextData;
|
|
96
|
-
this.rows = [];
|
|
97
|
-
this.pagination = { currentPage: 1, pageSize: 25 };
|
|
98
|
-
this.columns = [
|
|
99
|
-
{ name: 'Title', path: 'title', header: gettext('Title') },
|
|
100
|
-
{ name: 'Key', path: 'key', header: gettext('Key') },
|
|
101
|
-
{ name: 'Value', path: 'value', header: gettext('Value') },
|
|
102
|
-
{
|
|
103
|
-
name: 'Type',
|
|
104
|
-
path: 'type',
|
|
105
|
-
header: gettext('Type'),
|
|
106
|
-
cellRendererComponent: ParameterTypeCellRendererComponent
|
|
107
|
-
}
|
|
108
|
-
];
|
|
109
|
-
}
|
|
110
|
-
async ngOnInit() {
|
|
111
|
-
await this.loadData();
|
|
112
|
-
}
|
|
113
|
-
async loadData() {
|
|
114
|
-
const { data: device } = await this.inventoryService.detail(this.device.id);
|
|
115
|
-
const paramKeys = this.getParameterKeys(device);
|
|
116
|
-
if (!paramKeys.length) {
|
|
117
|
-
return {
|
|
118
|
-
data: [],
|
|
119
|
-
res: {},
|
|
120
|
-
size: 0,
|
|
121
|
-
filteredSize: 0
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
const result = await this.assetPropertyService.list({ identifiers: paramKeys });
|
|
125
|
-
const definitions = result.data || [];
|
|
126
|
-
this.rows = paramKeys.map(key => {
|
|
127
|
-
const def = definitions.find(d => d.identifier === key);
|
|
128
|
-
const value = device[key];
|
|
129
|
-
return {
|
|
130
|
-
title: def?.jsonSchema?.title || '',
|
|
131
|
-
key,
|
|
132
|
-
value,
|
|
133
|
-
type: def?.jsonSchema?.type || typeof value,
|
|
134
|
-
description: def?.jsonSchema?.description,
|
|
135
|
-
jsonSchema: def?.jsonSchema
|
|
136
|
-
};
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
getParameterKeys(device) {
|
|
140
|
-
const excluded = [
|
|
141
|
-
'id',
|
|
142
|
-
'self',
|
|
143
|
-
'owner',
|
|
144
|
-
'name',
|
|
145
|
-
'type',
|
|
146
|
-
'lastUpdated',
|
|
147
|
-
'creationTime',
|
|
148
|
-
'childDevices',
|
|
149
|
-
'childAssets',
|
|
150
|
-
'childAdditions',
|
|
151
|
-
'deviceParents',
|
|
152
|
-
'assetParents',
|
|
153
|
-
'additionParents',
|
|
154
|
-
'c8y_IsDevice',
|
|
155
|
-
'com_cumulocity_model_Agent'
|
|
156
|
-
];
|
|
157
|
-
return difference(Object.keys(device), excluded);
|
|
158
|
-
}
|
|
159
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DeviceParametersListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
160
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: DeviceParametersListComponent, isStandalone: true, selector: "c8y-device-parameters-list", ngImport: i0, template: "<div class=\"content-fullpage\">\n <c8y-data-grid\n [title]=\"'Parameters' | translate\"\n [columns]=\"columns\"\n [rows]=\"rows\"\n [pagination]=\"pagination\"\n expandableRows=\"ASYNC\"\n (onReload)=\"loadData()\"\n >\n <ng-container\n *c8yExpandableRow=\"\n let context;\n let asyncRenderSuccess = asyncRenderSuccess;\n let asyncRenderFail = asyncRenderFail\n \"\n >\n <c8y-device-parameter-details\n [context]=\"context\"\n [asyncRenderSuccess]=\"asyncRenderSuccess\"\n [asyncRenderFail]=\"asyncRenderFail\"\n ></c8y-device-parameter-details>\n </ng-container>\n <c8y-ui-empty-state\n icon=\"search\"\n [title]=\"'No parameters to display.' | translate\"\n [subtitle]=\"'Parameters used in the device will be displayed here' | translate\"\n horizontal\n ></c8y-ui-empty-state>\n </c8y-data-grid>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }, { kind: "component", type: EmptyStateComponent, selector: "c8y-ui-empty-state", inputs: ["icon", "title", "subtitle", "horizontal"] }, { kind: "component", type: DataGridComponent, selector: "c8y-data-grid", inputs: ["title", "loadMoreItemsLabel", "loadingItemsLabel", "showSearch", "refresh", "columns", "rows", "pagination", "childNodePagination", "infiniteScroll", "serverSideDataCallback", "selectable", "singleSelection", "selectionPrimaryKey", "displayOptions", "actionControls", "bulkActionControls", "headerActionControls", "searchText", "configureColumnsEnabled", "showCounterWarning", "activeClassName", "expandableRows", "treeGrid", "hideReload", "childNodesProperty", "parentNodeLabelProperty"], outputs: ["rowMouseOver", "rowMouseLeave", "rowClick", "onConfigChange", "onBeforeFilter", "onBeforeSearch", "onFilter", "itemsSelect", "onReload", "onAddCustomColumn", "onRemoveCustomColumn", "onColumnFilterReset", "onSort", "onPageSizeChange", "onColumnReordered", "onColumnVisibilityChange"] }, { kind: "component", type: DeviceParameterDetailsComponent, selector: "c8y-device-parameter-details", inputs: ["asyncRenderSuccess", "asyncRenderFail", "context"] }, { kind: "directive", type: ExpandableRowDirective, selector: "[c8yExpandableRow]" }] }); }
|
|
161
|
-
}
|
|
162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DeviceParametersListComponent, decorators: [{
|
|
163
|
-
type: Component,
|
|
164
|
-
args: [{ selector: 'c8y-device-parameters-list', imports: [
|
|
165
|
-
CommonModule,
|
|
166
|
-
C8yTranslatePipe,
|
|
167
|
-
EmptyStateComponent,
|
|
168
|
-
DataGridComponent,
|
|
169
|
-
DeviceParameterDetailsComponent,
|
|
170
|
-
ExpandableRowDirective
|
|
171
|
-
], template: "<div class=\"content-fullpage\">\n <c8y-data-grid\n [title]=\"'Parameters' | translate\"\n [columns]=\"columns\"\n [rows]=\"rows\"\n [pagination]=\"pagination\"\n expandableRows=\"ASYNC\"\n (onReload)=\"loadData()\"\n >\n <ng-container\n *c8yExpandableRow=\"\n let context;\n let asyncRenderSuccess = asyncRenderSuccess;\n let asyncRenderFail = asyncRenderFail\n \"\n >\n <c8y-device-parameter-details\n [context]=\"context\"\n [asyncRenderSuccess]=\"asyncRenderSuccess\"\n [asyncRenderFail]=\"asyncRenderFail\"\n ></c8y-device-parameter-details>\n </ng-container>\n <c8y-ui-empty-state\n icon=\"search\"\n [title]=\"'No parameters to display.' | translate\"\n [subtitle]=\"'Parameters used in the device will be displayed here' | translate\"\n horizontal\n ></c8y-ui-empty-state>\n </c8y-data-grid>\n</div>\n" }]
|
|
172
|
-
}] });
|
|
173
|
-
|
|
174
|
-
const DEVICE_PARAMETERS_MICROSERVICE = 'device-parameter';
|
|
175
|
-
const DTM_MICROSERVICE = 'dtm';
|
|
176
|
-
class DeviceParametersTabGuard {
|
|
177
|
-
constructor(applicationService) {
|
|
178
|
-
this.applicationService = applicationService;
|
|
179
|
-
}
|
|
180
|
-
async canActivate() {
|
|
181
|
-
const deviceParametersAvailable = await this.applicationService
|
|
182
|
-
.isAvailable(DEVICE_PARAMETERS_MICROSERVICE)
|
|
183
|
-
.then(({ data }) => data)
|
|
184
|
-
.catch(() => false);
|
|
185
|
-
const dtmAvailable = await this.applicationService
|
|
186
|
-
.isAvailable(DTM_MICROSERVICE)
|
|
187
|
-
.then(({ data }) => data)
|
|
188
|
-
.catch(() => false);
|
|
189
|
-
return deviceParametersAvailable && dtmAvailable;
|
|
190
|
-
}
|
|
191
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DeviceParametersTabGuard, deps: [{ token: i1.ApplicationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
192
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DeviceParametersTabGuard, providedIn: 'root' }); }
|
|
193
|
-
}
|
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DeviceParametersTabGuard, decorators: [{
|
|
195
|
-
type: Injectable,
|
|
196
|
-
args: [{ providedIn: 'root' }]
|
|
197
|
-
}], ctorParameters: () => [{ type: i1.ApplicationService }] });
|
|
198
|
-
|
|
199
|
-
const DEVICE_PARAMETERS_ROUTE = {
|
|
200
|
-
path: 'parameters',
|
|
201
|
-
context: ViewContext.Device,
|
|
202
|
-
component: DeviceParametersListComponent,
|
|
203
|
-
label: gettext('Parameters'),
|
|
204
|
-
icon: 'sliders',
|
|
205
|
-
priority: 650,
|
|
206
|
-
canActivate: [DeviceParametersTabGuard]
|
|
207
|
-
};
|
|
208
|
-
const deviceParametersFeatureProvider = [hookRoute(DEVICE_PARAMETERS_ROUTE)];
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Generated bundle index. Do not edit.
|
|
212
|
-
*/
|
|
213
|
-
|
|
214
|
-
export { DeviceParameterDetailsComponent, DeviceParameterValueComponent, DeviceParametersListComponent, DeviceParametersTabGuard, ParameterTypeCellRendererComponent, deviceParametersFeatureProvider };
|
|
215
|
-
//# sourceMappingURL=c8y-ngx-components-device-parameters.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-device-parameters.mjs","sources":["../../device-parameters/device-parameter-value.component.ts","../../device-parameters/device-parameter-value.component.html","../../device-parameters/device-parameter-details.component.ts","../../device-parameters/device-parameter-details.component.html","../../device-parameters/parameter-type-cell-renderer.components.ts","../../device-parameters/device-parameters-list.component.ts","../../device-parameters/device-parameters-list.component.html","../../device-parameters/device-parameters-tab.guard.ts","../../device-parameters/index.ts","../../device-parameters/c8y-ngx-components-device-parameters.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input, OnInit, signal } from '@angular/core';\nimport { C8yTranslatePipe, HumanizePipe } from '@c8y/ngx-components';\nimport { toPairs } from 'lodash';\n\n@Component({\n selector: 'c8y-device-parameter-value',\n templateUrl: './device-parameter-value.component.html',\n imports: [HumanizePipe, C8yTranslatePipe, NgClass],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DeviceParameterValueComponent implements OnInit {\n value = input.required<object>();\n key = input.required<string>();\n padding = input<number>(0);\n valuePairs = signal<[string, unknown][]>([]);\n\n ngOnInit(): void {\n this.valuePairs.set(\n typeof this.value() === 'object' ? toPairs(this.value()) : [[this.key(), this.value()]]\n );\n }\n}\n","<ul class=\"list-unstyled small\">\n @for (pair of valuePairs(); track pair[0]) {\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n [ngClass]=\"'p-l-' + padding()\"\n data-cy=\"c8y-device-parameter-details--param-value\"\n >\n <label class=\"small m-0\">{{ pair[0] | humanize | translate }}</label>\n @if (typeof pair[1] !== 'object') {\n <span class=\"m-l-auto\">\n {{ pair[1] }}\n </span>\n }\n </li>\n @if (typeof pair[1] === 'object') {\n <c8y-device-parameter-value\n [key]=\"pair[0]\"\n [value]=\"pair[1]\"\n [padding]=\"padding() + 8\"\n ></c8y-device-parameter-value>\n }\n }\n</ul>\n","import { ChangeDetectionStrategy, Component, inject, input, OnInit, signal } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport {\n EventService,\n IEvent,\n IManagedObject,\n IOperation,\n IResultList,\n OperationService\n} from '@c8y/client';\nimport { ContextRouteService, DeviceParameter } from '@c8y/ngx-components';\nimport { EventsTimelineComponent } from '@c8y/ngx-components/events/events-timeline';\nimport { OperationsTimelineComponent } from '@c8y/ngx-components/operations/operations-timeline';\nimport { map, pipe } from 'rxjs';\nimport { DeviceParameterValueComponent } from './device-parameter-value.component';\n\n@Component({\n selector: 'c8y-device-parameter-details',\n templateUrl: './device-parameter-details.component.html',\n imports: [OperationsTimelineComponent, EventsTimelineComponent, DeviceParameterValueComponent],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DeviceParameterDetailsComponent implements OnInit {\n asyncRenderSuccess = input<() => void>();\n asyncRenderFail = input<() => void>();\n context = input<DeviceParameter>();\n\n device: IManagedObject;\n\n operations = signal<IResultList<IOperation> | null>(null);\n events = signal<IResultList<IEvent> | null>(null);\n\n operationsFilterPipe = pipe(\n map((operations: IOperation[]) =>\n (operations || []).filter(\n (operation: IOperation) => !!operation[`c8y_ParameterUpdate_${this.context()?.key}`]\n )\n )\n );\n eventsFilterPipe = pipe(\n map((events: IEvent[]) =>\n (events || []).filter(\n (event: IEvent) => event.type === 'c8y_ParameterUpdate' && !!event[this.context()?.key]\n )\n )\n );\n\n private activatedRoute = inject(ActivatedRoute);\n private contextRouteService = inject(ContextRouteService);\n private operationsService = inject(OperationService);\n private eventsService = inject(EventService);\n\n async ngOnInit() {\n const { contextData } = this.contextRouteService.getContextData(this.activatedRoute);\n this.device = <IManagedObject>contextData;\n this.operations.set(\n await this.operationsService.list({\n deviceId: this.device.id,\n fragmentType: `c8y_ParameterUpdate_${this.context()?.key}`,\n dateFrom: new Date(0).toISOString(),\n withTotalPages: true,\n revert: true\n })\n );\n this.events.set(\n await this.eventsService.list({\n source: this.device.id,\n type: 'c8y_ParameterUpdate',\n fragmentType: this.context()?.key,\n withTotalPages: true\n })\n );\n this.asyncRenderSuccess()?.();\n }\n}\n","<div class=\"row d-flex show-grid\">\n <div class=\"col-md-6\">\n @if (!!context()?.description) {\n <p data-cy=\"c8y-device-parameter-details--description\">{{ context().description }}</p>\n } @else {\n <small\n class=\"text-muted\"\n data-cy=\"c8y-device-parameter-details--description\"\n >\n <em translate>No description provided.</em>\n </small>\n }\n </div>\n <div class=\"col-md-6\">\n <c8y-device-parameter-value\n [key]=\"context()?.key\"\n [value]=\"context()?.value\"\n ></c8y-device-parameter-value>\n </div>\n</div>\n<div class=\"row d-flex show-grid\">\n <div class=\"col-md-6\">\n <div\n class=\"legend form-block p-t-16 m-b-0\"\n translate\n >\n Operations\n </div>\n <c8y-operations-timeline\n [operations]=\"operations()\"\n [sourceId]=\"device.id\"\n [filterPipe]=\"operationsFilterPipe\"\n [propertiesToHide]=\"['c8y_ParameterUpdate', 'c8y_ParameterUpdate_' + context()?.key]\"\n ></c8y-operations-timeline>\n </div>\n <div class=\"col-md-6\">\n <div\n class=\"legend form-block p-t-16 m-b-0\"\n translate\n >\n Events\n </div>\n <c8y-events-timeline\n [events]=\"events()\"\n [sourceId]=\"device.id\"\n [filterPipe]=\"eventsFilterPipe\"\n [propertiesToHide]=\"['lastUpdated', 'fragmentType']\"\n ></c8y-events-timeline>\n </div>\n</div>\n","import { Component, inject } from '@angular/core';\nimport { CellRendererContext } from '@c8y/ngx-components';\n\n@Component({\n template: `<span class=\"label label-info\">\n {{ context.item?.type }}\n </span>`\n})\nexport class ParameterTypeCellRendererComponent {\n context = inject(CellRendererContext);\n}\n","import { CommonModule } from '@angular/common';\nimport { Component, inject, OnInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { IManagedObject, InventoryService } from '@c8y/client';\nimport {\n AssetPropertyService,\n C8yTranslatePipe,\n Column,\n DataGridComponent,\n DeviceParameter,\n EmptyStateComponent,\n ExpandableRowDirective,\n gettext,\n Pagination\n} from '@c8y/ngx-components';\nimport { difference } from 'lodash-es';\nimport { DeviceParameterDetailsComponent } from './device-parameter-details.component';\nimport { ParameterTypeCellRendererComponent } from './parameter-type-cell-renderer.components';\n\n@Component({\n selector: 'c8y-device-parameters-list',\n imports: [\n CommonModule,\n C8yTranslatePipe,\n EmptyStateComponent,\n DataGridComponent,\n DeviceParameterDetailsComponent,\n ExpandableRowDirective\n ],\n templateUrl: 'device-parameters-list.component.html'\n})\nexport class DeviceParametersListComponent implements OnInit {\n private readonly route = inject(ActivatedRoute);\n private readonly inventoryService: InventoryService = inject(InventoryService);\n private readonly assetPropertyService: AssetPropertyService = inject(AssetPropertyService);\n private readonly device: IManagedObject = this.route.snapshot.parent?.data?.contextData;\n\n rows: DeviceParameter[] = [];\n pagination: Pagination = { currentPage: 1, pageSize: 25 };\n columns: Column[] = [\n { name: 'Title', path: 'title', header: gettext('Title') },\n { name: 'Key', path: 'key', header: gettext('Key') },\n { name: 'Value', path: 'value', header: gettext('Value') },\n {\n name: 'Type',\n path: 'type',\n header: gettext('Type'),\n cellRendererComponent: ParameterTypeCellRendererComponent\n }\n ];\n\n async ngOnInit() {\n await this.loadData();\n }\n\n async loadData() {\n const { data: device } = await this.inventoryService.detail(this.device.id);\n\n const paramKeys = this.getParameterKeys(device);\n\n if (!paramKeys.length) {\n return {\n data: [],\n res: {} as any,\n size: 0,\n filteredSize: 0\n };\n }\n\n const result = await this.assetPropertyService.list({ identifiers: paramKeys });\n const definitions = result.data || [];\n\n this.rows = paramKeys.map(key => {\n const def = definitions.find(d => d.identifier === key);\n const value = device[key];\n\n return {\n title: def?.jsonSchema?.title || '',\n key,\n value,\n type: def?.jsonSchema?.type || typeof value,\n description: def?.jsonSchema?.description,\n jsonSchema: def?.jsonSchema\n };\n });\n }\n\n private getParameterKeys(device: IManagedObject): string[] {\n const excluded = [\n 'id',\n 'self',\n 'owner',\n 'name',\n 'type',\n 'lastUpdated',\n 'creationTime',\n 'childDevices',\n 'childAssets',\n 'childAdditions',\n 'deviceParents',\n 'assetParents',\n 'additionParents',\n 'c8y_IsDevice',\n 'com_cumulocity_model_Agent'\n ];\n return difference(Object.keys(device), excluded);\n }\n}\n","<div class=\"content-fullpage\">\n <c8y-data-grid\n [title]=\"'Parameters' | translate\"\n [columns]=\"columns\"\n [rows]=\"rows\"\n [pagination]=\"pagination\"\n expandableRows=\"ASYNC\"\n (onReload)=\"loadData()\"\n >\n <ng-container\n *c8yExpandableRow=\"\n let context;\n let asyncRenderSuccess = asyncRenderSuccess;\n let asyncRenderFail = asyncRenderFail\n \"\n >\n <c8y-device-parameter-details\n [context]=\"context\"\n [asyncRenderSuccess]=\"asyncRenderSuccess\"\n [asyncRenderFail]=\"asyncRenderFail\"\n ></c8y-device-parameter-details>\n </ng-container>\n <c8y-ui-empty-state\n icon=\"search\"\n [title]=\"'No parameters to display.' | translate\"\n [subtitle]=\"'Parameters used in the device will be displayed here' | translate\"\n horizontal\n ></c8y-ui-empty-state>\n </c8y-data-grid>\n</div>\n","import { Injectable } from '@angular/core';\nimport { CanActivate } from '@angular/router';\nimport { ApplicationService } from '@c8y/client';\n\nconst DEVICE_PARAMETERS_MICROSERVICE = 'device-parameter';\nconst DTM_MICROSERVICE = 'dtm';\n\n@Injectable({ providedIn: 'root' })\nexport class DeviceParametersTabGuard implements CanActivate {\n constructor(private applicationService: ApplicationService) {}\n\n async canActivate(): Promise<boolean> {\n const deviceParametersAvailable = await this.applicationService\n .isAvailable(DEVICE_PARAMETERS_MICROSERVICE)\n .then(({ data }) => data)\n .catch(() => false);\n\n const dtmAvailable = await this.applicationService\n .isAvailable(DTM_MICROSERVICE)\n .then(({ data }) => data)\n .catch(() => false);\n\n return deviceParametersAvailable && dtmAvailable;\n }\n}\n","export * from './device-parameter-details.component';\nexport * from './device-parameter-value.component';\nexport * from './device-parameters-list.component';\nexport * from './device-parameters-tab.guard';\nexport * from './parameter-type-cell-renderer.components';\n\nimport { gettext, hookRoute, Route, ViewContext } from '@c8y/ngx-components';\nimport { DeviceParametersListComponent } from './device-parameters-list.component';\nimport { DeviceParametersTabGuard } from './device-parameters-tab.guard';\n\nconst DEVICE_PARAMETERS_ROUTE: Route = {\n path: 'parameters',\n context: ViewContext.Device,\n component: DeviceParametersListComponent,\n label: gettext('Parameters'),\n icon: 'sliders',\n priority: 650,\n canActivate: [DeviceParametersTabGuard]\n};\n\nexport const deviceParametersFeatureProvider = [hookRoute(DEVICE_PARAMETERS_ROUTE)];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAWa,6BAA6B,CAAA;AAN1C,IAAA,WAAA,GAAA;AAOE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAU;AAChC,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAC,QAAQ,EAAU;A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