UNPKG

@omnia/foundation

Version:

Provide omnia foundation typings and tooling work on client side for omnia extension.

36 lines (35 loc) 1.36 kB
import { ViewContainerRef } from "@angular/core"; import { DialogService, BaseDialogComponent, BaseDialogModel } from "../services/DialogService"; import { DialogRef } from 'angular2-modal'; import { PublishingService } from '../services'; import { Shared } from '../../../models'; export interface ISiteTreePickerParam { selectedSite: any; } export interface ISiteTreeNode extends Shared.ITreePickerNode { loaded?: boolean; } export declare class SitePicker { private dialogService; private viewContainerRef; selectedSite: any; onSiteSelected: Function; constructor(dialogService: DialogService, viewContainerRef: ViewContainerRef); showPickerDialog: () => void; } export declare class SiteTreePicker extends BaseDialogComponent<BaseDialogModel<ISiteTreePickerParam>> { dialog: DialogRef<BaseDialogModel<ISiteTreePickerParam>>; publishingService: PublishingService; selectedSite: any; isLoading: boolean; private selectedNode; private siteNodes; constructor(dialog: DialogRef<BaseDialogModel<ISiteTreePickerParam>>, publishingService: PublishingService); private loadSiteNode; selectNode: (sender: ISiteTreeNode) => void; private resetSelectedNode; private mapToTreePickerNode; private expandNode; close: () => void; ok: () => void; }