8000 2.4.0 · angular-ui/bootstrap-bower@9ff1493 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 9ff1493

Browse files
committed
2.4.0
1 parent 2e79ec4 commit 9ff1493

File tree

6 files changed

+50
-16
lines changed

6 files changed

+50
-16
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"license": "MIT",
1212
"ignore": [],
1313
"description": "Native AngularJS (Angular) directives for Bootstrap.",
14-
"version": "2.3.2",
14+
"version": "2.4.0",
1515
"main": ["./ui-bootstrap-tpls.js"],
1616
"dependencies": {
1717
"angular": ">=1.4.0"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-bootstrap",
3-
"version": "2.3.2",
3+
"version": "2.4.0",
44
"description": "Bootstrap widgets for Angular",
55
"main": "index.js",
66
"homepage": "http://angular-ui.github.io/bootstrap/",

ui-bootstrap-tpls.js

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* angular-ui-bootstrap
33
* http://angular-ui.github.io/bootstrap/
44
5-
* Version: 2.3.2 - 2016-12-27
5+
* Version: 2.4.0 - 2016-12-29
66
* License: MIT
77
*/angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);
88
angular.module("ui.bootstrap.tpls", ["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]);
@@ -811,7 +811,7 @@ function($animateCss) {
811811

812812
angular.module('ui.bootstrap.dateparser', [])
813813

814-
.service('uibDateParser', ['$log', '$locale', 'dateFilter', 'orderByFilter', function($log, $locale, dateFilter, orderByFilter) {
814+
.service('uibDateParser', ['$log', '$locale', 'dateFilter', 'orderByFilter', 'filterFilter', function($log, $locale, dateFilter, orderByFilter, filterFilter) {
815815
// Pulled from https://github.com/mbostock/d3/blob/master/src/format/requote.js
816816
var SPECIAL_CHARACTERS_REGEXP = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
817817

@@ -1054,6 +1054,23 @@ angular.module('ui.bootstrap.dateparser', [])
10541054

10551055
this.init();
10561056

1057+
function getFormatCodeToRegex(key) {
1058+
return filterFilter(formatCodeToRegex, {key: key}, true)[0];
1059+
}
1060+
1061+
this.getParser = function (key) {
1062+
var f = getFormatCodeToRegex(key);
1063+
return f && f.apply || null;
1064+
};
1065+
1066+
this.overrideParser = function (key, parser) {
1067+
var f = getFormatCodeToRegex(key);
1068+
if (f && angular.isFunction(parser)) {
1069+
this.parsers = {};
1070+
f.apply = parser;
1071 D7AE +
}
1072+
}.bind(this);
1073+
10571074
function createParser(format) {
10581075
var map = [], regex = format.split('');
10591076

ui-bootstrap-tpls.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui-bootstrap.js

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* angular-ui-bootstrap
33
* http://angular-ui.github.io/bootstrap/
44
5-
* Version: 2.3.2 - 2016-12-27
5+
* Version: 2.4.0 - 2016-12-29
66
* License: MIT
77
*/angular.module("ui.bootstrap", ["ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);
88
angular.module('ui.bootstrap.collapse', [])
@@ -810,7 +810,7 @@ function($animateCss) {
810810

811811
angular.module('ui.bootstrap.dateparser', [])
812812

813-
.service('uibDateParser', ['$log', '$locale', 'dateFilter', 'orderByFilter', function($log, $locale, dateFilter, orderByFilter) {
813+
.service('uibDateParser', ['$log', '$locale', 'dateFilter', 'orderByFilter', 'filterFilter', function($log, $locale, dateFilter, orderByFilter, filterFilter) {
814814
// Pulled from https://github.com/mbostock/d3/blob/master/src/format/requote.js
815815
var SPECIAL_CHARACTERS_REGEXP = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
816816

@@ -1053,6 +1053,23 @@ angular.module('ui.bootstrap.dateparser 341A ', [])
10531053

10541054
this.init();
10551055

1056+
function getFormatCodeToRegex(key) {
1057+
return filterFilter(formatCodeToRegex, {key: key}, true)[0];
1058+
}
1059+
1060+
this.getParser = function (key) {
1061+
var f = getFormatCodeToRegex(key);
1062+
return f && f.apply || null;
1063+
};
1064+
1065+
this.overrideParser = function (key, parser) {
1066+
var f = getFormatCodeToRegex(key);
1067+
if (f && angular.isFunction(parser)) {
1068+
this.parsers = {};
1069+
f.apply = parser;
1070+
}
1071+
}.bind(this);
1072+
10561073
function createParser(format) {
10571074
var map = [], regex = format.split('');
10581075

ui-bootstrap.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0