/// /// /// /// /// /// /// /// /// declare module "copyright" { export class ModulePluginHeadCenterCopyright { static toString(): string; } } declare module "sk/frame/plugin/header/center/GlobalSetModal" { import { UiContainer } from 'foundation/editor/ui/core/UiContainer'; import { UserSettingSetResponse } from 'sk/data/logic/business/message/UserSettingSetResponse'; import { UiFrameService } from 'sk/editor/frame/ui/UiFrameService'; import { TenantService } from 'sk/frame/logic/storage/business/tenant/TenantService'; import { LibraryService as ModuleLibraryService } from 'sk/frame/logic/storage/module/library/LibraryService'; import { LibraryService as ResourceLibraryService } from 'sk/frame/logic/storage/resource/library/LibraryService'; export class GlobalSetModalForm extends UiContainer { protected _uiFrameService: UiFrameService; protected _tenantService: TenantService; protected _moduleLibraryService: ModuleLibraryService; protected _resourceLibraryService: ResourceLibraryService; private afterClose; private afterSubmit; state: { mVisible: boolean; tenantId: string; moduleLibraryId: string; resourceLibraryId: string; tenantList: any[]; moduleLibraryList: any[]; resourceLibraryList: any[]; }; UNSAFE_componentWillMount(): void; componentStatusChange(state: any, props: any): void; loadData: () => Promise; private loadFormInitialValue; handleOK: (e: any) => void; sendGlobalSetting: (callback?: any) => Promise; handleCancel: () => void; buildOption: (key: string, data: Array) => any[]; makeOption: () => any[]; render(): JSX.Element; } } declare module "sk/frame/plugin/header/center/GlobalSetPanel" { import { UiContainer } from 'foundation/editor/ui/core/UiContainer'; import { UiFrameService } from 'sk/editor/frame/ui/UiFrameService'; import { TenantService } from 'sk/frame/logic/storage/business/tenant/TenantService'; import { LibraryService as ModuleLibraryService } from 'sk/frame/logic/storage/module/library/LibraryService'; import { LibraryService as ResourceLibraryService } from 'sk/frame/logic/storage/resource/library/LibraryService'; export class GlobalSetFormForm extends UiContainer { protected _uiFrameService: UiFrameService; protected _tenantService: TenantService; protected _moduleLibraryService: ModuleLibraryService; protected _resourceLibraryService: ResourceLibraryService; private afterClose; private afterSubmit; state: { tenantId: string; moduleLibraryId: string; resourceLibraryId: string; tenantList: any[]; moduleLibraryList: any[]; resourceLibraryList: any[]; }; UNSAFE_componentWillMount(): void; componentStatusChange(state: any, props: any): void; loadData: () => Promise; private loadFormInitialValue; handleOK: (values: any) => Promise; sendGlobalSettingAsync: (callback?: any) => Promise; handleCancel: () => void; buildOption: (key: string, data: Array) => any[]; makeOption: () => any[]; render(): JSX.Element; } export class GlobalSetPanel extends UiContainer { settingForm: any; render(): JSX.Element; } } declare module "sk/frame/plugin/header/center/GlobalSettingPanel" { import { ResultObject } from 'cross/runtime/lang/ResultObject'; import { EnvironmentService } from 'cross/runtime/module/environment/EnvironmentService'; import { StorageDeviceService } from 'cross/core/device/storage/StorageDeviceService'; import { JsonService } from 'cross/core/module/json/JsonService'; import { LoginLogicService } from 'cross/data/module/logic/login/LoginLogicService'; import { LogicSessionService } from 'cross/data/module/logic/session/LogicSessionService'; import { PermissionService } from 'foundation/data/common/permission/PermissionService'; import { UiContainer } from 'foundation/editor/ui/core/UiContainer'; import { UiFrameService } from 'sk/editor/frame/ui/UiFrameService'; import { LibraryStorageService as ModuleLibraryStorageService } from 'sk/editor/product/module/library/storage/LibraryStorageService'; export const MODULE_LIBRARY_ID_STORAGE_CODE = "module.library.id"; export const RESOURCE_LIBRARY_ID_STORAGE_CODE = "resource.library.id"; export const USER_ID_STORAGE_CODE = "user.id"; export class GlobalSettingForm extends UiContainer { private afterClose; private afterSubmit; private formRef; protected _uiFrameService: UiFrameService; protected _jsonService: JsonService; protected _environmentService: EnvironmentService; protected _loginService: LoginLogicService; protected _sessionService: LogicSessionService; protected _permissionService: PermissionService; protected _storageDeviceService: StorageDeviceService; protected _moduleLibraryStorageService: ModuleLibraryStorageService; protected _resourceLibraryStorageService: ModuleLibraryStorageService; state: { tenantId: string; moduleLibraryId: string; resourceLibraryId: string; tenantList: any[]; moduleLibraryList: any[]; resourceLibraryList: any[]; enableAccess: boolean; isErrorData: boolean; }; componentDidMountAsync(): Promise; componentStatusChange(state: any, props: any): void; validateAccessPermissionAsync(): Promise; private loadFormInitialValue; loadDataAsync(): Promise; protected saveToSessionService: () => void; handleOkAsync: (values: any) => Promise; setLibraryIdAsync: (moduleLibraryId: string, resourceLibraryId: string) => Promise; handleExit: () => void; handleCancel: () => void; buildOption: (key: string, data: Array) => any[]; makeOption: () => any[]; render(): JSX.Element; } export class GlobalSettingPanel extends UiContainer { settingForm: any; componentDidMount(): void; componentWillUnmount(): void; onLoad: () => void; handle: (e: any) => void; render(): JSX.Element; } } declare module "sk/frame/plugin/header/center/set/DataCenterGlobalSetService" { import { EnvironmentService } from 'cross/runtime/module/environment/EnvironmentService'; import { LogicSessionService } from 'cross/data/module/logic/session/LogicSessionService'; import { LogicEvent } from 'foundation/core/module/logic/LogicEvent'; import { LogicService } from 'foundation/data/common/logic/LogicService'; import { GlobalSetLogicService } from 'foundation/data/common/service/GlobalSetLogicService'; export class DataCenterGlobalSetService extends LogicService { protected _enableWarehouse: boolean; protected _sessionService: LogicSessionService; protected _environmentService: EnvironmentService; protected _globalSetLogicService: GlobalSetLogicService; constructor(); initializeConfig(jconfig: any): void; isEnableWarehouse(): boolean; setSuccess(event: LogicEvent): void; } } declare module "sk/frame/plugin/header/center/HeaderPanel" { import { Types } from 'cross/runtime/lang/collection/Types'; import { ListenerContext } from 'cross/runtime/lang/ListenerContext'; import { EnvironmentService } from 'cross/runtime/module/environment/EnvironmentService'; import { NodeFieldEvent } from 'cross/runtime/framework/node/NodeFieldEvent'; import { StorageDeviceService } from 'cross/core/device/storage/StorageDeviceService'; import { JsonService } from 'cross/core/module/json/JsonService'; import { LoginLogicService } from 'cross/data/module/logic/login/LoginLogicService'; import { LogicSessionService } from 'cross/data/module/logic/session/LogicSessionService'; import { LogicEvent } from 'foundation/core/module/logic/LogicEvent'; import { GlobalSetLogicService } from 'foundation/data/common/service/GlobalSetLogicService'; import { UiControl } from 'foundation/editor/ui/core/UiControl'; import { UiFrameService } from 'sk/editor/frame/ui/UiFrameService'; import { LibraryStorageService as ModuleLibraryStorageService } from 'sk/editor/product/module/library/storage/LibraryStorageService'; import { LibraryStorageUnit as ModuleLibraryStorageUnit } from 'sk/editor/product/module/library/storage/LibraryStorageUnit'; import { LibraryStorageUnit as ResourceLibraryStorageUnit } from 'sk/editor/product/resource/library/storage/LibraryStorageUnit'; import { DataCenterGlobalSetService } from "sk/frame/plugin/header/center/set/DataCenterGlobalSetService"; export type HeaderPanelState = { isLogin: boolean; title: string; userName: string; version: string; globalSetVisible: boolean; resourceLibrary: string; moduleLibrary: string; enableWarhouse: boolean; moduleLibraryList: Types; resourceLibraryList: Types; }; export class HeaderPanel extends UiControl { state: HeaderPanelState; protected _environmentService: EnvironmentService; protected _sessionService: LogicSessionService; protected _loginService: LoginLogicService; protected _jsonService: JsonService; protected _frameService: UiFrameService; protected _globalSetLogicService: GlobalSetLogicService; protected _globalLogicService: DataCenterGlobalSetService; protected _storageDeviceService: StorageDeviceService; protected _moduleLibraryStorageService: ModuleLibraryStorageService; protected _resourceLibraryStorageService: ModuleLibraryStorageService; constructor(props: any, context?: any); componentDidMount(): void; componentWillUnmount(): void; loadLibraryAsync: () => Promise; onSessionDirty(sender: ListenerContext, event: NodeFieldEvent): void; onLoginChanged(sender: ListenerContext, event: LogicEvent): void; logout(): void; protected handlePopupShow: (event: any) => void; protected handlePopupHide: (event: any) => void; handleLogout: (event: any) => void; handleGlobalSetOpen: () => void; handleGlobalSetClose: () => void; handleAfterSubmit: () => any; makeModuleLibraryList(): any; onModuleLibraryClick: (moduleLibraryContent: any) => void; switchModuleLibrary(moduleLibraryId: string): void; render(): JSX.Element; } } declare module "sk/frame/plugin/header/center/login/LoginForm" { import { FormInstance } from 'antd/lib/form'; import { UiSafeContainer, UiSafeContainerProps, UiSafeContainerState } from 'foundation/editor/ui/core/UiSafeContainer'; import { UiReference } from 'foundation/editor/ui/UiUtil'; export interface LoginFormProps extends UiSafeContainerProps { onSubmit: any; } export interface LoginFormState extends UiSafeContainerState { } export class LoginForm extends UiSafeContainer { protected _formRef: UiReference; constructor(props: any, context?: any); setFields(fields: any): void; onFinish: (values: any) => void; render(): JSX.Element; } } declare module "sk/frame/plugin/header/center/login/LoginPanel" { import { ResultObject } from 'cross/runtime/lang/ResultObject'; import { EnvironmentService } from 'cross/runtime/module/environment/EnvironmentService'; import { LoginLogicService } from 'cross/data/module/logic/login/LoginLogicService'; import { FrameLoginService } from 'cross/frame/module/login/FrameLoginService'; import { UiContainer } from 'foundation/editor/ui/core/UiContainer'; import { UiControlService } from 'foundation/editor/ui/UiControlService'; import { UiReference } from 'foundation/editor/ui/UiUtil'; import { LoginForm } from "sk/frame/plugin/header/center/login/LoginForm"; export class LoginPanel extends UiContainer { loginFormRef: UiReference; protected _loginService: LoginLogicService; protected _frameLoginService: FrameLoginService; protected _controlService: UiControlService; protected _environmentService: EnvironmentService; constructor(props: any, context?: any); protected validateCode(code: string): ResultObject; onFormSubmitAsync: (values: any) => Promise; render(): JSX.Element; } } declare module "sk/frame/plugin/header/center/HeaderPlugin" { import { ListenerContext } from 'cross/runtime/lang/ListenerContext'; import { PluginBase } from 'cross/runtime/framework/plugin/PluginBase'; import { PluginContext } from 'cross/runtime/framework/plugin/PluginContext'; import { PluginResult } from 'cross/runtime/framework/plugin/PluginResult'; import { StorageDeviceService } from 'cross/core/device/storage/StorageDeviceService'; import { LoginEvent } from 'cross/data/module/logic/login/LoginEvent'; import { LoginLogicService } from 'cross/data/module/logic/login/LoginLogicService'; import { FrameLoginService } from 'cross/frame/module/login/FrameLoginService'; import { UiDesktopHeaderSpace } from 'foundation/editor/ui/desktop/UiDesktopHeaderSpace'; import { UiDesktopService } from 'foundation/editor/ui/desktop/UiDesktopService'; import { UiControlService } from 'foundation/editor/ui/UiControlService'; import { UiFrameService } from 'sk/editor/frame/ui/UiFrameService'; import { LoginPanel } from "sk/frame/plugin/header/center/login/LoginPanel"; import { DataCenterGlobalSetService } from "sk/frame/plugin/header/center/set/DataCenterGlobalSetService"; import { HeaderPanel } from "sk/frame/plugin/header/center/HeaderPanel"; export class HeaderPlugin extends PluginBase { protected _headerSpace: UiDesktopHeaderSpace; protected _headerPanel: HeaderPanel; protected _loginPanel: LoginPanel; protected _desktopService: UiDesktopService; protected _controlService: UiControlService; protected _frameService: UiFrameService; protected _loginService: LoginLogicService; protected _frameLoginService: FrameLoginService; protected _globalSetLogicService: DataCenterGlobalSetService; protected _storageDeviceService: StorageDeviceService; protected onLoginPanelRef: (value: any) => void; protected onHeaderPanelRef: (value: any) => void; loadUserSettingAsync(): Promise; showLogin(): void; showHeaderPanel: () => Promise; onLogin(sender: ListenerContext, event: LoginEvent): void; onLoginSuccessAsync(sender: ListenerContext, event: LoginEvent): Promise; onLogoutAsync(sender: ListenerContext, event: LoginEvent): Promise; onSessionStatusFailure(): void; activeAsync(context: PluginContext): Promise; } } declare module "sk/frame/plugin/header/center/IndexSpace" { export class IndexSpace { static namespaces(): string[]; } }