-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bootstrap): support Angular RC5 misc: disable plugins that does not support RC5
- Loading branch information
Shlomi Assaf (shlassaf)
committed
Aug 10, 2016
1 parent
2bb0835
commit e4bbcc4
Showing
21 changed files
with
317 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { NgModule, ModuleWithProviders } from '@angular/core'; | ||
|
||
import { EVENT_MANAGER_PLUGINS } from '@angular/platform-browser'; | ||
import { DOMOutsideEventPlugin } from './providers/outside-event-plugin'; | ||
import { ModalRenderer, DOMModalRenderer } from '../angular2-modal'; | ||
|
||
@NgModule({ | ||
|
||
}) | ||
export class ModalModule { | ||
static forRoot(): ModuleWithProviders { | ||
return { | ||
ngModule: ModalModule, | ||
providers: [ | ||
{ provide: ModalRenderer, useClass: DOMModalRenderer }, | ||
{ provide: EVENT_MANAGER_PLUGINS, useClass: DOMOutsideEventPlugin, multi: true }, | ||
] | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
src/components/angular2-modal/plugins/bootstrap/bootstrap.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { NgModule, ModuleWithProviders } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
import { Modal } from './modal'; | ||
import { BSModalBackdrop } from './modal-backdrop'; | ||
import { BSMessageModal } from './message-modal'; | ||
import { BSModalContainer } from './modal-container'; | ||
import { BSModalFooter } from './modal-footer'; | ||
|
||
|
||
import { OneButtonPresetBuilder } from './presets/one-button-preset'; | ||
import { TwoButtonPresetBuilder } from './presets/two-button-preset'; | ||
|
||
import { | ||
Modal as BaseModal, | ||
ModalBackdropComponent, | ||
ModalDropInFactory | ||
} from '../../angular2-modal'; | ||
|
||
@NgModule({ | ||
imports: [ CommonModule ], | ||
declarations: [ | ||
BSModalBackdrop, | ||
BSMessageModal, | ||
BSModalContainer, | ||
BSModalFooter | ||
], | ||
providers: [ | ||
{ provide: BaseModal, useClass: Modal }, | ||
{ provide: Modal, useClass: Modal }, | ||
{ provide: ModalBackdropComponent, useValue: BSModalBackdrop }, | ||
{ provide: ModalDropInFactory, useValue: { | ||
alert: modal => new OneButtonPresetBuilder(modal, <any>{isBlocking: false}), | ||
prompt: modal => new OneButtonPresetBuilder(modal, <any>{isBlocking: true, keyboard: null}), | ||
confirm: modal => new TwoButtonPresetBuilder(modal, <any>{isBlocking: true, keyboard: null}) | ||
}} | ||
], | ||
entryComponents: [ | ||
BSModalBackdrop, | ||
BSMessageModal | ||
] | ||
}) | ||
export class BootstrapModalModule {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.