import * as i0 from '@angular/core'; import { OnInit, EventEmitter, OnDestroy, ModuleWithProviders, OnChanges, SimpleChanges, AfterContentInit, TemplateRef } from '@angular/core'; import { Router, ActivatedRoute, ActivatedRouteSnapshot } from '@angular/router'; import * as _c8y_client from '@c8y/client'; import { IManagedObject, IResultList, InventoryService, IOperation } from '@c8y/client'; import { Column, ActionControl, ServerSideDataCallback, DataGridService, ModalService, AlertService, DataSourceModifier, ServerSideDataResult, ValidationPattern, PickedFiles, GainsightService, ServiceRegistry, ISelectModalObject, IUpdateItemEvent } from '@c8y/ngx-components'; import * as i1 from '@c8y/ngx-components/repository/shared'; import { RepositoryService, RepositoryCategory, ModalModel, SoftwareTypeComponent, DeviceSoftwareChange, FilterCriteria, DeviceSoftware } from '@c8y/ngx-components/repository/shared'; import { TranslateService } from '@ngx-translate/core'; import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal'; import * as rxjs from 'rxjs'; import { BehaviorSubject, Subject, Observable } from 'rxjs'; import { NgForm } from '@angular/forms'; import * as i2 from '@c8y/ngx-components/operations/operation-details'; declare class SoftwareListComponent implements OnInit { private repositoryService; private gridService; private modalService; private bsModalService; private translateService; private alertService; private router; private activatedRoute; sizeRequest: Promise; sizeRequestDone: boolean; refresh$: EventEmitter; columns: Column[]; actionControls: ActionControl[]; serverSideDataCallback: ServerSideDataCallback; pagination: { pageSize: number; currentPage: number; }; noResultsMessage: "No results to display."; noDataMessage: "No software to display."; noResultsSubtitle: "Refine your search terms or check your spelling."; noDataSubtitle: "Add a new software by clicking below."; constructor(repositoryService: RepositoryService, gridService: DataGridService, modalService: ModalService, bsModalService: BsModalService, translateService: TranslateService, alertService: AlertService, router: Router, activatedRoute: ActivatedRoute); ngOnInit(): void; onDataSourceModifier(dataSourceModifier: DataSourceModifier): Promise; addSoftware(): void; editSoftware(software: Partial): void; deleteSoftware(software: IManagedObject): Promise; trackByName(_index: any, column: Column): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AddSoftwareModalComponent { private modal; private repositoryService; private alert; PRODUCT_EXPERIENCE: { readonly SOFTWARE: { readonly EVENTS: { readonly REPOSITORY: "softwareRepository"; readonly DEVICE_TAB: "deviceSoftware"; }; readonly COMPONENTS: { readonly ADD_SOFTWARE_MODAL: "add-software-modal"; readonly DEVICE_SOFTWARE_CHANGES: "device-software-changes"; readonly DEVICE_SOFTWARE_LIST: "device-software-list"; }; readonly ACTIONS: { readonly APPLY_SOFTWARE_CHANGES: "applySoftwareChanges"; readonly CLEAR_SOFTWARE_CHANGES: "clearSoftwareChanges"; readonly OPEN_INSTALL_SOFTWARE: "openInstallSoftwareModal"; readonly OPEN_UPDATE_SOFTWARE: "openUpdateSoftwareModal"; readonly DELETE_SOFTWARE: "deleteSoftware"; }; readonly RESULTS: { readonly ADD_SOFTWARE: "addSoftware"; readonly ADD_SOFTWARE_VERSION: "addSoftwareVersion"; readonly EDIT_SOFTWARE: "editSoftware"; }; }; readonly FIRMWARE: { readonly EVENTS: { readonly REPOSITORY: "firmwareRepository"; readonly DEVICE_TAB: "deviceFirmware"; }; readonly COMPONENTS: { readonly ADD_FIRMWARE_MODAL: "add-firmware-modal"; readonly ADD_FIRMWAR_PATCH_MODAL: "add-firmware-patch-modal"; readonly FIRMWARE_DEVICE_TAB: "firmware-device-tab"; readonly DEVICE_FIRMWARE_LIST: "device-firmware-list"; }; readonly ACTIONS: { readonly OPEN_INSTALL_FIRMWARE_DIALOG: "openInstallFirmwareDialog"; readonly OPEN_REPLACE_FIRMWARE_DIALOG: "openReplaceFirmwareDialog"; readonly OPEN_INSTALL_FIRMWARE_PATCH_DIALOG: "openInstallFirmwarePatchDialog"; }; readonly RESULTS: { readonly ADD_FIRMWARE: "addFirmware"; readonly ADD_FIRMWARE_VERSION: "addFirmwareVersion"; readonly ADD_FIRMWARE_PATCH: "addFirmwarePatch"; readonly EDIT_FIRMWARE: "editFirmware"; readonly CREATE_FIRMWARE_UPDATE_OPERATION: "createFirmwareUpdateOperation"; }; }; readonly SHARED: { readonly COMPONENTS: { readonly REPOSITORY_SELECT_MODAL: "repository-select-modal"; readonly SELECT_CONFIGURATION_MODAL: "select-configuration-modal"; }; }; }; form: NgForm; saved: EventEmitter; onInput: BehaviorSubject; model: ModalModel; softwaresResult: any; saving: boolean; softwarePreselected: boolean; textForSoftwareUrlPopover: string; ValidationPattern: typeof ValidationPattern; private inputSubscription$; constructor(modal: BsModalRef, repositoryService: RepositoryService, alert: AlertService); ngOnInit(): void; setInitialState(): void; loadSoftwares(): void; getSoftwareResult(searchStr: string): rxjs.Observable<_c8y_client.IResultList>; save(): Promise; successMsg(): void; cancel(): void; ngOnDestroy(): void; onFile(dropped: PickedFiles): void; onSoftwareSelect(software: IManagedObject): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SoftwareDetailsComponent implements OnInit, OnDestroy { private activatedRoute; private inventoryService; private repositoryService; private alertService; private translateService; private modalService; private bsModalService; private gainsightService; private router; softwareType: SoftwareTypeComponent; reload$: Subject; reloading$: BehaviorSubject; softwareTypeObject: IManagedObject; isSoftwareTypeChanged: boolean; updateSoftware$: Subject>; softwareUpdated$: Subject; baseVersionsUpdated$: Subject; software$: Observable; baseVersions$: Observable>; isLegacy$: Observable; destroy$: Subject; constructor(activatedRoute: ActivatedRoute, inventoryService: InventoryService, repositoryService: RepositoryService, alertService: AlertService, translateService: TranslateService, modalService: ModalService, bsModalService: BsModalService, gainsightService: GainsightService, router: Router); ngOnInit(): void; getBinaryName$(binaryUrl: any): Observable; addBaseVersion(): void; deleteBaseVersion(baseVersion: IManagedObject): Promise; onSelectSoftwareType(software: any): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SoftwareRepositoryListModule { static forRoot(): ModuleWithProviders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class DeviceSoftwareChangesComponent implements OnChanges { PRODUCT_EXPERIENCE: { readonly SOFTWARE: { readonly EVENTS: { readonly REPOSITORY: "softwareRepository"; readonly DEVICE_TAB: "deviceSoftware"; }; readonly COMPONENTS: { readonly ADD_SOFTWARE_MODAL: "add-software-modal"; readonly DEVICE_SOFTWARE_CHANGES: "device-software-changes"; readonly DEVICE_SOFTWARE_LIST: "device-software-list"; }; readonly ACTIONS: { readonly APPLY_SOFTWARE_CHANGES: "applySoftwareChanges"; readonly CLEAR_SOFTWARE_CHANGES: "clearSoftwareChanges"; readonly OPEN_INSTALL_SOFTWARE: "openInstallSoftwareModal"; readonly OPEN_UPDATE_SOFTWARE: "openUpdateSoftwareModal"; readonly DELETE_SOFTWARE: "deleteSoftware"; }; readonly RESULTS: { readonly ADD_SOFTWARE: "addSoftware"; readonly ADD_SOFTWARE_VERSION: "addSoftwareVersion"; readonly EDIT_SOFTWARE: "editSoftware"; }; }; readonly FIRMWARE: { readonly EVENTS: { readonly REPOSITORY: "firmwareRepository"; readonly DEVICE_TAB: "deviceFirmware"; }; readonly COMPONENTS: { readonly ADD_FIRMWARE_MODAL: "add-firmware-modal"; readonly ADD_FIRMWAR_PATCH_MODAL: "add-firmware-patch-modal"; readonly FIRMWARE_DEVICE_TAB: "firmware-device-tab"; readonly DEVICE_FIRMWARE_LIST: "device-firmware-list"; }; readonly ACTIONS: { readonly OPEN_INSTALL_FIRMWARE_DIALOG: "openInstallFirmwareDialog"; readonly OPEN_REPLACE_FIRMWARE_DIALOG: "openReplaceFirmwareDialog"; readonly OPEN_INSTALL_FIRMWARE_PATCH_DIALOG: "openInstallFirmwarePatchDialog"; }; readonly RESULTS: { readonly ADD_FIRMWARE: "addFirmware"; readonly ADD_FIRMWARE_VERSION: "addFirmwareVersion"; readonly ADD_FIRMWARE_PATCH: "addFirmwarePatch"; readonly EDIT_FIRMWARE: "editFirmware"; readonly CREATE_FIRMWARE_UPDATE_OPERATION: "createFirmwareUpdateOperation"; }; }; readonly SHARED: { readonly COMPONENTS: { readonly REPOSITORY_SELECT_MODAL: "repository-select-modal"; readonly SELECT_CONFIGURATION_MODAL: "select-configuration-modal"; }; }; }; changes: DeviceSoftwareChange[]; changesInProgress: boolean; deviceSoftwareChangesOperation: IOperation; clear: EventEmitter; drop: EventEmitter; apply: EventEmitter; hideSoftwareChanges: EventEmitter; get applyButtonLabel(): "Applying changes…" | "Apply changes"; changes$: BehaviorSubject; installations$: rxjs.Observable; removals$: rxjs.Observable; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DeviceSoftwareService { private serviceRegistry; /** * Indicates whether device software data is currently being loaded. */ get loading$(): Observable; private reloadSubject$; private loadingSubject$; constructor(serviceRegistry: ServiceRegistry); /** * Trigger device software data reload. */ reload(): void; /** * Retrieves the software list that is installed on a given device. * * @param deviceId ID of the device to retrieve software data for * @param filterCriteria Criteria that software items are filtered by. * @param legacySoftwareList If provided no data will be fetched from backend. The provided software list * will be filtered by the specified filter criteria. * * @returns The software items installed on the specified device filtered by the specified criteria. */ getSoftwareList(deviceId: any, filterCriteria: FilterCriteria, legacySoftwareList?: DeviceSoftware[]): Observable>; private getAdvancedSoftwareList; private getLegacySoftwareList; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class DeviceSoftwareListComponent implements OnInit, AfterContentInit, OnDestroy { private deviceSoftwareService; PRODUCT_EXPERIENCE: { readonly SOFTWARE: { readonly EVENTS: { readonly REPOSITORY: "softwareRepository"; readonly DEVICE_TAB: "deviceSoftware"; }; readonly COMPONENTS: { readonly ADD_SOFTWARE_MODAL: "add-software-modal"; readonly DEVICE_SOFTWARE_CHANGES: "device-software-changes"; readonly DEVICE_SOFTWARE_LIST: "device-software-list"; }; readonly ACTIONS: { readonly APPLY_SOFTWARE_CHANGES: "applySoftwareChanges"; readonly CLEAR_SOFTWARE_CHANGES: "clearSoftwareChanges"; readonly OPEN_INSTALL_SOFTWARE: "openInstallSoftwareModal"; readonly OPEN_UPDATE_SOFTWARE: "openUpdateSoftwareModal"; readonly DELETE_SOFTWARE: "deleteSoftware"; }; readonly RESULTS: { readonly ADD_SOFTWARE: "addSoftware"; readonly ADD_SOFTWARE_VERSION: "addSoftwareVersion"; readonly EDIT_SOFTWARE: "editSoftware"; }; }; readonly FIRMWARE: { readonly EVENTS: { readonly REPOSITORY: "firmwareRepository"; readonly DEVICE_TAB: "deviceFirmware"; }; readonly COMPONENTS: { readonly ADD_FIRMWARE_MODAL: "add-firmware-modal"; readonly ADD_FIRMWAR_PATCH_MODAL: "add-firmware-patch-modal"; readonly FIRMWARE_DEVICE_TAB: "firmware-device-tab"; readonly DEVICE_FIRMWARE_LIST: "device-firmware-list"; }; readonly ACTIONS: { readonly OPEN_INSTALL_FIRMWARE_DIALOG: "openInstallFirmwareDialog"; readonly OPEN_REPLACE_FIRMWARE_DIALOG: "openReplaceFirmwareDialog"; readonly OPEN_INSTALL_FIRMWARE_PATCH_DIALOG: "openInstallFirmwarePatchDialog"; }; readonly RESULTS: { readonly ADD_FIRMWARE: "addFirmware"; readonly ADD_FIRMWARE_VERSION: "addFirmwareVersion"; readonly ADD_FIRMWARE_PATCH: "addFirmwarePatch"; readonly EDIT_FIRMWARE: "editFirmware"; readonly CREATE_FIRMWARE_UPDATE_OPERATION: "createFirmwareUpdateOperation"; }; }; readonly SHARED: { readonly COMPONENTS: { readonly REPOSITORY_SELECT_MODAL: "repository-select-modal"; readonly SELECT_CONFIGURATION_MODAL: "select-configuration-modal"; }; }; }; set softwareList(softwareList: DeviceSoftware[]); device: IManagedObject; deviceSoftwareChanges: DeviceSoftwareChange[]; filterCriteria$: Observable; update: EventEmitter; remove: EventEmitter; onListEmpty: EventEmitter; softwareItems$: Observable>; showUpdate: boolean; showRemove: boolean; emptyList: boolean; noSearchResults: boolean; alreadyInstalledMessage: "This software is already installed on the device"; supportsSoftwareOperations: boolean; private readonly operationTypes; private legacySoftwareList$; private destroyed$; constructor(deviceSoftwareService: DeviceSoftwareService); ngOnInit(): void; ngAfterContentInit(): void; isSoftwareGoingToBeChanged(software: DeviceSoftware): boolean; ngOnDestroy(): void; private notifyListEmpty; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class InstalledSoftwareComponent implements OnDestroy, OnInit { private repository; private bsModal; PRODUCT_EXPERIENCE: { readonly SOFTWARE: { readonly EVENTS: { readonly REPOSITORY: "softwareRepository"; readonly DEVICE_TAB: "deviceSoftware"; }; readonly COMPONENTS: { readonly ADD_SOFTWARE_MODAL: "add-software-modal"; readonly DEVICE_SOFTWARE_CHANGES: "device-software-changes"; readonly DEVICE_SOFTWARE_LIST: "device-software-list"; }; readonly ACTIONS: { readonly APPLY_SOFTWARE_CHANGES: "applySoftwareChanges"; readonly CLEAR_SOFTWARE_CHANGES: "clearSoftwareChanges"; readonly OPEN_INSTALL_SOFTWARE: "openInstallSoftwareModal"; readonly OPEN_UPDATE_SOFTWARE: "openUpdateSoftwareModal"; readonly DELETE_SOFTWARE: "deleteSoftware"; }; readonly RESULTS: { readonly ADD_SOFTWARE: "addSoftware"; readonly ADD_SOFTWARE_VERSION: "addSoftwareVersion"; readonly EDIT_SOFTWARE: "editSoftware"; }; }; readonly FIRMWARE: { readonly EVENTS: { readonly REPOSITORY: "firmwareRepository"; readonly DEVICE_TAB: "deviceFirmware"; }; readonly COMPONENTS: { readonly ADD_FIRMWARE_MODAL: "add-firmware-modal"; readonly ADD_FIRMWAR_PATCH_MODAL: "add-firmware-patch-modal"; readonly FIRMWARE_DEVICE_TAB: "firmware-device-tab"; readonly DEVICE_FIRMWARE_LIST: "device-firmware-list"; }; readonly ACTIONS: { readonly OPEN_INSTALL_FIRMWARE_DIALOG: "openInstallFirmwareDialog"; readonly OPEN_REPLACE_FIRMWARE_DIALOG: "openReplaceFirmwareDialog"; readonly OPEN_INSTALL_FIRMWARE_PATCH_DIALOG: "openInstallFirmwarePatchDialog"; }; readonly RESULTS: { readonly ADD_FIRMWARE: "addFirmware"; readonly ADD_FIRMWARE_VERSION: "addFirmwareVersion"; readonly ADD_FIRMWARE_PATCH: "addFirmwarePatch"; readonly EDIT_FIRMWARE: "editFirmware"; readonly CREATE_FIRMWARE_UPDATE_OPERATION: "createFirmwareUpdateOperation"; }; }; readonly SHARED: { readonly COMPONENTS: { readonly REPOSITORY_SELECT_MODAL: "repository-select-modal"; readonly SELECT_CONFIGURATION_MODAL: "select-configuration-modal"; }; }; }; device: IManagedObject; softwareList: DeviceSoftware[]; deviceSoftwareChanges: DeviceSoftwareChange[]; deviceSoftwareChangesInProgress: boolean; typesQuery: object; changes: EventEmitter; showSoftwareChanges: EventEmitter; alreadyInstalledWarningTemplate: TemplateRef; alreadyInstalledMessage: "{{ name }} (v. {{ version }}) is already installed on this device"; loadingTemplate: TemplateRef; softwareTypeTemplate: TemplateRef; showFilter: boolean; supportsSoftwareOperations: boolean; textFilter$: BehaviorSubject; softwareTypeFilter$: BehaviorSubject; filterCriteria$: Observable; private readonly operationTypes; private queriesUtil; private modalSearch; private destroyed$; constructor(repository: RepositoryService, bsModal: BsModalService); ngOnInit(): void; installSoftware(): void; updateSoftware(softwareToUpdate: any): void; removeSoftware(softwareToRemove: any): void; getInstallableSoftwareListWithVersions$(searchTerm$: BehaviorSubject): Observable; getSingleSoftwareWithVersions$(software: DeviceSoftware): Observable; attachVersions(softwareList: IManagedObject[]): IManagedObject[]; displaySoftwareSelectModal(initialStateOverrides: any): { resultEmitter: EventEmitter; choiceEmitter: EventEmitter; updateInstallableList$: Subject>; }; search(filterCriteria: FilterCriteria): void; emitSoftwareInstall(items: DeviceSoftware[]): void; emitSoftwareRemoval(items: DeviceSoftware[]): void; ngOnDestroy(): void; private isSoftwareInstalledOnDevicePipe; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SoftwareDeviceTabComponent implements OnInit { private route; private repository; private inventory; private deviceSoftwareService; private serviceRegistry; deviceId: string | number; device$: BehaviorSubject; typesQuery$: Observable; list$: Observable; changes$: BehaviorSubject; changesOperation$: BehaviorSubject; changesInProgress$: Observable; reloading: boolean; showSoftwareChanges: boolean; constructor(route: ActivatedRoute, repository: RepositoryService, inventory: InventoryService, deviceSoftwareService: DeviceSoftwareService, serviceRegistry: ServiceRegistry); ngOnInit(): Promise; addChanges(requestedChanges: DeviceSoftwareChange[]): void; dropChange(changeToBeDropped: DeviceSoftwareChange): void; areSameChanges(change1: DeviceSoftwareChange, change2: DeviceSoftwareChange): boolean; clearChanges(): void; loadDevice(): Promise; applyChanges(): Promise; private loadOperation; private trackOperation; private displayChangesFromOperation; private isInProgress; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SoftwareDeviceTabGuard { private readonly operations; canActivate(route: ActivatedRouteSnapshot): any; private isAnyOperationSupported; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class SoftwareRepositoryDeviceTabModule { static forRoot(): ModuleWithProviders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SoftwareRepositoryModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { AddSoftwareModalComponent, DeviceSoftwareChangesComponent, DeviceSoftwareListComponent, DeviceSoftwareService, InstalledSoftwareComponent, SoftwareDetailsComponent, SoftwareDeviceTabComponent, SoftwareDeviceTabGuard, SoftwareListComponent, SoftwareRepositoryDeviceTabModule, SoftwareRepositoryListModule, SoftwareRepositoryModule }; //# sourceMappingURL=index.d.ts.map