material-components-vue
Version:
Material Design components for Vue.js
1 lines • 4.86 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={2: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}))},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}))},40:function(t,e,n){},67:function(t,e,n){"use strict";n.r(e);var r=n(2),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(40),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}))}},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 i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));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=67);function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var e,n}));