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 ) ;
/******/ } )
/************************************************************************/
/******/ ( [
/* 0 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
2016-12-16 17:53:52 +00:00
module . exports = _ _webpack _require _ _ ( 14 ) ;
2016-11-21 03:39:30 +00:00
/***/ } ,
/* 1 */ ,
/* 2 */ ,
/* 3 */ ,
/* 4 */ ,
/* 5 */ ,
2016-12-16 06:01:17 +00:00
/* 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-12-16 06:01:17 +00:00
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 7 */ ,
/* 8 */ ,
2016-12-05 03:53:41 +00:00
/* 9 */ ,
/* 10 */ ,
/* 11 */ ,
2016-12-16 06:01:17 +00:00
/* 12 */ ,
/* 13 */ ,
2016-12-16 17:53:52 +00:00
/* 14 */
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 _mdBottomBar = _ _webpack _require _ _ ( 15 ) ;
2016-11-21 03:39:30 +00:00
var _mdBottomBar2 = _interopRequireDefault ( _mdBottomBar ) ;
2016-12-16 17:53:52 +00:00
var _mdBottomBarItem = _ _webpack _require _ _ ( 19 ) ;
2016-11-21 03:39:30 +00:00
var _mdBottomBarItem2 = _interopRequireDefault ( _mdBottomBarItem ) ;
2016-12-16 17:53:52 +00:00
var _mdBottomBar3 = _ _webpack _require _ _ ( 22 ) ;
2016-11-21 03:39:30 +00:00
var _mdBottomBar4 = _interopRequireDefault ( _mdBottomBar3 ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
function install ( Vue ) {
Vue . component ( 'md-bottom-bar' , Vue . extend ( _mdBottomBar2 . default ) ) ;
Vue . component ( 'md-bottom-bar-item' , Vue . extend ( _mdBottomBarItem2 . default ) ) ;
Vue . material . styles . push ( _mdBottomBar4 . default ) ;
}
module . exports = exports [ 'default' ] ;
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 15 */
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 _ _ ( 16 )
2016-11-21 03:39:30 +00:00
/* script */
2016-12-16 17:53:52 +00:00
_ _vue _exports _ _ = _ _webpack _require _ _ ( 17 )
2016-11-21 03:39:30 +00:00
/* template */
2016-12-16 17:53:52 +00:00
var _ _vue _template _ _ = _ _webpack _require _ _ ( 18 )
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/mdBottomBar/mdBottomBar.vue"
2016-11-21 03:39:30 +00:00
_ _vue _options _ _ . render = _ _vue _template _ _ . render
_ _vue _options _ _ . staticRenderFns = _ _vue _template _ _ . staticRenderFns
/* 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-039c211e" , _ _vue _options _ _ )
2016-11-21 03:39:30 +00:00
} else {
2016-12-16 06:01:17 +00:00
hotAPI . reload ( "data-v-039c211e" , _ _vue _options _ _ )
2016-11-21 03:39:30 +00:00
}
} ) ( ) }
if ( _ _vue _options _ _ . functional ) { console . error ( "[vue-loader] mdBottomBar.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
/* 16 */
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
/* 17 */
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 ) ;
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 : {
mdShift : Boolean
} ,
2016-12-16 06:01:17 +00:00
mixins : [ _mixin2 . default ] ,
2016-11-21 03:39:30 +00:00
computed : {
classes : function classes ( ) {
return this . mdShift ? 'md-shift' : 'md-fixed' ;
}
}
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
/* 18 */
2016-11-21 03:39:30 +00:00
/***/ function ( module , exports , _ _webpack _require _ _ ) {
2016-12-16 06:01:17 +00:00
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _c ;
return _c ( 'div' , {
2016-11-21 03:39:30 +00:00
staticClass : "md-bottom-bar" ,
2016-12-16 06:01:17 +00:00
class : [ _vm . themeClass , _vm . classes ]
} , [ _vm . _t ( "default" ) ] , true )
2016-11-21 03:39:30 +00:00
} , staticRenderFns : [ ] }
2016-12-05 03:53:41 +00:00
module . exports . render . _withStripped = true
2016-11-21 03:39:30 +00:00
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
2016-12-16 06:01:17 +00:00
require ( "vue-hot-reload-api" ) . rerender ( "data-v-039c211e" , module . exports )
2016-11-21 03:39:30 +00:00
}
}
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 19 */
2016-11-21 03:39:30 +00:00
/***/ function ( module , exports , _ _webpack _require _ _ ) {
var _ _vue _exports _ _ , _ _vue _options _ _
var _ _vue _styles _ _ = { }
/* script */
2016-12-16 17:53:52 +00:00
_ _vue _exports _ _ = _ _webpack _require _ _ ( 20 )
2016-11-21 03:39:30 +00:00
/* template */
2016-12-16 17:53:52 +00:00
var _ _vue _template _ _ = _ _webpack _require _ _ ( 21 )
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/mdBottomBar/mdBottomBarItem.vue"
2016-11-21 03:39:30 +00:00
_ _vue _options _ _ . render = _ _vue _template _ _ . render
_ _vue _options _ _ . staticRenderFns = _ _vue _template _ _ . staticRenderFns
/* 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-1c07f8a4" , _ _vue _options _ _ )
2016-11-21 03:39:30 +00:00
} else {
2016-12-16 06:01:17 +00:00
hotAPI . reload ( "data-v-1c07f8a4" , _ _vue _options _ _ )
2016-11-21 03:39:30 +00:00
}
} ) ( ) }
if ( _ _vue _options _ _ . functional ) { console . error ( "[vue-loader] mdBottomBarItem.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
/* 20 */
2016-11-21 03:39:30 +00:00
/***/ function ( module , exports ) {
'use strict' ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
//
//
//
//
//
//
//
//
//
//
2016-12-05 03:53:41 +00:00
//
//
//
//
//
//
//
//
2016-11-21 03:39:30 +00:00
exports . default = {
props : {
mdIcon : String ,
2016-12-05 03:53:41 +00:00
mdActive : Boolean ,
href : String
2016-11-21 03:39:30 +00:00
} ,
data : function data ( ) {
return {
active : false
} ;
} ,
computed : {
classes : function classes ( ) {
return {
'md-active' : this . active
} ;
}
} ,
watch : {
mdActive : function mdActive ( active ) {
this . setActive ( active ) ;
}
} ,
methods : {
setActive : function setActive ( active ) {
this . $parent . $children . forEach ( function ( item ) {
item . active = false ;
} ) ;
this . active = ! ! active ;
}
} ,
mounted : function mounted ( ) {
if ( ! this . $parent . $el . classList . contains ( 'md-bottom-bar' ) ) {
this . $destroy ( ) ;
throw new Error ( 'You should wrap the md-bottom-bar-item in a md-bottom-bar' ) ;
}
if ( this . mdActive ) {
this . active = true ;
}
}
} ;
module . exports = exports [ 'default' ] ;
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 21 */
2016-11-21 03:39:30 +00:00
/***/ function ( module , exports , _ _webpack _require _ _ ) {
2016-12-16 06:01:17 +00:00
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _c ;
return ( _vm . href ) ? _c ( 'a' , {
2016-12-05 03:53:41 +00:00
directives : [ {
name : "md-ink-ripple" ,
rawName : "v-md-ink-ripple"
} ] ,
staticClass : "md-bottom-bar-item" ,
class : _vm . classes ,
attrs : {
"href" : _vm . href
} ,
on : {
"click" : _vm . setActive
}
2016-12-16 06:01:17 +00:00
} , [ _c ( 'md-icon' , [ _vm . _v ( _vm . _s ( _vm . mdIcon ) ) ] ) , _vm . _v ( " " ) , _c ( 'span' , {
2016-12-05 03:53:41 +00:00
staticClass : "md-text"
2016-12-16 06:01:17 +00:00
} , [ _vm . _t ( "default" ) ] , true ) ] ) : _c ( 'button' , {
2016-11-21 03:39:30 +00:00
directives : [ {
name : "md-ink-ripple" ,
rawName : "v-md-ink-ripple"
} ] ,
staticClass : "md-bottom-bar-item" ,
class : _vm . classes ,
attrs : {
"type" : "button"
} ,
on : {
"click" : _vm . setActive
}
2016-12-16 06:01:17 +00:00
} , [ _c ( 'md-icon' , [ _vm . _v ( _vm . _s ( _vm . mdIcon ) ) ] ) , _vm . _v ( " " ) , _c ( 'span' , {
2016-11-21 03:39:30 +00:00
staticClass : "md-text"
2016-12-16 06:01:17 +00:00
} , [ _vm . _t ( "default" ) ] , true ) ] )
2016-11-21 03:39:30 +00:00
} , staticRenderFns : [ ] }
2016-12-05 03:53:41 +00:00
module . exports . render . _withStripped = true
2016-11-21 03:39:30 +00:00
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
2016-12-16 06:01:17 +00:00
require ( "vue-hot-reload-api" ) . rerender ( "data-v-1c07f8a4" , module . exports )
2016-11-21 03:39:30 +00:00
}
}
/***/ } ,
2016-12-16 17:53:52 +00:00
/* 22 */
2016-11-21 03:39:30 +00:00
/***/ function ( module , exports ) {
2016-12-16 06:01:17 +00:00
module . exports = ".THEME_NAME.md-bottom-bar.md-fixed {\n background-color: BACKGROUND-COLOR; }\n .THEME_NAME.md-bottom-bar.md-fixed .md-bottom-bar-item {\n color: BACKGROUND-CONTRAST-0.54; }\n .THEME_NAME.md-bottom-bar.md-fixed .md-bottom-bar-item:hover:not(.md-active) {\n color: BACKGROUND-CONTRAST-0.87; }\n .THEME_NAME.md-bottom-bar.md-fixed .md-bottom-bar-item.md-active {\n color: PRIMARY-COLOR; }\n .THEME_NAME.md-bottom-bar.md-fixed.md-accent .md-bottom-bar-item.md-active {\n color: ACCENT-COLOR; }\n .THEME_NAME.md-bottom-bar.md-fixed.md-warn .md-bottom-bar-item.md-active {\n color: WARN-COLOR; }\n .THEME_NAME.md-bottom-bar.md-fixed.md-transparent .md-bottom-bar-item.md-active {\n color: BACKGROUND-CONTRAST; }\n\n.THEME_NAME.md-bottom-bar.md-shift {\n background-color: PRIMARY-COLOR;\n color: PRIMARY-CONTRAST; }\n .THEME_NAME.md-bottom-bar.md-shift .md-bottom-bar-item {\n color: PRIMARY-CONTRAST-0.54; }\n .THEME_NAME.md-bottom-bar.md-shift .md-bottom-bar-item:hover:not(.md-active) {\n color: PRIMARY-CONTRAST-0.87; }\n .THEME_NAME.md-bottom-bar.md-shift .md-bottom-bar-item.md-active {\n color: PRIMARY-CONTRAST; }\n .THEME_NAME.md-bottom-bar.md-shift.md-accent {\n background-color: ACCENT-COLOR; }\n .THEME_NAME.md-bottom-bar.md-shift.md-accent .md-bottom-bar-item {\n color: ACCENT-CONTRAST-0.54; }\n .THEME_NAME.md-bottom-bar.md-shift.md-accent .md-bottom-bar-item:hover:not(.md-active) {\n color: ACCENT-CONTRAST-0.87; }\n .THEME_NAME.md-bottom-bar.md-shift.md-accent .md-bottom-bar-item.md-active {\n color: ACCENT-CONTRAST; }\n .THEME_NAME.md-bottom-bar.md-shift.md-warn {\n background-color: WARN-COLOR; }\n .THEME_NAME.md-bottom-bar.md-shift.md-warn .md-bottom-bar-item {\n color: WARN-CONTRAST-0.54; }\n .THEME_NAME.md-bottom-bar.md-shift.md-warn .md-bottom-bar-item:hover:not(.md-active) {\n color: WARN-CONTRAST-0.87; }\n .THEME_NAME.md-bottom-bar.md-shift.md-warn .md-bottom-bar-item.md-active {\n color: WARN-CONTRAST; }\n .THEME_NAME.md-bottom-bar.md-shift.md-transparent {\n background-color: transparent; }\n .THEME_NAME.md-bottom-bar.md-shift.md-transparent .md-bottom-bar-item {\n color: BACKGROUND-CONTRAST-0.54; }\n .THEME_NAME.md-bottom-bar.md-shift.md-transparent .md-bottom-bar-item:hover:not(.md-active) {\n color: BACKGROUND-CONTRAST-0.87; }\n .THEME_NAME.md-bottom-bar.md-shift.md-transparent .md-bottom-bar-item.md-active {\n color: BACKGROUND-CONTRAST; }\n"
2016-11-21 03:39:30 +00:00
/***/ }
/******/ ] )
} ) ;
;
//# sourceMappingURL=index.debug.js.map