material-components-vue
Version:
Material Design components for Vue.js
1 lines • 4.51 kB
JavaScript
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return n={},t.m=e={4:function(t,e,n){"use strict";function r(t,e,n,r,o,i,s,a){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=u):o&&(u=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},7:function(t,e,n){"use strict";function r(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)}n.d(e,"a",(function(){return r}))},70:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(e);var i={props:{column:{type:Number,validator:function(t){return 0<=t&&t<=12},default:0},masonry:{type:Boolean,default:!1},textProtection:{type:Boolean,default:!1}},computed:{classes:function(){var t={};0<this.column&&!this.masonry&&(t["image-list-standard-"+this.column]=!0);var e={};0<this.column&&this.masonry&&(e["image-list-masonry-"+this.column]=!0,e["mdc-image-list--masonry"]=!0);var n={};return n["mdc-image-list--with-text-protection"]=this.textProtection,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(n,!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{},e,{},n)}}},s=n(4),a=Object(s.a)(i,(function(){var t=this.$createElement;return(this._self._c||t)("ul",{staticClass:"mdc-image-list",class:this.classes},[this._t("default")],2)}),[],!1,null,null,null).exports,u={props:{adjustAspectRatio:{type:Boolean,default:!0}},data:function(){return{slotObserver:void 0}},mounted:function(){var t=this;this.updateSlot(),this.slotObserver=new MutationObserver((function(){return t.updateSlot()})),this.slotObserver.observe(this.$el,{childList:!0,subtree:!0})},beforeDestroy:function(){this.slotObserver.disconnect()},methods:{updateSlot:function(){this.$slots.image&&this.$slots.image.map((function(t){t.elm.classList.add("mdc-image-list__image")}))}}},c=Object(s.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"mdc-image-list__item"},[t.adjustAspectRatio?n("div",{staticClass:"mdc-image-list__image-aspect-container"},[t._t("image")],2):t._t("image"),t._v(" "),t.$slots.default?n("div",{staticClass:"mdc-image-list__supporting"},[n("span",{staticClass:"mdc-image-list__label"},[t._t("default")],2)]):t._e()],2)}),[],!1,null,null,null).exports,l=n(7),f={install:function(t){t.component("m-image-list",a),t.component("m-image-list-item",c)}};e.default=f,Object(l.a)(f)}},t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=70);function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e,n}));