Fixed: angular2 beta

This commit is contained in:
buchslava
2016-02-02 18:42:21 +02:00
parent 468fe762b1
commit 16350eb5fb
47 changed files with 41696 additions and 26 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

26452
build/angular2.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,18 @@
import { ElementRef } from 'angular2/core';
import { FileUploader } from './file-uploader';
export declare class FileDrop {
private element;
uploader: FileUploader;
private fileOver;
constructor(element: ElementRef);
getOptions(): any;
getFilters(): void;
onDrop(event: any): void;
onDragOver(event: any): void;
onDragLeave(event: any): any;
private _getTransfer(event);
private _preventAndStop(event);
private _haveFiles(types);
_addOverClass(item: any): any;
_removeOverClass(item: any): any;
}

View File

@@ -0,0 +1,40 @@
import { FileLikeObject } from './file-like-object';
import { FileUploader } from './file-uploader';
export declare class FileItem {
private uploader;
private some;
private options;
file: FileLikeObject;
_file: File;
alias: string;
url: string;
method: string;
headers: any;
withCredentials: boolean;
formData: any;
isReady: boolean;
isUploading: boolean;
isUploaded: boolean;
isSuccess: boolean;
isCancel: boolean;
isError: boolean;
progress: number;
index: number;
constructor(uploader: FileUploader, some: any, options: any);
upload(): void;
cancel(): void;
remove(): void;
onBeforeUpload(): void;
onProgress(progress: number): void;
onSuccess(response: any, status: any, headers: any): void;
onError(response: any, status: any, headers: any): void;
onCancel(response: any, status: any, headers: any): void;
onComplete(response: any, status: any, headers: any): void;
private _onBeforeUpload();
private _onProgress(progress);
private _onSuccess(response, status, headers);
private _onError(response, status, headers);
private _onCancel(response, status, headers);
private _onComplete(response, status, headers);
private _prepareToUploading();
}

View File

@@ -0,0 +1,13 @@
export declare class FileLikeObject {
lastModifiedDate: any;
size: any;
type: string;
name: string;
constructor(fileOrInput: any);
_createFromFakePath(path: string): void;
_createFromObject(object: {
size: number;
type: string;
name: string;
}): void;
}

View File

@@ -0,0 +1,12 @@
import { ElementRef } from 'angular2/core';
import { FileUploader } from './file-uploader';
export declare class FileSelect {
private element;
uploader: FileUploader;
constructor(element: ElementRef);
getOptions(): any;
getFilters(): void;
isEmptyAfterSelection(): boolean;
onChange(): void;
}
export declare const fileUpload: Array<any>;

View File

@@ -0,0 +1,62 @@
import { FileItem } from './file-item';
export declare class FileUploader {
options: any;
url: string;
authToken: string;
isUploading: boolean;
queue: Array<any>;
progress: number;
autoUpload: boolean;
isHTML5: boolean;
removeAfterUpload: boolean;
queueLimit: number;
_nextIndex: number;
filters: Array<any>;
private _failFilterIndex;
constructor(options: any);
addToQueue(files: any[], options: any, filters: any): void;
removeFromQueue(value: any): void;
clearQueue(): void;
uploadItem(value: FileItem): void;
cancelItem(value: any): void;
uploadAll(): void;
cancelAll(): void;
isFile(value: any): boolean;
isFileLikeObject(value: any): boolean;
getIndexOfItem(value: any): number;
getNotUploadedItems(): any[];
getReadyItems(): any[];
destroy(): void;
onAfterAddingAll(fileItems: any): void;
onAfterAddingFile(fileItem: any): void;
onWhenAddingFileFailed(item: any, filter: any, options: any): void;
onBeforeUploadItem(fileItem: any): void;
onProgressItem(fileItem: any, progress: any): void;
onProgressAll(progress: any): void;
onSuccessItem(item: any, response: any, status: any, headers: any): void;
onErrorItem(item: any, response: any, status: any, headers: any): void;
onCancelItem(item: any, response: any, status: any, headers: any): void;
onCompleteItem(item: any, response: any, status: any, headers: any): void;
onCompleteAll(): void;
private _getTotalProgress(value?);
private _getFilters(filters);
private _render();
private _folderFilter(item);
private _queueLimitFilter();
private _isValidFile(file, filters, options);
private _isSuccessCode(status);
private _transformResponse(response, headers);
private _parseHeaders(headers);
private _headersGetter(parsedHeaders);
_xhrTransport(item: any): void;
private _iframeTransport(item);
private _onWhenAddingFileFailed(item, filter, options);
private _onAfterAddingFile(item);
private _onAfterAddingAll(items);
private _onBeforeUploadItem(item);
private _onProgressItem(item, progress);
private _onSuccessItem(item, response, status, headers);
_onErrorItem(item: any, response: any, status: any, headers: any): void;
private _onCancelItem(item, response, status, headers);
_onCompleteItem(item: any, response: any, status: any, headers: any): void;
}

View File

@@ -0,0 +1,5 @@
/// <reference path="../../tsd.d.ts" />
export declare class FileUploadSection {
private currentHeading;
private select(e);
}

View File

@@ -0,0 +1,8 @@
/// <reference path="../../../tsd.d.ts" />
export declare class SimpleDemo {
private uploader;
private hasBaseDropZoneOver;
private hasAnotherDropZoneOver;
private fileOverBase(e);
private fileOverAnother(e);
}

3
build/demo/index.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
/// <reference path="../tsd.d.ts" />
export declare class Demo {
}

4
build/ng2-file-upload.d.ts vendored Normal file
View File

@@ -0,0 +1,4 @@
export * from './components/file-upload/file-select';
export * from './components/file-upload/file-drop';
export * from './components/file-upload/file-uploader';
export declare const FILE_UPLOAD_DIRECTIVES: [any];

View File

@@ -0,0 +1,38 @@
import { OnInit, OnDestroy, ViewContainerRef, TemplateRef } from 'angular2/core';
export declare class Accordion {
private templateUrl;
private closeOthers;
private addPanelGroupClass;
constructor();
private groups;
closeOtherGroups(openGroup: AccordionGroup): void;
addGroup(group: AccordionGroup): void;
removeGroup(group: AccordionGroup): void;
}
export declare class AccordionTransclude implements OnInit {
private viewRef;
private accordionTransclude;
constructor(viewRef: ViewContainerRef);
ngOnInit(): void;
}
export declare class AccordionGroup implements OnInit, OnDestroy {
private accordion;
private templateUrl;
private heading;
private panelClass;
isDisabled: boolean;
isOpen: boolean;
private _isOpen;
headingTemplate: TemplateRef;
constructor(accordion: Accordion);
ngOnInit(): void;
ngOnDestroy(): void;
toggleOpen(event: MouseEvent): void;
}
export declare class AccordionHeading {
private group;
private templateRef;
constructor(group: AccordionGroup, templateRef: TemplateRef);
}
export declare const ACCORDION_DIRECTIVES: Array<any>;
export declare const accordion: Array<any>;

View File

@@ -0,0 +1,14 @@
import { OnInit, ElementRef, EventEmitter } from 'angular2/core';
export declare class Alert implements OnInit {
el: ElementRef;
private type;
private dismissible;
private dismissOnTimeout;
close: EventEmitter<Alert>;
templateUrl: string;
private closed;
private classes;
constructor(el: ElementRef);
ngOnInit(): void;
onClose(): void;
}

View File

@@ -0,0 +1,20 @@
import { OnInit } from 'angular2/core';
import { ControlValueAccessor, NgModel } from 'angular2/common';
export declare class ButtonCheckbox implements ControlValueAccessor, OnInit {
cd: NgModel;
private btnCheckboxTrue;
private btnCheckboxFalse;
private state;
private onClick();
private value;
constructor(cd: NgModel);
ngOnInit(): void;
private trueValue;
private falseValue;
private toggle(state);
writeValue(value: any): void;
protected onChange: (_: any) => void;
protected onTouched: () => void;
registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void;
}

View File

@@ -0,0 +1,18 @@
import { OnInit, ElementRef } from 'angular2/core';
import { ControlValueAccessor, NgModel } from 'angular2/common';
export declare class ButtonRadio implements ControlValueAccessor, OnInit {
cd: NgModel;
el: ElementRef;
private btnRadio;
private uncheckable;
private isActive;
private onClick();
constructor(cd: NgModel, el: ElementRef);
ngOnInit(): void;
protected value: any;
writeValue(value: any): void;
onChange: (_: any) => void;
onTouched: () => void;
registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void;
}

View File

@@ -0,0 +1,43 @@
import { OnInit, OnDestroy } from 'angular2/core';
export declare enum Direction {
UNKNOWN = 0,
NEXT = 1,
PREV = 2,
}
export declare class Carousel implements OnDestroy {
private noWrap;
private noPause;
private noTransition;
interval: number;
private slides;
private currentInterval;
private isPlaying;
private destroyed;
private currentSlide;
private _interval;
ngOnDestroy(): void;
select(nextSlide: Slide, direction?: Direction): void;
private goNext(slide, direction);
private getSlideByIndex(index);
private getCurrentIndex();
private next();
private prev();
private restartTimer();
private resetTimer();
play(): void;
pause(): void;
addSlide(slide: Slide): void;
removeSlide(slide: Slide): void;
}
export declare class Slide implements OnInit, OnDestroy {
private carousel;
index: number;
direction: Direction;
active: boolean;
private addClass;
constructor(carousel: Carousel);
ngOnInit(): void;
ngOnDestroy(): void;
}
export declare const CAROUSEL_DIRECTIVES: Array<any>;
export declare const carousel: Array<any>;

View File

@@ -0,0 +1,12 @@
export declare class Collapse {
private height;
private isExpanded;
private isCollapsed;
private isCollapse;
private isCollapsing;
private collapse;
constructor();
toggle(): void;
hide(): void;
show(): void;
}

View File

@@ -0,0 +1,10 @@
import { ViewContainerRef } from 'angular2/core';
export interface IAttribute {
[name: string]: any;
}
export declare class NgTransclude {
viewRef: ViewContainerRef;
private _ngTransclude;
private ngTransclude;
constructor(viewRef: ViewContainerRef);
}

View File

@@ -0,0 +1,9 @@
import { ElementRef, OnInit } from 'angular2/core';
import { Dropdown } from './dropdown';
export declare class DropdownMenu implements OnInit {
dropdown: Dropdown;
el: ElementRef;
templateUrl: string;
constructor(dropdown: Dropdown, el: ElementRef);
ngOnInit(): void;
}

View File

@@ -0,0 +1,15 @@
export declare const ALWAYS: string;
export declare const DISABLED: string;
export declare const OUTSIDECLICK: string;
import { Dropdown } from './dropdown';
export declare class DropdownService {
private openScope;
private dropdownScope;
private closeDropdownBind;
private keybindFilterBind;
open(dropdownScope: Dropdown): void;
close(dropdownScope: Dropdown): void;
private closeDropdown(event);
private keybindFilter(event);
}
export declare let dropdownService: DropdownService;

View File

@@ -0,0 +1,12 @@
import { ElementRef, OnInit } from 'angular2/core';
import { Dropdown } from './dropdown';
export declare class DropdownToggle implements OnInit {
dropdown: Dropdown;
el: ElementRef;
private disabled;
private addClass;
constructor(dropdown: Dropdown, el: ElementRef);
ngOnInit(): void;
isOpen: boolean;
toggleDropdown(event: MouseEvent): boolean;
}

View File

@@ -0,0 +1,24 @@
import { OnInit, OnDestroy, ElementRef } from 'angular2/core';
import { DropdownMenuInterface, DropdownToggleInterface } from './dropdown.interfaces';
export declare class Dropdown implements OnInit, OnDestroy {
el: ElementRef;
isOpen: boolean;
autoClose: string;
keyboardNav: boolean;
private dropdownAppendToBody;
private onToggle;
private addClass;
private _isOpen;
selectedOption: number;
menuEl: ElementRef;
toggleEl: ElementRef;
private dropdownMenuTemplateUrl;
constructor(el: ElementRef);
ngOnInit(): void;
ngOnDestroy(): void;
dropDownMenu: DropdownMenuInterface;
dropDownToggle: DropdownToggleInterface;
toggle(open?: boolean): boolean;
focusDropdownEntry(keyCode: number): void;
focusToggleElement(): void;
}

View File

@@ -0,0 +1,2 @@
export declare const DROPDOWN_DIRECTIVES: Array<any>;
export declare const dropdown: Array<any>;

View File

@@ -0,0 +1,8 @@
export declare enum Ng2BootstrapTheme {
BS3 = 1,
BS4 = 2,
}
export declare class Ng2BootstrapConfig {
private static _theme;
static theme: Ng2BootstrapTheme;
}

View File

@@ -0,0 +1,71 @@
import { OnInit, ElementRef, Renderer } from 'angular2/core';
import { ControlValueAccessor, NgModel } from 'angular2/common';
import { IAttribute } from '../common';
export interface IPaginationConfig extends IAttribute {
maxSize: number;
itemsPerPage: number;
boundaryLinks: boolean;
directionLinks: boolean;
firstText: string;
previousText: string;
nextText: string;
lastText: string;
rotate: boolean;
}
export interface IPageChangedEvent {
itemsPerPage: number;
page: number;
}
export declare class Pagination implements ControlValueAccessor, OnInit, IPaginationConfig, IAttribute {
cd: NgModel;
renderer: Renderer;
elementRef: ElementRef;
maxSize: number;
boundaryLinks: boolean;
directionLinks: boolean;
firstText: string;
previousText: string;
nextText: string;
lastText: string;
rotate: boolean;
private disabled;
private numPages;
private pageChanged;
itemsPerPage: number;
private totalItems;
config: any;
private classMap;
private _itemsPerPage;
private _totalItems;
private _totalPages;
private inited;
private totalPages;
page: number;
private _page;
private pages;
constructor(cd: NgModel, renderer: Renderer, elementRef: ElementRef);
ngOnInit(): void;
writeValue(value: number): void;
private selectPage(page, event?);
private getText(key);
private noPrevious();
private noNext();
private makePage(number, text, isActive);
private getPages(currentPage, totalPages);
private calculateTotalPages();
onChange: (_: any) => void;
onTouched: () => void;
registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void;
}
export declare class Pager extends Pagination implements OnInit {
config: {
itemsPerPage: number;
previousText: string;
nextText: string;
align: boolean;
};
constructor(cd: NgModel, renderer: Renderer, elementRef: ElementRef);
}
export declare const PAGINATION_DIRECTIVES: Array<any>;
export declare const pagination: Array<any>;

View File

@@ -0,0 +1,24 @@
export declare class PositionService {
private window;
private document;
private getStyle(nativeEl, cssProp);
private isStaticPositioned(nativeEl);
private parentOffsetEl(nativeEl);
position(nativeEl: any): {
width: number;
height: number;
top: number;
left: number;
};
offset(nativeEl: any): {
width: number;
height: number;
top: number;
left: number;
};
positionElements(hostEl: any, targetEl: any, positionStr: any, appendToBody: any): {
top: number;
left: number;
};
}
export declare const positionService: PositionService;

View File

@@ -0,0 +1,32 @@
import { OnInit, OnDestroy } from 'angular2/core';
export declare class Progress implements OnInit {
animate: boolean;
max: number;
private addClass;
bars: Array<any>;
private _max;
constructor();
ngOnInit(): void;
addBar(bar: Bar): void;
removeBar(bar: Bar): void;
}
export declare class Bar implements OnInit, OnDestroy {
progress: Progress;
type: string;
value: number;
percent: number;
transition: string;
private _value;
constructor(progress: Progress);
ngOnInit(): void;
ngOnDestroy(): void;
recalculatePercentage(): void;
}
export declare class Progressbar {
private animate;
private max;
private type;
private value;
}
export declare const PROGRESSBAR_DIRECTIVES: Array<any>;
export declare const progressbar: Array<any>;

View File

@@ -0,0 +1,28 @@
import { OnInit } from 'angular2/core';
import { ControlValueAccessor, NgModel } from 'angular2/common';
export declare class Rating implements ControlValueAccessor, OnInit {
cd: NgModel;
private max;
private stateOn;
private stateOff;
private readonly;
private titles;
private ratingStates;
private onHover;
private onLeave;
private range;
private value;
private preValue;
private onKeydown(event);
constructor(cd: NgModel);
ngOnInit(): void;
writeValue(value: number): void;
private buildTemplateObjects(ratingStates, max);
private rate(value);
private enter(value);
private reset();
onChange: (_: any) => void;
onTouched: () => void;
registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void;
}

View File

@@ -0,0 +1,37 @@
import { OnInit, OnDestroy, DoCheck, TemplateRef, EventEmitter } from 'angular2/core';
export declare class Tabset implements OnInit {
private vertical;
private justified;
private type;
private setClassMap();
tabs: Array<Tab>;
private _vertical;
private _justified;
private _type;
private classMap;
constructor();
ngOnInit(): void;
addTab(tab: Tab): void;
removeTab(tab: Tab): void;
}
export declare class Tab implements OnInit, OnDestroy, DoCheck {
tabset: Tabset;
heading: string;
disabled: boolean;
active: boolean;
select: EventEmitter<Tab>;
deselect: EventEmitter<Tab>;
private addClass;
private _active;
headingRef: TemplateRef;
constructor(tabset: Tabset);
ngDoCheck(): boolean;
ngOnInit(): void;
ngOnDestroy(): void;
}
export declare class TabHeading {
templateRef: TemplateRef;
constructor(templateRef: TemplateRef, tab: Tab);
}
export declare const TAB_DIRECTIVES: Array<any>;
export declare const tabs: Array<any>;

View File

@@ -0,0 +1,66 @@
import { OnInit } from 'angular2/core';
import { NgModel, ControlValueAccessor } from 'angular2/common';
export interface ITimepickerConfig {
hourStep: number;
minuteStep: number;
showMeridian: boolean;
meridians?: any[];
readonlyInput: boolean;
mousewheel: boolean;
arrowkeys: boolean;
showSpinners: boolean;
min?: number;
max?: number;
}
export declare const timepickerConfig: ITimepickerConfig;
export declare class Timepicker implements ControlValueAccessor, OnInit {
cd: NgModel;
private hourStep;
private minuteStep;
private readonlyInput;
private mousewheel;
private arrowkeys;
private showSpinners;
private min;
private max;
private meridians;
private showMeridian;
private _selected;
private _showMeridian;
private meridian;
private hours;
private minutes;
private selected;
private invalidHours;
private invalidMinutes;
constructor(cd: NgModel);
ngOnInit(): void;
writeValue(v: any): void;
private refresh(type?);
private updateTemplate(keyboardChange?);
private getHoursFromTemplate();
private getMinutesFromTemplate();
private pad(value);
private setupMousewheelEvents();
private setupArrowkeyEvents();
private setupInputEvents();
private updateHours();
private hoursOnBlur(event);
private updateMinutes();
private minutesOnBlur(event);
private noIncrementHours();
private noDecrementHours();
private noIncrementMinutes();
private noDecrementMinutes();
private addMinutesToSelected(minutes);
noToggleMeridian(): boolean;
private incrementHours();
private decrementHours();
private incrementMinutes();
private decrementMinutes();
private toggleMeridian();
onChange: (_: any) => void;
onTouched: () => void;
registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void;
}

View File

@@ -0,0 +1,18 @@
import { OnInit, ElementRef, DynamicComponentLoader } from 'angular2/core';
export declare class Tooltip implements OnInit {
element: ElementRef;
loader: DynamicComponentLoader;
private content;
private placement;
private isOpen;
private enable;
private appendToBody;
private visible;
private tooltip;
constructor(element: ElementRef, loader: DynamicComponentLoader);
ngOnInit(): void;
show(): void;
hide(): void;
}
export declare const TOOLTIP_DIRECTIVES: Array<any>;
export declare const tooltip: Array<any>;

View File

@@ -0,0 +1,826 @@
export declare const latinMap: {
'Á': string;
'Ă': string;
'Ắ': string;
'Ặ': string;
'Ằ': string;
'Ẳ': string;
'Ẵ': string;
'Ǎ': string;
'Â': string;
'Ấ': string;
'Ậ': string;
'Ầ': string;
'Ẩ': string;
'Ẫ': string;
'Ä': string;
'Ǟ': string;
'Ȧ': string;
'Ǡ': string;
'Ạ': string;
'Ȁ': string;
'À': string;
'Ả': string;
'Ȃ': string;
'Ā': string;
'Ą': string;
'Å': string;
'Ǻ': string;
'Ḁ': string;
'Ⱥ': string;
'Ã': string;
'Ꜳ': string;
'Æ': string;
'Ǽ': string;
'Ǣ': string;
'Ꜵ': string;
'Ꜷ': string;
'Ꜹ': string;
'Ꜻ': string;
'Ꜽ': string;
'Ḃ': string;
'Ḅ': string;
'Ɓ': string;
'Ḇ': string;
'Ƀ': string;
'Ƃ': string;
'Ć': string;
'Č': string;
'Ç': string;
'Ḉ': string;
'Ĉ': string;
'Ċ': string;
'Ƈ': string;
'Ȼ': string;
'Ď': string;
'Ḑ': string;
'Ḓ': string;
'Ḋ': string;
'Ḍ': string;
'Ɗ': string;
'Ḏ': string;
'Dz': string;
'Dž': string;
'Đ': string;
'Ƌ': string;
'DZ': string;
'DŽ': string;
'É': string;
'Ĕ': string;
'Ě': string;
'Ȩ': string;
'Ḝ': string;
'Ê': string;
'Ế': string;
'Ệ': string;
'Ề': string;
'Ể': string;
'Ễ': string;
'Ḙ': string;
'Ë': string;
'Ė': string;
'Ẹ': string;
'Ȅ': string;
'È': string;
'Ẻ': string;
'Ȇ': string;
'Ē': string;
'Ḗ': string;
'Ḕ': string;
'Ę': string;
'Ɇ': string;
'Ẽ': string;
'Ḛ': string;
'': string;
'Ḟ': string;
'Ƒ': string;
'Ǵ': string;
'Ğ': string;
'Ǧ': string;
'Ģ': string;
'Ĝ': string;
'Ġ': string;
'Ɠ': string;
'Ḡ': string;
'Ǥ': string;
'Ḫ': string;
'Ȟ': string;
'Ḩ': string;
'Ĥ': string;
'Ⱨ': string;
'Ḧ': string;
'Ḣ': string;
'Ḥ': string;
'Ħ': string;
'Í': string;
'Ĭ': string;
'Ǐ': string;
'Î': string;
'Ï': string;
'Ḯ': string;
'İ': string;
'Ị': string;
'Ȉ': string;
'Ì': string;
'Ỉ': string;
'Ȋ': string;
'Ī': string;
'Į': string;
'Ɨ': string;
'Ĩ': string;
'Ḭ': string;
'Ꝺ': string;
'Ꝼ': string;
'Ᵹ': string;
'Ꞃ': string;
'Ꞅ': string;
'Ꞇ': string;
'Ꝭ': string;
'Ĵ': string;
'Ɉ': string;
'Ḱ': string;
'Ǩ': string;
'Ķ': string;
'Ⱪ': string;
'Ꝃ': string;
'Ḳ': string;
'Ƙ': string;
'Ḵ': string;
'Ꝁ': string;
'Ꝅ': string;
'Ĺ': string;
'Ƚ': string;
'Ľ': string;
'Ļ': string;
'Ḽ': string;
'Ḷ': string;
'Ḹ': string;
'Ⱡ': string;
'Ꝉ': string;
'Ḻ': string;
'Ŀ': string;
'Ɫ': string;
'Lj': string;
'Ł': string;
'LJ': string;
'Ḿ': string;
'Ṁ': string;
'Ṃ': string;
'Ɱ': string;
'Ń': string;
'Ň': string;
'Ņ': string;
'Ṋ': string;
'Ṅ': string;
'Ṇ': string;
'Ǹ': string;
'Ɲ': string;
'Ṉ': string;
'Ƞ': string;
'Nj': string;
'Ñ': string;
'NJ': string;
'Ó': string;
'Ŏ': string;
'Ǒ': string;
'Ô': string;
'Ố': string;
'Ộ': string;
'Ồ': string;
'Ổ': string;
'Ỗ': string;
'Ö': string;
'Ȫ': string;
'Ȯ': string;
'Ȱ': string;
'Ọ': string;
'Ő': string;
'Ȍ': string;
'Ò': string;
'Ỏ': string;
'Ơ': string;
'Ớ': string;
'Ợ': string;
'Ờ': string;
'Ở': string;
'Ỡ': string;
'Ȏ': string;
'Ꝋ': string;
'Ꝍ': string;
'Ō': string;
'Ṓ': string;
'Ṑ': string;
'Ɵ': string;
'Ǫ': string;
'Ǭ': string;
'Ø': string;
'Ǿ': string;
'Õ': string;
'Ṍ': string;
'Ṏ': string;
'Ȭ': string;
'Ƣ': string;
'Ꝏ': string;
'Ɛ': string;
'Ɔ': string;
'Ȣ': string;
'Ṕ': string;
'Ṗ': string;
'Ꝓ': string;
'Ƥ': string;
'Ꝕ': string;
'Ᵽ': string;
'Ꝑ': string;
'Ꝙ': string;
'Ꝗ': string;
'Ŕ': string;
'Ř': string;
'Ŗ': string;
'Ṙ': string;
'Ṛ': string;
'Ṝ': string;
'Ȑ': string;
'Ȓ': string;
'Ṟ': string;
'Ɍ': string;
'Ɽ': string;
'Ꜿ': string;
'Ǝ': string;
'Ś': string;
'Ṥ': string;
'Š': string;
'Ṧ': string;
'Ş': string;
'Ŝ': string;
'Ș': string;
'Ṡ': string;
'Ṣ': string;
'Ṩ': string;
'Ť': string;
'Ţ': string;
'Ṱ': string;
'Ț': string;
'Ⱦ': string;
'Ṫ': string;
'Ṭ': string;
'Ƭ': string;
'Ṯ': string;
'Ʈ': string;
'Ŧ': string;
'Ɐ': string;
'Ꞁ': string;
'Ɯ': string;
'Ʌ': string;
'Ꜩ': string;
'Ú': string;
'Ŭ': string;
'Ǔ': string;
'Û': string;
'Ṷ': string;
'Ü': string;
'Ǘ': string;
'Ǚ': string;
'Ǜ': string;
'Ǖ': string;
'Ṳ': string;
'Ụ': string;
'Ű': string;
'Ȕ': string;
'Ù': string;
'Ủ': string;
'Ư': string;
'Ứ': string;
'Ự': string;
'Ừ': string;
'Ử': string;
'Ữ': string;
'Ȗ': string;
'Ū': string;
'Ṻ': string;
'Ų': string;
'Ů': string;
'Ũ': string;
'Ṹ': string;
'Ṵ': string;
'Ꝟ': string;
'Ṿ': string;
'Ʋ': string;
'Ṽ': string;
'Ꝡ': string;
'Ẃ': string;
'Ŵ': string;
'Ẅ': string;
'Ẇ': string;
'Ẉ': string;
'Ẁ': string;
'Ⱳ': string;
'Ẍ': string;
'Ẋ': string;
'Ý': string;
'Ŷ': string;
'Ÿ': string;
'Ẏ': string;
'Ỵ': string;
'Ỳ': string;
'Ƴ': string;
'Ỷ': string;
'Ỿ': string;
'Ȳ': string;
'Ɏ': string;
'Ỹ': string;
'Ź': string;
'Ž': string;
'Ẑ': string;
'Ⱬ': string;
'Ż': string;
'Ẓ': string;
'Ȥ': string;
'Ẕ': string;
'Ƶ': string;
'IJ': string;
'Œ': string;
'ᴀ': string;
'ᴁ': string;
'ʙ': string;
'ᴃ': string;
'': string;
'ᴅ': string;
'ᴇ': string;
'ꜰ': string;
'ɢ': string;
'ʛ': string;
'ʜ': string;
'ɪ': string;
'ʁ': string;
'ᴊ': string;
'ᴋ': string;
'ʟ': string;
'ᴌ': string;
'ᴍ': string;
'ɴ': string;
'': string;
'ɶ': string;
'ᴐ': string;
'ᴕ': string;
'ᴘ': string;
'ʀ': string;
'ᴎ': string;
'ᴙ': string;
'': string;
'ᴛ': string;
'ⱻ': string;
'ᴚ': string;
'': string;
'': string;
'': string;
'ʏ': string;
'': string;
'á': string;
'ă': string;
'ắ': string;
'ặ': string;
'ằ': string;
'ẳ': string;
'ẵ': string;
'ǎ': string;
'â': string;
'ấ': string;
'ậ': string;
'ầ': string;
'ẩ': string;
'ẫ': string;
'ä': string;
'ǟ': string;
'ȧ': string;
'ǡ': string;
'ạ': string;
'ȁ': string;
'à': string;
'ả': string;
'ȃ': string;
'ā': string;
'ą': string;
'ᶏ': string;
'ẚ': string;
'å': string;
'ǻ': string;
'ḁ': string;
'ⱥ': string;
'ã': string;
'ꜳ': string;
'æ': string;
'ǽ': string;
'ǣ': string;
'ꜵ': string;
'ꜷ': string;
'ꜹ': string;
'ꜻ': string;
'ꜽ': string;
'ḃ': string;
'ḅ': string;
'ɓ': string;
'ḇ': string;
'ᵬ': string;
'ᶀ': string;
'ƀ': string;
'ƃ': string;
'ɵ': string;
'ć': string;
'č': string;
'ç': string;
'ḉ': string;
'ĉ': string;
'ɕ': string;
'ċ': string;
'ƈ': string;
'ȼ': string;
'ď': string;
'ḑ': string;
'ḓ': string;
'ȡ': string;
'ḋ': string;
'ḍ': string;
'ɗ': string;
'ᶑ': string;
'ḏ': string;
'ᵭ': string;
'ᶁ': string;
'đ': string;
'ɖ': string;
'ƌ': string;
'ı': string;
'ȷ': string;
'ɟ': string;
'ʄ': string;
'dz': string;
'dž': string;
'é': string;
'ĕ': string;
'ě': string;
'ȩ': string;
'ḝ': string;
'ê': string;
'ế': string;
'ệ': string;
'ề': string;
'ể': string;
'ễ': string;
'ḙ': string;
'ë': string;
'ė': string;
'ẹ': string;
'ȅ': string;
'è': string;
'ẻ': string;
'ȇ': string;
'ē': string;
'ḗ': string;
'ḕ': string;
'ⱸ': string;
'ę': string;
'ᶒ': string;
'ɇ': string;
'ẽ': string;
'ḛ': string;
'ꝫ': string;
'ḟ': string;
'ƒ': string;
'ᵮ': string;
'ᶂ': string;
'ǵ': string;
'ğ': string;
'ǧ': string;
'ģ': string;
'ĝ': string;
'ġ': string;
'ɠ': string;
'ḡ': string;
'': string;
'ǥ': string;
'ḫ': string;
'ȟ': string;
'ḩ': string;
'ĥ': string;
'ⱨ': string;
'ḧ': string;
'ḣ': string;
'ḥ': string;
'ɦ': string;
'ẖ': string;
'ħ': string;
'ƕ': string;
'í': string;
'ĭ': string;
'ǐ': string;
'î': string;
'ï': string;
'ḯ': string;
'ị': string;
'ȉ': string;
'ì': string;
'ỉ': string;
'ȋ': string;
'ī': string;
'į': string;
'ᶖ': string;
'ɨ': string;
'ĩ': string;
'ḭ': string;
'ꝺ': string;
'ꝼ': string;
'ᵹ': string;
'ꞃ': string;
'ꞅ': string;
'ꞇ': string;
'ꝭ': string;
'ǰ': string;
'ĵ': string;
'ʝ': string;
'ɉ': string;
'ḱ': string;
'ǩ': string;
'ķ': string;
'ⱪ': string;
'ꝃ': string;
'ḳ': string;
'ƙ': string;
'ḵ': string;
'ᶄ': string;
'ꝁ': string;
'ꝅ': string;
'ĺ': string;
'ƚ': string;
'ɬ': string;
'ľ': string;
'ļ': string;
'ḽ': string;
'ȴ': string;
'ḷ': string;
'ḹ': string;
'ⱡ': string;
'ꝉ': string;
'ḻ': string;
'ŀ': string;
'ɫ': string;
'ᶅ': string;
'ɭ': string;
'ł': string;
'lj': string;
'ſ': string;
'ẜ': string;
'ẛ': string;
'': string;
'ḿ': string;
'ṁ': string;
'ṃ': string;
'ɱ': string;
'ᵯ': string;
'ᶆ': string;
'ń': string;
'ň': string;
'ņ': string;
'ṋ': string;
'ȵ': string;
'ṅ': string;
'ṇ': string;
'ǹ': string;
'ɲ': string;
'ṉ': string;
'ƞ': string;
'ᵰ': string;
'ᶇ': string;
'ɳ': string;
'ñ': string;
'nj': string;
'ó': string;
'ŏ': string;
'ǒ': string;
'ô': string;
'ố': string;
'ộ': string;
'ồ': string;
'ổ': string;
'ỗ': string;
'ö': string;
'ȫ': string;
'ȯ': string;
'ȱ': string;
'ọ': string;
'ő': string;
'ȍ': string;
'ò': string;
'ỏ': string;
'ơ': string;
'ớ': string;
'ợ': string;
'ờ': string;
'ở': string;
'ỡ': string;
'ȏ': string;
'ꝋ': string;
'ꝍ': string;
'ⱺ': string;
'ō': string;
'ṓ': string;
'ṑ': string;
'ǫ': string;
'ǭ': string;
'ø': string;
'ǿ': string;
'õ': string;
'ṍ': string;
'ṏ': string;
'ȭ': string;
'ƣ': string;
'ꝏ': string;
'ɛ': string;
'ᶓ': string;
'ɔ': string;
'ᶗ': string;
'ȣ': string;
'ṕ': string;
'ṗ': string;
'ꝓ': string;
'ƥ': string;
'ᵱ': string;
'ᶈ': string;
'ꝕ': string;
'ᵽ': string;
'ꝑ': string;
'ꝙ': string;
'ʠ': string;
'ɋ': string;
'ꝗ': string;
'ŕ': string;
'ř': string;
'ŗ': string;
'ṙ': string;
'ṛ': string;
'ṝ': string;
'ȑ': string;
'ɾ': string;
'ᵳ': string;
'ȓ': string;
'ṟ': string;
'ɼ': string;
'ᵲ': string;
'ᶉ': string;
'ɍ': string;
'ɽ': string;
'ↄ': string;
'ꜿ': string;
'ɘ': string;
'ɿ': string;
'ś': string;
'ṥ': string;
'š': string;
'ṧ': string;
'ş': string;
'ŝ': string;
'ș': string;
'ṡ': string;
'ṣ': string;
'ṩ': string;
'ʂ': string;
'ᵴ': string;
'ᶊ': string;
'ȿ': string;
'ɡ': string;
'': string;
'ᴓ': string;
'ᴝ': string;
'ť': string;
'ţ': string;
'ṱ': string;
'ț': string;
'ȶ': string;
'ẗ': string;
'ⱦ': string;
'ṫ': string;
'ṭ': string;
'ƭ': string;
'ṯ': string;
'ᵵ': string;
'ƫ': string;
'ʈ': string;
'ŧ': string;
'ᵺ': string;
'ɐ': string;
'ᴂ': string;
'ǝ': string;
'ᵷ': string;
'ɥ': string;
'ʮ': string;
'ʯ': string;
'ᴉ': string;
'ʞ': string;
'ꞁ': string;
'ɯ': string;
'ɰ': string;
'ᴔ': string;
'ɹ': string;
'ɻ': string;
'ɺ': string;
'ⱹ': string;
'ʇ': string;
'ʌ': string;
'ʍ': string;
'ʎ': string;
'ꜩ': string;
'ú': string;
'ŭ': string;
'ǔ': string;
'û': string;
'ṷ': string;
'ü': string;
'ǘ': string;
'ǚ': string;
'ǜ': string;
'ǖ': string;
'ṳ': string;
'ụ': string;
'ű': string;
'ȕ': string;
'ù': string;
'ủ': string;
'ư': string;
'ứ': string;
'ự': string;
'ừ': string;
'ử': string;
'ữ': string;
'ȗ': string;
'ū': string;
'ṻ': string;
'ų': string;
'ᶙ': string;
'ů': string;
'ũ': string;
'ṹ': string;
'ṵ': string;
'ᵫ': string;
'': string;
'ⱴ': string;
'ꝟ': string;
'ṿ': string;
'ʋ': string;
'': string;
'ⱱ': string;
'ṽ': string;
'ꝡ': string;
'ẃ': string;
'ŵ': string;
'ẅ': string;
'ẇ': string;
'ẉ': string;
'ẁ': string;
'ⱳ': string;
'ẘ': string;
'ẍ': string;
'ẋ': string;
'ᶍ': string;
'ý': string;
'ŷ': string;
'ÿ': string;
'ẏ': string;
'ỵ': string;
'ỳ': string;
'ƴ': string;
'ỷ': string;
'ỿ': string;
'ȳ': string;
'ẙ': string;
'ɏ': string;
'ỹ': string;
'ź': string;
'ž': string;
'ẑ': string;
'ʑ': string;
'ⱬ': string;
'ż': string;
'ẓ': string;
'ȥ': string;
'ẕ': string;
'ᵶ': string;
'ᶎ': string;
'ʐ': string;
'ƶ': string;
'ɀ': string;
'ff': string;
'ffi': string;
'ffl': string;
'fi': string;
'fl': string;
'ij': string;
'œ': string;
'st': string;
'ₐ': string;
'ₑ': string;
'ᵢ': string;
'ⱼ': string;
'ₒ': string;
'ᵣ': string;
'ᵤ': string;
'ᵥ': string;
'ₓ': string;
};

View File

@@ -0,0 +1,6 @@
export declare class TypeaheadUtils {
static latinMap: any;
static latinize(str: string): string;
static escapeRegexp(queryToEscape: string): string;
static tokenize(str: string, wordRegexDelimiters?: string, phraseRegexDelimiters?: string): Array<string>;
}

View File

@@ -0,0 +1,76 @@
import { EventEmitter, OnInit, ElementRef, Renderer, DynamicComponentLoader } from 'angular2/core';
import { NgModel } from 'angular2/common';
export declare class TypeaheadOptions {
placement: string;
animation: boolean;
constructor(options: TypeaheadOptions);
}
export declare class TypeaheadContainer {
element: ElementRef;
parent: Typeahead;
query: any;
private _matches;
private _field;
private _active;
private top;
private left;
private display;
private placement;
constructor(element: ElementRef, options: TypeaheadOptions);
matches: Array<string>;
field: string;
position(hostEl: ElementRef): void;
selectActiveMatch(): void;
prevActiveMatch(): void;
nextActiveMatch(): void;
private selectActive(value);
private isActive(value);
private selectMatch(value, e?);
private hightlight(item, query);
}
export declare class Typeahead implements OnInit {
private cd;
private element;
private renderer;
private loader;
typeaheadLoading: EventEmitter<boolean>;
typeaheadNoResults: EventEmitter<boolean>;
typeaheadOnSelect: EventEmitter<{
item: any;
}>;
container: TypeaheadContainer;
minLength: number;
waitMs: number;
optionsLimit: number;
latinize: boolean;
singleWords: boolean;
private appendToBody;
private editable;
private focusFirst;
private inputFormatter;
private selectOnExact;
private templateUrl;
private popupTemplateUrl;
private selectOnBlur;
private focusOnSelect;
private field;
private async;
private wordDelimiters;
private phraseDelimiters;
private debouncer;
private source;
private _matches;
private placement;
private popup;
constructor(cd: NgModel, element: ElementRef, renderer: Renderer, loader: DynamicComponentLoader);
matches: any[];
private debounce(func, wait);
private processMatches();
private testMatch(match, test);
private finalizeAsyncCall();
ngOnInit(): void;
onChange(e: KeyboardEvent): void;
changeModel(value: any): void;
show(matches: Array<any>): void;
hide(): void;
}

21
build/node_modules/ng2-bootstrap/ng2-bootstrap.d.ts generated vendored Normal file
View File

@@ -0,0 +1,21 @@
export * from './components/accordion/accordion';
export * from './components/alert/alert';
export * from './components/buttons/button-radio';
export * from './components/buttons/button-checkbox';
export * from './components/dropdown/index';
export * from './components/dropdown/dropdown';
export * from './components/dropdown/dropdown-menu';
export * from './components/dropdown/dropdown-service';
export * from './components/dropdown/dropdown-toggle';
export * from './components/carousel/carousel';
export * from './components/collapse/collapse';
export * from './components/pagination/pagination';
export * from './components/progressbar/progressbar';
export * from './components/rating/rating';
export * from './components/tabs/tabs';
export * from './components/timepicker/timepicker';
export * from './components/tooltip/tooltip';
export * from './components/typeahead/typeahead';
export * from './components/position';
export * from './components/common';
export * from './components/ng2-bootstrap-config';

18
components/file-upload/file-drop.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
import { ElementRef } from 'angular2/core';
import { FileUploader } from './file-uploader';
export declare class FileDrop {
private element;
uploader: FileUploader;
private fileOver;
constructor(element: ElementRef);
getOptions(): any;
getFilters(): void;
onDrop(event: any): void;
onDragOver(event: any): void;
onDragLeave(event: any): any;
private _getTransfer(event);
private _preventAndStop(event);
private _haveFiles(types);
_addOverClass(item: any): any;
_removeOverClass(item: any): any;
}

40
components/file-upload/file-item.d.ts vendored Normal file
View File

@@ -0,0 +1,40 @@
import { FileLikeObject } from './file-like-object';
import { FileUploader } from './file-uploader';
export declare class FileItem {
private uploader;
private some;
private options;
file: FileLikeObject;
_file: File;
alias: string;
url: string;
method: string;
headers: any;
withCredentials: boolean;
formData: any;
isReady: boolean;
isUploading: boolean;
isUploaded: boolean;
isSuccess: boolean;
isCancel: boolean;
isError: boolean;
progress: number;
index: number;
constructor(uploader: FileUploader, some: any, options: any);
upload(): void;
cancel(): void;
remove(): void;
onBeforeUpload(): void;
onProgress(progress: number): void;
onSuccess(response: any, status: any, headers: any): void;
onError(response: any, status: any, headers: any): void;
onCancel(response: any, status: any, headers: any): void;
onComplete(response: any, status: any, headers: any): void;
private _onBeforeUpload();
private _onProgress(progress);
private _onSuccess(response, status, headers);
private _onError(response, status, headers);
private _onCancel(response, status, headers);
private _onComplete(response, status, headers);
private _prepareToUploading();
}

View File

@@ -0,0 +1,13 @@
export declare class FileLikeObject {
lastModifiedDate: any;
size: any;
type: string;
name: string;
constructor(fileOrInput: any);
_createFromFakePath(path: string): void;
_createFromObject(object: {
size: number;
type: string;
name: string;
}): void;
}

12
components/file-upload/file-select.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
import { ElementRef } from 'angular2/core';
import { FileUploader } from './file-uploader';
export declare class FileSelect {
private element;
uploader: FileUploader;
constructor(element: ElementRef);
getOptions(): any;
getFilters(): void;
isEmptyAfterSelection(): boolean;
onChange(): void;
}
export declare const fileUpload: Array<any>;

View File

@@ -0,0 +1,62 @@
import { FileItem } from './file-item';
export declare class FileUploader {
options: any;
url: string;
authToken: string;
isUploading: boolean;
queue: Array<any>;
progress: number;
autoUpload: boolean;
isHTML5: boolean;
removeAfterUpload: boolean;
queueLimit: number;
_nextIndex: number;
filters: Array<any>;
private _failFilterIndex;
constructor(options: any);
addToQueue(files: any[], options: any, filters: any): void;
removeFromQueue(value: any): void;
clearQueue(): void;
uploadItem(value: FileItem): void;
cancelItem(value: any): void;
uploadAll(): void;
cancelAll(): void;
isFile(value: any): boolean;
isFileLikeObject(value: any): boolean;
getIndexOfItem(value: any): number;
getNotUploadedItems(): any[];
getReadyItems(): any[];
destroy(): void;
onAfterAddingAll(fileItems: any): void;
onAfterAddingFile(fileItem: any): void;
onWhenAddingFileFailed(item: any, filter: any, options: any): void;
onBeforeUploadItem(fileItem: any): void;
onProgressItem(fileItem: any, progress: any): void;
onProgressAll(progress: any): void;
onSuccessItem(item: any, response: any, status: any, headers: any): void;
onErrorItem(item: any, response: any, status: any, headers: any): void;
onCancelItem(item: any, response: any, status: any, headers: any): void;
onCompleteItem(item: any, response: any, status: any, headers: any): void;
onCompleteAll(): void;
private _getTotalProgress(value?);
private _getFilters(filters);
private _render();
private _folderFilter(item);
private _queueLimitFilter();
private _isValidFile(file, filters, options);
private _isSuccessCode(status);
private _transformResponse(response, headers);
private _parseHeaders(headers);
private _headersGetter(parsedHeaders);
_xhrTransport(item: any): void;
private _iframeTransport(item);
private _onWhenAddingFileFailed(item, filter, options);
private _onAfterAddingFile(item);
private _onAfterAddingAll(items);
private _onBeforeUploadItem(item);
private _onProgressItem(item, progress);
private _onSuccessItem(item, response, status, headers);
_onErrorItem(item: any, response: any, status: any, headers: any): void;
private _onCancelItem(item, response, status, headers);
_onCompleteItem(item: any, response: any, status: any, headers: any): void;
}

4
ng2-file-upload.d.ts vendored Normal file
View File

@@ -0,0 +1,4 @@
export * from './components/file-upload/file-select';
export * from './components/file-upload/file-drop';
export * from './components/file-upload/file-uploader';
export declare const FILE_UPLOAD_DIRECTIVES: [any];

10
ng2-file-upload.js Normal file
View File

@@ -0,0 +1,10 @@
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require('./components/file-upload/file-select'));
__export(require('./components/file-upload/file-drop'));
__export(require('./components/file-upload/file-uploader'));
var file_select_2 = require('./components/file-upload/file-select');
var file_drop_2 = require('./components/file-upload/file-drop');
exports.FILE_UPLOAD_DIRECTIVES = [file_select_2.FileSelect, file_drop_2.FileDrop];
//# sourceMappingURL=ng2-file-upload.js.map

1
ng2-file-upload.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"ng2-file-upload.js","sourceRoot":"","sources":["ng2-file-upload.ts"],"names":[],"mappings":";;;AAAA,iBAAe,sCAAsC,CAAC,EAAA;AACtD,iBAAe,oCAAoC,CAAC,EAAA;AACpD,iBAAe,wCAAwC,CAAC,EAAA;AAExD,4BAAyB,sCAAsC,CAAC,CAAA;AAChE,0BAAuB,oCAAoC,CAAC,CAAA;AAE/C,8BAAsB,GAAS,CAAC,wBAAU,EAAE,oBAAQ,CAAC,CAAC"}