vue-material/dist/components/mdList/index.js
2016-12-05 01:53:41 -02:00

1 line
No EOL
5.7 KiB
JavaScript

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VueMaterial=e():t.VueMaterial=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var d=i[n]={exports:{},id:n,loaded:!1};return t[n].call(d.exports,d,d.exports,e),d.loaded=!0,d.exports}var i={};return e.m=t,e.c=i,e.p="/",e(0)}({0:function(t,e,i){t.exports=i(17)},17:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function d(t){t.component("md-list",t.extend(s.default)),t.component("md-list-item",t.extend(m.default)),t.component("md-list-expand",t.extend(a.default)),t.material.styles.push(u.default)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var o=i(154),s=n(o),r=i(156),m=n(r),l=i(155),a=n(l),c=i(113),u=n(c);t.exports=e.default},55:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{height:0}},methods:{calculatePadding:function(){this.height=-this.$el.offsetHeight+"px"}},mounted:function(){this.calculatePadding()}},t.exports=e.default},56:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{href:String,target:String,disabled:Boolean},render:function(t){var e=this,i="md-button md-list-item-container",n="md-list-item-holder",d=this.$slots.default,o=d[0].componentOptions,s=void 0,r=void 0,m={staticClass:"md-list-item",on:{click:function(){e.$emit("click")}}},l=function(e){return t("div",{staticClass:n},e)},a=function(){return d[0].data.staticClass=i+" "+n,d[0].data.directives=[{name:"md-ink-ripple"}],t("li",m,d)},c=function(){d.some(function(t,e){if(t.componentOptions&&"md-list-expand"===t.componentOptions.tag)return s=t,r=e,!0})},u=function(){return t("md-icon",{staticClass:"md-list-expand-indicator"},"keyboard_arrow_down")},f=function(t){t.$children.some(function(t){t.$el.classList.contains("md-list-expand")&&t.calculatePadding()})},E=function(t){var e=void 0;t.$parent.$children.some(function(t){var i=t.$el.classList;if(i.contains("md-list-item-expand")&&i.contains("md-active"))return e=t,i.remove("md-active"),f(t),!0}),e&&t.$el===e.$el||t.$el.classList.add("md-active")},p=function(){return d.splice(r,1),d.push(u()),t("button",{staticClass:i,on:{click:function(){E(e),e.$emit("click")}},directives:[{name:"md-ink-ripple"}]},[l(d)])},M=function(){return m.staticClass+=" md-list-item-expand",t("li",m,[p(),s])};if(o&&"router-link"===o.tag)return a();if(c(),s)return M();var A=t("md-button",{staticClass:i,attrs:{target:this.target,href:this.href,disabled:this.disabled}},[l(d)]);return this.target&&(A.data.attrs.rel="noopener"),t("li",m,[A])}},t.exports=e.default},89:function(t,e){},113:function(t,e){t.exports=".THEME_NAME .md-list,.THEME_NAME.md-list{background-color:BACKGROUND-COLOR-A100;color:BACKGROUND-CONTRAST}.THEME_NAME .md-list.md-transparent,.THEME_NAME.md-list.md-transparent{background-color:transparent;color:inherit}.THEME_NAME .md-list .md-list-item .router-link-active.md-list-item-container,.THEME_NAME.md-list .md-list-item .router-link-active.md-list-item-container{color:PRIMARY-COLOR}.THEME_NAME .md-list .md-list-item .router-link-active.md-list-item-container>.md-icon,.THEME_NAME.md-list .md-list-item .router-link-active.md-list-item-container>.md-icon{color:PRIMARY-COLOR}.THEME_NAME .md-list .md-list-item.md-primary .md-list-item-container,.THEME_NAME.md-list .md-list-item.md-primary .md-list-item-container{color:PRIMARY-COLOR}.THEME_NAME .md-list .md-list-item.md-primary .md-list-item-container>.md-icon,.THEME_NAME.md-list .md-list-item.md-primary .md-list-item-container>.md-icon{color:PRIMARY-COLOR}.THEME_NAME .md-list .md-list-item.md-accent .md-list-item-container,.THEME_NAME.md-list .md-list-item.md-accent .md-list-item-container{color:ACCENT-COLOR}.THEME_NAME .md-list .md-list-item.md-accent .md-list-item-container>.md-icon,.THEME_NAME.md-list .md-list-item.md-accent .md-list-item-container>.md-icon{color:ACCENT-COLOR}.THEME_NAME .md-list .md-list-item.md-warn .md-list-item-container,.THEME_NAME.md-list .md-list-item.md-warn .md-list-item-container{color:WARN-COLOR}.THEME_NAME .md-list .md-list-item.md-warn .md-list-item-container>.md-icon,.THEME_NAME.md-list .md-list-item.md-warn .md-list-item-container>.md-icon{color:WARN-COLOR}.THEME_NAME .md-list .md-list-item-expand .md-list-item-container,.THEME_NAME.md-list .md-list-item-expand .md-list-item-container{background-color:BACKGROUND-COLOR-A100}.THEME_NAME .md-list .md-list-item-expand .md-list-item-container:hover,.THEME_NAME .md-list .md-list-item-expand .md-list-item-container:focus,.THEME_NAME.md-list .md-list-item-expand .md-list-item-container:hover,.THEME_NAME.md-list .md-list-item-expand .md-list-item-container:focus{background-color:rgba(153,153,153,0.2)}\n"},154:function(t,e,i){var n,d;i(89);var o=i(200);d=n=n||{},"object"!=typeof n.default&&"function"!=typeof n.default||(d=n=n.default),"function"==typeof d&&(d=d.options),d.render=o.render,d.staticRenderFns=o.staticRenderFns,t.exports=n},155:function(t,e,i){var n,d;n=i(55);var o=i(188);d=n=n||{},"object"!=typeof n.default&&"function"!=typeof n.default||(d=n=n.default),"function"==typeof d&&(d=d.options),d.render=o.render,d.staticRenderFns=o.staticRenderFns,t.exports=n},156:function(t,e,i){var n,d;n=i(56),d=n=n||{},"object"!=typeof n.default&&"function"!=typeof n.default||(d=n=n.default),"function"==typeof d&&(d=d.options),t.exports=n},188:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return e("div",{staticClass:"md-list-expand",style:{"margin-bottom":t.height}},[t._t("default")])},staticRenderFns:[]}},200:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return e("ul",{staticClass:"md-list"},[t._t("default")])},staticRenderFns:[]}}})});