Skip to content

Commit 5374197

Browse files
committed
Project moved to follow Angular Dart 0.9.10
1 parent a10d710 commit 5374197

33 files changed

+135
-211
lines changed

lib/accordion/accordion.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
<!--
2-
Copyright (C) 2013 - 2014 Angular Dart UI authors. Please see AUTHORS.md.
3-
https://github.com/akserg/angular.dart.ui
4-
All rights reserved. Please see the LICENSE.md file.
5-
-->
1+
<!DOCTYPE html>
62
<div class="panel-group"><content></content></div>

lib/accordion/accordion_group.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<!--
2-
Copyright (C) 2013 - 2014 Angular Dart UI authors. Please see AUTHORS.md.
3-
https://github.com/akserg/angular.dart.ui
4-
All rights reserved. Please see the LICENSE.md file.
5-
-->
1+
<!DOCTYPE html>
62
<div class="panel panel-default">
73
<div class="panel-heading">
84
<h4 class="panel-title">

lib/alert/alert.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ class Alert {
3434
*/
3535
bool get showable => (close as BoundExpression).expression.isChain;
3636

37+
/**
38+
* Calculate and return alert type as string depnds on type. If type is null
39+
* methods returns 'warning' as default value.
40+
*/
41+
String get alertTypeAsString => "alert-${type != null ? type : 'warning'}";
42+
3743
/**
3844
* Thst method calls [close] callback
3945
*/

lib/alert/alert.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<!DOCTYPE html>
2-
<!--
3-
Copyright (C) 2013 - 2014 Angular Dart UI authors. Please see AUTHORS.md.
4-
https://github.com/akserg/angular.dart.ui
5-
All rights reserved. Please see the LICENSE.md file.
6-
-->
7-
<div class='alert' ng-class='"alert-" + (t.type != null ? t.type : "warning")'>
2+
<div class='alert' ng-class='t.alertTypeAsString'>
83
<button type='button' class='close' data-dismiss='alert' ng-hide='t.showable' ng-click='t.closeHandler()'>&times;</button>
94
<content/>
105
</div>

lib/buttons/buttons.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class BtnRadio {
5252
element.on[config.toggleEvent].listen((dom.Event event) {
5353
if (!element.classes.contains(config.activeClass)) {
5454
ngModel.viewValue = scope.eval(btnRadioAttr);
55+
ngModel.render(ngModel.modelValue);
5556
}
5657
});
5758
}
@@ -92,6 +93,7 @@ class BtnCheckbox {
9293
// ui -> model
9394
element.on[config.toggleEvent].listen((dom.Event event) {
9495
ngModel.viewValue = element.classes.contains(config.activeClass) ? falseValue : trueValue;
96+
ngModel.render(ngModel.modelValue);
9597
});
9698
}
9799
}

lib/carousel/carousel.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
<!DOCTYPE html>
2-
<!--
3-
Copyright (C) 2013 - 2014 Angular Dart UI authors. Please see AUTHORS.md.
4-
https://github.com/akserg/angular.dart.ui
5-
All rights reserved. Please see the LICENSE.md file.
6-
-->
72
<div ng-mouseenter='c.pause()' ng-mouseleave='c.play()' class='carousel'>
83
<ol class='carousel-indicators' ng-show='c.slides.length > 1'>
94
<li ng-repeat='slide in c.slides' ng-class='{active: c.isActive(slide)}' ng-click='c.select(slide)'></li>

lib/carousel/slide.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
<!DOCTYPE html>
2-
<!--
3-
Copyright (C) 2013 - 2014 Angular Dart UI authors. Please see AUTHORS.md.
4-
https://github.com/akserg/angular.dart.ui
5-
All rights reserved. Please see the LICENSE.md file.
6-
-->
72
<div ng-class="{
83
'active': s.leaving || (s.active && !s.entering),
94
'prev': (s.next || s.active) && s.direction=='prev',

lib/modal/window.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
<!DOCTYPE html>
2-
<!--
3-
Copyright (C) 2013 - 2014 Angular Dart UI authors. Please see AUTHORS.md.
4-
https://github.com/akserg/angular.dart.ui
5-
All rights reserved. Please see the LICENSE.md file.
6-
-->
72
<div tabindex="-1" class="modal {{ m.windowClass }}" ng-class="{in: '${m.animate}'}"
83
ng-style="{'z-index': '${1050 + index*10}', 'display': 'block'}" ng-click="m.close($event)">
94
<div class="modal-dialog">

lib/progressbar/bar.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<!--
2-
Copyright (C) 2013 - 2014 Angular Dart UI authors. Please see AUTHORS.md.
3-
https://github.com/akserg/angular.dart.ui
4-
All rights reserved. Please see the LICENSE.md file.
5-
-->
1+
<!DOCTYPE html>
62
<div class="progress-bar" ng-class="[ctrl.type, 'progress-bar-' + ctrl.type, ctrl.classes]" ng-pseudo="x-bar">
73
<content></content>
84
</div>

lib/progressbar/progressbar.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<!--
2-
Copyright (C) 2013 - 2014 Angular Dart UI authors. Please see AUTHORS.md.
3-
https://github.com/akserg/angular.dart.ui
4-
All rights reserved. Please see the LICENSE.md file.
5-
-->
1+
<!DOCTYPE html>
62
<div class="progress" ng-class="ctrl.classes">
73
<div class="progress-bar" ng-class="[ctrl.type, 'progress-bar-' + ctrl.type]">
84
<content></content>

0 commit comments

Comments
 (0)