Giter Club home page Giter Club logo

angular.dart.ui's Introduction

Angular UI Build Status Stories in Ready Coverage Status

Port of Angular-UI to Dart.

Look at Demo page for this project.

You may be interesting in check out Material Design Theme for this project.

Quick-Start

Include the following code to your index.html

<!-- Latest compiled and minified bootsrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!-- Optional bootstrap theme CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<!-- angular ui CSS -->
<link rel="stylesheet" href="packages/angular_ui/css/angular.css">
<!-- your own CSS file -->
<link rel="stylesheet" href="style.css">

Add the angular-ui module in your main.dart

import 'package:angular/angular.dart';
import 'package:angular/application_factory.dart';
import 'package:angular_ui/angular_ui.dart';

void main() {
  applicationFactory()
    .addModule(new AngularUIModule()) // The angular-ui module
    .addModule(new MainModule()) // Your own module
    .run();
}

Use the angular-ui components as described below or in the demo.

##Bootstrap directives and components

  • Checkbox and RadioButton
  • DropdownToggle
  • Collapse
  • Alert
  • ProgressBar
  • Modal
  • Accordion
  • Rating
  • Datepicker (partially implemented)
  • Tabs
  • Drag and Drop support
  • Carousel
  • Timepicker
  • Pagination
  • Tooltip
  • Popover
  • Typehead

Note: Drag and Drop support is experimental feature and API can be changed at any time in the future.

##Credits

angular.dart.ui's People

Contributors

akserg avatar jonathanhughes avatar just95 avatar kinetifex avatar mkazlauskas avatar neermitt avatar poolik avatar roba1993 avatar taisph avatar zoechi avatar zoechigist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular.dart.ui's Issues

Create Datagrid

Renders data in a table with paging, sorting, and searching.

Create Tree

Provides a visual display of hierarchical node data.

Create Combobox

Combines input and dropdown for easy and flexible data selection.

Create Preloader

Fully CSS-driven loading animation for visual indication of wait times.

Transition and Collapse are not working as expected

#4, #1

Timeout in Transition is called without a delay.
Its purpose seems to be to stop the transition when it takes longer than the specified timeout.
Because timeout is called without an explicit delay the default value 0 takes effect, which ends the transition (collapse/expand) immediately after it's start.

For testing purposes I added a timeout of 1s.
The expand/collapse effect is still no transition, instead it's delayed 1s and then done without the transition.

Addition
I just saw, when I expand/collapse several times it works sometimes.

Modal and Mirrors - Dart2js

Some sort of problem here... When converting to JavaScript the modals just don't work. I've tried including more libraries in the @MirrorsUsed() annotation but it doesn't seem to make a difference (I could very well be missing some - but I tried to look in the modal.dart file to see what else could be in use). The console just keeps showing Unsupported operation: Can't use 'toString' in reflection because it is not included in a @MirrorsUsed annotation. ... Does the actual angular.dart.ui package need some sort of @MirrorsUsed itself?

dropdown-directive add/remove 'open' to parent element's class attribute

I'm using angular-ui package v.0.2.0+7 and I have a html code like this:

<body ng-app>
  <div id="test" class="well">
    <button class="btn" type="button"  dropdown-toggle>Test Menu</button>
    <ul class="dropdown-menu">
      <li><a href="#">Item 1</a></li>
      <li><a href="#">Item 2</a></li>
    </ul>
  </div>
</body>

When I click the button, the menu is not displayed but I can see that "open" is added to div id="test" class attribute. Clicking again the button remove "open" from the div class attribute. Is this a bug or did I do something wrong ?

Create Spinner

Provides convenient numeric input with increment and decrement buttons.

a lot of the ProgressBar tests are failing

While trying to integrate my changes, I merged what has changed in the repository lately,
I stumbled over the ProgressBar tests.

A lot of the ProgressBar tests are failing at the the bool animate attribute.

Testing progressbar: transcludes "bar" text. Test failed: Caught type 'String' is not a subtype of type 'bool' of 'value'. #0 ProgressBar.animate= (package:angular_ui/progressbar/progressbar.dart:48:8

I don't know if this is an Angular bug but I guess this still worked when the tests were written.
Angular seems not to be able to convert "false" to bool anymore.

Should I create a pull request in this state anyway?
Any idea how to proceed?

The Checkbox example in index.html is kind of weird

In th Checkbox example, the state of checkbox buttons changes after clicking again on other places, not directly changes right after clicking on the checkbox buttons.

It's weird, right?

Thank you,

Mao-Yeh

dropdown-toggle doesn't execute the menu when clicked

#16

The header of the demo page contains a dropdown with some in-page links.
They don't work. I can click an item of the dropdown menu and the menu closes, but the click has no further effect.
I had this too with my implementation. It was a problem with preventDefault() preventing the execution of the link-click.
I then just removed preventDefault() and it worked fine, but I wondered if there may be situations where this causes problems.

Tests are broken with AngularDart 0.9.7 or UnitTest 0.10.0

ERROR
All Tests: Alert. Test failed: Caught Bad state: Not allowed when tests are running.
package:unittest/unittest.dart 471:21 group
jasmine_syntax.dart 78:15 describe
jasmine_syntax.dart 83:5 describe
jasmine_syntax.dart 83:5 describe
tests/alert_tests.dart 10:11 alertTests
ui_tests.dart 52:35 main..
dart:async _asyncRunCallback
file:///mnt/data/b/build/slave/dartium-lucid64-full-dev/build/src/dart/tools/dom/src/native_DOMImplementation.dart 607 _handleMutation

Check selectors of all components

I found inconsistency in implementation of some components. Selectors were applied only for tag or attribute in compare to similar from JavaScript version.

Port missing collapse tests

#4

The collapse tests are not ported.
As I need the Collapse for the Accordion #8 and it seems to have issues I'm going to port the missing tests.
(I haven't ported the tests for the elements ported either)

Allow template paths to be configured

Hi!
I see, for things like the modal window component, you can pass the template or templateUrl for the content within the modal window (window.html's content area)...but I'd also like to be able to pass the template URL for window.html itself.

My project sits inside another site/project and since modal.dart has packages/angular_ui/modal/window.html but I actually need it as /packages/angular_ui/modal/window.html to work.

Perhaps as simple as passing the an attribute to <modal-window></modal-window> itself? I know there's two templates here and to make it less confusing the developer should only need to pass what they want inside the actual modal...I hear that, but in special circumstances here, one may have the need to path the window.html template (among other internal templates I suppose) differently...Or completely replace it.

Perhaps this is already possible in some way that I'm not clearly understanding as well. Any thoughts on this issue would be appreciated. Thanks!

Angular 0.9.10 unit test fail

I tried to check the status and saw that with Angular 0.9.10 several tests fail.
This seems to be more a problem with the test framework than with incompatibilities of AngularDart 0.9.10 and the UI elements implementation.

I started investigating alerts tests:
alert_test.dart contains two tests.
(I commented out all other tests in ui_tests.dart).
When I run those tests I get an exception/stack trace at the end.
When I comment out one of them and run only the lasting one the test succeeds.

I just wanted to share if anyone else is investigating...
I keep you updated about my progress.

Create Wizard

Easily define a multi-step process that needs to be completed in a specific order.

Should this package have Bootstrap in the name

I hope it's ok to put such questions here - I have some more to come so please stop me early, if you don't like it ;-)

Why doesn't angular.dart.ui have 'bootstrap' in it's name?

I didn't do AngularJS I know only AngularDart so I lack of insight.

I had the impression that Angular UI encompasses Angular UI Bootstrap but also other UI components. Do these others all work with Bootstrap CSS too, so that it doesn't make sense to differentiate between Bootstrap an non-Bootstrap?

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.