material-components-vue
Version:
Material Design components for Vue.js
1 lines • 4.87 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 function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=67)}({1:function(t,e,n){"use strict";var r={inheritAttrs:!1},i=["primary","secondary","background","surface","on-primary","on-secondary","on-surface","primary-bg","secondary-bg","text-primary-on-light","text-secondary-on-light","text-hint-on-light","text-disabled-on-light","text-icon-on-light","text-primary-on-dark","text-secondary-on-dark","text-hint-on-dark","text-disabled-on-dark","text-icon-on-dark"],o={props:{theming:{type:String,default:""}},mounted:function(){-1<i.indexOf(this.theming)&&this.$el.classList.add("mdc-theme--"+this.theming)}};n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o})},39:function(t,e,n){},4:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,l){var s,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(s=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=s):i&&(s=l?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(u.functional){u._injectStyles=s;var d=u.render;u.render=function(t,e){return s.call(e),d(t,e)}}else{var c=u.beforeCreate;u.beforeCreate=c?[].concat(c,s):[s]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},67:function(t,e,n){"use strict";n.r(e);var r=n(1),i={mixins:[r.a,r.b],props:{fixedColumnWidth:{type:Boolean,default:!1},align:{type:String,validator:function(t){return-1<["left","right",""].indexOf(t)},default:""}},computed:{classes:function(){return{"mdc-layout-grid--fixed-column-width":this.fixedColumnWidth,"mdc-layout-grid--align-left":"left"===this.align,"mdc-layout-grid--align-right":"right"===this.align}}}},o=n(4),a=Object(o.a)(i,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mdc-layout-grid",class:this.classes},[this._t("default")],2)},[],!1,null,null,null).exports,l={mixins:[r.a,r.b],props:{span:{type:Number,validator:function(t){return 0<=t&&t<=12},default:0},spanDesktop:{type:Number,validator:function(t){return 0<=t&&t<=12},default:0},spanTablet:{type:Number,validator:function(t){return 0<=t&&t<=12},default:0},spanPhone:{type:Number,validator:function(t){return 0<=t&&t<=12},default:0},order:{type:Number,validator:function(t){return 0<=t&&t<=12},default:0},align:{type:String,validator:function(t){return-1<["top","middle","bottom",""].indexOf(t)},default:""}},computed:{classes:function(){var t={};return t["mdc-layout-grid__cell--span-"+this.span]=0<this.span,t["mdc-layout-grid__cell--span-"+this.spanDesktop+"-desktop"]=0<this.spanDesktop,t["mdc-layout-grid__cell--span-"+this.spanTablet+"-tablet"]=0<this.spanTablet,t["mdc-layout-grid__cell--span-"+this.spanPhone+"-phone"]=0<this.spanPhone,t["mdc-layout-grid__cell--align-"+this.align]=""!==this.align,t["mdc-layout-grid__cell--order-"+this.order]=0<this.order,t}}},s=Object(o.a)(l,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mdc-layout-grid__cell",class:this.classes},[this._t("default")],2)},[],!1,null,null,null).exports,u={mixins:[r.a,r.b]},d=Object(o.a)(u,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mdc-layout-grid__inner"},[this._t("default")],2)},[],!1,null,null,null).exports,c=(n(39),n(7)),f={install:function(t){t.component("m-layout-grid",a),t.component("m-layout-grid-cell",s),t.component("m-layout-grid-inner",d)}};e.default=f,Object(c.a)(f)},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})}})});