@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,177 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Directive, Input, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
+ import * as i1 from '@c8y/ngx-components';
4
+ import { gettext, Status, HOOK_ROUTE } 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
+ class DeviceProtocolsRouteFactory {
128
+ get() {
129
+ return fieldbusTypes.map(protocol => ({
130
+ path: `deviceprotocols/${protocol}/:id`,
131
+ component: DeviceTypeDetailComponent,
132
+ canDeactivate: [DeviceProtocolsGuard]
133
+ }));
134
+ }
135
+ }
136
+ DeviceProtocolsRouteFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsRouteFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
137
+ DeviceProtocolsRouteFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsRouteFactory });
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsRouteFactory, decorators: [{
139
+ type: Injectable
140
+ }] });
141
+
142
+ class DeviceProtocolsModule {
143
+ }
144
+ DeviceProtocolsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
145
+ DeviceProtocolsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, declarations: [DeviceTypeDetail, DeviceTypeDetailComponent], exports: [DeviceTypeDetailComponent] });
146
+ DeviceProtocolsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, providers: [
147
+ DeviceTypeDetailEditedService,
148
+ DeviceProtocolsGuard,
149
+ {
150
+ provide: HOOK_ROUTE,
151
+ useClass: forwardRef(() => DeviceProtocolsRouteFactory),
152
+ multi: true
153
+ }
154
+ ] });
155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: DeviceProtocolsModule, decorators: [{
156
+ type: NgModule,
157
+ args: [{
158
+ declarations: [DeviceTypeDetail, DeviceTypeDetailComponent],
159
+ exports: [DeviceTypeDetailComponent],
160
+ providers: [
161
+ DeviceTypeDetailEditedService,
162
+ DeviceProtocolsGuard,
163
+ {
164
+ provide: HOOK_ROUTE,
165
+ useClass: forwardRef(() => DeviceProtocolsRouteFactory),
166
+ multi: true
167
+ }
168
+ ]
169
+ }]
170
+ }] });
171
+
172
+ /**
173
+ * Generated bundle index. Do not edit.
174
+ */
175
+
176
+ export { DeviceProtocolsGuard, DeviceProtocolsModule, DeviceProtocolsRouteFactory, DeviceTypeDetail, DeviceTypeDetailComponent, DeviceTypeDetailEditedService, rootScopeFactory };
177
+ //# 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;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,MAAM,aAAa,GAAA;AACjB,QAAA,IAAI,IAAI,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,EAAE;YAC1D,IAAI;AACF,gBAAA,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CACtB,OAAO,CAAC,iBAAiB,CAAC,EAC1B,OAAO,CACL,wFAAwF,CACzF,EACD,MAAM,CAAC,OAAO,EACd;AACE,oBAAA,EAAE,EAAE,OAAO,CAAC,SAAS,CAAC;AACvB,iBAAA,CACF,CAAC;AACF,gBAAA,IAAI,CAAC,6BAA6B,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAC5D,gBAAA,OAAO,IAAI,CAAC;AACb,aAAA;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
947
+ return true;
948
+ }
946
949
  const res = (await this.applicationService.getStatusDetails(this.application)).data[0];
947
950
  return this.shouldShowMSSpecificTabs(res);
948
951
  }