Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gijgo

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gijgo - npm Package Compare versions

Comparing version 1.9.2 to 1.9.3

2

modular/js/checkbox.js
/*
* Gijgo Checkbox v1.9.2
* Gijgo Checkbox v1.9.3
* http://gijgo.com/checkbox

@@ -4,0 +4,0 @@ *

/*
* Gijgo JavaScript Library v1.9.2
* Gijgo JavaScript Library v1.9.3
* http://gijgo.com/

@@ -4,0 +4,0 @@ *

/*
* Gijgo DatePicker v1.9.2
* Gijgo DatePicker v1.9.3
* http://gijgo.com/datepicker

@@ -83,3 +83,3 @@ *

wrapper: 'gj-datepicker gj-datepicker-bootstrap gj-unselectable input-group',
input: 'form-control border',
input: 'form-control',
calendar: 'gj-calendar gj-calendar-bootstrap'

@@ -122,3 +122,3 @@ },

} else if (data.uiLibrary === 'bootstrap4') {
$rightIcon = $('<span class="input-group-append"><button class="btn btn-outline-secondary border-left-0 border" type="button">' + data.icons.rightIcon + '</button></span>');
$rightIcon = $('<span class="input-group-append"><button class="btn btn-outline-secondary border-left-0" type="button">' + data.icons.rightIcon + '</button></span>');
} else {

@@ -125,0 +125,0 @@ $rightIcon = $(data.icons.rightIcon);

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

gj.datepicker={plugins:{},messages:{"en-us":{weekDays:["S","M","T","W","T","F","S"]}}},gj.datepicker.config={base:{showOtherMonths:!1,selectOtherMonths:!0,width:void 0,minDate:void 0,maxDate:void 0,format:"mm/dd/yyyy",uiLibrary:"materialdesign",iconsLibrary:"materialicons",value:void 0,weekStartDay:0,disableDates:void 0,disableDaysOfWeek:void 0,calendarWeeks:!1,keyboardNavigation:!0,locale:"en-us",icons:{rightIcon:'<i class="gj-icon">event</i>',previousMonth:'<i class="gj-icon chevron-left"></i>',nextMonth:'<i class="gj-icon chevron-right"></i>'},fontSize:void 0,size:"default",style:{wrapper:"gj-datepicker gj-datepicker-md gj-unselectable",input:"gj-textbox-md",calendar:"gj-calendar gj-calendar-md"}},bootstrap:{style:{wrapper:"gj-datepicker gj-datepicker-bootstrap gj-unselectable input-group",input:"form-control",calendar:"gj-calendar gj-calendar-bootstrap"},iconsLibrary:"glyphicons",showOtherMonths:!0},bootstrap4:{style:{wrapper:"gj-datepicker gj-datepicker-bootstrap gj-unselectable input-group",input:"form-control border",calendar:"gj-calendar gj-calendar-bootstrap"},showOtherMonths:!0},fontawesome:{icons:{rightIcon:'<i class="fa fa-calendar" aria-hidden="true"></i>',previousMonth:'<i class="fa fa-chevron-left" aria-hidden="true"></i>',nextMonth:'<i class="fa fa-chevron-right" aria-hidden="true"></i>'}},glyphicons:{icons:{rightIcon:'<span class="glyphicon glyphicon-calendar"></span>',previousMonth:'<span class="glyphicon glyphicon-chevron-left"></span>',nextMonth:'<span class="glyphicon glyphicon-chevron-right"></span>'}}},gj.datepicker.methods={init:function(a){return gj.widget.prototype.init.call(this,a,"datepicker"),this.attr("data-datepicker","true"),gj.datepicker.methods.initialize(this),this},initialize:function(a){var b,c,d=a.data(),e=a.parent('div[role="wrapper"]');c="bootstrap"===d.uiLibrary?$('<span class="input-group-addon">'+d.icons.rightIcon+"</span>"):"bootstrap4"===d.uiLibrary?$('<span class="input-group-append"><button class="btn btn-outline-secondary border-left-0 border" type="button">'+d.icons.rightIcon+"</button></span>"):$(d.icons.rightIcon),c.attr("role","right-icon"),0===e.length?(e=$('<div role="wrapper" />').addClass(d.style.wrapper),a.wrap(e)):e.addClass(d.style.wrapper),e=a.parent('div[role="wrapper"]'),d.width&&e.css("width",d.width),a.val(d.value).addClass(d.style.input).attr("role","input"),d.fontSize&&a.css("font-size",d.fontSize),"bootstrap"===d.uiLibrary||"bootstrap4"===d.uiLibrary?"small"===d.size?(e.addClass("input-group-sm"),a.addClass("form-control-sm")):"large"===d.size&&(e.addClass("input-group-lg"),a.addClass("form-control-lg")):"small"===d.size?e.addClass("small"):"large"===d.size&&e.addClass("large"),c.on("click",function(b){$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]').is(":visible")?gj.datepicker.methods.close(a):gj.datepicker.methods.open(a)}),a.on("blur",function(){a.timeout=setTimeout(function(){gj.datepicker.methods.close(a)},500)}),e.append(c),b=gj.datepicker.methods.createCalendar(a),d.keyboardNavigation&&a.on("keydown",gj.datepicker.methods.createKeyDownHandler(a,b))},createCalendar:function(a){var b,c,d=a.data(),e=$('<div role="calendar" type="month"/>').addClass(d.style.calendar).attr("guid",a.attr("data-guid")),f=$("<table/>"),g=$("<thead/>");for(d.fontSize&&e.css("font-size",d.fontSize),b=gj.core.parseDate(d.value,d.format,d.locale),!b||isNaN(b.getTime())?b=new Date:a.attr("day",b.getFullYear()+"-"+b.getMonth()+"-"+b.getDate()),a.attr("month",b.getMonth()),a.attr("year",b.getFullYear()),c=$('<div role="navigator" />'),c.append($("<div>"+d.icons.previousMonth+"</div>").on("click",gj.datepicker.methods.prev(a))),c.append($('<div role="period"></div>').on("click",gj.datepicker.methods.changePeriod(a))),c.append($("<div>"+d.icons.nextMonth+"</div>").on("click",gj.datepicker.methods.next(a))),e.append(c),$row=$('<tr role="week-days" />'),d.calendarWeeks&&$row.append("<th><div>&nbsp;</div></th>"),i=d.weekStartDay;i<gj.datepicker.messages[d.locale].weekDays.length;i++)$row.append("<th><div>"+gj.datepicker.messages[d.locale].weekDays[i]+"</div></th>");for(i=0;i<d.weekStartDay;i++)$row.append("<th><div>"+gj.datepicker.messages[d.locale].weekDays[i]+"</div></th>");return g.append($row),f.append(g),f.append("<tbody/>"),e.append(f),e.hide(),$("body").append(e),e},renderMonth:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q=a.data(),r=$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]'),s=r.children("table"),t=s.children("tbody");for(clearTimeout(a.timeout),s.children("thead").show(),a.attr("day")?(c=a.attr("day").split("-"),c=new Date(c[0],c[1],c[2])):c=new Date(void 0),e=parseInt(a.attr("month"),10),f=parseInt(a.attr("year"),10),r.attr("type","month"),r.find('div[role="period"]').text(gj.core.messages[q.locale].monthNames[e]+" "+f),g=new Array(31,28,31,30,31,30,31,31,30,31,30,31),f%4==0&&1900!=f&&(g[1]=29),h=g[e],i=(new Date(f,e,1).getDay()+7-q.weekStartDay)%7,t.empty(),b=0,$row=$("<tr />"),l=gj.datepicker.methods.getPrevMonth(e,f),j=1;j<=i;j++)d=g[l.month]-i+j,p=new Date(l.year,l.month,d),q.calendarWeeks&&1===j&&$row.append("<td><div>"+gj.datepicker.methods.getWeekNumber(p)+"</div></td>"),n=l.year===c.getFullYear()&&l.month===c.getMonth()&&d===c.getDate()?$('<td class="selected" />'):$('<td class="other-month" />'),q.showOtherMonths&&(o=$("<div>"+d+"</div>"),n.append(o),q.selectOtherMonths&&gj.datepicker.methods.isSelectable(q,p)?(n.addClass("gj-cursor-pointer"),o.on("click",gj.datepicker.methods.select(a,r,p))):n.addClass("disabled")),$row.append(n),b++;for(j>1&&t.append($row),k=new Date,j=1;j<=h;j++)p=new Date(f,e,j),0==b&&($row=$("<tr>"),q.calendarWeeks&&$row.append("<td><div>"+gj.datepicker.methods.getWeekNumber(p)+"</div></td>")),n=$('<td day="'+j+'" />'),f===c.getFullYear()&&e===c.getMonth()&&j===c.getDate()?n.addClass("selected"):f===k.getFullYear()&&e===k.getMonth()&&j===k.getDate()?n.addClass("today"):n.addClass("current-month"),o=$("<div>"+j+"</div>"),gj.datepicker.methods.isSelectable(q,p)?(n.addClass("gj-cursor-pointer"),o.on("click",gj.datepicker.methods.select(a,r,p))):n.addClass("disabled"),n.append(o),$row.append(n),7==++b&&(t.append($row),b=0);for(m=gj.datepicker.methods.getNextMonth(e,f),j=1;0!=b;j++)p=new Date(m.year,m.month,j),n=m.year===c.getFullYear()&&m.month===c.getMonth()&&j===c.getDate()?$('<td class="selected" />'):$('<td class="other-month" />'),q.showOtherMonths&&(o=$("<div>"+j+"</div>"),n.append(o),q.selectOtherMonths&&gj.datepicker.methods.isSelectable(q,p)?(n.addClass("gj-cursor-pointer"),o.on("click",gj.datepicker.methods.select(a,r,p))):n.addClass("disabled")),$row.append(n),7==++b&&(t.append($row),b=0)},renderYear:function(a,b){var c,d,e,f,g=a.data(),h=b.children("table"),i=h.children("tbody");for(clearTimeout(a.timeout),h.children("thead").hide(),c=parseInt(a.attr("year"),10),b.attr("type","year"),b.find('div[role="period"]').text(c),i.empty(),d=0;d<3;d++){for($row=$("<tr />"),e=4*d;e<=4*d+3;e++)f=$("<div>"+gj.core.messages[g.locale].monthShortNames[e]+"</div>"),f.on("click",gj.datepicker.methods.selectMonth(a,b,e)),$cell=$("<td></td>").append(f),$row.append($cell);i.append($row)}a.focus()},renderDecade:function(a,b){var c,d,e,f,g,h=b.children("table"),i=h.children("tbody");for(clearTimeout(a.timeout),h.children("thead").hide(),c=parseInt(a.attr("year"),10),d=c-c%10,b.attr("type","decade"),b.find('div[role="period"]').text(d+" - "+(d+9)),i.empty(),e=d-1;e<=d+10;e+=4){for($row=$("<tr />"),f=e;f<=e+3;f++)g=$("<div>"+f+"</div>"),g.on("click",gj.datepicker.methods.selectYear(a,b,f)),$cell=$("<td></td>").append(g),$row.append($cell);i.append($row)}a.focus()},renderCentury:function(a,b){var c,d,e,f,g,h=b.children("table"),i=h.children("tbody");for(clearTimeout(a.timeout),h.children("thead").hide(),c=parseInt(a.attr("year"),10),d=c-c%100,b.attr("type","century"),b.find('div[role="period"]').text(d+" - "+(d+99)),i.empty(),e=d-10;e<d+100;e+=40){for($row=$("<tr />"),f=e;f<=e+30;f+=10)g=$("<div>"+f+"</div>"),g.on("click",gj.datepicker.methods.selectDecade(a,b,f)),$cell=$("<td></td>").append(g),$row.append($cell);i.append($row)}a.focus()},getWeekNumber:function(a){var b=new Date(a.valueOf());b.setDate(b.getDate()+6),b=new Date(Date.UTC(b.getFullYear(),b.getMonth(),b.getDate())),b.setUTCDate(b.getUTCDate()+4-(b.getUTCDay()||7));var c=new Date(Date.UTC(b.getUTCFullYear(),0,1));return Math.ceil(((b-c)/864e5+1)/7)},getMinDate:function(a){var b;return a.minDate&&("string"==typeof a.minDate?b=gj.core.parseDate(a.minDate,a.format,a.locale):"function"==typeof a.minDate?"string"==typeof(b=a.minDate())&&(b=gj.core.parseDate(b,a.format,a.locale)):"function"==typeof a.minDate.getMonth&&(b=a.minDate)),b},getMaxDate:function(a){var b;return a.maxDate&&("string"==typeof a.maxDate?b=gj.core.parseDate(a.maxDate,a.format,a.locale):"function"==typeof a.maxDate?"string"==typeof(b=a.maxDate())&&(b=gj.core.parseDate(b,a.format,a.locale)):"function"==typeof a.maxDate.getMonth&&(b=a.maxDate)),b},isSelectable:function(a,b){var c,d=!0,e=gj.datepicker.methods.getMinDate(a),f=gj.datepicker.methods.getMaxDate(a);if(e&&b<e?d=!1:f&&b>f&&(d=!1),d){if(a.disableDates)if($.isArray(a.disableDates))for(c=0;c<a.disableDates.length;c++)a.disableDates[c]instanceof Date&&a.disableDates[c].getTime()===b.getTime()?d=!1:"string"==typeof a.disableDates[c]&&gj.core.parseDate(a.disableDates[c],a.format,a.locale).getTime()===b.getTime()&&(d=!1);else a.disableDates instanceof Function&&(d=a.disableDates(b));$.isArray(a.disableDaysOfWeek)&&a.disableDaysOfWeek.indexOf(b.getDay())>-1&&(d=!1)}return d},getPrevMonth:function(a,b){return date=new Date(b,a,1),date.setMonth(date.getMonth()-1),{month:date.getMonth(),year:date.getFullYear()}},getNextMonth:function(a,b){return date=new Date(b,a,1),date.setMonth(date.getMonth()+1),{month:date.getMonth(),year:date.getFullYear()}},prev:function(a){return function(){var b,c,d,e,f,g=$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]');switch(g.attr("type")){case"month":c=parseInt(a.attr("month"),10),d=parseInt(a.attr("year"),10),b=gj.datepicker.methods.getPrevMonth(c,d),a.attr("month",b.month),a.attr("year",b.year),gj.datepicker.methods.renderMonth(a);break;case"year":d=parseInt(a.attr("year"),10),a.attr("year",d-1),gj.datepicker.methods.renderYear(a,g);break;case"decade":d=parseInt(a.attr("year"),10),e=d-d%10,a.attr("year",e-10),gj.datepicker.methods.renderDecade(a,g);break;case"century":d=parseInt(a.attr("year"),10),f=d-d%100,a.attr("year",f-100),gj.datepicker.methods.renderCentury(a,g)}a.focus()}},next:function(a){return function(){var b,c,d,e,f,g=$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]');switch(g.attr("type")){case"month":c=parseInt(a.attr("month"),10),d=parseInt(a.attr("year"),10),b=gj.datepicker.methods.getNextMonth(c,d),a.attr("month",b.month),a.attr("year",b.year),gj.datepicker.methods.renderMonth(a);break;case"year":d=parseInt(a.attr("year"),10),a.attr("year",d+1),gj.datepicker.methods.renderYear(a,g);break;case"decade":d=parseInt(a.attr("year"),10),e=d-d%10,a.attr("year",e+10),gj.datepicker.methods.renderDecade(a,g);break;case"century":d=parseInt(a.attr("year"),10),f=d-d%100,a.attr("year",f+100),gj.datepicker.methods.renderCentury(a,g)}a.focus()}},changePeriod:function(a){return function(b){var c=$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]');switch(c.attr("type")){case"month":gj.datepicker.methods.renderYear(a,c);break;case"year":gj.datepicker.methods.renderDecade(a,c);break;case"decade":gj.datepicker.methods.renderCentury(a,c);break;case"century":clearTimeout(a.timeout),a.focus()}}},select:function(a,b,c){return function(d){var e,f=c.getMonth(),g=c.getFullYear(),h=a.data();return e=gj.core.formatDate(c,h.format,h.locale),a.val(e),gj.datepicker.events.change(a),a.attr("day",g+"-"+f+"-"+c.getDate()),a.attr("month",f),a.attr("year",g),"none"!==window.getComputedStyle(b[0]).display&&gj.datepicker.methods.close(a),a}},selectMonth:function(a,b,c){return function(b){a.attr("month",c),gj.datepicker.methods.renderMonth(a)}},selectYear:function(a,b,c){return function(d){a.attr("year",c),gj.datepicker.methods.renderYear(a,b)}},selectDecade:function(a,b,c){return function(d){a.attr("year",c),gj.datepicker.methods.renderDecade(a,b)}},open:function(a){var b=(a.data(),a.offset(),$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]'));switch(a.val()&&a.value(a.val()),b.attr("type")){case"month":gj.datepicker.methods.renderMonth(a);break;case"year":gj.datepicker.methods.renderYear(a,b);break;case"decade":gj.datepicker.methods.renderDecade(a,b);break;case"century":gj.datepicker.methods.renderCentury(a,b)}b.show(),gj.core.setChildPosition(a[0],b[0]),a.focus(),gj.datepicker.events.open(a)},close:function(a){$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]').hide(),gj.datepicker.events.close(a)},createKeyDownHandler:function(a,b){return function(c){var d,e,f,g,h,i=gj.datepicker.methods.getActiveCell(b);c=c||window.event,"none"!==window.getComputedStyle(b[0]).display&&("38"==c.keyCode?(g=i.index(),h=i.closest("tr").prev("tr").find("td:eq("+g+")"),h.is("[day]")||(gj.datepicker.methods.prev(a)(),h=b.find("tbody tr").last().find("td:eq("+g+")")),h.is("[day]")&&(h.addClass("focused"),i.removeClass("focused"))):"40"==c.keyCode?(g=i.index(),h=i.closest("tr").next("tr").find("td:eq("+g+")"),h.is("[day]")||(gj.datepicker.methods.next(a)(),h=b.find("tbody tr").first().find("td:eq("+g+")"),h.is("[day]")||(h=b.find("tbody tr:eq(1)").find("td:eq("+g+")"))),h.is("[day]")&&(h.addClass("focused"),i.removeClass("focused"))):"37"==c.keyCode?(h=i.prev("td[day]:not(.disabled)"),0===h.length&&(h=i.closest("tr").prev("tr").find("td[day]").last()),0===h.length&&(gj.datepicker.methods.prev(a)(),h=b.find("tbody tr").last().find("td[day]").last()),h.length>0&&(h.addClass("focused"),i.removeClass("focused"))):"39"==c.keyCode||"9"==c.keyCode?(h=i.next("[day]:not(.disabled)"),0===h.length&&(h=i.closest("tr").next("tr").find("td[day]").first()),0===h.length&&(gj.datepicker.methods.next(a)(),h=b.find("tbody tr").first().find("td[day]").first()),h.length>0&&(h.addClass("focused"),i.removeClass("focused"))):"13"==c.keyCode?(f=parseInt(i.attr("day"),10),d=parseInt(a.attr("month"),10),e=parseInt(a.attr("year"),10),gj.datepicker.methods.select(a,b,new Date(e,d,f))()):"27"==c.keyCode&&a.close())}},getActiveCell:function(a){var b=a.find("td[day].focused");return 0===b.length&&(b=a.find("td[day].selected"),0===b.length&&(b=a.find("td[day].today"),0===b.length&&(b=a.find("td[day]:not(.disabled)").first()))),b},value:function(a,b){var c,d,e=a.data();return void 0===b?a.val():(d=gj.core.parseDate(b,e.format,e.locale),d?(c=$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]'),gj.datepicker.methods.select(a,c,d)()):a.val(""),a)},destroy:function(a){var b=a.data(),c=a.parent();return b&&(a.off(),$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]').remove(),a.removeData(),a.removeAttr("data-type").removeAttr("data-guid").removeAttr("data-datepicker"),a.removeClass(),c.children('[role="right-icon"]').remove(),a.unwrap()),a}},gj.datepicker.events={change:function(a){return a.triggerHandler("change")},open:function(a){return a.triggerHandler("open")},close:function(a){return a.triggerHandler("close")}},gj.datepicker.widget=function(a,b){var c=this,d=gj.datepicker.methods;return c.value=function(a){return d.value(this,a)},c.destroy=function(){return d.destroy(this)},c.open=function(){gj.datepicker.methods.open(this)},c.close=function(){gj.datepicker.methods.close(this)},$.extend(a,c),"true"!==a.attr("data-datepicker")&&d.init.call(a,b),a},gj.datepicker.widget.prototype=new gj.widget,gj.datepicker.widget.constructor=gj.datepicker.widget,function(a){a.fn.datepicker=function(a){var b;if(this&&this.length){if("object"!=typeof a&&a){if(b=new gj.datepicker.widget(this,null),b[a])return b[a].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+a+" does not exist."}return new gj.datepicker.widget(this,a)}}}(jQuery),gj.core.messages["bg-bg"]={monthNames:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthShortNames:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","ОКт","Ное","Дек"]},gj.datepicker.messages["bg-bg"]={weekDays:["Н","П","В","С","Ч","П","С"]},gj.core.messages["fr-fr"]={monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthShortNames:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]},gj.datepicker.messages["fr-fr"]={weekDays:["D","L","M","M","J","V","S"]},gj.core.messages["de-de"]={monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthShortNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},gj.datepicker.messages["de-de"]={weekDays:["So","Mo","Di","Mi","Do","Fr","Sa"]},gj.core.messages["pt-br"]={monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthShortNames:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]},gj.datepicker.messages["pt-br"]={weekDays:["D","S","T","Q","Q","S","S"]},gj.core.messages["ru-ru"]={monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthShortNames:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"]},gj.datepicker.messages["ru-ru"]={weekDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"]},gj.core.messages["es-es"]={monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","setiembre","octubre","noviembre","diciembre"],monthShortNames:["ene.","feb.","mar","abr.","may","jun","jul.","ago","set.","oct.","nov.","dic."]},gj.datepicker.messages["es-es"]={weekDays:["D","L","M","M","J","V","S"]},gj.core.messages["it-it"]={monthNames:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],monthShortNames:["gen.","feb.","mar.","apr.","mag.","giu.","lug.","ago.","set.","ott.","nov.","dic."]},gj.datepicker.messages["it-it"]={weekDays:["D","L","M","M","G","V","S"]};
gj.datepicker={plugins:{},messages:{"en-us":{weekDays:["S","M","T","W","T","F","S"]}}},gj.datepicker.config={base:{showOtherMonths:!1,selectOtherMonths:!0,width:void 0,minDate:void 0,maxDate:void 0,format:"mm/dd/yyyy",uiLibrary:"materialdesign",iconsLibrary:"materialicons",value:void 0,weekStartDay:0,disableDates:void 0,disableDaysOfWeek:void 0,calendarWeeks:!1,keyboardNavigation:!0,locale:"en-us",icons:{rightIcon:'<i class="gj-icon">event</i>',previousMonth:'<i class="gj-icon chevron-left"></i>',nextMonth:'<i class="gj-icon chevron-right"></i>'},fontSize:void 0,size:"default",style:{wrapper:"gj-datepicker gj-datepicker-md gj-unselectable",input:"gj-textbox-md",calendar:"gj-calendar gj-calendar-md"}},bootstrap:{style:{wrapper:"gj-datepicker gj-datepicker-bootstrap gj-unselectable input-group",input:"form-control",calendar:"gj-calendar gj-calendar-bootstrap"},iconsLibrary:"glyphicons",showOtherMonths:!0},bootstrap4:{style:{wrapper:"gj-datepicker gj-datepicker-bootstrap gj-unselectable input-group",input:"form-control",calendar:"gj-calendar gj-calendar-bootstrap"},showOtherMonths:!0},fontawesome:{icons:{rightIcon:'<i class="fa fa-calendar" aria-hidden="true"></i>',previousMonth:'<i class="fa fa-chevron-left" aria-hidden="true"></i>',nextMonth:'<i class="fa fa-chevron-right" aria-hidden="true"></i>'}},glyphicons:{icons:{rightIcon:'<span class="glyphicon glyphicon-calendar"></span>',previousMonth:'<span class="glyphicon glyphicon-chevron-left"></span>',nextMonth:'<span class="glyphicon glyphicon-chevron-right"></span>'}}},gj.datepicker.methods={init:function(a){return gj.widget.prototype.init.call(this,a,"datepicker"),this.attr("data-datepicker","true"),gj.datepicker.methods.initialize(this),this},initialize:function(a){var b,c,d=a.data(),e=a.parent('div[role="wrapper"]');c="bootstrap"===d.uiLibrary?$('<span class="input-group-addon">'+d.icons.rightIcon+"</span>"):"bootstrap4"===d.uiLibrary?$('<span class="input-group-append"><button class="btn btn-outline-secondary border-left-0" type="button">'+d.icons.rightIcon+"</button></span>"):$(d.icons.rightIcon),c.attr("role","right-icon"),0===e.length?(e=$('<div role="wrapper" />').addClass(d.style.wrapper),a.wrap(e)):e.addClass(d.style.wrapper),e=a.parent('div[role="wrapper"]'),d.width&&e.css("width",d.width),a.val(d.value).addClass(d.style.input).attr("role","input"),d.fontSize&&a.css("font-size",d.fontSize),"bootstrap"===d.uiLibrary||"bootstrap4"===d.uiLibrary?"small"===d.size?(e.addClass("input-group-sm"),a.addClass("form-control-sm")):"large"===d.size&&(e.addClass("input-group-lg"),a.addClass("form-control-lg")):"small"===d.size?e.addClass("small"):"large"===d.size&&e.addClass("large"),c.on("click",function(b){$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]').is(":visible")?gj.datepicker.methods.close(a):gj.datepicker.methods.open(a)}),a.on("blur",function(){a.timeout=setTimeout(function(){gj.datepicker.methods.close(a)},500)}),e.append(c),b=gj.datepicker.methods.createCalendar(a),d.keyboardNavigation&&a.on("keydown",gj.datepicker.methods.createKeyDownHandler(a,b))},createCalendar:function(a){var b,c,d=a.data(),e=$('<div role="calendar" type="month"/>').addClass(d.style.calendar).attr("guid",a.attr("data-guid")),f=$("<table/>"),g=$("<thead/>");for(d.fontSize&&e.css("font-size",d.fontSize),b=gj.core.parseDate(d.value,d.format,d.locale),!b||isNaN(b.getTime())?b=new Date:a.attr("day",b.getFullYear()+"-"+b.getMonth()+"-"+b.getDate()),a.attr("month",b.getMonth()),a.attr("year",b.getFullYear()),c=$('<div role="navigator" />'),c.append($("<div>"+d.icons.previousMonth+"</div>").on("click",gj.datepicker.methods.prev(a))),c.append($('<div role="period"></div>').on("click",gj.datepicker.methods.changePeriod(a))),c.append($("<div>"+d.icons.nextMonth+"</div>").on("click",gj.datepicker.methods.next(a))),e.append(c),$row=$('<tr role="week-days" />'),d.calendarWeeks&&$row.append("<th><div>&nbsp;</div></th>"),i=d.weekStartDay;i<gj.datepicker.messages[d.locale].weekDays.length;i++)$row.append("<th><div>"+gj.datepicker.messages[d.locale].weekDays[i]+"</div></th>");for(i=0;i<d.weekStartDay;i++)$row.append("<th><div>"+gj.datepicker.messages[d.locale].weekDays[i]+"</div></th>");return g.append($row),f.append(g),f.append("<tbody/>"),e.append(f),e.hide(),$("body").append(e),e},renderMonth:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q=a.data(),r=$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]'),s=r.children("table"),t=s.children("tbody");for(clearTimeout(a.timeout),s.children("thead").show(),a.attr("day")?(c=a.attr("day").split("-"),c=new Date(c[0],c[1],c[2])):c=new Date(void 0),e=parseInt(a.attr("month"),10),f=parseInt(a.attr("year"),10),r.attr("type","month"),r.find('div[role="period"]').text(gj.core.messages[q.locale].monthNames[e]+" "+f),g=new Array(31,28,31,30,31,30,31,31,30,31,30,31),f%4==0&&1900!=f&&(g[1]=29),h=g[e],i=(new Date(f,e,1).getDay()+7-q.weekStartDay)%7,t.empty(),b=0,$row=$("<tr />"),l=gj.datepicker.methods.getPrevMonth(e,f),j=1;j<=i;j++)d=g[l.month]-i+j,p=new Date(l.year,l.month,d),q.calendarWeeks&&1===j&&$row.append("<td><div>"+gj.datepicker.methods.getWeekNumber(p)+"</div></td>"),n=l.year===c.getFullYear()&&l.month===c.getMonth()&&d===c.getDate()?$('<td class="selected" />'):$('<td class="other-month" />'),q.showOtherMonths&&(o=$("<div>"+d+"</div>"),n.append(o),q.selectOtherMonths&&gj.datepicker.methods.isSelectable(q,p)?(n.addClass("gj-cursor-pointer"),o.on("click",gj.datepicker.methods.select(a,r,p))):n.addClass("disabled")),$row.append(n),b++;for(j>1&&t.append($row),k=new Date,j=1;j<=h;j++)p=new Date(f,e,j),0==b&&($row=$("<tr>"),q.calendarWeeks&&$row.append("<td><div>"+gj.datepicker.methods.getWeekNumber(p)+"</div></td>")),n=$('<td day="'+j+'" />'),f===c.getFullYear()&&e===c.getMonth()&&j===c.getDate()?n.addClass("selected"):f===k.getFullYear()&&e===k.getMonth()&&j===k.getDate()?n.addClass("today"):n.addClass("current-month"),o=$("<div>"+j+"</div>"),gj.datepicker.methods.isSelectable(q,p)?(n.addClass("gj-cursor-pointer"),o.on("click",gj.datepicker.methods.select(a,r,p))):n.addClass("disabled"),n.append(o),$row.append(n),7==++b&&(t.append($row),b=0);for(m=gj.datepicker.methods.getNextMonth(e,f),j=1;0!=b;j++)p=new Date(m.year,m.month,j),n=m.year===c.getFullYear()&&m.month===c.getMonth()&&j===c.getDate()?$('<td class="selected" />'):$('<td class="other-month" />'),q.showOtherMonths&&(o=$("<div>"+j+"</div>"),n.append(o),q.selectOtherMonths&&gj.datepicker.methods.isSelectable(q,p)?(n.addClass("gj-cursor-pointer"),o.on("click",gj.datepicker.methods.select(a,r,p))):n.addClass("disabled")),$row.append(n),7==++b&&(t.append($row),b=0)},renderYear:function(a,b){var c,d,e,f,g=a.data(),h=b.children("table"),i=h.children("tbody");for(clearTimeout(a.timeout),h.children("thead").hide(),c=parseInt(a.attr("year"),10),b.attr("type","year"),b.find('div[role="period"]').text(c),i.empty(),d=0;d<3;d++){for($row=$("<tr />"),e=4*d;e<=4*d+3;e++)f=$("<div>"+gj.core.messages[g.locale].monthShortNames[e]+"</div>"),f.on("click",gj.datepicker.methods.selectMonth(a,b,e)),$cell=$("<td></td>").append(f),$row.append($cell);i.append($row)}a.focus()},renderDecade:function(a,b){var c,d,e,f,g,h=b.children("table"),i=h.children("tbody");for(clearTimeout(a.timeout),h.children("thead").hide(),c=parseInt(a.attr("year"),10),d=c-c%10,b.attr("type","decade"),b.find('div[role="period"]').text(d+" - "+(d+9)),i.empty(),e=d-1;e<=d+10;e+=4){for($row=$("<tr />"),f=e;f<=e+3;f++)g=$("<div>"+f+"</div>"),g.on("click",gj.datepicker.methods.selectYear(a,b,f)),$cell=$("<td></td>").append(g),$row.append($cell);i.append($row)}a.focus()},renderCentury:function(a,b){var c,d,e,f,g,h=b.children("table"),i=h.children("tbody");for(clearTimeout(a.timeout),h.children("thead").hide(),c=parseInt(a.attr("year"),10),d=c-c%100,b.attr("type","century"),b.find('div[role="period"]').text(d+" - "+(d+99)),i.empty(),e=d-10;e<d+100;e+=40){for($row=$("<tr />"),f=e;f<=e+30;f+=10)g=$("<div>"+f+"</div>"),g.on("click",gj.datepicker.methods.selectDecade(a,b,f)),$cell=$("<td></td>").append(g),$row.append($cell);i.append($row)}a.focus()},getWeekNumber:function(a){var b=new Date(a.valueOf());b.setDate(b.getDate()+6),b=new Date(Date.UTC(b.getFullYear(),b.getMonth(),b.getDate())),b.setUTCDate(b.getUTCDate()+4-(b.getUTCDay()||7));var c=new Date(Date.UTC(b.getUTCFullYear(),0,1));return Math.ceil(((b-c)/864e5+1)/7)},getMinDate:function(a){var b;return a.minDate&&("string"==typeof a.minDate?b=gj.core.parseDate(a.minDate,a.format,a.locale):"function"==typeof a.minDate?"string"==typeof(b=a.minDate())&&(b=gj.core.parseDate(b,a.format,a.locale)):"function"==typeof a.minDate.getMonth&&(b=a.minDate)),b},getMaxDate:function(a){var b;return a.maxDate&&("string"==typeof a.maxDate?b=gj.core.parseDate(a.maxDate,a.format,a.locale):"function"==typeof a.maxDate?"string"==typeof(b=a.maxDate())&&(b=gj.core.parseDate(b,a.format,a.locale)):"function"==typeof a.maxDate.getMonth&&(b=a.maxDate)),b},isSelectable:function(a,b){var c,d=!0,e=gj.datepicker.methods.getMinDate(a),f=gj.datepicker.methods.getMaxDate(a);if(e&&b<e?d=!1:f&&b>f&&(d=!1),d){if(a.disableDates)if($.isArray(a.disableDates))for(c=0;c<a.disableDates.length;c++)a.disableDates[c]instanceof Date&&a.disableDates[c].getTime()===b.getTime()?d=!1:"string"==typeof a.disableDates[c]&&gj.core.parseDate(a.disableDates[c],a.format,a.locale).getTime()===b.getTime()&&(d=!1);else a.disableDates instanceof Function&&(d=a.disableDates(b));$.isArray(a.disableDaysOfWeek)&&a.disableDaysOfWeek.indexOf(b.getDay())>-1&&(d=!1)}return d},getPrevMonth:function(a,b){return date=new Date(b,a,1),date.setMonth(date.getMonth()-1),{month:date.getMonth(),year:date.getFullYear()}},getNextMonth:function(a,b){return date=new Date(b,a,1),date.setMonth(date.getMonth()+1),{month:date.getMonth(),year:date.getFullYear()}},prev:function(a){return function(){var b,c,d,e,f,g=$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]');switch(g.attr("type")){case"month":c=parseInt(a.attr("month"),10),d=parseInt(a.attr("year"),10),b=gj.datepicker.methods.getPrevMonth(c,d),a.attr("month",b.month),a.attr("year",b.year),gj.datepicker.methods.renderMonth(a);break;case"year":d=parseInt(a.attr("year"),10),a.attr("year",d-1),gj.datepicker.methods.renderYear(a,g);break;case"decade":d=parseInt(a.attr("year"),10),e=d-d%10,a.attr("year",e-10),gj.datepicker.methods.renderDecade(a,g);break;case"century":d=parseInt(a.attr("year"),10),f=d-d%100,a.attr("year",f-100),gj.datepicker.methods.renderCentury(a,g)}a.focus()}},next:function(a){return function(){var b,c,d,e,f,g=$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]');switch(g.attr("type")){case"month":c=parseInt(a.attr("month"),10),d=parseInt(a.attr("year"),10),b=gj.datepicker.methods.getNextMonth(c,d),a.attr("month",b.month),a.attr("year",b.year),gj.datepicker.methods.renderMonth(a);break;case"year":d=parseInt(a.attr("year"),10),a.attr("year",d+1),gj.datepicker.methods.renderYear(a,g);break;case"decade":d=parseInt(a.attr("year"),10),e=d-d%10,a.attr("year",e+10),gj.datepicker.methods.renderDecade(a,g);break;case"century":d=parseInt(a.attr("year"),10),f=d-d%100,a.attr("year",f+100),gj.datepicker.methods.renderCentury(a,g)}a.focus()}},changePeriod:function(a){return function(b){var c=$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]');switch(c.attr("type")){case"month":gj.datepicker.methods.renderYear(a,c);break;case"year":gj.datepicker.methods.renderDecade(a,c);break;case"decade":gj.datepicker.methods.renderCentury(a,c);break;case"century":clearTimeout(a.timeout),a.focus()}}},select:function(a,b,c){return function(d){var e,f=c.getMonth(),g=c.getFullYear(),h=a.data();return e=gj.core.formatDate(c,h.format,h.locale),a.val(e),gj.datepicker.events.change(a),a.attr("day",g+"-"+f+"-"+c.getDate()),a.attr("month",f),a.attr("year",g),"none"!==window.getComputedStyle(b[0]).display&&gj.datepicker.methods.close(a),a}},selectMonth:function(a,b,c){return function(b){a.attr("month",c),gj.datepicker.methods.renderMonth(a)}},selectYear:function(a,b,c){return function(d){a.attr("year",c),gj.datepicker.methods.renderYear(a,b)}},selectDecade:function(a,b,c){return function(d){a.attr("year",c),gj.datepicker.methods.renderDecade(a,b)}},open:function(a){var b=(a.data(),a.offset(),$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]'));switch(a.val()&&a.value(a.val()),b.attr("type")){case"month":gj.datepicker.methods.renderMonth(a);break;case"year":gj.datepicker.methods.renderYear(a,b);break;case"decade":gj.datepicker.methods.renderDecade(a,b);break;case"century":gj.datepicker.methods.renderCentury(a,b)}b.show(),gj.core.setChildPosition(a[0],b[0]),a.focus(),gj.datepicker.events.open(a)},close:function(a){$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]').hide(),gj.datepicker.events.close(a)},createKeyDownHandler:function(a,b){return function(c){var d,e,f,g,h,i=gj.datepicker.methods.getActiveCell(b);c=c||window.event,"none"!==window.getComputedStyle(b[0]).display&&("38"==c.keyCode?(g=i.index(),h=i.closest("tr").prev("tr").find("td:eq("+g+")"),h.is("[day]")||(gj.datepicker.methods.prev(a)(),h=b.find("tbody tr").last().find("td:eq("+g+")")),h.is("[day]")&&(h.addClass("focused"),i.removeClass("focused"))):"40"==c.keyCode?(g=i.index(),h=i.closest("tr").next("tr").find("td:eq("+g+")"),h.is("[day]")||(gj.datepicker.methods.next(a)(),h=b.find("tbody tr").first().find("td:eq("+g+")"),h.is("[day]")||(h=b.find("tbody tr:eq(1)").find("td:eq("+g+")"))),h.is("[day]")&&(h.addClass("focused"),i.removeClass("focused"))):"37"==c.keyCode?(h=i.prev("td[day]:not(.disabled)"),0===h.length&&(h=i.closest("tr").prev("tr").find("td[day]").last()),0===h.length&&(gj.datepicker.methods.prev(a)(),h=b.find("tbody tr").last().find("td[day]").last()),h.length>0&&(h.addClass("focused"),i.removeClass("focused"))):"39"==c.keyCode||"9"==c.keyCode?(h=i.next("[day]:not(.disabled)"),0===h.length&&(h=i.closest("tr").next("tr").find("td[day]").first()),0===h.length&&(gj.datepicker.methods.next(a)(),h=b.find("tbody tr").first().find("td[day]").first()),h.length>0&&(h.addClass("focused"),i.removeClass("focused"))):"13"==c.keyCode?(f=parseInt(i.attr("day"),10),d=parseInt(a.attr("month"),10),e=parseInt(a.attr("year"),10),gj.datepicker.methods.select(a,b,new Date(e,d,f))()):"27"==c.keyCode&&a.close())}},getActiveCell:function(a){var b=a.find("td[day].focused");return 0===b.length&&(b=a.find("td[day].selected"),0===b.length&&(b=a.find("td[day].today"),0===b.length&&(b=a.find("td[day]:not(.disabled)").first()))),b},value:function(a,b){var c,d,e=a.data();return void 0===b?a.val():(d=gj.core.parseDate(b,e.format,e.locale),d?(c=$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]'),gj.datepicker.methods.select(a,c,d)()):a.val(""),a)},destroy:function(a){var b=a.data(),c=a.parent();return b&&(a.off(),$("body").children('[role="calendar"][guid="'+a.attr("data-guid")+'"]').remove(),a.removeData(),a.removeAttr("data-type").removeAttr("data-guid").removeAttr("data-datepicker"),a.removeClass(),c.children('[role="right-icon"]').remove(),a.unwrap()),a}},gj.datepicker.events={change:function(a){return a.triggerHandler("change")},open:function(a){return a.triggerHandler("open")},close:function(a){return a.triggerHandler("close")}},gj.datepicker.widget=function(a,b){var c=this,d=gj.datepicker.methods;return c.value=function(a){return d.value(this,a)},c.destroy=function(){return d.destroy(this)},c.open=function(){gj.datepicker.methods.open(this)},c.close=function(){gj.datepicker.methods.close(this)},$.extend(a,c),"true"!==a.attr("data-datepicker")&&d.init.call(a,b),a},gj.datepicker.widget.prototype=new gj.widget,gj.datepicker.widget.constructor=gj.datepicker.widget,function(a){a.fn.datepicker=function(a){var b;if(this&&this.length){if("object"!=typeof a&&a){if(b=new gj.datepicker.widget(this,null),b[a])return b[a].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+a+" does not exist."}return new gj.datepicker.widget(this,a)}}}(jQuery),gj.core.messages["bg-bg"]={monthNames:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthShortNames:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","ОКт","Ное","Дек"]},gj.datepicker.messages["bg-bg"]={weekDays:["Н","П","В","С","Ч","П","С"]},gj.core.messages["fr-fr"]={monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthShortNames:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]},gj.datepicker.messages["fr-fr"]={weekDays:["D","L","M","M","J","V","S"]},gj.core.messages["de-de"]={monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthShortNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},gj.datepicker.messages["de-de"]={weekDays:["So","Mo","Di","Mi","Do","Fr","Sa"]},gj.core.messages["pt-br"]={monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthShortNames:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]},gj.datepicker.messages["pt-br"]={weekDays:["D","S","T","Q","Q","S","S"]},gj.core.messages["ru-ru"]={monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthShortNames:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"]},gj.datepicker.messages["ru-ru"]={weekDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"]},gj.core.messages["es-es"]={monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","setiembre","octubre","noviembre","diciembre"],monthShortNames:["ene.","feb.","mar","abr.","may","jun","jul.","ago","set.","oct.","nov.","dic."]},gj.datepicker.messages["es-es"]={weekDays:["D","L","M","M","J","V","S"]},gj.core.messages["it-it"]={monthNames:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],monthShortNames:["gen.","feb.","mar.","apr.","mag.","giu.","lug.","ago.","set.","ott.","nov.","dic."]},gj.datepicker.messages["it-it"]={weekDays:["D","L","M","M","G","V","S"]};
/*
* Gijgo Dialog v1.9.2
* Gijgo Dialog v1.9.3
* http://gijgo.com/dialog

@@ -4,0 +4,0 @@ *

/*
* Gijgo Draggable v1.9.2
* Gijgo Draggable v1.9.3
* http://gijgo.com/draggable

@@ -4,0 +4,0 @@ *

/*
* Gijgo DropDown v1.9.2
* Gijgo DropDown v1.9.3
* http://gijgo.com/dropdown

@@ -169,3 +169,3 @@ *

presenterHeight = gj.core.height(presenter, true);
if (!isNaN(listHeight) && data.maxHeight === 'auto' && (listHeight + presenterHeight) > window.innerHeight) {
if (!isNaN(listHeight) && data.maxHeight === 'auto' && (mainElRect.top + listHeight + presenterHeight) > window.innerHeight) {
newHeight = window.innerHeight - mainElRect.top - presenterHeight - 3;

@@ -172,0 +172,0 @@ } else if (!isNaN(listHeight) && !isNaN(data.maxHeight) && data.maxHeight < listHeight) {

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

gj.dropdown={plugins:{}},gj.dropdown.config={base:{dataSource:void 0,textField:"text",valueField:"value",selectedField:"selected",width:void 0,maxHeight:"auto",placeholder:void 0,fontSize:void 0,uiLibrary:"materialdesign",iconsLibrary:"materialicons",icons:{dropdown:'<i class="gj-icon arrow-dropdown" />',dropup:'<i class="gj-icon arrow-dropup" />'},style:{wrapper:"gj-dropdown gj-dropdown-md gj-unselectable",list:"gj-list gj-list-md gj-dropdown-list-md",active:"gj-list-md-active"}},bootstrap:{style:{wrapper:"gj-dropdown gj-dropdown-bootstrap gj-dropdown-bootstrap-3 gj-unselectable",presenter:"btn btn-default",list:"gj-list gj-list-bootstrap gj-dropdown-list-bootstrap list-group",item:"list-group-item",active:"active"},iconsLibrary:"glyphicons"},bootstrap4:{style:{wrapper:"gj-dropdown gj-dropdown-bootstrap gj-dropdown-bootstrap-4 gj-unselectable",presenter:"btn btn-outline-secondary",list:"gj-list gj-list-bootstrap gj-dropdown-list-bootstrap list-group",item:"list-group-item",active:"active"}},materialicons:{style:{expander:"gj-dropdown-expander-mi"}},fontawesome:{icons:{dropdown:'<i class="fa fa-caret-down" aria-hidden="true"></i>',dropup:'<i class="fa fa-caret-up" aria-hidden="true"></i>'},style:{expander:"gj-dropdown-expander-fa"}},glyphicons:{icons:{dropdown:'<span class="caret"></span>',dropup:'<span class="dropup"><span class="caret" ></span></span>'},style:{expander:"gj-dropdown-expander-glyphicons"}}},gj.dropdown.methods={init:function(a){return gj.widget.prototype.init.call(this,a,"dropdown"),this.attr("data-dropdown","true"),gj.dropdown.methods.initialize(this),this},getHTMLConfig:function(){var a=gj.widget.prototype.getHTMLConfig.call(this),b=this[0].attributes;return b.placeholder&&(a.placeholder=b.placeholder.value),a},initialize:function(a){var b=a.data(),c=a.parent('div[role="wrapper"]'),d=$('<span role="display"></span>'),e=$('<span role="expander">'+b.icons.dropdown+"</span>").addClass(b.style.expander),f=$('<button role="presenter" type="button"></button>').addClass(b.style.presenter),g=$('<ul role="list" class="'+b.style.list+'"></ul>').attr("guid",a.attr("data-guid"));0===c.length?(c=$('<div role="wrapper" />').addClass(b.style.wrapper),a.wrap(c)):c.addClass(b.style.wrapper),b.fontSize&&f.css("font-size",b.fontSize),f.on("click",function(b){g.is(":visible")?gj.dropdown.methods.close(a,g):gj.dropdown.methods.open(a,g)}),f.on("blur",function(b){setTimeout(function(){gj.dropdown.methods.close(a,g)},500)}),f.append(d).append(e),a.hide(),a.after(f),$("body").append(g),g.hide(),a.reload()},setListPosition:function(a,b,c){var d,e,f,g=a.getBoundingClientRect();gj.core.setChildPosition(a,b),b.style.overflow="",b.style.overflowX="",b.style.height="",d=gj.core.height(b,!0),e=gj.core.height(a,!0),!isNaN(d)&&"auto"===c.maxHeight&&d+e>window.innerHeight?f=window.innerHeight-g.top-e-3:!isNaN(d)&&!isNaN(c.maxHeight)&&c.maxHeight<d&&(f=c.maxHeight),f&&(b.style.overflow="scroll",b.style.overflowX="hidden",b.style.height=f+"px")},useHtmlDataSource:function(a,b){var c,d,e=[],f=a.find("option");for(c=0;c<f.length;c++)d={},d[b.valueField]=f[c].value,d[b.textField]=f[c].innerHTML,d[b.selectedField]=a[0].value===f[c].value,e.push(d);b.dataSource=e},filter:function(a){var b,c,d=a.data();if(d.dataSource){if("string"==typeof d.dataSource[0])for(b=0;b<d.dataSource.length;b++)c={},c[d.valueField]=d.dataSource[b],c[d.textField]=d.dataSource[b],d.dataSource[b]=c}else d.dataSource=[];return d.dataSource},render:function(a,b){var c=[],d=a.data(),e=a.parent(),f=$("body").children('[role="list"][guid="'+a.attr("data-guid")+'"]'),g=e.children('[role="presenter"]'),h=(g.children('[role="expander"]'),g.children('[role="display"]'));if(a.data("records",b),a.empty(),f.empty(),b&&b.length)if($.each(b,function(){var b,e=this[d.valueField],g=this[d.textField],h=this[d.selectedField]&&"true"===this[d.selectedField].toString().toLowerCase();b=$('<li value="'+e+'"><div data-role="wrapper"><span data-role="display">'+g+"</span></div></li>"),b.addClass(d.style.item),b.on("click",function(b){gj.dropdown.methods.select(a,e)}),f.append(b),a.append('<option value="'+e+'">'+g+"</option>"),h&&c.push(e)}),0===c.length)a.prepend('<option value=""></option>'),d.placeholder&&(h[0].innerHTML='<span class="placeholder">'+d.placeholder+"</span>");else for(i=0;i<c.length;i++)gj.dropdown.methods.select(a,c[i]);return d.width&&(e.css("width",d.width),g.css("width",d.width)),d.fontSize&&f.children("li").css("font-size",d.fontSize),gj.dropdown.events.dataBound(a),a},open:function(a,b){var c=a.data(),d=a.parent().find('[role="expander"]'),e=a.parent().find('[role="presenter"]');b.css("width",gj.core.width(e[0])),b.show(),gj.dropdown.methods.setListPosition(e[0],b[0],c),d.html(c.icons.dropup)},close:function(a,b){var c=a.data();a.parent().find('[role="expander"]').html(c.icons.dropdown),b.hide()},select:function(a,b){var c=a.data(),d=$("body").children('[role="list"][guid="'+a.attr("data-guid")+'"]'),e=d.children('li[value="'+b+'"]'),f=gj.dropdown.methods.getRecordByValue(a,b);return f&&(d.children("li").removeClass(c.style.active),e.addClass(c.style.active),a[0].value=b,a.next('[role="presenter"]').find('[role="display"]').html(f[c.textField]),gj.dropdown.events.change(a)),gj.dropdown.methods.close(a,d),a},getRecordByValue:function(a,b){var c,d=a.data(),e=void 0;for(c=0;c<d.records.length;c++)if(d.records[c][d.valueField]===b){e=d.records[c];break}return e},value:function(a,b){return void 0===b?a.val():(gj.dropdown.methods.select(a,b),a)},destroy:function(a){var b=a.data(),c=a.parent('div[role="wrapper"]');return b&&(a.xhr&&a.xhr.abort(),a.off(),a.removeData(),a.removeAttr("data-type").removeAttr("data-guid").removeAttr("data-dropdown"),a.removeClass(),c.length>0&&(c.children('[role="presenter"]').remove(),c.children('[role="list"]').remove(),a.unwrap()),a.show()),$tree}},gj.dropdown.events={change:function(a){return a.triggerHandler("change")},dataBound:function(a){return a.triggerHandler("dataBound")}},gj.dropdown.widget=function(a,b){var c=this,d=gj.dropdown.methods;return c.value=function(a){return d.value(this,a)},c.enable=function(){return d.enable(this)},c.disable=function(){return d.disable(this)},c.destroy=function(){return d.destroy(this)},$.extend(a,c),"true"!==a.attr("data-dropdown")&&d.init.call(a,b),a},gj.dropdown.widget.prototype=new gj.widget,gj.dropdown.widget.constructor=gj.dropdown.widget,gj.dropdown.widget.prototype.getHTMLConfig=gj.dropdown.methods.getHTMLConfig,function(a){a.fn.dropdown=function(a){var b;if(this&&this.length){if("object"!=typeof a&&a){if(b=new gj.dropdown.widget(this,null),b[a])return b[a].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+a+" does not exist."}return new gj.dropdown.widget(this,a)}}}(jQuery);
gj.dropdown={plugins:{}},gj.dropdown.config={base:{dataSource:void 0,textField:"text",valueField:"value",selectedField:"selected",width:void 0,maxHeight:"auto",placeholder:void 0,fontSize:void 0,uiLibrary:"materialdesign",iconsLibrary:"materialicons",icons:{dropdown:'<i class="gj-icon arrow-dropdown" />',dropup:'<i class="gj-icon arrow-dropup" />'},style:{wrapper:"gj-dropdown gj-dropdown-md gj-unselectable",list:"gj-list gj-list-md gj-dropdown-list-md",active:"gj-list-md-active"}},bootstrap:{style:{wrapper:"gj-dropdown gj-dropdown-bootstrap gj-dropdown-bootstrap-3 gj-unselectable",presenter:"btn btn-default",list:"gj-list gj-list-bootstrap gj-dropdown-list-bootstrap list-group",item:"list-group-item",active:"active"},iconsLibrary:"glyphicons"},bootstrap4:{style:{wrapper:"gj-dropdown gj-dropdown-bootstrap gj-dropdown-bootstrap-4 gj-unselectable",presenter:"btn btn-outline-secondary",list:"gj-list gj-list-bootstrap gj-dropdown-list-bootstrap list-group",item:"list-group-item",active:"active"}},materialicons:{style:{expander:"gj-dropdown-expander-mi"}},fontawesome:{icons:{dropdown:'<i class="fa fa-caret-down" aria-hidden="true"></i>',dropup:'<i class="fa fa-caret-up" aria-hidden="true"></i>'},style:{expander:"gj-dropdown-expander-fa"}},glyphicons:{icons:{dropdown:'<span class="caret"></span>',dropup:'<span class="dropup"><span class="caret" ></span></span>'},style:{expander:"gj-dropdown-expander-glyphicons"}}},gj.dropdown.methods={init:function(a){return gj.widget.prototype.init.call(this,a,"dropdown"),this.attr("data-dropdown","true"),gj.dropdown.methods.initialize(this),this},getHTMLConfig:function(){var a=gj.widget.prototype.getHTMLConfig.call(this),b=this[0].attributes;return b.placeholder&&(a.placeholder=b.placeholder.value),a},initialize:function(a){var b=a.data(),c=a.parent('div[role="wrapper"]'),d=$('<span role="display"></span>'),e=$('<span role="expander">'+b.icons.dropdown+"</span>").addClass(b.style.expander),f=$('<button role="presenter" type="button"></button>').addClass(b.style.presenter),g=$('<ul role="list" class="'+b.style.list+'"></ul>').attr("guid",a.attr("data-guid"));0===c.length?(c=$('<div role="wrapper" />').addClass(b.style.wrapper),a.wrap(c)):c.addClass(b.style.wrapper),b.fontSize&&f.css("font-size",b.fontSize),f.on("click",function(b){g.is(":visible")?gj.dropdown.methods.close(a,g):gj.dropdown.methods.open(a,g)}),f.on("blur",function(b){setTimeout(function(){gj.dropdown.methods.close(a,g)},500)}),f.append(d).append(e),a.hide(),a.after(f),$("body").append(g),g.hide(),a.reload()},setListPosition:function(a,b,c){var d,e,f,g=a.getBoundingClientRect();gj.core.setChildPosition(a,b),b.style.overflow="",b.style.overflowX="",b.style.height="",d=gj.core.height(b,!0),e=gj.core.height(a,!0),!isNaN(d)&&"auto"===c.maxHeight&&g.top+d+e>window.innerHeight?f=window.innerHeight-g.top-e-3:!isNaN(d)&&!isNaN(c.maxHeight)&&c.maxHeight<d&&(f=c.maxHeight),f&&(b.style.overflow="scroll",b.style.overflowX="hidden",b.style.height=f+"px")},useHtmlDataSource:function(a,b){var c,d,e=[],f=a.find("option");for(c=0;c<f.length;c++)d={},d[b.valueField]=f[c].value,d[b.textField]=f[c].innerHTML,d[b.selectedField]=a[0].value===f[c].value,e.push(d);b.dataSource=e},filter:function(a){var b,c,d=a.data();if(d.dataSource){if("string"==typeof d.dataSource[0])for(b=0;b<d.dataSource.length;b++)c={},c[d.valueField]=d.dataSource[b],c[d.textField]=d.dataSource[b],d.dataSource[b]=c}else d.dataSource=[];return d.dataSource},render:function(a,b){var c=[],d=a.data(),e=a.parent(),f=$("body").children('[role="list"][guid="'+a.attr("data-guid")+'"]'),g=e.children('[role="presenter"]'),h=(g.children('[role="expander"]'),g.children('[role="display"]'));if(a.data("records",b),a.empty(),f.empty(),b&&b.length)if($.each(b,function(){var b,e=this[d.valueField],g=this[d.textField],h=this[d.selectedField]&&"true"===this[d.selectedField].toString().toLowerCase();b=$('<li value="'+e+'"><div data-role="wrapper"><span data-role="display">'+g+"</span></div></li>"),b.addClass(d.style.item),b.on("click",function(b){gj.dropdown.methods.select(a,e)}),f.append(b),a.append('<option value="'+e+'">'+g+"</option>"),h&&c.push(e)}),0===c.length)a.prepend('<option value=""></option>'),d.placeholder&&(h[0].innerHTML='<span class="placeholder">'+d.placeholder+"</span>");else for(i=0;i<c.length;i++)gj.dropdown.methods.select(a,c[i]);return d.width&&(e.css("width",d.width),g.css("width",d.width)),d.fontSize&&f.children("li").css("font-size",d.fontSize),gj.dropdown.events.dataBound(a),a},open:function(a,b){var c=a.data(),d=a.parent().find('[role="expander"]'),e=a.parent().find('[role="presenter"]');b.css("width",gj.core.width(e[0])),b.show(),gj.dropdown.methods.setListPosition(e[0],b[0],c),d.html(c.icons.dropup)},close:function(a,b){var c=a.data();a.parent().find('[role="expander"]').html(c.icons.dropdown),b.hide()},select:function(a,b){var c=a.data(),d=$("body").children('[role="list"][guid="'+a.attr("data-guid")+'"]'),e=d.children('li[value="'+b+'"]'),f=gj.dropdown.methods.getRecordByValue(a,b);return f&&(d.children("li").removeClass(c.style.active),e.addClass(c.style.active),a[0].value=b,a.next('[role="presenter"]').find('[role="display"]').html(f[c.textField]),gj.dropdown.events.change(a)),gj.dropdown.methods.close(a,d),a},getRecordByValue:function(a,b){var c,d=a.data(),e=void 0;for(c=0;c<d.records.length;c++)if(d.records[c][d.valueField]===b){e=d.records[c];break}return e},value:function(a,b){return void 0===b?a.val():(gj.dropdown.methods.select(a,b),a)},destroy:function(a){var b=a.data(),c=a.parent('div[role="wrapper"]');return b&&(a.xhr&&a.xhr.abort(),a.off(),a.removeData(),a.removeAttr("data-type").removeAttr("data-guid").removeAttr("data-dropdown"),a.removeClass(),c.length>0&&(c.children('[role="presenter"]').remove(),c.children('[role="list"]').remove(),a.unwrap()),a.show()),$tree}},gj.dropdown.events={change:function(a){return a.triggerHandler("change")},dataBound:function(a){return a.triggerHandler("dataBound")}},gj.dropdown.widget=function(a,b){var c=this,d=gj.dropdown.methods;return c.value=function(a){return d.value(this,a)},c.enable=function(){return d.enable(this)},c.disable=function(){return d.disable(this)},c.destroy=function(){return d.destroy(this)},$.extend(a,c),"true"!==a.attr("data-dropdown")&&d.init.call(a,b),a},gj.dropdown.widget.prototype=new gj.widget,gj.dropdown.widget.constructor=gj.dropdown.widget,gj.dropdown.widget.prototype.getHTMLConfig=gj.dropdown.methods.getHTMLConfig,function(a){a.fn.dropdown=function(a){var b;if(this&&this.length){if("object"!=typeof a&&a){if(b=new gj.dropdown.widget(this,null),b[a])return b[a].apply(this,Array.prototype.slice.call(arguments,1));throw"Method "+a+" does not exist."}return new gj.dropdown.widget(this,a)}}}(jQuery);
/*
* Gijgo Droppable v1.9.2
* Gijgo Droppable v1.9.3
* http://gijgo.com/droppable

@@ -4,0 +4,0 @@ *

/*
* Gijgo Editor v1.9.2
* Gijgo Editor v1.9.3
* http://gijgo.com/editor

@@ -4,0 +4,0 @@ *

/*
* Gijgo TimePicker v1.9.2
* Gijgo TimePicker v1.9.3
* http://gijgo.com/timepicker

@@ -4,0 +4,0 @@ *

/*
* Gijgo Tree v1.9.2
* Gijgo Tree v1.9.3
* http://gijgo.com/tree

@@ -4,0 +4,0 @@ *

{
"name": "gijgo",
"version": "1.9.2",
"version": "1.9.3",
"description": "Gijgo is a set of free open source javascript controls distributed under MIT License. All widgets are high performance, built on top of the jQuery JavaScript Library with built-in support for Bootstrap, Material Design and Font Awesome. They are designed to saves you time and scales with your development process.",

@@ -5,0 +5,0 @@ "main": "combined/js/gijgo.js",

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 too big to display

Sorry, the diff of this file is too big to display

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 too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc