@nbxx/nb-input
Version:
Angular - nbinput
113 lines (112 loc) • 2.62 kB
TypeScript
import { SafeStyle } from "@angular/platform-browser";
import { NbStyle } from "./nb-style.directive";
export interface NbMassiveItem {
id?: any;
label?: string;
title?: string;
name?: string;
text: string;
value: any;
checked?: boolean;
icon?: string;
css?: string | string[];
styles?: NbStyle;
hideon?: string;
}
export declare class NbinputConfig {
uploadAPI?: string;
downloadAPI?: string;
renameAPI?: string;
token?: string;
format?: string;
valueMode?: string;
}
export declare class NbFile extends File {
completed: boolean;
success: boolean;
progressStyle: SafeStyle;
progress: number;
errMsg: string;
url: string;
id: number;
ConvertToAttachment(): SystemAttachment;
}
export declare class SystemAttachment {
id: number;
completed?: boolean;
success?: boolean;
progress?: number;
progressStyle?: SafeStyle;
url: string;
status?: string;
name?: string;
type?: string;
size?: number;
constructor(f?: File);
}
export declare class NbInputItem {
id?: number;
value: any;
text: string;
css?: string;
icon?: string;
type?: NbFieldType;
placeholder?: string;
tooltip?: string;
readonly?: boolean;
options?: NbItemOption;
disabled?: boolean;
hidden?: boolean;
}
export declare class NbItemOption {
text: string;
value: string;
}
export declare enum NbFieldType {
Index = "index",
Label = "label",
Array = "array",
Calc = "calc",
Assist = "assist",
Rating = "rating",
Link = "link",
Button = "button",
Text = "text",
Box = "box",
Area = "area",
Currency = "currency",
CurrencyFen = "currencyfen",
Number = "number",
Html = "html",
Progress = "progress",
Percentage = "percent",
PercentageFen = "percentfen",
Signature = "signature",
File = "file",
Image = "image",
Upload = "upload",
Images = "images",
Time = "time",
Datetime = "datetime",
Date = "date",
Month = "month",
Option = "option",
Massive = "massive",
Multiple = "multiple",
Radio = "radio",
Checkbox = "checkbox",
Switch = "switch"
}
export declare enum NbRatingShape {
Star = "star",
Bell = "bell",
Square = "square",
Circle = "circle",
Comment = "comment",
Envelope = "envelope",
Flag = "flag",
Folder = "folder",
Heart = "heart",
Hourglass = "hourglass",
Map = "map"
}