@c8y/ngx-components 1011.0.24 → 1011.0.25

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 (22) hide show
  1. package/bundles/c8y-ngx-components-repository.umd.js +36 -14
  2. package/bundles/c8y-ngx-components-repository.umd.js.map +1 -1
  3. package/bundles/c8y-ngx-components-repository.umd.min.js +1 -1
  4. package/bundles/c8y-ngx-components-repository.umd.min.js.map +1 -1
  5. package/esm2015/repository/configuration-device-tab/device-configuration.component.js +7 -2
  6. package/esm2015/repository/configuration-device-tab/device-configuration.guard.js +4 -2
  7. package/esm2015/repository/firmware-device-tab/firmware-device-tab.component.js +4 -3
  8. package/esm2015/repository/firmware-device-tab/firmware-device-tab.guard.js +4 -5
  9. package/esm2015/repository/software-device-tab/device-software-list.component.js +10 -3
  10. package/esm2015/repository/software-device-tab/installed-software.component.js +10 -2
  11. package/esm2015/repository/software-device-tab/software-device-tab.component.js +2 -2
  12. package/esm2015/repository/software-device-tab/software-device-tab.guard.js +9 -5
  13. package/fesm2015/c8y-ngx-components-repository.js +37 -15
  14. package/fesm2015/c8y-ngx-components-repository.js.map +1 -1
  15. package/package.json +2 -2
  16. package/repository/c8y-ngx-components-repository.metadata.json +1 -1
  17. package/repository/configuration-device-tab/device-configuration.guard.d.ts +1 -1
  18. package/repository/firmware-device-tab/firmware-device-tab.component.d.ts +1 -0
  19. package/repository/firmware-device-tab/firmware-device-tab.guard.d.ts +1 -1
  20. package/repository/software-device-tab/device-software-list.component.d.ts +7 -2
  21. package/repository/software-device-tab/installed-software.component.d.ts +4 -0
  22. package/repository/software-device-tab/software-device-tab.guard.d.ts +2 -2
@@ -3,5 +3,5 @@ import { DeviceConfigurationService } from './device-configuration.service';
3
3
  export declare class DeviceConfigurationGuard implements CanActivate {
4
4
  private deviceConfigurationService;
5
5
  constructor(deviceConfigurationService: DeviceConfigurationService);
6
- canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
6
+ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): any;
7
7
  }
@@ -16,6 +16,7 @@ export declare class FirmwareDeviceTabComponent {
16
16
  firmwareBinary$: Observable<IManagedObject>;
17
17
  repositoryEntry$: Observable<IManagedObject>;
18
18
  patches$: Observable<IManagedObject[]>;
19
+ supportsFirmwareOperations$: Observable<boolean>;
19
20
  changesOperation$: BehaviorSubject<IOperation>;
20
21
  changesInProgress$: Observable<boolean>;
21
22
  constructor(route: ActivatedRoute, repository: RepositoryService, inventory: InventoryService, bsModal: BsModalService);
@@ -1,4 +1,4 @@
1
1
  import { CanActivate } from '@angular/router';
2
2
  export declare class FirmwareDeviceTabGuard implements CanActivate {
3
- canActivate(route: any): boolean;
3
+ canActivate(route: any): any;
4
4
  }
@@ -1,12 +1,17 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { IManagedObject } from '@c8y/client';
2
3
  import { DeviceSoftware, DeviceSoftwareChange } from '../repository.model';
3
- export declare class DeviceSoftwareListComponent {
4
+ export declare class DeviceSoftwareListComponent implements OnInit {
4
5
  softwareList: DeviceSoftware[];
6
+ device: IManagedObject;
5
7
  deviceSoftwareChanges: DeviceSoftwareChange[];
6
8
  update: EventEmitter<DeviceSoftware>;
7
9
  remove: EventEmitter<DeviceSoftware>;
8
10
  showUpdate: boolean;
9
11
  showRemove: boolean;
12
+ supportsSoftwareOperations: boolean;
13
+ private readonly operationTypes;
14
+ ngOnInit(): void;
10
15
  ngAfterContentInit(): void;
11
16
  isSoftwareGoingToBeChanged(software: DeviceSoftware): boolean;
12
17
  }
@@ -8,13 +8,17 @@ export declare class InstalledSoftwareComponent {
8
8
  private repository;
9
9
  private inventory;
10
10
  private bsModal;
11
+ device: IManagedObject;
11
12
  softwareList: DeviceSoftware[];
12
13
  deviceSoftwareChanges: DeviceSoftwareChange[];
13
14
  deviceSoftwareChangesOperation: IOperation;
14
15
  deviceSoftwareChangesInProgress: boolean;
15
16
  deviceTypeQuery: object;
16
17
  changes: EventEmitter<DeviceSoftwareChange[]>;
18
+ supportsSoftwareOperations: boolean;
19
+ private readonly operationTypes;
17
20
  constructor(repository: RepositoryService, inventory: InventoryService, bsModal: BsModalService);
21
+ ngOnInit(): void;
18
22
  installSoftware(): void;
19
23
  updateSoftware(softwareToRemove: any): void;
20
24
  removeSoftware(softwareToRemove: any): void;
@@ -1,6 +1,6 @@
1
- import { CanActivate, ActivatedRouteSnapshot } from '@angular/router';
1
+ import { ActivatedRouteSnapshot, CanActivate } from '@angular/router';
2
2
  export declare class SoftwareDeviceTabGuard implements CanActivate {
3
3
  private readonly operations;
4
- canActivate(route: ActivatedRouteSnapshot): boolean;
4
+ canActivate(route: ActivatedRouteSnapshot): any;
5
5
  private isAnyOperationSupported;
6
6
  }