diff --git a/packages/fineui/package.json b/packages/fineui/package.json index ee8350421..9623a14a2 100644 --- a/packages/fineui/package.json +++ b/packages/fineui/package.json @@ -1,6 +1,6 @@ { "name": "@fui/core", - "version": "3.0.20230606104509", + "version": "3.0.20230606133653", "description": "fineui", "main": "dist/fineui.min.js", "module": "dist/lib/index.js", diff --git a/packages/fineui/typescript/core/controller/controller.popovers.ts b/packages/fineui/typescript/core/controller/controller.popovers.ts index d13372b26..96a088dba 100644 --- a/packages/fineui/typescript/core/controller/controller.popovers.ts +++ b/packages/fineui/typescript/core/controller/controller.popovers.ts @@ -1,11 +1,13 @@ import { Controller } from "./controller"; export declare class PopoverController extends Controller { - create(name: string, from?: any, op?: any, context?: any): T; + create(name: string, options: any, context?: any): PopoverController; open(name: string): PopoverController; close(name: string): PopoverController; + remove(name: string): PopoverController; + removeAll(): void; } diff --git a/packages/fineui/typescript/core/func/alias.ts b/packages/fineui/typescript/core/func/alias.ts new file mode 100644 index 000000000..08035c6ff --- /dev/null +++ b/packages/fineui/typescript/core/func/alias.ts @@ -0,0 +1,3 @@ +export declare function jsonDecode(text: string): any; + +export declare function jsonEncode(json: any): any; diff --git a/packages/fineui/typescript/core/func/index.ts b/packages/fineui/typescript/core/func/index.ts index a485a1c48..549301263 100644 --- a/packages/fineui/typescript/core/func/index.ts +++ b/packages/fineui/typescript/core/func/index.ts @@ -3,3 +3,4 @@ export * from "./string"; export * from "./number"; export * as Func from "./function"; export * from "./date"; +export * from "./alias"; diff --git a/packages/fineui/typescript/core/inject.ts b/packages/fineui/typescript/core/inject.ts index 405c474fe..cfdcdf794 100644 --- a/packages/fineui/typescript/core/inject.ts +++ b/packages/fineui/typescript/core/inject.ts @@ -41,3 +41,5 @@ export declare namespace Services { export declare function createWidget(item: any, options?: any, context?: Widget, lazy?: boolean): Widget export declare function point(type: string, action: string, pointFn: Function, after: any): void + +export declare function config(type: string, configFn: Function, opt?: any): Function diff --git a/packages/fineui/typescript/index.ts b/packages/fineui/typescript/index.ts index 1d7df93ad..0e5ea635b 100644 --- a/packages/fineui/typescript/index.ts +++ b/packages/fineui/typescript/index.ts @@ -189,13 +189,13 @@ export { Tree, Node } from "./core/utils/tree"; export { TextNode } from "./base/single/button/node/textnode"; export { TextValueCheckComboPopup } from "./case/combo/textvaluecheckcombo/popup.textvaluecheck"; export { ImageButton } from "./base/single/button/buttons/button.image"; -export { History, Router, RouterWidget, RouterView } from "./router/router"; +export { History, history, Router, RouterWidget, RouterView } from "./router/router"; export { DateTimeCombo } from "./widget/datetime/datetime.combo"; export { FloatHorizontalLayout } from "./core/wrapper/layout/adapt/float.horizontal"; export { AdaptiveLayout } from "./core/wrapper/layout/layout.adaptive"; export { HexColorChooserPopup } from "./case/colorchooser/colorchooser.popup.hex"; export { BlankIconTextItem } from "./base/single/button/listitem/blankicontextitem"; -export { Broadcasts, Layers, StyleLoaders, Bubbles } from "./base/base"; +export { Broadcasts, Layers, StyleLoaders, Bubbles, Popovers } from "./base/base"; export { BroadcastController } from "./core/controller/controller.broadcast"; export { Pager } from "./base/pager/pager"; export { TimeInterval } from "./widget/timeinterval/timeinterval"; diff --git a/packages/fineui/typescript/router/router.ts b/packages/fineui/typescript/router/router.ts index 53311c6b1..5db2af9ee 100644 --- a/packages/fineui/typescript/router/router.ts +++ b/packages/fineui/typescript/router/router.ts @@ -238,6 +238,8 @@ export declare class History { navigate(fragment: string, options?: { [key: string]: any } | boolean): void; } +export const history = new History(); + export declare class RouterWidget { static xtype: string; }