Build Folder Added
This commit is contained in:
1 parent
ac1d53e183
commit
df428196d6
14 files changed
+10051
No files matched your search
File diff suppressed because it is too large.
Load diff
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
!function(c,h,n){"use strict";function s(t,e){this.elem=t,this.options=e,this.metadata=this.elem.getAttribute("data-plugin-options")?JSON.parse(this.elem.getAttribute("data-plugin-options")):{}}s.defaults=(s.prototype={public:function(){return{startDate:moment().startOf("day"),endDate:moment().startOf("day"),format:"L",dateSeparator:" - ",calendarCount:2,mobileBreakpoint:760,isHotelBooking:!1,inline:!1,minDate:null,maxDate:null,showHeader:!0,showFooter:!0,rangeOrientation:"horizontal",verticalRangeWidth:180,showButtons:!1,startOnMonday:!1,container:"body",oneCalendarWidth:230,enableKeyboard:!0,showOn:"bottom",arrowOn:"left",autoAlign:!0,locale:moment.locale(),singleDate:!1,target:null,autoCloseOnSelect:!1,startEmpty:!1,isRTL:!1,ranges:[{title:"Today",startDate:moment(),endDate:moment()},{title:"3 Days",startDate:moment(),endDate:moment().add(2,"days")},{title:"5 Days",startDate:moment(),endDate:moment().add(4,"days")},{title:"1 Week",startDate:moment(),endDate:moment().add(6,"days")},{title:"Till Next Week",startDate:moment(),endDate:moment().endOf("week")},{title:"Till Next Month",startDate:moment(),endDate:moment().endOf("month")}],rangeLabel:"Ranges: ",cancelLabel:"Cancel",applyLabel:"Apply",nextMonthIcon:"<i class='fa fa-arrow-right'></i>",prevMonthIcon:"<i class='fa fa-arrow-left'></i>",rangeIcon:"<i class='fa fa-retweet'></i>",headerSeparator:"<i class='fa fa-chevron-right'></i>",onbeforeselect:function(){return!0},onafterselect:function(){},onbeforeshow:function(){},onbeforehide:function(){},onaftershow:function(){},onafterhide:function(){},onfirstselect:function(){},onrangeselect:function(){},onbeforemonthchange:function(){return!0},onaftermonthchange:function(){},onafteryearchange:function(){},ondraw:function(){},onBeforeInit:function(){},onBeforeDestroy:function(){return!0},oninit:function(){},ondestroy:function(){},validateClick:function(){return!0},onCancel:function(){return!0},disableDays:function(){return!1},disabledRanges:[],continuous:!1,disableOnlyStart:!1,disableOnlyEnd:!1,minSelectedDays:0,enableMonthSwitcher:!0,enableYearSwitcher:!0,enableSwipe:!0,numericMonthSwitcher:!1,monthSwitcherFormat:"MMMM",showWeekNumbers:!1,hideOutOfRange:!1,DOBCalendar:!1}},private:function(){return{startSelected:!1,currentDate:moment().startOf("day"),endSelected:!0,hoverDate:null,keyboardHoverDate:null,headerStartDay:null,headerStartDate:null,headerStartWeekday:null,headerEndDay:null,headerEndDate:null,headerEndWeekday:null,swipeX:0,swipeY:0,swipeStart:0,swipeTimeout:null,isMobile:!1,valElements:["BUTTON","OPTION","INPUT","LI","METER","PROGRESS","PARAM"],dontHideOnce:!1,initiator:null,initComplete:!1,startDateBackup:null,startDateInitial:null,endDateInitial:null,firstValueSelected:!1,throttleTimeout:null,instanceId:null,documentEvent:null,delayInputUpdate:!1,lastScrollX:0,lastScrollY:0,isTicking:!1,parentScrollEventsAttached:!1,rafID:0,disabledDays:{}}},init:function(){return this.config=this.extend(this.extend(this.public(),this.options),this.metadata),this.globals=this.private(),this.globals.isMobile=this.checkMobile(),this.globals.instanceId=Math.round(+new Date+100*Math.random()),this.events=this.eventsPrototype(),this.events.init(this.globals.instanceId),this.config.onBeforeInit(this),this.applyConfig(),this.fetchInputs(),this.drawUserInterface(),this.drawOverlay(),this.addInitialEvents(),this.addKeyboardEvents(),(this.elem.caleran=this).config.oninit(this),this.globals.initComplete=!0,this.globals.lastScrollX=0,this.globals.lastScrollY=0,this.events.dispatch(c,"resize"),this},validateDates:function(){var t;(moment.isMoment(this.config.startDate)&&this.config.startDate.isValid()||moment(this.config.startDate,this.config.format).isValid())&&(moment.isMoment(this.config.endDate)&&this.config.endDate.isValid()||moment(this.config.endDate,this.config.format).isValid())?(this.config.startDate=moment(this.config.startDate,this.config.format).middleOfDay().locale(this.config.locale),this.config.endDate=moment(this.config.endDate,this.config.format).middleOfDay().locale(this.config.locale),this.config.startDate.isAfter(this.config.endDate,"day")&&(t=this.config.startDate.clone(),this.config.startDate=this.config.endDate.clone(),this.config.endDate=t.clone(),t=null)):(this.config.startDate=moment().middleOfDay().locale(this.config.locale),this.config.endDate=moment().middleOfDay().locale(this.config.locale)),this.globals.currentDate=moment(this.config.startDate,this.config.format),null!==this.config.minDate&&moment(this.config.minDate,this.config.format).isValid()?this.config.minDate=moment(this.config.minDate,this.config.format).middleOfDay():this.config.minDate=null,null!==this.config.maxDate&&moment(this.config.maxDate,this.config.format).isValid()?this.config.maxDate=moment(this.config.maxDate,this.config.format).middleOfDay():this.config.maxDate=null,null!==this.config.minDate&&null!==this.config.maxDate&&this.config.minDate.isAfter(this.config.maxDate,"day")&&(t=this.config.minDate.clone(),this.config.minDaLine truncated
|
||||
//# sourceMappingURL=caleran.min.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../js/caleran.js"],"names":["window","document","undefined","caleranPlugin","elem","options","this","metadata","getAttribute","JSON","parse","defaults","prototype","public","startDate","moment","startOf","endDate","format","dateSeparator","calendarCount","mobileBreakpoint","isHotelBooking","inline","minDate","maxDate","showHeader","showFooter","rangeOrientation","verticalRangeWidth","showButtons","startOnMonday","container","oneCalendarWidth","enableKeyboard","showOn","arrowOn","autoAlign","locale","singleDate","target","autoCloseOnSelect","startEmpty","isRTL","ranges","title","add","endOf","rangeLabel","cancelLabel","applyLabel","nextMonthIcon","prevMonthIcon","rangeIcon","headerSeparator","onbeforeselect","onafterselect","onbeforeshow","onbeforehide","onaftershow","onafterhide","onfirstselect","onrangeselect","onbeforemonthchange","onaftermonthchange","onafteryearchange","ondraw","onBeforeInit","onBeforeDestroy","oninit","ondestroy","validateClick","onCancel","disableDays","disabledRanges","continuous","disableOnlyStart","disableOnlyEnd","minSelectedDays","enableMonthSwitcher","enableYearSwitcher","enableSwipe","numericMonthSwitcher","monthSwitcherFormat","showWeekNumbers","hideOutOfRange","DOBCalendar","private","startSelected","currentDate","endSelected","hoverDate","keyboardHoverDate","headerStartDay","headerStartDate","headerStartWeekday","headerEndDay","headerEndDate","headerEndWeekday","swipeX","swipeY","swipeStart","swipeTimeout","isMobile","valElements","dontHideOnce","initiator","initComplete","startDateBackup","startDateInitial","endDateInitial","firstValueSelected","throttleTimeout","instanceId","documentEvent","delayInputUpdate","lastScrollX","lastScrollY","isTicking","parentScrollEventsAttached","rafID","disabledDays","init","config","extend","globals","checkMobile","Math","round","Date","random","events","eventsPrototype","applyConfig","fetchInputs","drawUserInterface","drawOverlay","addInitialEvents","addKeyboardEvents","caleran","dispatch","validateDates","swap","isMoment","isValid","middleOfDay","isAfter","clone","isBefore","checkRangeContinuity","isDisabled","clearInput","querySelector","props","p","length","key","fixDateTime","map","range","createElement","classList","tabIndex","onclick","insertAdjacentElement","appendChild","input","type","setViewport","style","display","setAttribute","arrow","width","parentNode","insertBefore","onfocus","blur","direction","clearRangeSelection","selected","querySelectorAll","r","remove","inArray","needle","haystack","Array","isArray","indexOf","elValue","tagName","value","innerText","parts","split","drawHeader","calendars","nextCal","calendarIndex","drawCalendarOfMonth","drawArrows","drawFooter","updateInput","delayState","reDrawCells","overlay","body","overlayEvents","visibleInstances","vi","item","click","headers","insertAdjacentHTML","h","updateHeader","localizeNumbers","date","year","isUpdateable","returnReasons","clearReasons","withEvents","stayEmpty","innrtText","applyButton","footer","t","hideLeftArrow","hideRightArrow","titles","_month","calendarStart","startOfWeek","day","calendarOutput","month","boxCount","monthClass","yearClass","localeWeekdays","localeData","weekdaysShort","days","prevDisabled","prevKey","cellDate","unix","cellStyle","isDisabledOnDraw","duration","innerWrap","firstChild","range_id","drawNextMonth","event","that","setTimeout","startOfMonth","buffer","scrollTop","reDrawCalendars","isCancellable","stopBubbling","drawPrevMonth","subtract","cellClicked","e","srcElement","contains","closest","cell","parseInt","selectedMoment","start","diff","hideDropdown","removeAttribute","daysInRange","startDateUnix","getDisabledLevel","isSame","i","mday","rangeIndex","isBetween","end","hotelStyle","cellHovered","innerHTML","focus","monthSwitchClicked","monthSelector","currentMonth","get","m","numericMonthSelector","hour","optimizeFontSize","rebindEventEach","yearSwitchClicked","yearSelector","currentYear","rebindEventScoped","currentYearNow","element","wrapper","parent","adjustSubject","fontAdjuster","offsetHeight","removeChild","loopCount","startSize","getComputedStyle","parseFloat","getPropertyValue","fontSize","replace","showDropdown","jQuery","Event","eventTarget","endDateUnix","minDateUnix","maxDateUnix","hoverDateUnix","keyboardHoverDateUnix","currentDateUnix","lastHoverStatus","c","calendar","cells","cellMoment","cellDay","addDisabledStyles","addSelectedStyles","addHoverStyles","attachEvents","cellDateUnix","ref","prev","previousElementSibling","matches","postformat","rangeClicked","hasAttribute","viewport","getViewport","positionOnTopAlign","positionOnTop","horizontalAlign","positionOnLeftAlign","positionOnLeft","verticalAlign","positionOnRightAlign","positionOnRight","positionOnBottomAlign","positionOnBottom","positionOnCenter","height","clientHeight","maxHeight","dropdown","getDimensions","start_difference","top","offsetTop","end_difference","bottom","abs","difference","offsetLeft","right","left","getDropLine truncated
|
||||
Vendored
+1216
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user