@c8y/ngx-components 1017.0.345 → 1017.0.355

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.
Files changed (45) hide show
  1. package/NOTICES +1 -1
  2. package/core/range-display/range-display.component.d.ts +19 -1
  3. package/core/realtime/realtime-subject.service.d.ts +4 -0
  4. package/core/realtime/realtime.service.d.ts +10 -0
  5. package/device-protocols/device-protocols.guard.d.ts +12 -0
  6. package/device-protocols/device-protocols.module.d.ts +8 -0
  7. package/device-protocols/device-type-detail-edited.service.d.ts +8 -0
  8. package/device-protocols/device-type-detail.component.d.ts +12 -0
  9. package/device-protocols/device-type-detail.directive.d.ts +9 -0
  10. package/device-protocols/index.d.ts +5 -0
  11. package/esm2020/core/modal/modal-confirm.component.mjs +3 -3
  12. package/esm2020/core/range-display/range-display.component.mjs +87 -4
  13. package/esm2020/core/realtime/realtime-subject.service.mjs +47 -4
  14. package/esm2020/core/realtime/realtime.service.mjs +15 -1
  15. package/esm2020/device-protocols/c8y-ngx-components-device-protocols.mjs +5 -0
  16. package/esm2020/device-protocols/device-protocols.guard.mjs +40 -0
  17. package/esm2020/device-protocols/device-protocols.module.mjs +46 -0
  18. package/esm2020/device-protocols/device-type-detail-edited.service.mjs +19 -0
  19. package/esm2020/device-protocols/device-type-detail.component.mjs +45 -0
  20. package/esm2020/device-protocols/device-type-detail.directive.mjs +19 -0
  21. package/esm2020/device-protocols/index.mjs +6 -0
  22. package/esm2020/ecosystem/application-properties/subscription-modal/subscription-modal.component.mjs +4 -1
  23. package/esm2020/upgrade/ng1/downgraded.services.mjs +6 -4
  24. package/esm2020/upgrade/ng1/index.mjs +6 -5
  25. package/esm2020/upgrade/upgrade.module.mjs +10 -10
  26. package/fesm2015/c8y-ngx-components-device-protocols.mjs +162 -0
  27. package/fesm2015/c8y-ngx-components-device-protocols.mjs.map +1 -0
  28. package/fesm2015/c8y-ngx-components-ecosystem.mjs +3 -0
  29. package/fesm2015/c8y-ngx-components-ecosystem.mjs.map +1 -1
  30. package/fesm2015/c8y-ngx-components-upgrade.mjs +91 -88
  31. package/fesm2015/c8y-ngx-components-upgrade.mjs.map +1 -1
  32. package/fesm2015/c8y-ngx-components.mjs +312 -172
  33. package/fesm2015/c8y-ngx-components.mjs.map +1 -1
  34. package/fesm2020/c8y-ngx-components-device-protocols.mjs +159 -0
  35. package/fesm2020/c8y-ngx-components-device-protocols.mjs.map +1 -0
  36. package/fesm2020/c8y-ngx-components-ecosystem.mjs +3 -0
  37. package/fesm2020/c8y-ngx-components-ecosystem.mjs.map +1 -1
  38. package/fesm2020/c8y-ngx-components-upgrade.mjs +90 -87
  39. package/fesm2020/c8y-ngx-components-upgrade.mjs.map +1 -1
  40. package/fesm2020/c8y-ngx-components.mjs +310 -172
  41. package/fesm2020/c8y-ngx-components.mjs.map +1 -1
  42. package/locales/en.po +11 -12
  43. package/locales/locales.pot +4 -13
  44. package/package.json +10 -2
  45. package/upgrade/ng1/downgraded.services.d.ts +1 -0
@@ -0,0 +1,162 @@
1
+ import { __awaiter } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { Injectable, Directive, Input, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
4
+ import * as i1 from '@c8y/ngx-components';
5
+ import { gettext, Status, hookRoute } from '@c8y/ngx-components';
6
+ import * as i1$1 from '@angular/router';
7
+ import { UpgradeComponent } from '@angular/upgrade/static';
8
+
9
+ class DeviceTypeDetailEditedService {
10
+ constructor() {
11
+ this.isDetailEdited = false;
12
+ }
13
+ getIsDetailEdited() {
14
+ return this.isDetailEdited;
15
+ }
16
+ setIsDetailEdited(value) {
17
+ this.isDetailEdited = value;
18
+ }
19
+ }
20
+ DeviceTypeDetailEditedService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetailEditedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
21
+ DeviceTypeDetailEditedService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetailEditedService });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetailEditedService, decorators: [{
23
+ type: Injectable
24
+ }] });
25
+
26
+ class DeviceProtocolsGuard {
27
+ constructor(modal, alert, deviceTypeDetailEditedService) {
28
+ this.modal = modal;
29
+ this.alert = alert;
30
+ this.deviceTypeDetailEditedService = deviceTypeDetailEditedService;
31
+ }
32
+ canDeactivate() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (this.deviceTypeDetailEditedService.getIsDetailEdited()) {
35
+ try {
36
+ yield 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, {
37
+ ok: gettext('Discard')
38
+ });
39
+ this.deviceTypeDetailEditedService.setIsDetailEdited(false);
40
+ return true;
41
+ }
42
+ catch (e) {
43
+ if (e) {
44
+ this.alert.danger(e);
45
+ }
46
+ return false;
47
+ }
48
+ }
49
+ return true;
50
+ });
51
+ }
52
+ }
53
+ 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 });
54
+ DeviceProtocolsGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsGuard, providedIn: 'root' });
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsGuard, decorators: [{
56
+ type: Injectable,
57
+ args: [{
58
+ providedIn: 'root'
59
+ }]
60
+ }], ctorParameters: function () { return [{ type: i1.ModalService }, { type: i1.AlertService }, { type: DeviceTypeDetailEditedService }]; } });
61
+
62
+ class DeviceTypeDetail extends UpgradeComponent {
63
+ constructor(elementRef, injector) {
64
+ super('c8yDeviceTypeDetail', elementRef, injector);
65
+ }
66
+ }
67
+ 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 });
68
+ 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 });
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetail, decorators: [{
70
+ type: Directive,
71
+ args: [{
72
+ selector: 'c8y-device-type-detail-directive'
73
+ }]
74
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Injector }]; }, propDecorators: { id: [{
75
+ type: Input
76
+ }] } });
77
+
78
+ /* https://stackoverflow.com/a/65290658 */
79
+ function rootScopeFactory($injector) {
80
+ return $injector.get('$rootScope').$new();
81
+ }
82
+ class DeviceTypeDetailComponent {
83
+ constructor(route) {
84
+ this.route = route;
85
+ }
86
+ ngOnInit() {
87
+ this.deviceTypeId = this.route.snapshot.paramMap.get('id');
88
+ }
89
+ }
90
+ 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 });
91
+ DeviceTypeDetailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: DeviceTypeDetailComponent, selector: "c8y-device-type-detail", providers: [
92
+ {
93
+ deps: ['$injector'],
94
+ provide: '$scope',
95
+ useFactory: rootScopeFactory
96
+ }
97
+ ], ngImport: i0, template: `<c8y-device-type-detail-directive
98
+ [id]="deviceTypeId"
99
+ ></c8y-device-type-detail-directive>`, isInline: true, dependencies: [{ kind: "directive", type: DeviceTypeDetail, selector: "c8y-device-type-detail-directive", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceTypeDetailComponent, decorators: [{
101
+ type: Component,
102
+ args: [{
103
+ selector: 'c8y-device-type-detail',
104
+ template: `<c8y-device-type-detail-directive
105
+ [id]="deviceTypeId"
106
+ ></c8y-device-type-detail-directive>`,
107
+ providers: [
108
+ {
109
+ deps: ['$injector'],
110
+ provide: '$scope',
111
+ useFactory: rootScopeFactory
112
+ }
113
+ ],
114
+ changeDetection: ChangeDetectionStrategy.OnPush
115
+ }]
116
+ }], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }]; } });
117
+
118
+ const fieldbusTypes = [
119
+ 'actility',
120
+ 'canbus',
121
+ 'canopen',
122
+ 'lora',
123
+ 'lpwan',
124
+ 'modbus',
125
+ 'opcua',
126
+ 'profibus',
127
+ 'sigfox',
128
+ 'snmp'
129
+ ];
130
+ const protocolRoutes = fieldbusTypes.map(protocol => ({
131
+ path: `deviceprotocols/${protocol}/:id`,
132
+ component: DeviceTypeDetailComponent,
133
+ canDeactivate: [DeviceProtocolsGuard]
134
+ }));
135
+ class DeviceProtocolsModule {
136
+ }
137
+ DeviceProtocolsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
138
+ DeviceProtocolsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, declarations: [DeviceTypeDetail, DeviceTypeDetailComponent], exports: [DeviceTypeDetailComponent] });
139
+ DeviceProtocolsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, providers: [
140
+ DeviceTypeDetailEditedService,
141
+ DeviceProtocolsGuard,
142
+ ...protocolRoutes.map(route => hookRoute(route))
143
+ ] });
144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, decorators: [{
145
+ type: NgModule,
146
+ args: [{
147
+ declarations: [DeviceTypeDetail, DeviceTypeDetailComponent],
148
+ exports: [DeviceTypeDetailComponent],
149
+ providers: [
150
+ DeviceTypeDetailEditedService,
151
+ DeviceProtocolsGuard,
152
+ ...protocolRoutes.map(route => hookRoute(route))
153
+ ]
154
+ }]
155
+ }] });
156
+
157
+ /**
158
+ * Generated bundle index. Do not edit.
159
+ */
160
+
161
+ export { DeviceProtocolsGuard, DeviceProtocolsModule, DeviceTypeDetail, DeviceTypeDetailComponent, DeviceTypeDetailEditedService, rootScopeFactory };
162
+ //# 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;AAEE,QAAA,IAAc,CAAA,cAAA,GAAG,KAAK,CAAC;KASxB;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;AAF5D,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAc;AACnB,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAc;AACnB,QAAA,IAA6B,CAAA,6BAAA,GAA7B,6BAA6B,CAA+B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;;;"}
@@ -181,6 +181,9 @@ class SubscriptionModalComponent {
181
181
  onSubscribe() {
182
182
  return __awaiter(this, void 0, void 0, function* () {
183
183
  try {
184
+ if (!this.application.activeVersionId) {
185
+ return true;
186
+ }
184
187
  const res = (yield this.applicationService.getStatusDetails(this.application)).data[0];
185
188
  return this.shouldShowMSSpecificTabs(res);
186
189
  }