bulma-extensions
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -74,2 +74,5 @@ var datepicker_langs = { | ||
this.datePickerContainer.id = 'datePicker' + ( new Date ).getTime(); | ||
if (this.options.overlay) { | ||
this.datePickerContainer.classList.add('modal'); | ||
} | ||
this.datePickerContainer.classList.add('datepicker'); | ||
@@ -84,7 +87,16 @@ | ||
var datePickerOverlay = document.createElement('div'); | ||
datePickerOverlay.classList.add('is-overlay'); | ||
datePickerOverlay.classList.add('modal-background'); | ||
this.datePickerContainer.appendChild(datePickerOverlay); | ||
} | ||
var modalClose = document.createElement('button'); | ||
modalClose.className = 'modal-close'; | ||
modalClose.addEventListener('click', function(e) { | ||
e.preventDefault(); | ||
_this.datePickerContainer.classList.remove('is-active'); | ||
}) | ||
this.datePickerContainer.appendChild(this.calendarContainer); | ||
this.datePickerContainer.appendChild(modalClose); | ||
document.body.appendChild(this.datePickerContainer); | ||
@@ -120,3 +132,2 @@ | ||
var newDayContainer = document.createElement('div'); | ||
var newDay = document.createElement('div'); | ||
var newDayButton = document.createElement('button'); | ||
@@ -138,8 +149,5 @@ | ||
newDay.appendChild(newDayButton); | ||
newDayContainer.classList.add('calendar-date'); | ||
newDayContainer.appendChild(newDay); | ||
newDayContainer.appendChild(newDayButton); | ||
newDay.classList.add('calendar-date'); | ||
if (isDisabled) { | ||
@@ -351,3 +359,5 @@ newDayContainer.setAttribute('disabled', 'disabled'); | ||
this.datePickerContainer.classList.add('is-active'); | ||
this.adjustPosition(); | ||
if (!this.options.overlay) { | ||
this.adjustPosition(); | ||
} | ||
this.open = true; | ||
@@ -354,0 +364,0 @@ } |
@@ -1,24 +0,25 @@ | ||
var $jscomp={scope:{},owns:function(a,c){return Object.prototype.hasOwnProperty.call(a,c)}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){if(b.get||b.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[c]=b.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this); | ||
$jscomp.polyfill=function(a,c,b,g){if(c){b=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var e=a[g];e in b||(b[e]={});b=b[e]}a=a[a.length-1];g=b[a];c=c(g);c!=g&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})}};$jscomp.polyfill("Object.assign",function(a){return a?a:function(a,b){for(var c=1;c<arguments.length;c++){var e=arguments[c];if(e)for(var d in e)$jscomp.owns(e,d)&&(a[d]=e[d])}return a}},"es6-impl","es3"); | ||
var $jscomp={scope:{},owns:function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this); | ||
$jscomp.polyfill=function(a,b,c,g){if(b){c=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var e=a[g];e in c||(c[e]={});c=c[e]}a=a[a.length-1];g=c[a];b=b(g);b!=g&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};$jscomp.polyfill("Object.assign",function(a){return a?a:function(a,c){for(var b=1;b<arguments.length;b++){var e=arguments[b];if(e)for(var d in e)$jscomp.owns(e,d)&&(a[d]=e[d])}return a}},"es6-impl","es3"); | ||
var datepicker_langs={en:{weekStart:1,previousMonth:"Previous Month",nextMonth:"Next Month",months:"January February March April May June July August September October November December".split(" "),monthsShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdaysShort:"Sun Mon Tue Wed Thu Fri Sat".split(" ")},fr:{weekStart:1,previousMonth:"Mois pr\u00e9c\u00e9dent",nextMonth:"Mois suivant",months:"Janvier F\u00e9vrier Mars Avril Mai Juin Juillet Ao\u00fbt Septembre Octobre Novembre D\u00e9cembre".split(" "), | ||
monthsShort:"Jan F\u00e9v Mar Avr Mai Juin Juil Auo Sep Oct Nov D\u00e9c".split(" "),weekdays:"Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi".split(" "),weekdaysShort:"Dim Lun Mar Mer Jeu Ven Sam".split(" ")},de:{weekStart:1,previousMonth:"Vorheriger Monat",nextMonth:"N\u00e4chster Monat",months:"Januar Februar M\u00e4rz April Mai Juni Juli August September Oktober November Dezember".split(" "),monthsShort:"Jan Febr M\u00e4rz Apr Mai Juni Juli Aug Sept Okt Nov Dez".split(" "),weekdays:"Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag".split(" "), | ||
weekdaysShort:"So Mo Di Mi Do Fr Sa".split(" ")}},DatePicker=function(a,c){c||(c={});var b={startDate:new Date,dataFormat:"yyyy/mm/dd",lang:"en",overlay:!1,closeOnSelect:!0,onSelect:null,onOpen:null,onClose:null,onRender:null};this.element="string"===typeof a?document.querySelector(a):a;if(!this.element)throw Error("An invalid selector or non-DOM node has been provided.");this.parent=this.element.parentElement;this.lang="undefined"!==typeof datepicker_langs[this.lang]?this.lang:"en";this.options= | ||
Object.assign({},b,c);this.month=this.options.startDate.getMonth();this.year=this.options.startDate.getFullYear();this.open=!1;this.build()}; | ||
DatePicker.prototype.build=function(){var a=this;this.datePickerContainer=document.createElement("div");this.datePickerContainer.id="datePicker"+(new Date).getTime();this.datePickerContainer.classList.add("datepicker");this.calendarContainer=document.createElement("div");this.calendarContainer.id="datePicker"+(new Date).getTime();this.calendarContainer.classList.add("calendar");this.renderCalendar();if(this.options.overlay){var c=document.createElement("div");c.classList.add("is-overlay");this.datePickerContainer.appendChild(c)}this.datePickerContainer.appendChild(this.calendarContainer); | ||
document.body.appendChild(this.datePickerContainer);this.element.addEventListener("click",function(b){b.preventDefault();a.open?(a.hide(),a.open=!1):(a.show(),a.open=!0)})};DatePicker.prototype.renderDayName=function(a,c){for(a+=datepicker_langs[this.options.lang].weekStart;7<=a;)a-=7;return(void 0===c?0:c)?datepicker_langs[this.options.lang].weekdaysShort[a]:datepicker_langs[this.options.lang].weekdays[a]}; | ||
DatePicker.prototype.renderDay=function(a,c,b,g,e,d,f,h,n,l){var k=this;f=document.createElement("div");var p=document.createElement("div"),m=document.createElement("button");m.classList.add("date-item");m.innerHTML=a;m.addEventListener("click",function(d){if("undefined"!=typeof k.options.onSelect&&null!=k.options.onSelect&&k.options.onSelect)k.options.onSelect(new Date(b,c,a));k.element.value=k.getFormatedDate(new Date(b,c,a),k.options.dataFormat);k.options.closeOnSelect&&k.hide()});p.appendChild(m); | ||
f.classList.add("calendar-date");f.appendChild(p);p.classList.add("calendar-date");d&&f.setAttribute("disabled","disabled");e&&f.classList.add("is-today");g&&f.classList.add("is-active");h&&f.classList.add("calendar-range");n&&f.classList.add("range-start");l&&f.classList.add("range-end");return f}; | ||
DatePicker.prototype.renderNav=function(a,c){var b=this,g=document.createElement("div");g.classList.add("calendar-nav");var e=document.createElement("div");e.classList.add("calendar-nav-left");this.previousYearButton=document.createElement("div");this.previousYearButton.classList.add("button");this.previousYearButton.classList.add("is-text");var d=document.createElement("i");d.classList.add("fa");d.classList.add("fa-backward");this.previousYearButton.appendChild(d);this.previousYearButton.addEventListener("click", | ||
function(a){a.preventDefault();b.prevYear()});e.appendChild(this.previousYearButton);this.previousMonthButton=document.createElement("div");this.previousMonthButton.classList.add("button");this.previousMonthButton.classList.add("is-text");d=document.createElement("i");d.classList.add("fa");d.classList.add("fa-chevron-left");this.previousMonthButton.appendChild(d);this.previousMonthButton.addEventListener("click",function(a){a.preventDefault();b.prevMonth()});e.appendChild(this.previousMonthButton); | ||
d=document.createElement("div");d.innerHTML=datepicker_langs[this.options.lang].months[c]+" "+a;var f=document.createElement("div");f.classList.add("calendar-nav-right");this.nextMonthButton=document.createElement("div");this.nextMonthButton.classList.add("button");this.nextMonthButton.classList.add("is-text");var h=document.createElement("i");h.classList.add("fa");h.classList.add("fa-chevron-right");this.nextMonthButton.appendChild(h);this.nextMonthButton.addEventListener("click",function(a){a.preventDefault(); | ||
b.nextMonth()});f.appendChild(this.nextMonthButton);this.nextYearButton=document.createElement("div");this.nextYearButton.classList.add("button");this.nextYearButton.classList.add("is-text");h=document.createElement("i");h.classList.add("fa");h.classList.add("fa-forward");this.nextYearButton.appendChild(h);this.nextYearButton.addEventListener("click",function(a){a.preventDefault();b.nextYear()});f.appendChild(this.nextYearButton);g.appendChild(e);g.appendChild(d);g.appendChild(f);return g}; | ||
DatePicker.prototype.renderHeader=function(){var a=document.createElement("div");a.classList.add("calendar-header");for(var c=0;7>c;c++){var b=document.createElement("div");b.classList.add("calendar-date");b.innerHTML=this.renderDayName(c,!0);a.appendChild(b)}return a};DatePicker.prototype.renderBody=function(){var a=document.createElement("div");a.classList.add("calendar-body");return a}; | ||
DatePicker.prototype.renderCalendar=function(){var a=new Date,c=this.renderNav(this.year,this.month),b=this.renderHeader(),g=this.renderBody();this.calendarContainer.appendChild(c);this.calendarContainer.appendChild(b);this.calendarContainer.appendChild(g);c=this.getDaysInMonth(this.year,this.month);b=(new Date(this.year,this.month,1)).getDay();if("undefined"!=typeof this.options.onRender&&null!=this.options.onRender&&this.options.onRender)this.options.onRender(this);0<datepicker_langs[this.options.lang].weekStart&& | ||
(b-=datepicker_langs[this.options.lang].weekStart,0>b&&(b+=7));for(var e=c+b,d=e;7<d;)d-=7;e+=7-d;for(d=0;d<e;d++){var f=new Date(this.year,this.month,1+(d-b)),h=this.compareDates(f,a),n=d<b||d>=c+b,l=!1;f.getMonth()!==this.month&&(l=!0);g.append(this.renderDay(f.getDate(),this.month,this.year,!1,h,l,n,!1,!1,!1))}};DatePicker.prototype.prevMonth=function(){--this.month;this.adjustCalendar();this.renderCalendar()};DatePicker.prototype.nextMonth=function(){this.month+=1;this.adjustCalendar();this.renderCalendar()}; | ||
DatePicker.prototype.prevYear=function(){--this.year;this.adjustCalendar();this.renderCalendar()};DatePicker.prototype.nextYear=function(){this.year+=1;this.adjustCalendar();this.renderCalendar()};DatePicker.prototype.show=function(){if("undefined"!=typeof this.options.onOpen&&null!=this.options.onOpen&&this.options.onOpen)this.options.onOpen(this);this.datePickerContainer.classList.add("is-active");this.adjustPosition();this.open=!0}; | ||
weekdaysShort:"So Mo Di Mi Do Fr Sa".split(" ")}},DatePicker=function(a,b){b||(b={});var c={startDate:new Date,dataFormat:"yyyy/mm/dd",lang:"en",overlay:!1,closeOnSelect:!0,onSelect:null,onOpen:null,onClose:null,onRender:null};this.element="string"===typeof a?document.querySelector(a):a;if(!this.element)throw Error("An invalid selector or non-DOM node has been provided.");this.parent=this.element.parentElement;this.lang="undefined"!==typeof datepicker_langs[this.lang]?this.lang:"en";this.options= | ||
Object.assign({},c,b);this.month=this.options.startDate.getMonth();this.year=this.options.startDate.getFullYear();this.open=!1;this.build()}; | ||
DatePicker.prototype.build=function(){var a=this;this.datePickerContainer=document.createElement("div");this.datePickerContainer.id="datePicker"+(new Date).getTime();this.options.overlay&&this.datePickerContainer.classList.add("modal");this.datePickerContainer.classList.add("datepicker");this.calendarContainer=document.createElement("div");this.calendarContainer.id="datePicker"+(new Date).getTime();this.calendarContainer.classList.add("calendar");this.renderCalendar();if(this.options.overlay){var b= | ||
document.createElement("div");b.classList.add("modal-background");this.datePickerContainer.appendChild(b)}b=document.createElement("button");b.className="modal-close";b.addEventListener("click",function(b){b.preventDefault();a.datePickerContainer.classList.remove("is-active")});this.datePickerContainer.appendChild(this.calendarContainer);this.datePickerContainer.appendChild(b);document.body.appendChild(this.datePickerContainer);this.element.addEventListener("click",function(b){b.preventDefault(); | ||
a.open?(a.hide(),a.open=!1):(a.show(),a.open=!0)})};DatePicker.prototype.renderDayName=function(a,b){for(a+=datepicker_langs[this.options.lang].weekStart;7<=a;)a-=7;return(void 0===b?0:b)?datepicker_langs[this.options.lang].weekdaysShort[a]:datepicker_langs[this.options.lang].weekdays[a]}; | ||
DatePicker.prototype.renderDay=function(a,b,c,g,e,d,f,h,n,l){var k=this;f=document.createElement("div");var m=document.createElement("button");m.classList.add("date-item");m.innerHTML=a;m.addEventListener("click",function(d){if("undefined"!=typeof k.options.onSelect&&null!=k.options.onSelect&&k.options.onSelect)k.options.onSelect(new Date(c,b,a));k.element.value=k.getFormatedDate(new Date(c,b,a),k.options.dataFormat);k.options.closeOnSelect&&k.hide()});f.classList.add("calendar-date");f.appendChild(m); | ||
d&&f.setAttribute("disabled","disabled");e&&f.classList.add("is-today");g&&f.classList.add("is-active");h&&f.classList.add("calendar-range");n&&f.classList.add("range-start");l&&f.classList.add("range-end");return f}; | ||
DatePicker.prototype.renderNav=function(a,b){var c=this,g=document.createElement("div");g.classList.add("calendar-nav");var e=document.createElement("div");e.classList.add("calendar-nav-left");this.previousYearButton=document.createElement("div");this.previousYearButton.classList.add("button");this.previousYearButton.classList.add("is-text");var d=document.createElement("i");d.classList.add("fa");d.classList.add("fa-backward");this.previousYearButton.appendChild(d);this.previousYearButton.addEventListener("click", | ||
function(a){a.preventDefault();c.prevYear()});e.appendChild(this.previousYearButton);this.previousMonthButton=document.createElement("div");this.previousMonthButton.classList.add("button");this.previousMonthButton.classList.add("is-text");d=document.createElement("i");d.classList.add("fa");d.classList.add("fa-chevron-left");this.previousMonthButton.appendChild(d);this.previousMonthButton.addEventListener("click",function(a){a.preventDefault();c.prevMonth()});e.appendChild(this.previousMonthButton); | ||
d=document.createElement("div");d.innerHTML=datepicker_langs[this.options.lang].months[b]+" "+a;var f=document.createElement("div");f.classList.add("calendar-nav-right");this.nextMonthButton=document.createElement("div");this.nextMonthButton.classList.add("button");this.nextMonthButton.classList.add("is-text");var h=document.createElement("i");h.classList.add("fa");h.classList.add("fa-chevron-right");this.nextMonthButton.appendChild(h);this.nextMonthButton.addEventListener("click",function(a){a.preventDefault(); | ||
c.nextMonth()});f.appendChild(this.nextMonthButton);this.nextYearButton=document.createElement("div");this.nextYearButton.classList.add("button");this.nextYearButton.classList.add("is-text");h=document.createElement("i");h.classList.add("fa");h.classList.add("fa-forward");this.nextYearButton.appendChild(h);this.nextYearButton.addEventListener("click",function(a){a.preventDefault();c.nextYear()});f.appendChild(this.nextYearButton);g.appendChild(e);g.appendChild(d);g.appendChild(f);return g}; | ||
DatePicker.prototype.renderHeader=function(){var a=document.createElement("div");a.classList.add("calendar-header");for(var b=0;7>b;b++){var c=document.createElement("div");c.classList.add("calendar-date");c.innerHTML=this.renderDayName(b,!0);a.appendChild(c)}return a};DatePicker.prototype.renderBody=function(){var a=document.createElement("div");a.classList.add("calendar-body");return a}; | ||
DatePicker.prototype.renderCalendar=function(){var a=new Date,b=this.renderNav(this.year,this.month),c=this.renderHeader(),g=this.renderBody();this.calendarContainer.appendChild(b);this.calendarContainer.appendChild(c);this.calendarContainer.appendChild(g);b=this.getDaysInMonth(this.year,this.month);c=(new Date(this.year,this.month,1)).getDay();if("undefined"!=typeof this.options.onRender&&null!=this.options.onRender&&this.options.onRender)this.options.onRender(this);0<datepicker_langs[this.options.lang].weekStart&& | ||
(c-=datepicker_langs[this.options.lang].weekStart,0>c&&(c+=7));for(var e=b+c,d=e;7<d;)d-=7;e+=7-d;for(d=0;d<e;d++){var f=new Date(this.year,this.month,1+(d-c)),h=this.compareDates(f,a),n=d<c||d>=b+c,l=!1;f.getMonth()!==this.month&&(l=!0);g.append(this.renderDay(f.getDate(),this.month,this.year,!1,h,l,n,!1,!1,!1))}};DatePicker.prototype.prevMonth=function(){--this.month;this.adjustCalendar();this.renderCalendar()};DatePicker.prototype.nextMonth=function(){this.month+=1;this.adjustCalendar();this.renderCalendar()}; | ||
DatePicker.prototype.prevYear=function(){--this.year;this.adjustCalendar();this.renderCalendar()};DatePicker.prototype.nextYear=function(){this.year+=1;this.adjustCalendar();this.renderCalendar()};DatePicker.prototype.show=function(){if("undefined"!=typeof this.options.onOpen&&null!=this.options.onOpen&&this.options.onOpen)this.options.onOpen(this);this.datePickerContainer.classList.add("is-active");this.options.overlay||this.adjustPosition();this.open=!0}; | ||
DatePicker.prototype.hide=function(){this.open=!1;if("undefined"!=typeof this.options.onClose&&null!=this.options.onClose&&this.options.onClose)this.options.onClose(this);this.datePickerContainer.classList.remove("is-active")};DatePicker.prototype.adjustCalendar=function(){0>this.month&&(this.year-=Math.ceil(Math.abs(this.month)/12),this.month+=12);11<this.month&&(this.year+=Math.floor(Math.abs(this.month)/12),this.month-=12);this.calendarContainer.innerHTML="";return this}; | ||
DatePicker.prototype.adjustPosition=function(){var a,c;if("function"===typeof this.element.getBoundingClientRect)c=this.element.getBoundingClientRect(),a=c.left+window.pageXOffset,c=c.bottom+window.pageYOffset;else for(a=this.element.offsetLeft,c=this.element.offsetTop+this.element.offsetHeight;this.element=this.element.offsetParent;)a+=this.element.offsetLeft,c+=this.element.offsetTop;this.calendarContainer.style.position="absolute";this.calendarContainer.style.left=a+"px";this.calendarContainer.style.top= | ||
c+"px"};DatePicker.prototype.destroy=function(){this.calendarContainer.remove()}; | ||
DatePicker.prototype.getFormatedDate=function(a,c){var b={d:a.getDate(),dd:a.getDate(),D:a.getDay(),m:a.getMonth()+1,mm:a.getMonth()+1,M:a.getMonth(),MM:a.getMonth(),yy:a.getFullYear().toString().substr(-2),yyyy:a.getFullYear()};10>b.dd&&(b.dd="0"+b.dd);10>b.mm&&(b.mm="0"+b.mm);b.D=datepicker_langs[this.options.lang].weekdays[b.D?b.D-1:6];b.M=datepicker_langs[this.options.lang].monthsShort[b.M];b.MM=datepicker_langs[this.options.lang].months[b.MM];return c.replace(/(?:[dmM]{1,2}|D|yyyy|yy)/g,function(a){return"undefined"!== | ||
typeof b[a]?b[a]:a})};DatePicker.prototype.isActive=function(){return this.calendarContainer.classList.contains("is-active")};DatePicker.prototype.isDate=function(a){return/Date/.test(Object.prototype.toString.call(a))&&!isNaN(a.getTime())};DatePicker.prototype.isLeapYear=function(a){return 0===a%4&&0!==a%100||0===a%400};DatePicker.prototype.getDaysInMonth=function(a,c){return[31,this.isLeapYear(a)?29:28,31,30,31,30,31,31,30,31,30,31][c]}; | ||
DatePicker.prototype.compareDates=function(a,c){return a.getTime()===c.getTime()}; | ||
DatePicker.prototype.adjustPosition=function(){var a,b;if("function"===typeof this.element.getBoundingClientRect)b=this.element.getBoundingClientRect(),a=b.left+window.pageXOffset,b=b.bottom+window.pageYOffset;else for(a=this.element.offsetLeft,b=this.element.offsetTop+this.element.offsetHeight;this.element=this.element.offsetParent;)a+=this.element.offsetLeft,b+=this.element.offsetTop;this.calendarContainer.style.position="absolute";this.calendarContainer.style.left=a+"px";this.calendarContainer.style.top= | ||
b+"px"};DatePicker.prototype.destroy=function(){this.calendarContainer.remove()}; | ||
DatePicker.prototype.getFormatedDate=function(a,b){var c={d:a.getDate(),dd:a.getDate(),D:a.getDay(),m:a.getMonth()+1,mm:a.getMonth()+1,M:a.getMonth(),MM:a.getMonth(),yy:a.getFullYear().toString().substr(-2),yyyy:a.getFullYear()};10>c.dd&&(c.dd="0"+c.dd);10>c.mm&&(c.mm="0"+c.mm);c.D=datepicker_langs[this.options.lang].weekdays[c.D?c.D-1:6];c.M=datepicker_langs[this.options.lang].monthsShort[c.M];c.MM=datepicker_langs[this.options.lang].months[c.MM];return b.replace(/(?:[dmM]{1,2}|D|yyyy|yy)/g,function(a){return"undefined"!== | ||
typeof c[a]?c[a]:a})};DatePicker.prototype.isActive=function(){return this.calendarContainer.classList.contains("is-active")};DatePicker.prototype.isDate=function(a){return/Date/.test(Object.prototype.toString.call(a))&&!isNaN(a.getTime())};DatePicker.prototype.isLeapYear=function(a){return 0===a%4&&0!==a%100||0===a%400};DatePicker.prototype.getDaysInMonth=function(a,b){return[31,this.isLeapYear(a)?29:28,31,30,31,30,31,31,30,31,30,31][b]}; | ||
DatePicker.prototype.compareDates=function(a,b){return a.getTime()===b.getTime()}; |
{ | ||
"name": "bulma-calendar", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "Display a calendar for date selection or for planning management, in different colors and sizes", | ||
@@ -5,0 +5,0 @@ "main": "calendar.sass", |
@@ -9,4 +9,6 @@ let fetchStyle = function(url) { | ||
let headScript = document.querySelector('script'); | ||
headScript.parentNode.insertBefore(link, headScript); | ||
if (!document.querySelector('link[href="' + url + '"]')) { | ||
let headScript = document.querySelector('head'); | ||
headScript.append(link); | ||
} | ||
}); | ||
@@ -23,4 +25,3 @@ }; | ||
displayPrefix: '' | ||
}, | ||
{ | ||
},{ | ||
name: 'fontAwesome', // Name displayed on tab | ||
@@ -85,4 +86,2 @@ css: 'https://opensource.keycdn.com/fontawesome/4.7.0/font-awesome.min.css', // CSS url containing icons rules | ||
const iconPattern = new RegExp('\\.' + prefix + '([^\\.!:]*)::?before\\s*{\\s*content:\\s*["|\']\\\\[^\'|"]*["|\'];?\\s*}', 'g'); | ||
// const iconPattern = new RegExp('\\.' + prefix + '([^\\.!:]*)::?before{content:["|\']\\\\[^\'|"]*["|\']}', 'g'); | ||
console.log() | ||
const index = 1; | ||
@@ -89,0 +88,0 @@ let icons = [], icon, match; |
{ | ||
"name": "bulma-extensions", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Set of extensions for Bulma.io CSS Framework", | ||
@@ -5,0 +5,0 @@ "main": "extensions.sass", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
578895
127
1026
2