mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-22 14:01:52 +00:00
* Improve sidenav performance and expansion list performance * Init dialog * Add initial transition * Add backdrop to md-menu * Create dialog opening from and closing to * Add example os basic and opening from and to * Add todo * Create alias for root element * Fix dialog position * Improve transitions * Fix rules * Fix dialog position on open * Improve docs transitions * Create styles for actions and content * Create confirm dialog preset * Create alert dialog preset * Create prompt dialog preset * Add example with HTML * Improve close transition * Create new documentation template for components * Improve template for mobile * Improve toolbar behaviour * Format code-block and apply clipboard.js * Move clipboard to devDependencies * Show toast after copy * Add function to toggle sidenav and add page title * create avatar documentation with the new template * Improve themes and codes * Remove hover * fix copied toast position * add classes tab * create bottom-bar documentation with the new template * improve bottom bar docs * create button documentation with the new template * create button toggle documentation with the new template * Fix backdrop styles * Fix image color names * create card documentation with the new template * Update debug-lib.js (#106) Fixes webpack missing module error when loading scss * create checkboxes documentation with the new template * Add more alignment options (#109) * Create offset options - md-offset-y and md-offset-x * Add option to align the menu to the trigger * Create better examples * fix bottom-right position * create dialog documentation with the new template * create icon documentation with the new template * fix typo * create input documentation with the new template * create tooltip documentation with the new template * create whiteframe documentation with the new template * Fix unregisterMouseEvent not accepting the element as parameter (#118) * create radio documentation with the new template * create ripple documentation with the new template * create switch documentation with the new template * create subheader documentation with the new template * fix text * improvements over menu * create menu documentation with the new template * create sidenav documentation with the new template * create toolbar documentation with the new template * improve visibility of some code-blocks * create select documentation with the new template * create typography documentation with the new template * create changelog page with the new template * create about page with the new template * create error page with the new template * create introduction page with the new template * create getting started page with the new template * create getting started page with the new template * add codepen examples * create list documentation with the new template * improve docs * add old releases in a folder * optimize build time * remove unused code and rename components * generate old versions * redirect to old documentation versions * [build] 0.4.0 * [build] 0.4.0 * restore dist * get current version from url * [build] 0.4.0 * restore old docs * add correct branch to release script * create table documentation with the new template * add a better explanation of list classes * improve docs * create table documentation with the new template * add code example for tabs * remove directive example of ripple * fix code example of typograph items * general fixes and code cleanup * create themes documentation * start the creation of button "edit on codepen" * group theme text and fix height of codepen example * start creation of tabs * recreate tabs * fix shadow transition inside menus (#141 #129) * add href support for mdBottomBar (#142 #121) * fix table row not watching item #116 #113 (#143) * Improvement/md tooltip (#144) * fix stucked tooltips #103 * remove example * update website url * update libs * fix vue version reference * [build] 0.4.0
1 line
No EOL
4.3 KiB
JavaScript
1 line
No EOL
4.3 KiB
JavaScript
!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(c){if(d[c])return d[c].exports;var i=d[c]={exports:{},id:c,loaded:!1};return e[c].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var d={};return t.m=e,t.c=d,t.p="/",t(0)}({0:function(e,t,d){e.exports=d(23)},23:function(e,t,d){"use strict";function c(e){return e&&e.__esModule?e:{default:e}}function i(e){e.component("md-switch",e.extend(m.default)),e.material.styles.push(r.default)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=d(165),m=c(s),n=d(119),r=c(n);e.exports=t.default},65:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=75,c="-1px";t.default={props:{name:String,value:Boolean,id:String,disabled:Boolean,type:{type:String,default:"button"}},data:function(){return{leftPos:c,checked:this.value}},computed:{classes:function(){return{"md-checked":Boolean(this.value),"md-disabled":this.disabled}},styles:function(){return{transform:"translate3D("+this.leftPos+", -50%, 0)"}}},watch:{checked:function(){this.leftPos=this.value?d+"%":c}},methods:{toggleSwitch:function(){this.disabled||(this.checked=!this.checked,this.$emit("change",this.checked),this.$emit("input",this.checked))}},mounted:function(){this.leftPos=this.value?d+"%":c}},e.exports=t.default},95:function(e,t){},119:function(e,t){e.exports=".THEME_NAME .md-switch.md-checked .md-switch-container,.THEME_NAME.md-switch.md-checked .md-switch-container{background-color:ACCENT-COLOR-500-0.5}.THEME_NAME .md-switch.md-checked .md-switch-thumb,.THEME_NAME.md-switch.md-checked .md-switch-thumb{background-color:ACCENT-COLOR}.THEME_NAME .md-switch.md-checked .md-ink-ripple,.THEME_NAME.md-switch.md-checked .md-ink-ripple{color:ACCENT-COLOR}.THEME_NAME .md-switch.md-checked .md-ripple,.THEME_NAME.md-switch.md-checked .md-ripple{opacity:.38}.THEME_NAME .md-switch.md-checked.md-primary .md-switch-container,.THEME_NAME.md-switch.md-checked.md-primary .md-switch-container{background-color:PRIMARY-COLOR-500-0.5}.THEME_NAME .md-switch.md-checked.md-primary .md-switch-thumb,.THEME_NAME.md-switch.md-checked.md-primary .md-switch-thumb{background-color:PRIMARY-COLOR}.THEME_NAME .md-switch.md-checked.md-primary .md-ink-ripple,.THEME_NAME.md-switch.md-checked.md-primary .md-ink-ripple{color:PRIMARY-COLOR}.THEME_NAME .md-switch.md-checked.md-warn .md-switch-container,.THEME_NAME.md-switch.md-checked.md-warn .md-switch-container{background-color:WARN-COLOR-500-0.5}.THEME_NAME .md-switch.md-checked.md-warn .md-switch-thumb,.THEME_NAME.md-switch.md-checked.md-warn .md-switch-thumb{background-color:WARN-COLOR}.THEME_NAME .md-switch.md-checked.md-warn .md-ink-ripple,.THEME_NAME.md-switch.md-checked.md-warn .md-ink-ripple{color:WARN-COLOR}.THEME_NAME .md-switch.md-disabled .md-switch-container,.THEME_NAME .md-switch.md-disabled.md-checked .md-switch-container,.THEME_NAME.md-switch.md-disabled .md-switch-container,.THEME_NAME.md-switch.md-disabled.md-checked .md-switch-container{background-color:rgba(0,0,0,0.12)}.THEME_NAME .md-switch.md-disabled .md-switch-thumb,.THEME_NAME .md-switch.md-disabled.md-checked .md-switch-thumb,.THEME_NAME.md-switch.md-disabled .md-switch-thumb,.THEME_NAME.md-switch.md-disabled.md-checked .md-switch-thumb{background-color:#bdbdbd}\n"},165:function(e,t,d){var c,i;d(95),c=d(65);var s=d(216);i=c=c||{},"object"!=typeof c.default&&"function"!=typeof c.default||(i=c=c.default),"function"==typeof i&&(i=i.options),i.render=s.render,i.staticRenderFns=s.staticRenderFns,e.exports=c},216:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return t("div",{staticClass:"md-switch",class:e.classes},[t("div",{staticClass:"md-switch-container",on:{click:e.toggleSwitch}},[t("div",{directives:[{name:"md-ink-ripple",rawName:"v-md-ink-ripple",value:e.disabled,expression:"disabled"}],staticClass:"md-switch-thumb",style:e.styles},[t("input",{attrs:{type:"checkbox",name:e.name,id:e.id,disabled:e.disabled},domProps:{value:e.value}})," ",t("button",{staticClass:"md-switch-holder",attrs:{type:e.type}})])])," ",e.$slots.default?t("label",{staticClass:"md-switch-label",attrs:{for:e.id||e.name}},[e._t("default")]):e._e()])},staticRenderFns:[]}}})}); |