mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/// <reference path="../angularjs/angular.d.ts"/>
|
||||
/// <reference path="./angular-strap.d.ts"/>
|
||||
|
||||
module angularStrapTests {
|
||||
namespace angularStrapTests {
|
||||
|
||||
import ngStrap = mgcrea.ngStrap;
|
||||
|
||||
@@ -9,7 +9,7 @@ module angularStrapTests {
|
||||
// Modal
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module modalTests {
|
||||
namespace modalTests {
|
||||
|
||||
interface IDemoCtrlScope extends ngStrap.modal.IModalScope {
|
||||
showModal: () => void;
|
||||
@@ -54,7 +54,7 @@ module angularStrapTests {
|
||||
// Aside
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module asideTests {
|
||||
namespace asideTests {
|
||||
|
||||
angular.module('demoApp')
|
||||
.config($asideConfig)
|
||||
@@ -85,7 +85,7 @@ module angularStrapTests {
|
||||
var defaults: ngStrap.aside.IAsideOptions = {};
|
||||
defaults.animation = 'am-fadeAndSlideLeft';
|
||||
defaults.placement = 'left';
|
||||
|
||||
|
||||
angular.extend($asideProvider.defaults, defaults);
|
||||
}
|
||||
}
|
||||
@@ -94,8 +94,8 @@ module angularStrapTests {
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Alert
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module alertTests {
|
||||
|
||||
namespace alertTests {
|
||||
|
||||
angular.module('demoApp')
|
||||
.config($alertConfig)
|
||||
@@ -127,8 +127,8 @@ module angularStrapTests {
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Tooltip
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module tooltipTests {
|
||||
|
||||
namespace tooltipTests {
|
||||
|
||||
angular.module('demoApp')
|
||||
.config($tooltipConfig)
|
||||
@@ -139,7 +139,7 @@ module angularStrapTests {
|
||||
drct.restrict = 'EA';
|
||||
drct.link = link;
|
||||
return drct;
|
||||
|
||||
|
||||
function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void {
|
||||
var options: ngStrap.tooltip.ITooltipOptions = {};
|
||||
options.title = 'My Title';
|
||||
@@ -147,11 +147,11 @@ module angularStrapTests {
|
||||
}
|
||||
}
|
||||
|
||||
function $tooltipConfig($tooltipProvider: ngStrap.tooltip.ITooltipProvider): void {
|
||||
function $tooltipConfig($tooltipProvider: ngStrap.tooltip.ITooltipProvider): void {
|
||||
var defaults: ngStrap.tooltip.ITooltipOptions = {};
|
||||
defaults.animation = 'am-flip-x';
|
||||
defaults.trigger = 'hover';
|
||||
|
||||
|
||||
angular.extend($tooltipProvider.defaults, defaults);
|
||||
};
|
||||
}
|
||||
@@ -160,8 +160,8 @@ module angularStrapTests {
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Popover
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module popoverTests {
|
||||
|
||||
namespace popoverTests {
|
||||
|
||||
angular.module('demoApp')
|
||||
.config($popoverConfig)
|
||||
@@ -172,11 +172,11 @@ module angularStrapTests {
|
||||
drct.restrict = 'EA';
|
||||
drct.link = link;
|
||||
return drct;
|
||||
|
||||
function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void {
|
||||
|
||||
function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void {
|
||||
var options: ngStrap.tooltip.ITooltipOptions = {};
|
||||
options.title = 'My Title';
|
||||
|
||||
|
||||
$popover(elem, options);
|
||||
}
|
||||
}
|
||||
@@ -189,190 +189,190 @@ module angularStrapTests {
|
||||
angular.extend($popoverProvider.defaults, defaults);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Typeahead
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module typeaheadTests {
|
||||
|
||||
|
||||
namespace typeaheadTests {
|
||||
|
||||
angular.module('myApp')
|
||||
.config($typeaheadConfig);
|
||||
|
||||
function $typeaheadConfig($typeaheadProvider: ngStrap.typeahead.ITypeaheadProvider) {
|
||||
|
||||
function $typeaheadConfig($typeaheadProvider: ngStrap.typeahead.ITypeaheadProvider) {
|
||||
var defaults: ngStrap.typeahead.ITypeaheadOptions = {}
|
||||
defaults.animation = 'am-flip-x';
|
||||
defaults.minLength = 2;
|
||||
defaults.limit = 8;
|
||||
|
||||
|
||||
angular.extend($typeaheadProvider.defaults, defaults);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Datepicker
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module datepickerTests {
|
||||
|
||||
|
||||
namespace datepickerTests {
|
||||
|
||||
angular.module('myApp')
|
||||
.config($datepickerConfig);
|
||||
|
||||
|
||||
function $datepickerConfig($datepickerProvider: ngStrap.datepicker.IDatepickerProvider): void {
|
||||
var defaults: ngStrap.datepicker.IDatepickerOptions = {};
|
||||
defaults.dateFormat = 'dd/MM/yyyy';
|
||||
defaults.startWeek = 1;
|
||||
|
||||
|
||||
angular.extend($datepickerProvider.defaults, defaults);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Timepicker
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module timepickerTests {
|
||||
|
||||
|
||||
namespace timepickerTests {
|
||||
|
||||
angular.module('myApp')
|
||||
.config($timepickerConfig);
|
||||
|
||||
|
||||
function $timepickerConfig($timepickerProvider: ngStrap.timepicker.ITimepickerProvider): void {
|
||||
var defaults: ngStrap.timepicker.ITimepickerOptions = {};
|
||||
defaults.timeFormat = 'HH:mm';
|
||||
defaults.length = 7;
|
||||
|
||||
|
||||
angular.extend($timepickerProvider.defaults, defaults);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Select
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module selectTests {
|
||||
|
||||
|
||||
namespace selectTests {
|
||||
|
||||
angular.module('myApp')
|
||||
.config($selectConfig);
|
||||
|
||||
|
||||
function $selectConfig($selectProvider: ngStrap.select.ISelectProvider): void {
|
||||
var defaults: ngStrap.select.ISelectOptions = {};
|
||||
defaults.animation = 'am-flip-x';
|
||||
defaults.sort = false;
|
||||
|
||||
|
||||
angular.extend($selectProvider.defaults, defaults);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Tabs
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module tabTests {
|
||||
|
||||
|
||||
namespace tabTests {
|
||||
|
||||
angular.module('myApp')
|
||||
.config($tabConfig);
|
||||
|
||||
|
||||
function $tabConfig($tabProvider: ngStrap.tab.ITabProvider) {
|
||||
var defaults: ngStrap.tab.ITabOptions = {};
|
||||
defaults.animation = 'am-flip-x';
|
||||
|
||||
|
||||
angular.extend($tabProvider.defaults, defaults);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Collapse
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module collapseTests {
|
||||
|
||||
|
||||
namespace collapseTests {
|
||||
|
||||
angular.module('myApp')
|
||||
.config($collapseConfig);
|
||||
|
||||
|
||||
function $collapseConfig($collapseProvider: ngStrap.collapse.ICollapseProvider):void {
|
||||
var defaults: ngStrap.collapse.ICollapseOptions = {};
|
||||
defaults.animation = 'am-flip-x';
|
||||
|
||||
|
||||
angular.extend($collapseProvider.defaults, defaults);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Dropdown
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module dropdownTests {
|
||||
|
||||
|
||||
namespace dropdownTests {
|
||||
|
||||
angular.module('myApp')
|
||||
.config($dropdownConfig);
|
||||
|
||||
|
||||
function $dropdownConfig($dropdownProvider: ngStrap.dropdown.IDropdownProvider):void {
|
||||
var defaults: ngStrap.dropdown.IDropdownOptions = {};
|
||||
defaults.animation = 'am-flip-x';
|
||||
defaults.trigger = 'hover';
|
||||
|
||||
|
||||
angular.extend($dropdownProvider.defaults, defaults);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Navbar
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module navbarTests {
|
||||
|
||||
|
||||
namespace navbarTests {
|
||||
|
||||
angular.module('myApp')
|
||||
.config($navbarConfig);
|
||||
|
||||
|
||||
function $navbarConfig($navbarProvider: ngStrap.navbar.INavbarProvider):void {
|
||||
var defaults: ngStrap.navbar.INavbarOptions = {};
|
||||
defaults.activeClass = 'in';
|
||||
|
||||
|
||||
angular.extend($navbarProvider.defaults, defaults);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Scrollspy
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module scrollspyTests {
|
||||
|
||||
|
||||
namespace scrollspyTests {
|
||||
|
||||
angular.module('myApp')
|
||||
.config($scrollspyConfig);
|
||||
|
||||
|
||||
function $scrollspyConfig($scrollspyProvider: ngStrap.scrollspy.IScrollspyProvider):void {
|
||||
var defaults: ngStrap.scrollspy.IScrollspyOptions = {};
|
||||
defaults.offset = 0;
|
||||
defaults.target = 'my-selector';
|
||||
|
||||
|
||||
angular.extend($scrollspyProvider.defaults, defaults);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Affix
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module affixTests {
|
||||
|
||||
|
||||
namespace affixTests {
|
||||
|
||||
angular.module('myApp')
|
||||
.config($affixConfig);
|
||||
|
||||
|
||||
function $affixConfig($affixProvider: ngStrap.affix.IAffixProvider):void {
|
||||
var defaults: ngStrap.affix.IAffixOptions = {};
|
||||
defaults.offsetTop = 100;
|
||||
|
||||
|
||||
angular.extend($affixProvider.defaults, defaults);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
208
angular-strap/angular-strap.d.ts
vendored
208
angular-strap/angular-strap.d.ts
vendored
@@ -6,30 +6,30 @@
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
declare module mgcrea.ngStrap {
|
||||
declare namespace mgcrea.ngStrap {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Modal
|
||||
// see http://mgcrea.github.io/angular-strap/#/modals
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module modal {
|
||||
|
||||
namespace modal {
|
||||
|
||||
interface IModalService {
|
||||
(config?: IModalOptions): IModal;
|
||||
}
|
||||
|
||||
|
||||
interface IModalProvider {
|
||||
defaults: IModalOptions;
|
||||
}
|
||||
|
||||
|
||||
interface IModal {
|
||||
$promise: ng.IPromise<void>;
|
||||
show: () => void;
|
||||
hide: () => void;
|
||||
toggle: () => void;
|
||||
}
|
||||
|
||||
|
||||
interface IModalOptions {
|
||||
animation?: string;
|
||||
backdropAnimation?: string;
|
||||
@@ -47,7 +47,7 @@ declare module mgcrea.ngStrap {
|
||||
id?: string;
|
||||
scope?: ng.IScope;
|
||||
}
|
||||
|
||||
|
||||
interface IModalScope extends ng.IScope {
|
||||
$show: () => void;
|
||||
$hide: () => void;
|
||||
@@ -61,23 +61,23 @@ declare module mgcrea.ngStrap {
|
||||
// see http://mgcrea.github.io/angular-strap/#/asides
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module aside {
|
||||
|
||||
namespace aside {
|
||||
|
||||
interface IAsideService {
|
||||
(config?: IAsideOptions): IAside;
|
||||
}
|
||||
|
||||
|
||||
interface IAsideProvider {
|
||||
defaults: IAsideOptions;
|
||||
}
|
||||
|
||||
|
||||
interface IAside {
|
||||
$promise: ng.IPromise<void>;
|
||||
show: () => void;
|
||||
hide: () => void;
|
||||
toggle: () => void;
|
||||
}
|
||||
|
||||
|
||||
interface IAsideOptions {
|
||||
animation?: string;
|
||||
placement?: string;
|
||||
@@ -92,7 +92,7 @@ declare module mgcrea.ngStrap {
|
||||
contentTemplate?: string;
|
||||
scope?: ng.IScope;
|
||||
}
|
||||
|
||||
|
||||
interface IAsideScope extends ng.IScope {
|
||||
$show: () => void;
|
||||
$hide: () => void;
|
||||
@@ -107,23 +107,23 @@ declare module mgcrea.ngStrap {
|
||||
// see http://mgcrea.github.io/angular-strap/#/alerts
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module alert {
|
||||
|
||||
namespace alert {
|
||||
|
||||
interface IAlertService {
|
||||
(config?: IAlertOptions): IAlert;
|
||||
}
|
||||
|
||||
|
||||
interface IAlertProvider {
|
||||
defaults: IAlertOptions;
|
||||
}
|
||||
|
||||
|
||||
interface IAlert {
|
||||
$promise: ng.IPromise<void>;
|
||||
show: () => void;
|
||||
hide: () => void;
|
||||
toggle: () => void;
|
||||
}
|
||||
|
||||
|
||||
interface IAlertOptions {
|
||||
animation?: string;
|
||||
placement?: string;
|
||||
@@ -137,37 +137,37 @@ declare module mgcrea.ngStrap {
|
||||
duration?: number | boolean;
|
||||
dismissable?: boolean;
|
||||
}
|
||||
|
||||
|
||||
interface IAlertScope extends ng.IScope {
|
||||
$show: () => void;
|
||||
$hide: () => void;
|
||||
$toggle: () => void;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Tooltip
|
||||
// see http://mgcrea.github.io/angular-strap/#/tooltips
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module tooltip {
|
||||
|
||||
namespace tooltip {
|
||||
|
||||
interface ITooltipService {
|
||||
(element: ng.IAugmentedJQuery, config?: ITooltipOptions): ITooltip;
|
||||
}
|
||||
|
||||
|
||||
interface ITooltipProvider {
|
||||
defaults: ITooltipOptions;
|
||||
}
|
||||
|
||||
|
||||
interface ITooltip {
|
||||
$promise: ng.IPromise<void>;
|
||||
show: () => void;
|
||||
hide: () => void;
|
||||
toggle: () => void;
|
||||
}
|
||||
|
||||
|
||||
interface ITooltipOptions {
|
||||
animation?: string;
|
||||
placement?: string;
|
||||
@@ -183,13 +183,13 @@ declare module mgcrea.ngStrap {
|
||||
id?: string;
|
||||
viewport?: string | { selector: string; padding: string | number };
|
||||
}
|
||||
|
||||
|
||||
interface ITooltipScope extends ng.IScope {
|
||||
$show: () => void;
|
||||
$hide: () => void;
|
||||
$toggle: () => void;
|
||||
$setEnabled: (isEnabled: boolean) => void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -198,23 +198,23 @@ declare module mgcrea.ngStrap {
|
||||
// see http://mgcrea.github.io/angular-strap/#/popovers
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module popover {
|
||||
|
||||
namespace popover {
|
||||
|
||||
interface IPopoverService {
|
||||
(element: ng.IAugmentedJQuery, config?: IPopoverOptions): IPopover;
|
||||
}
|
||||
|
||||
|
||||
interface IPopoverProvider {
|
||||
defaults: IPopoverOptions;
|
||||
}
|
||||
|
||||
|
||||
interface IPopover {
|
||||
$promise: ng.IPromise<void>;
|
||||
show: () => void;
|
||||
hide: () => void;
|
||||
toggle: () => void;
|
||||
}
|
||||
|
||||
|
||||
interface IPopoverOptions {
|
||||
animation?: string;
|
||||
placement?: string;
|
||||
@@ -231,7 +231,7 @@ declare module mgcrea.ngStrap {
|
||||
id?: string;
|
||||
viewport?: string | { selector: string; padding: string | number };
|
||||
}
|
||||
|
||||
|
||||
interface IPopoverScope extends ng.IScope {
|
||||
$show: () => void;
|
||||
$hide: () => void;
|
||||
@@ -246,23 +246,23 @@ declare module mgcrea.ngStrap {
|
||||
// see http://mgcrea.github.io/angular-strap/#/typeaheads
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module typeahead {
|
||||
|
||||
namespace typeahead {
|
||||
|
||||
interface ITypeaheadService {
|
||||
(element: ng.IAugmentedJQuery, controller: any, config?: ITypeaheadOptions): ITypeahead;
|
||||
}
|
||||
|
||||
|
||||
interface ITypeaheadProvider {
|
||||
defaults: ITypeaheadOptions;
|
||||
}
|
||||
|
||||
|
||||
interface ITypeahead {
|
||||
$promise: ng.IPromise<void>;
|
||||
show: () => void;
|
||||
hide: () => void;
|
||||
toggle: () => void;
|
||||
}
|
||||
|
||||
|
||||
interface ITypeaheadOptions {
|
||||
animation?: string;
|
||||
placement?: string;
|
||||
@@ -280,38 +280,38 @@ declare module mgcrea.ngStrap {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Datepicker
|
||||
// see http://mgcrea.github.io/angular-strap/#/datepickers
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module datepicker {
|
||||
|
||||
namespace datepicker {
|
||||
|
||||
interface IDatepickerService {
|
||||
(element: ng.IAugmentedJQuery, controller: any, config?: IDatepickerOptions): IDatepicker;
|
||||
}
|
||||
|
||||
|
||||
interface IDatepickerProvider {
|
||||
defaults: IDatepickerOptions;
|
||||
}
|
||||
|
||||
|
||||
interface IDatepicker {
|
||||
update: (date: Date) => void;
|
||||
updateDisabledDates: (dateRanges: IDatepickerDateRange[]) => void;
|
||||
update: (date: Date) => void;
|
||||
updateDisabledDates: (dateRanges: IDatepickerDateRange[]) => void;
|
||||
select: (dateConstructorArg: string | number | number[], keep: boolean) => void;
|
||||
setMode: (mode: any) => void;
|
||||
setMode: (mode: any) => void;
|
||||
int: () => void;
|
||||
destroy: () => void;
|
||||
show: () => void;
|
||||
hide: () => void;
|
||||
}
|
||||
|
||||
|
||||
interface IDatepickerDateRange {
|
||||
start: Date;
|
||||
end: Date;
|
||||
}
|
||||
|
||||
|
||||
interface IDatepickerOptions {
|
||||
animation?: string;
|
||||
placement?: string;
|
||||
@@ -339,26 +339,26 @@ declare module mgcrea.ngStrap {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Timepicker
|
||||
// see http://mgcrea.github.io/angular-strap/#/timepickers
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module timepicker {
|
||||
namespace timepicker {
|
||||
|
||||
interface ITimepickerService {
|
||||
(element: ng.IAugmentedJQuery, controller: any, config?: ITimepickerOptions): ITimepicker;
|
||||
}
|
||||
|
||||
|
||||
interface ITimepickerProvider {
|
||||
defaults: ITimepickerOptions;
|
||||
}
|
||||
|
||||
|
||||
interface ITimepicker {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
interface ITimepickerOptions {
|
||||
animation?: string;
|
||||
placement?: string;
|
||||
@@ -382,33 +382,33 @@ declare module mgcrea.ngStrap {
|
||||
iconUp?: string;
|
||||
iconDown?: string;
|
||||
arrowBehaviour?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Button
|
||||
// see http://mgcrea.github.io/angular-strap/#/buttons
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// No definitions for this module
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Select
|
||||
// see http://mgcrea.github.io/angular-strap/#/selects
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module select {
|
||||
|
||||
namespace select {
|
||||
|
||||
interface ISelectService {
|
||||
(element: ng.IAugmentedJQuery, controller: any, config: ISelectOptions): ISelect;
|
||||
}
|
||||
|
||||
|
||||
interface ISelectProvider {
|
||||
defaults: ISelectOptions;
|
||||
}
|
||||
|
||||
|
||||
interface ISelect {
|
||||
update: (matches: any) => void;
|
||||
active: (index: number) => number;
|
||||
@@ -416,7 +416,7 @@ declare module mgcrea.ngStrap {
|
||||
show: () => void;
|
||||
hide: () => void;
|
||||
}
|
||||
|
||||
|
||||
interface ISelectOptions {
|
||||
animation?: string;
|
||||
placement?: string;
|
||||
@@ -437,23 +437,23 @@ declare module mgcrea.ngStrap {
|
||||
id?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Tabs
|
||||
// see http://mgcrea.github.io/angular-strap/#/tabs
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module tab {
|
||||
|
||||
namespace tab {
|
||||
|
||||
interface ITabProvider {
|
||||
defaults: ITabOptions;
|
||||
}
|
||||
|
||||
|
||||
interface ITabService {
|
||||
defaults: ITabOptions;
|
||||
controller: any;
|
||||
}
|
||||
|
||||
|
||||
interface ITabOptions {
|
||||
animation?: string;
|
||||
template?: string;
|
||||
@@ -461,19 +461,19 @@ declare module mgcrea.ngStrap {
|
||||
activeClass?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Collapses
|
||||
// see http://mgcrea.github.io/angular-strap/#/collapses
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module collapse {
|
||||
|
||||
namespace collapse {
|
||||
|
||||
interface ICollapseProvider {
|
||||
defaults: ICollapseOptions;
|
||||
}
|
||||
|
||||
|
||||
interface ICollapseOptions {
|
||||
animation?: string;
|
||||
activeClass?: string;
|
||||
@@ -482,29 +482,29 @@ declare module mgcrea.ngStrap {
|
||||
allowMultiple?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Dropdowsn
|
||||
// see http://mgcrea.github.io/angular-strap/#/dropdowns
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module dropdown {
|
||||
|
||||
|
||||
namespace dropdown {
|
||||
|
||||
interface IDropdownProvider {
|
||||
defaults: IDropdownOptions;
|
||||
}
|
||||
|
||||
|
||||
interface IDropdownService {
|
||||
(element: ng.IAugmentedJQuery, config: IDropdownOptions): IDropdown;
|
||||
}
|
||||
|
||||
|
||||
interface IDropdown {
|
||||
show: () => void;
|
||||
hide: () => void;
|
||||
destroy: () => void;
|
||||
}
|
||||
|
||||
|
||||
interface IDropdownOptions {
|
||||
animation?: string;
|
||||
placement?: string;
|
||||
@@ -515,81 +515,81 @@ declare module mgcrea.ngStrap {
|
||||
template?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Navbar
|
||||
// see http://mgcrea.github.io/angular-strap/#/navbars
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module navbar {
|
||||
|
||||
|
||||
namespace navbar {
|
||||
|
||||
interface INavbarProvider {
|
||||
defaults: INavbarOptions;
|
||||
}
|
||||
|
||||
|
||||
interface INavbarOptions {
|
||||
activeClass?: string;
|
||||
routeAttr?: string;
|
||||
}
|
||||
|
||||
|
||||
interface INavbarService {
|
||||
defaults: INavbarOptions;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Scrollspy
|
||||
// see http://mgcrea.github.io/angular-strap/#/scrollspy
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module scrollspy {
|
||||
|
||||
|
||||
namespace scrollspy {
|
||||
|
||||
interface IScrollspyProvider {
|
||||
defaults: IScrollspyOptions;
|
||||
}
|
||||
|
||||
|
||||
interface IScrollspyService {
|
||||
(element: ng.IAugmentedJQuery, options: IScrollspyOptions): IScrollspy;
|
||||
}
|
||||
|
||||
|
||||
interface IScrollspy {
|
||||
checkOffsets: () => void;
|
||||
trackElement: (target: any, source: any) => void;
|
||||
untrackElement: (target: any, source: any) => void;
|
||||
activate: (index: number) => void;
|
||||
}
|
||||
|
||||
|
||||
interface IScrollspyOptions {
|
||||
target?: string;
|
||||
offset?: number;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Affix
|
||||
// see http://mgcrea.github.io/angular-strap/#/affix
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module affix {
|
||||
|
||||
|
||||
namespace affix {
|
||||
|
||||
interface IAffixProvider {
|
||||
defaults: IAffixOptions;
|
||||
}
|
||||
|
||||
|
||||
interface IAffixService {
|
||||
(element: ng.IAugmentedJQuery, options: IAffixOptions): IAffix;
|
||||
}
|
||||
|
||||
|
||||
interface IAffix {
|
||||
init: () => void;
|
||||
destroy: () => void;
|
||||
checkPositionWithEventLoop: () => void;
|
||||
checkPosition: () => void;
|
||||
}
|
||||
|
||||
|
||||
interface IAffixOptions {
|
||||
offsetTop?: number;
|
||||
offsetBottom?: number;
|
||||
|
||||
Reference in New Issue
Block a user