Code Monkey home page Code Monkey logo

angular2-ui-bootstrap's Introduction

Angular 2 UI Bootstrap

There are Angular 2 Components for Bootstrap.

Code Climate Dependency Status devDependency Status

Install from npm

npm install angular2-ui-bootstrap --save

angular2-ui-bootstrap's People

Contributors

akserg avatar

Watchers

 avatar  avatar

angular2-ui-bootstrap's Issues

Carousel Component

Carousel Component allows moving back and forth through a set of child elements. Carousel Component leverages the Swap Component to render the transition between items.

Add Demo

Demo must show all components implemented on the moment of release.

Fade Effect

Fade Effect manages opacity style property to reach faddiness of element.

Modal Manager

Modal Manager controls the display of the provided element while also creating a dark backdrop on the page. Any element used should have a fixed position, a z-index greater than 1040, and an initial display of none.

Dropdown Component

Dropdown Component content is inferred from all child elements that have class dropdown-menu. Bootstrap defines a CSS selector for .dropdown-menu with an initial display of none.
Dropdown Component listens for click events and toggles visibility of content if the click target has attribute data-toggle="dropdown".
Bootstrap also defines a CSS selector which sets display: block; for elements matching .open > .dropdown-menu. When Dropdown Component opens, the class open is added to the inner element wrapping all content. Causing child elements with class dropdown-menu to become visible.

Slide Effect

Slide Effect displays en Html Element with sliding motion.

Scale Effect

Scale Effect changes the size of an Html Element with -webkit-transform-origin.

CSS3 Transition Effect

CSS3 Transition Effect extends Visual Effect class to change transitionProperty and 'transitionDuration' of an Html Element to make an animation happens.

Modal Component

The Modal Component leverages the Modal Effect.
Modal Component is hidden when added to a page. It can be displayed by calling the show method.
Similar to Alert Component, elements with the attribute data-dismiss="modal" will close Modal Component when clicked.

Collapsible Component

Collapsible Component uses Visible Effect and Shrink Effect to reach collapses of an Html Element. The header element for Collapse Component is a child element with class accordion-heading. The rest of the children are rendered as content. Collapse Component listens for click events and toggles visibility of content if the click target has attribute data-toggle="collapse".

CSS 3 Effects

CSS 3 Effects is name based enumeration of CSS 3 effect like:

  • linear
  • ease
  • ease-in
  • ease-in-out
  • ease-out

Door Effect

Door Effect changes -webkit-transform style property of an Html Element.

Visible Effect Manager

Visible Effect Manager provide following methods:

  • show,
  • hide,
  • toggle,
  • begin
    to change element's display accordingly.

Custom effects, duration, and easing values can be provided via begin method.

Visible Component

Visible Component has two states:

  • visible
  • 'invisible. Following methods help to make anyVisible Component` to be visible or hidden:
  • show
  • hide
  • toggle

Swap Component

Swap Component designed to be composed by other components. It exposes the functionality of the Swap Effect as a simple container element with corresponding methods to swap between child elements via code. Tabs Component and Carousel Component both use this component.

Shrink Effect

Shrink Effect plays with max-height and max-width of an Html Element to shrink it.

Upgrade to 2.0.0-alpha.47 - 'toRx issue

TSC generate next issues:

src\components\visible-component.spec.ts(31,35): error TS2339: Property 'toRx' does not exist on type 'EventEmitter<string>'.
src\components\visible-component.spec.ts(41,35): error TS2339: Property 'toRx' does not exist on type 'EventEmitter<string>'.
src\components\visible-component.spec.ts(51,35): error TS2339: Property 'toRx' does not exist on type 'EventEmitter<string>'.

Upgrade to 2.0.0-alpha.47 - promise, EventEmitter, lang, asyc

src\components\collapsible-component.ts(3,48): error TS2307: Cannot find module 'angular2/src/core/facade/promise'.
src\components\visible-component.ts(15,39): error TS2314: Generic type 'EventEmitter<T>' requires 1 type argument(s).
src\effects\animating-values.ts(1,22): error TS2307: Cannot find module 'angular2/src/core/facade/lang'.
src\effects\animating-values.ts(3,48): error TS2307: Cannot find module 'angular2/src/core/facade/promise'.
src\effects\animating-values.ts(4,28): error TS2307: Cannot find module 'angular2/src/core/facade/async'.
src\effects\css-transition-effect.ts(3,22): error TS2307: Cannot find module 'angular2/src/core/facade/lang'.
src\effects\css-transition-effect.ts(4,28): error TS2307: Cannot find module 'angular2/src/core/facade/async'.
src\effects\visible-effect-manager.ts(2,22): error TS2307: Cannot find module 'angular2/src/core/facade/lang'.
src\utils\dom.ts(1,22): error TS2307: Cannot find module 'angular2/src/core/facade/lang'.

Tabs Component

Tabs Component is togglable tabs. The tab headers are processed as all child <li> elements in content. The rest of the child elements are considered tab content. Tabs Component responds to click events from any child with data-toggle="tab" or data-toggle="pill". The target content id is either the value of data-target on the clicked element or the anchor in href.

Visible Effect

Visible Effect changes element's display to make it visible or hidden after specific amout of time

Spin Effect

Spin Effect helps organize rotation effect on an Html Element with -webkit-transform

Alert Component

Alert Component displays information marked as:

  • alert-success,
  • alert-info,
  • alert-warning,
  • alert-danger.
    Clicking on a nested element with the attribute data-dismiss='alert' will cause Alert Component to close.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.