2017-06-19 16:25:45 +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 ] = {
/******/ i : moduleId ,
/******/ l : false ,
/******/ exports : { }
/******/ } ;
/******/ // Execute the module function
/******/ modules [ moduleId ] . call ( module . exports , module , module . exports , _ _webpack _require _ _ ) ;
/******/ // Flag the module as loaded
/******/ module . l = 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 ;
/******/ // identity function for calling harmony imports with the correct context
/******/ _ _webpack _require _ _ . i = function ( value ) { return value ; } ;
/******/ // define getter function for harmony exports
/******/ _ _webpack _require _ _ . d = function ( exports , name , getter ) {
/******/ if ( ! _ _webpack _require _ _ . o ( exports , name ) ) {
/******/ Object . defineProperty ( exports , name , {
/******/ configurable : false ,
/******/ enumerable : true ,
/******/ get : getter
/******/ } ) ;
/******/ }
/******/ } ;
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ _ _webpack _require _ _ . n = function ( module ) {
/******/ var getter = module && module . _ _esModule ?
/******/ function getDefault ( ) { return module [ 'default' ] ; } :
/******/ function getModuleExports ( ) { return module ; } ;
/******/ _ _webpack _require _ _ . d ( getter , 'a' , getter ) ;
/******/ return getter ;
/******/ } ;
/******/ // Object.prototype.hasOwnProperty.call
/******/ _ _webpack _require _ _ . o = function ( object , property ) { return Object . prototype . hasOwnProperty . call ( object , property ) ; } ;
/******/ // __webpack_public_path__
/******/ _ _webpack _require _ _ . p = "/" ;
/******/ // Load entry module and return exports
2017-06-19 16:27:45 +00:00
/******/ return _ _webpack _require _ _ ( _ _webpack _require _ _ . s = 460 ) ;
2017-06-19 16:25:45 +00:00
/******/ } )
/************************************************************************/
/******/ ( {
/***/ 0 :
/***/ ( function ( module , exports ) {
2017-06-19 16:27:45 +00:00
/* globals __VUE_SSR_CONTEXT__ */
// this module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle
2017-06-19 16:25:45 +00:00
module . exports = function normalizeComponent (
rawScriptExports ,
compiledTemplate ,
2017-06-19 16:27:45 +00:00
injectStyles ,
2017-06-19 16:25:45 +00:00
scopeId ,
2017-06-19 16:27:45 +00:00
moduleIdentifier /* server only */
2017-06-19 16:25:45 +00:00
) {
var esModule
var scriptExports = rawScriptExports = rawScriptExports || { }
// ES6 modules interop
var type = typeof rawScriptExports . default
if ( type === 'object' || type === 'function' ) {
esModule = rawScriptExports
scriptExports = rawScriptExports . default
}
// Vue.extend constructor export interop
var options = typeof scriptExports === 'function'
? scriptExports . options
: scriptExports
// render functions
if ( compiledTemplate ) {
options . render = compiledTemplate . render
options . staticRenderFns = compiledTemplate . staticRenderFns
}
// scopedId
if ( scopeId ) {
options . _scopeId = scopeId
}
2017-06-19 16:27:45 +00:00
var hook
if ( moduleIdentifier ) { // server build
hook = function ( context ) {
// 2.3 injection
context =
context || // cached call
( this . $vnode && this . $vnode . ssrContext ) || // stateful
( this . parent && this . parent . $vnode && this . parent . $vnode . ssrContext ) // functional
// 2.2 with runInNewContext: true
if ( ! context && typeof _ _VUE _SSR _CONTEXT _ _ !== 'undefined' ) {
context = _ _VUE _SSR _CONTEXT _ _
}
// inject component styles
if ( injectStyles ) {
injectStyles . call ( this , context )
}
// register component module identifier for async chunk inferrence
if ( context && context . _registeredComponents ) {
context . _registeredComponents . add ( moduleIdentifier )
}
}
// used by ssr in case component is cached and beforeCreate
// never gets called
options . _ssrRegister = hook
} else if ( injectStyles ) {
hook = injectStyles
}
if ( hook ) {
var functional = options . functional
var existing = functional
? options . render
: options . beforeCreate
if ( ! functional ) {
// inject component registration as beforeCreate hook
options . beforeCreate = existing
? [ ] . concat ( existing , hook )
: [ hook ]
} else {
// register for functioal component in vue file
options . render = function renderWithStyleInjection ( h , context ) {
hook . call ( context )
return existing ( h , context )
}
}
2017-06-19 16:25:45 +00:00
}
return {
esModule : esModule ,
exports : scriptExports ,
options : options
}
}
/***/ } ) ,
/***/ 1 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
2017-06-19 16:27:45 +00:00
// Theme mixin
// Grab the closest ancestor component's `md-theme` attribute OR grab the
// `md-name` attribute from an `<md-theme>` component.
function getAncestorThemeName ( component ) {
if ( ! component ) {
return null ;
}
var name = component . mdTheme ;
if ( ! name && component . $options . _componentTag === 'md-theme' ) {
name = component . mdName ;
}
return name || getAncestorThemeName ( component . $parent ) ;
}
2017-06-19 16:25:45 +00:00
exports . default = {
props : {
mdTheme : String
} ,
computed : {
2017-06-19 16:27:45 +00:00
mdEffectiveTheme : function mdEffectiveTheme ( ) {
return getAncestorThemeName ( this ) || this . $material . currentTheme ;
} ,
2017-06-19 16:25:45 +00:00
themeClass : function themeClass ( ) {
2017-06-19 16:27:45 +00:00
return this . $material . prefix + this . mdEffectiveTheme ;
2017-06-19 16:25:45 +00:00
}
} ,
2017-06-19 16:27:45 +00:00
watch : {
mdTheme : function mdTheme ( value ) {
this . $material . useTheme ( value ) ;
2017-06-19 16:25:45 +00:00
}
2017-06-19 16:27:45 +00:00
} ,
beforeMount : function beforeMount ( ) {
var localTheme = this . mdTheme ;
this . $material . useTheme ( localTheme ? localTheme : 'default' ) ;
2017-06-19 16:25:45 +00:00
}
} ;
module . exports = exports [ 'default' ] ;
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 10 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
var getClosestVueParent = function getClosestVueParent ( $parent , cssClass ) {
if ( ! $parent || ! $parent . $el ) {
return false ;
}
if ( $parent . _uid === 0 ) {
return false ;
}
if ( $parent . $el . classList . contains ( cssClass ) ) {
return $parent ;
}
return getClosestVueParent ( $parent . $parent , cssClass ) ;
} ;
exports . default = getClosestVueParent ;
module . exports = exports [ "default" ] ;
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 11 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var dP = _ _webpack _require _ _ ( 9 )
, createDesc = _ _webpack _require _ _ ( 17 ) ;
module . exports = _ _webpack _require _ _ ( 3 ) ? function ( object , key , value ) {
return dP . f ( object , key , createDesc ( 1 , value ) ) ;
} : function ( object , key , value ) {
object [ key ] = value ;
return object ;
} ;
/***/ } ) ,
/***/ 115 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var _ _WEBPACK _AMD _DEFINE _FACTORY _ _ , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ , _ _WEBPACK _AMD _DEFINE _RESULT _ _ ; / * !
Autosize 3.0 . 20
license : MIT
http : //www.jacklmoore.com/autosize
* /
( function ( global , factory ) {
if ( true ) {
! ( _ _WEBPACK _AMD _DEFINE _ARRAY _ _ = [ exports , module ] , _ _WEBPACK _AMD _DEFINE _FACTORY _ _ = ( factory ) ,
_ _WEBPACK _AMD _DEFINE _RESULT _ _ = ( typeof _ _WEBPACK _AMD _DEFINE _FACTORY _ _ === 'function' ?
( _ _WEBPACK _AMD _DEFINE _FACTORY _ _ . apply ( exports , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ ) ) : _ _WEBPACK _AMD _DEFINE _FACTORY _ _ ) ,
_ _WEBPACK _AMD _DEFINE _RESULT _ _ !== undefined && ( module . exports = _ _WEBPACK _AMD _DEFINE _RESULT _ _ ) ) ;
} else if ( typeof exports !== 'undefined' && typeof module !== 'undefined' ) {
factory ( exports , module ) ;
} else {
var mod = {
exports : { }
} ;
factory ( mod . exports , mod ) ;
global . autosize = mod . exports ;
}
} ) ( this , ( function ( exports , module ) {
'use strict' ;
var map = typeof Map === "function" ? new Map ( ) : ( function ( ) {
var keys = [ ] ;
var values = [ ] ;
return {
has : function has ( key ) {
return keys . indexOf ( key ) > - 1 ;
} ,
get : function get ( key ) {
return values [ keys . indexOf ( key ) ] ;
} ,
set : function set ( key , value ) {
if ( keys . indexOf ( key ) === - 1 ) {
keys . push ( key ) ;
values . push ( value ) ;
}
} ,
'delete' : function _delete ( key ) {
var index = keys . indexOf ( key ) ;
if ( index > - 1 ) {
keys . splice ( index , 1 ) ;
values . splice ( index , 1 ) ;
}
}
} ;
} ) ( ) ;
var createEvent = function createEvent ( name ) {
return new Event ( name , { bubbles : true } ) ;
} ;
try {
new Event ( 'test' ) ;
} catch ( e ) {
// IE does not support `new Event()`
createEvent = function ( name ) {
var evt = document . createEvent ( 'Event' ) ;
evt . initEvent ( name , true , false ) ;
return evt ;
} ;
}
function assign ( ta ) {
if ( ! ta || ! ta . nodeName || ta . nodeName !== 'TEXTAREA' || map . has ( ta ) ) return ;
var heightOffset = null ;
var clientWidth = ta . clientWidth ;
var cachedHeight = null ;
function init ( ) {
var style = window . getComputedStyle ( ta , null ) ;
if ( style . resize === 'vertical' ) {
ta . style . resize = 'none' ;
} else if ( style . resize === 'both' ) {
ta . style . resize = 'horizontal' ;
}
if ( style . boxSizing === 'content-box' ) {
heightOffset = - ( parseFloat ( style . paddingTop ) + parseFloat ( style . paddingBottom ) ) ;
} else {
heightOffset = parseFloat ( style . borderTopWidth ) + parseFloat ( style . borderBottomWidth ) ;
}
// Fix when a textarea is not on document body and heightOffset is Not a Number
if ( isNaN ( heightOffset ) ) {
heightOffset = 0 ;
}
update ( ) ;
}
function changeOverflow ( value ) {
{
// Chrome/Safari-specific fix:
// When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space
// made available by removing the scrollbar. The following forces the necessary text reflow.
var width = ta . style . width ;
ta . style . width = '0px' ;
// Force reflow:
/* jshint ignore:start */
ta . offsetWidth ;
/* jshint ignore:end */
ta . style . width = width ;
}
ta . style . overflowY = value ;
}
function getParentOverflows ( el ) {
var arr = [ ] ;
while ( el && el . parentNode && el . parentNode instanceof Element ) {
if ( el . parentNode . scrollTop ) {
arr . push ( {
node : el . parentNode ,
scrollTop : el . parentNode . scrollTop
} ) ;
}
el = el . parentNode ;
}
return arr ;
}
function resize ( ) {
var originalHeight = ta . style . height ;
var overflows = getParentOverflows ( ta ) ;
var docTop = document . documentElement && document . documentElement . scrollTop ; // Needed for Mobile IE (ticket #240)
ta . style . height = 'auto' ;
var endHeight = ta . scrollHeight + heightOffset ;
if ( ta . scrollHeight === 0 ) {
// If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM.
ta . style . height = originalHeight ;
return ;
}
ta . style . height = endHeight + 'px' ;
// used to check if an update is actually necessary on window.resize
clientWidth = ta . clientWidth ;
// prevents scroll-position jumping
overflows . forEach ( ( function ( el ) {
el . node . scrollTop = el . scrollTop ;
} ) ) ;
if ( docTop ) {
document . documentElement . scrollTop = docTop ;
}
}
function update ( ) {
resize ( ) ;
var styleHeight = Math . round ( parseFloat ( ta . style . height ) ) ;
var computed = window . getComputedStyle ( ta , null ) ;
var actualHeight = Math . round ( parseFloat ( computed . height ) ) ;
// The actual height not matching the style height (set via the resize method) indicates that
// the max-height has been exceeded, in which case the overflow should be set to visible.
if ( actualHeight !== styleHeight ) {
if ( computed . overflowY !== 'visible' ) {
changeOverflow ( 'visible' ) ;
resize ( ) ;
actualHeight = Math . round ( parseFloat ( window . getComputedStyle ( ta , null ) . height ) ) ;
}
} else {
// Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands.
if ( computed . overflowY !== 'hidden' ) {
changeOverflow ( 'hidden' ) ;
resize ( ) ;
actualHeight = Math . round ( parseFloat ( window . getComputedStyle ( ta , null ) . height ) ) ;
}
}
if ( cachedHeight !== actualHeight ) {
cachedHeight = actualHeight ;
var evt = createEvent ( 'autosize:resized' ) ;
try {
ta . dispatchEvent ( evt ) ;
} catch ( err ) {
// Firefox will throw an error on dispatchEvent for a detached element
// https://bugzilla.mozilla.org/show_bug.cgi?id=889376
}
}
}
var pageResize = function pageResize ( ) {
if ( ta . clientWidth !== clientWidth ) {
update ( ) ;
}
} ;
var destroy = ( function ( style ) {
window . removeEventListener ( 'resize' , pageResize , false ) ;
ta . removeEventListener ( 'input' , update , false ) ;
ta . removeEventListener ( 'keyup' , update , false ) ;
ta . removeEventListener ( 'autosize:destroy' , destroy , false ) ;
ta . removeEventListener ( 'autosize:update' , update , false ) ;
Object . keys ( style ) . forEach ( ( function ( key ) {
ta . style [ key ] = style [ key ] ;
} ) ) ;
map [ 'delete' ] ( ta ) ;
} ) . bind ( ta , {
height : ta . style . height ,
resize : ta . style . resize ,
overflowY : ta . style . overflowY ,
overflowX : ta . style . overflowX ,
wordWrap : ta . style . wordWrap
} ) ;
ta . addEventListener ( 'autosize:destroy' , destroy , false ) ;
// IE9 does not fire onpropertychange or oninput for deletions,
// so binding to onkeyup to catch most of those events.
// There is no way that I know of to detect something like 'cut' in IE9.
if ( 'onpropertychange' in ta && 'oninput' in ta ) {
ta . addEventListener ( 'keyup' , update , false ) ;
}
window . addEventListener ( 'resize' , pageResize , false ) ;
ta . addEventListener ( 'input' , update , false ) ;
ta . addEventListener ( 'autosize:update' , update , false ) ;
ta . style . overflowX = 'hidden' ;
ta . style . wordWrap = 'break-word' ;
map . set ( ta , {
destroy : destroy ,
update : update
} ) ;
init ( ) ;
}
function destroy ( ta ) {
var methods = map . get ( ta ) ;
if ( methods ) {
methods . destroy ( ) ;
}
}
function update ( ta ) {
var methods = map . get ( ta ) ;
if ( methods ) {
methods . update ( ) ;
}
}
var autosize = null ;
// Do nothing in Node.js environment and IE8 (or lower)
if ( typeof window === 'undefined' || typeof window . getComputedStyle !== 'function' ) {
autosize = function ( el ) {
return el ;
} ;
autosize . destroy = function ( el ) {
return el ;
} ;
autosize . update = function ( el ) {
return el ;
} ;
} else {
autosize = function ( el , options ) {
if ( el ) {
Array . prototype . forEach . call ( el . length ? el : [ el ] , ( function ( x ) {
return assign ( x , options ) ;
} ) ) ;
}
return el ;
} ;
autosize . destroy = function ( el ) {
if ( el ) {
Array . prototype . forEach . call ( el . length ? el : [ el ] , destroy ) ;
}
return el ;
} ;
autosize . update = function ( el ) {
if ( el ) {
Array . prototype . forEach . call ( el . length ? el : [ el ] , update ) ;
}
return el ;
} ;
}
module . exports = autosize ;
} ) ) ;
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 124 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
2017-06-19 16:27:45 +00:00
exports . default = {
props : {
debounce : {
type : Number ,
default : 1E3
} ,
disabled : Boolean ,
fetch : {
type : Function
} ,
filterList : Function ,
list : {
type : Array ,
default : function _default ( ) {
return [ ] ;
}
} ,
minChars : {
type : Number ,
default : 1
} ,
name : String ,
prepareResponseData : Function ,
printAttribute : {
type : String ,
default : 'name'
} ,
queryParam : {
type : String ,
default : 'q'
} ,
required : Boolean
} ,
methods : {
onFocus : function onFocus ( ) {
if ( this . parentContainer ) {
this . parentContainer . isFocused = true ;
}
} ,
onBlur : function onBlur ( ) {
this . parentContainer . isFocused = false ;
this . setParentValue ( ) ;
} ,
verifyProps : function verifyProps ( ) {
if ( ! this . parentContainer ) {
return this . throwErrorDestroy ( 'You should wrap the md-input in a md-input-container' ) ;
} else if ( this . listIsEmpty && this . filterList ) {
return this . throwErrorDestroy ( 'You should use a `filterList` function prop with the `list` prop' ) ;
} else if ( ! this . fetch && this . listIsEmpty ) {
return this . throwErrorDestroy ( 'You should use a `fetch` function prop' ) ;
}
} ,
throwErrorDestroy : function throwErrorDestroy ( errorMessage ) {
this . $destroy ( ) ;
throw new Error ( errorMessage ) ;
}
}
} ;
module . exports = exports [ 'default' ] ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
/***/ } ) ,
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
/***/ 13 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
var isObject = _ _webpack _require _ _ ( 6 ) ;
module . exports = function ( it ) {
if ( ! isObject ( it ) ) throw TypeError ( it + ' is not an object!' ) ;
return it ;
} ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
/***/ } ) ,
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
/***/ 14 :
/***/ ( function ( module , exports ) {
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
// 7.2.1 RequireObjectCoercible(argument)
module . exports = function ( it ) {
if ( it == undefined ) throw TypeError ( "Can't call method on " + it ) ;
return it ;
} ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
/***/ } ) ,
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
/***/ 15 :
/***/ ( function ( module , exports ) {
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
// 7.1.4 ToInteger
var ceil = Math . ceil
, floor = Math . floor ;
module . exports = function ( it ) {
return isNaN ( it = + it ) ? 0 : ( it > 0 ? floor : ceil ) ( it ) ;
2017-06-19 16:25:45 +00:00
} ;
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 156 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
2017-06-19 16:27:45 +00:00
var _defineProperty2 = _ _webpack _require _ _ ( 207 ) ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
var _defineProperty3 = _interopRequireDefault ( _defineProperty2 ) ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
var _assign = _ _webpack _require _ _ ( 51 ) ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
var _assign2 = _interopRequireDefault ( _assign ) ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
var _autocompleteCommon = _ _webpack _require _ _ ( 124 ) ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
var _autocompleteCommon2 = _interopRequireDefault ( _autocompleteCommon ) ;
var _common = _ _webpack _require _ _ ( 58 ) ;
var _common2 = _interopRequireDefault ( _common ) ;
var _getClosestVueParent = _ _webpack _require _ _ ( 10 ) ;
var _getClosestVueParent2 = _interopRequireDefault ( _getClosestVueParent ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2017-06-19 16:25:45 +00:00
exports . default = {
2017-06-19 16:27:45 +00:00
mixins : [ _common2 . default , _autocompleteCommon2 . default ] ,
2017-06-19 16:25:45 +00:00
data : function data ( ) {
return {
2017-06-19 16:27:45 +00:00
items : [ ] ,
loading : false ,
query : '' ,
selected : null ,
timeout : 0 ,
parentContainer : null ,
searchButton : null
2017-06-19 16:25:45 +00:00
} ;
} ,
computed : {
2017-06-19 16:27:45 +00:00
listIsEmpty : function listIsEmpty ( ) {
return this . list . length === 0 ;
2017-06-19 16:25:45 +00:00
}
} ,
2017-06-19 16:27:45 +00:00
watch : {
list : function list ( value ) {
this . items = ( 0 , _assign2 . default ) ( [ ] , value ) ;
2017-06-19 16:25:45 +00:00
} ,
2017-06-19 16:27:45 +00:00
query : function query ( value ) {
this . $refs . input . value = value ;
this . setParentUpdateValue ( value ) ;
2017-06-19 16:25:45 +00:00
} ,
2017-06-19 16:27:45 +00:00
value : function value ( _value ) {
this . query = _value ;
this . setParentUpdateValue ( _value ) ;
2017-06-19 16:25:45 +00:00
}
} ,
2017-06-19 16:27:45 +00:00
methods : {
debounceUpdate : function debounceUpdate ( ) {
var _this = this ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
this . onInput ( ) ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
if ( this . timeout ) {
window . clearTimeout ( this . timeout ) ;
}
this . timeout = window . setTimeout ( ( function ( ) {
if ( ! _this . listIsEmpty ) {
_this . renderFilteredList ( ) ;
return ;
}
_this . update ( ) ;
} ) , this . debounce ) ;
} ,
hit : function hit ( item ) {
this . query = item [ this . printAttribute ] ;
this . $refs . input . value = item [ this . printAttribute ] ;
this . selected = item ;
this . onInput ( ) ;
this . $emit ( 'selected' , this . selected , this . $refs . input . value ) ;
} ,
makeFetchRequest : function makeFetchRequest ( queryObject ) {
var _this2 = this ;
return this . fetch ( queryObject ) . then ( ( function ( response ) {
var data = response || response . data || response . body ;
data = _this2 . prepareResponseData ? _this2 . prepareResponseData ( data ) : data ;
_this2 . items = _this2 . limit ? data . slice ( 0 , _this2 . limit ) : data ;
_this2 . loading = false ;
_this2 . toggleMenu ( ) ;
} ) ) ;
} ,
onFocus : function onFocus ( ) {
if ( this . parentContainer ) {
this . parentContainer . isFocused = true ;
}
this . $refs . input . focus ( ) ;
} ,
onInput : function onInput ( ) {
this . updateValues ( ) ;
this . $emit ( 'change' , this . $refs . input . value ) ;
this . $emit ( 'input' , this . $refs . input . value ) ;
} ,
renderFilteredList : function renderFilteredList ( ) {
if ( this . filterList ) {
this . items = this . filterList ( ( 0 , _assign2 . default ) ( [ ] , this . list ) , this . query ) ;
}
this . toggleMenu ( ) ;
} ,
reset : function reset ( ) {
this . items = [ ] ;
this . query = '' ;
this . loading = false ;
} ,
setParentValue : function setParentValue ( value ) {
this . parentContainer . setValue ( value || this . $refs . input . value ) ;
} ,
setParentDisabled : function setParentDisabled ( ) {
this . parentContainer . isDisabled = this . disabled ;
} ,
setParentRequired : function setParentRequired ( ) {
this . parentContainer . isRequired = this . required ;
} ,
setParentPlaceholder : function setParentPlaceholder ( ) {
this . parentContainer . hasPlaceholder = ! ! this . placeholder ;
} ,
setParentUpdateValue : function setParentUpdateValue ( value ) {
this . setParentValue ( value ) ;
this . updateValues ( value ) ;
} ,
setSearchButton : function setSearchButton ( ) {
this . searchButton = this . parentContainer . $el . querySelector ( '[md-autocomplete-search]' ) ;
if ( this . searchButton ) {
this . searchButton . addEventListener ( 'click' , this . makeFetchRequest ) ;
}
} ,
update : function update ( ) {
if ( ! this . query && ! this . list . length ) {
return this . reset ( ) ;
}
if ( this . minChars && this . query . length < this . minChars ) {
return ;
}
this . loading = true ;
var queryObject = ( 0 , _defineProperty3 . default ) ( { } , this . queryParam , this . query ) ;
return this . makeFetchRequest ( queryObject ) ;
} ,
toggleMenu : function toggleMenu ( ) {
if ( this . items . length ) {
this . $refs . menu . toggle ( ) ;
}
} ,
updateValues : function updateValues ( value ) {
var newValue = value || this . $refs . input . value || this . value ;
this . setParentValue ( newValue ) ;
this . parentContainer . inputLength = newValue ? newValue . length : 0 ;
}
} ,
beforeDestroy : function beforeDestroy ( ) {
if ( this . searchButton ) {
this . searchButton . removeEventListener ( 'click' , this . makeFetchRequest ) ;
}
} ,
mounted : function mounted ( ) {
var _this3 = this ;
this . $nextTick ( ( function ( ) {
_this3 . parentContainer = ( 0 , _getClosestVueParent2 . default ) ( _this3 . $parent , 'md-input-container' ) ;
if ( ! _this3 . listIsEmpty ) {
_this3 . items = ( 0 , _assign2 . default ) ( [ ] , _this3 . list ) ;
}
_this3 . query = _this3 . value ;
_this3 . verifyProps ( ) ;
_this3 . setSearchButton ( ) ;
_this3 . setParentDisabled ( ) ;
_this3 . setParentRequired ( ) ;
_this3 . setParentPlaceholder ( ) ;
_this3 . handleMaxLength ( ) ;
_this3 . updateValues ( ) ;
} ) ) ;
}
} ; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
module . exports = exports [ 'default' ] ;
/***/ } ) ,
/***/ 157 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
var _common = _ _webpack _require _ _ ( 58 ) ;
var _common2 = _interopRequireDefault ( _common ) ;
var _getClosestVueParent = _ _webpack _require _ _ ( 10 ) ;
var _getClosestVueParent2 = _interopRequireDefault ( _getClosestVueParent ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
2017-06-22 10:58:45 +00:00
//
2017-06-19 16:27:45 +00:00
exports . default = {
name : 'md-input' ,
props : {
type : {
type : String ,
default : 'text'
}
} ,
mixins : [ _common2 . default ] ,
mounted : function mounted ( ) {
var _this = this ;
this . $nextTick ( ( function ( ) {
_this . parentContainer = ( 0 , _getClosestVueParent2 . default ) ( _this . $parent , 'md-input-container' ) ;
if ( ! _this . parentContainer ) {
_this . $destroy ( ) ;
throw new Error ( 'You should wrap the md-input in a md-input-container' ) ;
}
_this . parentContainer . inputInstance = _this ;
_this . setParentDisabled ( ) ;
_this . setParentRequired ( ) ;
_this . setParentPlaceholder ( ) ;
_this . handleMaxLength ( ) ;
_this . updateValues ( ) ;
} ) ) ;
}
} ;
2017-06-19 16:25:45 +00:00
module . exports = exports [ 'default' ] ;
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 158 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
2017-06-19 16:27:45 +00:00
var _mixin = _ _webpack _require _ _ ( 1 ) ;
var _mixin2 = _interopRequireDefault ( _mixin ) ;
var _isArray = _ _webpack _require _ _ ( 66 ) ;
var _isArray2 = _interopRequireDefault ( _isArray ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
exports . default = {
name : 'md-input-container' ,
props : {
mdInline : Boolean ,
mdHasPassword : Boolean ,
mdClearable : Boolean
} ,
mixins : [ _mixin2 . default ] ,
data : function data ( ) {
return {
value : '' ,
input : false ,
inputInstance : null ,
showPassword : false ,
enableCounter : false ,
hasSelect : false ,
hasPlaceholder : false ,
hasFile : false ,
isDisabled : false ,
isRequired : false ,
isFocused : false ,
counterLength : 0 ,
inputLength : 0
} ;
} ,
computed : {
hasValue : function hasValue ( ) {
if ( ( 0 , _isArray2 . default ) ( this . value ) ) {
return this . value . length > 0 ;
}
return Boolean ( this . value ) ;
} ,
classes : function classes ( ) {
return {
'md-input-inline' : this . mdInline ,
'md-has-password' : this . mdHasPassword ,
'md-clearable' : this . mdClearable ,
'md-has-select' : this . hasSelect ,
'md-has-file' : this . hasFile ,
'md-has-value' : this . hasValue ,
'md-input-placeholder' : this . hasPlaceholder ,
'md-input-disabled' : this . isDisabled ,
'md-input-required' : this . isRequired ,
'md-input-focused' : this . isFocused
} ;
}
} ,
methods : {
isInput : function isInput ( ) {
return this . input && this . input . tagName . toLowerCase ( ) === 'input' ;
} ,
togglePasswordType : function togglePasswordType ( ) {
if ( this . isInput ( ) ) {
if ( this . input . type === 'password' ) {
this . input . type = 'text' ;
this . showPassword = true ;
} else {
this . input . type = 'password' ;
this . showPassword = false ;
}
this . input . focus ( ) ;
}
} ,
clearInput : function clearInput ( ) {
this . inputInstance . $el . value = '' ;
this . inputInstance . $emit ( 'input' , '' ) ;
this . setValue ( '' ) ;
} ,
setValue : function setValue ( value ) {
this . value = value ;
}
} ,
mounted : function mounted ( ) {
this . input = this . $el . querySelectorAll ( 'input, textarea, select, .md-file' ) [ 0 ] ;
if ( ! this . input ) {
this . $destroy ( ) ;
throw new Error ( 'Missing input/select/textarea inside md-input-container' ) ;
}
}
} ;
module . exports = exports [ 'default' ] ;
/***/ } ) ,
/***/ 159 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
var _autosize = _ _webpack _require _ _ ( 115 ) ;
2017-06-19 16:25:45 +00:00
var _autosize2 = _interopRequireDefault ( _autosize ) ;
2017-06-19 16:27:45 +00:00
var _common = _ _webpack _require _ _ ( 58 ) ;
2017-06-19 16:25:45 +00:00
var _common2 = _interopRequireDefault ( _common ) ;
2017-06-19 16:27:45 +00:00
var _getClosestVueParent = _ _webpack _require _ _ ( 10 ) ;
2017-06-19 16:25:45 +00:00
var _getClosestVueParent2 = _interopRequireDefault ( _getClosestVueParent ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
exports . default = {
2017-06-19 16:27:45 +00:00
name : 'md-textarea' ,
2017-06-19 16:25:45 +00:00
mixins : [ _common2 . default ] ,
watch : {
value : function value ( ) {
var _this = this ;
this . $nextTick ( ( function ( ) {
2017-06-19 16:27:45 +00:00
return _autosize2 . default . update ( _this . $el ) ;
2017-06-19 16:25:45 +00:00
} ) ) ;
}
} ,
mounted : function mounted ( ) {
var _this2 = this ;
this . $nextTick ( ( function ( ) {
_this2 . parentContainer = ( 0 , _getClosestVueParent2 . default ) ( _this2 . $parent , 'md-input-container' ) ;
if ( ! _this2 . parentContainer ) {
_this2 . $destroy ( ) ;
throw new Error ( 'You should wrap the md-textarea in a md-input-container' ) ;
}
2017-06-19 16:27:45 +00:00
_this2 . parentContainer . inputInstance = _this2 ;
2017-06-19 16:25:45 +00:00
_this2 . setParentDisabled ( ) ;
_this2 . setParentRequired ( ) ;
_this2 . setParentPlaceholder ( ) ;
_this2 . handleMaxLength ( ) ;
_this2 . updateValues ( ) ;
if ( ! _this2 . $el . getAttribute ( 'rows' ) ) {
_this2 . $el . setAttribute ( 'rows' , '1' ) ;
}
( 0 , _autosize2 . default ) ( _this2 . $el ) ;
2017-06-19 16:27:45 +00:00
setTimeout ( ( function ( ) {
return _autosize2 . default . update ( _this2 . $el ) ;
} ) , 200 ) ;
2017-06-19 16:25:45 +00:00
} ) ) ;
} ,
beforeDestroy : function beforeDestroy ( ) {
_autosize2 . default . destroy ( this . $el ) ;
}
} ; //
//
//
//
//
//
//
//
//
//
//
//
//
2017-06-19 16:27:45 +00:00
//
module . exports = exports [ 'default' ] ;
/***/ } ) ,
/***/ 16 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ ( 2 )
, core = _ _webpack _require _ _ ( 4 )
, ctx = _ _webpack _require _ _ ( 28 )
, hide = _ _webpack _require _ _ ( 11 )
, PROTOTYPE = 'prototype' ;
var $export = function ( type , name , source ) {
var IS _FORCED = type & $export . F
, IS _GLOBAL = type & $export . G
, IS _STATIC = type & $export . S
, IS _PROTO = type & $export . P
, IS _BIND = type & $export . B
, IS _WRAP = type & $export . W
, exports = IS _GLOBAL ? core : core [ name ] || ( core [ name ] = { } )
, expProto = exports [ PROTOTYPE ]
, target = IS _GLOBAL ? global : IS _STATIC ? global [ name ] : ( global [ name ] || { } ) [ PROTOTYPE ]
, key , own , out ;
if ( IS _GLOBAL ) source = name ;
for ( key in source ) {
// contains in native
own = ! IS _FORCED && target && target [ key ] !== undefined ;
if ( own && key in exports ) continue ;
// export native or passed
out = own ? target [ key ] : source [ key ] ;
// prevent global pollution for namespaces
exports [ key ] = IS _GLOBAL && typeof target [ key ] != 'function' ? source [ key ]
// bind timers to global for call from export context
: IS _BIND && own ? ctx ( out , global )
// wrap global constructors for prevent change them in library
: IS _WRAP && target [ key ] == out ? ( function ( C ) {
var F = function ( a , b , c ) {
if ( this instanceof C ) {
switch ( arguments . length ) {
case 0 : return new C ;
case 1 : return new C ( a ) ;
case 2 : return new C ( a , b ) ;
} return new C ( a , b , c ) ;
} return C . apply ( this , arguments ) ;
} ;
F [ PROTOTYPE ] = C [ PROTOTYPE ] ;
return F ;
// make static versions for prototype methods
} ) ( out ) : IS _PROTO && typeof out == 'function' ? ctx ( Function . call , out ) : out ;
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
if ( IS _PROTO ) {
( exports . virtual || ( exports . virtual = { } ) ) [ key ] = out ;
// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
if ( type & $export . R && expProto && ! expProto [ key ] ) hide ( expProto , key , out ) ;
}
}
} ;
// type bitmap
$export . F = 1 ; // forced
$export . G = 2 ; // global
$export . S = 4 ; // static
$export . P = 8 ; // proto
$export . B = 16 ; // bind
$export . W = 32 ; // wrap
$export . U = 64 ; // safe
$export . R = 128 ; // real proto method for `library`
module . exports = $export ;
/***/ } ) ,
/***/ 17 :
/***/ ( function ( module , exports ) {
module . exports = function ( bitmap , value ) {
return {
enumerable : ! ( bitmap & 1 ) ,
configurable : ! ( bitmap & 2 ) ,
writable : ! ( bitmap & 4 ) ,
value : value
} ;
} ;
/***/ } ) ,
/***/ 18 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = _ _webpack _require _ _ ( 31 )
, enumBugKeys = _ _webpack _require _ _ ( 21 ) ;
module . exports = Object . keys || function keys ( O ) {
return $keys ( O , enumBugKeys ) ;
} ;
/***/ } ) ,
/***/ 19 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var shared = _ _webpack _require _ _ ( 22 ) ( 'keys' )
, uid = _ _webpack _require _ _ ( 20 ) ;
module . exports = function ( key ) {
return shared [ key ] || ( shared [ key ] = uid ( key ) ) ;
} ;
/***/ } ) ,
/***/ 2 :
/***/ ( function ( module , exports ) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module . exports = typeof window != 'undefined' && window . Math == Math
? window : typeof self != 'undefined' && self . Math == Math ? self : Function ( 'return this' ) ( ) ;
if ( typeof _ _g == 'number' ) _ _g = global ; // eslint-disable-line no-undef
/***/ } ) ,
/***/ 20 :
/***/ ( function ( module , exports ) {
var id = 0
, px = Math . random ( ) ;
module . exports = function ( key ) {
return 'Symbol(' . concat ( key === undefined ? '' : key , ')_' , ( ++ id + px ) . toString ( 36 ) ) ;
} ;
/***/ } ) ,
/***/ 204 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { "default" : _ _webpack _require _ _ ( 212 ) , _ _esModule : true } ;
/***/ } ) ,
/***/ 207 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
exports . _ _esModule = true ;
var _defineProperty = _ _webpack _require _ _ ( 204 ) ;
var _defineProperty2 = _interopRequireDefault ( _defineProperty ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
exports . default = function ( obj , key , value ) {
if ( key in obj ) {
( 0 , _defineProperty2 . default ) ( obj , key , {
value : value ,
enumerable : true ,
configurable : true ,
writable : true
} ) ;
} else {
obj [ key ] = value ;
}
return obj ;
} ;
/***/ } ) ,
/***/ 21 :
/***/ ( function ( module , exports ) {
// IE 8- don't enum bug keys
module . exports = (
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
) . split ( ',' ) ;
/***/ } ) ,
/***/ 212 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
_ _webpack _require _ _ ( 223 ) ;
var $Object = _ _webpack _require _ _ ( 4 ) . Object ;
module . exports = function defineProperty ( it , key , desc ) {
return $Object . defineProperty ( it , key , desc ) ;
} ;
/***/ } ) ,
/***/ 22 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ ( 2 )
, SHARED = '__core-js_shared__'
, store = global [ SHARED ] || ( global [ SHARED ] = { } ) ;
module . exports = function ( key ) {
return store [ key ] || ( store [ key ] = { } ) ;
} ;
/***/ } ) ,
/***/ 223 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var $export = _ _webpack _require _ _ ( 16 ) ;
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
$export ( $export . S + $export . F * ! _ _webpack _require _ _ ( 3 ) , 'Object' , { defineProperty : _ _webpack _require _ _ ( 9 ) . f } ) ;
/***/ } ) ,
/***/ 23 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
// 7.1.13 ToObject(argument)
var defined = _ _webpack _require _ _ ( 14 ) ;
module . exports = function ( it ) {
return Object ( defined ( it ) ) ;
} ;
/***/ } ) ,
/***/ 237 :
/***/ ( function ( module , exports ) {
// removed by extract-text-webpack-plugin
/***/ } ) ,
/***/ 24 :
/***/ ( function ( module , exports ) {
var toString = { } . toString ;
module . exports = function ( it ) {
return toString . call ( it ) . slice ( 8 , - 1 ) ;
} ;
/***/ } ) ,
/***/ 25 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var isObject = _ _webpack _require _ _ ( 6 )
, document = _ _webpack _require _ _ ( 2 ) . document
// in old IE typeof document.createElement is 'object'
, is = isObject ( document ) && isObject ( document . createElement ) ;
module . exports = function ( it ) {
return is ? document . createElement ( it ) : { } ;
} ;
/***/ } ) ,
/***/ 26 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = _ _webpack _require _ _ ( 24 ) ;
module . exports = Object ( 'z' ) . propertyIsEnumerable ( 0 ) ? Object : function ( it ) {
return cof ( it ) == 'String' ? it . split ( '' ) : Object ( it ) ;
} ;
/***/ } ) ,
/***/ 27 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = _ _webpack _require _ _ ( 6 ) ;
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module . exports = function ( it , S ) {
if ( ! isObject ( it ) ) return it ;
var fn , val ;
if ( S && typeof ( fn = it . toString ) == 'function' && ! isObject ( val = fn . call ( it ) ) ) return val ;
if ( typeof ( fn = it . valueOf ) == 'function' && ! isObject ( val = fn . call ( it ) ) ) return val ;
if ( ! S && typeof ( fn = it . toString ) == 'function' && ! isObject ( val = fn . call ( it ) ) ) return val ;
throw TypeError ( "Can't convert object to primitive value" ) ;
} ;
/***/ } ) ,
/***/ 277 :
/***/ ( function ( module , exports ) {
2017-06-22 10:58:45 +00:00
module . exports = ".THEME_NAME.md-input-container.md-input-invalid:after {\n background-color: WARN-COLOR; }\n\n.THEME_NAME.md-input-container.md-input-invalid label,\n.THEME_NAME.md-input-container.md-input-invalid input,\n.THEME_NAME.md-input-container.md-input-invalid textarea,\n.THEME_NAME.md-input-container.md-input-invalid .md-error,\n.THEME_NAME.md-input-container.md-input-invalid .md-count,\n.THEME_NAME.md-input-container.md-input-invalid .md-icon:not(.md-icon-delete) {\n color: WARN-COLOR; }\n\n.THEME_NAME.md-input-container.md-input-focused.md-input-inline label {\n color: rgba(0, 0, 0, 0.54); }\n\n.THEME_NAME.md-input-container.md-input-focused.md-input-required label:after {\n color: WARN-COLOR; }\n\n.THEME_NAME.md-input-container.md-input-focused:after {\n height: 2px;\n background-color: PRIMARY-COLOR; }\n\n.THEME_NAME.md-input-container.md-input-focused input,\n.THEME_NAME.md-input-container.md-input-focused textarea {\n color: PRIMARY-COLOR;\n text-shadow: 0 0 0 BACKGROUND-CONTRAST;\n -webkit-text-fill-color: transparent; }\n\n.THEME_NAME.md-input-container.md-input-focused label,\n.THEME_NAME.md-input-container.md-input-focused .md-icon:not(.md-icon-delete) {\n color: PRIMARY-COLOR; }\n\n.THEME_NAME.md-input-container.md-input-disabled label,\n.THEME_NAME.md-input-container.md-input-disabled input,\n.THEME_NAME.md-input-container.md-input-disabled textarea,\n.THEME_NAME.md-input-container.md-input-disabled .md-error,\n.THEME_NAME.md-input-container.md-input-disabled .md-count,\n.THEME_NAME.md-input-container.md-input-disabled .md-icon:not(.md-icon-delete),\n.THEME_NAME.md-input-container.md-input-disabled ::-webkit-input-placeholder {\n color: BACKGROUND-CONTRAST-0.38; }\n"
2017-06-19 16:27:45 +00:00
/***/ } ) ,
/***/ 28 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
// optional / simple context binding
var aFunction = _ _webpack _require _ _ ( 33 ) ;
module . exports = function ( fn , that , length ) {
aFunction ( fn ) ;
if ( that === undefined ) return fn ;
switch ( length ) {
case 1 : return function ( a ) {
return fn . call ( that , a ) ;
} ;
case 2 : return function ( a , b ) {
return fn . call ( that , a , b ) ;
} ;
case 3 : return function ( a , b , c ) {
return fn . call ( that , a , b , c ) ;
} ;
}
return function ( /* ...args */ ) {
return fn . apply ( that , arguments ) ;
} ;
} ;
/***/ } ) ,
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
/***/ 29 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
// 7.1.15 ToLength
var toInteger = _ _webpack _require _ _ ( 15 )
, min = Math . min ;
module . exports = function ( it ) {
return it > 0 ? min ( toInteger ( it ) , 0x1fffffffffffff ) : 0 ; // pow(2, 53) - 1 == 9007199254740991
} ;
2017-06-19 16:25:45 +00:00
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 3 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
// Thank's IE8 for his funny defineProperty
module . exports = ! _ _webpack _require _ _ ( 5 ) ( ( function ( ) {
return Object . defineProperty ( { } , 'a' , { get : function ( ) { return 7 ; } } ) . a != 7 ;
} ) ) ;
2017-06-19 16:25:45 +00:00
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 30 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = ! _ _webpack _require _ _ ( 3 ) && ! _ _webpack _require _ _ ( 5 ) ( ( function ( ) {
return Object . defineProperty ( _ _webpack _require _ _ ( 25 ) ( 'div' ) , 'a' , { get : function ( ) { return 7 ; } } ) . a != 7 ;
} ) ) ;
/***/ } ) ,
/***/ 31 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var has = _ _webpack _require _ _ ( 8 )
, toIObject = _ _webpack _require _ _ ( 7 )
, arrayIndexOf = _ _webpack _require _ _ ( 34 ) ( false )
, IE _PROTO = _ _webpack _require _ _ ( 19 ) ( 'IE_PROTO' ) ;
module . exports = function ( object , names ) {
var O = toIObject ( object )
, i = 0
, result = [ ]
, key ;
for ( key in O ) if ( key != IE _PROTO ) has ( O , key ) && result . push ( key ) ;
// Don't enum bug & hidden keys
while ( names . length > i ) if ( has ( O , key = names [ i ++ ] ) ) {
~ arrayIndexOf ( result , key ) || result . push ( key ) ;
}
return result ;
} ;
/***/ } ) ,
/***/ 326 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var disposed = false
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
_ _webpack _require _ _ ( 156 ) ,
/* template */
_ _webpack _require _ _ ( 392 ) ,
/* styles */
null ,
/* scopeId */
null ,
/* moduleIdentifier (server only) */
null
)
Component . options . _ _file = "/Users/pablohpsilva/Code/vue-material/src/components/mdInputContainer/mdAutocomplete.vue"
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key . substr ( 0 , 2 ) !== "__" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdAutocomplete.vue: functional components are not supported with templates, they should use render functions." ) }
/* 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 ) {
hotAPI . createRecord ( "data-v-27018515" , Component . options )
} else {
hotAPI . reload ( "data-v-27018515" , Component . options )
}
module . hot . dispose ( ( function ( data ) {
disposed = true
} ) )
} ) ( ) }
module . exports = Component . exports
2017-06-19 16:25:45 +00:00
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 327 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
2017-06-19 16:27:45 +00:00
var disposed = false
2017-06-19 16:25:45 +00:00
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
2017-06-19 16:27:45 +00:00
_ _webpack _require _ _ ( 157 ) ,
2017-06-19 16:25:45 +00:00
/* template */
2017-06-19 16:27:45 +00:00
_ _webpack _require _ _ ( 390 ) ,
/* styles */
null ,
2017-06-19 16:25:45 +00:00
/* scopeId */
null ,
2017-06-19 16:27:45 +00:00
/* moduleIdentifier (server only) */
2017-06-19 16:25:45 +00:00
null
)
2017-06-19 16:27:45 +00:00
Component . options . _ _file = "/Users/pablohpsilva/Code/vue-material/src/components/mdInputContainer/mdInput.vue"
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key . substr ( 0 , 2 ) !== "__" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
2017-06-19 16:25:45 +00:00
if ( Component . options . functional ) { console . error ( "[vue-loader] mdInput.vue: functional components are not supported with templates, they should use render functions." ) }
/* 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 ) {
hotAPI . createRecord ( "data-v-22df0c6d" , Component . options )
} else {
hotAPI . reload ( "data-v-22df0c6d" , Component . options )
}
2017-06-19 16:27:45 +00:00
module . hot . dispose ( ( function ( data ) {
disposed = true
} ) )
2017-06-19 16:25:45 +00:00
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 328 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
2017-06-19 16:27:45 +00:00
var disposed = false
function injectStyle ( ssrContext ) {
if ( disposed ) return
_ _webpack _require _ _ ( 237 )
}
2017-06-19 16:25:45 +00:00
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
2017-06-19 16:27:45 +00:00
_ _webpack _require _ _ ( 158 ) ,
2017-06-19 16:25:45 +00:00
/* template */
2017-06-19 16:27:45 +00:00
_ _webpack _require _ _ ( 393 ) ,
/* styles */
injectStyle ,
2017-06-19 16:25:45 +00:00
/* scopeId */
null ,
2017-06-19 16:27:45 +00:00
/* moduleIdentifier (server only) */
2017-06-19 16:25:45 +00:00
null
)
2017-06-19 16:27:45 +00:00
Component . options . _ _file = "/Users/pablohpsilva/Code/vue-material/src/components/mdInputContainer/mdInputContainer.vue"
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key . substr ( 0 , 2 ) !== "__" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
2017-06-19 16:25:45 +00:00
if ( Component . options . functional ) { console . error ( "[vue-loader] mdInputContainer.vue: functional components are not supported with templates, they should use render functions." ) }
/* 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 ) {
hotAPI . createRecord ( "data-v-271c2778" , Component . options )
} else {
hotAPI . reload ( "data-v-271c2778" , Component . options )
}
2017-06-19 16:27:45 +00:00
module . hot . dispose ( ( function ( data ) {
disposed = true
} ) )
2017-06-19 16:25:45 +00:00
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 329 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
2017-06-19 16:27:45 +00:00
var disposed = false
2017-06-19 16:25:45 +00:00
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
2017-06-19 16:27:45 +00:00
_ _webpack _require _ _ ( 159 ) ,
2017-06-19 16:25:45 +00:00
/* template */
2017-06-19 16:27:45 +00:00
_ _webpack _require _ _ ( 425 ) ,
/* styles */
null ,
2017-06-19 16:25:45 +00:00
/* scopeId */
null ,
2017-06-19 16:27:45 +00:00
/* moduleIdentifier (server only) */
2017-06-19 16:25:45 +00:00
null
)
2017-06-19 16:27:45 +00:00
Component . options . _ _file = "/Users/pablohpsilva/Code/vue-material/src/components/mdInputContainer/mdTextarea.vue"
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key . substr ( 0 , 2 ) !== "__" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
2017-06-19 16:25:45 +00:00
if ( Component . options . functional ) { console . error ( "[vue-loader] mdTextarea.vue: functional components are not supported with templates, they should use render functions." ) }
/* 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 ) {
hotAPI . createRecord ( "data-v-6243e5e7" , Component . options )
} else {
hotAPI . reload ( "data-v-6243e5e7" , Component . options )
}
2017-06-19 16:27:45 +00:00
module . hot . dispose ( ( function ( data ) {
disposed = true
} ) )
2017-06-19 16:25:45 +00:00
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 33 :
/***/ ( function ( module , exports ) {
module . exports = function ( it ) {
if ( typeof it != 'function' ) throw TypeError ( it + ' is not a function!' ) ;
return it ;
} ;
/***/ } ) ,
/***/ 34 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
// false -> Array#indexOf
// true -> Array#includes
var toIObject = _ _webpack _require _ _ ( 7 )
, toLength = _ _webpack _require _ _ ( 29 )
, toIndex = _ _webpack _require _ _ ( 35 ) ;
module . exports = function ( IS _INCLUDES ) {
return function ( $this , el , fromIndex ) {
var O = toIObject ( $this )
, length = toLength ( O . length )
, index = toIndex ( fromIndex , length )
, value ;
// Array#includes uses SameValueZero equality algorithm
if ( IS _INCLUDES && el != el ) while ( length > index ) {
value = O [ index ++ ] ;
if ( value != value ) return true ;
// Array#toIndex ignores holes, Array#includes - not
} else for ( ; length > index ; index ++ ) if ( IS _INCLUDES || index in O ) {
if ( O [ index ] === el ) return IS _INCLUDES || index || 0 ;
} return ! IS _INCLUDES && - 1 ;
} ;
} ;
/***/ } ) ,
/***/ 35 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var toInteger = _ _webpack _require _ _ ( 15 )
, max = Math . max
, min = Math . min ;
module . exports = function ( index , length ) {
index = toInteger ( index ) ;
return index < 0 ? max ( index + length , 0 ) : min ( index , length ) ;
} ;
/***/ } ) ,
/***/ 390 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'input' , {
staticClass : "md-input" ,
attrs : {
"type" : _vm . type ,
2017-06-22 10:58:45 +00:00
"name" : _vm . name ,
2017-06-19 16:25:45 +00:00
"disabled" : _vm . disabled ,
"required" : _vm . required ,
"placeholder" : _vm . placeholder ,
2017-06-19 16:27:45 +00:00
"maxlength" : _vm . maxlength ,
"readonly" : _vm . readonly
2017-06-19 16:25:45 +00:00
} ,
domProps : {
"value" : _vm . value
} ,
on : {
"focus" : _vm . onFocus ,
"blur" : _vm . onBlur ,
"input" : _vm . onInput ,
"keydown" : [ function ( $event ) {
2017-06-19 16:27:45 +00:00
if ( ! ( 'button' in $event ) && _vm . _k ( $event . keyCode , "up" , 38 ) ) { return null ; }
2017-06-19 16:25:45 +00:00
_vm . onInput ( $event )
} , function ( $event ) {
2017-06-19 16:27:45 +00:00
if ( ! ( 'button' in $event ) && _vm . _k ( $event . keyCode , "down" , 40 ) ) { return null ; }
2017-06-19 16:25:45 +00:00
_vm . onInput ( $event )
} ]
}
} )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-22df0c6d" , module . exports )
}
}
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 392 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-autocomplete" ,
on : {
"focus" : _vm . onFocus ,
"blur" : _vm . onBlur
}
} , [ _c ( 'md-menu' , {
ref : "menu" ,
staticClass : "md-autocomplete-menu" ,
attrs : {
"md-offset-x" : 8 ,
"md-offset-y" : "45"
}
} , [ _c ( 'span' , {
attrs : {
"md-menu-trigger" : ""
}
} ) , _vm . _v ( " " ) , _c ( 'input' , {
directives : [ {
name : "model" ,
rawName : "v-model" ,
value : ( _vm . query ) ,
expression : "query"
} ] ,
ref : "input" ,
staticClass : "md-input" ,
attrs : {
"type" : "text" ,
"disabled" : _vm . disabled ,
"required" : _vm . required ,
"placeholder" : _vm . placeholder ,
"maxlength" : _vm . maxlength ,
"name" : _vm . name
} ,
domProps : {
"value" : ( _vm . query )
} ,
on : {
"focus" : _vm . onFocus ,
"blur" : _vm . onBlur ,
"input" : [ function ( $event ) {
if ( $event . target . composing ) { return ; }
_vm . query = $event . target . value
} , _vm . debounceUpdate ]
}
} ) , _vm . _v ( " " ) , _c ( 'md-menu-content' , _vm . _l ( ( _vm . items ) , ( function ( item ) {
return ( _vm . items . length ) ? _c ( 'md-menu-item' , {
key : item ,
on : {
"keyup" : function ( $event ) {
if ( ! ( 'button' in $event ) && _vm . _k ( $event . keyCode , "enter" , 13 ) ) { return null ; }
_vm . hit ( item )
2017-06-22 10:58:45 +00:00
} ,
2017-06-19 16:27:45 +00:00
"click" : function ( $event ) {
_vm . hit ( item )
}
}
} , [ _vm . _v ( "\n " + _vm . _s ( item [ _vm . printAttribute ] ) + "\n " ) ] ) : _vm . _e ( )
} ) ) ) ] , 1 ) ] , 1 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-27018515" , module . exports )
}
}
/***/ } ) ,
/***/ 393 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-input-container" ,
class : [ _vm . themeClass , _vm . classes ]
} , [ _vm . _t ( "default" ) , _vm . _v ( " " ) , ( _vm . enableCounter ) ? _c ( 'span' , {
staticClass : "md-count"
} , [ _vm . _v ( _vm . _s ( _vm . inputLength ) + " / " + _vm . _s ( _vm . counterLength ) ) ] ) : _vm . _e ( ) , _vm . _v ( " " ) , ( _vm . mdHasPassword ) ? _c ( 'md-button' , {
staticClass : "md-icon-button md-toggle-password" ,
2017-06-22 10:58:45 +00:00
on : {
"click" : _vm . togglePasswordType
2017-06-19 16:25:45 +00:00
}
2017-06-19 16:27:45 +00:00
} , [ _c ( 'md-icon' , [ _vm . _v ( _vm . _s ( _vm . showPassword ? 'visibility_off' : 'visibility' ) ) ] ) ] , 1 ) : _vm . _e ( ) , _vm . _v ( " " ) , ( _vm . mdClearable && _vm . hasValue ) ? _c ( 'md-button' , {
staticClass : "md-icon-button md-clear-input" ,
2017-06-22 10:58:45 +00:00
on : {
"click" : _vm . clearInput
2017-06-19 16:27:45 +00:00
}
} , [ _c ( 'md-icon' , [ _vm . _v ( "clear" ) ] ) ] , 1 ) : _vm . _e ( ) ] , 2 )
2017-06-19 16:25:45 +00:00
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-271c2778" , module . exports )
}
}
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 4 :
/***/ ( function ( module , exports ) {
var core = module . exports = { version : '2.4.0' } ;
if ( typeof _ _e == 'number' ) _ _e = core ; // eslint-disable-line no-undef
/***/ } ) ,
/***/ 40 :
/***/ ( function ( module , exports ) {
exports . f = { } . propertyIsEnumerable ;
/***/ } ) ,
/***/ 425 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'textarea' , {
staticClass : "md-input" ,
attrs : {
"disabled" : _vm . disabled ,
"required" : _vm . required ,
"placeholder" : _vm . placeholder ,
2017-06-19 16:27:45 +00:00
"maxlength" : _vm . maxlength ,
"readonly" : _vm . readonly
2017-06-19 16:25:45 +00:00
} ,
domProps : {
"value" : _vm . value
} ,
on : {
"focus" : _vm . onFocus ,
"blur" : _vm . onBlur ,
"input" : _vm . onInput
}
} )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-6243e5e7" , module . exports )
}
}
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 45 :
/***/ ( function ( module , exports ) {
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
exports . f = Object . getOwnPropertySymbols ;
2017-06-19 16:25:45 +00:00
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 460 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
2017-06-19 16:27:45 +00:00
module . exports = _ _webpack _require _ _ ( 93 ) ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
/***/ } ) ,
/***/ 5 :
/***/ ( function ( module , exports ) {
module . exports = function ( exec ) {
try {
return ! ! exec ( ) ;
} catch ( e ) {
return true ;
}
2017-06-19 16:25:45 +00:00
} ;
2017-06-19 16:27:45 +00:00
/***/ } ) ,
/***/ 51 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { "default" : _ _webpack _require _ _ ( 59 ) , _ _esModule : true } ;
2017-06-19 16:25:45 +00:00
/***/ } ) ,
2017-06-19 16:27:45 +00:00
/***/ 58 :
2017-06-19 16:25:45 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
exports . default = {
props : {
value : [ String , Number ] ,
2017-06-19 16:27:45 +00:00
debounce : {
type : Number ,
default : 3E2
} ,
2017-06-19 16:25:45 +00:00
disabled : Boolean ,
required : Boolean ,
maxlength : [ Number , String ] ,
2017-06-19 16:27:45 +00:00
name : String ,
placeholder : String ,
readonly : Boolean
} ,
data : function data ( ) {
return {
timeout : 0
} ;
2017-06-19 16:25:45 +00:00
} ,
2017-06-19 16:27:45 +00:00
2017-06-19 16:25:45 +00:00
watch : {
2017-06-19 16:27:45 +00:00
value : function value ( ) {
this . updateValues ( ) ;
2017-06-19 16:25:45 +00:00
} ,
disabled : function disabled ( ) {
this . setParentDisabled ( ) ;
} ,
required : function required ( ) {
this . setParentRequired ( ) ;
} ,
placeholder : function placeholder ( ) {
this . setParentPlaceholder ( ) ;
} ,
maxlength : function maxlength ( ) {
this . handleMaxLength ( ) ;
}
} ,
methods : {
handleMaxLength : function handleMaxLength ( ) {
this . parentContainer . enableCounter = this . maxlength > 0 ;
this . parentContainer . counterLength = this . maxlength ;
} ,
2017-06-19 16:27:45 +00:00
lazyEventEmitter : function lazyEventEmitter ( ) {
var _this = this ;
if ( this . timeout ) {
window . clearTimeout ( this . timeout ) ;
}
this . timeout = window . setTimeout ( ( function ( ) {
_this . $emit ( 'change' , _this . $el . value ) ;
_this . $emit ( 'input' , _this . $el . value ) ;
} ) , this . debounce ) ;
} ,
2017-06-19 16:25:45 +00:00
setParentValue : function setParentValue ( value ) {
this . parentContainer . setValue ( value || this . $el . value ) ;
} ,
setParentDisabled : function setParentDisabled ( ) {
this . parentContainer . isDisabled = this . disabled ;
} ,
setParentRequired : function setParentRequired ( ) {
this . parentContainer . isRequired = this . required ;
} ,
setParentPlaceholder : function setParentPlaceholder ( ) {
this . parentContainer . hasPlaceholder = ! ! this . placeholder ;
} ,
2017-06-19 16:27:45 +00:00
updateValues : function updateValues ( ) {
var _this2 = this ;
2017-06-19 16:25:45 +00:00
2017-06-19 16:27:45 +00:00
this . $nextTick ( ( function ( ) {
var newValue = _this2 . $el . value || _this2 . value ;
_this2 . setParentValue ( newValue ) ;
_this2 . parentContainer . inputLength = newValue ? newValue . length : 0 ;
} ) ) ;
2017-06-19 16:25:45 +00:00
} ,
onFocus : function onFocus ( ) {
if ( this . parentContainer ) {
this . parentContainer . isFocused = true ;
}
} ,
onBlur : function onBlur ( ) {
this . parentContainer . isFocused = false ;
this . setParentValue ( ) ;
} ,
onInput : function onInput ( ) {
this . updateValues ( ) ;
2017-06-19 16:27:45 +00:00
this . lazyEventEmitter ( ) ;
2017-06-19 16:25:45 +00:00
}
}
} ;
module . exports = exports [ 'default' ] ;
2017-06-19 16:27:45 +00:00
/***/ } ) ,
/***/ 59 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
_ _webpack _require _ _ ( 64 ) ;
module . exports = _ _webpack _require _ _ ( 4 ) . Object . assign ;
/***/ } ) ,
/***/ 6 :
/***/ ( function ( module , exports ) {
module . exports = function ( it ) {
return typeof it === 'object' ? it !== null : typeof it === 'function' ;
} ;
/***/ } ) ,
/***/ 61 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
// 19.1.2.1 Object.assign(target, source, ...)
var getKeys = _ _webpack _require _ _ ( 18 )
, gOPS = _ _webpack _require _ _ ( 45 )
, pIE = _ _webpack _require _ _ ( 40 )
, toObject = _ _webpack _require _ _ ( 23 )
, IObject = _ _webpack _require _ _ ( 26 )
, $assign = Object . assign ;
// should work with symbols and should have deterministic property order (V8 bug)
module . exports = ! $assign || _ _webpack _require _ _ ( 5 ) ( ( function ( ) {
var A = { }
, B = { }
, S = Symbol ( )
, K = 'abcdefghijklmnopqrst' ;
A [ S ] = 7 ;
K . split ( '' ) . forEach ( ( function ( k ) { B [ k ] = k ; } ) ) ;
return $assign ( { } , A ) [ S ] != 7 || Object . keys ( $assign ( { } , B ) ) . join ( '' ) != K ;
} ) ) ? function assign ( target , source ) { // eslint-disable-line no-unused-vars
var T = toObject ( target )
, aLen = arguments . length
, index = 1
, getSymbols = gOPS . f
, isEnum = pIE . f ;
while ( aLen > index ) {
var S = IObject ( arguments [ index ++ ] )
, keys = getSymbols ? getKeys ( S ) . concat ( getSymbols ( S ) ) : getKeys ( S )
, length = keys . length
, j = 0
, key ;
while ( length > j ) if ( isEnum . call ( S , key = keys [ j ++ ] ) ) T [ key ] = S [ key ] ;
} return T ;
} : $assign ;
/***/ } ) ,
/***/ 64 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
// 19.1.3.1 Object.assign(target, source)
var $export = _ _webpack _require _ _ ( 16 ) ;
$export ( $export . S + $export . F , 'Object' , { assign : _ _webpack _require _ _ ( 61 ) } ) ;
/***/ } ) ,
/***/ 66 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
var isArray = function isArray ( value ) {
return value && value . constructor === Array ;
} ;
exports . default = isArray ;
module . exports = exports [ "default" ] ;
/***/ } ) ,
/***/ 7 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = _ _webpack _require _ _ ( 26 )
, defined = _ _webpack _require _ _ ( 14 ) ;
module . exports = function ( it ) {
return IObject ( defined ( it ) ) ;
} ;
/***/ } ) ,
/***/ 8 :
/***/ ( function ( module , exports ) {
var hasOwnProperty = { } . hasOwnProperty ;
module . exports = function ( it , key ) {
return hasOwnProperty . call ( it , key ) ;
} ;
/***/ } ) ,
/***/ 9 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var anObject = _ _webpack _require _ _ ( 13 )
, IE8 _DOM _DEFINE = _ _webpack _require _ _ ( 30 )
, toPrimitive = _ _webpack _require _ _ ( 27 )
, dP = Object . defineProperty ;
exports . f = _ _webpack _require _ _ ( 3 ) ? Object . defineProperty : function defineProperty ( O , P , Attributes ) {
anObject ( O ) ;
P = toPrimitive ( P , true ) ;
anObject ( Attributes ) ;
if ( IE8 _DOM _DEFINE ) try {
return dP ( O , P , Attributes ) ;
} catch ( e ) { /* empty */ }
if ( 'get' in Attributes || 'set' in Attributes ) throw TypeError ( 'Accessors not supported!' ) ;
if ( 'value' in Attributes ) O [ P ] = Attributes . value ;
return O ;
} ;
/***/ } ) ,
/***/ 93 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
exports . default = install ;
var _mdInputContainer = _ _webpack _require _ _ ( 328 ) ;
var _mdInputContainer2 = _interopRequireDefault ( _mdInputContainer ) ;
var _mdInput = _ _webpack _require _ _ ( 327 ) ;
var _mdInput2 = _interopRequireDefault ( _mdInput ) ;
var _mdAutocomplete = _ _webpack _require _ _ ( 326 ) ;
var _mdAutocomplete2 = _interopRequireDefault ( _mdAutocomplete ) ;
var _mdTextarea = _ _webpack _require _ _ ( 329 ) ;
var _mdTextarea2 = _interopRequireDefault ( _mdTextarea ) ;
var _mdInputContainer3 = _ _webpack _require _ _ ( 277 ) ;
var _mdInputContainer4 = _interopRequireDefault ( _mdInputContainer3 ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
function install ( Vue ) {
Vue . component ( 'md-input-container' , _mdInputContainer2 . default ) ;
Vue . component ( 'md-input' , _mdInput2 . default ) ;
Vue . component ( 'md-autocomplete' , _mdAutocomplete2 . default ) ;
Vue . component ( 'md-textarea' , _mdTextarea2 . default ) ;
Vue . material . styles . push ( _mdInputContainer4 . default ) ;
}
module . exports = exports [ 'default' ] ;
2017-06-19 16:25:45 +00:00
/***/ } )
/******/ } ) ;
} ) ) ;