|
2 | 2 | * angular-ui-bootstrap
|
3 | 3 | * http://angular-ui.github.io/bootstrap/
|
4 | 4 |
|
5 |
| - * Version: 2.3.2 - 2016-12-27 |
| 5 | + * Version: 2.4.0 - 2016-12-29 |
6 | 6 | * License: MIT
|
7 | 7 | */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"]);
|
8 | 8 | 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) {
|
811 | 811 |
|
812 | 812 | angular.module('ui.bootstrap.dateparser', [])
|
813 | 813 |
|
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) { |
815 | 815 | // Pulled from https://github.com/mbostock/d3/blob/master/src/format/requote.js
|
816 | 816 | var SPECIAL_CHARACTERS_REGEXP = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
|
817 | 817 |
|
@@ -1054,6 +1054,23 @@ angular.module('ui.bootstrap.dateparser', [])
|
1054 | 1054 |
|
1055 | 1055 | this.init();
|
1056 | 1056 |
|
| 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 | + |
1057 | 1074 | function createParser(format) {
|
1058 | 1075 | var map = [], regex = format.split('');
|
1059 | 1076 |
|
|
0 commit comments