vue-material/dist/components/mdSubheader/index.js

7 lines
59 KiB
JavaScript
Raw Normal View History

2016-12-16 06:01:17 +00:00
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueMaterial=t():e.VueMaterial=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}({0:function(e,t,n){e.exports=n(26)},1:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=r(o);t.default={props:{mdTheme:String},data:function(){return{closestThemedParent:!1}},methods:{getClosestThemedParent:function(e){return!(!e||!e.$el||0===e._uid)&&(e.mdTheme||e.mdName?e:this.getClosestThemedParent(e.$parent))}},computed:{themeClass:function(){if(this.mdTheme)return"md-theme-"+this.mdTheme;var e=this.closestThemedParent.mdTheme;return e||(e=this.closestThemedParent.mdName),"md-theme-"+(e||i.default.material.currentTheme)}},mounted:function(){this.closestThemedParent=this.getClosestThemedParent(this.$parent),i.default.material.currentTheme||i.default.material.setCurrentTheme("default")}},e.exports=t.default},2:function(e,t,n){(function(t){/*!
* Vue.js v2.1.6
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
"use strict";function n(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function r(e){var t=parseFloat(e,10);return t||0===t?t:e}function o(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}function i(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function a(e,t){return yn.call(e,t)}function s(e){return"string"==typeof e||"number"==typeof e}function u(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}function c(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function l(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function d(e,t){for(var n in t)e[n]=t[n];return e}function f(e){return null!==e&&"object"==typeof e}function p(e){return xn.call(e)===$n}function v(e){for(var t={},n=0;n<e.length;n++)e[n]&&d(t,e[n]);return t}function h(){}function m(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}function y(e,t){return e==t||!(!f(e)||!f(t))&&JSON.stringify(e)===JSON.stringify(t)}function g(e,t){for(var n=0;n<e.length;n++)if(y(e[n],t))return n;return-1}function _(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function b(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function w(e){if(!Sn.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}function C(e){return/native code/.test(e.toString())}function x(e){qn.target&&Wn.push(qn.target),qn.target=e}function $(){qn.target=Wn.pop()}function A(e,t){e.__proto__=t}function k(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];b(e,i,t[i])}}function O(e){if(f(e)){var t;return a(e,"__ob__")&&e.__ob__ instanceof Gn?t=e.__ob__:Zn.shouldConvert&&!In()&&(Array.isArray(e)||p(e))&&Object.isExtensible(e)&&!e._isVue&&(t=new Gn(e)),t}}function S(e,t,n,r){var o=new qn,i=Object.getOwnPropertyDescriptor(e,t);if(!i||i.configurable!==!1){var a=i&&i.get,s=i&&i.set,u=O(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):n;return qn.target&&(o.depend(),u&&u.dep.depend(),Array.isArray(t)&&j(t)),t},set:function(t){var i=a?a.call(e):n;t===i||t!==t&&i!==i||(r&&r(),s?s.call(e,t):n=t,u=O(t),o.notify())}})}}function T(e,t,n){if(Array.isArray(e))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(a(e,t))return void(e[t]=n);var r=e.__ob__;return e._isVue||r&&r.vmCount?void Fn("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."):r?(S(r.value,t,n),r.dep.notify(),n):void(e[t]=n)}function E(e,t){var n=e.__ob__;return e._isVue||n&&n.vmCount?void Fn("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):void(a(e,t)&&(delete e[t],n&&n.dep.notify()))}function j(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&j(t)}function P(e,t){if(!t)return e;for(var n,r,o,i=Object.keys(t),s=0;s<i.length;s++)n=i[s],r=e[n],o=t[n],a(e,n)?p(r)&&p(o)&&P(r,o):T(e,n,o);return e}function M(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}function D(e,t){var n=Object.create(e||null);return t?d(n,t):n}function N(e){for(var t in e.components){var n=t.toLowerCase();(mn(n)||On.isReservedTag(n))&&Fn("Do not use built-in or reserved HTML elements as component id: "+t)}}function L(e){var t=e.props;if(t){var n,r,o,i={};if(Array.isArray(t))for(n=t.length;n--;)r=t[n],"string"==typeof r?(o=_n(r),i[o]={type:null}):Fn("props must be strings when using array syntax.");else if(p(t))for(var a in t)r=t[a],o=_n(a),i[o]=p(r)?r:{type:r};e.props=i}}function I(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}function R(e,t,n){function r(r){var o=Qn[r]||er;l[r]=o(e[r],t[r],n,r)}N(t),L(t),I(t);var o=t.extends;if(o&&(e="function"==typeof o?R(e,o.options,n):R(e,o,n)),t.mixins)for(var i=0,s=t.mixins
o.modifiers||(o.modifiers=Jr),n[At(o)]=o,o.def=U(t.$options,"directives",o.name,!0);return n}function At(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function kt(e,t,n,r){var o=e.def&&e.def[t];o&&o(n.elm,e,n,r)}function Ot(e,t){if(e.data.attrs||t.data.attrs){var n,r,o,i=t.elm,a=e.data.attrs||{},s=t.data.attrs||{};s.__ob__&&(s=t.data.attrs=d({},s));for(n in s)r=s[n],o=a[n],o!==r&&St(i,n,r);Mn&&s.value!==a.value&&St(i,"value",s.value);for(n in a)null==s[n]&&(Nr(n)?i.removeAttributeNS(Dr,Lr(n)):Pr(n)||i.removeAttribute(n))}}function St(e,t,n){Mr(t)?Ir(n)?e.removeAttribute(t):e.setAttribute(t,t):Pr(t)?e.setAttribute(t,Ir(n)||"false"===n?"false":"true"):Nr(t)?Ir(n)?e.removeAttributeNS(Dr,Lr(t)):e.setAttributeNS(Dr,t,n):Ir(n)?e.removeAttribute(t):e.setAttribute(t,n)}function Tt(e,t){var n=t.elm,r=t.data,o=e.data;if(r.staticClass||r.class||o&&(o.staticClass||o.class)){var i=Ze(t),a=n._transitionClasses;a&&(i=Xe(i,et(a))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}}function Et(e,t,n,r){if(n){var o=t;t=function(n){jt(e,t,r),1===arguments.length?o(n):o.apply(null,arguments)}}Sr.addEventListener(e,t,r)}function jt(e,t,n){Sr.removeEventListener(e,t,n)}function Pt(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.on||{};Sr=t.elm,ke(n,r,Et,jt,t.context)}}function Mt(e,t){if(e.data.domProps||t.data.domProps){var n,r,o=t.elm,i=e.data.domProps||{},a=t.data.domProps||{};a.__ob__&&(a=t.data.domProps=d({},a));for(n in i)null==a[n]&&(o[n]="");for(n in a)if(r=a[n],"textContent"!==n&&"innerHTML"!==n||(t.children&&(t.children.length=0),r!==i[n]))if("value"===n){o._value=r;var s=null==r?"":String(r);!o.composing&&(document.activeElement!==o&&o.value!==s||Dt(t,s))&&(o.value=s)}else o[n]=r}}function Dt(e,t){var n=e.elm.value,o=e.elm._vModifiers;return o&&o.number||"number"===e.elm.type?r(n)!==r(t):o&&o.trim?n.trim()!==t.trim():n!==t}function Nt(e){var t=Lt(e.style);return e.staticStyle?d(e.staticStyle,t):t}function Lt(e){return Array.isArray(e)?v(e):"string"==typeof e?eo(e):e}function It(e,t){var n,r={};if(t)for(var o=e;o.child;)o=o.child._vnode,o.data&&(n=Nt(o.data))&&d(r,n);(n=Nt(e.data))&&d(r,n);for(var i=e;i=i.parent;)i.data&&(n=Nt(i.data))&&d(r,n);return r}function Rt(e,t){var n=t.data,r=e.data;if(n.staticStyle||n.style||r.staticStyle||r.style){var o,i,a=t.elm,s=e.data.staticStyle,u=e.data.style||{},c=s||u,l=Lt(t.data.style)||{};t.data.style=l.__ob__?d({},l):l;var f=It(t,!0);for(i in c)null==f[i]&&ro(a,i,"");for(i in f)o=f[i],o!==c[i]&&ro(a,i,null==o?"":o)}}function Ut(e,t){if(t&&t.trim())if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+e.getAttribute("class")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Vt(e,t){if(t&&t.trim())if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t);else{for(var n=" "+e.getAttribute("class")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");e.setAttribute("class",n.trim())}}function Ft(e){ho(function(){ho(e)})}function Bt(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(t),Ut(e,t)}function Ht(e,t){e._transitionClasses&&i(e._transitionClasses,t),Vt(e,t)}function zt(e,t,n){var r=qt(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===uo?fo:vo,u=0,c=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++u>=a&&c()};setTimeout(function(){u<a&&c()},i+1),e.addEventListener(s,l)}function qt(e,t){var n,r=window.getComputedStyle(e),o=r[lo+"Delay"].split(", "),i=r[lo+"Duration"].split(", "),a=Wt(o,i),s=r[po+"Delay"].split(", "),u=r[po+"Duration"].split(", "),c=Wt(s,u),l=0,d=0;t===uo?a>0&&(n=uo,l=a,d=i.length):t===co?c>0&&(n=co,l=c,d=u.length):(l=Math.max(a,c),n=l>0?a>c?uo:co:null,d=n?n===uo?i.length:u.length:0);var f=n===uo&&mo.test(r[lo+"Property"]);return{type:n,timeout:l,propCount:d,hasTransform:f}}function Wt(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return Kt(t)+Kt(e[n])}))}function Kt(e){return 1e3