diff --git a/packages/fineui/typescript/base/base.ts b/packages/fineui/typescript/base/base.ts index 0a89024d6..3c4802135 100644 --- a/packages/fineui/typescript/base/base.ts +++ b/packages/fineui/typescript/base/base.ts @@ -4,6 +4,7 @@ import { StyleLoaderManager } from "../core/loader/loader.style"; import { BubblesController } from "../core/controller/controller.bubbles"; import { PopoverController } from "../core/controller/controller.popovers"; import { MaskersController } from "../core/controller/controller.masker"; +import { ResizeController } from "../core/controller/controller.resizer"; export const Layers = new LayerController(); @@ -16,3 +17,5 @@ export const Broadcasts = new BroadcastController(); export const StyleLoaders = new StyleLoaderManager(); export const Popovers = new PopoverController(); + +export const Resizers = new ResizeController(); diff --git a/packages/fineui/typescript/case/trigger/trigger.editor.ts b/packages/fineui/typescript/case/trigger/trigger.editor.ts new file mode 100644 index 000000000..d0bfa0e50 --- /dev/null +++ b/packages/fineui/typescript/case/trigger/trigger.editor.ts @@ -0,0 +1,7 @@ +import { Trigger } from "../../base/single/trigger/trigger"; + +export declare class EditorTrigger extends Trigger { + static xtype: string; + + setText(text: string): void; +} \ No newline at end of file diff --git a/packages/fineui/typescript/core/controller/controller.resizer.ts b/packages/fineui/typescript/core/controller/controller.resizer.ts new file mode 100644 index 000000000..eff904fb3 --- /dev/null +++ b/packages/fineui/typescript/core/controller/controller.resizer.ts @@ -0,0 +1,14 @@ +import { Layout } from "../wrapper/layout"; +import { Controller } from "./controller"; + +type ResizeHandler = (event: DeviceOrientationEvent | UIEvent) => any; + +export declare class ResizeController extends Controller { + add(name: string, resizer: Layout | ResizeHandler): () => this; + + get(name: string): Layout | ResizeHandler; + + has(name: string): boolean; + + remove(name: string): this; +} diff --git a/packages/fineui/typescript/core/wrapper/layout/layout.inline.ts b/packages/fineui/typescript/core/wrapper/layout/layout.inline.ts new file mode 100644 index 000000000..36e818244 --- /dev/null +++ b/packages/fineui/typescript/core/wrapper/layout/layout.inline.ts @@ -0,0 +1,5 @@ +import { Layout } from "../layout"; + +export declare class InlineLayout extends Layout { + static xtype: string; +} diff --git a/packages/fineui/typescript/index.ts b/packages/fineui/typescript/index.ts index 747b5257e..d0f4f9b30 100644 --- a/packages/fineui/typescript/index.ts +++ b/packages/fineui/typescript/index.ts @@ -66,6 +66,7 @@ export { HorizontalFillLayout } from "./core/wrapper/layout/fill/fill.horizontal export { VerticalFillLayout } from "./core/wrapper/layout/fill/fill.vertical"; export { VerticalLayout } from "./core/wrapper/layout/layout.vertical"; export { DefaultLayout } from "./core/wrapper/layout/layout.default"; +export { InlineLayout } from "./core/wrapper/layout/layout.inline"; export { DownListCombo } from "./widget/downlist/combo.downlist"; export { DownListPopup } from "./widget/downlist/popup.downlist"; export { EL } from "./base/el"; @@ -154,6 +155,7 @@ export { TextValueDownListCombo } from "./widget/textvaluedownlistcombo/combo.te export { Switch } from "./case/button/switch"; export { HorizontalLayout } from "./core/wrapper/layout/layout.horizontal"; export { ShelterEditor } from "./case/editor/editor.shelter"; +export { EditorTrigger } from "./case/trigger/trigger.editor"; export { TextTrigger } from "./case/trigger/trigger.text"; export { SelectTextTrigger } from "./case/trigger/trigger.text.select"; export { DateInterval } from "./widget/timeinterval/dateinterval"; @@ -196,7 +198,7 @@ export { FloatHorizontalLayout } from "./core/wrapper/layout/adapt/float.horizon 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, Popovers } from "./base/base"; +export { Broadcasts, Layers, StyleLoaders, Bubbles, Popovers, Resizers } from "./base/base"; export { BroadcastController } from "./core/controller/controller.broadcast"; export { Pager } from "./base/pager/pager"; export { TimeInterval } from "./widget/timeinterval/timeinterval";