@c8y/ngx-components 1021.49.12 → 1021.50.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/core/i18n/pattern-messages.data.d.ts +18 -0
- package/core/i18n/pattern-messages.data.d.ts.map +1 -1
- package/esm2022/alarms/alarms-type-filter.component.mjs +3 -3
- package/esm2022/core/i18n/pattern-messages.data.mjs +19 -1
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.mjs +2 -2
- package/esm2022/device-list/add-smart-group.component.mjs +3 -3
- package/esm2022/operations/bulk-operation-list-item/bulk-operation-list-item.service.mjs +5 -4
- package/esm2022/operations/operation-details/operation-details.module.mjs +7 -7
- package/esm2022/operations/operations-list/device-control.feature.mjs +20 -0
- package/esm2022/operations/operations-list/index.mjs +4 -3
- package/esm2022/operations/operations-list/operations-list-item.component.mjs +11 -9
- package/esm2022/operations/operations-list/operations-list.component.mjs +15 -10
- package/esm2022/operations/operations-list/operations-list.module.mjs +16 -41
- package/esm2022/operations/operations-list/operations-list.service.mjs +4 -3
- package/esm2022/operations/operations.module.mjs +21 -14
- package/esm2022/operations/shared/operations.service.mjs +4 -3
- package/esm2022/services/index.mjs +14 -3
- package/esm2022/services/service-command-tab/c8y-ngx-components-services-service-command-tab.mjs +5 -0
- package/esm2022/services/service-command-tab/index.mjs +3 -0
- package/esm2022/services/service-command-tab/service-command-tab.component.mjs +33 -0
- package/esm2022/services/service-command-tab/service-command.feature.mjs +14 -0
- package/esm2022/services/services-device-tab/index.mjs +9 -3
- package/esm2022/services/services-device-tab/services-device-tab.component.mjs +3 -4
- package/esm2022/services/services-device-tab/services-device-tab.guard.mjs +2 -2
- package/esm2022/services/services-device-tab/services.breadcrumb-factory.mjs +13 -1
- package/esm2022/services/services.module.mjs +4 -2
- package/esm2022/services/shared/c8y-ngx-components-services-shared.mjs +5 -0
- package/esm2022/services/shared/index.mjs +3 -0
- package/esm2022/services/shared/service-command.service.mjs +118 -0
- package/esm2022/services/shared/services.model.mjs +23 -0
- package/fesm2022/c8y-ngx-components-alarms.mjs +2 -2
- package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs +1 -1
- package/fesm2022/c8y-ngx-components-datapoints-export-selector.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-operations-bulk-operation-list-item.mjs +3 -2
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-operation-details.mjs +5 -5
- package/fesm2022/c8y-ngx-components-operations-operation-details.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-operations-list.mjs +57 -52
- package/fesm2022/c8y-ngx-components-operations-operations-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-shared.mjs +3 -2
- package/fesm2022/c8y-ngx-components-operations-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations.mjs +42 -35
- package/fesm2022/c8y-ngx-components-operations.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-services-service-command-tab.mjs +49 -0
- package/fesm2022/c8y-ngx-components-services-service-command-tab.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-services-shared.mjs +145 -0
- package/fesm2022/c8y-ngx-components-services-shared.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-services.mjs +20 -113
- package/fesm2022/c8y-ngx-components-services.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +18 -0
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +12 -14
- package/locales/es.po +12 -14
- package/locales/fr.po +11 -13
- package/locales/ja_JP.po +13 -17
- package/locales/ko.po +13 -10
- package/locales/locales.pot +19 -6
- package/locales/nl.po +12 -14
- package/locales/pl.po +12 -14
- package/locales/pt_BR.po +11 -13
- package/locales/zh_CN.po +12 -9
- package/locales/zh_TW.po +12 -9
- package/operations/bulk-operation-list-item/bulk-operation-list-item.service.d.ts +2 -2
- package/operations/bulk-operation-list-item/bulk-operation-list-item.service.d.ts.map +1 -1
- package/operations/operation-details/operation-details.module.d.ts +1 -1
- package/operations/operations-list/device-control.feature.d.ts +4 -0
- package/operations/operations-list/device-control.feature.d.ts.map +1 -0
- package/operations/operations-list/index.d.ts +3 -2
- package/operations/operations-list/index.d.ts.map +1 -1
- package/operations/operations-list/operations-list-item.component.d.ts +1 -1
- package/operations/operations-list/operations-list-item.component.d.ts.map +1 -1
- package/operations/operations-list/operations-list.component.d.ts +3 -1
- package/operations/operations-list/operations-list.component.d.ts.map +1 -1
- package/operations/operations-list/operations-list.module.d.ts +3 -9
- package/operations/operations-list/operations-list.module.d.ts.map +1 -1
- package/operations/operations.module.d.ts +1 -2
- package/operations/operations.module.d.ts.map +1 -1
- package/package.json +1 -1
- package/services/index.d.ts +13 -2
- package/services/index.d.ts.map +1 -1
- package/services/service-command-tab/c8y-ngx-components-services-service-command-tab.d.ts.map +1 -0
- package/services/service-command-tab/index.d.ts +3 -0
- package/services/service-command-tab/index.d.ts.map +1 -0
- package/services/service-command-tab/service-command-tab.component.d.ts +12 -0
- package/services/service-command-tab/service-command-tab.component.d.ts.map +1 -0
- package/services/service-command-tab/service-command.feature.d.ts +3 -0
- package/services/service-command-tab/service-command.feature.d.ts.map +1 -0
- package/services/services-device-tab/index.d.ts +8 -2
- package/services/services-device-tab/index.d.ts.map +1 -1
- package/services/services-device-tab/services-device-tab.component.d.ts +2 -2
- package/services/services-device-tab/services-device-tab.component.d.ts.map +1 -1
- package/services/services-device-tab/services.breadcrumb-factory.d.ts.map +1 -1
- package/services/services.module.d.ts.map +1 -1
- package/services/shared/c8y-ngx-components-services-shared.d.ts.map +1 -0
- package/services/shared/index.d.ts +3 -0
- package/services/shared/index.d.ts.map +1 -0
- package/services/{services-device-tab → shared}/service-command.service.d.ts +10 -7
- package/services/shared/service-command.service.d.ts.map +1 -0
- package/services/shared/services.model.d.ts +31 -0
- package/services/shared/services.model.d.ts.map +1 -0
- package/esm2022/services/services-device-tab/service-command.service.mjs +0 -113
- package/esm2022/services/services-device-tab/service-device-tab.model.mjs +0 -2
- package/services/services-device-tab/service-command.service.d.ts.map +0 -1
- package/services/services-device-tab/service-device-tab.model.d.ts +0 -11
- package/services/services-device-tab/service-device-tab.model.d.ts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { InventoryService } from '@c8y/client';
|
|
4
|
-
import { Column, DataGridService, DataSourceModifier,
|
|
4
|
+
import { ActionControl, Column, DataGridService, DataSourceModifier, ServerSideDataResult } from '@c8y/ngx-components';
|
|
5
|
+
import { ServiceCommandService } from '@c8y/ngx-components/services/shared';
|
|
5
6
|
import { StatusOptionsService } from '../status-options';
|
|
6
|
-
import { ServiceCommandService } from './service-command.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ServicesDeviceTabComponent {
|
|
9
9
|
private route;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services-device-tab.component.d.ts","sourceRoot":"","sources":["../../../services/services-device-tab/services-device-tab.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAkB,gBAAgB,EAA4B,MAAM,aAAa,CAAC;AACzF,OAAO,EACL,MAAM,EACN,eAAe,EACf,kBAAkB,
|
|
1
|
+
{"version":3,"file":"services-device-tab.component.d.ts","sourceRoot":"","sources":["../../../services/services-device-tab/services-device-tab.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM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/services-device-tab/services.breadcrumb-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAW,MAAM,aAAa,CAAC;AACxD,OAAO,EACL,UAAU,EACV,iBAAiB,EAIlB,MAAM,qBAAqB,CAAC;;AAE7B,qBACa,yBAA0B,YAAW,iBAAiB;IAGrD,OAAO,CAAC,gBAAgB;IAFpC,OAAO,CAAC,WAAW,CAAC;gBAEA,gBAAgB,EAAE,gBAAgB;IAEhD,GAAG,CAAC,KAAK,EAAE,cAAc;yCALpB,yBAAyB;6CAAzB,yBAAyB;
|
|
1
|
+
{"version":3,"file":"services.breadcrumb-factory.d.ts","sourceRoot":"","sources":["../../../services/services-device-tab/services.breadcrumb-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAW,MAAM,aAAa,CAAC;AACxD,OAAO,EACL,UAAU,EACV,iBAAiB,EAIlB,MAAM,qBAAqB,CAAC;;AAE7B,qBACa,yBAA0B,YAAW,iBAAiB;IAGrD,OAAO,CAAC,gBAAgB;IAFpC,OAAO,CAAC,WAAW,CAAC;gBAEA,gBAAgB,EAAE,gBAAgB;IAEhD,GAAG,CAAC,KAAK,EAAE,cAAc;yCALpB,yBAAyB;6CAAzB,yBAAyB;CAwDrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.module.d.ts","sourceRoot":"","sources":["../../services/services.module.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"services.module.d.ts","sourceRoot":"","sources":["../../services/services.module.ts"],"names":[],"mappings":";;;AAKA,qBAIa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-services-shared.d.ts","sourceRoot":"","sources":["../../../services/shared/c8y-ngx-components-services-shared.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../services/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OperationService, IOperation, IResult } from '@c8y/client';
|
|
1
|
+
import { IOperation, IResult, OperationService } from '@c8y/client';
|
|
3
2
|
import { ActionControl, AlertService } from '@c8y/ngx-components';
|
|
4
|
-
import { Service } from './
|
|
3
|
+
import { Service } from './services.model';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class ServiceCommandService {
|
|
7
6
|
private operationService;
|
|
8
7
|
private alertService;
|
|
9
|
-
private readonly DEFAULT_COMMANDS;
|
|
10
|
-
private commandIcons;
|
|
11
8
|
constructor(operationService: OperationService, alertService: AlertService);
|
|
12
9
|
/**
|
|
13
10
|
* Check if the service supports service commands.
|
|
@@ -38,9 +35,9 @@ export declare class ServiceCommandService {
|
|
|
38
35
|
* Create an operation for the selected service command.
|
|
39
36
|
* @param service The service object the operation should target.
|
|
40
37
|
* @param command The command to execute (e.g., START, STOP).
|
|
41
|
-
* @returns
|
|
38
|
+
* @returns Promise of the created operation.
|
|
42
39
|
*/
|
|
43
|
-
createOperation({ id, name, serviceType }: Service, command: string):
|
|
40
|
+
createOperation({ id, name, serviceType }: Service, command: string): Promise<IResult<IOperation>>;
|
|
44
41
|
/**
|
|
45
42
|
* Generate a static list of action controls.
|
|
46
43
|
* The specific logic for each service is handled dynamically in showIf and callback.
|
|
@@ -53,6 +50,12 @@ export declare class ServiceCommandService {
|
|
|
53
50
|
* @returns Icon string for the command.
|
|
54
51
|
*/
|
|
55
52
|
private getCommandIcon;
|
|
53
|
+
/**
|
|
54
|
+
* Get the icon class for a specific command.
|
|
55
|
+
* @param command The command name.
|
|
56
|
+
* @returns Icon class string for the command.
|
|
57
|
+
*/
|
|
58
|
+
private getCommandIconClass;
|
|
56
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceCommandService, never>;
|
|
57
60
|
static ɵprov: i0.ɵɵInjectableDeclaration<ServiceCommandService>;
|
|
58
61
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-command.service.d.ts","sourceRoot":"","sources":["../../../services/shared/service-command.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAW,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EAAE,OAAO,EAAwB,MAAM,kBAAkB,CAAC;;AAEjE,qBAGa,qBAAqB;IAE9B,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,YAAY;gBADZ,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY;IAGpC;;;;OAIG;IACH,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAIpD;;;;OAIG;IACH,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE;IAIhD;;;;;OAKG;IACH,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAK9D;;;;OAIG;IACH,uBAAuB,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE;IAQtD;;;;;OAKG;IACH,eAAe,CACb,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,OAAO,EAClC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAc/B;;;;OAIG;IACH,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE;IAoB3D;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAItB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;yCA9GhB,qBAAqB;6CAArB,qBAAqB;CAiHjC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const SERVICE_FRAGMENT = "c8y_Service";
|
|
2
|
+
export declare const SERVICE_COMMANDS_MAP: {
|
|
3
|
+
START: {
|
|
4
|
+
label: "Start";
|
|
5
|
+
command: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
styleClass: string;
|
|
8
|
+
};
|
|
9
|
+
STOP: {
|
|
10
|
+
label: "Stop";
|
|
11
|
+
command: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
styleClass: string;
|
|
14
|
+
};
|
|
15
|
+
RESTART: {
|
|
16
|
+
label: "Restart";
|
|
17
|
+
command: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
styleClass: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export interface Service {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
serviceType: string;
|
|
26
|
+
status: string;
|
|
27
|
+
c8y_SupportedOperations?: string[];
|
|
28
|
+
c8y_SupportedServiceCommands?: string[];
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=services.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.model.d.ts","sourceRoot":"","sources":["../../../services/shared/services.model.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAE9C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;CAmBhC,CAAC;AAEF,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;IACnC,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;IACxC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { from } from 'rxjs';
|
|
3
|
-
import { OperationService } from '@c8y/client';
|
|
4
|
-
import { AlertService, gettext } from '@c8y/ngx-components';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@c8y/client";
|
|
7
|
-
import * as i2 from "@c8y/ngx-components";
|
|
8
|
-
export class ServiceCommandService {
|
|
9
|
-
constructor(operationService, alertService) {
|
|
10
|
-
this.operationService = operationService;
|
|
11
|
-
this.alertService = alertService;
|
|
12
|
-
this.DEFAULT_COMMANDS = ['START', 'STOP', 'RESTART'];
|
|
13
|
-
this.commandIcons = {
|
|
14
|
-
START: 'play-circle',
|
|
15
|
-
STOP: 'stop-circle',
|
|
16
|
-
RESTART: 'refresh'
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Check if the service supports service commands.
|
|
21
|
-
* @param service The service object containing supported operations.
|
|
22
|
-
* @returns boolean indicating if the service supports service commands.
|
|
23
|
-
*/
|
|
24
|
-
isServiceCommandSupported(service) {
|
|
25
|
-
return service.c8y_SupportedOperations?.includes('c8y_ServiceCommand');
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Get the list of supported service commands for the given service object.
|
|
29
|
-
* @param service The service object containing the c8y_SupportedServiceCommands fragment.
|
|
30
|
-
* @returns Array of supported commands.
|
|
31
|
-
*/
|
|
32
|
-
getSupportedCommands(service) {
|
|
33
|
-
return service.c8y_SupportedServiceCommands || this.DEFAULT_COMMANDS;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Check if a specific command is supported for the given service.
|
|
37
|
-
* @param service The service object.
|
|
38
|
-
* @param command The command to check (e.g., START, STOP).
|
|
39
|
-
* @returns boolean indicating if the command is supported.
|
|
40
|
-
*/
|
|
41
|
-
isCommandSupported(service, command) {
|
|
42
|
-
const supportedCommands = this.getSupportedCommands(service);
|
|
43
|
-
return supportedCommands.includes(command);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Get all supported commands for a list of services.
|
|
47
|
-
* @param services The list of service objects to evaluate.
|
|
48
|
-
* @returns Array of all unique supported commands.
|
|
49
|
-
*/
|
|
50
|
-
getAllSupportedCommands(services) {
|
|
51
|
-
const allCommands = services
|
|
52
|
-
.filter(service => this.isServiceCommandSupported(service))
|
|
53
|
-
.flatMap(service => this.getSupportedCommands(service));
|
|
54
|
-
return Array.from(new Set(allCommands));
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Create an operation for the selected service command.
|
|
58
|
-
* @param service The service object the operation should target.
|
|
59
|
-
* @param command The command to execute (e.g., START, STOP).
|
|
60
|
-
* @returns Observable of the created operation.
|
|
61
|
-
*/
|
|
62
|
-
createOperation({ id, name, serviceType }, command) {
|
|
63
|
-
const operation = {
|
|
64
|
-
deviceId: id,
|
|
65
|
-
c8y_ServiceCommand: {
|
|
66
|
-
command,
|
|
67
|
-
serviceName: name,
|
|
68
|
-
serviceType: serviceType
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
return from(this.operationService.create(operation));
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Generate a static list of action controls.
|
|
75
|
-
* The specific logic for each service is handled dynamically in showIf and callback.
|
|
76
|
-
* @returns Array of ActionControl objects.
|
|
77
|
-
*/
|
|
78
|
-
generateActionControls(commands) {
|
|
79
|
-
return commands.map(command => ({
|
|
80
|
-
type: command.toLowerCase(),
|
|
81
|
-
icon: this.getCommandIcon(command),
|
|
82
|
-
text: command,
|
|
83
|
-
showIf: (service) => this.isServiceCommandSupported(service) && this.isCommandSupported(service, command),
|
|
84
|
-
callback: async (service) => {
|
|
85
|
-
try {
|
|
86
|
-
await this.createOperation(service, command).toPromise();
|
|
87
|
-
this.alertService.success(gettext('Operation created.'));
|
|
88
|
-
}
|
|
89
|
-
catch (error) {
|
|
90
|
-
const alertMessage = gettext('Could not create operaion.');
|
|
91
|
-
this.alertService.danger(alertMessage, error);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}));
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Get the icon for a specific command.
|
|
98
|
-
* @param command The command name.
|
|
99
|
-
* @returns Icon string for the command.
|
|
100
|
-
*/
|
|
101
|
-
getCommandIcon(command) {
|
|
102
|
-
return this.commandIcons[command] || 'console';
|
|
103
|
-
}
|
|
104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ServiceCommandService, deps: [{ token: i1.OperationService }, { token: i2.AlertService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
105
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ServiceCommandService, providedIn: 'root' }); }
|
|
106
|
-
}
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ServiceCommandService, decorators: [{
|
|
108
|
-
type: Injectable,
|
|
109
|
-
args: [{
|
|
110
|
-
providedIn: 'root'
|
|
111
|
-
}]
|
|
112
|
-
}], ctorParameters: () => [{ type: i1.OperationService }, { type: i2.AlertService }] });
|
|
113
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS1jb21tYW5kLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zZXJ2aWNlcy9zZXJ2aWNlcy1kZXZpY2UtdGFiL3NlcnZpY2UtY29tbWFuZC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUF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uICAgIHJldHVybiB0aGlzLmNvbW1hbmRJY29uc1tjb21tYW5kXSB8fCAnY29uc29sZSc7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const SERVICE_FRAGMENT = 'c8y_Service';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS1kZXZpY2UtdGFiLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc2VydmljZXMvc2VydmljZXMtZGV2aWNlLXRhYi9zZXJ2aWNlLWRldmljZS10YWIubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUcsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFNFUlZJQ0VfRlJBR01FTlQgPSAnYzh5X1NlcnZpY2UnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFNlcnZpY2Uge1xuICBpZDogc3RyaW5nO1xuICBuYW1lOiBzdHJpbmc7XG4gIHNlcnZpY2VUeXBlOiBzdHJpbmc7XG4gIHN0YXR1czogc3RyaW5nO1xuICBjOHlfU3VwcG9ydGVkT3BlcmF0aW9ucz86IHN0cmluZ1tdO1xuICBjOHlfU3VwcG9ydGVkU2VydmljZUNvbW1hbmRzPzogc3RyaW5nW107XG4gIFtrZXk6IHN0cmluZ106IGFueTtcbn1cbiJdfQ==
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service-command.service.d.ts","sourceRoot":"","sources":["../../../services/services-device-tab/service-command.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAW,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;;AAErD,qBAGa,qBAAqB;IAS9B,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,YAAY;IATtB,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAgC;IACjE,OAAO,CAAC,YAAY,CAIlB;gBAGQ,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY;IAGpC;;;;OAIG;IACH,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAIpD;;;;OAIG;IACH,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE;IAIhD;;;;;OAKG;IACH,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAK9D;;;;OAIG;IACH,uBAAuB,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE;IAQtD;;;;;OAKG;IACH,eAAe,CACb,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,OAAO,EAClC,OAAO,EAAE,MAAM,GACd,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAalC;;;;OAIG;IACH,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE;IAmB3D;;;;OAIG;IACH,OAAO,CAAC,cAAc;yCA1GX,qBAAqB;6CAArB,qBAAqB;CA6GjC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const SERVICE_FRAGMENT = "c8y_Service";
|
|
2
|
-
export interface Service {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
serviceType: string;
|
|
6
|
-
status: string;
|
|
7
|
-
c8y_SupportedOperations?: string[];
|
|
8
|
-
c8y_SupportedServiceCommands?: string[];
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=service-device-tab.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service-device-tab.model.d.ts","sourceRoot":"","sources":["../../../services/services-device-tab/service-device-tab.model.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAE9C,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;IACnC,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;IACxC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|