Repository URL to install this package:
import { ConfirmationDialogComponent } from '../../../components/ConfirmationDialog/confirmation-dialog-component';
import { OnInit, OnDestroy, ElementRef, Renderer } from '@angular/core';
import { NGXLogger } from 'web-console-core';
import { SettingsService, ConfigurationsService } from '@wa-motif-open-api/configuration-service';
import { MotifService, ConfigurationRow } from '../data/model';
import { ComboBoxComponent } from '@progress/kendo-angular-dropdowns';
import { WCEditService } from 'web-console-ui-kit';
import { GridComponent, GridDataResult } from '@progress/kendo-angular-grid';
import { State } from '@progress/kendo-data-query';
import { FormBuilder, FormGroup } from '@angular/forms';
import { Observable } from 'rxjs/Observable';
import { WCNotificationCenter } from 'web-console-ui-kit';
import { NewConfigurationParamDialogComponent, NewParamDialogResult } from './dialog/new-configuration-param-dialog';
import { MotifACLService } from 'web-console-motif-acl';
export declare class ConfigurationSectionComponent implements OnInit, OnDestroy {
private logger;
private motifACLService;
private settingsService;
private configurationService;
editService: WCEditService;
private formBuilder;
private renderer;
private notificationCenter;
private elem;
faFileImport: import("@fortawesome/fontawesome-common-types").IconDefinition;
faDownload: import("@fortawesome/fontawesome-common-types").IconDefinition;
typesInfo: {
'java.lang.String': {
decimals: any;
format: any;
};
'java.lang.Short': {
decimals: number;
format: string;
};
'java.lang.Integer': {
decimals: number;
format: string;
};
'java.lang.Long': {
decimals: number;
format: string;
};
'java.lang.Float': {
decimals: number;
format: string;
};
'java.lang.Double': {
decimals: number;
format: string;
};
'java.lang.Boolean': {
decimals: any;
format: any;
};
};
view: Observable<GridDataResult>;
gridState: State;
changes: any;
dropDownBooleanValues: Array<string>;
loading: boolean;
editDataItem: ConfigurationRow;
confirmationDialog: ConfirmationDialogComponent;
servicesComboBox: ComboBoxComponent;
grid: GridComponent;
propertyEditorDialog: NewConfigurationParamDialogComponent;
xmlFileImportEl: ElementRef;
canSave: boolean;
canRefresh: boolean;
canAddProperty: boolean;
private _selectedService;
private _editServiceConfig;
private _subHandler;
constructor(logger: NGXLogger, motifACLService: MotifACLService, settingsService: SettingsService, configurationService: ConfigurationsService, editService: WCEditService, formBuilder: FormBuilder, renderer: Renderer, notificationCenter: WCNotificationCenter, elem: ElementRef);
/**
* Angular ngOnInit
*/
ngOnInit(): void;
ngOnDestroy(): void;
freeMem(): void;
/**
* Triggered by the grid component
* @param state
*/
onStateChange(state: State): void;
/**
* Reload the list of parameters for a given service
* @param service
*/
private reloadConfigurationParamsForService;
/**
* User selection from Combobox
*/
selectedService: MotifService;
/**
* Reload current configuration for the current selected service
*/
private reloadConfigurationParams;
/**
* User selection on click
* triggered by the grid
* @param param0
*/
cellClickHandler({ sender, rowIndex, columnIndex, dataItem, isEdited }: {
sender: any;
rowIndex: any;
columnIndex: any;
dataItem: any;
isEdited: any;
}): void;
/**
* triggered by the grid
*/
cellCloseHandler(args: any): void;
/**
* Prepare edit form for inline editing
*/
createFormGroupForEdit(dataItem: ConfigurationRow): FormGroup;
/**
* Export current configuration
*/
private exportConfigurationFile;
/**
* Event emitted by the editor form
*/
onEditCancel(): void;
/**
* Button event
*/
onRefreshClicked(): void;
/**
* Button event
*/
onSaveClicked(): void;
/**
* Save all pending chenges remotely
*/
private saveAllChanges;
/**
* Button Event
*/
onDiscardClicked(): void;
/**
* Button event
*/
onExportClicked(): void;
/**
* Button event
*/
onImportClicked(): void;
/**
* Button event
*/
onAddPropertyClicked(): void;
/**
* Event emitted by the confirmation dialog
* @param userData
*/
onConfirmationCancel(userData: any): void;
/**
* Event emitted by the confirmation dialog
* @param userData
*/
onConfirmationOK(userData: any): void;
/**
* Triggered by the new Property Editor Dialog
* @param event
*/
onEditCommit(newConfigurationRow: ConfigurationRow): void;
/**
* Enable or disable buttons
*/
private setOptions;
/**
* Triggered by the grid delete button
* @param dataItem
*/
onDeleteOKPressed(dataItem: ConfigurationRow): void;
/**
* Triggered by the input tag
* @param event
*/
onUploadFileSelected(event: any): void;
/**
* Upload the blob file to server
* @param blob
*/
uploadConfiguration(blob: any): void;
onAddNewPropertyConfirmed(dialogResult: NewParamDialogResult): void;
}