-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd8e555
commit 27f50b1
Showing
12 changed files
with
63 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import AnimationTime from "./animation-time"; | ||
export default class Toast extends AnimationTime { | ||
show: (time: number) => any; | ||
readonly _message: import("tabris").widgets.TextView; | ||
readonly _modal: import("tabris").widgets.Composite<import("tabris").Widget<any>>; | ||
constructor(message: string, duration: number); | ||
static makeText(msg: string, duration?: number): Toast; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
import { type AnyWidget, NavigationView, Action, Properties as PropertiesTabris } from "tabris"; | ||
import { type IMenuItemOption, type MenuItemOf } from "./menu"; | ||
import { type EventObject, type WidgetCollection, NavigationView, Widget, NativeObject } from "tabris"; | ||
import { MenuItem } from "./menu"; | ||
type TypeWidget = any[] | Array<any[]>; | ||
/** | ||
* @description | ||
* utilizar en JSX <CoordinatePageComponent></CoordinatePageComponent> | ||
* encapsula la logica del menu de acciones del AppBar | ||
* encapsula la lógica del menu de acciones del AppBar | ||
* cuando se añade un Page con Action o SearchAction | ||
* estas acciones desapareceran si la no es visible | ||
* estas acciones desaparecerán si la no es visible | ||
* haciendo que la nueva pagina no tenga los menus anteriores | ||
*/ | ||
export declare class CoordinatePageComponent extends NavigationView { | ||
private _onActionSelect; | ||
private _onDrawerItemSelected; | ||
private _dataMenuDrawer; | ||
private _contentDrawer; | ||
set contentDrawer(view: AnyWidget); | ||
get contentDrawer(): AnyWidget; | ||
set onActionSelect(event: (itemAction: Action) => void); | ||
get onActionSelect(): (itemAction: Action) => void; | ||
set menuDrawer(menu: () => IMenuItemOption[]); | ||
get menuDrawer(): IMenuItemOption[]; | ||
set onDrawerItemSelected(event: (item: MenuItemOf) => void); | ||
get onDrawerItemSelected(): (item: MenuItemOf) => void; | ||
private _render; | ||
constructor(props: PropertiesTabris<CoordinatePageComponent>); | ||
onActionSelected?: any; | ||
onDrawerItemSelected?: any; | ||
static readonly events: string[]; | ||
set contentDrawer(view: Widget); | ||
get contentDrawer(): Widget; | ||
set menuDrawer(menu: WidgetCollection<MenuItem>); | ||
get menuDrawer(): WidgetCollection<MenuItem>; | ||
constructor(props: any); | ||
private readonly _renderWidgetInDrawer; | ||
on(type: string, listener: (event: EventObject<NativeObject>) => any, context?: object): this; | ||
on(listeners: { | ||
[event: string]: (event: EventObject<NativeObject>) => void; | ||
}): this; | ||
protected _addChild(child: Widget): void; | ||
append(...widgets: TypeWidget): this; | ||
} | ||
/** | ||
* @description | ||
* encapsula en un proxy cuando se ejecute como funcion o instancia | ||
*/ | ||
export declare const CoordinatePage: import("../utils/proxy").Callback<CoordinatePageComponent>; | ||
export declare const CoordinatePage: import("tabris").Constructor<CoordinatePageComponent>; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export function customEvent(construct: any, defEvent: any): void; | ||
export namespace customEvent { | ||
function addListener(ctx: any, name: any, handler: any): void; | ||
function listener(ctx: any, ctx2: any): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
import type { CallbackInstance } from "./proxy"; | ||
import type { Composite } from "tabris"; | ||
export declare function createInstance<ClassType extends Composite>(props: any, $Class: CallbackInstance<ClassType>): ClassType; | ||
import type { Composite, Constructor } from "tabris"; | ||
export declare function createInstance<ClassType extends Composite>(props: any, $Class: Constructor<ClassType>): ClassType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
import { PreferenceParams } from "../preference/AbstractItemPreference"; | ||
import { CoordinatePageComponent } from "../navigation"; | ||
import { IEntry, ListPreferenceComponent, PreferenceScreenComponent } from "../preference"; | ||
import type { AnyWidget, CheckBox, Composite, JSXAttributes, PropertyChangedEvent, RadioButton, RadioButtonSelectEvent, Switch } from "tabris"; | ||
type CallbackAppend = (widgets: any[]) => any; | ||
type OptionalAtrributes<T> = { | ||
[K in keyof T]?: T[K]; | ||
}; | ||
type Attributes<View> = View extends PreferenceScreenComponent | CoordinatePageComponent ? JSXAttributes<View> & { | ||
children?: AnyWidget[]; | ||
} : OptionalAtrributes<PreferenceParams> & { | ||
onSelect?: (event: View extends RadioButton ? RadioButtonSelectEvent : PropertyChangedEvent<RadioButton | Switch | CheckBox, boolean>) => any; | ||
} & (View extends ListPreferenceComponent ? { | ||
entries: IEntry[]; | ||
} : {}); | ||
export type CallbackInstance<View extends AnyWidget> = new (props: Attributes<View>) => View; | ||
export type Callable<View extends AnyWidget> = (props?: Attributes<View>) => View; | ||
export type Callback<View extends AnyWidget> = CallbackInstance<View> | Callable<View>; | ||
export declare function createProxies<T extends Composite>(funReceivedProxy: Callback<T>, funAppend?: CallbackAppend): Callback<T>; | ||
export declare function factory<T = any>(fac: T): void; | ||
import { Constructor } from "tabris"; | ||
type Callback<T> = Constructor<T> | (() => T); | ||
type Handler<T> = (new () => T) & (() => T); | ||
export declare function createProxies<T>(component: Constructor<T>): Constructor<T>; | ||
export declare function factory<T>(fac: Callback<T>): Handler<T>; | ||
export {}; |