@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,
|
|
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';
|
|
3
7
|
import { ReplaySubject, BehaviorSubject, of, combineLatest, from, fromEventPattern, Subject, defer } from 'rxjs';
|
|
4
8
|
import { filter, merge, debounceTime, switchMap, startWith, map as map$1, shareReplay, take } from 'rxjs/operators';
|
|
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 * as i2$1 from '@c8y/ngx-components/context-dashboard';
|
|
@@ -20,6 +21,23 @@ import { ContextDashboardService } from '@c8y/ngx-components/context-dashboard';
|
|
|
20
21
|
import { CommonModule } from '@angular/common';
|
|
21
22
|
import { AssetSelectorModule } from '@c8y/ngx-components/assets-navigator';
|
|
22
23
|
|
|
24
|
+
class AbsoluteDateService {
|
|
25
|
+
constructor(datePipe) {
|
|
26
|
+
this.datePipe = datePipe;
|
|
27
|
+
}
|
|
28
|
+
getFilter() {
|
|
29
|
+
return (value) => this.datePipe.transform(value);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function absoluteDateServiceFactory(datePipe) {
|
|
33
|
+
return new AbsoluteDateService(datePipe).getFilter();
|
|
34
|
+
}
|
|
35
|
+
const absoluteDateServiceProvider = {
|
|
36
|
+
provide: AbsoluteDateService,
|
|
37
|
+
useFactory: absoluteDateServiceFactory,
|
|
38
|
+
deps: [DatePipe]
|
|
39
|
+
};
|
|
40
|
+
|
|
23
41
|
var ViewContextLegacyParameter;
|
|
24
42
|
(function (ViewContextLegacyParameter) {
|
|
25
43
|
ViewContextLegacyParameter["Device"] = "deviceId";
|
|
@@ -527,75 +545,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
527
545
|
type: Injectable
|
|
528
546
|
}], ctorParameters: function () { return [{ type: BridgeService }, { type: i2.TabsService }]; } });
|
|
529
547
|
|
|
530
|
-
class Ng1BreadcrumbFactoryService {
|
|
531
|
-
constructor(bridge) {
|
|
532
|
-
this.bridge = bridge;
|
|
533
|
-
this.trigger = new ReplaySubject(1);
|
|
534
|
-
this.breadcrumbs = this.trigger.pipe(debounceTime(100), switchMap(() => {
|
|
535
|
-
return this.bridge.getBreadcrumbs();
|
|
536
|
-
}));
|
|
537
|
-
}
|
|
538
|
-
get() {
|
|
539
|
-
this.trigger.next();
|
|
540
|
-
return this.breadcrumbs;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
Ng1BreadcrumbFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
544
|
-
Ng1BreadcrumbFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService });
|
|
545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService, decorators: [{
|
|
546
|
-
type: Injectable
|
|
547
|
-
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
548
|
-
|
|
549
|
-
class Ng1NodesFactoryService {
|
|
550
|
-
constructor(bridge) {
|
|
551
|
-
this.bridge = bridge;
|
|
552
|
-
}
|
|
553
|
-
get() {
|
|
554
|
-
return this.bridge.navigationNodes$;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
Ng1NodesFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
558
|
-
Ng1NodesFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService });
|
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService, decorators: [{
|
|
560
|
-
type: Injectable
|
|
561
|
-
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
562
|
-
|
|
563
|
-
class Ng1TabsFactoryService {
|
|
564
|
-
constructor(bridge) {
|
|
565
|
-
this.bridge = bridge;
|
|
566
|
-
this.tabsObservable = bridge.getTabs();
|
|
567
|
-
}
|
|
568
|
-
get() {
|
|
569
|
-
return this.tabsObservable;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
Ng1TabsFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
573
|
-
Ng1TabsFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService });
|
|
574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService, decorators: [{
|
|
575
|
-
type: Injectable
|
|
576
|
-
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
577
|
-
|
|
578
|
-
class Ng1DocsFactoryService {
|
|
579
|
-
constructor(bridge) {
|
|
580
|
-
this.bridge = bridge;
|
|
581
|
-
this.links = this.bridge.getQuickLinks();
|
|
582
|
-
this.links.then(list => {
|
|
583
|
-
list.map(el => {
|
|
584
|
-
el.type = el.type || 'quicklink';
|
|
585
|
-
return el;
|
|
586
|
-
});
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
get() {
|
|
590
|
-
return this.links;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
Ng1DocsFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
594
|
-
Ng1DocsFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService });
|
|
595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService, decorators: [{
|
|
596
|
-
type: Injectable
|
|
597
|
-
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
598
|
-
|
|
599
548
|
class AuthBridgeService {
|
|
600
549
|
constructor(injector, basicAuth, fetchClient, appState, tenantUiService) {
|
|
601
550
|
this.injector = injector;
|
|
@@ -661,22 +610,59 @@ const authBridgeServiceProvider = {
|
|
|
661
610
|
deps: ['$injector', BasicAuth, FetchClient, AppStateService, TenantUiService]
|
|
662
611
|
};
|
|
663
612
|
|
|
664
|
-
class
|
|
665
|
-
constructor(
|
|
666
|
-
this.
|
|
613
|
+
class Ng1BreadcrumbFactoryService {
|
|
614
|
+
constructor(bridge) {
|
|
615
|
+
this.bridge = bridge;
|
|
616
|
+
this.trigger = new ReplaySubject(1);
|
|
617
|
+
this.breadcrumbs = this.trigger.pipe(debounceTime(100), switchMap(() => {
|
|
618
|
+
return this.bridge.getBreadcrumbs();
|
|
619
|
+
}));
|
|
667
620
|
}
|
|
668
|
-
|
|
669
|
-
|
|
621
|
+
get() {
|
|
622
|
+
this.trigger.next();
|
|
623
|
+
return this.breadcrumbs;
|
|
670
624
|
}
|
|
671
625
|
}
|
|
672
|
-
|
|
673
|
-
|
|
626
|
+
Ng1BreadcrumbFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
627
|
+
Ng1BreadcrumbFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService });
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1BreadcrumbFactoryService, decorators: [{
|
|
629
|
+
type: Injectable
|
|
630
|
+
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
631
|
+
|
|
632
|
+
class Ng1DocsFactoryService {
|
|
633
|
+
constructor(bridge) {
|
|
634
|
+
this.bridge = bridge;
|
|
635
|
+
this.links = this.bridge.getQuickLinks();
|
|
636
|
+
this.links.then(list => {
|
|
637
|
+
list.map(el => {
|
|
638
|
+
el.type = el.type || 'quicklink';
|
|
639
|
+
return el;
|
|
640
|
+
});
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
get() {
|
|
644
|
+
return this.links;
|
|
645
|
+
}
|
|
674
646
|
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
};
|
|
647
|
+
Ng1DocsFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
648
|
+
Ng1DocsFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService });
|
|
649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1DocsFactoryService, decorators: [{
|
|
650
|
+
type: Injectable
|
|
651
|
+
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
652
|
+
|
|
653
|
+
class Ng1NodesFactoryService {
|
|
654
|
+
constructor(bridge) {
|
|
655
|
+
this.bridge = bridge;
|
|
656
|
+
}
|
|
657
|
+
get() {
|
|
658
|
+
return this.bridge.navigationNodes$;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
Ng1NodesFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
662
|
+
Ng1NodesFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService });
|
|
663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1NodesFactoryService, decorators: [{
|
|
664
|
+
type: Injectable
|
|
665
|
+
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
680
666
|
|
|
681
667
|
class Ng1SmartRulesService {
|
|
682
668
|
}
|
|
@@ -689,6 +675,21 @@ const smartRulesServiceProvider = {
|
|
|
689
675
|
deps: ['$injector']
|
|
690
676
|
};
|
|
691
677
|
|
|
678
|
+
class Ng1TabsFactoryService {
|
|
679
|
+
constructor(bridge) {
|
|
680
|
+
this.bridge = bridge;
|
|
681
|
+
this.tabsObservable = bridge.getTabs();
|
|
682
|
+
}
|
|
683
|
+
get() {
|
|
684
|
+
return this.tabsObservable;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
Ng1TabsFactoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
688
|
+
Ng1TabsFactoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService });
|
|
689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: Ng1TabsFactoryService, decorators: [{
|
|
690
|
+
type: Injectable
|
|
691
|
+
}], ctorParameters: function () { return [{ type: BridgeService }]; } });
|
|
692
|
+
|
|
692
693
|
setAngularJSGlobal(angular);
|
|
693
694
|
class UpgradeModule {
|
|
694
695
|
}
|
|
@@ -821,6 +822,7 @@ const serverMessagesService = downgradeInjectable(ServerMessagesService);
|
|
|
821
822
|
const modalService = downgradeInjectable(ModalService);
|
|
822
823
|
const gainsightService = downgradeInjectable(GainsightService);
|
|
823
824
|
const filesService = downgradeInjectable(FilesService);
|
|
825
|
+
const deviceTypeDetailEditedService = downgradeInjectable(DeviceTypeDetailEditedService);
|
|
824
826
|
|
|
825
827
|
function gettextCatalogDecorator($delegate, $interpolate, c8yTranslate) {
|
|
826
828
|
'ngInject';
|
|
@@ -1200,7 +1202,8 @@ angular
|
|
|
1200
1202
|
.factory('c8yCachedLocaleDictionaryService', cachedLocaleDictionaryService)
|
|
1201
1203
|
.decorator('gettextCatalog', gettextCatalogDecorator)
|
|
1202
1204
|
.factory('c8yServerMessages', serverMessagesService)
|
|
1203
|
-
.factory('ngZone', downgradeInjectable(NgZone))
|
|
1205
|
+
.factory('ngZone', downgradeInjectable(NgZone))
|
|
1206
|
+
.factory('c8yDeviceTypeDetailEdited', deviceTypeDetailEditedService);
|
|
1204
1207
|
const ng1Modules = ['app', NAME];
|
|
1205
1208
|
|
|
1206
1209
|
class HybridAppModule {
|