2016-11-21 03:39:30 +00:00
( function webpackUniversalModuleDefinition ( root , factory ) {
if ( typeof exports === 'object' && typeof module === 'object' )
module . exports = factory ( ) ;
else if ( typeof define === 'function' && define . amd )
define ( [ ] , factory ) ;
else if ( typeof exports === 'object' )
exports [ "VueMaterial" ] = factory ( ) ;
else
root [ "VueMaterial" ] = factory ( ) ;
} ) ( this , function ( ) {
return /******/ ( function ( modules ) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = { } ;
/******/
/******/ // The require function
/******/ function _ _webpack _require _ _ ( moduleId ) {
/******/
/******/ // Check if module is in cache
/******/ if ( installedModules [ moduleId ] )
/******/ return installedModules [ moduleId ] . exports ;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules [ moduleId ] = {
/******/ exports : { } ,
/******/ id : moduleId ,
/******/ loaded : false
/******/ } ;
/******/
/******/ // Execute the module function
/******/ modules [ moduleId ] . call ( module . exports , module , module . exports , _ _webpack _require _ _ ) ;
/******/
/******/ // Flag the module as loaded
/******/ module . loaded = true ;
/******/
/******/ // Return the exports of the module
/******/ return module . exports ;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ _ _webpack _require _ _ . m = modules ;
/******/
/******/ // expose the module cache
/******/ _ _webpack _require _ _ . c = installedModules ;
/******/
/******/ // __webpack_public_path__
/******/ _ _webpack _require _ _ . p = "/" ;
/******/
/******/ // Load entry module and return exports
/******/ return _ _webpack _require _ _ ( 0 ) ;
/******/ } )
/************************************************************************/
2016-12-16 06:01:17 +00:00
/******/ ( [
/* 0 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
2016-12-16 17:53:52 +00:00
module . exports = _ _webpack _require _ _ ( 23 ) ;
2016-12-16 06:01:17 +00:00
/***/ } ,
/* 1 */ ,
/* 2 */ ,
/* 3 */ ,
/* 4 */ ,
/* 5 */ ,
/* 6 */
2016-12-16 17:53:52 +00:00
/***/ function ( module , exports ) {
'use strict' ;
2016-12-16 06:01:17 +00:00
2016-12-16 17:53:52 +00:00
Object . defineProperty ( exports , "__esModule" , {
value : true
2016-12-16 06:01:17 +00:00
} ) ;
2016-12-16 17:53:52 +00:00
exports . default = {
props : {
mdTheme : String
} ,
data : function data ( ) {
return {
closestThemedParent : false
} ;
2016-12-16 06:01:17 +00:00
} ,
2016-12-16 17:53:52 +00:00
methods : {
getClosestThemedParent : function getClosestThemedParent ( $parent ) {
if ( ! $parent || ! $parent . $el || $parent . _uid === 0 ) {
return false ;
2016-12-16 06:01:17 +00:00
}
2016-12-16 17:53:52 +00:00
if ( $parent . mdTheme || $parent . mdName ) {
return $parent ;
2016-12-16 06:01:17 +00:00
}
2016-12-16 17:53:52 +00:00
return this . getClosestThemedParent ( $parent . $parent ) ;
2016-12-16 06:01:17 +00:00
}
} ,
2016-12-16 17:53:52 +00:00
computed : {
themeClass : function themeClass ( ) {
if ( this . mdTheme ) {
return 'md-theme-' + this . mdTheme ;
2016-12-16 06:01:17 +00:00
}
2016-12-16 17:53:52 +00:00
var theme = this . closestThemedParent . mdTheme ;
2016-12-16 06:01:17 +00:00
2016-12-16 17:53:52 +00:00
if ( ! theme ) {
if ( this . closestThemedParent ) {
theme = this . closestThemedParent . mdName ;
2016-12-16 06:01:17 +00:00
} else {
2016-12-16 17:53:52 +00:00
theme = this . $material . currentTheme ;
2016-12-16 06:01:17 +00:00
}
}
2016-12-16 17:53:52 +00:00
return 'md-theme-' + theme ;
2016-12-16 06:01:17 +00:00
}
} ,
2016-12-16 17:53:52 +00:00
mounted : function mounted ( ) {
this . closestThemedParent = this . getClosestThemedParent ( this . $parent ) ;
2016-12-16 06:01:17 +00:00
2016-12-16 17:53:52 +00:00
if ( ! this . $material . currentTheme ) {
this . $material . setCurrentTheme ( 'default' ) ;
2016-12-16 06:01:17 +00:00
}
}
} ;
2016-12-16 17:53:52 +00:00
module . exports = exports [ 'default' ] ;
2016-11-21 03:39:30 +00:00
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 7 */ ,
/* 8 */ ,
2016-12-16 06:01:17 +00:00
/* 9 */ ,
/* 10 */ ,
/* 11 */ ,
/* 12 */ ,
/* 13 */ ,
/* 14 */ ,
/* 15 */ ,
/* 16 */ ,
/* 17 */ ,
/* 18 */ ,
/* 19 */ ,
/* 20 */ ,
/* 21 */ ,
/* 22 */ ,
2016-12-16 17:53:52 +00:00
/* 23 */
2016-11-21 03:39:30 +00:00
/***/ function ( module , exports , _ _webpack _require _ _ ) {
'use strict' ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
exports . default = install ;
2016-12-16 17:53:52 +00:00
var _mdButton = _ _webpack _require _ _ ( 24 ) ;
2016-11-21 03:39:30 +00:00
var _mdButton2 = _interopRequireDefault ( _mdButton ) ;
2016-12-16 17:53:52 +00:00
var _mdButton3 = _ _webpack _require _ _ ( 28 ) ;
2016-11-21 03:39:30 +00:00
var _mdButton4 = _interopRequireDefault ( _mdButton3 ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
function install ( Vue ) {
Vue . component ( 'md-button' , Vue . extend ( _mdButton2 . default ) ) ;
Vue . material . styles . push ( _mdButton4 . default ) ;
}
module . exports = exports [ 'default' ] ;
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 24 */
2016-11-21 03:39:30 +00:00
/***/ function ( module , exports , _ _webpack _require _ _ ) {
var _ _vue _exports _ _ , _ _vue _options _ _
var _ _vue _styles _ _ = { }
/* styles */
2016-12-16 17:53:52 +00:00
_ _webpack _require _ _ ( 25 )
2016-11-21 03:39:30 +00:00
/* script */
2016-12-16 17:53:52 +00:00
_ _vue _exports _ _ = _ _webpack _require _ _ ( 26 )
2016-12-16 06:01:17 +00:00
/* template */
2016-12-16 17:53:52 +00:00
var _ _vue _template _ _ = _ _webpack _require _ _ ( 27 )
2016-11-21 03:39:30 +00:00
_ _vue _options _ _ = _ _vue _exports _ _ = _ _vue _exports _ _ || { }
if (
typeof _ _vue _exports _ _ . default === "object" ||
typeof _ _vue _exports _ _ . default === "function"
) {
if ( Object . keys ( _ _vue _exports _ _ ) . some ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) { console . error ( "named exports are not supported in *.vue files." ) }
_ _vue _options _ _ = _ _vue _exports _ _ = _ _vue _exports _ _ . default
}
if ( typeof _ _vue _options _ _ === "function" ) {
_ _vue _options _ _ = _ _vue _options _ _ . options
}
2016-12-16 06:01:17 +00:00
_ _vue _options _ _ . _ _file = "/Users/marcosmoura/Projects/github/vue-material/src/components/mdButton/mdButton.vue"
_ _vue _options _ _ . render = _ _vue _template _ _ . render
_ _vue _options _ _ . staticRenderFns = _ _vue _template _ _ . staticRenderFns
2016-11-21 03:39:30 +00:00
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
2016-12-16 06:01:17 +00:00
hotAPI . createRecord ( "data-v-9b3983a6" , _ _vue _options _ _ )
2016-11-21 03:39:30 +00:00
} else {
2016-12-16 06:01:17 +00:00
hotAPI . reload ( "data-v-9b3983a6" , _ _vue _options _ _ )
2016-11-21 03:39:30 +00:00
}
} ) ( ) }
if ( _ _vue _options _ _ . functional ) { console . error ( "[vue-loader] mdButton.vue: functional components are not supported and should be defined in plain js files using render functions." ) }
module . exports = _ _vue _exports _ _
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 25 */
2016-12-05 03:53:41 +00:00
/***/ function ( module , exports ) {
// removed by extract-text-webpack-plugin
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 26 */
2016-12-16 06:01:17 +00:00
/***/ function ( module , exports , _ _webpack _require _ _ ) {
2016-11-21 03:39:30 +00:00
'use strict' ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
2016-12-16 06:01:17 +00:00
var _mixin = _ _webpack _require _ _ ( 6 ) ;
2016-11-21 03:39:30 +00:00
2016-12-16 06:01:17 +00:00
var _mixin2 = _interopRequireDefault ( _mixin ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2016-11-21 03:39:30 +00:00
exports . default = {
props : {
href : String ,
2016-12-16 06:01:17 +00:00
target : String ,
rel : String ,
type : {
type : String ,
default : 'button'
} ,
2016-11-21 03:39:30 +00:00
disabled : Boolean
} ,
2016-12-16 06:01:17 +00:00
mixins : [ _mixin2 . default ] ,
computed : {
newRel : function newRel ( ) {
if ( this . target === '_blank' ) {
return this . rel || 'noopener' ;
2016-11-21 03:39:30 +00:00
}
2016-12-16 06:01:17 +00:00
return this . rel ;
2016-11-21 03:39:30 +00:00
}
}
2016-12-16 06:01:17 +00:00
} ; //
//
//
//
//
//
//
//
//
//
//
//
//
//
2016-11-21 03:39:30 +00:00
module . exports = exports [ 'default' ] ;
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 27 */
2016-12-16 06:01:17 +00:00
/***/ function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _c ;
return ( ! _vm . href ) ? _c ( 'button' , {
staticClass : "md-button" ,
class : [ _vm . themeClass ] ,
attrs : {
"type" : _vm . type ,
"disabled" : _vm . disabled
} ,
on : {
"click" : function ( $event ) {
_vm . $emit ( 'click' , $event )
}
}
} , [ _c ( 'md-ink-ripple' , {
attrs : {
"md-disabled" : _vm . disabled
}
} ) , _vm . _v ( " " ) , _vm . _t ( "default" ) ] , true ) : _c ( 'a' , {
staticClass : "md-button" ,
class : [ _vm . themeClass ] ,
attrs : {
"href" : _vm . href ,
"disabled" : _vm . disabled ,
"target" : _vm . target ,
"rel" : _vm . newRel
} ,
on : {
"click" : function ( $event ) {
_vm . $emit ( 'click' , $event )
}
}
} , [ _c ( 'md-ink-ripple' , {
attrs : {
"md-disabled" : _vm . disabled
}
} ) , _vm . _v ( " " ) , _vm . _t ( "default" ) ] , true )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-9b3983a6" , module . exports )
}
}
2016-11-21 03:39:30 +00:00
2016-12-16 06:01:17 +00:00
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 28 */
2016-11-21 03:39:30 +00:00
/***/ function ( module , exports ) {
2016-12-16 06:01:17 +00:00
module . exports = ".THEME_NAME.md-button:not([disabled]).md-raised:not(.md-icon-button) {\n color: BACKGROUND-COLOR-900;\n background-color: BACKGROUND-COLOR-50; }\n .THEME_NAME.md-button:not([disabled]).md-raised:not(.md-icon-button):hover {\n background-color: BACKGROUND-COLOR-200; }\n\n.THEME_NAME.md-button:not([disabled]).md-raised.md-icon-button:not(.md-raised) {\n color: BACKGROUND-COLOR; }\n\n.THEME_NAME.md-button:not([disabled]).md-fab {\n color: ACCENT-CONTRAST;\n background-color: ACCENT-COLOR; }\n .THEME_NAME.md-button:not([disabled]).md-fab:hover {\n background-color: ACCENT-COLOR-600; }\n .THEME_NAME.md-button:not([disabled]).md-fab.md-clean {\n color: BACKGROUND-COLOR-900;\n background-color: BACKGROUND-COLOR-50; }\n .THEME_NAME.md-button:not([disabled]).md-fab.md-clean:hover {\n background-color: BACKGROUND-COLOR-200; }\n\n.THEME_NAME.md-button:not([disabled]).md-primary:not(.md-icon-button) {\n color: PRIMARY-COLOR; }\n\n.THEME_NAME.md-button:not([disabled]).md-primary.md-raised, .THEME_NAME.md-button:not([disabled]).md-primary.md-fab {\n background-color: PRIMARY-COLOR;\n color: PRIMARY-CONTRAST; }\n .THEME_NAME.md-button:not([disabled]).md-primary.md-raised:hover, .THEME_NAME.md-button:not([disabled]).md-primary.md-fab:hover {\n background-color: PRIMARY-COLOR-600; }\n\n.THEME_NAME.md-button:not([disabled]).md-primary.md-icon-button:not(.md-raised) {\n color: PRIMARY-COLOR; }\n\n.THEME_NAME.md-button:not([disabled]).md-accent:not(.md-icon-button) {\n color: ACCENT-COLOR; }\n\n.THEME_NAME.md-button:not([disabled]).md-accent.md-raised {\n background-color: ACCENT-COLOR;\n color: ACCENT-CONTRAST; }\n .THEME_NAME.md-button:not([disabled]).md-accent.md-raised:hover {\n background-color: ACCENT-COLOR-600; }\n\n.THEME_NAME.md-button:not([disabled]).md-accent.md-icon-button:not(.md-raised) {\n color: ACCENT-COLOR; }\n\n.THEME_NAME.md-button:not([disabled]).md-warn:not(.md-icon-button) {\n color: WARN-COLOR; }\n\n.THEME_NAME.md-button:not([disabled]).md-warn.md-raised, .THEME_NAME.md-button:not([disabled]).md-warn.md-fab {\n background-color: WARN-COLOR;\n color: WARN-CONTRAST; }\n .THEME_NAME.md-button:not([disabled]).md-warn.md-raised:hover, .THEME_NAME.md-button:not([disabled]).md-warn.md-fab:hover {\n background-color: WARN-COLOR-600; }\n\n.THEME_NAME.md-button:not([disabled]).md-warn.md-icon-button:not(.md-raised) {\n color: WARN-COLOR; }\n"
2016-11-21 03:39:30 +00:00
/***/ }
2016-12-16 06:01:17 +00:00
/******/ ] )
2016-11-21 03:39:30 +00:00
} ) ;
;
//# sourceMappingURL=index.debug.js.map