Socket
Socket
Sign inDemoInstall

bdate

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.6 to 0.7.7

2

bower.json
{
"name": "bdate",
"version": "0.7.6",
"version": "0.7.7",
"homepage": "https://github.com/se-panfilov/bdate",

@@ -5,0 +5,0 @@ "authors": [

@@ -456,3 +456,3 @@ angular.module('bdate', ['bdate.popup', 'bdate.popup.ranged', 'bdate.templates']).directive('bdatepicker', ['$document', '$filter', function($document, $filter) {

isFirstMonth: function() {
if (!scope.popupSource || !scope.popupSource) {
if (!scope.popupSource || !scope.popupSource.month || angular.equals(scope.popupSource, {})) {
return;

@@ -464,3 +464,3 @@ }

var january, month, year;
if (!scope.popupSource || !scope.popupSource.year) {
if (!scope.popupSource || !scope.popupSource.year || angular.equals(scope.popupSource, {})) {
return;

@@ -487,3 +487,3 @@ }

isLastMonth: function() {
if (!scope.popupSource || !scope.popupSource) {
if (!scope.popupSource || !scope.popupSource || angular.equals(scope.popupSource, {})) {
return;

@@ -495,3 +495,3 @@ }

var month, year;
if (!scope.popupSource || !scope.popupSource.year) {
if (!scope.popupSource || !scope.popupSource.year || angular.equals(scope.popupSource, {})) {
return;

@@ -508,3 +508,3 @@ }

isLastYear: function() {
if (!scope.popupSource || !scope.popupSource) {
if (!scope.popupSource || !scope.popupSource || angular.equals(scope.popupSource, {})) {
return;

@@ -515,3 +515,3 @@ }

isSelectedDay: function(date) {
if (!scope.popupResult || !scope.popupResult.day) {
if (!scope.popupResult || !scope.popupResult.day || angular.equals(scope.popupSource, {})) {
return;

@@ -523,3 +523,3 @@ }

var today;
if (!scope.popupSettings || !scope.popupSettings.today) {
if (!scope.popupSettings || !scope.popupSettings.today || angular.equals(scope.popupSettings, {})) {
return;

@@ -526,0 +526,0 @@ }

@@ -1,2 +0,2 @@

angular.module("bdate",["bdate.popup","bdate.popup.ranged","bdate.templates"]).directive("bdatepicker",["$document","$filter",function(e,t){return{restrict:"E",templateUrl:"bdate.html",scope:{bModel:"=",bSource:"=?",bSettings:"=?",bStartSource:"=?",bEndSource:"=?",bRange:"=?",bRootClasses:"@?",bInputClasses:"@?",bButtonClasses:"@?",bPopupClasses:"@?",bMonthNames:"=?",bDaysNames:"=?",placeholder:"@?",bRefresh:"&?",bStartRefresh:"&?",bEndRefresh:"&?"},link:function(p,r){var a,o,n,u,s,l,i;return p.state={isSourceReady:!1},p.data={date:null},a=function(e){var r;return r=new Date(e.year,e.month-1,e.day).getTime(),t("date")(r,p.bSettings.format)},o=function(e){var r,a,o,n;return a=new Date(e.start.year,e.start.month-1,e.start.day).getTime(),r=new Date(e.end.year,e.end.month-1,e.end.day).getTime(),n=t("date")(a,p.bSettings.format),o=t("date")(r,p.bSettings.format),n+p.bSettings.range_delimiter+o},n=function(e){return p.bRange?o(e):a(e)},s=function(e){var t,r,a,o,n,u,s,l,i,c;if(e.length===p.bSettings.format.length){for(a={day:"d",month:"m",year:"y"},t=new RegExp("\\d+","g"),o=p.bSettings.format,o=o.toLowerCase(),n=new RegExp("\\w+","g"),l=o.match(n),c=e.match(t),i={},u=0;u<l.length;)i[l[u]]=c[u],u++;for(s in i)for(r in a)s.indexOf(a[r])>=0&&(a[r]=+i[s]);return a}},u=function(e){var t,r,a,o,n;return a=p.bSettings.range_delimiter.length,o=p.bSettings.format.length,r=e.substr(0,o),t=e.substr(o+a),n={start:s(r),end:s(t)}},l=function(e){var t;return t=null,t=p.bRange?u(e):s(e)},p.watchers={popup:{result:{handler:null,start:function(e){return p.watchers.popup.result.handler?void 0:(p.watchers.popup.result.handler=p.$watch("popup.result",function(t,p){return e?e(t,p):void 0},!0),p.watchers.popup.result.handler)},stop:function(){return p.watchers.popup.result.handler(),p.watchers.popup.result.handler=null}}},watchPopupResult:function(e){return p.watchers.popup.result.start(function(t,r){return t!==r&&t&&!angular.equals({},t)?(p.watchers.bModel.stop(),p.bModel=n(p.popup.result),p.watchers.bModel.start(),e?e(t,r):void 0):void 0})},bModel:{handler:null,start:function(e){return p.watchers.bModel.handler?void 0:(p.watchers.bModel.handler=p.$watch("bModel",function(t,p){return e?e(t,p):void 0},!0),p.watchers.bModel.handler)},stop:function(){return p.watchers.bModel.handler(),p.watchers.bModel.handler=null}},watchBModel:function(e,t){return p.watchers.bModel.start(function(r,a){if(r!==a){if(r)return p.popup.result&&r===n(p.popup.result)||(p.watchers.popup.result.stop(),p.popup.result=l(r),p.watchers.popup.result.start()),e?e(r,a):void 0;if(t)return t()}else if(t)return t()})},bSource:{handler:null,start:function(e){return p.watchers.bSource.handler?void 0:(p.watchers.bSource.handler=p.$watch("bSource",function(t,p){return e?e(t,p):void 0}),p.watchers.bSource.handler)},stop:function(){return p.watchers.bSource.handler(),p.watchers.bSource.handler=null}},bStartSource:{handler:null,start:function(e){return p.watchers.bStartSource.handler?void 0:(p.watchers.bStartSource.handler=p.$watch("bStartSource",function(t,p){return e?e(t,p):void 0}),p.watchers.bStartSource.handler)},stop:function(){return p.watchers.bStartSource.handler()}},bEndSource:{handler:null,start:function(e){return p.watchers.bEndSource.handler?void 0:(p.watchers.bEndSource.handler=p.$watch("bEndSource",function(t,p){return e?e(t,p):void 0}),p.watchers.bEndSource.handler)},stop:function(){return p.watchers.bEndSource.handler(),p.watchers.bEndSource.handler=null}},watchSource:function(e){var t,r;return p.bRange?(r=!1,t=!1,p.watchers.bStartSource.start(function(a){return a?(r=!0,r&&t&&(p.isSourceReady=!0,p.watchers.bStartSource.stop(),p.watchers.bEndSource.stop(),e)?e(a):void 0):void 0}),p.watchers.bEndSource.start(function(a){return a?(t=!0,r&&t&&(p.isSourceReady=!0,p.watchers.bStartSource.stop(),p.watchers.bEndSource.stop(),e)?e(a):void 0):void 0})):p.watchers.bSource.start(function(t){return t?(p.isSourceReady=!0,p.watchers.bSource.stop(),e?e(t):void 0):void 0})}},i=function(e){var t,a,o,n;return a=p.popup.state.isOpen,t=e.target,n=r,o=n!==t&&!n[0].contains(t),a&&o?p.$apply(function(){return p.popup.hidePopup()}):void 0},p.clear=function(){return p.bModel=null,p.popup.result=null},p.popup={result:null,state:{isOpen:!1},togglePopup:function(){return p.isSourceReady?p.popup.state.isOpen=!p.popup.state.isOpen:void 0},hidePopup:function(){return p.popup.state.isOpen=!1}},function(){return p.watchers.watchSource(function(){return p.watchers.watchBModel(null,function(){return p.watchers.watchPopupResult()})}),p.bRange?(p.bStartRefresh(),p.bEndRefresh()):p.bRefresh()}(),p.bRefreshWrap=function(e,t){return p.bRefresh({m:e,y:t})},p.bStartRefreshWrap=function(e,t){return p.bStartRefresh({m:e,y:t})},p.bEndRefreshWrap=function(e,t){return p.bEndRefresh({m:e,y:t})},e.on("click",i)}}}]),angular.module("bdate.popup",["bdate.templates"]).directive("bdatePopup",function(){return{restrict:"E",replace:!0,templateUrl:"popup.html",scope:{popupState:"=",popupSettings:"=",popupSource:"=",popupResult:"=",popupRefresh:"&?"},link:function(e){return e.watchers={result:{handler:null,start:function(t){return e.watchers.result.handler?void 0:e.watchers.result.handler=e.$watch("popupResult",function(e,p){return t?t(e,p):void 0},!0)},stop:function(){return e.watchers.result.handler(),e.watchers.result.handler=null},watchPopupResult:function(t){return e.watchers.result.start(function(p,r){return p!==r&&p&&!angular.equals({},p)?(e.popup.refreshSelectedData(p.month,p.year),t?t(p,r):void 0):void 0})}}},e.popup={hidePopup:function(){return e.popupState.isOpen=!1},selectDate:function(t){return e.popupResult=t,e.popup.hidePopup(),e.popup.isDayInSelectedMonth(t)?void 0:e.popup.refreshSelectedData(t.month,t.year)},goPrevYear:function(){var t,p;if(e.popupSource&&e.popupSource.year)return e.popupSource.year.isStart?(console.error("error"),!1):(p=e.popupSource.year.num-1,t=e.popupSource.month.num,e.popup.refreshSelectedData(t,p))},isFirstYear:function(){return e.popupSource&&e.popupSource?e.popupSource.year.isStart:void 0},goPrevMonth:function(){var t,p,r;if(e.popupSource&&e.popupSource.year){if(e.popupSource.month.isStart&&e.popupSource.year.isStart)return console.error("error"),!1;if(t=12,p=e.popupSource.month.num,e.popupSource.month.isStart)r=e.popupSource.year.num-1,p=t;else{if(e.popupSource.month.isStart&&e.popupSource.year.isStart)return console.error("error"),!1;r=e.popupSource.year.num,p=e.popupSource.month.num-1}return e.popup.refreshSelectedData(p,r)}},isFirstMonth:function(){return e.popupSource&&e.popupSource?e.popupSource.month.isStart:void 0},goNextMonth:function(){var t,p,r;if(e.popupSource&&e.popupSource.year){if(e.popupSource.month.isEnd&&e.popupSource.year.isEnd)return console.error("error"),!1;if(t=1,p=e.popupSource.month.num,e.popupSource.month.isEnd)r=e.popupSource.year.num+1,p=t;else{if(e.popupSource.month.isEnd&&e.popupSource.year.isEnd)return console.error("error"),!1;r=e.popupSource.year.num,p=e.popupSource.month.num+1}return e.popup.refreshSelectedData(p,r)}},isLastMonth:function(){return e.popupSource&&e.popupSource?e.popupSource.month.isEnd:void 0},goNextYear:function(){var t,p;if(e.popupSource&&e.popupSource.year)return e.popupSource.year.isEnd?(console.error("error"),!1):(p=e.popupSource.year.num+1,t=e.popupSource.month.num,e.popup.refreshSelectedData(t,p))},isLastYear:function(){return e.popupSource&&e.popupSource?e.popupSource.year.isEnd:void 0},isSelectedDay:function(t){return e.popupResult&&e.popupResult.day?t.day===e.popupResult.day&&t.month===e.popupResult.month&&t.year===e.popupResult.year:void 0},getTodayDateTime:function(){var t;if(e.popupSettings&&e.popupSettings.today)return t=e.popupSettings.today,new Date(t.year,t.month-1,t.day).getTime()},isDayInSelectedMonth:function(t){return t.month===e.popupSource.month.num&&t.year===e.popupSource.year.num},goToYear:function(){var t,p;return p=e.popupSource.year.num,t=e.popupSource.month.num,e.popup.refreshSelectedData(t,p)},refreshSelectedData:function(t,p){return e.popupRefresh({m:t,y:p})}},function(){return e.watchers.result.watchPopupResult()}()}}}),angular.module("bdate.popup.ranged",["bdate.templates"]).directive("bdateRangePopup",function(){return{restrict:"E",replace:!0,templateUrl:"range-popup.html",scope:{popupState:"=",popupSettings:"=",popupStartSource:"=",popupEndSource:"=",popupResult:"=",popupStartRefresh:"&?",popupEndRefresh:"&?"},link:function(e){var t,p;return e.data={startResult:null,endResult:null},e.watchers={result:{handler:null,start:function(t){return e.watchers.result.handler?void 0:e.watchers.result.handler=e.$watch("popupResult",function(e,p){return t?t(e,p):void 0},!0)},stop:function(){return e.watchers.result.handler(),e.watchers.result.handler=null},watchPopupResult:function(t){return e.watchers.result.start(function(p,r){return p!==r&&p&&!angular.equals({},p)?(e.popup.refreshSelectedData(!0,p.start.month,p.start.year),e.popup.refreshSelectedData(!1,p.end.month,p.end.year),t?t(p,r):void 0):void 0})}}},t=function(t){return t?e.popupStartSource:e.popupEndSource},p=function(t,p){return t?e.data.startResult=p:e.data.endResult=p},e.popup={hidePopup:function(){return e.popupState.isOpen=!1},selectDate:function(t,r){return p(t,r),e.popup.isDayInSelectedMonth(t,r)?void 0:e.popup.refreshSelectedData(t,r.month,r.year)},goPrevYear:function(p){var r,a,o;return a=t(p),a&&a.year?a.year.isStart?(console.error("error"),!1):(o=a.year.num-1,r=a.month.num,e.popup.refreshSelectedData(p,r,o)):void 0},isFirstYear:function(e){var p;return p=t(e),p&&p?p.year.isStart:void 0},goPrevMonth:function(p){var r,a,o,n;if(o=t(p),o&&o.year){if(o.month.isStart&&o.year.isStart)return console.error("error"),!1;if(r=12,a=o.month.num,o.month.isStart)n=o.year.num-1,a=r;else{if(o.month.isStart&&o.year.isStart)return console.error("error"),!1;n=o.year.num,a=o.month.num-1}return e.popup.refreshSelectedData(p,a,n)}},isFirstMonth:function(e){var p;return p=t(e),p&&p?p.month.isStart:void 0},goNextMonth:function(p){var r,a,o,n;if(o=t(p),o&&o.year){if(o.month.isEnd&&o.year.isEnd)return console.error("error"),!1;if(r=1,a=o.month.num,o.month.isEnd)n=o.year.num+1,a=r;else{if(o.month.isEnd&&o.year.isEnd)return console.error("error"),!1;n=o.year.num,a=o.month.num+1}return e.popup.refreshSelectedData(p,a,n)}},isLastMonth:function(e){var p;return p=t(e),p&&p?p.month.isEnd:void 0},goNextYear:function(p){var r,a,o;return a=t(p),a&&a.year?a.year.isEnd?(console.error("error"),!1):(o=a.year.num+1,r=a.month.num,e.popup.refreshSelectedData(p,r,o)):void 0},isLastYear:function(e){var p;return p=t(e),p&&p?p.year.isEnd:void 0},isSelectedDay:function(t,p){if(t){if(!e.data.startResult||!e.data.startResult.day)return;return p.day===e.data.startResult.day&&p.month===e.data.startResult.month&&p.year===e.data.startResult.year}if(e.data.endResult&&e.data.endResult.day)return p.day===e.data.endResult.day&&p.month===e.data.endResult.month&&p.year===e.data.endResult.year},getTodayDateTime:function(){var t;if(e.popupSettings&&e.popupSettings.today)return t=e.popupSettings.today,new Date(t.year,t.month-1,t.day).getTime()},isDayInSelectedMonth:function(e,p){var r;return r=t(e),p.month===r.month.num&&p.year===r.year.num},goToYear:function(p){var r,a,o;return a=t(p),o=a.year.num,r=a.month.num,e.popup.refreshSelectedData(p,r,o)},refreshSelectedData:function(t,p,r){return t?e.popupStartRefresh({m:p,y:r}):e.popupEndRefresh({m:p,y:r})},selectRangedDate:function(){return e.popupResult={start:e.data.startResult,end:e.data.endResult},e.popup.hidePopup()}},function(){return e.watchers.result.watchPopupResult()}()}}}),angular.module("bdate.templates",[]).run(["$templateCache",function(e){e.put("bdate.html",'<div ng-class="{b_datepicker_in_progress: !isSourceReady}" class="b_datepicker_root {{::bRootClasses}}"><input type=text ng-model=bModel placeholder={{placeholder}} ng-click=popup.togglePopup() ng-disabled=!isSourceReady aria-label="Toggle date popup" readonly=readonly class="b_datepicker_input {{::bInputClasses}}"><button type=button ng-click=clear() ng-keydown=clear() aria-label="Clear Date" class="b_clear_btn {{::bButtonClasses}}">&times;</button><button type=button ng-click=popup.togglePopup() ng-keydown=popup.togglePopup() ng-disabled=!isSourceReady aria-label="Toggle date popup" class="b_datepicker_button b_calendar_btn {{::bButtonClasses}}">&nbsp;</button><bdate-popup popup-settings=bSettings popup-state=popup.state popup-source=bSource popup-result=popup.result popup-refresh="bRefreshWrap(m, y)" ng-if=!bRange class={{::bPopupClasses}}></bdate-popup><bdate-range-popup popup-settings=bSettings popup-state=popup.state popup-start-source=bStartSource popup-end-source=bEndSource popup-result=popup.result popup-start-refresh="bStartRefreshWrap(m, y)" popup-end-refresh="bEndRefreshWrap(m, y)" ng-if=bRange class={{::bPopupClasses}}></bdate-range-popup></div>'),e.put("popup.html",'<div ng-show=popupState.isOpen aria-label="Select date popup" class=b_popup><div aria-label="Popup navigation" class=b_popup_controls><div class=b_btn_prev_container><button type=button ng-click=popup.goPrevYear() aria-label="Select preview year" ng-disabled=popup.isFirstYear() class="b_popup_btn b_btn_prev">&#9664; &#9664;</button><button type=button ng-click=popup.goPrevMonth() aria-label="Select preview month" ng-disabled="popup.isFirstMonth() &amp;&amp; popup.isFirstYear()" class="b_popup_btn b_btn_prev">&#9664;</button></div><div ng-bind=popupSource.month.name class=b_popup_month></div>&nbsp;<select ng-model=popupSource.year.num ng-options="year for year in popupSource.years" ng-init="year = popupSource.year.num" aria-label="Select year from list" ng-change=popup.goToYear() class=b_popup_year></select><div class=b_btn_next_container><button type=button ng-click=popup.goNextMonth() aria-label="Select next month" ng-disabled="popup.isLastMonth() &amp;&amp; popup.isLastYear()" class="b_popup_btn b_btn_next">&#9654;</button><button type=button ng-click=popup.goNextYear() aria-label="Select next year" ng-disabled=popup.isLastYear() class="b_popup_btn b_btn_next">&#9654; &#9654;</button></div></div><table aria-label="Days of selected month" class=b_popup_days><tr><td ng-repeat="dayOfWeek in ::popupSettings.week" aria-label="Days of week" class=b_popup_day_of_week><span ng-bind=::dayOfWeek></span></td></tr></table><table class=b_popup_weeks><tr aria-label="Days of month" class=b_popup_week><td ng-repeat="date in popupSource.dates track by $index" ng-class="{b_popup_today_day_container: date.isToday}" class=b_popup_day><button type=button ng-bind=date.day ng-click=popup.selectDate(date) ng-disabled=date.isDisabled aria-label={{date.day}}-{{date.month}}-{{date.year}} ng-class="{b_popup_day_in_selected_month: popup.isDayInSelectedMonth(date), b_popup_today_day: date.isToday, b_popup_selected_day: popup.isSelectedDay(date)}" class=b_popup_day_btn></button></td></tr></table><div ng-show=popupSettings.today aria-label="Select today" class=b_popup_today><button type=button ng-bind="popup.getTodayDateTime() | date:popupSettings.format" ng-click=popup.selectDate(popupSettings.today) class=b_popup_today_btn></button></div></div>'),e.put("range-popup.html",'<div ng-show=popupState.isOpen aria-label="Select dates range popup" class=b_range_popup_back><div class="b_popup b_range_popup b_range_popup_start"><div aria-label="Popup navigation" class=b_popup_controls><div class=b_btn_prev_container><button type=button ng-click=popup.goPrevYear(true) aria-label="Select preview year" ng-disabled=popup.isFirstYear(true) class="b_popup_btn b_btn_prev">&#9664; &#9664;</button><button type=button ng-click=popup.goPrevMonth(true) aria-label="Select preview month" ng-disabled="popup.isFirstMonth(true) &amp;&amp; popup.isFirstYear(true)" class="b_popup_btn b_btn_prev">&#9664;</button></div><div ng-bind=popupStartSource.month.name class=b_popup_month></div>&nbsp;<select ng-model=popupStartSource.year.num ng-options="year for year in popupStartSource.years" ng-init="year = popupStartSource.year.num" aria-label="Select year from list" ng-change=popup.goToYear(true) class=b_popup_year></select><div class=b_btn_next_container><button type=button ng-click=popup.goNextMonth(true) aria-label="Select next month" ng-disabled="popup.isLastMonth(true) &amp;&amp; popup.isLastYear(true)" class="b_popup_btn b_btn_next">&#9654;</button><button type=button ng-click=popup.goNextYear(true) aria-label="Select next year" ng-disabled=popup.isLastYear(true) class="b_popup_btn b_btn_next">&#9654; &#9654;</button></div></div><table aria-label="Days of selected month" class=b_popup_days><tr><td ng-repeat="dayOfWeek in ::popupSettings.week" class=b_popup_day_of_week><span ng-bind=::dayOfWeek></span></td></tr></table><table class=b_popup_weeks><tr aria-label="Days of month" class=b_popup_week><td ng-repeat="date in popupStartSource.dates track by $index" ng-class="{b_popup_today_day_container: date.isToday}" class=b_popup_day><button type=button ng-bind=date.day ng-click="popup.selectDate(true, date)" ng-disabled=date.isDisabled aria-label={{date.day}}-{{date.month}}-{{date.year}} ng-class="{b_popup_day_in_selected_month: popup.isDayInSelectedMonth(true, date), b_popup_today_day: date.isToday, b_popup_selected_day: popup.isSelectedDay(true, date)}" class=b_popup_day_btn></button></td></tr></table><div ng-show=popupSettings.today aria-label="Select today" class=b_popup_today><button type=button ng-click="popup.selectDate(true, popupSettings.today)" ng-bind="popup.getTodayDateTime() | date:popupSettings.format" class=b_popup_today_btn></button></div></div><div class="b_popup b_range_popup b_range_popup_end"><div aria-label="Popup navigation" class=b_popup_controls><div class=b_btn_prev_container><button type=button ng-click=popup.goPrevYear(false) aria-label="Select preview year" ng-disabled=popup.isFirstYear(false) class="b_popup_btn b_btn_prev">&#9664; &#9664;</button><button type=button ng-click=popup.goPrevMonth(false) aria-label="Select preview month" ng-disabled="popup.isFirstMonth(false) &amp;&amp; popup.isFirstYear(false)" class="b_popup_btn b_btn_prev">&#9664;</button></div><div ng-bind=popupEndSource.month.name class=b_popup_month></div>&nbsp;<select ng-model=popupEndSource.year.num ng-options="year for year in popupEndSource.years" ng-init="year = popupEndSource.year.num" aria-label="Select year from list" ng-change=popup.goToYear(false) class=b_popup_year></select><div class=b_btn_next_container><button type=button ng-click=popup.goNextMonth(false) aria-label="Select next month" ng-disabled="popup.isLastMonth(false) &amp;&amp; popup.isLastYear(false)" class="b_popup_btn b_btn_next">&#9654;</button><button type=button ng-click=popup.goNextYear(false) aria-label="Select next year" ng-disabled=popup.isLastYear(false) class="b_popup_btn b_btn_next">&#9654; &#9654;</button></div></div><table aria-label="Days of selected month" class=b_popup_days><tr><td ng-repeat="dayOfWeek in ::popupSettings.week" class=b_popup_day_of_week><span ng-bind=::dayOfWeek></span></td></tr></table><table class=b_popup_weeks><tr aria-label="Days of month" class=b_popup_week><td ng-repeat="date in popupEndSource.dates track by $index" ng-class="{b_popup_today_day_container: date.isToday}" class=b_popup_day><button type=button ng-bind=date.day ng-click="popup.selectDate(false, date)" ng-disabled=date.isDisabled aria-label={{date.day}}-{{date.month}}-{{date.year}} ng-class="{b_popup_day_in_selected_month: popup.isDayInSelectedMonth(false, date), b_popup_today_day: date.isToday, b_popup_selected_day: popup.isSelectedDay(false, date)}" class=b_popup_day_btn></button></td></tr></table><div ng-show=popupSettings.today aria-label="Select today" class=b_popup_today><button type=button ng-click="popup.selectDate(false, popupSettings.today)" ng-bind="popup.getTodayDateTime() | date:popupSettings.format" class=b_popup_today_btn></button></div></div><button type=button ng-disabled="!data.startResult || !data.endResult" ng-click=popup.selectRangedDate() class=ok_btn>Ok</button></div>')}]);
angular.module("bdate",["bdate.popup","bdate.popup.ranged","bdate.templates"]).directive("bdatepicker",["$document","$filter",function(e,t){return{restrict:"E",templateUrl:"bdate.html",scope:{bModel:"=",bSource:"=?",bSettings:"=?",bStartSource:"=?",bEndSource:"=?",bRange:"=?",bRootClasses:"@?",bInputClasses:"@?",bButtonClasses:"@?",bPopupClasses:"@?",bMonthNames:"=?",bDaysNames:"=?",placeholder:"@?",bRefresh:"&?",bStartRefresh:"&?",bEndRefresh:"&?"},link:function(p,a){var r,o,n,u,s,l,c;return p.state={isSourceReady:!1},p.data={date:null},r=function(e){var a;return a=new Date(e.year,e.month-1,e.day).getTime(),t("date")(a,p.bSettings.format)},o=function(e){var a,r,o,n;return r=new Date(e.start.year,e.start.month-1,e.start.day).getTime(),a=new Date(e.end.year,e.end.month-1,e.end.day).getTime(),n=t("date")(r,p.bSettings.format),o=t("date")(a,p.bSettings.format),n+p.bSettings.range_delimiter+o},n=function(e){return p.bRange?o(e):r(e)},s=function(e){var t,a,r,o,n,u,s,l,c,i;if(e.length===p.bSettings.format.length){for(r={day:"d",month:"m",year:"y"},t=new RegExp("\\d+","g"),o=p.bSettings.format,o=o.toLowerCase(),n=new RegExp("\\w+","g"),l=o.match(n),i=e.match(t),c={},u=0;u<l.length;)c[l[u]]=i[u],u++;for(s in c)for(a in r)s.indexOf(r[a])>=0&&(r[a]=+c[s]);return r}},u=function(e){var t,a,r,o,n;return r=p.bSettings.range_delimiter.length,o=p.bSettings.format.length,a=e.substr(0,o),t=e.substr(o+r),n={start:s(a),end:s(t)}},l=function(e){var t;return t=null,t=p.bRange?u(e):s(e)},p.watchers={popup:{result:{handler:null,start:function(e){return p.watchers.popup.result.handler?void 0:(p.watchers.popup.result.handler=p.$watch("popup.result",function(t,p){return e?e(t,p):void 0},!0),p.watchers.popup.result.handler)},stop:function(){return p.watchers.popup.result.handler(),p.watchers.popup.result.handler=null}}},watchPopupResult:function(e){return p.watchers.popup.result.start(function(t,a){return t!==a&&t&&!angular.equals({},t)?(p.watchers.bModel.stop(),p.bModel=n(p.popup.result),p.watchers.bModel.start(),e?e(t,a):void 0):void 0})},bModel:{handler:null,start:function(e){return p.watchers.bModel.handler?void 0:(p.watchers.bModel.handler=p.$watch("bModel",function(t,p){return e?e(t,p):void 0},!0),p.watchers.bModel.handler)},stop:function(){return p.watchers.bModel.handler(),p.watchers.bModel.handler=null}},watchBModel:function(e,t){return p.watchers.bModel.start(function(a,r){if(a!==r){if(a)return p.popup.result&&a===n(p.popup.result)||(p.watchers.popup.result.stop(),p.popup.result=l(a),p.watchers.popup.result.start()),e?e(a,r):void 0;if(t)return t()}else if(t)return t()})},bSource:{handler:null,start:function(e){return p.watchers.bSource.handler?void 0:(p.watchers.bSource.handler=p.$watch("bSource",function(t,p){return e?e(t,p):void 0}),p.watchers.bSource.handler)},stop:function(){return p.watchers.bSource.handler(),p.watchers.bSource.handler=null}},bStartSource:{handler:null,start:function(e){return p.watchers.bStartSource.handler?void 0:(p.watchers.bStartSource.handler=p.$watch("bStartSource",function(t,p){return e?e(t,p):void 0}),p.watchers.bStartSource.handler)},stop:function(){return p.watchers.bStartSource.handler()}},bEndSource:{handler:null,start:function(e){return p.watchers.bEndSource.handler?void 0:(p.watchers.bEndSource.handler=p.$watch("bEndSource",function(t,p){return e?e(t,p):void 0}),p.watchers.bEndSource.handler)},stop:function(){return p.watchers.bEndSource.handler(),p.watchers.bEndSource.handler=null}},watchSource:function(e){var t,a;return p.bRange?(a=!1,t=!1,p.watchers.bStartSource.start(function(r){return r?(a=!0,a&&t&&(p.isSourceReady=!0,p.watchers.bStartSource.stop(),p.watchers.bEndSource.stop(),e)?e(r):void 0):void 0}),p.watchers.bEndSource.start(function(r){return r?(t=!0,a&&t&&(p.isSourceReady=!0,p.watchers.bStartSource.stop(),p.watchers.bEndSource.stop(),e)?e(r):void 0):void 0})):p.watchers.bSource.start(function(t){return t?(p.isSourceReady=!0,p.watchers.bSource.stop(),e?e(t):void 0):void 0})}},c=function(e){var t,r,o,n;return r=p.popup.state.isOpen,t=e.target,n=a,o=n!==t&&!n[0].contains(t),r&&o?p.$apply(function(){return p.popup.hidePopup()}):void 0},p.clear=function(){return p.bModel=null,p.popup.result=null},p.popup={result:null,state:{isOpen:!1},togglePopup:function(){return p.isSourceReady?p.popup.state.isOpen=!p.popup.state.isOpen:void 0},hidePopup:function(){return p.popup.state.isOpen=!1}},function(){return p.watchers.watchSource(function(){return p.watchers.watchBModel(null,function(){return p.watchers.watchPopupResult()})}),p.bRange?(p.bStartRefresh(),p.bEndRefresh()):p.bRefresh()}(),p.bRefreshWrap=function(e,t){return p.bRefresh({m:e,y:t})},p.bStartRefreshWrap=function(e,t){return p.bStartRefresh({m:e,y:t})},p.bEndRefreshWrap=function(e,t){return p.bEndRefresh({m:e,y:t})},e.on("click",c)}}}]),angular.module("bdate.popup",["bdate.templates"]).directive("bdatePopup",function(){return{restrict:"E",replace:!0,templateUrl:"popup.html",scope:{popupState:"=",popupSettings:"=",popupSource:"=",popupResult:"=",popupRefresh:"&?"},link:function(e){return e.watchers={result:{handler:null,start:function(t){return e.watchers.result.handler?void 0:e.watchers.result.handler=e.$watch("popupResult",function(e,p){return t?t(e,p):void 0},!0)},stop:function(){return e.watchers.result.handler(),e.watchers.result.handler=null},watchPopupResult:function(t){return e.watchers.result.start(function(p,a){return p!==a&&p&&!angular.equals({},p)?(e.popup.refreshSelectedData(p.month,p.year),t?t(p,a):void 0):void 0})}}},e.popup={hidePopup:function(){return e.popupState.isOpen=!1},selectDate:function(t){return e.popupResult=t,e.popup.hidePopup(),e.popup.isDayInSelectedMonth(t)?void 0:e.popup.refreshSelectedData(t.month,t.year)},goPrevYear:function(){var t,p;if(e.popupSource&&e.popupSource.year)return e.popupSource.year.isStart?(console.error("error"),!1):(p=e.popupSource.year.num-1,t=e.popupSource.month.num,e.popup.refreshSelectedData(t,p))},isFirstYear:function(){return e.popupSource&&e.popupSource?e.popupSource.year.isStart:void 0},goPrevMonth:function(){var t,p,a;if(e.popupSource&&e.popupSource.year){if(e.popupSource.month.isStart&&e.popupSource.year.isStart)return console.error("error"),!1;if(t=12,p=e.popupSource.month.num,e.popupSource.month.isStart)a=e.popupSource.year.num-1,p=t;else{if(e.popupSource.month.isStart&&e.popupSource.year.isStart)return console.error("error"),!1;a=e.popupSource.year.num,p=e.popupSource.month.num-1}return e.popup.refreshSelectedData(p,a)}},isFirstMonth:function(){return e.popupSource&&e.popupSource.month&&!angular.equals(e.popupSource,{})?e.popupSource.month.isStart:void 0},goNextMonth:function(){var t,p,a;if(e.popupSource&&e.popupSource.year&&!angular.equals(e.popupSource,{})){if(e.popupSource.month.isEnd&&e.popupSource.year.isEnd)return console.error("error"),!1;if(t=1,p=e.popupSource.month.num,e.popupSource.month.isEnd)a=e.popupSource.year.num+1,p=t;else{if(e.popupSource.month.isEnd&&e.popupSource.year.isEnd)return console.error("error"),!1;a=e.popupSource.year.num,p=e.popupSource.month.num+1}return e.popup.refreshSelectedData(p,a)}},isLastMonth:function(){return e.popupSource&&e.popupSource&&!angular.equals(e.popupSource,{})?e.popupSource.month.isEnd:void 0},goNextYear:function(){var t,p;if(e.popupSource&&e.popupSource.year&&!angular.equals(e.popupSource,{}))return e.popupSource.year.isEnd?(console.error("error"),!1):(p=e.popupSource.year.num+1,t=e.popupSource.month.num,e.popup.refreshSelectedData(t,p))},isLastYear:function(){return e.popupSource&&e.popupSource&&!angular.equals(e.popupSource,{})?e.popupSource.year.isEnd:void 0},isSelectedDay:function(t){return e.popupResult&&e.popupResult.day&&!angular.equals(e.popupSource,{})?t.day===e.popupResult.day&&t.month===e.popupResult.month&&t.year===e.popupResult.year:void 0},getTodayDateTime:function(){var t;if(e.popupSettings&&e.popupSettings.today&&!angular.equals(e.popupSettings,{}))return t=e.popupSettings.today,new Date(t.year,t.month-1,t.day).getTime()},isDayInSelectedMonth:function(t){return t.month===e.popupSource.month.num&&t.year===e.popupSource.year.num},goToYear:function(){var t,p;return p=e.popupSource.year.num,t=e.popupSource.month.num,e.popup.refreshSelectedData(t,p)},refreshSelectedData:function(t,p){return e.popupRefresh({m:t,y:p})}},function(){return e.watchers.result.watchPopupResult()}()}}}),angular.module("bdate.popup.ranged",["bdate.templates"]).directive("bdateRangePopup",function(){return{restrict:"E",replace:!0,templateUrl:"range-popup.html",scope:{popupState:"=",popupSettings:"=",popupStartSource:"=",popupEndSource:"=",popupResult:"=",popupStartRefresh:"&?",popupEndRefresh:"&?"},link:function(e){var t,p;return e.data={startResult:null,endResult:null},e.watchers={result:{handler:null,start:function(t){return e.watchers.result.handler?void 0:e.watchers.result.handler=e.$watch("popupResult",function(e,p){return t?t(e,p):void 0},!0)},stop:function(){return e.watchers.result.handler(),e.watchers.result.handler=null},watchPopupResult:function(t){return e.watchers.result.start(function(p,a){return p!==a&&p&&!angular.equals({},p)?(e.popup.refreshSelectedData(!0,p.start.month,p.start.year),e.popup.refreshSelectedData(!1,p.end.month,p.end.year),t?t(p,a):void 0):void 0})}}},t=function(t){return t?e.popupStartSource:e.popupEndSource},p=function(t,p){return t?e.data.startResult=p:e.data.endResult=p},e.popup={hidePopup:function(){return e.popupState.isOpen=!1},selectDate:function(t,a){return p(t,a),e.popup.isDayInSelectedMonth(t,a)?void 0:e.popup.refreshSelectedData(t,a.month,a.year)},goPrevYear:function(p){var a,r,o;return r=t(p),r&&r.year?r.year.isStart?(console.error("error"),!1):(o=r.year.num-1,a=r.month.num,e.popup.refreshSelectedData(p,a,o)):void 0},isFirstYear:function(e){var p;return p=t(e),p&&p?p.year.isStart:void 0},goPrevMonth:function(p){var a,r,o,n;if(o=t(p),o&&o.year){if(o.month.isStart&&o.year.isStart)return console.error("error"),!1;if(a=12,r=o.month.num,o.month.isStart)n=o.year.num-1,r=a;else{if(o.month.isStart&&o.year.isStart)return console.error("error"),!1;n=o.year.num,r=o.month.num-1}return e.popup.refreshSelectedData(p,r,n)}},isFirstMonth:function(e){var p;return p=t(e),p&&p?p.month.isStart:void 0},goNextMonth:function(p){var a,r,o,n;if(o=t(p),o&&o.year){if(o.month.isEnd&&o.year.isEnd)return console.error("error"),!1;if(a=1,r=o.month.num,o.month.isEnd)n=o.year.num+1,r=a;else{if(o.month.isEnd&&o.year.isEnd)return console.error("error"),!1;n=o.year.num,r=o.month.num+1}return e.popup.refreshSelectedData(p,r,n)}},isLastMonth:function(e){var p;return p=t(e),p&&p?p.month.isEnd:void 0},goNextYear:function(p){var a,r,o;return r=t(p),r&&r.year?r.year.isEnd?(console.error("error"),!1):(o=r.year.num+1,a=r.month.num,e.popup.refreshSelectedData(p,a,o)):void 0},isLastYear:function(e){var p;return p=t(e),p&&p?p.year.isEnd:void 0},isSelectedDay:function(t,p){if(t){if(!e.data.startResult||!e.data.startResult.day)return;return p.day===e.data.startResult.day&&p.month===e.data.startResult.month&&p.year===e.data.startResult.year}if(e.data.endResult&&e.data.endResult.day)return p.day===e.data.endResult.day&&p.month===e.data.endResult.month&&p.year===e.data.endResult.year},getTodayDateTime:function(){var t;if(e.popupSettings&&e.popupSettings.today)return t=e.popupSettings.today,new Date(t.year,t.month-1,t.day).getTime()},isDayInSelectedMonth:function(e,p){var a;return a=t(e),p.month===a.month.num&&p.year===a.year.num},goToYear:function(p){var a,r,o;return r=t(p),o=r.year.num,a=r.month.num,e.popup.refreshSelectedData(p,a,o)},refreshSelectedData:function(t,p,a){return t?e.popupStartRefresh({m:p,y:a}):e.popupEndRefresh({m:p,y:a})},selectRangedDate:function(){return e.popupResult={start:e.data.startResult,end:e.data.endResult},e.popup.hidePopup()}},function(){return e.watchers.result.watchPopupResult()}()}}}),angular.module("bdate.templates",[]).run(["$templateCache",function(e){e.put("bdate.html",'<div ng-class="{b_datepicker_in_progress: !isSourceReady}" class="b_datepicker_root {{::bRootClasses}}"><input type=text ng-model=bModel placeholder={{placeholder}} ng-click=popup.togglePopup() ng-disabled=!isSourceReady aria-label="Toggle date popup" readonly=readonly class="b_datepicker_input {{::bInputClasses}}"><button type=button ng-click=clear() ng-keydown=clear() aria-label="Clear Date" class="b_clear_btn {{::bButtonClasses}}">&times;</button><button type=button ng-click=popup.togglePopup() ng-keydown=popup.togglePopup() ng-disabled=!isSourceReady aria-label="Toggle date popup" class="b_datepicker_button b_calendar_btn {{::bButtonClasses}}">&nbsp;</button><bdate-popup popup-settings=bSettings popup-state=popup.state popup-source=bSource popup-result=popup.result popup-refresh="bRefreshWrap(m, y)" ng-if=!bRange class={{::bPopupClasses}}></bdate-popup><bdate-range-popup popup-settings=bSettings popup-state=popup.state popup-start-source=bStartSource popup-end-source=bEndSource popup-result=popup.result popup-start-refresh="bStartRefreshWrap(m, y)" popup-end-refresh="bEndRefreshWrap(m, y)" ng-if=bRange class={{::bPopupClasses}}></bdate-range-popup></div>'),e.put("popup.html",'<div ng-show=popupState.isOpen aria-label="Select date popup" class=b_popup><div aria-label="Popup navigation" class=b_popup_controls><div class=b_btn_prev_container><button type=button ng-click=popup.goPrevYear() aria-label="Select preview year" ng-disabled=popup.isFirstYear() class="b_popup_btn b_btn_prev">&#9664; &#9664;</button><button type=button ng-click=popup.goPrevMonth() aria-label="Select preview month" ng-disabled="popup.isFirstMonth() &amp;&amp; popup.isFirstYear()" class="b_popup_btn b_btn_prev">&#9664;</button></div><div ng-bind=popupSource.month.name class=b_popup_month></div>&nbsp;<select ng-model=popupSource.year.num ng-options="year for year in popupSource.years" ng-init="year = popupSource.year.num" aria-label="Select year from list" ng-change=popup.goToYear() class=b_popup_year></select><div class=b_btn_next_container><button type=button ng-click=popup.goNextMonth() aria-label="Select next month" ng-disabled="popup.isLastMonth() &amp;&amp; popup.isLastYear()" class="b_popup_btn b_btn_next">&#9654;</button><button type=button ng-click=popup.goNextYear() aria-label="Select next year" ng-disabled=popup.isLastYear() class="b_popup_btn b_btn_next">&#9654; &#9654;</button></div></div><table aria-label="Days of selected month" class=b_popup_days><tr><td ng-repeat="dayOfWeek in ::popupSettings.week" aria-label="Days of week" class=b_popup_day_of_week><span ng-bind=::dayOfWeek></span></td></tr></table><table class=b_popup_weeks><tr aria-label="Days of month" class=b_popup_week><td ng-repeat="date in popupSource.dates track by $index" ng-class="{b_popup_today_day_container: date.isToday}" class=b_popup_day><button type=button ng-bind=date.day ng-click=popup.selectDate(date) ng-disabled=date.isDisabled aria-label={{date.day}}-{{date.month}}-{{date.year}} ng-class="{b_popup_day_in_selected_month: popup.isDayInSelectedMonth(date), b_popup_today_day: date.isToday, b_popup_selected_day: popup.isSelectedDay(date)}" class=b_popup_day_btn></button></td></tr></table><div ng-show=popupSettings.today aria-label="Select today" class=b_popup_today><button type=button ng-bind="popup.getTodayDateTime() | date:popupSettings.format" ng-click=popup.selectDate(popupSettings.today) class=b_popup_today_btn></button></div></div>'),e.put("range-popup.html",'<div ng-show=popupState.isOpen aria-label="Select dates range popup" class=b_range_popup_back><div class="b_popup b_range_popup b_range_popup_start"><div aria-label="Popup navigation" class=b_popup_controls><div class=b_btn_prev_container><button type=button ng-click=popup.goPrevYear(true) aria-label="Select preview year" ng-disabled=popup.isFirstYear(true) class="b_popup_btn b_btn_prev">&#9664; &#9664;</button><button type=button ng-click=popup.goPrevMonth(true) aria-label="Select preview month" ng-disabled="popup.isFirstMonth(true) &amp;&amp; popup.isFirstYear(true)" class="b_popup_btn b_btn_prev">&#9664;</button></div><div ng-bind=popupStartSource.month.name class=b_popup_month></div>&nbsp;<select ng-model=popupStartSource.year.num ng-options="year for year in popupStartSource.years" ng-init="year = popupStartSource.year.num" aria-label="Select year from list" ng-change=popup.goToYear(true) class=b_popup_year></select><div class=b_btn_next_container><button type=button ng-click=popup.goNextMonth(true) aria-label="Select next month" ng-disabled="popup.isLastMonth(true) &amp;&amp; popup.isLastYear(true)" class="b_popup_btn b_btn_next">&#9654;</button><button type=button ng-click=popup.goNextYear(true) aria-label="Select next year" ng-disabled=popup.isLastYear(true) class="b_popup_btn b_btn_next">&#9654; &#9654;</button></div></div><table aria-label="Days of selected month" class=b_popup_days><tr><td ng-repeat="dayOfWeek in ::popupSettings.week" class=b_popup_day_of_week><span ng-bind=::dayOfWeek></span></td></tr></table><table class=b_popup_weeks><tr aria-label="Days of month" class=b_popup_week><td ng-repeat="date in popupStartSource.dates track by $index" ng-class="{b_popup_today_day_container: date.isToday}" class=b_popup_day><button type=button ng-bind=date.day ng-click="popup.selectDate(true, date)" ng-disabled=date.isDisabled aria-label={{date.day}}-{{date.month}}-{{date.year}} ng-class="{b_popup_day_in_selected_month: popup.isDayInSelectedMonth(true, date), b_popup_today_day: date.isToday, b_popup_selected_day: popup.isSelectedDay(true, date)}" class=b_popup_day_btn></button></td></tr></table><div ng-show=popupSettings.today aria-label="Select today" class=b_popup_today><button type=button ng-click="popup.selectDate(true, popupSettings.today)" ng-bind="popup.getTodayDateTime() | date:popupSettings.format" class=b_popup_today_btn></button></div></div><div class="b_popup b_range_popup b_range_popup_end"><div aria-label="Popup navigation" class=b_popup_controls><div class=b_btn_prev_container><button type=button ng-click=popup.goPrevYear(false) aria-label="Select preview year" ng-disabled=popup.isFirstYear(false) class="b_popup_btn b_btn_prev">&#9664; &#9664;</button><button type=button ng-click=popup.goPrevMonth(false) aria-label="Select preview month" ng-disabled="popup.isFirstMonth(false) &amp;&amp; popup.isFirstYear(false)" class="b_popup_btn b_btn_prev">&#9664;</button></div><div ng-bind=popupEndSource.month.name class=b_popup_month></div>&nbsp;<select ng-model=popupEndSource.year.num ng-options="year for year in popupEndSource.years" ng-init="year = popupEndSource.year.num" aria-label="Select year from list" ng-change=popup.goToYear(false) class=b_popup_year></select><div class=b_btn_next_container><button type=button ng-click=popup.goNextMonth(false) aria-label="Select next month" ng-disabled="popup.isLastMonth(false) &amp;&amp; popup.isLastYear(false)" class="b_popup_btn b_btn_next">&#9654;</button><button type=button ng-click=popup.goNextYear(false) aria-label="Select next year" ng-disabled=popup.isLastYear(false) class="b_popup_btn b_btn_next">&#9654; &#9654;</button></div></div><table aria-label="Days of selected month" class=b_popup_days><tr><td ng-repeat="dayOfWeek in ::popupSettings.week" class=b_popup_day_of_week><span ng-bind=::dayOfWeek></span></td></tr></table><table class=b_popup_weeks><tr aria-label="Days of month" class=b_popup_week><td ng-repeat="date in popupEndSource.dates track by $index" ng-class="{b_popup_today_day_container: date.isToday}" class=b_popup_day><button type=button ng-bind=date.day ng-click="popup.selectDate(false, date)" ng-disabled=date.isDisabled aria-label={{date.day}}-{{date.month}}-{{date.year}} ng-class="{b_popup_day_in_selected_month: popup.isDayInSelectedMonth(false, date), b_popup_today_day: date.isToday, b_popup_selected_day: popup.isSelectedDay(false, date)}" class=b_popup_day_btn></button></td></tr></table><div ng-show=popupSettings.today aria-label="Select today" class=b_popup_today><button type=button ng-click="popup.selectDate(false, popupSettings.today)" ng-bind="popup.getTodayDateTime() | date:popupSettings.format" class=b_popup_today_btn></button></div></div><button type=button ng-disabled="!data.startResult || !data.endResult" ng-click=popup.selectRangedDate() class=ok_btn>Ok</button></div>')}]);
//# sourceMappingURL=bdate.min.js.map
{
"name": "bdate",
"version": "0.7.6",
"version": "0.7.7",
"description": "backend-based angular datepicker",

@@ -5,0 +5,0 @@ "main": "bdate.js",

@@ -58,3 +58,3 @@ [![Bower version](https://badge.fury.io/bo/bdate.svg)](http://badge.fury.io/bo/bdate)

b-settings="settings"
b-refresh="refreshData(m, y)",
b-refresh="refreshData(m, y)"
placeholder="Enter the date"

@@ -82,19 +82,21 @@ ></bdatepicker>

```html
<bdatepicker
b-model="resultModel"
b-start-source="startSource"
b-end-source="endSource"
b-settings="settings"
b-start-refresh="refreshStartData(m, y)"
b-end-refresh="refreshEndData(m, y)"
b-range="true"
placeholder="Enter the date"
```
```html
<bdatepicker
b-model="resultModel"
b-start-source="startSource"
b-end-source="endSource"
b-settings="settings"
b-start-refresh="refreshStartData(m, y)"
b-end-refresh="refreshEndData(m, y)"
b-range="true"
placeholder="Enter the date"
```
`b-range` - define ranges mode;
`b-start-source` and `b-end-source` work as `b-source` (and insteado of them). Each work for start range and end range popups;
`b-start-refresh` and `b-end-refresh` - all the same as `b-refresh` function, but wotks separately for start and end popup;
`b-range` - define ranges mode
`b-start-source` and `b-end-source` work as `b-source` (and insteado of them). Each work for start range and end range popups.;
`b-start-refresh` and `b-end-refresh` - all the same as `b-refresh` function, but wotks separately for start and end popup;
#Settings format

@@ -101,0 +103,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc