This commit is contained in:
Dmitriy Shekhovtsov
2016-05-12 16:05:08 +03:00
parent 16350eb5fb
commit 032d12641e
70 changed files with 63289 additions and 41654 deletions

View File

@@ -1,11 +0,0 @@
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

200
.eslintrc
View File

@@ -1,200 +0,0 @@
{
"env": {
"browser": 2,
"node": 2,
"mocha": 2,
"es6": 2
},
"ecmaFeatures": {
"modules": true
},
"globals": {
"_": 2,
"$": 2,
"angular": 2,
"jQuery": 2
},
"rules": {
// Possible Errors
"comma-dangle": 2,
// no-comma-dangle - (deprecated)
"no-cond-assign": [2, "always"],
"no-console": 2,
"no-constant-condition": 2,
"no-control-regex": 2,
"no-debugger": 2,
"no-dupe-keys": 2,
"no-dupe-args": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
// no-empty-class - (deprecated)
"no-empty": 2,
"no-ex-assign": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": 2,
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": 2,
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-regex-spaces": 2,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"use-isnan": 2,
"valid-jsdoc": 2,
"valid-typeof": 2,
"no-unexpected-multiline": 2,
// Best Practices
// not sure
"accessor-pairs": [2, {"getWithoutSet": false, "setWithoutGet": true}],
"block-scoped-var": 2,
"complexity": [2, 6],
"consistent-return": 2,
"curly": 2,
"default-case": 2,
"dot-notation": 2,
// not good for chain calls, but not for properties
"dot-location": [2, "property"],
"eqeqeq": 2,
"guard-for-in": 2,
"no-alert": 2,
"no-caller": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-empty-label": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-iterator": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-param-reassign": 2,
"no-process-env": 2,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-unused-expressions": 2,
"no-void": 2,
"no-warning-comments": [1, { "terms": ["todo", "fixme"], "location": "anywhere" }],
"no-with": 2,
"radix": 2,
"vars-on-top": 0,
"wrap-iife": [2, "inside"],
"yoda": [2, "never"],
// Strict Mode
"strict": [2, "global"],
// Variables
"no-catch-shadow": 2,
"no-delete-var": 2,
"no-label-var": 2,
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-undefined": 2,
"no-unused-vars": 2,
"no-use-before-define": [2, "nofunc"],
// Node.js
"handle-callback-err": [2, "^.*(e|E)rr" ],
"no-mixed-requires": [2, true],
"no-new-require": 2,
"no-path-concat": 2,
"no-process-exit": 2,
"no-sync": 2,
// Stylistic Issues
"array-bracket-spacing": [2, "never"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": 2,
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self"],
// not sure
"eol-last": 0,
"func-names": 0,
"func-style": [2, "declaration"],
"indent": [2, 2],
"key-spacing": [2, { "beforeColon": false, "afterColon": true}],
"max-nested-callbacks": [2, 3],
"new-cap": [2, {"newIsCap": true, "capIsNew": true, "capIsNewExceptions":[
"ObjectId",
"Object",
"Function",
"Number",
"String",
"Boolean",
"Date",
"Array",
"Symbol",
"RegExp"
]}],
"new-parens": 2,
"newline-after-var": 0,
"no-array-constructor": 2,
"no-inline-comments": 2,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": [2, {"max": 1}],
"no-nested-ternary": 2,
"no-new-object": 2,
"no-spaced-func": 2,
"no-ternary": 0,
"no-trailing-spaces": 2,
"no-underscore-dangle": 2,
"no-unneeded-ternary": 2,
"object-curly-spacing": [2, "never"],
"one-var": [2, {
"var": "never", // Exactly one var declaration per function
"let": "never", // Exactly one let declaration per block
"const": "never" // Exactly one declarator per const declaration per block
}],
"operator-assignment": [1, "always"],
"operator-linebreak": [2, "after"],
"padded-blocks": [2, "never"],
"quote-props": [2, "as-needed"],
"quotes": [2, "single", "avoid-escape"],
"semi": [2, "always"],
"semi-spacing": 2,
// "sort-vars": [1, { "ignoreCase": true }],
"space-after-keywords": [2, "always" ],
"space-before-blocks": [2, "always"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-return-throw-case": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-comment": 0,
"wrap-regexp": 0,
// Legacy
"max-len": [1, 120, 4],
// todo: apply max-params
"max-params": [0, 3],
// todo: apply max-statements
"max-statements": [2, 30],
"no-bitwise": 2
}
}

20
.gitignore vendored
View File

@@ -1,20 +0,0 @@
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
/node_modules
npm-debug.log
# type script artifacts
/typings
# WebStorm
.idea
# ignore build and dist for now
/dist
/demo/**/*.js
/demo/**/*.js.map
/components/**/*.js
/components/**/*.js.map
/logs

37516
angular2-bootstrap-demo.js vendored Normal file

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 it is too large Load Diff

File diff suppressed because one or more lines are too long

24954
angular2.js vendored Normal file

File diff suppressed because it is too large Load Diff

1
angular2.js.map Normal file

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

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

26440
build/angular2.js vendored

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -1,40 +0,0 @@
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

@@ -1,12 +0,0 @@
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

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

View File

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

View File

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

View File

@@ -1,4 +0,0 @@
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

@@ -1,38 +0,0 @@
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

@@ -1,14 +0,0 @@
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

@@ -1,20 +0,0 @@
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

@@ -1,18 +0,0 @@
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

@@ -1,43 +0,0 @@
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

@@ -1,12 +0,0 @@
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

@@ -1,10 +0,0 @@
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

@@ -1,9 +0,0 @@
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

@@ -1,15 +0,0 @@
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

@@ -1,12 +0,0 @@
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

@@ -1,24 +0,0 @@
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

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

View File

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

View File

@@ -1,71 +0,0 @@
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

@@ -1,24 +0,0 @@
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

@@ -1,32 +0,0 @@
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

@@ -1,28 +0,0 @@
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

@@ -1,37 +0,0 @@
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

@@ -1,66 +0,0 @@
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

@@ -1,18 +0,0 @@
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

@@ -1,826 +0,0 @@
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

@@ -1,6 +0,0 @@
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

@@ -1,76 +0,0 @@
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;
}

View File

@@ -1,21 +0,0 @@
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';

View File

@@ -1,18 +0,0 @@
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

@@ -1,40 +0,0 @@
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

@@ -1,13 +0,0 @@
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

@@ -1,12 +0,0 @@
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

@@ -1,62 +0,0 @@
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;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -1,18 +1,17 @@
import { ElementRef } from 'angular2/core';
import { FileUploader } from './file-uploader';
export declare class FileDrop {
private element;
import { EventEmitter, ElementRef } from '@angular/core';
import { FileUploader } from './file-uploader.class';
export declare class FileDropDirective {
uploader: FileUploader;
private fileOver;
fileOver: EventEmitter<any>;
onFileDrop: EventEmitter<File[]>;
private element;
constructor(element: ElementRef);
getOptions(): any;
getFilters(): void;
getFilters(): any;
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,43 @@
import { FileLikeObject } from './file-like-object.class';
import { FileUploader } from './file-uploader.class';
export declare class FileItem {
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;
private _zone;
private uploader;
private some;
private options;
constructor(uploader: FileUploader, some: any, options: any);
upload(): void;
cancel(): void;
remove(): void;
onBeforeUpload(): void;
onBuildForm(form: any): any;
onProgress(progress: number): any;
onSuccess(response: any, status: any, headers: any): any;
onError(response: any, status: any, headers: any): any;
onCancel(response: any, status: any, headers: any): any;
onComplete(response: any, status: any, headers: any): any;
_onBeforeUpload(): void;
_onBuildForm(form: any): 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;
_prepareToUploading(): void;
}

View File

@@ -0,0 +1,11 @@
import { ElementRef } from '@angular/core';
import { FileUploader } from './file-uploader.class';
export declare class FileSelectDirective {
uploader: FileUploader;
private element;
constructor(element: ElementRef);
getOptions(): any;
getFilters(): any;
isEmptyAfterSelection(): boolean;
onChange(): any;
}

View File

@@ -0,0 +1,9 @@
export declare class FileType {
static mime_doc: string[];
static mime_xsl: string[];
static mime_ppt: string[];
static mime_psd: string[];
static mime_compress: string[];
static getMimeClass(file: any): string;
static fileTypeDetection(inputFilename: string): string;
}

View File

@@ -1,20 +1,32 @@
import { FileItem } from './file-item';
import { FileItem } from './file-item.class';
export interface Headers {
name: string;
value: string;
}
export interface FileUploaderOptions {
allowedMimeType?: Array<string>;
allowedFileType?: Array<string>;
autoUpload?: boolean;
isHTML5?: boolean;
filters?: Array<any>;
headers?: Array<Headers>;
maxFileSize?: number;
queueLimit?: number;
removeAfterUpload?: boolean;
url?: string;
}
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>;
autoUpload: any;
options: FileUploaderOptions;
private _failFilterIndex;
constructor(options: any);
addToQueue(files: any[], options: any, filters: any): void;
setOptions(options: any): void;
addToQueue(files: any[], options?: any, filters?: any): void;
removeFromQueue(value: any): void;
clearQueue(): void;
uploadItem(value: FileItem): void;
@@ -24,39 +36,42 @@ export declare class FileUploader {
isFile(value: any): boolean;
isFileLikeObject(value: any): boolean;
getIndexOfItem(value: any): number;
getNotUploadedItems(): any[];
getReadyItems(): any[];
getNotUploadedItems(): Array<any>;
getReadyItems(): Array<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;
onAfterAddingAll(fileItems: any): any;
onBuildItemForm(fileItem: any, form: any): any;
onAfterAddingFile(fileItem: any): any;
onWhenAddingFileFailed(item: any, filter: any, options: any): any;
onBeforeUploadItem(fileItem: any): any;
onProgressItem(fileItem: any, progress: any): any;
onProgressAll(progress: any): any;
onSuccessItem(item: any, response: any, status: any, headers: any): any;
onErrorItem(item: any, response: any, status: any, headers: any): any;
onCancelItem(item: any, response: any, status: any, headers: any): any;
onCompleteItem(item: any, response: any, status: any, headers: any): any;
onCompleteAll(): any;
_mimeTypeFilter(item: any): boolean;
_fileSizeFilter(item: any): boolean;
_fileTypeFilter(item: any): boolean;
_onErrorItem(item: any, response: any, status: any, headers: any): void;
_onCompleteItem(item: any, response: any, status: any, headers: any): void;
protected _headersGetter(parsedHeaders: any): any;
protected _xhrTransport(item: any): any;
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 _onBuildItemForm(item, form);
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,4 @@
export declare class FileUploadSectionComponent {
currentHeading: string;
select(e: any): void;
}

View File

@@ -0,0 +1,8 @@
import { FileUploader } from '../../../ng2-file-upload';
export declare class SimpleDemoComponent {
uploader: FileUploader;
hasBaseDropZoneOver: boolean;
hasAnotherDropZoneOver: boolean;
fileOverBase(e: any): void;
fileOverAnother(e: any): void;
}

View File

@@ -0,0 +1,2 @@
export declare class DemoComponent {
}

View File

@@ -0,0 +1,8 @@
export * from './components/file-upload/file-select.directive';
export * from './components/file-upload/file-drop.directive';
export * from './components/file-upload/file-uploader.class';
export declare const FILE_UPLOAD_DIRECTIVES: [any];
declare var _default: {
directives: [any][];
};
export default _default;

View File

@@ -9,7 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<link rel="author" href="https://github.com/valor-software/ng2-bootstrap/graphs/contributors">
<link rel="author" href="https://github.com/valor-software/ng2-file-upload/graphs/contributors">
<!--link to bootstrap.css-->
<link rel="stylesheet" href="assets/css/prism-okaidia.css">
@@ -34,11 +34,5 @@
Loading...
</app>
<!-- Angular2 files -->
<script src="build/angular2.js"></script>
<!-- Angular2 file upload script -->
<script src="build/angular2-file-upload.js"></script>
<!-- App script -->
<script src="build/angular2-file-upload-demo.js"></script>
</body>
<script src="angular2.js"></script><script src="angular2-bootstrap.js"></script><script src="angular2-bootstrap-demo.js"></script></body>
</html>

View File

@@ -1,4 +0,0 @@
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

@@ -1,10 +0,0 @@
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

View File

@@ -1 +0,0 @@
{"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"}