material-sass 4.0.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -3
  3. data/Rakefile +4 -4
  4. data/assets/javascripts/material-sprockets.js +0 -1
  5. data/assets/javascripts/material.js +2994 -2927
  6. data/assets/javascripts/material.min.js +10 -10
  7. data/assets/javascripts/material/components/expansion-panel.js +1 -3
  8. data/assets/javascripts/material/components/floating-label.js +2 -3
  9. data/assets/javascripts/material/components/nav-drawer.js +10 -32
  10. data/assets/javascripts/material/components/pickdate.js +228 -0
  11. data/assets/javascripts/material/components/selection-control-focus.js +2 -2
  12. data/assets/javascripts/material/components/tab-switch.js +4 -20
  13. data/assets/javascripts/material/components/util.js +16 -1
  14. data/assets/stylesheets/material/_colors.scss +2 -0
  15. data/assets/stylesheets/material/_functions.scss +6 -0
  16. data/assets/stylesheets/material/_mixins.scss +0 -2
  17. data/assets/stylesheets/material/_print.scss +26 -1
  18. data/assets/stylesheets/material/_utilities.scss +1 -0
  19. data/assets/stylesheets/material/base/_base.scss +5 -2
  20. data/assets/stylesheets/material/bootstrap/_breadcrumb.scss +10 -7
  21. data/assets/stylesheets/material/bootstrap/_popover.scss +1 -2
  22. data/assets/stylesheets/material/bootstrap/_transition.scss +6 -10
  23. data/assets/stylesheets/material/material.scss +2 -0
  24. data/assets/stylesheets/material/material/_card.scss +58 -96
  25. data/assets/stylesheets/material/material/_chip.scss +1 -0
  26. data/assets/stylesheets/material/material/_data-table.scss +57 -1
  27. data/assets/stylesheets/material/material/_dialog.scss +2 -2
  28. data/assets/stylesheets/material/material/_expansion-panel.scss +4 -0
  29. data/assets/stylesheets/material/material/_menu.scss +164 -54
  30. data/assets/stylesheets/material/material/_navdrawer.scss +5 -6
  31. data/assets/stylesheets/material/material/_picker.scss +78 -67
  32. data/assets/stylesheets/material/material/_progress.scss +1 -6
  33. data/assets/stylesheets/material/material/_selection-control.scss +1 -1
  34. data/assets/stylesheets/material/material/_slider.scss +157 -0
  35. data/assets/stylesheets/material/material/_snackbar.scss +125 -0
  36. data/assets/stylesheets/material/material/_text-field-input-group.scss +101 -10
  37. data/assets/stylesheets/material/material/_text-field.scss +10 -15
  38. data/assets/stylesheets/material/material/_toolbar.scss +0 -16
  39. data/assets/stylesheets/material/material/_tooltip.scss +2 -2
  40. data/assets/stylesheets/material/mixins/_form.scss +2 -1
  41. data/assets/stylesheets/material/mixins/_nav-divider.scss +2 -2
  42. data/assets/stylesheets/material/mixins/_screenreader.scss +0 -2
  43. data/assets/stylesheets/material/mixins/_text-hide.scss +2 -0
  44. data/assets/stylesheets/material/mixins/_transition.scss +20 -0
  45. data/assets/stylesheets/material/utilities/_background.scss +5 -0
  46. data/assets/stylesheets/material/utilities/_flex.scss +17 -1
  47. data/assets/stylesheets/material/utilities/_position.scss +1 -0
  48. data/assets/stylesheets/material/utilities/_shadows.scss +23 -0
  49. data/assets/stylesheets/material/utilities/_text.scss +18 -0
  50. data/assets/stylesheets/material/variables/_elevation-shadow.scss +53 -47
  51. data/assets/stylesheets/material/variables/_palette.scss +9 -8
  52. data/assets/stylesheets/material/variables/_spacer.scss +2 -0
  53. data/assets/stylesheets/material/variables/_transition.scss +2 -0
  54. data/assets/stylesheets/material/variables/_typography.scss +3 -3
  55. data/assets/stylesheets/material/variables/_variable-bootstrap.scss +9 -8
  56. data/assets/stylesheets/material/variables/_variable-material.scss +56 -18
  57. data/lib/material-sass/version.rb +1 -1
  58. metadata +6 -6
  59. data/assets/javascripts/material/addons/pickadate.js +0 -152
  60. data/assets/stylesheets/material.min.css +0 -13
  61. data/assets/stylesheets/material/mixins/_hex-to-rgba.scss +0 -3
  62. data/assets/stylesheets/material/mixins/_strip-unit.scss +0 -3
@@ -1,16 +1,16 @@
1
1
  /*!
2
- * Daemonite Material v4.0.0 (http://daemonite.github.io/material/)
2
+ * Daemonite Material v4.1.0 (http://daemonite.github.io/material/)
3
3
  * Copyright 2011-2018 Daemon Pty Ltd
4
4
  * Licensed under MIT (https://github.com/Daemonite/material/blob/master/LICENSE)
5
5
  */
6
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.material={},e.jQuery)}(this,function(e,t){"use strict";function n(e,t){return e(t={exports:{}},t.exports),t.exports}t=t&&t.hasOwnProperty("default")?t.default:t;var i=n(function(e,n){
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.material={},e.jQuery)}(this,function(e,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;var n,t,o,r,a,s,c,l,d,u,h,f,p,m,g,y,v,b,_,k,S=(r="show-predecessor",a="hide"+(t=".bs.collapse"),s=(o="show")+t,c=".expansion-panel",l=".expansion-panel .collapse",void(n=i)(document).on(""+a,l,function(){var e=n(this).closest(c);e.removeClass(o);var t=e.prev(c);t.length&&t.removeClass(r)}).on(""+s,l,function(){var e=n(this).closest(c);e.addClass(o);var t=e.prev(c);t.length&&t.addClass(r)})),w=(h="."+(u="md.floatinglabel"),f="floatinglabel",p=(d=i).fn[f],m="is-focused",g="has-value",y="change"+h,v="focusin"+h,b="focusout"+h,_={DATA_PARENT:".floating-label",DATA_TOGGLE:".floating-label .form-control"},k=function(){function i(e){this._element=e,this._parent=d(e).closest(_.DATA_PARENT)[0]}var e=i.prototype;return e.change=function(){d(this._element).val()||d(this._element).is("select")&&""!==d("option:first-child",d(this._element)).html().replace(" ","")?d(this._parent).addClass(g):d(this._parent).removeClass(g)},e.focusin=function(){d(this._parent).addClass(m)},e.focusout=function(){d(this._parent).removeClass(m)},i._jQueryInterface=function(n){return this.each(function(){var e=n||"change",t=d(this).data(u);if(t||(t=new i(this),d(this).data(u,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new Error('No method named "'+e+'"');t[e]()}})},i}(),d(document).on(y+" "+v+" "+b,_.DATA_TOGGLE,function(e){k._jQueryInterface.call(d(this),e.type)}),d.fn[f]=k._jQueryInterface,d.fn[f].Constructor=k,d.fn[f].noConflict=function(){return d.fn[f]=p,k._jQueryInterface},k);function D(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},t=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.forEach(function(e){var t,n,i;t=o,i=r[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i})}return o}var O,I,E,T,x,N,M,A,P,$,j,F,R,W=function(i){var t=!1;function e(e){var t=this,n=!1;return i(this).one(c.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||c.triggerTransitionEnd(t)},e),this}var c={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return 0<i(document).find(t).length?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=i(e).css("transition-duration");return t?(t=t.split(",")[0],1e3*parseFloat(t)):0},getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},isElement:function(e){return(e[0]||e).nodeType},reflow:function(e){return e.offsetHeight},supportsTransitionEnd:function(){return Boolean(t)},triggerTransitionEnd:function(e){i(e).trigger(t.end)},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=t[i],a=r&&c.isElement(r)?"element":(s=r,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}var s}};return t=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},i.fn.emulateTransitionEnd=e,c.supportsTransitionEnd()&&(i.event.special[c.TRANSITION_END]={bindType:t.end,delegateType:t.end,handle:function(e){if(i(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),c}(i),Y=(E="."+(I="md.navdrawer"),T="navdrawer",x=(O=i).fn[T],N="navdrawer-backdrop",M="navdrawer-open",P={breakpoint:"",keyboard:!0,show:!0,type:"default"},$={keyboard:"boolean",show:"boolean",type:"string"},j={CLICK_DATA_API:"click"+E+".data-api",CLICK_DISMISS:"click.dismiss"+E,FOCUSIN:"focusin"+E,HIDDEN:"hidden"+E,HIDE:"hide"+E,KEYDOWN_DISMISS:"keydown.dismiss"+E,MOUSEDOWN_DISMISS:"mousedown.dismiss"+E,MOUSEUP_DISMISS:"mouseup.dismiss"+E,SHOW:(A="show")+E,SHOWN:"shown"+E},F={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},R=function(){function o(e,t){this._backdrop=null,this._config=this._getConfig(t),this._content=O(e).find(F.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1,this._typeBreakpoint=""===this._config.breakpoint?"":"-"+this._config.breakpoint}var e,t,n,i=o.prototype;return i.hide=function(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=O.Event(j.HIDE);if(O(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=W.supportsTransitionEnd();if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),O(document).off(j.FOCUSIN),O(this._element).removeClass(A),O(this._element).off(j.CLICK_DISMISS),O(this._content).off(j.MOUSEDOWN_DISMISS),i){var o=W.getTransitionDurationFromElement(this._content);O(this._content).one(W.TRANSITION_END,function(e){return t._hideNavdrawer(e)}).emulateTransitionEnd(o)}else this._hideNavdrawer();this._showBackdrop()}}},i.show=function(e){var t=this;if(!this._isTransitioning&&!this._isShown){W.supportsTransitionEnd()&&(this._isTransitioning=!0);var n=O.Event(j.SHOW,{relatedTarget:e});O(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,O(document.body).addClass(M+"-"+this._config.type+this._typeBreakpoint),this._setEscapeEvent(),O(this._element).addClass(T+"-"+this._config.type+this._typeBreakpoint),O(this._element).on(j.CLICK_DISMISS,F.DATA_DISMISS,function(e){return t.hide(e)}),O(this._content).on(j.MOUSEDOWN_DISMISS,function(){O(t._element).one(j.MOUSEUP_DISMISS,function(e){O(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))}},i.toggle=function(e){return this._isShown?this.hide():this.show(e)},i._enforceFocus=function(){var t=this;O(document).off(j.FOCUSIN).on(j.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===O(t._element).has(e.target).length&&t._element.focus()})},i._getConfig=function(e){return e=C({},P,e),W.typeCheckConfig(T,e,$),e},i._hideNavdrawer=function(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,O(document.body).removeClass(M+"-"+this._config.type+this._typeBreakpoint),O(this._element).trigger(j.HIDDEN)},i._removeBackdrop=function(){this._backdrop&&(O(this._backdrop).remove(),this._backdrop=null)},i._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?O(this._element).on(j.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||O(this._element).off(j.KEYDOWN_DISMISS)},i._showBackdrop=function(){var t=this,e=W.supportsTransitionEnd();this._isShown?(this._backdrop=document.createElement("div"),O(this._backdrop).addClass(N).addClass(N+"-"+this._config.type+this._typeBreakpoint).appendTo(document.body),O(this._element).on(j.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t.hide()}),e&&W.reflow(this._backdrop),O(this._backdrop).addClass(A)):!this._isShown&&this._backdrop&&(O(this._backdrop).removeClass(A),this._removeBackdrop())},i._showElement=function(e){var t=this,n=W.supportsTransitionEnd();this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),n&&W.reflow(this._element),O(this._element).addClass(A),this._enforceFocus();var i=O.Event(j.SHOWN,{relatedTarget:e}),o=function(){t._element.focus(),t._isTransitioning=!1,O(t._element).trigger(i)};if(n){var r=W.getTransitionDurationFromElement(this._content);O(this._content).one(W.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},o._jQueryInterface=function(n,i){return this.each(function(){var e=C({},o.Default,O(this).data(),"object"==typeof n&&n),t=O(this).data(I);if(t||(t=new o(this,e),O(this).data(I,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n](i)}else e.show&&t.show(i)})},e=o,n=[{key:"Default",get:function(){return P}}],(t=null)&&D(e.prototype,t),n&&D(e,n),o}(),O(document).on(j.CLICK_DATA_API,F.DATA_TOGGLE,function(e){var t,n=this,i=W.getSelectorFromElement(this);i&&(t=O(i)[0]);var o=O(t).data(I)?"toggle":C({},O(t).data(),O(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var r=O(t).one(j.SHOW,function(e){e.isDefaultPrevented()||r.one(j.HIDDEN,function(){O(n).is(":visible")&&n.focus()})});R._jQueryInterface.call(O(t),o,this)}),O.fn[T]=R._jQueryInterface,O.fn[T].Constructor=R,O.fn[T].noConflict=function(){return O.fn[T]=x,R._jQueryInterface},R);function U(e,t){return e(t={exports:{}},t.exports),t.exports}var H,Q,B,L,J,K,G,q,z,V,X,Z,ee,te,ne,ie,oe,re,ae,se,ce,le,de,ue,he,fe,pe,me,ge,ye,ve=U(function(e,t){
7
7
  /*!
8
- * pickadate.js v3.5.6, 2015/04/20
9
- * By Amsul, http://amsul.ca
10
- * Hosted on http://amsul.github.io/pickadate.js
11
- * Licensed under MIT
12
- */var i;i=function(e){var t=e(window),n=e(document),i=e(document.documentElement),o=null!=document.documentElement.style.transition;function r(t,c,d,u){if(!t)return r;var h=!1,p={id:t.id||"P"+Math.abs(~~(Math.random()*new Date))},f=d?e.extend(!0,{},d.defaults,u):u||{},m=e.extend({},r.klasses(),f.klass),y=e(t),g=function(){return this.start()},v=g.prototype={constructor:g,$node:y,start:function(){return p&&p.start?v:(p.methods={},p.start=!0,p.open=!1,p.type=t.type,t.autofocus=t==l(),t.readOnly=!f.editable,t.id=t.id||p.id,"text"!=t.type&&(t.type="text"),v.component=new d(v,f),v.$root=e('<div class="'+m.picker+'" id="'+t.id+'_root" />'),s(v.$root[0],"hidden",!0),v.$holder=e(_()).appendTo(v.$root),b(),f.formatSubmit&&function(){var n;!0===f.hiddenName?(n=t.name,t.name=""):n=(n=["string"==typeof f.hiddenPrefix?f.hiddenPrefix:"","string"==typeof f.hiddenSuffix?f.hiddenSuffix:"_submit"])[0]+t.name+n[1];v._hidden=e('<input type=hidden name="'+n+'"'+(y.data("value")||t.value?' value="'+v.get("select",f.formatSubmit)+'"':"")+">")[0],y.on("change."+p.id,function(){v._hidden.value=t.value?v.get("select",f.formatSubmit):""})}(),function(){y.data(c,v).addClass(m.input).val(y.data("value")?v.get("select",f.format):t.value),f.editable||y.on("focus."+p.id+" click."+p.id,function(e){e.preventDefault(),v.open()}).on("keydown."+p.id,w);s(t,{haspopup:!0,expanded:!1,readonly:!1,owns:t.id+"_root"})}(),f.containerHidden?e(f.containerHidden).append(v._hidden):y.after(v._hidden),f.container?e(f.container).append(v.$root):y.after(v.$root),v.on({start:v.component.onStart,render:v.component.onRender,stop:v.component.onStop,open:v.component.onOpen,close:v.component.onClose,set:v.component.onSet}).on({start:f.onStart,render:f.onRender,stop:f.onStop,open:f.onOpen,close:f.onClose,set:f.onSet}),h=function(e){var t,n="position";e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]);return"fixed"==t}(v.$holder[0]),t.autofocus&&v.open(),v.trigger("start").trigger("render"))},render:function(t){return t?(v.$holder=e(_()),b(),v.$root.html(v.$holder)):v.$root.find("."+m.box).html(v.component.nodes(p.open)),v.trigger("render")},stop:function(){return p.start?(v.close(),v._hidden&&v._hidden.parentNode.removeChild(v._hidden),v.$root.remove(),y.removeClass(m.input).removeData(c),setTimeout(function(){y.off("."+p.id)},0),t.type=p.type,t.readOnly=!1,v.trigger("stop"),p.methods={},p.start=!1,v):v},open:function(c){return p.open?v:(y.addClass(m.active),s(t,"expanded",!0),setTimeout(function(){v.$root.addClass(m.opened),s(v.$root[0],"hidden",!1)},0),!1!==c&&(p.open=!0,h&&i.css("overflow","hidden").css("padding-right","+="+a()),h&&o?v.$holder.find("."+m.frame).one("transitionend",function(){v.$holder[0].focus()}):v.$holder[0].focus(),n.on("click."+p.id+" focusin."+p.id,function(e){var n=e.target;n!=t&&n!=document&&3!=e.which&&v.close(n===v.$holder[0])}).on("keydown."+p.id,function(t){var n=t.keyCode,i=v.component.key[n],o=t.target;27==n?v.close(!0):o!=v.$holder[0]||!i&&13!=n?e.contains(v.$root[0],o)&&13==n&&(t.preventDefault(),o.click()):(t.preventDefault(),i?r._.trigger(v.component.key.go,v,[r._.trigger(i)]):v.$root.find("."+m.highlighted).hasClass(m.disabled)||(v.set("select",v.component.item.highlight),f.closeOnSelect&&v.close(!0)))})),v.trigger("open"))},close:function(e){return e&&(f.editable?t.focus():(v.$holder.off("focus.toOpen").focus(),setTimeout(function(){v.$holder.on("focus.toOpen",k)},0))),y.removeClass(m.active),s(t,"expanded",!1),setTimeout(function(){v.$root.removeClass(m.opened+" "+m.focused),s(v.$root[0],"hidden",!0)},0),p.open?(p.open=!1,h&&i.css("overflow","").css("padding-right","-="+a()),n.off("."+p.id),v.trigger("close")):v},clear:function(e){return v.set("clear",null,e)},set:function(t,n,i){var o,r,a=e.isPlainObject(t),s=a?t:{};if(i=a&&e.isPlainObject(n)?n:i||{},t){for(o in a||(s[t]=n),s)r=s[o],o in v.component.item&&(void 0===r&&(r=null),v.component.set(o,r,i)),"select"!=o&&"clear"!=o||y.val("clear"==o?"":v.get(o,f.format)).trigger("change");v.render()}return i.muted?v:v.trigger("set",s)},get:function(e,n){if(null!=p[e=e||"value"])return p[e];if("valueSubmit"==e){if(v._hidden)return v._hidden.value;e="value"}if("value"==e)return t.value;if(e in v.component.item){if("string"==typeof n){var i=v.component.get(e);return i?r._.trigger(v.component.formats.toString,v.component,[n,i]):""}return v.component.get(e)}},on:function(t,n,i){var o,r,a=e.isPlainObject(t),s=a?t:{};if(t)for(o in a||(s[t]=n),s)r=s[o],i&&(o="_"+o),p.methods[o]=p.methods[o]||[],p.methods[o].push(r);return v},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in p.methods&&delete p.methods[t];return v},trigger:function(e,t){var n=function(e){var n=p.methods[e];n&&n.map(function(e){r._.trigger(e,v,[t])})};return n("_"+e),n(e),v}};function _(){return r._.node("div",r._.node("div",r._.node("div",r._.node("div",v.component.nodes(p.open),m.box),m.wrap),m.frame),m.holder,'tabindex="-1"')}function b(){v.$holder.on({keydown:w,"focus.toOpen":k,blur:function(){y.removeClass(m.target)},focusin:function(e){v.$root.removeClass(m.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=v.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is("input, select, textarea, button, option")||(t.preventDefault(),v.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),i=t.hasClass(m.navDisabled)||t.hasClass(m.disabled),o=l();o=o&&(o.type||o.href),(i||o&&!e.contains(v.$root[0],o))&&v.$holder[0].focus(),!i&&n.nav?v.set("highlight",v.component.item.highlight,{nav:n.nav}):!i&&"pick"in n?(v.set("select",n.pick),f.closeOnSelect&&v.close(!0)):n.clear?(v.clear(),f.closeOnClear&&v.close(!0)):n.close&&v.close(!0)})}function k(e){e.stopPropagation(),y.addClass(m.target),v.$root.addClass(m.focused),v.open()}function w(e){var t=e.keyCode,n=/^(8|46)$/.test(t);if(27==t)return v.close(!0),!1;(32==t||n||!p.open&&v.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?v.clear().close():v.open())}return new g}function a(){if(i.height()<=t.height())return 0;var n=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),o=n[0].offsetWidth;n.css("overflow","scroll");var r=e('<div style="width:100%" />').appendTo(n)[0].offsetWidth;return n.remove(),o-r}function s(t,n,i){if(e.isPlainObject(n))for(var o in n)c(t,o,n[o]);else c(t,n,i)}function c(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function l(){try{return document.activeElement}catch(e){}}return r.klasses=function(e){return{picker:e=e||"picker",opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},r._={group:function(e){for(var t,n="",i=r._.trigger(e.min,e);i<=r._.trigger(e.max,e,[i]);i+=e.i)t=r._.trigger(e.item,e,[i]),n+=r._.node(e.node,t[0],t[1],t[2]);return n},node:function(t,n,i,o){return n?(n=e.isArray(n)?n.join(""):n,"<"+t+(i=i?' class="'+i+'"':"")+(o=o?" "+o:"")+">"+n+"</"+t+">"):""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1==0},ariaAttr:function(t,n){e.isPlainObject(t)||(t={attribute:n});for(var i in n="",t){var o=("role"==i?"":"aria-")+i,r=t[i];n+=null==r?"":o+'="'+t[i]+'"'}return n}},r.extend=function(t,n){e.fn[t]=function(i,o){var a=this.data(t);return"picker"==i?a:a&&"string"==typeof i?r._.trigger(a[i],a,[o]):this.each(function(){e(this).data(t)||new r(this,t,n,i)})},e.fn[t].defaults=n.defaults},r},e.exports=i(t)});n(function(e,n){
8
+ * pickadate.js v3.5.6, 2015/04/20
9
+ * By Amsul, http://amsul.ca
10
+ * Hosted on http://amsul.github.io/pickadate.js
11
+ * Licensed under MIT
12
+ */var n;n=function(m){var i=m(window),g=m(document),y=m(document.documentElement),v=null!=document.documentElement.style.transition;function b(i,e,t,n){if(!i)return b;var o=!1,s={id:i.id||"P"+Math.abs(~~(Math.random()*new Date))},c=t?m.extend(!0,{},t.defaults,n):n||{},r=m.extend({},b.klasses(),c.klass),l=m(i),a=function(){return this.start()},d=a.prototype={constructor:a,$node:l,start:function(){return s&&s.start?d:(s.methods={},s.start=!0,s.open=!1,s.type=i.type,i.autofocus=i==S(),i.readOnly=!c.editable,i.id=i.id||s.id,"text"!=i.type&&(i.type="text"),d.component=new t(d,c),d.$root=m('<div class="'+r.picker+'" id="'+i.id+'_root" />'),k(d.$root[0],"hidden",!0),d.$holder=m(u()).appendTo(d.$root),h(),c.formatSubmit&&function(){var e;!0===c.hiddenName?(e=i.name,i.name=""):e=(e=["string"==typeof c.hiddenPrefix?c.hiddenPrefix:"","string"==typeof c.hiddenSuffix?c.hiddenSuffix:"_submit"])[0]+i.name+e[1];d._hidden=m('<input type=hidden name="'+e+'"'+(l.data("value")||i.value?' value="'+d.get("select",c.formatSubmit)+'"':"")+">")[0],l.on("change."+s.id,function(){d._hidden.value=i.value?d.get("select",c.formatSubmit):""})}(),function(){l.data(e,d).addClass(r.input).val(l.data("value")?d.get("select",c.format):i.value),c.editable||l.on("focus."+s.id+" click."+s.id,function(e){e.preventDefault(),d.open()}).on("keydown."+s.id,p);k(i,{haspopup:!0,expanded:!1,readonly:!1,owns:i.id+"_root"})}(),c.containerHidden?m(c.containerHidden).append(d._hidden):l.after(d._hidden),c.container?m(c.container).append(d.$root):l.after(d.$root),d.on({start:d.component.onStart,render:d.component.onRender,stop:d.component.onStop,open:d.component.onOpen,close:d.component.onClose,set:d.component.onSet}).on({start:c.onStart,render:c.onRender,stop:c.onStop,open:c.onOpen,close:c.onClose,set:c.onSet}),o=function(e){var t,n="position";e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]);return"fixed"==t}(d.$holder[0]),i.autofocus&&d.open(),d.trigger("start").trigger("render"))},render:function(e){return e?(d.$holder=m(u()),h(),d.$root.html(d.$holder)):d.$root.find("."+r.box).html(d.component.nodes(s.open)),d.trigger("render")},stop:function(){return s.start&&(d.close(),d._hidden&&d._hidden.parentNode.removeChild(d._hidden),d.$root.remove(),l.removeClass(r.input).removeData(e),setTimeout(function(){l.off("."+s.id)},0),i.type=s.type,i.readOnly=!1,d.trigger("stop"),s.methods={},s.start=!1),d},open:function(e){return s.open?d:(l.addClass(r.active),k(i,"expanded",!0),setTimeout(function(){d.$root.addClass(r.opened),k(d.$root[0],"hidden",!1)},0),!1!==e&&(s.open=!0,o&&y.css("overflow","hidden").css("padding-right","+="+_()),o&&v?d.$holder.find("."+r.frame).one("transitionend",function(){d.$holder[0].focus()}):d.$holder[0].focus(),g.on("click."+s.id+" focusin."+s.id,function(e){var t=e.target;t!=i&&t!=document&&3!=e.which&&d.close(t===d.$holder[0])}).on("keydown."+s.id,function(e){var t=e.keyCode,n=d.component.key[t],i=e.target;27==t?d.close(!0):i!=d.$holder[0]||!n&&13!=t?m.contains(d.$root[0],i)&&13==t&&(e.preventDefault(),i.click()):(e.preventDefault(),n?b._.trigger(d.component.key.go,d,[b._.trigger(n)]):d.$root.find("."+r.highlighted).hasClass(r.disabled)||(d.set("select",d.component.item.highlight),c.closeOnSelect&&d.close(!0)))})),d.trigger("open"))},close:function(e){return e&&(c.editable?i.focus():(d.$holder.off("focus.toOpen").focus(),setTimeout(function(){d.$holder.on("focus.toOpen",f)},0))),l.removeClass(r.active),k(i,"expanded",!1),setTimeout(function(){d.$root.removeClass(r.opened+" "+r.focused),k(d.$root[0],"hidden",!0)},0),s.open?(s.open=!1,o&&y.css("overflow","").css("padding-right","-="+_()),g.off("."+s.id),d.trigger("close")):d},clear:function(e){return d.set("clear",null,e)},set:function(e,t,n){var i,o,r=m.isPlainObject(e),a=r?e:{};if(n=r&&m.isPlainObject(t)?t:n||{},e){for(i in r||(a[e]=t),a)o=a[i],i in d.component.item&&(void 0===o&&(o=null),d.component.set(i,o,n)),"select"!=i&&"clear"!=i||l.val("clear"==i?"":d.get(i,c.format)).trigger("change");d.render()}return n.muted?d:d.trigger("set",a)},get:function(e,t){if(null!=s[e=e||"value"])return s[e];if("valueSubmit"==e){if(d._hidden)return d._hidden.value;e="value"}if("value"==e)return i.value;if(e in d.component.item){if("string"==typeof t){var n=d.component.get(e);return n?b._.trigger(d.component.formats.toString,d.component,[t,n]):""}return d.component.get(e)}},on:function(e,t,n){var i,o,r=m.isPlainObject(e),a=r?e:{};if(e)for(i in r||(a[e]=t),a)o=a[i],n&&(i="_"+i),s.methods[i]=s.methods[i]||[],s.methods[i].push(o);return d},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in s.methods&&delete s.methods[t];return d},trigger:function(e,n){var t=function(e){var t=s.methods[e];t&&t.map(function(e){b._.trigger(e,d,[n])})};return t("_"+e),t(e),d}};function u(){return b._.node("div",b._.node("div",b._.node("div",b._.node("div",d.component.nodes(s.open),r.box),r.wrap),r.frame),r.holder,'tabindex="-1"')}function h(){d.$holder.on({keydown:p,"focus.toOpen":f,blur:function(){l.removeClass(r.target)},focusin:function(e){d.$root.removeClass(r.focused),e.stopPropagation()},"mousedown click":function(e){var t=e.target;t!=d.$holder[0]&&(e.stopPropagation(),"mousedown"!=e.type||m(t).is("input, select, textarea, button, option")||(e.preventDefault(),d.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=m(this),t=e.data(),n=e.hasClass(r.navDisabled)||e.hasClass(r.disabled),i=S();i=i&&(i.type||i.href),(n||i&&!m.contains(d.$root[0],i))&&d.$holder[0].focus(),!n&&t.nav?d.set("highlight",d.component.item.highlight,{nav:t.nav}):!n&&"pick"in t?(d.set("select",t.pick),c.closeOnSelect&&d.close(!0)):t.clear?(d.clear(),c.closeOnClear&&d.close(!0)):t.close&&d.close(!0)})}function f(e){e.stopPropagation(),l.addClass(r.target),d.$root.addClass(r.focused),d.open()}function p(e){var t=e.keyCode,n=/^(8|46)$/.test(t);if(27==t)return d.close(!0),!1;(32==t||n||!s.open&&d.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?d.clear().close():d.open())}return new a}function _(){if(y.height()<=i.height())return 0;var e=m('<div style="visibility:hidden;width:100px" />').appendTo("body"),t=e[0].offsetWidth;e.css("overflow","scroll");var n=m('<div style="width:100%" />').appendTo(e)[0].offsetWidth;return e.remove(),t-n}function k(e,t,n){if(m.isPlainObject(t))for(var i in t)o(e,i,t[i]);else o(e,t,n)}function o(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function S(){try{return document.activeElement}catch(e){}}return b.klasses=function(e){return{picker:e=e||"picker",opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},b._={group:function(e){for(var t,n="",i=b._.trigger(e.min,e);i<=b._.trigger(e.max,e,[i]);i+=e.i)t=b._.trigger(e.item,e,[i]),n+=b._.node(e.node,t[0],t[1],t[2]);return n},node:function(e,t,n,i){return t?"<"+e+(n=n?' class="'+n+'"':"")+(i=i?" "+i:"")+">"+(t=m.isArray(t)?t.join(""):t)+"</"+e+">":""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return-1<{}.toString.call(e).indexOf("Date")&&this.isInteger(e.getDate())},isInteger:function(e){return-1<{}.toString.call(e).indexOf("Number")&&e%1==0},ariaAttr:function(e,t){m.isPlainObject(e)||(e={attribute:t});for(var n in t="",e){var i=("role"==n?"":"aria-")+n,o=e[n];t+=null==o?"":i+'="'+e[n]+'"'}return t}},b.extend=function(i,o){m.fn[i]=function(e,t){var n=this.data(i);return"picker"==e?n:n&&"string"==typeof e?b._.trigger(n[e],n,[t]):this.each(function(){m(this).data(i)||new b(this,i,o,e)})},m.fn[i].defaults=o.defaults},b},e.exports=n(i)}),be=(U(function(e,t){
13
13
  /*!
14
- * Date picker for pickadate.js v3.5.6
15
- * http://amsul.github.io/pickadate.js/date.htm
16
- */var o;o=function(e,t){var n,i=e._;function o(e,t){var n,i=this,o=e.$node[0],r=o.value,a=e.$node.data("value"),s=a||r,c=a?t.formatSubmit:t.format,l=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};i.settings=t,i.$node=e.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(t.disable||[]).slice(0),i.item.enable=-(!0===(n=i.item.disable)[0]?n.shift():-1),i.set("min",t.min).set("max",t.max).set("now"),s?i.set("select",s,{format:c,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var n=this.value;n&&(e.set("highlight",[e.get("view").year,n,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var n=this.value;n&&(e.set("highlight",[n,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}o.prototype.set=function(e,t,n){var i=this,o=i.item;return null===t?("clear"==e&&(e="select"),o[e]=t,i):(o["enable"==e?"disable":"flip"==e?"enable":e]=i.queue[e].split(" ").map(function(o){return t=i[o](e,t,n)}).pop(),"select"==e?i.set("highlight",o.select,n):"highlight"==e?i.set("view",o.highlight,n):e.match(/^(flip|min|max|disable|enable)$/)&&(o.select&&i.disabled(o.select)&&i.set("select",o.select,n),o.highlight&&i.disabled(o.highlight)&&i.set("highlight",o.highlight,n)),i)},o.prototype.get=function(e){return this.item[e]},o.prototype.create=function(e,n,o){var r;return(n=void 0===n?e:n)==-1/0||n==1/0?r=n:t.isPlainObject(n)&&i.isInteger(n.pick)?n=n.obj:t.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=i.isDate(n)?n:this.create().obj):n=i.isInteger(n)||i.isDate(n)?this.normalize(new Date(n),o):this.now(e,n,o),{year:r||n.getFullYear(),month:r||n.getMonth(),date:r||n.getDate(),day:r||n.getDay(),obj:r||n,pick:r||n.getTime()}},o.prototype.createRange=function(e,n){var o=this,r=function(e){return!0===e||t.isArray(e)||i.isDate(e)?o.create(e):e};return i.isInteger(e)||(e=r(e)),i.isInteger(n)||(n=r(n)),i.isInteger(e)&&t.isPlainObject(n)?e=[n.year,n.month,n.date+e]:i.isInteger(n)&&t.isPlainObject(e)&&(n=[e.year,e.month,e.date+n]),{from:r(e),to:r(n)}},o.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},o.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},o.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},o.prototype.navigate=function(e,n,i){var o,r,a,s,c=t.isArray(n),l=t.isPlainObject(n),d=this.item.view;if(c||l){for(l?(r=n.year,a=n.month,s=n.date):(r=+n[0],a=+n[1],s=+n[2]),i&&i.nav&&d&&d.month!==a&&(r=d.year,a=d.month),r=(o=new Date(r,a+(i&&i.nav?i.nav:0),1)).getFullYear(),a=o.getMonth();new Date(r,a,s).getMonth()!==a;)s-=1;n=[r,a,s]}return n},o.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},o.prototype.measure=function(e,t){return t?"string"==typeof t?t=this.parse(e,t):i.isInteger(t)&&(t=this.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},o.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},o.prototype.validate=function(e,n,o){var r,a,s,c,l=this,d=n,u=o&&o.interval?o.interval:1,h=-1===l.item.enable,p=l.item.min,f=l.item.max,m=h&&l.item.disable.filter(function(e){if(t.isArray(e)){var o=l.create(e).pick;o<n.pick?r=!0:o>n.pick&&(a=!0)}return i.isInteger(e)}).length;if((!o||!o.nav&&!o.defaultValue)&&(!h&&l.disabled(n)||h&&l.disabled(n)&&(m||r||a)||!h&&(n.pick<=p.pick||n.pick>=f.pick)))for(h&&!m&&(!a&&u>0||!r&&u<0)&&(u*=-1);l.disabled(n)&&(Math.abs(u)>1&&(n.month<d.month||n.month>d.month)&&(n=d,u=u>0?1:-1),n.pick<=p.pick?(s=!0,u=1,n=l.create([p.year,p.month,p.date+(n.pick===p.pick?0:-1)])):n.pick>=f.pick&&(c=!0,u=-1,n=l.create([f.year,f.month,f.date+(n.pick===f.pick?0:1)])),!s||!c);)n=l.create([n.year,n.month,n.date+u]);return n},o.prototype.disabled=function(e){var n=this,o=n.item.disable.filter(function(o){return i.isInteger(o)?e.day===(n.settings.firstDay?o:o-1)%7:t.isArray(o)||i.isDate(o)?e.pick===n.create(o).pick:t.isPlainObject(o)?n.withinRange(o,e):void 0});return o=o.length&&!o.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!o:o||e.pick<n.item.min.pick||e.pick>n.item.max.pick},o.prototype.parse=function(e,t,n){var o=this,r={};return t&&"string"==typeof t?(n&&n.format||((n=n||{}).format=o.settings.format),o.formats.toArray(n.format).map(function(e){var n=o.formats[e],a=n?i.trigger(n,o,[t,r]):e.replace(/^!/,"").length;n&&(r[e]=t.substr(0,a)),t=t.substr(a)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):t},o.prototype.formats=function(){function e(e,t,n){var i=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(i)+1),i.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?i.digits(e):t.date},dd:function(e,t){return e?2:i.lead(t.date)},ddd:function(e,n){return e?t(e):this.settings.weekdaysShort[n.day]},dddd:function(e,n){return e?t(e):this.settings.weekdaysFull[n.day]},m:function(e,t){return e?i.digits(e):t.month+1},mm:function(e,t){return e?2:i.lead(t.month+1)},mmm:function(t,n){var i=this.settings.monthsShort;return t?e(t,i,n):i[n.month]},mmmm:function(t,n){var i=this.settings.monthsFull;return t?e(t,i,n):i[n.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return i.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),o.prototype.isDateExact=function(e,n){return i.isInteger(e)&&i.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(i.isDate(e)||t.isArray(e))&&(i.isDate(n)||t.isArray(n))?this.create(e).pick===this.create(n).pick:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&(this.isDateExact(e.from,n.from)&&this.isDateExact(e.to,n.to))},o.prototype.isDateOverlap=function(e,n){var o=this.settings.firstDay?1:0;return i.isInteger(e)&&(i.isDate(n)||t.isArray(n))?(e=e%7+o)===this.create(n).day+1:i.isInteger(n)&&(i.isDate(e)||t.isArray(e))?(n=n%7+o)===this.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&this.overlapRanges(e,n)},o.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},o.prototype.deactivate=function(e,n){var o=this,r=o.item.disable.slice(0);return"flip"==n?o.flipEnable():!1===n?(o.flipEnable(1),r=[]):!0===n?(o.flipEnable(-1),r=[]):n.map(function(e){for(var n,a=0;a<r.length;a+=1)if(o.isDateExact(e,r[a])){n=!0;break}n||(i.isInteger(e)||i.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},o.prototype.activate=function(e,n){var o=this,r=o.item.disable,a=r.length;return"flip"==n?o.flipEnable():!0===n?(o.flipEnable(1),r=[]):!1===n?(o.flipEnable(-1),r=[]):n.map(function(e){var n,s,c,l;for(c=0;c<a;c+=1){if(s=r[c],o.isDateExact(s,e)){n=r[c]=null,l=!0;break}if(o.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e)[3]||n.push("inverted"):i.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(c=0;c<a;c+=1)if(o.isDateExact(r[c],e)){r[c]=null;break}if(l)for(c=0;c<a;c+=1)if(o.isDateOverlap(r[c],e)){r[c]=null;break}n&&r.push(n)}),r.filter(function(e){return null!=e})},o.prototype.nodes=function(e){var t,n,o=this,r=o.settings,a=o.item,s=a.now,c=a.select,l=a.highlight,d=a.view,u=a.disable,h=a.min,p=a.max,f=(t=(r.showWeekdaysFull?r.weekdaysFull:r.weekdaysShort).slice(0),n=r.weekdaysFull.slice(0),r.firstDay&&(t.push(t.shift()),n.push(n.shift())),i.node("thead",i.node("tr",i.group({min:0,max:6,i:1,node:"th",item:function(e){return[t[e],r.klass.weekdays,'scope=col title="'+n[e]+'"']}})))),m=function(e){return i.node("div"," ",r.klass["nav"+(e?"Next":"Prev")]+(e&&d.year>=p.year&&d.month>=p.month||!e&&d.year<=h.year&&d.month<=h.month?" "+r.klass.navDisabled:""),"data-nav="+(e||-1)+" "+i.ariaAttr({role:"button",controls:o.$node[0].id+"_table"})+' title="'+(e?r.labelMonthNext:r.labelMonthPrev)+'"')},y=function(){var t=r.showMonthsShort?r.monthsShort:r.monthsFull;return r.selectMonths?i.node("select",i.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(d.month==e?" selected":"")+(d.year==h.year&&e<h.month||d.year==p.year&&e>p.month?" disabled":"")]}}),r.klass.selectMonth,(e?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+r.labelMonthSelect+'"'):i.node("div",t[d.month],r.klass.month)},g=function(){var t=d.year,n=!0===r.selectYears?5:~~(r.selectYears/2);if(n){var a=h.year,s=p.year,c=t-n,l=t+n;if(a>c&&(l+=a-c,c=a),s<l){var u=c-a,f=l-s;c-=u>f?f:u,l=s}return i.node("select",i.group({min:c,max:l,i:1,node:"option",item:function(e){return[e,0,"value="+e+(t==e?" selected":"")]}}),r.klass.selectYear,(e?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+r.labelYearSelect+'"')}return i.node("div",t,r.klass.year)};return i.node("div",(r.selectYears?g()+y():y()+g())+m()+m(1),r.klass.header)+i.node("table",f+i.node("tbody",i.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=r.firstDay&&0===o.create([d.year,d.month,1]).day?-7:0;return[i.group({min:7*e-d.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=o.create([d.year,d.month,e+(r.firstDay?1:0)]);var t,n=c&&c.pick==e.pick,a=l&&l.pick==e.pick,f=u&&o.disabled(e)||e.pick<h.pick||e.pick>p.pick,m=i.trigger(o.formats.toString,o,[r.format,e]);return[i.node("div",e.date,(t=[r.klass.day],t.push(d.month==e.month?r.klass.infocus:r.klass.outfocus),s.pick==e.pick&&t.push(r.klass.now),n&&t.push(r.klass.selected),a&&t.push(r.klass.highlighted),f&&t.push(r.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+i.ariaAttr({role:"gridcell",label:m,selected:!(!n||o.$node.val()!==m)||null,activedescendant:!!a||null,disabled:!!f||null})),"",i.ariaAttr({role:"presentation"})]}})]}})),r.klass.table,'id="'+o.$node[0].id+'_table" '+i.ariaAttr({role:"grid",controls:o.$node[0].id,readonly:!0}))+i.node("div",i.node("button",r.today,r.klass.buttonToday,"type=button data-pick="+s.pick+(e&&!o.disabled(s)?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",r.clear,r.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",r.close,r.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id})),r.klass.footer)},o.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:(n=e.klasses().picker+"__")+"table",header:n+"header",navPrev:n+"nav--prev",navNext:n+"nav--next",navDisabled:n+"nav--disabled",month:n+"month",year:n+"year",selectMonth:n+"select--month",selectYear:n+"select--year",weekdays:n+"weekday",day:n+"day",disabled:n+"day--disabled",selected:n+"day--selected",highlighted:n+"day--highlighted",now:n+"day--today",infocus:n+"day--infocus",outfocus:n+"day--outfocus",footer:n+"footer",buttonClear:n+"button--clear",buttonToday:n+"button--today",buttonClose:n+"button--close"}},e.extend("pickadate",o)},e.exports=o(i,t)});function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}!function(e){var t=function(e,t){this._element=e,this._options=t};t.DEFAULTS={cancel:"Cancel",closeOnCancel:!0,closeOnSelect:!1,container:"body",disable:[],firstDay:0,format:"d/m/yyyy",formatSubmit:"",klass:{buttonClear:"btn btn-outline-primary picker-button-clear",buttonClose:"btn btn-outline-primary picker-button-close",buttonToday:"btn btn-outline-primary picker-button-today",day:"picker-day",disabled:"picker-day-disabled",highlighted:"picker-day-highlighted",infocus:"picker-day-infocus",now:"picker-day-today",outfocus:"picker-day-outfocus",selected:"picker-day-selected",weekdays:"picker-weekday",box:"picker-box",footer:"picker-footer",frame:"picker-frame",header:"picker-header",holder:"picker-holder",table:"picker-table",wrap:"picker-wrap",active:"picker-input-active",input:"picker-input",month:"picker-month",navDisabled:"picker-nav-disabled",navNext:"material-icons picker-nav-next",navPrev:"material-icons picker-nav-prev",selectMonth:"picker-select-month",selectYear:"picker-select-year",year:"picker-year",focused:"picker-focused",opened:"picker-opened",picker:"picker"},max:!1,min:!1,monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ok:"OK",onClose:!1,onOpen:!1,onRender:!1,onSet:!1,onStart:!1,onStop:!1,selectMonths:!1,selectYears:!1,today:"",weekdaysFull:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysShort:["S","M","T","W","T","F","S"]},t.prototype.display=function(t,n,i){e(".picker-date-display",n).remove(),e(".picker-wrap",n).prepend('<div class="picker-date-display"><div class="picker-date-display-top"><span class="picker-year-display">'+t.get(i,"yyyy")+'</span></div><div class="picker-date-display-bottom"><span class="picker-weekday-display">'+t.get(i,"dddd")+'</span><span class="picker-day-display">'+t.get(i,"d")+'</span><span class="picker-month-display">'+t.get(i,"mmm")+"</span></div></div>")},t.prototype.show=function(){var t=this;e(this._element).pickadate({clear:t._options.cancel,close:t._options.ok,closeOnClear:t._options.closeOnCancel,closeOnSelect:t._options.closeOnSelect,container:t._options.container,disable:t._options.disable,firstDay:t._options.firstDay,format:t._options.format,formatSubmit:t._options.formatSubmit,klass:t._options.klass,max:t._options.max,min:t._options.min,monthsFull:t._options.monthsFull,monthsShort:t._options.monthsShort,onClose:t._options.onClose,onOpen:t._options.onOpen,onRender:t._options.onRender,onSet:t._options.onSet,onStart:t._options.onStart,onStop:t._options.onStop,selectMonths:t._options.selectMonths,selectYears:t._options.selectYears,today:t._options.today,weekdaysFull:t._options.weekdaysFull,weekdaysShort:t._options.weekdaysShort});var n=e(this._element).pickadate("picker"),i=(n.$node,n.$root);n.on({close:function(){e(document.activeElement).blur()},open:function(){e(".picker__date-display",i).length||t.display(n,i,"highlight")},set:function(){null!==n.get("select")&&t.display(n,i,"select")}})};var n=e.fn.pickdate;e.fn.pickdate=function(n){return this.each(function(){var i=e(this).data("bs.pickdate"),o=e.extend({},t.DEFAULTS,e(this).data(),"object"==typeof n&&n);i||e(this).data("bs.pickdate",i=new t(this,o)),i.show()})},e.fn.pickdate.Constructor=t,e.fn.pickdate.noConflict=function(){return e.fn.pickdate=n,this}}(jQuery);var a,s,c,l,d,u,h,p,f,m,y,g,v,_,b,k,w,S,D,C,O,T,E,I,A,x,N,M,$,j,P,F,W,R,B,L,U,Y,Q,H,K,J,G,q,z,V,X,Z,ee,te,ne,ie,oe,re,ae,se,ce,le,de,ue,he,pe,fe,me,ye,ge=(c="show",l="show-predecessor",d="hide"+(s=".bs.collapse"),u="show"+s,h=".expansion-panel",p=".expansion-panel .collapse",void(a=t)(document).on(""+d,p,function(){var e=a(this).closest(h);e.removeClass(c);var t=e.prev(h);t.length&&t.removeClass(l)}).on(""+u,p,function(){var e=a(this).closest(h);e.addClass(c);var t=e.prev(h);t.length&&t.addClass(l)})),ve=(y="."+(m="md.floatinglabel"),g="floatinglabel",v=(f=t).fn[g],_="is-focused",b="has-value",k="change"+y,w="focusin"+y,S="focusout"+y,D={DATA_PARENT:".floating-label",DATA_TOGGLE:".floating-label .form-control"},C=function(){function e(e){this._element=e,this._parent=f(e).closest(D.DATA_PARENT)[0]}var t=e.prototype;return t.change=function(){f(this._element).val()||f(this._element).is("select")&&""!==f("option:first-child",f(this._element)).html().replace(" ","")?f(this._parent).addClass(b):f(this._parent).removeClass(b)},t.focusin=function(){f(this._parent).addClass(_)},t.focusout=function(){f(this._parent).removeClass(_)},e._jQueryInterface=function(t){return this.each(function(){var n=t||"change",i=f(this).data(m);if(i||(i=new e(this),f(this).data(m,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new Error('No method named "'+n+'"');i[n]()}})},e}(),f(document).on(k+" "+w+" "+S,D.DATA_TOGGLE,function(e){C._jQueryInterface.call(f(this),e.type)}),f.fn[g]=C._jQueryInterface,f.fn[g].Constructor=C,f.fn[g].noConflict=function(){return f.fn[g]=v,C._jQueryInterface},C),_e=function(e){var t=!1;function n(t){var n=this,o=!1;return e(this).one(i.TRANSITION_END,function(){o=!0}),setTimeout(function(){o||i.triggerTransitionEnd(n)},t),this}var i={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(t){var n=t.getAttribute("data-target");n&&"#"!==n||(n=t.getAttribute("href")||"");try{return e(document).find(n).length>0?n:null}catch(e){return null}},getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},isElement:function(e){return(e[0]||e).nodeType},reflow:function(e){return e.offsetHeight},supportsTransitionEnd:function(){return Boolean(t)},triggerTransitionEnd:function(n){e(n).trigger(t.end)},typeCheckConfig:function(e,t,n){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var r=n[o],a=t[o],s=a&&i.isElement(a)?"element":(c=a,{}.toString.call(c).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(e.toUpperCase()+': Option "'+o+'" provided type "'+s+'" but expected type "'+r+'".')}var c}};return t=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},e.fn.emulateTransitionEnd=n,i.supportsTransitionEnd()&&(e.event.special[i.TRANSITION_END]={bindType:t.end,delegateType:t.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),i}(t),be=(E="."+(T="md.navdrawer"),I="navdrawer",A=(O=t).fn[I],x=992,N=576,M="navdrawer-backdrop",$="navdrawer-open",j="show",P={breakpoint:"",keyboard:!0,show:!0,type:"default"},F={keyboard:"boolean",show:"boolean",type:"string"},W={CLICK_DATA_API:"click"+E+".data-api",CLICK_DISMISS:"click.dismiss"+E,FOCUSIN:"focusin"+E,HIDDEN:"hidden"+E,HIDE:"hide"+E,KEYDOWN_DISMISS:"keydown.dismiss"+E,MOUSEDOWN_DISMISS:"mousedown.dismiss"+E,MOUSEUP_DISMISS:"mouseup.dismiss"+E,SHOW:"show"+E,SHOWN:"shown"+E},R={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},B={DESKTOP:150,MOBILE:225,TABLET:292.5},L={DESKTOP:130,MOBILE:195,TABLET:253.5},U=function(){function e(e,t){this._backdrop=null,this._config=this._getConfig(t),this._content=O(e).find(R.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1,this._typeBreakpoint=""===this._config.breakpoint?"":"-"+this._config.breakpoint}var t,n,i,a=e.prototype;return a.hide=function(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=O.Event(W.HIDE);if(O(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=_e.supportsTransitionEnd();i&&(this._isTransitioning=!0),this._setEscapeEvent(),O(document).off(W.FOCUSIN),O(this._element).removeClass(j),O(this._element).off(W.CLICK_DISMISS),O(this._content).off(W.MOUSEDOWN_DISMISS),i?O(this._element).one(_e.TRANSITION_END,function(e){return t._hideNavdrawer(e)}).emulateTransitionEnd(this._getTransitionDuration(L)):this._hideNavdrawer(),this._showBackdrop()}}},a.show=function(e){var t=this;if(!this._isTransitioning&&!this._isShown){_e.supportsTransitionEnd()&&(this._isTransitioning=!0);var n=O.Event(W.SHOW,{relatedTarget:e});O(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,O(document.body).addClass($+"-"+this._config.type+this._typeBreakpoint),this._setEscapeEvent(),O(this._element).addClass(I+"-"+this._config.type+this._typeBreakpoint),O(this._element).on(W.CLICK_DISMISS,R.DATA_DISMISS,function(e){return t.hide(e)}),O(this._content).on(W.MOUSEDOWN_DISMISS,function(){O(t._element).one(W.MOUSEUP_DISMISS,function(e){O(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))}},a.toggle=function(e){return this._isShown?this.hide():this.show(e)},a._enforceFocus=function(){var e=this;O(document).off(W.FOCUSIN).on(W.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===O(e._element).has(t.target).length&&e._element.focus()})},a._getConfig=function(e){return e=r({},P,e),_e.typeCheckConfig(I,e,F),e},a._getTransitionDuration=function(e){return window.innerWidth>=x?e.DESKTOP:window.innerWidth>=N?e.TABLET:e.MOBILE},a._hideNavdrawer=function(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,O(document.body).removeClass($+"-"+this._config.type+this._typeBreakpoint),O(this._element).trigger(W.HIDDEN)},a._removeBackdrop=function(){this._backdrop&&(O(this._backdrop).remove(),this._backdrop=null)},a._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?O(this._element).on(W.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||O(this._element).off(W.KEYDOWN_DISMISS)},a._showBackdrop=function(){var e=this,t=_e.supportsTransitionEnd();this._isShown?(this._backdrop=document.createElement("div"),O(this._backdrop).addClass(M).addClass(M+"-"+this._config.type+this._typeBreakpoint).appendTo(document.body),O(this._element).on(W.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&e.hide()}),t&&_e.reflow(this._backdrop),O(this._backdrop).addClass(j)):!this._isShown&&this._backdrop&&(O(this._backdrop).removeClass(j),this._removeBackdrop())},a._showElement=function(e){var t=this,n=_e.supportsTransitionEnd();this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),n&&_e.reflow(this._element),O(this._element).addClass(j),this._enforceFocus();var i=O.Event(W.SHOWN,{relatedTarget:e}),o=function(){t._element.focus(),t._isTransitioning=!1,O(t._element).trigger(i)};n?O(this._content).one(_e.TRANSITION_END,o).emulateTransitionEnd(this._getTransitionDuration(B)):o()},e._jQueryInterface=function(t,n){return this.each(function(){var i=r({},e.Default,O(this).data(),"object"==typeof t&&t),o=O(this).data(T);if(o||(o=new e(this,i),O(this).data(T,o)),"string"==typeof t){if("undefined"==typeof o[t])throw new TypeError('No method named "'+t+'"');o[t](n)}else i.show&&o.show(n)})},t=e,i=[{key:"Default",get:function(){return P}}],(n=null)&&o(t.prototype,n),i&&o(t,i),e}(),O(document).on(W.CLICK_DATA_API,R.DATA_TOGGLE,function(e){var t,n=this,i=_e.getSelectorFromElement(this);i&&(t=O(i)[0]);var o=O(t).data(T)?"toggle":r({},O(t).data(),O(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=O(t).one(W.SHOW,function(e){e.isDefaultPrevented()||a.one(W.HIDDEN,function(){O(n).is(":visible")&&n.focus()})});U._jQueryInterface.call(O(t),o,this)}),O.fn[I]=U._jQueryInterface,O.fn[I].Constructor=U,O.fn[I].noConflict=function(){return O.fn[I]=A,U._jQueryInterface},U),ke=(H="focus",K={IS_MOUSEDOWN:!1},J="blur"+(Q=".md.selectioncontrolfocus"),G="focus"+Q,q="mousedown"+Q,z="mouseup"+Q,V=".custom-control",X=".custom-control-input",void(Y=t)(document).on(""+J,X,function(){Y(this).removeClass(H)}).on(""+G,X,function(){!1===K.IS_MOUSEDOWN&&Y(this).addClass(H)}).on(""+q,V,function(){K.IS_MOUSEDOWN=!0}).on(""+z,V,function(){setTimeout(function(){K.IS_MOUSEDOWN=!1},1)})),we=(ee="md.tabswitch",te="tabswitch",ne=(Z=t).fn[te],ie=992,oe=576,re="animate",ae="dropdown-item",se="nav-tabs-indicator",ce="nav-tabs-material",le="show",de='.nav-tabs [data-toggle="tab"]',ue=".dropdown",he=".nav-tabs",pe=200,fe=300,me=390,ye=function(){function e(e){this._nav=e,this._navindicator=null}var t=e.prototype;return t.switch=function(e,t){var n=this,i=Z(this._nav).offset().left,o=Z(this._nav).scrollLeft(),r=Z(this._nav).outerWidth(),a=_e.supportsTransitionEnd();this._navindicator||this._createIndicator(i,o,r,t),Z(e).hasClass(ae)&&(e=Z(e).closest(ue));var s=Z(e).offset().left,c=Z(e).outerWidth();Z(this._navindicator).addClass(le),_e.reflow(this._navindicator),a&&Z(this._nav).addClass(re),Z(this._navindicator).css({left:s+o-i,right:r-(s+o-i+c)});var l=function(){Z(n._nav).removeClass(re),Z(n._navindicator).removeClass(le)};if(a){var d=fe;window.innerWidth>=ie?d=pe:window.innerWidth>=oe&&(d=me),Z(this._navindicator).one(_e.TRANSITION_END,l).emulateTransitionEnd(d)}else l()},t._createIndicator=function(e,t,n,i){if(this._navindicator=document.createElement("div"),Z(this._navindicator).addClass(se).appendTo(this._nav),"undefined"!==i){Z(i).hasClass(ae)&&(i=Z(i).closest(ue));var o=Z(i).offset().left,r=Z(i).outerWidth();Z(this._navindicator).css({left:o+t-e,right:n-(o+t-e+r)})}Z(this._nav).addClass(ce)},e._jQueryInterface=function(t){return this.each(function(){var n=Z(this).closest(he)[0];if(n){var i=Z(n).data(ee);i||(i=new e(n),Z(n).data(ee,i)),i.switch(this,t)}})},e}(),Z(document).on("show.bs.tab",de,function(e){ye._jQueryInterface.call(Z(this),e.relatedTarget)}),Z.fn[te]=ye._jQueryInterface,Z.fn[te].Constructor=ye,Z.fn[te].noConflict=function(){return Z.fn[te]=ne,ye._jQueryInterface},ye);e.Util=_e,e.ExpansionPanel=ge,e.FloatingLabel=ve,e.NavDrawer=be,e.SelectionControlFocus=ke,e.TabSwitch=we,Object.defineProperty(e,"__esModule",{value:!0})});
14
+ * Date picker for pickadate.js v3.5.6
15
+ * http://amsul.github.io/pickadate.js/date.htm
16
+ */var n;n=function(e,p){var t,y=e._;function n(t,n){var e,i=this,o=t.$node[0],r=o.value,a=t.$node.data("value"),s=a||r,c=a?n.formatSubmit:n.format,l=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};i.settings=n,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(n.disable||[]).slice(0),i.item.enable=-(!0===(e=i.item.disable)[0]?e.shift():-1),i.set("min",n.min).set("max",n.max).set("now"),s?i.set("select",s,{format:c,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},t.on("render",function(){t.$root.find("."+n.klass.selectMonth).on("change",function(){var e=this.value;e&&(t.set("highlight",[t.get("view").year,e,t.get("highlight").date]),t.$root.find("."+n.klass.selectMonth).trigger("focus"))}),t.$root.find("."+n.klass.selectYear).on("change",function(){var e=this.value;e&&(t.set("highlight",[e,t.get("view").month,t.get("highlight").date]),t.$root.find("."+n.klass.selectYear).trigger("focus"))})},1).on("open",function(){var e="";i.disabled(i.get("now"))&&(e=":not(."+n.klass.buttonToday+")"),t.$root.find("button"+e+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}n.prototype.set=function(t,n,i){var o=this,e=o.item;return null===n?("clear"==t&&(t="select"),e[t]=n):(e["enable"==t?"disable":"flip"==t?"enable":t]=o.queue[t].split(" ").map(function(e){return n=o[e](t,n,i)}).pop(),"select"==t?o.set("highlight",e.select,i):"highlight"==t?o.set("view",e.highlight,i):t.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&o.disabled(e.select)&&o.set("select",e.select,i),e.highlight&&o.disabled(e.highlight)&&o.set("highlight",e.highlight,i))),o},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,t,n){var i;return(t=void 0===t?e:t)==-1/0||t==1/0?i=t:p.isPlainObject(t)&&y.isInteger(t.pick)?t=t.obj:p.isArray(t)?(t=new Date(t[0],t[1],t[2]),t=y.isDate(t)?t:this.create().obj):t=y.isInteger(t)||y.isDate(t)?this.normalize(new Date(t),n):this.now(e,t,n),{year:i||t.getFullYear(),month:i||t.getMonth(),date:i||t.getDate(),day:i||t.getDay(),obj:i||t,pick:i||t.getTime()}},n.prototype.createRange=function(e,t){var n=this,i=function(e){return!0===e||p.isArray(e)||y.isDate(e)?n.create(e):e};return y.isInteger(e)||(e=i(e)),y.isInteger(t)||(t=i(t)),y.isInteger(e)&&p.isPlainObject(t)?e=[t.year,t.month,t.date+e]:y.isInteger(t)&&p.isPlainObject(e)&&(t=[e.year,e.month,e.date+t]),{from:i(e),to:i(t)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},n.prototype.navigate=function(e,t,n){var i,o,r,a,s=p.isArray(t),c=p.isPlainObject(t),l=this.item.view;if(s||c){for(c?(o=t.year,r=t.month,a=t.date):(o=+t[0],r=+t[1],a=+t[2]),n&&n.nav&&l&&l.month!==r&&(o=l.year,r=l.month),o=(i=new Date(o,r+(n&&n.nav?n.nav:0),1)).getFullYear(),r=i.getMonth();new Date(o,r,a).getMonth()!==r;)a-=1;t=[o,r,a]}return t},n.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},n.prototype.measure=function(e,t){return t?"string"==typeof t?t=this.parse(e,t):y.isInteger(t)&&(t=this.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},n.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},n.prototype.validate=function(e,n,t){var i,o,r,a,s=this,c=n,l=t&&t.interval?t.interval:1,d=-1===s.item.enable,u=s.item.min,h=s.item.max,f=d&&s.item.disable.filter(function(e){if(p.isArray(e)){var t=s.create(e).pick;t<n.pick?i=!0:t>n.pick&&(o=!0)}return y.isInteger(e)}).length;if((!t||!t.nav&&!t.defaultValue)&&(!d&&s.disabled(n)||d&&s.disabled(n)&&(f||i||o)||!d&&(n.pick<=u.pick||n.pick>=h.pick)))for(d&&!f&&(!o&&0<l||!i&&l<0)&&(l*=-1);s.disabled(n)&&(1<Math.abs(l)&&(n.month<c.month||n.month>c.month)&&(n=c,l=0<l?1:-1),n.pick<=u.pick?(r=!0,l=1,n=s.create([u.year,u.month,u.date+(n.pick===u.pick?0:-1)])):n.pick>=h.pick&&(a=!0,l=-1,n=s.create([h.year,h.month,h.date+(n.pick===h.pick?0:1)])),!r||!a);)n=s.create([n.year,n.month,n.date+l]);return n},n.prototype.disabled=function(t){var n=this,e=n.item.disable.filter(function(e){return y.isInteger(e)?t.day===(n.settings.firstDay?e:e-1)%7:p.isArray(e)||y.isDate(e)?t.pick===n.create(e).pick:p.isPlainObject(e)?n.withinRange(e,t):void 0});return e=e.length&&!e.filter(function(e){return p.isArray(e)&&"inverted"==e[3]||p.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!e:e||t.pick<n.item.min.pick||t.pick>n.item.max.pick},n.prototype.parse=function(e,i,t){var o=this,r={};return i&&"string"==typeof i?(t&&t.format||((t=t||{}).format=o.settings.format),o.formats.toArray(t.format).map(function(e){var t=o.formats[e],n=t?y.trigger(t,o,[i,r]):e.replace(/^!/,"").length;t&&(r[e]=i.substr(0,n)),i=i.substr(n)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):i},n.prototype.formats=function(){function i(e,t,n){var i=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(i)+1),i.length}function n(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?y.digits(e):t.date},dd:function(e,t){return e?2:y.lead(t.date)},ddd:function(e,t){return e?n(e):this.settings.weekdaysShort[t.day]},dddd:function(e,t){return e?n(e):this.settings.weekdaysFull[t.day]},m:function(e,t){return e?y.digits(e):t.month+1},mm:function(e,t){return e?2:y.lead(t.month+1)},mmm:function(e,t){var n=this.settings.monthsShort;return e?i(e,n,t):n[t.month]},mmmm:function(e,t){var n=this.settings.monthsFull;return e?i(e,n,t):n[t.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return y.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),n.prototype.isDateExact=function(e,t){return y.isInteger(e)&&y.isInteger(t)||"boolean"==typeof e&&"boolean"==typeof t?e===t:(y.isDate(e)||p.isArray(e))&&(y.isDate(t)||p.isArray(t))?this.create(e).pick===this.create(t).pick:!(!p.isPlainObject(e)||!p.isPlainObject(t))&&(this.isDateExact(e.from,t.from)&&this.isDateExact(e.to,t.to))},n.prototype.isDateOverlap=function(e,t){var n=this.settings.firstDay?1:0;return y.isInteger(e)&&(y.isDate(t)||p.isArray(t))?(e=e%7+n)===this.create(t).day+1:y.isInteger(t)&&(y.isDate(e)||p.isArray(e))?(t=t%7+n)===this.create(e).day+1:!(!p.isPlainObject(e)||!p.isPlainObject(t))&&this.overlapRanges(e,t)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,t){var i=this,o=i.item.disable.slice(0);return"flip"==t?i.flipEnable():!1===t?(i.flipEnable(1),o=[]):!0===t?(i.flipEnable(-1),o=[]):t.map(function(e){for(var t,n=0;n<o.length;n+=1)if(i.isDateExact(e,o[n])){t=!0;break}t||(y.isInteger(e)||y.isDate(e)||p.isArray(e)||p.isPlainObject(e)&&e.from&&e.to)&&o.push(e)}),o},n.prototype.activate=function(e,t){var r=this,a=r.item.disable,s=a.length;return"flip"==t?r.flipEnable():!0===t?(r.flipEnable(1),a=[]):!1===t?(r.flipEnable(-1),a=[]):t.map(function(e){var t,n,i,o;for(i=0;i<s;i+=1){if(n=a[i],r.isDateExact(n,e)){t=a[i]=null,o=!0;break}if(r.isDateOverlap(n,e)){p.isPlainObject(e)?(e.inverted=!0,t=e):p.isArray(e)?(t=e)[3]||t.push("inverted"):y.isDate(e)&&(t=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(t)for(i=0;i<s;i+=1)if(r.isDateExact(a[i],e)){a[i]=null;break}if(o)for(i=0;i<s;i+=1)if(r.isDateOverlap(a[i],e)){a[i]=null;break}t&&a.push(t)}),a.filter(function(e){return null!=e})},n.prototype.nodes=function(c){var t,n,l=this,d=l.settings,e=l.item,a=e.now,s=e.select,u=e.highlight,h=e.view,f=e.disable,p=e.min,m=e.max,i=(t=(d.showWeekdaysFull?d.weekdaysFull:d.weekdaysShort).slice(0),n=d.weekdaysFull.slice(0),d.firstDay&&(t.push(t.shift()),n.push(n.shift())),y.node("thead",y.node("tr",y.group({min:0,max:6,i:1,node:"th",item:function(e){return[t[e],d.klass.weekdays,'scope=col title="'+n[e]+'"']}})))),o=function(e){return y.node("div"," ",d.klass["nav"+(e?"Next":"Prev")]+(e&&h.year>=m.year&&h.month>=m.month||!e&&h.year<=p.year&&h.month<=p.month?" "+d.klass.navDisabled:""),"data-nav="+(e||-1)+" "+y.ariaAttr({role:"button",controls:l.$node[0].id+"_table"})+' title="'+(e?d.labelMonthNext:d.labelMonthPrev)+'"')},r=function(){var t=d.showMonthsShort?d.monthsShort:d.monthsFull;return d.selectMonths?y.node("select",y.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(h.month==e?" selected":"")+(h.year==p.year&&e<p.month||h.year==m.year&&e>m.month?" disabled":"")]}}),d.klass.selectMonth,(c?"":"disabled")+" "+y.ariaAttr({controls:l.$node[0].id+"_table"})+' title="'+d.labelMonthSelect+'"'):y.node("div",t[h.month],d.klass.month)},g=function(){var t=h.year,e=!0===d.selectYears?5:~~(d.selectYears/2);if(e){var n=p.year,i=m.year,o=t-e,r=t+e;if(o<n&&(r+=n-o,o=n),i<r){var a=o-n,s=r-i;o-=s<a?s:a,r=i}return y.node("select",y.group({min:o,max:r,i:1,node:"option",item:function(e){return[e,0,"value="+e+(t==e?" selected":"")]}}),d.klass.selectYear,(c?"":"disabled")+" "+y.ariaAttr({controls:l.$node[0].id+"_table"})+' title="'+d.labelYearSelect+'"')}return y.node("div",t,d.klass.year)};return y.node("div",(d.selectYears?g()+r():r()+g())+o()+o(1),d.klass.header)+y.node("table",i+y.node("tbody",y.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=d.firstDay&&0===l.create([h.year,h.month,1]).day?-7:0;return[y.group({min:7*e-h.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=l.create([h.year,h.month,e+(d.firstDay?1:0)]);var t,n=s&&s.pick==e.pick,i=u&&u.pick==e.pick,o=f&&l.disabled(e)||e.pick<p.pick||e.pick>m.pick,r=y.trigger(l.formats.toString,l,[d.format,e]);return[y.node("div",e.date,(t=[d.klass.day],t.push(h.month==e.month?d.klass.infocus:d.klass.outfocus),a.pick==e.pick&&t.push(d.klass.now),n&&t.push(d.klass.selected),i&&t.push(d.klass.highlighted),o&&t.push(d.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+y.ariaAttr({role:"gridcell",label:r,selected:!(!n||l.$node.val()!==r)||null,activedescendant:!!i||null,disabled:!!o||null})),"",y.ariaAttr({role:"presentation"})]}})]}})),d.klass.table,'id="'+l.$node[0].id+'_table" '+y.ariaAttr({role:"grid",controls:l.$node[0].id,readonly:!0}))+y.node("div",y.node("button",d.today,d.klass.buttonToday,"type=button data-pick="+a.pick+(c&&!l.disabled(a)?"":" disabled")+" "+y.ariaAttr({controls:l.$node[0].id}))+y.node("button",d.clear,d.klass.buttonClear,"type=button data-clear=1"+(c?"":" disabled")+" "+y.ariaAttr({controls:l.$node[0].id}))+y.node("button",d.close,d.klass.buttonClose,"type=button data-close=true "+(c?"":" disabled")+" "+y.ariaAttr({controls:l.$node[0].id})),d.klass.footer)},n.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:(t=e.klasses().picker+"__")+"table",header:t+"header",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today",buttonClose:t+"button--close"}},e.extend("pickadate",n)},e.exports=n(ve,i)}),Q="md.pickdate",B="pickdate",L=(H=i).fn[B],J={cancel:"Cancel",closeOnCancel:!0,closeOnSelect:!1,container:"",containerHidden:"",disable:[],firstDay:0,format:"d/m/yyyy",formatSubmit:"",hiddenName:!1,hiddenPrefix:"",hiddenSuffix:"",klass:{buttonClear:"btn btn-outline-primary picker-button-clear",buttonClose:"btn btn-outline-primary picker-button-close",buttonToday:"btn btn-outline-primary picker-button-today",day:"picker-day",disabled:"picker-day-disabled",highlighted:"picker-day-highlighted",infocus:"picker-day-infocus",now:"picker-day-today",outfocus:"picker-day-outfocus",selected:"picker-day-selected",weekdays:"picker-weekday",box:"picker-box",footer:"picker-footer",frame:"picker-frame",header:"picker-header",holder:"picker-holder",table:"picker-table",wrap:"picker-wrap",active:"picker-input-active",input:"picker-input",month:"picker-month",navDisabled:"picker-nav-disabled",navNext:"material-icons picker-nav-next",navPrev:"material-icons picker-nav-prev",selectMonth:"picker-select-month",selectYear:"picker-select-year",year:"picker-year",focused:"picker-focused",opened:"picker-opened",picker:"picker"},labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",max:!1,min:!1,monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ok:"OK",onClose:function(){},onOpen:function(){},onRender:function(){},onSet:function(){},onStart:function(){},onStop:function(){},selectMonths:!1,selectYears:!1,today:"",weekdaysFull:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysShort:["S","M","T","W","T","F","S"]},K={cancel:"string",closeOnCancel:"boolean",closeOnSelect:"boolean",container:"string",containerHidden:"string",disable:"array",firstDay:"number",format:"string",formatSubmit:"string",hiddenName:"boolean",hiddenPrefix:"string",hiddenSuffix:"string",klass:"object",labelMonthNext:"string",labelMonthPrev:"string",labelMonthSelect:"string",labelYearSelect:"string",max:"boolean || date",min:"boolean || date",monthsFull:"array",monthsShort:"array",ok:"string",onClose:"function",onOpen:"function",onRender:"function",onSet:"function",onStart:"function",onStop:"function",selectMonths:"boolean",selectYears:"boolean || number",today:"string",weekdaysFull:"array",weekdaysShort:"array"},G=function(){function i(e,t){this._config=this._getConfig(t),this._element=e}var e=i.prototype;return e.display=function(e,t,n){H(".picker-date-display",t).remove(),H(".picker-wrap",t).prepend('<div class="picker-date-display"><div class="picker-date-display-top"><span class="picker-year-display">'+e.get(n,"yyyy")+'</span></div><div class="picker-date-display-bottom"><span class="picker-weekday-display">'+e.get(n,"dddd")+'</span><span class="picker-day-display">'+e.get(n,"d")+'</span><span class="picker-month-display">'+e.get(n,"mmm")+"</span></div></div>")},e.show=function(){var e=this;H(this._element).pickadate({clear:this._config.cancel,close:this._config.ok,closeOnClear:this._config.closeOnCancel,closeOnSelect:this._config.closeOnSelect,container:this._config.container,containerHidden:this._config.containerHidden,disable:this._config.disable,firstDay:this._config.firstDay,format:this._config.format,formatSubmit:this._config.formatSubmit,klass:this._config.klass,hiddenName:this._config.hiddenName,hiddenPrefix:this._config.hiddenPrefix,hiddenSuffix:this._config.hiddenSuffix,labelMonthNext:this._config.labelMonthNext,labelMonthPrev:this._config.labelMonthPrev,labelMonthSelect:this._config.labelMonthSelect,labelYearSelect:this._config.labelYearSelect,max:this._config.max,min:this._config.min,monthsFull:this._config.monthsFull,monthsShort:this._config.monthsShort,onClose:this._config.onClose,onOpen:this._config.onOpen,onRender:this._config.onRender,onSet:this._config.onSet,onStart:this._config.onStart,onStop:this._config.onStop,selectMonths:this._config.selectMonths,selectYears:this._config.selectYears,today:this._config.today,weekdaysFull:this._config.weekdaysFull,weekdaysShort:this._config.weekdaysShort});var t=H(this._element).pickadate("picker"),n=t.$root;t.on({close:function(){H(document.activeElement).blur()},open:function(){H(".picker__date-display",n).length||e.display(t,n,"highlight")},set:function(){null!==t.get("select")&&e.display(t,n,"select")}})},e._getConfig=function(e){return e=C({},J,e),W.typeCheckConfig(B,e,K),e},i._jQueryInterface=function(n){return this.each(function(){var e=C({},i.Default,H(this).data(),"object"==typeof n&&n),t=H(this).data(Q);t||(t=new i(this,e),H(this).data(Q,t)),t.show()})},i}(),H.fn[B]=G._jQueryInterface,H.fn[B].Constructor=G,void(H.fn[B].noConflict=function(){return H.fn[B]=L,G._jQueryInterface})),_e=(X={IS_MOUSEDOWN:!(V="focus")},Z="blur"+(z=".md.selectioncontrolfocus"),ee="focus"+z,te="mousedown"+z,ne="mouseup"+z,ie=".custom-control",oe=".custom-control-input",void(q=i)(document).on(""+Z,oe,function(){q(this).removeClass(V)}).on(""+ee,oe,function(){!1===X.IS_MOUSEDOWN&&q(this).addClass(V)}).on(""+te,ie,function(){X.IS_MOUSEDOWN=!0}).on(""+ne,ie,function(){setTimeout(function(){X.IS_MOUSEDOWN=!1},1)})),ke=(ae="md.tabswitch",se="tabswitch",ce=(re=i).fn[se],le="animate",de="dropdown-item",ue="nav-tabs-indicator",he="nav-tabs-material",fe="show",pe='.nav-tabs [data-toggle="tab"]',me=".dropdown",ge=".nav-tabs",ye=function(){function i(e){this._nav=e,this._navindicator=null}var e=i.prototype;return e.switch=function(e,t){var n=this,i=re(this._nav).offset().left,o=re(this._nav).scrollLeft(),r=re(this._nav).outerWidth(),a=W.supportsTransitionEnd();this._navindicator||this._createIndicator(i,o,r,t),re(e).hasClass(de)&&(e=re(e).closest(me));var s=re(e).offset().left,c=re(e).outerWidth();re(this._navindicator).addClass(fe),W.reflow(this._navindicator),a&&re(this._nav).addClass(le),re(this._navindicator).css({left:s+o-i,right:r-(s+o-i+c)});var l=function(){re(n._nav).removeClass(le),re(n._navindicator).removeClass(fe)};if(a){var d=W.getTransitionDurationFromElement(this._navindicator);re(this._navindicator).one(W.TRANSITION_END,l).emulateTransitionEnd(d)}else l()},e._createIndicator=function(e,t,n,i){if(this._navindicator=document.createElement("div"),re(this._navindicator).addClass(ue).appendTo(this._nav),"undefined"!=typeof i){re(i).hasClass(de)&&(i=re(i).closest(me));var o=re(i).offset().left,r=re(i).outerWidth();re(this._navindicator).css({left:o+t-e,right:n-(o+t-e+r)})}re(this._nav).addClass(he)},i._jQueryInterface=function(n){return this.each(function(){var e=re(this).closest(ge)[0];if(e){var t=re(e).data(ae);t||(t=new i(e),re(e).data(ae,t)),t.switch(this,n)}})},i}(),re(document).on("show.bs.tab",pe,function(e){ye._jQueryInterface.call(re(this),e.relatedTarget)}),re.fn[se]=ye._jQueryInterface,re.fn[se].Constructor=ye,re.fn[se].noConflict=function(){return re.fn[se]=ce,ye._jQueryInterface},ye);e.Util=W,e.ExpansionPanel=S,e.FloatingLabel=w,e.NavDrawer=Y,e.PickDate=be,e.SelectionControlFocus=_e,e.TabSwitch=ke,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -1,7 +1,5 @@
1
1
  /*
2
- * expansion panel
3
- * upon selecting the collapsed panel,
4
- * it expands to display in full
2
+ * Expansion panel plugins expands a collapsed panel in full upon selecting
5
3
  */
6
4
  var ExpansionPanel = function ($) {
7
5
  // constants >>>
@@ -1,7 +1,6 @@
1
1
  /*
2
- * floating label
3
- * when a user engages with the text input field,
4
- * the floating inline labels move to float above the field
2
+ * Floating label plugin moves inline label to float above the field
3
+ * when a user engages with the assosciated text input field
5
4
  */
6
5
  var FloatingLabel = function ($) {
7
6
  // constants >>>
@@ -5,8 +5,8 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5
5
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6
6
 
7
7
  /*
8
- * Navigation drawer
9
- * Based on Bootstrap's (v4.0.0) `modal.js`
8
+ * Navigation drawer plguin
9
+ * Based on Bootstrap's (v4.1.0) `modal.js`
10
10
  */
11
11
  var NavDrawer = function ($) {
12
12
  // constants >>>
@@ -16,10 +16,6 @@ var NavDrawer = function ($) {
16
16
  var EVENT_KEY = "." + DATA_KEY;
17
17
  var NAME = 'navdrawer';
18
18
  var NO_CONFLICT = $.fn[NAME];
19
- var Breakpoints = {
20
- DESKTOP: 992,
21
- TABLET: 576
22
- };
23
19
  var ClassName = {
24
20
  BACKDROP: 'navdrawer-backdrop',
25
21
  OPEN: 'navdrawer-open',
@@ -51,17 +47,7 @@ var NavDrawer = function ($) {
51
47
  var Selector = {
52
48
  CONTENT: '.navdrawer-content',
53
49
  DATA_DISMISS: '[data-dismiss="navdrawer"]',
54
- DATA_TOGGLE: '[data-toggle="navdrawer"]'
55
- };
56
- var TransitionDurationEntering = {
57
- DESKTOP: 150,
58
- MOBILE: 225,
59
- TABLET: 292.5
60
- };
61
- var TransitionDurationLeaving = {
62
- DESKTOP: 130,
63
- MOBILE: 195,
64
- TABLET: 253.5 // <<< constants
50
+ DATA_TOGGLE: '[data-toggle="navdrawer"]' // <<< constants
65
51
 
66
52
  };
67
53
 
@@ -108,14 +94,16 @@ var NavDrawer = function ($) {
108
94
  this._setEscapeEvent();
109
95
 
110
96
  $(document).off(Event.FOCUSIN);
97
+ $(document.body).removeClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
111
98
  $(this._element).removeClass(ClassName.SHOW);
112
99
  $(this._element).off(Event.CLICK_DISMISS);
113
100
  $(this._content).off(Event.MOUSEDOWN_DISMISS);
114
101
 
115
102
  if (supportsTransition) {
116
- $(this._element).one(Util.TRANSITION_END, function (event) {
103
+ var transitionDuration = Util.getTransitionDurationFromElement(this._content);
104
+ $(this._content).one(Util.TRANSITION_END, function (event) {
117
105
  return _this._hideNavdrawer(event);
118
- }).emulateTransitionEnd(this._getTransitionDuration(TransitionDurationLeaving));
106
+ }).emulateTransitionEnd(transitionDuration);
119
107
  } else {
120
108
  this._hideNavdrawer();
121
109
  }
@@ -144,7 +132,6 @@ var NavDrawer = function ($) {
144
132
  }
145
133
 
146
134
  this._isShown = true;
147
- $(document.body).addClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
148
135
 
149
136
  this._setEscapeEvent();
150
137
 
@@ -185,23 +172,12 @@ var NavDrawer = function ($) {
185
172
  return config;
186
173
  };
187
174
 
188
- _proto._getTransitionDuration = function _getTransitionDuration(duration) {
189
- if (window.innerWidth >= Breakpoints.DESKTOP) {
190
- return duration.DESKTOP;
191
- } else if (window.innerWidth >= Breakpoints.TABLET) {
192
- return duration.TABLET;
193
- }
194
-
195
- return duration.MOBILE;
196
- };
197
-
198
175
  _proto._hideNavdrawer = function _hideNavdrawer() {
199
176
  this._element.style.display = 'none';
200
177
 
201
178
  this._element.setAttribute('aria-hidden', true);
202
179
 
203
180
  this._isTransitioning = false;
204
- $(document.body).removeClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
205
181
  $(this._element).trigger(Event.HIDDEN);
206
182
  };
207
183
 
@@ -278,6 +254,7 @@ var NavDrawer = function ($) {
278
254
  Util.reflow(this._element);
279
255
  }
280
256
 
257
+ $(document.body).addClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
281
258
  $(this._element).addClass(ClassName.SHOW);
282
259
 
283
260
  this._enforceFocus();
@@ -294,7 +271,8 @@ var NavDrawer = function ($) {
294
271
  };
295
272
 
296
273
  if (supportsTransition) {
297
- $(this._content).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(this._getTransitionDuration(TransitionDurationEntering));
274
+ var transitionDuration = Util.getTransitionDurationFromElement(this._content);
275
+ $(this._content).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
298
276
  } else {
299
277
  transitionComplete();
300
278
  }
@@ -0,0 +1,228 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ /*
4
+ * Date picker plugin extends `pickadate.js` by Amsul
5
+ */
6
+ var PickDate = function ($) {
7
+ // constants >>>
8
+ var DATA_KEY = 'md.pickdate';
9
+ var NAME = 'pickdate';
10
+ var NO_CONFLICT = $.fn[NAME];
11
+ var Default = {
12
+ cancel: 'Cancel',
13
+ closeOnCancel: true,
14
+ closeOnSelect: false,
15
+ container: '',
16
+ containerHidden: '',
17
+ disable: [],
18
+ firstDay: 0,
19
+ format: 'd/m/yyyy',
20
+ formatSubmit: '',
21
+ hiddenName: false,
22
+ hiddenPrefix: '',
23
+ hiddenSuffix: '',
24
+ klass: {
25
+ // button
26
+ buttonClear: 'btn btn-outline-primary picker-button-clear',
27
+ buttonClose: 'btn btn-outline-primary picker-button-close',
28
+ buttonToday: 'btn btn-outline-primary picker-button-today',
29
+ // day
30
+ day: 'picker-day',
31
+ disabled: 'picker-day-disabled',
32
+ highlighted: 'picker-day-highlighted',
33
+ infocus: 'picker-day-infocus',
34
+ now: 'picker-day-today',
35
+ outfocus: 'picker-day-outfocus',
36
+ selected: 'picker-day-selected',
37
+ weekdays: 'picker-weekday',
38
+ // element
39
+ box: 'picker-box',
40
+ footer: 'picker-footer',
41
+ frame: 'picker-frame',
42
+ header: 'picker-header',
43
+ holder: 'picker-holder',
44
+ table: 'picker-table',
45
+ wrap: 'picker-wrap',
46
+ // input element
47
+ active: 'picker-input-active',
48
+ input: 'picker-input',
49
+ // month and year nav
50
+ month: 'picker-month',
51
+ navDisabled: 'picker-nav-disabled',
52
+ navNext: 'material-icons picker-nav-next',
53
+ navPrev: 'material-icons picker-nav-prev',
54
+ selectMonth: 'picker-select-month',
55
+ selectYear: 'picker-select-year',
56
+ year: 'picker-year',
57
+ // root picker
58
+ focused: 'picker-focused',
59
+ opened: 'picker-opened',
60
+ picker: 'picker'
61
+ },
62
+ labelMonthNext: 'Next month',
63
+ labelMonthPrev: 'Previous month',
64
+ labelMonthSelect: 'Select a month',
65
+ labelYearSelect: 'Select a year',
66
+ max: false,
67
+ min: false,
68
+ monthsFull: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
69
+ monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
70
+ ok: 'OK',
71
+ onClose: function onClose() {// Do nothing
72
+ },
73
+ onOpen: function onOpen() {// Do nothing
74
+ },
75
+ onRender: function onRender() {// Do nothing
76
+ },
77
+ onSet: function onSet() {// Do nothing
78
+ },
79
+ onStart: function onStart() {// Do nothing
80
+ },
81
+ onStop: function onStop() {// Do nothing
82
+ },
83
+ selectMonths: false,
84
+ selectYears: false,
85
+ today: '',
86
+ weekdaysFull: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
87
+ weekdaysShort: ['S', 'M', 'T', 'W', 'T', 'F', 'S']
88
+ };
89
+ var DefaultType = {
90
+ cancel: 'string',
91
+ closeOnCancel: 'boolean',
92
+ closeOnSelect: 'boolean',
93
+ container: 'string',
94
+ containerHidden: 'string',
95
+ disable: 'array',
96
+ firstDay: 'number',
97
+ format: 'string',
98
+ formatSubmit: 'string',
99
+ hiddenName: 'boolean',
100
+ hiddenPrefix: 'string',
101
+ hiddenSuffix: 'string',
102
+ klass: 'object',
103
+ labelMonthNext: 'string',
104
+ labelMonthPrev: 'string',
105
+ labelMonthSelect: 'string',
106
+ labelYearSelect: 'string',
107
+ max: 'boolean || date',
108
+ min: 'boolean || date',
109
+ monthsFull: 'array',
110
+ monthsShort: 'array',
111
+ ok: 'string',
112
+ onClose: 'function',
113
+ onOpen: 'function',
114
+ onRender: 'function',
115
+ onSet: 'function',
116
+ onStart: 'function',
117
+ onStop: 'function',
118
+ selectMonths: 'boolean',
119
+ selectYears: 'boolean || number',
120
+ today: 'string',
121
+ weekdaysFull: 'array',
122
+ weekdaysShort: 'array'
123
+ };
124
+
125
+ var PickDate =
126
+ /*#__PURE__*/
127
+ function () {
128
+ function PickDate(element, config) {
129
+ this._config = this._getConfig(config);
130
+ this._element = element;
131
+ }
132
+
133
+ var _proto = PickDate.prototype;
134
+
135
+ _proto.display = function display(datepickerApi, datepickerRoot, datepickerValue) {
136
+ $('.picker-date-display', datepickerRoot).remove();
137
+ $('.picker-wrap', datepickerRoot).prepend("<div class=\"picker-date-display\"><div class=\"picker-date-display-top\"><span class=\"picker-year-display\">" + datepickerApi.get(datepickerValue, 'yyyy') + "</span></div><div class=\"picker-date-display-bottom\"><span class=\"picker-weekday-display\">" + datepickerApi.get(datepickerValue, 'dddd') + "</span><span class=\"picker-day-display\">" + datepickerApi.get(datepickerValue, 'd') + "</span><span class=\"picker-month-display\">" + datepickerApi.get(datepickerValue, 'mmm') + "</span></div></div>");
138
+ };
139
+
140
+ _proto.show = function show() {
141
+ var _this = this;
142
+
143
+ $(this._element).pickadate({
144
+ clear: this._config.cancel,
145
+ close: this._config.ok,
146
+ closeOnClear: this._config.closeOnCancel,
147
+ closeOnSelect: this._config.closeOnSelect,
148
+ container: this._config.container,
149
+ containerHidden: this._config.containerHidden,
150
+ disable: this._config.disable,
151
+ firstDay: this._config.firstDay,
152
+ format: this._config.format,
153
+ formatSubmit: this._config.formatSubmit,
154
+ klass: this._config.klass,
155
+ hiddenName: this._config.hiddenName,
156
+ hiddenPrefix: this._config.hiddenPrefix,
157
+ hiddenSuffix: this._config.hiddenSuffix,
158
+ labelMonthNext: this._config.labelMonthNext,
159
+ labelMonthPrev: this._config.labelMonthPrev,
160
+ labelMonthSelect: this._config.labelMonthSelect,
161
+ labelYearSelect: this._config.labelYearSelect,
162
+ max: this._config.max,
163
+ min: this._config.min,
164
+ monthsFull: this._config.monthsFull,
165
+ monthsShort: this._config.monthsShort,
166
+ onClose: this._config.onClose,
167
+ onOpen: this._config.onOpen,
168
+ onRender: this._config.onRender,
169
+ onSet: this._config.onSet,
170
+ onStart: this._config.onStart,
171
+ onStop: this._config.onStop,
172
+ selectMonths: this._config.selectMonths,
173
+ selectYears: this._config.selectYears,
174
+ today: this._config.today,
175
+ weekdaysFull: this._config.weekdaysFull,
176
+ weekdaysShort: this._config.weekdaysShort
177
+ });
178
+ var datepickerApi = $(this._element).pickadate('picker');
179
+ var datepickerRoot = datepickerApi.$root;
180
+ datepickerApi.on({
181
+ close: function close() {
182
+ $(document.activeElement).blur();
183
+ },
184
+ open: function open() {
185
+ if (!$('.picker__date-display', datepickerRoot).length) {
186
+ _this.display(datepickerApi, datepickerRoot, 'highlight');
187
+ }
188
+ },
189
+ set: function set() {
190
+ if (datepickerApi.get('select') !== null) {
191
+ _this.display(datepickerApi, datepickerRoot, 'select');
192
+ }
193
+ }
194
+ });
195
+ };
196
+
197
+ _proto._getConfig = function _getConfig(config) {
198
+ config = _extends({}, Default, config);
199
+ Util.typeCheckConfig(NAME, config, DefaultType);
200
+ return config;
201
+ };
202
+
203
+ PickDate._jQueryInterface = function _jQueryInterface(config) {
204
+ return this.each(function () {
205
+ var _config = _extends({}, PickDate.Default, $(this).data(), typeof config === 'object' && config);
206
+
207
+ var data = $(this).data(DATA_KEY);
208
+
209
+ if (!data) {
210
+ data = new PickDate(this, _config);
211
+ $(this).data(DATA_KEY, data);
212
+ }
213
+
214
+ data.show();
215
+ });
216
+ };
217
+
218
+ return PickDate;
219
+ }();
220
+
221
+ $.fn[NAME] = PickDate._jQueryInterface;
222
+ $.fn[NAME].Constructor = PickDate;
223
+
224
+ $.fn[NAME].noConflict = function () {
225
+ $.fn[NAME] = NO_CONFLICT;
226
+ return PickDate._jQueryInterface;
227
+ };
228
+ }($);
@@ -1,6 +1,6 @@
1
1
  /*
2
- * selection control focus
3
- * chrome persists the focus style on checkboxes/radio buttons after clicking
2
+ * Selection control plugin fixes the focus state problem with
3
+ * Chrome persisting focus state on checkboxes/radio buttons after clicking
4
4
  */
5
5
  var SelectionControlFocus = function ($) {
6
6
  // constants >>>
@@ -1,16 +1,12 @@
1
1
  /*
2
2
  * Tab indicator animation
3
- * Requires Bootstrap's (v4.0.0) `tab.js`
3
+ * Requires Bootstrap's (v4.1.0) `tab.js`
4
4
  */
5
5
  var TabSwitch = function ($) {
6
6
  // constants >>>
7
7
  var DATA_KEY = 'md.tabswitch';
8
8
  var NAME = 'tabswitch';
9
9
  var NO_CONFLICT = $.fn[NAME];
10
- var Breakpoints = {
11
- DESKTOP: 992,
12
- TABLET: 576
13
- };
14
10
  var ClassName = {
15
11
  ANIMATE: 'animate',
16
12
  DROPDOWN_ITEM: 'dropdown-item',
@@ -25,12 +21,7 @@ var TabSwitch = function ($) {
25
21
  var Selector = {
26
22
  DATA_TOGGLE: '.nav-tabs [data-toggle="tab"]',
27
23
  DROPDOWN: '.dropdown',
28
- NAV: '.nav-tabs'
29
- };
30
- var TransitionDuration = {
31
- DESKTOP: 200,
32
- MOBILE: 300,
33
- TABLET: 390 // <<< constants
24
+ NAV: '.nav-tabs' // <<< constants
34
25
 
35
26
  };
36
27
 
@@ -84,14 +75,7 @@ var TabSwitch = function ($) {
84
75
  return;
85
76
  }
86
77
 
87
- var transitionDuration = TransitionDuration.MOBILE;
88
-
89
- if (window.innerWidth >= Breakpoints.DESKTOP) {
90
- transitionDuration = TransitionDuration.DESKTOP;
91
- } else if (window.innerWidth >= Breakpoints.TABLET) {
92
- transitionDuration = TransitionDuration.TABLET;
93
- }
94
-
78
+ var transitionDuration = Util.getTransitionDurationFromElement(this._navindicator);
95
79
  $(this._navindicator).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
96
80
  };
97
81
 
@@ -99,7 +83,7 @@ var TabSwitch = function ($) {
99
83
  this._navindicator = document.createElement('div');
100
84
  $(this._navindicator).addClass(ClassName.INDICATOR).appendTo(this._nav);
101
85
 
102
- if (relatedTarget !== 'undefined') {
86
+ if (typeof relatedTarget !== 'undefined') {
103
87
  if ($(relatedTarget).hasClass(ClassName.DROPDOWN_ITEM)) {
104
88
  relatedTarget = $(relatedTarget).closest(Selector.DROPDOWN);
105
89
  }