Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
feat(release): cut the v2.0.0-rc.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Jan 29, 2014
1 parent 1e3945e commit 3e737a2
Show file tree
Hide file tree
Showing 82 changed files with 185 additions and 154 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-strap",
"description": "AngularStrap - AngularJS directives for Twitter Bootstrap",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"keywords": [
"angular",
"bootstrap"
Expand Down
59 changes: 29 additions & 30 deletions dist/angular-strap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* angular-strap
* @version v2.0.0-rc.1 - 2014-01-29
* @version v2.0.0-rc.2 - 2014-01-29
* @link http://mgcrea.github.io/angular-strap
* @author [object Object]
* @license MIT License, http://www.opensource.org/licenses/MIT
Expand Down Expand Up @@ -159,24 +159,19 @@
};
}
]);
angular.module('mgcrea.ngStrap.alert', []).run([
'$templateCache',
function ($templateCache) {
var template = '' + '<div class="alert" tabindex="-1" ng-class="[type ? \'alert-\' + type : null]">' + '<button type="button" class="close" ng-click="$hide()">&times;</button>' + '<strong ng-bind="title"></strong>&nbsp;<span ng-bind-html="content"></span>' + '</div>';
$templateCache.put('$alert', template);
}
]).provider('$alert', function () {
angular.module('mgcrea.ngStrap.alert', []).provider('$alert', function () {
var defaults = this.defaults = {
animation: 'animation-fade',
animation: 'am-fade',
prefixClass: 'alert',
placement: null,
template: '$alert',
template: 'alert/alert.tpl.html',
container: false,
element: null,
backdrop: false,
keyboard: true,
show: true,
duration: false
duration: false,
type: false
};
this.$get = [
'$modal',
Expand Down Expand Up @@ -260,7 +255,7 @@
]);
angular.module('mgcrea.ngStrap.aside', ['mgcrea.ngStrap.modal']).provider('$aside', function () {
var defaults = this.defaults = {
animation: 'animation-fadeAndSlideRight',
animation: 'am-fade-and-slide-right',
prefixClass: 'aside',
placement: 'right',
template: 'aside/aside.tpl.html',
Expand Down Expand Up @@ -460,7 +455,7 @@
'mgcrea.ngStrap.tooltip'
]).provider('$datepicker', function () {
var defaults = this.defaults = {
animation: 'animation-fade',
animation: 'am-fade',
prefixClass: 'datepicker',
placement: 'bottom-left',
template: 'datepicker/datepicker.tpl.html',
Expand Down Expand Up @@ -521,14 +516,14 @@
$datepicker.$build();
}
};
$datepicker.select = function (date, keepMode) {
$datepicker.select = function (date, keep) {
if (!angular.isDate(date))
date = new Date(date);
controller.$dateValue.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());
if (!scope.$mode || keepMode) {
if (!scope.$mode || keep) {
controller.$setViewValue(controller.$dateValue);
controller.$render();
if (options.autoclose && !keepMode) {
if (options.autoclose && !keep) {
$datepicker.hide(true);
}
} else {
Expand Down Expand Up @@ -958,7 +953,7 @@
});
angular.module('mgcrea.ngStrap.dropdown', ['mgcrea.ngStrap.tooltip']).provider('$dropdown', function () {
var defaults = this.defaults = {
animation: 'animation-fade',
animation: 'am-fade',
prefixClass: 'dropdown',
placement: 'bottom-left',
template: 'dropdown/dropdown.tpl.html',
Expand Down Expand Up @@ -1375,7 +1370,7 @@
});
angular.module('mgcrea.ngStrap.modal', ['mgcrea.ngStrap.helpers.dimensions']).provider('$modal', function () {
var defaults = this.defaults = {
animation: 'animation-fade',
animation: 'am-fade',
prefixClass: 'modal',
placement: 'top',
template: 'modal/modal.tpl.html',
Expand All @@ -1399,12 +1394,12 @@
'dimensions',
function ($window, $rootScope, $compile, $q, $templateCache, $http, $animate, $timeout, dimensions) {
var forEach = angular.forEach;
var jqLite = angular.element;
var trim = String.prototype.trim;
var bodyElement = jqLite($window.document.body);
var requestAnimationFrame = $window.requestAnimationFrame || $window.setTimeout;
var bodyElement = angular.element($window.document.body);
var htmlReplaceRegExp = /ng-bind="/gi;
var findElement = function (query, element) {
return jqLite((element || document).querySelectorAll(query));
return angular.element((element || document).querySelectorAll(query));
};
function ModalFactory(config) {
var $modal = {};
Expand Down Expand Up @@ -1454,7 +1449,7 @@
});
}
var modalLinker, modalElement;
var backdropElement = jqLite('<div class="' + options.prefixClass + '-backdrop"/>');
var backdropElement = angular.element('<div class="' + options.prefixClass + '-backdrop"/>');
$modal.$promise.then(function (template) {
if (angular.isObject(template))
template = template.data;
Expand Down Expand Up @@ -1490,7 +1485,7 @@
modalElement.css({ display: 'block' }).addClass(options.placement);
if (options.animation) {
if (options.backdrop) {
backdropElement.addClass('animation-fade');
backdropElement.addClass('am-fade');
}
modalElement.addClass(options.animation);
}
Expand All @@ -1502,7 +1497,10 @@
});
scope.$isShown = true;
scope.$$phase || scope.$digest();
$modal.focus();
var el = modalElement[0];
requestAnimationFrame(function () {
el.focus();
});
bodyElement.addClass(options.prefixClass + '-open');
if (options.backdrop) {
modalElement.on('click', hideOnBackdropClick);
Expand Down Expand Up @@ -1646,7 +1644,7 @@
]);
angular.module('mgcrea.ngStrap.popover', ['mgcrea.ngStrap.tooltip']).provider('$popover', function () {
var defaults = this.defaults = {
animation: 'animation-fade',
animation: 'am-fade',
placement: 'right',
template: 'popover/popover.tpl.html',
contentTemplate: false,
Expand Down Expand Up @@ -1933,7 +1931,7 @@
'mgcrea.ngStrap.helpers.parseOptions'
]).provider('$select', function () {
var defaults = this.defaults = {
animation: 'animation-fade',
animation: 'am-fade',
prefixClass: 'select',
placement: 'bottom-left',
template: 'select/select.tpl.html',
Expand Down Expand Up @@ -2187,7 +2185,7 @@
}
]).provider('$tab', function () {
var defaults = this.defaults = {
animation: 'animation-fade',
animation: 'am-fade',
template: 'tab/tab.tpl.html'
};
this.$get = function () {
Expand Down Expand Up @@ -2240,7 +2238,7 @@
'mgcrea.ngStrap.tooltip'
]).provider('$timepicker', function () {
var defaults = this.defaults = {
animation: 'animation-fade',
animation: 'am-fade',
prefixClass: 'timepicker',
placement: 'bottom-left',
template: 'timepicker/timepicker.tpl.html',
Expand Down Expand Up @@ -2604,7 +2602,7 @@
]);
angular.module('mgcrea.ngStrap.tooltip', ['mgcrea.ngStrap.helpers.dimensions']).provider('$tooltip', function () {
var defaults = this.defaults = {
animation: 'animation-fade',
animation: 'am-fade',
prefixClass: 'tooltip',
container: false,
placement: 'top',
Expand All @@ -2631,6 +2629,7 @@
function ($window, $rootScope, $compile, $q, $templateCache, $http, $animate, $timeout, dimensions) {
var trim = String.prototype.trim;
var requestAnimationFrame = $window.requestAnimationFrame || $window.setTimeout;
var isTouch = 'createTouch' in $window.document;
var htmlReplaceRegExp = /ng-bind="/gi;
var findElement = function (query, element) {
return angular.element((element || document).querySelectorAll(query));
Expand Down Expand Up @@ -2937,7 +2936,7 @@
'mgcrea.ngStrap.helpers.parseOptions'
]).provider('$typeahead', function () {
var defaults = this.defaults = {
animation: 'animation-fade',
animation: 'am-fade',
prefixClass: 'typeahead',
placement: 'bottom-left',
template: 'typeahead/typeahead.tpl.html',
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-strap.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-strap.min.map

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions dist/angular-strap.tpl.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
/**
* angular-strap
* @version v2.0.0-rc.1 - 2014-01-29
* @version v2.0.0-rc.2 - 2014-01-29
* @link http://mgcrea.github.io/angular-strap
* @author [object Object]
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function(window, document, undefined) {
'use strict';
// Source: dist/modules/alert.tpl.js
angular.module('mgcrea.ngStrap.alert').run(['$templateCache', function($templateCache) {
$templateCache.put('alert/alert.tpl.html',
"<div class=\"alert\" tabindex=\"-1\" ng-class=\"[type ? 'alert-' + type : null]\"><button type=\"button\" class=\"close\" ng-click=\"$hide()\">&times;</button> <strong ng-bind=\"title\"></strong>&nbsp;<span ng-bind-html=\"content\"></span></div>"
);

}]);

// Source: dist/modules/aside.tpl.js
angular.module('mgcrea.ngStrap.aside').run(['$templateCache', function($templateCache) {
$templateCache.put('aside/aside.tpl.html',
Expand All @@ -18,7 +26,7 @@ $templateCache.put('aside/aside.tpl.html',
// Source: dist/modules/datepicker.tpl.js
angular.module('mgcrea.ngStrap.datepicker').run(['$templateCache', function($templateCache) {
$templateCache.put('datepicker/datepicker.tpl.html',
"<div class=\"dropdown-menu datepicker\" style=\"max-width: 320px\"><table style=\"table-layout: fixed; height: 100%; width: 100%\"><thead><tr class=\"text-center\"><th><button tabindex=\"-1\" type=\"button\" class=\"btn btn-default pull-left\" ng-click=\"$selectPane(-1)\"><i class=\"glyphicon glyphicon-chevron-left\"></i></button></th><th colspan=\"5\"><button tabindex=\"-1\" type=\"button\" class=\"btn btn-default btn-block text-strong\" ng-click=\"$toggleMode()\"><strong style=\"text-transform: capitalize\" ng-bind=\"title\"></strong></button></th><th><button tabindex=\"-1\" type=\"button\" class=\"btn btn-default pull-right\" ng-click=\"$selectPane(+1)\"><i class=\"glyphicon glyphicon-chevron-right\"></i></button></th></tr><tr ng-show=\"labels\" ng-bind-html=\"labels\"></tr></thead><tbody><tr ng-repeat=\"(i, row) in rows\"><td class=\"text-center\" ng-repeat=\"(j, el) in row\"><button tabindex=\"-1\" type=\"button\" class=\"btn btn-default\" style=\"width: 100%\" ng-class=\"{'btn-primary': el.selected}\" ng-click=\"$select(el.date)\" ng-disabled=\"el.disabled\"><span ng-class=\"{'text-muted': el.muted}\" ng-bind=\"el.label\"></span></button></td></tr></tbody></table></div>"
"<div class=\"dropdown-menu datepicker\" ng-class=\"'datepicker-mode-' + $mode\" style=\"max-width: 320px\"><table style=\"table-layout: fixed; height: 100%; width: 100%\"><thead><tr class=\"text-center\"><th><button tabindex=\"-1\" type=\"button\" class=\"btn btn-default pull-left\" ng-click=\"$selectPane(-1)\"><i class=\"glyphicon glyphicon-chevron-left\"></i></button></th><th colspan=\"{{ rows[0].length - 2 }}\"><button tabindex=\"-1\" type=\"button\" class=\"btn btn-default btn-block text-strong\" ng-click=\"$toggleMode()\"><strong style=\"text-transform: capitalize\" ng-bind=\"title\"></strong></button></th><th><button tabindex=\"-1\" type=\"button\" class=\"btn btn-default pull-right\" ng-click=\"$selectPane(+1)\"><i class=\"glyphicon glyphicon-chevron-right\"></i></button></th></tr><tr ng-show=\"labels\" ng-bind-html=\"labels\"></tr></thead><tbody><tr ng-repeat=\"(i, row) in rows\" height=\"{{ 100 / rows.length }}%\"><td class=\"text-center\" ng-repeat=\"(j, el) in row\"><button tabindex=\"-1\" type=\"button\" class=\"btn btn-default\" style=\"width: 100%\" ng-class=\"{'btn-primary': el.selected}\" ng-click=\"$select(el.date)\" ng-disabled=\"el.disabled\"><span ng-class=\"{'text-muted': el.muted}\" ng-bind=\"el.label\"></span></button></td></tr></tbody></table></div>"
);

}]);
Expand Down
Loading

0 comments on commit 3e737a2

Please sign in to comment.