@c8y/ngx-components 1016.0.379 → 1016.0.383

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.factory.d.ts +14 -0
  6. package/device-protocols/device-protocols.guard.d.ts +12 -0
  7. package/device-protocols/device-protocols.module.d.ts +8 -0
  8. package/device-protocols/device-type-detail-edited.service.d.ts +8 -0
  9. package/device-protocols/device-type-detail.component.d.ts +12 -0
  10. package/device-protocols/device-type-detail.directive.d.ts +9 -0
  11. package/device-protocols/index.d.ts +6 -0
  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.factory.mjs +31 -0
  17. package/esm2020/device-protocols/device-protocols.guard.mjs +40 -0
  18. package/esm2020/device-protocols/device-protocols.module.mjs +38 -0
  19. package/esm2020/device-protocols/device-type-detail-edited.service.mjs +19 -0
  20. package/esm2020/device-protocols/device-type-detail.component.mjs +45 -0
  21. package/esm2020/device-protocols/device-type-detail.directive.mjs +19 -0
  22. package/esm2020/device-protocols/index.mjs +7 -0
  23. package/esm2020/ecosystem/application-properties/subscription-modal/subscription-modal.component.mjs +4 -1
  24. package/esm2020/upgrade/ng1/downgraded.services.mjs +6 -4
  25. package/esm2020/upgrade/ng1/index.mjs +6 -5
  26. package/esm2020/upgrade/upgrade.module.mjs +10 -10
  27. package/fesm2015/c8y-ngx-components-device-protocols.mjs +180 -0
  28. package/fesm2015/c8y-ngx-components-device-protocols.mjs.map +1 -0
  29. package/fesm2015/c8y-ngx-components-ecosystem.mjs +3 -0
  30. package/fesm2015/c8y-ngx-components-ecosystem.mjs.map +1 -1
  31. package/fesm2015/c8y-ngx-components-upgrade.mjs +91 -88
  32. package/fesm2015/c8y-ngx-components-upgrade.mjs.map +1 -1
  33. package/fesm2015/c8y-ngx-components.mjs +144 -4
  34. package/fesm2015/c8y-ngx-components.mjs.map +1 -1
  35. package/fesm2020/c8y-ngx-components-device-protocols.mjs +177 -0
  36. package/fesm2020/c8y-ngx-components-device-protocols.mjs.map +1 -0
  37. package/fesm2020/c8y-ngx-components-ecosystem.mjs +3 -0
  38. package/fesm2020/c8y-ngx-components-ecosystem.mjs.map +1 -1
  39. package/fesm2020/c8y-ngx-components-upgrade.mjs +90 -87
  40. package/fesm2020/c8y-ngx-components-upgrade.mjs.map +1 -1
  41. package/fesm2020/c8y-ngx-components.mjs +142 -4
  42. package/fesm2020/c8y-ngx-components.mjs.map +1 -1
  43. package/locales/locales.pot +1 -1
  44. package/package.json +10 -2
  45. package/upgrade/ng1/downgraded.services.d.ts +1 -0
@@ -0,0 +1,180 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Directive, Input, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
+ import { __awaiter } from 'tslib';
4
+ import * as i1 from '@c8y/ngx-components';
5
+ import { gettext, Status, HOOK_ROUTE } 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
+ class DeviceProtocolsRouteFactory {
131
+ get() {
132
+ return fieldbusTypes.map(protocol => ({
133
+ path: `deviceprotocols/${protocol}/:id`,
134
+ component: DeviceTypeDetailComponent,
135
+ canDeactivate: [DeviceProtocolsGuard]
136
+ }));
137
+ }
138
+ }
139
+ DeviceProtocolsRouteFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsRouteFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
140
+ DeviceProtocolsRouteFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsRouteFactory });
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsRouteFactory, decorators: [{
142
+ type: Injectable
143
+ }] });
144
+
145
+ class DeviceProtocolsModule {
146
+ }
147
+ DeviceProtocolsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
148
+ DeviceProtocolsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, declarations: [DeviceTypeDetail, DeviceTypeDetailComponent], exports: [DeviceTypeDetailComponent] });
149
+ DeviceProtocolsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, providers: [
150
+ DeviceTypeDetailEditedService,
151
+ DeviceProtocolsGuard,
152
+ {
153
+ provide: HOOK_ROUTE,
154
+ useClass: forwardRef(() => DeviceProtocolsRouteFactory),
155
+ multi: true
156
+ }
157
+ ] });
158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, decorators: [{
159
+ type: NgModule,
160
+ args: [{
161
+ declarations: [DeviceTypeDetail, DeviceTypeDetailComponent],
162
+ exports: [DeviceTypeDetailComponent],
163
+ providers: [
164
+ DeviceTypeDetailEditedService,
165
+ DeviceProtocolsGuard,
166
+ {
167
+ provide: HOOK_ROUTE,
168
+ useClass: forwardRef(() => DeviceProtocolsRouteFactory),
169
+ multi: true
170
+ }
171
+ ]
172
+ }]
173
+ }] });
174
+
175
+ /**
176
+ * Generated bundle index. Do not edit.
177
+ */
178
+
179
+ export { DeviceProtocolsGuard, DeviceProtocolsModule, DeviceProtocolsRouteFactory, DeviceTypeDetail, DeviceTypeDetailComponent, DeviceTypeDetailEditedService, rootScopeFactory };
180
+ //# 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.factory.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 { Injectable } from '@angular/core';\nimport { Route } from '@angular/router';\nimport { ExtensionFactory } from '@c8y/ngx-components';\nimport { DeviceProtocolsGuard } from './device-protocols.guard';\nimport { DeviceTypeDetailComponent } from './device-type-detail.component';\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\n@Injectable()\nexport class DeviceProtocolsRouteFactory implements ExtensionFactory<Route> {\n get() {\n return fieldbusTypes.map(protocol => ({\n path: `deviceprotocols/${protocol}/:id`,\n component: DeviceTypeDetailComponent,\n canDeactivate: [DeviceProtocolsGuard]\n }));\n }\n}\n","import { forwardRef, NgModule } from '@angular/core';\nimport { HOOK_ROUTE } from '@c8y/ngx-components';\nimport { DeviceProtocolsRouteFactory } from './device-protocols.factory';\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\n@NgModule({\n declarations: [DeviceTypeDetail, DeviceTypeDetailComponent],\n exports: [DeviceTypeDetailComponent],\n providers: [\n DeviceTypeDetailEditedService,\n DeviceProtocolsGuard,\n {\n provide: HOOK_ROUTE,\n useClass: forwardRef(() => DeviceProtocolsRouteFactory),\n multi: true\n }\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;KAClE;IAEE,aAAa,GAAA;;AACjB,YAAA,IAAI,IAAI,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,EAAE;gBAC1D,IAAI;AACF,oBAAA,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CACtB,OAAO,CAAC,iBAAiB,CAAC,EAC1B,OAAO,CACL,wFAAwF,CACzF,EACD,MAAM,CAAC,OAAO,EACd;AACE,wBAAA,EAAE,EAAE,OAAO,CAAC,SAAS,CAAC;AACvB,qBAAA,CACF,CAAC;AACF,oBAAA,IAAI,CAAC,6BAA6B,CAAC,iBAA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6 +1022,9 @@ class SubscriptionModalComponent {
1022
1022
  onSubscribe() {
1023
1023
  return __awaiter(this, void 0, void 0, function* () {
1024
1024
  try {
1025
+ if (!this.application.activeVersionId) {
1026
+ return true;
1027
+ }
1025
1028
  const res = (yield this.applicationService.getStatusDetails(this.application)).data[0];
1026
1029
  return this.shouldShowMSSpecificTabs(res);
1027
1030
  }