mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
116
nativescript-core/ui/dialogs/index.d.ts
vendored
116
nativescript-core/ui/dialogs/index.d.ts
vendored
@@ -1,70 +1,63 @@
|
||||
import {
|
||||
ConfirmOptions,
|
||||
PromptOptions,
|
||||
AlertOptions,
|
||||
PromptResult,
|
||||
LoginOptions,
|
||||
LoginResult,
|
||||
ActionOptions,
|
||||
} from "./dialogs-common";
|
||||
import { ConfirmOptions, PromptOptions, AlertOptions, PromptResult, LoginOptions, LoginResult, ActionOptions } from './dialogs-common';
|
||||
export * from './dialogs-common';
|
||||
/**
|
||||
* Defines the input type for prompt dialog.
|
||||
*/
|
||||
export module inputType {
|
||||
/**
|
||||
* Plain text input type.
|
||||
*/
|
||||
export const text: string;
|
||||
/**
|
||||
* Plain text input type.
|
||||
*/
|
||||
export const text: string;
|
||||
|
||||
/**
|
||||
* Password input type.
|
||||
*/
|
||||
export const password: string;
|
||||
/**
|
||||
* Password input type.
|
||||
*/
|
||||
export const password: string;
|
||||
|
||||
/**
|
||||
* Email input type.
|
||||
*/
|
||||
export const email: string;
|
||||
/**
|
||||
* Email input type.
|
||||
*/
|
||||
export const email: string;
|
||||
|
||||
/**
|
||||
* Number input type.
|
||||
*/
|
||||
export const number: string;
|
||||
/**
|
||||
* Number input type.
|
||||
*/
|
||||
export const number: string;
|
||||
|
||||
/**
|
||||
* Decimal input type.
|
||||
*/
|
||||
export const decimal: string;
|
||||
/**
|
||||
* Decimal input type.
|
||||
*/
|
||||
export const decimal: string;
|
||||
|
||||
/**
|
||||
* Phone input type.
|
||||
*/
|
||||
export const phone: string;
|
||||
/**
|
||||
* Phone input type.
|
||||
*/
|
||||
export const phone: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the capitalization type for prompt dialog.
|
||||
*/
|
||||
export module capitalizationType {
|
||||
/**
|
||||
* No automatic capitalization.
|
||||
*/
|
||||
export const none: string;
|
||||
/**
|
||||
* No automatic capitalization.
|
||||
*/
|
||||
export const none: string;
|
||||
|
||||
/**
|
||||
* Capitalizes every character.
|
||||
*/
|
||||
export const all: string;
|
||||
/**
|
||||
* Capitalizes every character.
|
||||
*/
|
||||
export const all: string;
|
||||
|
||||
/**
|
||||
* Capitalize the first word of each sentence.
|
||||
*/
|
||||
export const sentences: string;
|
||||
/**
|
||||
* Capitalize the first word of each sentence.
|
||||
*/
|
||||
export const sentences: string;
|
||||
|
||||
/**
|
||||
* Capitalize the first letter of every word.
|
||||
*/
|
||||
export const words: string;
|
||||
/**
|
||||
* Capitalize the first letter of every word.
|
||||
*/
|
||||
export const words: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -96,10 +89,7 @@ export function confirm(options: ConfirmOptions): Promise<boolean>;
|
||||
* @param message The text to display in the dialog box.
|
||||
* @param defaultText The default text to display in the input box. Optional.
|
||||
*/
|
||||
export function prompt(
|
||||
message: string,
|
||||
defaultText?: string
|
||||
): Promise<PromptResult>;
|
||||
export function prompt(message: string, defaultText?: string): Promise<PromptResult>;
|
||||
|
||||
/**
|
||||
* The prompt() method displays a dialog box that prompts the visitor for input.
|
||||
@@ -115,13 +105,7 @@ export function prompt(options: PromptOptions): Promise<PromptResult>;
|
||||
* @param userName The default text to display in the user name input box. Optional.
|
||||
* @param password The default text to display in the password input box. Optional.
|
||||
*/
|
||||
export function login(
|
||||
message: string,
|
||||
userNameHint?: string,
|
||||
passwordHint?: string,
|
||||
userName?: string,
|
||||
password?: string
|
||||
): Promise<LoginResult>;
|
||||
export function login(message: string, userNameHint?: string, passwordHint?: string, userName?: string, password?: string): Promise<LoginResult>;
|
||||
|
||||
/**
|
||||
* The login() method displays a login dialog box that prompts the visitor for user name and password.
|
||||
@@ -129,11 +113,7 @@ export function login(
|
||||
* @param userNameHint The default text to display as a hint in the username input. Optional.
|
||||
* @param passwordHint The default text to display as a hint in the password input. Optional.
|
||||
*/
|
||||
export function login(
|
||||
message: string,
|
||||
userNameHint?: string,
|
||||
passwordHint?: string
|
||||
): Promise<LoginResult>;
|
||||
export function login(message: string, userNameHint?: string, passwordHint?: string): Promise<LoginResult>;
|
||||
|
||||
/**
|
||||
* The login() method displays a login dialog box that prompts the visitor for user name and password.
|
||||
@@ -147,11 +127,7 @@ export function login(options: LoginOptions): Promise<LoginResult>;
|
||||
* @param cancelButtonText The text to display in the cancel button.
|
||||
* @param actions List of available actions.
|
||||
*/
|
||||
export function action(
|
||||
message: string,
|
||||
cancelButtonText: string,
|
||||
actions: Array<string>
|
||||
): Promise<string>;
|
||||
export function action(message: string, cancelButtonText: string, actions: Array<string>): Promise<string>;
|
||||
|
||||
/**
|
||||
* The action() method displays a action box that prompts the visitor to choose some action.
|
||||
|
||||
Reference in New Issue
Block a user