@c8y/ngx-components 1018.0.151 → 1018.0.159
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/NOTICES +1 -1
- package/core/range-display/range-display.component.d.ts +19 -1
- package/core/realtime/realtime-subject.service.d.ts +4 -0
- package/core/realtime/realtime.service.d.ts +10 -0
- package/device-protocols/device-protocols.guard.d.ts +12 -0
- package/device-protocols/device-protocols.module.d.ts +8 -0
- package/device-protocols/device-type-detail-edited.service.d.ts +8 -0
- package/device-protocols/device-type-detail.component.d.ts +12 -0
- package/device-protocols/device-type-detail.directive.d.ts +9 -0
- package/device-protocols/index.d.ts +5 -0
- package/esm2020/core/range-display/range-display.component.mjs +87 -4
- package/esm2020/core/realtime/realtime-subject.service.mjs +47 -4
- package/esm2020/core/realtime/realtime.service.mjs +15 -1
- package/esm2020/device-protocols/c8y-ngx-components-device-protocols.mjs +5 -0
- package/esm2020/device-protocols/device-protocols.guard.mjs +40 -0
- package/esm2020/device-protocols/device-protocols.module.mjs +46 -0
- package/esm2020/device-protocols/device-type-detail-edited.service.mjs +19 -0
- package/esm2020/device-protocols/device-type-detail.component.mjs +45 -0
- package/esm2020/device-protocols/device-type-detail.directive.mjs +19 -0
- package/esm2020/device-protocols/index.mjs +6 -0
- package/esm2020/ecosystem/application-properties/subscription-modal/subscription-modal.component.mjs +4 -1
- package/esm2020/icon-selector/icons/ecommerce/index.mjs +2 -2
- package/esm2020/upgrade/ng1/downgraded.services.mjs +6 -4
- package/esm2020/upgrade/ng1/index.mjs +6 -5
- package/esm2020/upgrade/upgrade.module.mjs +10 -10
- package/fesm2015/c8y-ngx-components-device-protocols.mjs +162 -0
- package/fesm2015/c8y-ngx-components-device-protocols.mjs.map +1 -0
- package/fesm2015/c8y-ngx-components-ecosystem.mjs +3 -0
- package/fesm2015/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-icon-selector-icons-ecommerce.mjs +1 -1
- package/fesm2015/c8y-ngx-components-icon-selector-icons-ecommerce.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-upgrade.mjs +91 -88
- package/fesm2015/c8y-ngx-components-upgrade.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components.mjs +144 -4
- package/fesm2015/c8y-ngx-components.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-device-protocols.mjs +159 -0
- package/fesm2020/c8y-ngx-components-device-protocols.mjs.map +1 -0
- package/fesm2020/c8y-ngx-components-ecosystem.mjs +3 -0
- package/fesm2020/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-icon-selector-icons-ecommerce.mjs +1 -1
- package/fesm2020/c8y-ngx-components-icon-selector-icons-ecommerce.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-upgrade.mjs +90 -87
- package/fesm2020/c8y-ngx-components-upgrade.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components.mjs +142 -4
- package/fesm2020/c8y-ngx-components.mjs.map +1 -1
- package/icon-selector/icons/ecommerce/index.d.ts +1 -1
- package/locales/de.po +3 -0
- package/locales/en.po +80 -8
- package/locales/locales.pot +4 -4
- package/package.json +1 -1
- package/upgrade/ng1/downgraded.services.d.ts +1 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Directive, Input, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@c8y/ngx-components';
|
|
4
|
+
import { gettext, Status, hookRoute } from '@c8y/ngx-components';
|
|
5
|
+
import * as i1$1 from '@angular/router';
|
|
6
|
+
import { UpgradeComponent } from '@angular/upgrade/static';
|
|
7
|
+
|
|
8
|
+
class DeviceTypeDetailEditedService {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.isDetailEdited = false;
|
|
11
|
+
}
|
|
12
|
+
getIsDetailEdited() {
|
|
13
|
+
return this.isDetailEdited;
|
|
14
|
+
}
|
|
15
|
+
setIsDetailEdited(value) {
|
|
16
|
+
this.isDetailEdited = value;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
DeviceTypeDetailEditedService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetailEditedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
+
DeviceTypeDetailEditedService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetailEditedService });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetailEditedService, decorators: [{
|
|
22
|
+
type: Injectable
|
|
23
|
+
}] });
|
|
24
|
+
|
|
25
|
+
class DeviceProtocolsGuard {
|
|
26
|
+
constructor(modal, alert, deviceTypeDetailEditedService) {
|
|
27
|
+
this.modal = modal;
|
|
28
|
+
this.alert = alert;
|
|
29
|
+
this.deviceTypeDetailEditedService = deviceTypeDetailEditedService;
|
|
30
|
+
}
|
|
31
|
+
async canDeactivate() {
|
|
32
|
+
if (this.deviceTypeDetailEditedService.getIsDetailEdited()) {
|
|
33
|
+
try {
|
|
34
|
+
await this.modal.confirm(gettext('Discard changes'), gettext('You are about to leave this page and discard the changes made. Do you want to proceed?'), Status.WARNING, {
|
|
35
|
+
ok: gettext('Discard')
|
|
36
|
+
});
|
|
37
|
+
this.deviceTypeDetailEditedService.setIsDetailEdited(false);
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
if (e) {
|
|
42
|
+
this.alert.danger(e);
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
DeviceProtocolsGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsGuard, deps: [{ token: i1.ModalService }, { token: i1.AlertService }, { token: DeviceTypeDetailEditedService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
51
|
+
DeviceProtocolsGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsGuard, providedIn: 'root' });
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsGuard, decorators: [{
|
|
53
|
+
type: Injectable,
|
|
54
|
+
args: [{
|
|
55
|
+
providedIn: 'root'
|
|
56
|
+
}]
|
|
57
|
+
}], ctorParameters: function () { return [{ type: i1.ModalService }, { type: i1.AlertService }, { type: DeviceTypeDetailEditedService }]; } });
|
|
58
|
+
|
|
59
|
+
class DeviceTypeDetail extends UpgradeComponent {
|
|
60
|
+
constructor(elementRef, injector) {
|
|
61
|
+
super('c8yDeviceTypeDetail', elementRef, injector);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
DeviceTypeDetail.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetail, deps: [{ token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
|
|
65
|
+
DeviceTypeDetail.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.6", type: DeviceTypeDetail, selector: "c8y-device-type-detail-directive", inputs: { id: "id" }, usesInheritance: true, ngImport: i0 });
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetail, decorators: [{
|
|
67
|
+
type: Directive,
|
|
68
|
+
args: [{
|
|
69
|
+
selector: 'c8y-device-type-detail-directive'
|
|
70
|
+
}]
|
|
71
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Injector }]; }, propDecorators: { id: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}] } });
|
|
74
|
+
|
|
75
|
+
/* https://stackoverflow.com/a/65290658 */
|
|
76
|
+
function rootScopeFactory($injector) {
|
|
77
|
+
return $injector.get('$rootScope').$new();
|
|
78
|
+
}
|
|
79
|
+
class DeviceTypeDetailComponent {
|
|
80
|
+
constructor(route) {
|
|
81
|
+
this.route = route;
|
|
82
|
+
}
|
|
83
|
+
ngOnInit() {
|
|
84
|
+
this.deviceTypeId = this.route.snapshot.paramMap.get('id');
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
DeviceTypeDetailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetailComponent, deps: [{ token: i1$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
88
|
+
DeviceTypeDetailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: DeviceTypeDetailComponent, selector: "c8y-device-type-detail", providers: [
|
|
89
|
+
{
|
|
90
|
+
deps: ['$injector'],
|
|
91
|
+
provide: '$scope',
|
|
92
|
+
useFactory: rootScopeFactory
|
|
93
|
+
}
|
|
94
|
+
], ngImport: i0, template: `<c8y-device-type-detail-directive
|
|
95
|
+
[id]="deviceTypeId"
|
|
96
|
+
></c8y-device-type-detail-directive>`, isInline: true, dependencies: [{ kind: "directive", type: DeviceTypeDetail, selector: "c8y-device-type-detail-directive", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetailComponent, decorators: [{
|
|
98
|
+
type: Component,
|
|
99
|
+
args: [{
|
|
100
|
+
selector: 'c8y-device-type-detail',
|
|
101
|
+
template: `<c8y-device-type-detail-directive
|
|
102
|
+
[id]="deviceTypeId"
|
|
103
|
+
></c8y-device-type-detail-directive>`,
|
|
104
|
+
providers: [
|
|
105
|
+
{
|
|
106
|
+
deps: ['$injector'],
|
|
107
|
+
provide: '$scope',
|
|
108
|
+
useFactory: rootScopeFactory
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
112
|
+
}]
|
|
113
|
+
}], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }]; } });
|
|
114
|
+
|
|
115
|
+
const fieldbusTypes = [
|
|
116
|
+
'actility',
|
|
117
|
+
'canbus',
|
|
118
|
+
'canopen',
|
|
119
|
+
'lora',
|
|
120
|
+
'lpwan',
|
|
121
|
+
'modbus',
|
|
122
|
+
'opcua',
|
|
123
|
+
'profibus',
|
|
124
|
+
'sigfox',
|
|
125
|
+
'snmp'
|
|
126
|
+
];
|
|
127
|
+
const protocolRoutes = fieldbusTypes.map(protocol => ({
|
|
128
|
+
path: `deviceprotocols/${protocol}/:id`,
|
|
129
|
+
component: DeviceTypeDetailComponent,
|
|
130
|
+
canDeactivate: [DeviceProtocolsGuard]
|
|
131
|
+
}));
|
|
132
|
+
class DeviceProtocolsModule {
|
|
133
|
+
}
|
|
134
|
+
DeviceProtocolsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
135
|
+
DeviceProtocolsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, declarations: [DeviceTypeDetail, DeviceTypeDetailComponent], exports: [DeviceTypeDetailComponent] });
|
|
136
|
+
DeviceProtocolsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, providers: [
|
|
137
|
+
DeviceTypeDetailEditedService,
|
|
138
|
+
DeviceProtocolsGuard,
|
|
139
|
+
...protocolRoutes.map(route => hookRoute(route))
|
|
140
|
+
] });
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, decorators: [{
|
|
142
|
+
type: NgModule,
|
|
143
|
+
args: [{
|
|
144
|
+
declarations: [DeviceTypeDetail, DeviceTypeDetailComponent],
|
|
145
|
+
exports: [DeviceTypeDetailComponent],
|
|
146
|
+
providers: [
|
|
147
|
+
DeviceTypeDetailEditedService,
|
|
148
|
+
DeviceProtocolsGuard,
|
|
149
|
+
...protocolRoutes.map(route => hookRoute(route))
|
|
150
|
+
]
|
|
151
|
+
}]
|
|
152
|
+
}] });
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Generated bundle index. Do not edit.
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
export { DeviceProtocolsGuard, DeviceProtocolsModule, DeviceTypeDetail, DeviceTypeDetailComponent, DeviceTypeDetailEditedService, rootScopeFactory };
|
|
159
|
+
//# sourceMappingURL=c8y-ngx-components-device-protocols.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-device-protocols.mjs","sources":["../../device-protocols/device-type-detail-edited.service.ts","../../device-protocols/device-protocols.guard.ts","../../device-protocols/device-type-detail.directive.ts","../../device-protocols/device-type-detail.component.ts","../../device-protocols/device-protocols.module.ts","../../device-protocols/c8y-ngx-components-device-protocols.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class DeviceTypeDetailEditedService {\n isDetailEdited = false;\n\n getIsDetailEdited() {\n return this.isDetailEdited;\n }\n\n setIsDetailEdited(value) {\n this.isDetailEdited = value;\n }\n}\n","import { Injectable } from '@angular/core';\nimport { AlertService, gettext, ModalService, Status } from '@c8y/ngx-components';\nimport { DeviceTypeDetailEditedService } from './device-type-detail-edited.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DeviceProtocolsGuard {\n constructor(\n private modal: ModalService,\n private alert: AlertService,\n private deviceTypeDetailEditedService: DeviceTypeDetailEditedService\n ) {}\n\n async canDeactivate(): Promise<boolean> {\n if (this.deviceTypeDetailEditedService.getIsDetailEdited()) {\n try {\n await this.modal.confirm(\n gettext('Discard changes'),\n gettext(\n 'You are about to leave this page and discard the changes made. Do you want to proceed?'\n ),\n Status.WARNING,\n {\n ok: gettext('Discard')\n }\n );\n this.deviceTypeDetailEditedService.setIsDetailEdited(false);\n return true;\n } catch (e) {\n if (e) {\n this.alert.danger(e);\n }\n return false;\n }\n }\n return true;\n }\n}\n","import { Directive, ElementRef, Injector, Input } from '@angular/core';\nimport { UpgradeComponent } from '@angular/upgrade/static';\n\n@Directive({\n selector: 'c8y-device-type-detail-directive'\n})\nexport class DeviceTypeDetail extends UpgradeComponent {\n @Input() id: string;\n\n constructor(elementRef: ElementRef, injector: Injector) {\n super('c8yDeviceTypeDetail', elementRef, injector);\n }\n}\n","import { ChangeDetectionStrategy, Component, Injector, OnInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\n\n/* https://stackoverflow.com/a/65290658 */\nexport function rootScopeFactory($injector: Injector) {\n return $injector.get('$rootScope').$new();\n}\n\n@Component({\n selector: 'c8y-device-type-detail',\n template: `<c8y-device-type-detail-directive\n [id]=\"deviceTypeId\"\n ></c8y-device-type-detail-directive>`,\n providers: [\n {\n deps: ['$injector'],\n provide: '$scope',\n useFactory: rootScopeFactory\n }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DeviceTypeDetailComponent implements OnInit {\n deviceTypeId: string;\n\n constructor(private route: ActivatedRoute) {}\n\n ngOnInit() {\n this.deviceTypeId = this.route.snapshot.paramMap.get('id');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { Route } from '@angular/router';\nimport { hookRoute } from '@c8y/ngx-components';\nimport { DeviceProtocolsGuard } from './device-protocols.guard';\nimport { DeviceTypeDetailEditedService } from './device-type-detail-edited.service';\nimport { DeviceTypeDetailComponent } from './device-type-detail.component';\nimport { DeviceTypeDetail } from './device-type-detail.directive';\n\nconst fieldbusTypes = [\n 'actility',\n 'canbus',\n 'canopen',\n 'lora',\n 'lpwan',\n 'modbus',\n 'opcua',\n 'profibus',\n 'sigfox',\n 'snmp'\n];\n\nconst protocolRoutes: Route[] = fieldbusTypes.map(protocol => ({\n path: `deviceprotocols/${protocol}/:id`,\n component: DeviceTypeDetailComponent,\n canDeactivate: [DeviceProtocolsGuard]\n}));\n\n@NgModule({\n declarations: [DeviceTypeDetail, DeviceTypeDetailComponent],\n exports: [DeviceTypeDetailComponent],\n providers: [\n DeviceTypeDetailEditedService,\n DeviceProtocolsGuard,\n ...protocolRoutes.map(route => hookRoute(route))\n ]\n})\nexport class DeviceProtocolsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.DeviceTypeDetailEditedService","i1","i2.DeviceTypeDetail"],"mappings":";;;;;;;MAGa,6BAA6B,CAAA;AAD1C,IAAA,WAAA,GAAA;QAEE,IAAc,CAAA,cAAA,GAAG,KAAK,CAAC;AASxB,KAAA;IAPC,iBAAiB,GAAA;QACf,OAAO,IAAI,CAAC,cAAc,CAAC;KAC5B;AAED,IAAA,iBAAiB,CAAC,KAAK,EAAA;AACrB,QAAA,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;KAC7B;;0HATU,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;8HAA7B,6BAA6B,EAAA,CAAA,CAAA;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC,UAAU;;;MCKE,oBAAoB,CAAA;AAC/B,IAAA,WAAA,CACU,KAAmB,EACnB,KAAmB,EACnB,6BAA4D,EAAA;QAF5D,IAAK,CAAA,KAAA,GAAL,KAAK,CAAc;QACnB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAc;QACnB,IAA6B,CAAA,6BAAA,GAA7B,6BAA6B,CAA+B;KAClE;AAEJ,IAAA,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9 @@ class SubscriptionModalComponent {
|
|
|
159
159
|
}
|
|
160
160
|
async onSubscribe() {
|
|
161
161
|
try {
|
|
162
|
+
if (!this.application.activeVersionId) {
|
|
163
|
+
return true;
|
|
164
|
+
}
|
|
162
165
|
const res = (await this.applicationService.getStatusDetails(this.application)).data[0];
|
|
163
166
|
return this.shouldShowMSSpecificTabs(res);
|
|
164
167
|
}
|