@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
@@ -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, DatePipe, 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';
3
- import { ReplaySubject, BehaviorSubject, of, combineLatest, from, fromEventPattern, Subject, defer } from 'rxjs';
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 AbsoluteDateService {
641
- constructor(datePipe) {
642
- this.datePipe = datePipe;
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
- getFilter() {
645
- return (value) => this.datePipe.transform(value);
597
+ get() {
598
+ this.trigger.next();
599
+ return this.breadcrumbs;
646
600
  }
647
601
  }
648
- function absoluteDateServiceFactory(datePipe) {
649
- return new AbsoluteDateService(datePipe).getFilter();
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
- const absoluteDateServiceProvider = {
652
- provide: AbsoluteDateService,
653
- useFactory: absoluteDateServiceFactory,
654
- deps: [DatePipe]
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 {