Skip to content

Commit

Permalink
Pre-release 0.0.3: Updated version on Bower
Browse files Browse the repository at this point in the history
  • Loading branch information
jspdown committed Apr 15, 2015
1 parent 0d1cac9 commit c73ecc2
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 51 deletions.
28 changes: 23 additions & 5 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
0.0.2 [WiP]
0.0.3 [Released]
=============================
* Added Wizard directive
* fixes to dropdown to update model, and allow for {{variables}} as title
* code clean up and grunt task optimization

* Animated modal
* Destroy listener was being called to destroy an accordion in the dropdown module
* Corrected spelling in accordion README.md
* Use semantic ui classes instead of inline style in the sidebar module


0.0.2 [Released]
=============================

* Added wizard directive
* Fixes to dropdown to update model, and allow for {{variables}} as title
* Code clean up and grunt task optimization
* Fixed scope issue with accordion
* Updated modal to use ng-class
* Updated accordion to use ng-class
* Updated sidebar to use semantic-ui javascript functions
* Updated README.md
* Corrected spelling in rating module
* Corrected opening problem for the dropdown


0.0.1 [Released]
=============================
Expand All @@ -18,4 +36,4 @@
* `modal` - initial release;
* `popup` - initial release;
* `raiting` - initial release;
* `sidebar` - initial release.
* `sidebar` - initial release.
3 changes: 3 additions & 0 deletions Contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ Contributors:
* [cgroner](https://github.com/cgroner)
* [solcates](https://github.com/solcates)
* [jspdown](https://github.com/jspdown)
* [xblaster](https://github.com/xblaster)
* [frankt117](https://github.com/frankt117)
* [tombee](https://github.com/tombee)
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-semantic-ui",
"description": "Angular - AngularJS directives for Semantic UI.",
"version": "0.0.2",
"version": "0.0.3",
"keywords": [
"angular",
"ui"
Expand Down
29 changes: 14 additions & 15 deletions dist/angular-semantic-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,6 @@ angular.module('angularify.semantic.dropdown', [])

this.add_item = function (scope) {
$scope.items.push(scope);

scope.$on('$destroy', function(event) {
this.remove_accordion(scope);
});

return $scope.items;
};

Expand Down Expand Up @@ -407,18 +402,22 @@ angular.module('angularify.semantic.modal', [])

.directive('modal', function () {
return {
restrict: "E",
restrict: 'E',
replace: true,
transclude: true,
scope: {
model: '=ngModel'
},
template: "<div class=\"ui dimmer page\" ng-class=\"{ active: model }\">" +
"<div class=\"ui test modal transition visible\" style=\"margin-top: -189px;\" ng-transclude>" +
"</div>" +
"</div>",
link: function (scope, element, attrs) {

require: 'ngModel',
template: '<div class="ui modal" ng-transclude></div>',
link: function (scope, element, attrs, ngModel) {
element.modal({
onHide: function () {
ngModel.$setViewValue(false);
}
});
scope.$watch(function () {
return ngModel.$modelValue;
}, function (modelValue){
element.modal(modelValue ? 'show' : 'hide');
});
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-semantic-ui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-semantic-ui",
"description": "Angular - AngularJS directives for Semantic UI.",
"version": "0.0.2",
"version": "0.0.3",
"keywords": [
"angular",
"ui",
Expand Down
28 changes: 0 additions & 28 deletions src/sidebar/test/sidebar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,4 @@ describe('sidebar', function () {
beforeEach(inject(function ($rootScope) {
$scope = $rootScope;
}));

describe('controller', function () {
var ctrl, $element, $attrs;

beforeEach(inject(function($controller) {
$attrs = {}; $element = {};
ctrl = $controller('SideBarController', { $scope: $scope });
}));

describe('add_sidebar_item', function() {
it("SideBarController add_sidebar_item test", function(){
var acc1, acc2;
ctrl.add_sidebar_items(acc1 = $scope.$new());
ctrl.add_sidebar_items(acc2 = $scope.$new());
expect($scope.side_bar_items.length).toBe(2);
});
});

describe('remove_side_bar_item', function(){
it("SideBarController remove_side_bar test", function(){
var acc1, acc2;
ctrl.add_sidebar_items(acc1 = $scope.$new());
ctrl.add_sidebar_items(acc2 = $scope.$new());
ctrl.remove_side_bar_item(acc2);
expect($scope.side_bar_items.length).toBe(1);
})
});
});
});

0 comments on commit c73ecc2

Please sign in to comment.