@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.
- 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.factory.d.ts +14 -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 +6 -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.factory.mjs +31 -0
- package/esm2020/device-protocols/device-protocols.guard.mjs +40 -0
- package/esm2020/device-protocols/device-protocols.module.mjs +38 -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 +7 -0
- package/esm2020/ecosystem/application-properties/subscription-modal/subscription-modal.component.mjs +4 -1
- 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 +180 -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-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 +177 -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-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/locales/locales.pot +1 -1
- package/package.json +10 -2
- package/upgrade/ng1/downgraded.services.d.ts +1 -0
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { NgZone, Injectable, NgModule, Inject, Component, ChangeDetectionStrategy, Optional } from '@angular/core';
|
|
3
|
+
import { setAngularJSGlobal, downgradeComponent, downgradeInjectable } from '@angular/upgrade/static';
|
|
1
4
|
import * as i2 from '@c8y/ngx-components';
|
|
2
|
-
import { ViewContext, EmptyComponent, gettext, AppStateService, RouterService, ActionService, TenantUiService,
|
|
3
|
-
import
|
|
5
|
+
import { DatePipe, ViewContext, EmptyComponent, gettext, AppStateService, RouterService, ActionService, TenantUiService, RouterModule, HOOK_NAVIGATOR_NODES, HOOK_TABS, HOOK_ACTION_BAR, HOOK_ACTION, HOOK_BREADCRUMB, HOOK_DOCS, BootstrapComponent, UserTotpRevokeComponent, DataGridComponent, LoadingComponent, RangeDisplayComponent, HelpComponent, HighlightComponent, EmptyStateComponent, HOOK_PATTERN_MESSAGES, HeaderService, AlertService, UserMenuService, DocsService, PasswordService, CachedLocaleDictionaryService, ModalService, GainsightService, FilesService, NavigatorNodeRoot, getActivatedRoute, DynamicDatapointsResolver, DynamicManagedObjectResolver, C8yTranslateModule, HOOK_COMPONENTS } from '@c8y/ngx-components';
|
|
6
|
+
import * as angular from 'angular';
|
|
4
7
|
import { filter, merge, debounceTime, switchMap, startWith, map as map$1, shareReplay, take } from 'rxjs/operators';
|
|
8
|
+
import { ReplaySubject, BehaviorSubject, of, combineLatest, from, fromEventPattern, Subject, defer } from 'rxjs';
|
|
5
9
|
import { map, unary, find, forEach, startsWith, isArray, assign, every, pick, property, some, get } from 'lodash-es';
|
|
6
10
|
import * as i1$1 from '@angular/router';
|
|
7
11
|
import { ActivationEnd, Router } from '@angular/router';
|
|
8
|
-
import * as i0 from '@angular/core';
|
|
9
|
-
import { NgZone, Injectable, NgModule, Inject, Component, ChangeDetectionStrategy, Optional } from '@angular/core';
|
|
10
12
|
import { BasicAuth, FetchClient, QueriesUtil } from '@c8y/client';
|
|
11
|
-
import * as angular from 'angular';
|
|
12
|
-
import { setAngularJSGlobal, downgradeComponent, downgradeInjectable } from '@angular/upgrade/static';
|
|
13
13
|
import { AppLogsAutoRefreshComponent } from '@c8y/ngx-components/app-logs';
|
|
14
14
|
import { DatapointSelectionListComponent } from '@c8y/ngx-components/datapoint-selector';
|
|
15
15
|
import { ApiService } from '@c8y/ngx-components/api';
|
|
16
|
+
import { DeviceTypeDetailEditedService } from '@c8y/ngx-components/device-protocols';
|
|
16
17
|
import * as i1 from '@ngx-translate/core';
|
|
17
18
|
import { TranslateService } from '@ngx-translate/core';
|
|
18
19
|
import { __awaiter } from 'tslib';
|
|
@@ -21,6 +22,23 @@ import { ContextDashboardService } from '@c8y/ngx-components/context-dashboard';
|
|
|
21
22
|
import { CommonModule } from '@angular/common';
|
|
22
23
|
import { AssetSelectorModule } from '@c8y/ngx-components/assets-navigator';
|
|
23
24
|
|
|
25
|
+
class AbsoluteDateService {
|
|
26
|
+
constructor(datePipe) {
|
|
27
|
+
this.datePipe = datePipe;
|
|
28
|
+
}
|
|
29
|
+
getFilter() {
|
|
30
|
+
return (value) => this.datePipe.transform(value);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function absoluteDateServiceFactory(datePipe) {
|
|
34
|
+
return new AbsoluteDateService(datePipe).getFilter();
|
|
35
|
+
}
|
|
36
|
+
const absoluteDateServiceProvider = {
|
|
37
|
+
provide: AbsoluteDateService,
|
|
38
|
+
useFactory: absoluteDateServiceFactory,
|
|
39
|
+
deps: [DatePipe]
|
|
40
|
+
};
|
|
41
|
+
|
|
24
42
|
var ViewContextLegacyParameter;
|
|
25
43
|
(function (ViewContextLegacyParameter) {
|
|
26
44
|
ViewContextLegacyParameter["Device"] = "deviceId";
|
|
@@ -503,75 +521,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
503
521
|
type: Injectable
|
|
504
522
|
}], ctorParameters: function () { return [{ type: BridgeService }, { type: i2.TabsService }]; } });
|
|
505
523
|
|
|
506
|
-
class Ng1BreadcrumbFactoryService {
|
|
507
|
-
constructor(bridge) {
|
|
508
|
-
this.bridge = bridge;
|
|
509
|
-
this.trigger = new ReplaySubject(1);
|
|
510
|
-
this.breadcrumbs = this.trigger.pipe(debounceTime(100), switchMap(() => {
|
|
511
|
-
return this.bridge.getBreadcrumbs();
|
|
512
|
-
}));
|
|
513
|
-
}
|
|
514
|
-
get() {
|
|
515
|
-
this.trigger.next();
|
|
516
|
-
return this.breadcrumbs;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
Ng1BreadcrumbFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
520
|
-
Ng1BreadcrumbFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService });
|
|
521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService, decorators: [{
|
|
522
|
-
type: Injectable
|
|
523
|
-
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
524
|
-
|
|
525
|
-
class Ng1NodesFactoryService {
|
|
526
|
-
constructor(bridge) {
|
|
527
|
-
this.bridge = bridge;
|
|
528
|
-
}
|
|
529
|
-
get() {
|
|
530
|
-
return this.bridge.navigationNodes$;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
Ng1NodesFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
534
|
-
Ng1NodesFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService });
|
|
535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService, decorators: [{
|
|
536
|
-
type: Injectable
|
|
537
|
-
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
538
|
-
|
|
539
|
-
class Ng1TabsFactoryService {
|
|
540
|
-
constructor(bridge) {
|
|
541
|
-
this.bridge = bridge;
|
|
542
|
-
this.tabsObservable = bridge.getTabs();
|
|
543
|
-
}
|
|
544
|
-
get() {
|
|
545
|
-
return this.tabsObservable;
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
Ng1TabsFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
549
|
-
Ng1TabsFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService });
|
|
550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService, decorators: [{
|
|
551
|
-
type: Injectable
|
|
552
|
-
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
553
|
-
|
|
554
|
-
class Ng1DocsFactoryService {
|
|
555
|
-
constructor(bridge) {
|
|
556
|
-
this.bridge = bridge;
|
|
557
|
-
this.links = this.bridge.getQuickLinks();
|
|
558
|
-
this.links.then(list => {
|
|
559
|
-
list.map(el => {
|
|
560
|
-
el.type = el.type || 'quicklink';
|
|
561
|
-
return el;
|
|
562
|
-
});
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
get() {
|
|
566
|
-
return this.links;
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
Ng1DocsFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
570
|
-
Ng1DocsFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService });
|
|
571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService, decorators: [{
|
|
572
|
-
type: Injectable
|
|
573
|
-
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
574
|
-
|
|
575
524
|
class AuthBridgeService {
|
|
576
525
|
constructor(injector, basicAuth, fetchClient, appState, tenantUiService) {
|
|
577
526
|
this.injector = injector;
|
|
@@ -637,22 +586,59 @@ const authBridgeServiceProvider = {
|
|
|
637
586
|
deps: ['$injector', BasicAuth, FetchClient, AppStateService, TenantUiService]
|
|
638
587
|
};
|
|
639
588
|
|
|
640
|
-
class
|
|
641
|
-
constructor(
|
|
642
|
-
this.
|
|
589
|
+
class Ng1BreadcrumbFactoryService {
|
|
590
|
+
constructor(bridge) {
|
|
591
|
+
this.bridge = bridge;
|
|
592
|
+
this.trigger = new ReplaySubject(1);
|
|
593
|
+
this.breadcrumbs = this.trigger.pipe(debounceTime(100), switchMap(() => {
|
|
594
|
+
return this.bridge.getBreadcrumbs();
|
|
595
|
+
}));
|
|
643
596
|
}
|
|
644
|
-
|
|
645
|
-
|
|
597
|
+
get() {
|
|
598
|
+
this.trigger.next();
|
|
599
|
+
return this.breadcrumbs;
|
|
646
600
|
}
|
|
647
601
|
}
|
|
648
|
-
|
|
649
|
-
|
|
602
|
+
Ng1BreadcrumbFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
603
|
+
Ng1BreadcrumbFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService });
|
|
604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService, decorators: [{
|
|
605
|
+
type: Injectable
|
|
606
|
+
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
607
|
+
|
|
608
|
+
class Ng1DocsFactoryService {
|
|
609
|
+
constructor(bridge) {
|
|
610
|
+
this.bridge = bridge;
|
|
611
|
+
this.links = this.bridge.getQuickLinks();
|
|
612
|
+
this.links.then(list => {
|
|
613
|
+
list.map(el => {
|
|
614
|
+
el.type = el.type || 'quicklink';
|
|
615
|
+
return el;
|
|
616
|
+
});
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
get() {
|
|
620
|
+
return this.links;
|
|
621
|
+
}
|
|
650
622
|
}
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
};
|
|
623
|
+
Ng1DocsFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
624
|
+
Ng1DocsFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService });
|
|
625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService, decorators: [{
|
|
626
|
+
type: Injectable
|
|
627
|
+
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
628
|
+
|
|
629
|
+
class Ng1NodesFactoryService {
|
|
630
|
+
constructor(bridge) {
|
|
631
|
+
this.bridge = bridge;
|
|
632
|
+
}
|
|
633
|
+
get() {
|
|
634
|
+
return this.bridge.navigationNodes$;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
Ng1NodesFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
638
|
+
Ng1NodesFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService });
|
|
639
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService, decorators: [{
|
|
640
|
+
type: Injectable
|
|
641
|
+
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
656
642
|
|
|
657
643
|
class Ng1SmartRulesService {
|
|
658
644
|
}
|
|
@@ -665,6 +651,21 @@ const smartRulesServiceProvider = {
|
|
|
665
651
|
deps: ['$injector']
|
|
666
652
|
};
|
|
667
653
|
|
|
654
|
+
class Ng1TabsFactoryService {
|
|
655
|
+
constructor(bridge) {
|
|
656
|
+
this.bridge = bridge;
|
|
657
|
+
this.tabsObservable = bridge.getTabs();
|
|
658
|
+
}
|
|
659
|
+
get() {
|
|
660
|
+
return this.tabsObservable;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
Ng1TabsFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
664
|
+
Ng1TabsFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService });
|
|
665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService, decorators: [{
|
|
666
|
+
type: Injectable
|
|
667
|
+
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
668
|
+
|
|
668
669
|
setAngularJSGlobal(angular);
|
|
669
670
|
class UpgradeModule {
|
|
670
671
|
}
|
|
@@ -799,6 +800,7 @@ const serverMessagesService = downgradeInjectable(ServerMessagesService);
|
|
|
799
800
|
const modalService = downgradeInjectable(ModalService);
|
|
800
801
|
const gainsightService = downgradeInjectable(GainsightService);
|
|
801
802
|
const filesService = downgradeInjectable(FilesService);
|
|
803
|
+
const deviceTypeDetailEditedService = downgradeInjectable(DeviceTypeDetailEditedService);
|
|
802
804
|
|
|
803
805
|
function gettextCatalogDecorator($delegate, $interpolate, c8yTranslate) {
|
|
804
806
|
'ngInject';
|
|
@@ -1178,7 +1180,8 @@ angular
|
|
|
1178
1180
|
.factory('c8yCachedLocaleDictionaryService', cachedLocaleDictionaryService)
|
|
1179
1181
|
.decorator('gettextCatalog', gettextCatalogDecorator)
|
|
1180
1182
|
.factory('c8yServerMessages', serverMessagesService)
|
|
1181
|
-
.factory('ngZone', downgradeInjectable(NgZone))
|
|
1183
|
+
.factory('ngZone', downgradeInjectable(NgZone))
|
|
1184
|
+
.factory('c8yDeviceTypeDetailEdited', deviceTypeDetailEditedService);
|
|
1182
1185
|
const ng1Modules = ['app', NAME];
|
|
1183
1186
|
|
|
1184
1187
|
class HybridAppModule {
|