Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
7d7d79e4
Commit
7d7d79e4
authored
Apr 20, 2015
by
Azamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated vue.js to v0.11.6
parent
7cb5234b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
550 additions
and
218 deletions
+550
-218
examples/vue/node_modules/todomvc-app-css/index.css
examples/vue/node_modules/todomvc-app-css/index.css
+1
-17
examples/vue/node_modules/vue/dist/vue.js
examples/vue/node_modules/vue/dist/vue.js
+549
-201
No files found.
examples/vue/node_modules/todomvc-app-css/index.css
View file @
7d7d79e4
...
@@ -15,11 +15,9 @@ button {
...
@@ -15,11 +15,9 @@ button {
font-weight
:
inherit
;
font-weight
:
inherit
;
color
:
inherit
;
color
:
inherit
;
-webkit-appearance
:
none
;
-webkit-appearance
:
none
;
-ms-appearance
:
none
;
appearance
:
none
;
appearance
:
none
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-ms-font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
}
}
...
@@ -33,7 +31,6 @@ body {
...
@@ -33,7 +31,6 @@ body {
margin
:
0
auto
;
margin
:
0
auto
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-ms-font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
font-weight
:
300
;
font-weight
:
300
;
}
}
...
@@ -83,7 +80,6 @@ input[type="checkbox"] {
...
@@ -83,7 +80,6 @@ input[type="checkbox"] {
color
:
rgba
(
175
,
47
,
47
,
0.15
);
color
:
rgba
(
175
,
47
,
47
,
0.15
);
-webkit-text-rendering
:
optimizeLegibility
;
-webkit-text-rendering
:
optimizeLegibility
;
-moz-text-rendering
:
optimizeLegibility
;
-moz-text-rendering
:
optimizeLegibility
;
-ms-text-rendering
:
optimizeLegibility
;
text-rendering
:
optimizeLegibility
;
text-rendering
:
optimizeLegibility
;
}
}
...
@@ -102,11 +98,9 @@ input[type="checkbox"] {
...
@@ -102,11 +98,9 @@ input[type="checkbox"] {
padding
:
6px
;
padding
:
6px
;
border
:
1px
solid
#999
;
border
:
1px
solid
#999
;
box-shadow
:
inset
0
-1px
5px
0
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
inset
0
-1px
5px
0
rgba
(
0
,
0
,
0
,
0.2
);
-ms-box-sizing
:
border-box
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-ms-font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
}
}
...
@@ -191,7 +185,6 @@ label[for='toggle-all'] {
...
@@ -191,7 +185,6 @@ label[for='toggle-all'] {
margin
:
auto
0
;
margin
:
auto
0
;
border
:
none
;
/* Mobile Safari */
border
:
none
;
/* Mobile Safari */
-webkit-appearance
:
none
;
-webkit-appearance
:
none
;
-ms-appearance
:
none
;
appearance
:
none
;
appearance
:
none
;
}
}
...
@@ -323,19 +316,10 @@ html #clear-completed:active {
...
@@ -323,19 +316,10 @@ html #clear-completed:active {
line-height
:
20px
;
line-height
:
20px
;
text-decoration
:
none
;
text-decoration
:
none
;
cursor
:
pointer
;
cursor
:
pointer
;
visibility
:
hidden
;
position
:
relative
;
position
:
relative
;
}
}
#clear-completed
::after
{
#clear-completed
:hover
{
visibility
:
visible
;
content
:
'Clear completed'
;
position
:
absolute
;
right
:
0
;
white-space
:
nowrap
;
}
#clear-completed
:hover::after
{
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
...
...
examples/vue/node_modules/vue/dist/vue.js
View file @
7d7d79e4
/**
/**
* Vue.js v0.11.
5
* Vue.js v0.11.
6
* (c) 2015 Evan You
* (c) 2015 Evan You
* Released under the MIT License.
* Released under the MIT License.
*/
*/
...
@@ -17,41 +17,41 @@
...
@@ -17,41 +17,41 @@
return
/******/
(
function
(
modules
)
{
// webpackBootstrap
return
/******/
(
function
(
modules
)
{
// webpackBootstrap
/******/
// The module cache
/******/
// The module cache
/******/
var
installedModules
=
{};
/******/
var
installedModules
=
{};
/******/
/******/
// The require function
/******/
// The require function
/******/
function
__webpack_require__
(
moduleId
)
{
/******/
function
__webpack_require__
(
moduleId
)
{
/******/
/******/
// Check if module is in cache
/******/
// Check if module is in cache
/******/
if
(
installedModules
[
moduleId
])
/******/
if
(
installedModules
[
moduleId
])
/******/
return
installedModules
[
moduleId
].
exports
;
/******/
return
installedModules
[
moduleId
].
exports
;
/******/
/******/
// Create a new module (and put it into the cache)
/******/
// Create a new module (and put it into the cache)
/******/
var
module
=
installedModules
[
moduleId
]
=
{
/******/
var
module
=
installedModules
[
moduleId
]
=
{
/******/
exports
:
{},
/******/
exports
:
{},
/******/
id
:
moduleId
,
/******/
id
:
moduleId
,
/******/
loaded
:
false
/******/
loaded
:
false
/******/
};
/******/
};
/******/
/******/
// Execute the module function
/******/
// Execute the module function
/******/
modules
[
moduleId
].
call
(
module
.
exports
,
module
,
module
.
exports
,
__webpack_require__
);
/******/
modules
[
moduleId
].
call
(
module
.
exports
,
module
,
module
.
exports
,
__webpack_require__
);
/******/
/******/
// Flag the module as loaded
/******/
// Flag the module as loaded
/******/
module
.
loaded
=
true
;
/******/
module
.
loaded
=
true
;
/******/
/******/
// Return the exports of the module
/******/
// Return the exports of the module
/******/
return
module
.
exports
;
/******/
return
module
.
exports
;
/******/
}
/******/
}
/******/
/******/
/******/
// expose the modules object (__webpack_modules__)
/******/
// expose the modules object (__webpack_modules__)
/******/
__webpack_require__
.
m
=
modules
;
/******/
__webpack_require__
.
m
=
modules
;
/******/
/******/
// expose the module cache
/******/
// expose the module cache
/******/
__webpack_require__
.
c
=
installedModules
;
/******/
__webpack_require__
.
c
=
installedModules
;
/******/
/******/
// __webpack_public_path__
/******/
// __webpack_public_path__
/******/
__webpack_require__
.
p
=
""
;
/******/
__webpack_require__
.
p
=
""
;
/******/
/******/
// Load entry module and return exports
/******/
// Load entry module and return exports
/******/
return
__webpack_require__
(
0
);
/******/
return
__webpack_require__
(
0
);
/******/
})
/******/
})
...
@@ -191,7 +191,11 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -191,7 +191,11 @@ return /******/ (function(modules) { // webpackBootstrap
exports
.
extend
=
function
(
extendOptions
)
{
exports
.
extend
=
function
(
extendOptions
)
{
extendOptions
=
extendOptions
||
{}
extendOptions
=
extendOptions
||
{}
var
Super
=
this
var
Super
=
this
var
Sub
=
createClass
(
extendOptions
.
name
||
'
VueComponent
'
)
var
Sub
=
createClass
(
extendOptions
.
name
||
Super
.
options
.
name
||
'
VueComponent
'
)
Sub
.
prototype
=
Object
.
create
(
Super
.
prototype
)
Sub
.
prototype
=
Object
.
create
(
Super
.
prototype
)
Sub
.
prototype
.
constructor
=
Sub
Sub
.
prototype
.
constructor
=
Sub
Sub
.
cid
=
cid
++
Sub
.
cid
=
cid
++
...
@@ -219,7 +223,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -219,7 +223,7 @@ return /******/ (function(modules) { // webpackBootstrap
function
createClass
(
name
)
{
function
createClass
(
name
)
{
return
new
Function
(
return
new
Function
(
'
return function
'
+
_
.
c
amelize
(
name
,
tru
e
)
+
'
return function
'
+
_
.
c
lassify
(
nam
e
)
+
'
(options) { this._init(options) }
'
'
(options) { this._init(options) }
'
)()
)()
}
}
...
@@ -350,7 +354,14 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -350,7 +354,14 @@ return /******/ (function(modules) { // webpackBootstrap
// children
// children
this
.
_children
=
[]
this
.
_children
=
[]
this
.
_childCtors
=
{}
this
.
_childCtors
=
{}
// transcluded components that belong to the parent
// transclusion unlink functions
this
.
_containerUnlinkFn
=
this
.
_contentUnlinkFn
=
null
// transcluded components that belong to the parent.
// need to keep track of them so that we can call
// attached/detached hooks on them.
this
.
_transCpnts
=
null
this
.
_transCpnts
=
null
// merge options.
// merge options.
...
@@ -527,7 +538,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -527,7 +538,7 @@ return /******/ (function(modules) { // webpackBootstrap
var
_
=
__webpack_require__
(
11
)
var
_
=
__webpack_require__
(
11
)
var
Observer
=
__webpack_require__
(
49
)
var
Observer
=
__webpack_require__
(
49
)
var
Dep
=
__webpack_require__
(
2
3
)
var
Dep
=
__webpack_require__
(
2
4
)
/**
/**
* Setup the scope of an instance, which contains:
* Setup the scope of an instance, which contains:
...
@@ -647,7 +658,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -647,7 +658,7 @@ return /******/ (function(modules) { // webpackBootstrap
i
=
children
.
length
i
=
children
.
length
while
(
i
--
)
{
while
(
i
--
)
{
var
child
=
children
[
i
]
var
child
=
children
[
i
]
if
(
child
.
$options
.
inherit
)
{
if
(
!
child
.
_repeat
&&
child
.
$options
.
inherit
)
{
child
.
_digest
()
child
.
_digest
()
}
}
}
}
...
@@ -745,7 +756,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -745,7 +756,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
var
_
=
__webpack_require__
(
11
)
var
_
=
__webpack_require__
(
11
)
var
Directive
=
__webpack_require__
(
2
4
)
var
Directive
=
__webpack_require__
(
2
3
)
var
compile
=
__webpack_require__
(
16
)
var
compile
=
__webpack_require__
(
16
)
var
transclude
=
__webpack_require__
(
17
)
var
transclude
=
__webpack_require__
(
17
)
...
@@ -790,6 +801,13 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -790,6 +801,13 @@ return /******/ (function(modules) { // webpackBootstrap
compile
(
content
,
parentOptions
,
true
)
compile
(
content
,
parentOptions
,
true
)
// call content linker now, before transclusion
// call content linker now, before transclusion
this
.
_contentUnlinkFn
=
contentLinkFn
(
parent
,
content
)
this
.
_contentUnlinkFn
=
contentLinkFn
(
parent
,
content
)
// mark all compiled nodes as transcluded, so that
// directives that do partial compilation, e.g. v-if
// and v-partial can detect them and persist them
// through re-compilations.
for
(
var
i
=
0
;
i
<
content
.
childNodes
.
length
;
i
++
)
{
content
.
childNodes
[
i
].
_isContent
=
true
}
this
.
_transCpnts
=
parent
.
_children
.
slice
(
ol
)
this
.
_transCpnts
=
parent
.
_children
.
slice
(
ol
)
}
}
// tranclude, this possibly replaces original
// tranclude, this possibly replaces original
...
@@ -821,7 +839,8 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -821,7 +839,8 @@ return /******/ (function(modules) { // webpackBootstrap
exports
.
_initElement
=
function
(
el
)
{
exports
.
_initElement
=
function
(
el
)
{
if
(
el
instanceof
DocumentFragment
)
{
if
(
el
instanceof
DocumentFragment
)
{
this
.
_isBlock
=
true
this
.
_isBlock
=
true
this
.
$el
=
this
.
_blockStart
=
el
.
firstChild
this
.
_blockStart
=
el
.
firstChild
this
.
$el
=
el
.
childNodes
[
1
]
this
.
_blockEnd
=
el
.
lastChild
this
.
_blockEnd
=
el
.
lastChild
this
.
_blockFragment
=
el
this
.
_blockFragment
=
el
}
else
{
}
else
{
...
@@ -889,8 +908,12 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -889,8 +908,12 @@ return /******/ (function(modules) { // webpackBootstrap
this
.
_directives
[
i
].
_teardown
()
this
.
_directives
[
i
].
_teardown
()
}
}
// teardown all user watchers.
// teardown all user watchers.
var
watcher
for
(
i
in
this
.
_userWatchers
)
{
for
(
i
in
this
.
_userWatchers
)
{
this
.
_userWatchers
[
i
].
teardown
()
watcher
=
this
.
_userWatchers
[
i
]
if
(
watcher
)
{
watcher
.
teardown
()
}
}
}
// remove reference to self on $el
// remove reference to self on $el
if
(
this
.
$el
)
{
if
(
this
.
$el
)
{
...
@@ -955,7 +978,9 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -955,7 +978,9 @@ return /******/ (function(modules) { // webpackBootstrap
exports
.
$get
=
function
(
exp
)
{
exports
.
$get
=
function
(
exp
)
{
var
res
=
expParser
.
parse
(
exp
)
var
res
=
expParser
.
parse
(
exp
)
if
(
res
)
{
if
(
res
)
{
return
res
.
get
.
call
(
this
,
this
)
try
{
return
res
.
get
.
call
(
this
,
this
)
}
catch
(
e
)
{}
}
}
}
}
...
@@ -1528,7 +1553,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -1528,7 +1553,7 @@ return /******/ (function(modules) { // webpackBootstrap
if
(
!
ChildVue
)
{
if
(
!
ChildVue
)
{
var
optionName
=
BaseCtor
.
options
.
name
var
optionName
=
BaseCtor
.
options
.
name
var
className
=
optionName
var
className
=
optionName
?
_
.
c
amelize
(
optionName
,
tru
e
)
?
_
.
c
lassify
(
optionNam
e
)
:
'
VueComponent
'
:
'
VueComponent
'
ChildVue
=
new
Function
(
ChildVue
=
new
Function
(
'
return function
'
+
className
+
'
(options) {
'
+
'
return function
'
+
className
+
'
(options) {
'
+
...
@@ -1736,14 +1761,15 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -1736,14 +1761,15 @@ return /******/ (function(modules) { // webpackBootstrap
exports
.
currency
=
function
(
value
,
sign
)
{
exports
.
currency
=
function
(
value
,
sign
)
{
value
=
parseFloat
(
value
)
value
=
parseFloat
(
value
)
if
(
!
value
&&
value
!==
0
)
return
''
if
(
!
isFinite
(
value
)
||
(
!
value
&&
value
!==
0
)
)
return
''
sign
=
sign
||
'
$
'
sign
=
sign
||
'
$
'
var
s
=
Math
.
floor
(
Math
.
abs
(
value
)).
toString
(),
var
s
=
Math
.
floor
(
Math
.
abs
(
value
)).
toString
(),
i
=
s
.
length
%
3
,
i
=
s
.
length
%
3
,
h
=
i
>
0
h
=
i
>
0
?
(
s
.
slice
(
0
,
i
)
+
(
s
.
length
>
3
?
'
,
'
:
''
))
?
(
s
.
slice
(
0
,
i
)
+
(
s
.
length
>
3
?
'
,
'
:
''
))
:
''
,
:
''
,
f
=
'
.
'
+
value
.
toFixed
(
2
).
slice
(
-
2
)
v
=
Math
.
abs
(
parseInt
((
value
*
100
)
%
100
,
10
)),
f
=
'
.
'
+
(
v
<
10
?
(
'
0
'
+
v
)
:
v
)
return
(
value
<
0
?
'
-
'
:
''
)
+
return
(
value
<
0
?
'
-
'
:
''
)
+
sign
+
h
+
s
.
slice
(
i
).
replace
(
digitsRE
,
'
$1,
'
)
+
f
sign
+
h
+
s
.
slice
(
i
).
replace
(
digitsRE
,
'
$1,
'
)
+
f
}
}
...
@@ -1809,6 +1835,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -1809,6 +1835,7 @@ return /******/ (function(modules) { // webpackBootstrap
_
.
extend
(
exports
,
__webpack_require__
(
48
))
_
.
extend
(
exports
,
__webpack_require__
(
48
))
/***/
},
/***/
},
/* 14 */
/* 14 */
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
@@ -2194,11 +2221,17 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -2194,11 +2221,17 @@ return /******/ (function(modules) { // webpackBootstrap
*/
*/
module
.
exports
=
function
compile
(
el
,
options
,
partial
,
asParent
)
{
module
.
exports
=
function
compile
(
el
,
options
,
partial
,
asParent
)
{
var
isBlock
=
el
.
nodeType
===
11
var
params
=
!
partial
&&
options
.
paramAttributes
var
params
=
!
partial
&&
options
.
paramAttributes
// if el is a fragment, this is a block instance
// and paramAttributes will be stored on the first
// element in the template. (excluding the _blockStart
// comment node)
var
paramsEl
=
isBlock
?
el
.
childNodes
[
1
]
:
el
var
paramsLinkFn
=
params
var
paramsLinkFn
=
params
?
compileParamAttributes
(
e
l
,
params
,
options
)
?
compileParamAttributes
(
paramsE
l
,
params
,
options
)
:
null
:
null
var
nodeLinkFn
=
el
instanceof
DocumentFragment
var
nodeLinkFn
=
isBlock
?
null
?
null
:
compileNode
(
el
,
options
,
asParent
)
:
compileNode
(
el
,
options
,
asParent
)
var
childLinkFn
=
var
childLinkFn
=
...
@@ -2220,7 +2253,10 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -2220,7 +2253,10 @@ return /******/ (function(modules) { // webpackBootstrap
return
function
link
(
vm
,
el
)
{
return
function
link
(
vm
,
el
)
{
var
originalDirCount
=
vm
.
_directives
.
length
var
originalDirCount
=
vm
.
_directives
.
length
if
(
paramsLinkFn
)
paramsLinkFn
(
vm
,
el
)
if
(
paramsLinkFn
)
{
var
paramsEl
=
isBlock
?
el
.
childNodes
[
1
]
:
el
paramsLinkFn
(
vm
,
paramsEl
)
}
// cache childNodes before linking parent, fix #657
// cache childNodes before linking parent, fix #657
var
childNodes
=
_
.
toArray
(
el
.
childNodes
)
var
childNodes
=
_
.
toArray
(
el
.
childNodes
)
if
(
nodeLinkFn
)
nodeLinkFn
(
vm
,
el
)
if
(
nodeLinkFn
)
nodeLinkFn
(
vm
,
el
)
...
@@ -2786,9 +2822,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -2786,9 +2822,7 @@ return /******/ (function(modules) { // webpackBootstrap
if
(
options
.
replace
)
{
if
(
options
.
replace
)
{
if
(
frag
.
childNodes
.
length
>
1
)
{
if
(
frag
.
childNodes
.
length
>
1
)
{
transcludeContent
(
frag
,
rawContent
)
transcludeContent
(
frag
,
rawContent
)
// TODO: store directives on placeholder node
_
.
copyAttributes
(
el
,
frag
.
firstChild
)
// and compile it somehow
// probably only check for v-with, v-ref & paramAttributes
return
frag
return
frag
}
else
{
}
else
{
var
replacer
=
frag
.
firstChild
var
replacer
=
frag
.
firstChild
...
@@ -2819,6 +2853,11 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -2819,6 +2853,11 @@ return /******/ (function(modules) { // webpackBootstrap
var
i
=
outlets
.
length
var
i
=
outlets
.
length
if
(
!
i
)
return
if
(
!
i
)
return
var
outlet
,
select
,
selected
,
j
,
main
var
outlet
,
select
,
selected
,
j
,
main
function
isDirectChild
(
node
)
{
return
node
.
parentNode
===
raw
}
// first pass, collect corresponding content
// first pass, collect corresponding content
// for each outlet.
// for each outlet.
while
(
i
--
)
{
while
(
i
--
)
{
...
@@ -2827,11 +2866,15 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -2827,11 +2866,15 @@ return /******/ (function(modules) { // webpackBootstrap
select
=
outlet
.
getAttribute
(
'
select
'
)
select
=
outlet
.
getAttribute
(
'
select
'
)
if
(
select
)
{
// select content
if
(
select
)
{
// select content
selected
=
raw
.
querySelectorAll
(
select
)
selected
=
raw
.
querySelectorAll
(
select
)
outlet
.
content
=
_
.
toArray
(
if
(
selected
.
length
)
{
selected
.
length
// according to Shadow DOM spec, `select` can
?
selected
// only select direct children of the host node.
:
outlet
.
childNodes
// enforcing this also fixes #786.
)
selected
=
[].
filter
.
call
(
selected
,
isDirectChild
)
}
outlet
.
content
=
selected
.
length
?
selected
:
_
.
toArray
(
outlet
.
childNodes
)
}
else
{
// default content
}
else
{
// default content
main
=
outlet
main
=
outlet
}
}
...
@@ -3363,7 +3406,8 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -3363,7 +3406,8 @@ return /******/ (function(modules) { // webpackBootstrap
var
args
=
filter
.
args
var
args
=
filter
.
args
?
'
,"
'
+
filter
.
args
.
join
(
'
","
'
)
+
'
"
'
?
'
,"
'
+
filter
.
args
.
join
(
'
","
'
)
+
'
"
'
:
''
:
''
exp
=
'
this.$options.filters["
'
+
filter
.
name
+
'
"]
'
+
filter
=
'
this.$options.filters["
'
+
filter
.
name
+
'
"]
'
exp
=
'
(
'
+
filter
+
'
.read||
'
+
filter
+
'
)
'
+
'
.apply(this,[
'
+
exp
+
args
+
'
])
'
'
.apply(this,[
'
+
exp
+
args
+
'
])
'
}
}
return
exp
return
exp
...
@@ -3503,9 +3547,19 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -3503,9 +3547,19 @@ return /******/ (function(modules) { // webpackBootstrap
)
{
)
{
return
node
.
content
return
node
.
content
}
}
return
tag
===
'
SCRIPT
'
// script template
?
stringToFragment
(
node
.
textContent
)
if
(
tag
===
'
SCRIPT
'
)
{
:
stringToFragment
(
node
.
innerHTML
)
return
stringToFragment
(
node
.
textContent
)
}
// normal node, clone it to avoid mutating the original
var
clone
=
exports
.
clone
(
node
)
var
frag
=
document
.
createDocumentFragment
()
var
child
/* jshint boss:true */
while
(
child
=
clone
.
firstChild
)
{
frag
.
appendChild
(
child
)
}
return
frag
}
}
// Test for the presence of the Safari template cloning bug
// Test for the presence of the Safari template cloning bug
...
@@ -3800,7 +3854,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -3800,7 +3854,7 @@ return /******/ (function(modules) { // webpackBootstrap
var
expressionCache
=
new
Cache
(
1000
)
var
expressionCache
=
new
Cache
(
1000
)
var
keywords
=
var
keywords
=
'
Math,break,case,catch,continue,debugger,default,
'
+
'
Math,
Date,
break,case,catch,continue,debugger,default,
'
+
'
delete,do,else,false,finally,for,function,if,in,
'
+
'
delete,do,else,false,finally,for,function,if,in,
'
+
'
instanceof,new,null,return,switch,this,throw,true,try,
'
+
'
instanceof,new,null,return,switch,this,throw,true,try,
'
+
'
typeof,var,void,while,with,undefined,abstract,boolean,
'
+
'
typeof,var,void,while,with,undefined,abstract,boolean,
'
+
...
@@ -3812,11 +3866,12 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -3812,11 +3866,12 @@ return /******/ (function(modules) { // webpackBootstrap
var
wsRE
=
/
\s
/g
var
wsRE
=
/
\s
/g
var
newlineRE
=
/
\n
/g
var
newlineRE
=
/
\n
/g
var
saveRE
=
/
[\{
,
]\s
*
[\w\$
_
]
+
\s
*:|
'
[^
'
]
*'|"
[^
"
]
*"
/g
var
saveRE
=
/
[\{
,
]\s
*
[\w\$
_
]
+
\s
*:|
(
'
[^
'
]
*'|"
[^
"
]
*"
)
|new
/g
var
restoreRE
=
/"
(\d
+
)
"/g
var
restoreRE
=
/"
(\d
+
)
"/g
var
pathTestRE
=
/^
[
A-Za-z_$
][\w
$
]
*
(\.[
A-Za-z_$
][\w
$
]
*|
\[
'.*
?
'
\]
|
\[
".*
?
"
\]
|
\[\d
+
\])
*$/
var
pathTestRE
=
/^
[
A-Za-z_$
][\w
$
]
*
(\.[
A-Za-z_$
][\w
$
]
*|
\[
'.*
?
'
\]
|
\[
".*
?
"
\]
|
\[\d
+
\])
*$/
var
pathReplaceRE
=
/
[^\w
$
\.]([
A-Za-z_$
][\w
$
]
*
(\.[
A-Za-z_$
][\w
$
]
*|
\[
'.*
?
'
\]
|
\[
".*
?
"
\])
*
)
/g
var
pathReplaceRE
=
/
[^\w
$
\.]([
A-Za-z_$
][\w
$
]
*
(\.[
A-Za-z_$
][\w
$
]
*|
\[
'.*
?
'
\]
|
\[
".*
?
"
\])
*
)
/g
var
keywordsRE
=
new
RegExp
(
'
^(
'
+
keywords
.
replace
(
/,/g
,
'
\\
b|
'
)
+
'
\\
b)
'
)
var
keywordsRE
=
new
RegExp
(
'
^(
'
+
keywords
.
replace
(
/,/g
,
'
\\
b|
'
)
+
'
\\
b)
'
)
var
booleanLiteralRE
=
/^
(
true|false
)
$/
/**
/**
* Save / Rewrite / Restore
* Save / Rewrite / Restore
...
@@ -3833,13 +3888,23 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -3833,13 +3888,23 @@ return /******/ (function(modules) { // webpackBootstrap
/**
/**
* Save replacer
* Save replacer
*
*
* The save regex can match two possible cases:
* 1. An opening object literal
* 2. A string
* If matched as a plain string, we need to escape its
* newlines, since the string needs to be preserved when
* generating the function body.
*
* @param {String} str
* @param {String} str
* @param {String} isString - str if matched as a string
* @return {String} - placeholder with index
* @return {String} - placeholder with index
*/
*/
function
save
(
str
)
{
function
save
(
str
,
isString
)
{
var
i
=
saved
.
length
var
i
=
saved
.
length
saved
[
i
]
=
str
.
replace
(
newlineRE
,
'
\\
n
'
)
saved
[
i
]
=
isString
?
str
.
replace
(
newlineRE
,
'
\\
n
'
)
:
str
return
'
"
'
+
i
+
'
"
'
return
'
"
'
+
i
+
'
"
'
}
}
...
@@ -4011,10 +4076,14 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4011,10 +4076,14 @@ return /******/ (function(modules) { // webpackBootstrap
// we do a simple path check to optimize for them.
// we do a simple path check to optimize for them.
// the check fails valid paths with unusal whitespaces,
// the check fails valid paths with unusal whitespaces,
// but that's too rare and we don't care.
// but that's too rare and we don't care.
// also skip paths that start with global "Math"
// also skip boolean literals and paths that start with
var
res
=
pathTestRE
.
test
(
exp
)
&&
exp
.
slice
(
0
,
5
)
!==
'
Math.
'
// global "Math"
?
compilePathFns
(
exp
)
var
res
=
:
compileExpFns
(
exp
,
needSet
)
pathTestRE
.
test
(
exp
)
&&
!
booleanLiteralRE
.
test
(
exp
)
&&
exp
.
slice
(
0
,
5
)
!==
'
Math.
'
?
compilePathFns
(
exp
)
:
compileExpFns
(
exp
,
needSet
)
expressionCache
.
put
(
exp
,
res
)
expressionCache
.
put
(
exp
,
res
)
return
res
return
res
}
}
...
@@ -4024,61 +4093,6 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4024,61 +4093,6 @@ return /******/ (function(modules) { // webpackBootstrap
/***/
},
/***/
},
/* 23 */
/* 23 */
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
var
uid
=
0
/**
* A dep is an observable that can have multiple
* directives subscribing to it.
*
* @constructor
*/
function
Dep
()
{
this
.
id
=
++
uid
this
.
subs
=
[]
}
var
p
=
Dep
.
prototype
/**
* Add a directive subscriber.
*
* @param {Directive} sub
*/
p
.
addSub
=
function
(
sub
)
{
this
.
subs
.
push
(
sub
)
}
/**
* Remove a directive subscriber.
*
* @param {Directive} sub
*/
p
.
removeSub
=
function
(
sub
)
{
if
(
this
.
subs
.
length
)
{
var
i
=
this
.
subs
.
indexOf
(
sub
)
if
(
i
>
-
1
)
this
.
subs
.
splice
(
i
,
1
)
}
}
/**
* Notify all subscribers of a new value.
*/
p
.
notify
=
function
()
{
for
(
var
i
=
0
,
subs
=
this
.
subs
;
i
<
subs
.
length
;
i
++
)
{
subs
[
i
].
update
()
}
}
module
.
exports
=
Dep
/***/
},
/* 24 */
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
var
_
=
__webpack_require__
(
11
)
var
_
=
__webpack_require__
(
11
)
...
@@ -4304,6 +4318,64 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4304,6 +4318,64 @@ return /******/ (function(modules) { // webpackBootstrap
module
.
exports
=
Directive
module
.
exports
=
Directive
/***/
},
/* 24 */
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
var
uid
=
0
var
_
=
__webpack_require__
(
11
)
/**
* A dep is an observable that can have multiple
* directives subscribing to it.
*
* @constructor
*/
function
Dep
()
{
this
.
id
=
++
uid
this
.
subs
=
[]
}
var
p
=
Dep
.
prototype
/**
* Add a directive subscriber.
*
* @param {Directive} sub
*/
p
.
addSub
=
function
(
sub
)
{
this
.
subs
.
push
(
sub
)
}
/**
* Remove a directive subscriber.
*
* @param {Directive} sub
*/
p
.
removeSub
=
function
(
sub
)
{
if
(
this
.
subs
.
length
)
{
var
i
=
this
.
subs
.
indexOf
(
sub
)
if
(
i
>
-
1
)
this
.
subs
.
splice
(
i
,
1
)
}
}
/**
* Notify all subscribers of a new value.
*/
p
.
notify
=
function
()
{
// stablize the subscriber list first
var
subs
=
_
.
toArray
(
this
.
subs
)
for
(
var
i
=
0
,
l
=
subs
.
length
;
i
<
l
;
i
++
)
{
subs
[
i
].
update
()
}
}
module
.
exports
=
Dep
/***/
},
/***/
},
/* 25 */
/* 25 */
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
@@ -4339,8 +4411,8 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4339,8 +4411,8 @@ return /******/ (function(modules) { // webpackBootstrap
this
.
id
=
++
uid
// uid for batching
this
.
id
=
++
uid
// uid for batching
this
.
active
=
true
this
.
active
=
true
options
=
options
||
{}
options
=
options
||
{}
this
.
deep
=
options
.
deep
this
.
deep
=
!!
options
.
deep
this
.
user
=
options
.
user
this
.
user
=
!!
options
.
user
this
.
deps
=
Object
.
create
(
null
)
this
.
deps
=
Object
.
create
(
null
)
// setup filters if any.
// setup filters if any.
// We delegate directive filters here to the watcher
// We delegate directive filters here to the watcher
...
@@ -4578,7 +4650,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4578,7 +4650,7 @@ return /******/ (function(modules) { // webpackBootstrap
*/
*/
exports
.
isReserved
=
function
(
str
)
{
exports
.
isReserved
=
function
(
str
)
{
var
c
=
str
.
charCodeAt
(
0
)
var
c
=
(
str
+
''
)
.
charCodeAt
(
0
)
return
c
===
0x24
||
c
===
0x5F
return
c
===
0x24
||
c
===
0x5F
}
}
...
@@ -4628,6 +4700,17 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4628,6 +4700,17 @@ return /******/ (function(modules) { // webpackBootstrap
:
false
:
false
}
}
/**
* Replace helper
*
* @param {String} _ - matched delimiter
* @param {String} c - matched char
* @return {String}
*/
function
toUpper
(
_
,
c
)
{
return
c
?
c
.
toUpperCase
()
:
''
}
/**
/**
* Camelize a hyphen-delmited string.
* Camelize a hyphen-delmited string.
*
*
...
@@ -4635,14 +4718,26 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4635,14 +4718,26 @@ return /******/ (function(modules) { // webpackBootstrap
* @return {String}
* @return {String}
*/
*/
var
camelRE
=
/
[
-_
](\w)
/g
var
camelRE
=
/-
(\w)
/g
var
capitalCamelRE
=
/
(?:
^|
[
-_
])(\w)
/g
exports
.
camelize
=
function
(
str
)
{
return
str
.
replace
(
camelRE
,
toUpper
)
}
exports
.
camelize
=
function
(
str
,
cap
)
{
/**
var
RE
=
cap
?
capitalCamelRE
:
camelRE
* Converts hyphen/underscore/slash delimitered names into
return
str
.
replace
(
RE
,
function
(
_
,
c
)
{
* camelized classNames.
return
c
?
c
.
toUpperCase
()
:
''
*
})
* e.g. my-component => MyComponent
* some_else => SomeElse
* some/comp => SomeComp
*
* @param {String} str
* @return {String}
*/
var
classifyRE
=
/
(?:
^|
[
-_
\/])(\w)
/g
exports
.
classify
=
function
(
str
)
{
return
str
.
replace
(
classifyRE
,
toUpper
)
}
}
/**
/**
...
@@ -4746,6 +4841,38 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4746,6 +4841,38 @@ return /******/ (function(modules) { // webpackBootstrap
})
})
}
}
/**
* Debounce a function so it only gets called after the
* input stops arriving after the given wait period.
*
* @param {Function} func
* @param {Number} wait
* @return {Function} - the debounced function
*/
exports
.
debounce
=
function
(
func
,
wait
)
{
var
timeout
,
args
,
context
,
timestamp
,
result
var
later
=
function
()
{
var
last
=
Date
.
now
()
-
timestamp
if
(
last
<
wait
&&
last
>=
0
)
{
timeout
=
setTimeout
(
later
,
wait
-
last
)
}
else
{
timeout
=
null
result
=
func
.
apply
(
context
,
args
)
if
(
!
timeout
)
context
=
args
=
null
}
}
return
function
()
{
context
=
this
args
=
arguments
timestamp
=
Date
.
now
()
if
(
!
timeout
)
{
timeout
=
setTimeout
(
later
,
wait
)
}
return
result
}
}
/***/
},
/***/
},
/* 27 */
/* 27 */
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
@@ -4772,55 +4899,50 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4772,55 +4899,50 @@ return /******/ (function(modules) { // webpackBootstrap
/**
/**
* Defer a task to execute it asynchronously. Ideally this
* Defer a task to execute it asynchronously. Ideally this
* should be executed as a microtask, so we leverage
* should be executed as a microtask, so we leverage
* MutationObserver if it's available.
* MutationObserver if it's available, and fallback to
*
* setTimeout(0).
* If the user has included a setImmediate polyfill, we can
* also use that. In Node we actually prefer setImmediate to
* process.nextTick so we don't block the I/O.
*
* Finally, fallback to setTimeout(0) if nothing else works.
*
*
* @param {Function} cb
* @param {Function} cb
* @param {Object} ctx
* @param {Object} ctx
*/
*/
var
defer
exports
.
nextTick
=
(
function
()
{
/* istanbul ignore if */
var
callbacks
=
[]
if
(
typeof
MutationObserver
!==
'
undefined
'
)
{
var
pending
=
false
defer
=
deferFromMutationObserver
(
MutationObserver
)
var
timerFunc
}
else
function
handle
()
{
/* istanbul ignore if */
pending
=
false
if
(
typeof
WebkitMutationObserver
!==
'
undefined
'
)
{
var
copies
=
callbacks
.
slice
(
0
)
defer
=
deferFromMutationObserver
(
WebkitMutationObserver
)
callbacks
=
[]
}
else
{
for
(
var
i
=
0
;
i
<
copies
.
length
;
i
++
)
{
defer
=
setTimeout
copies
[
i
]()
}
/* istanbul ignore next */
function
deferFromMutationObserver
(
Observer
)
{
var
queue
=
[]
var
node
=
document
.
createTextNode
(
'
0
'
)
var
i
=
0
new
Observer
(
function
()
{
var
l
=
queue
.
length
for
(
var
i
=
0
;
i
<
l
;
i
++
)
{
queue
[
i
]()
}
}
queue
=
queue
.
slice
(
l
)
}).
observe
(
node
,
{
characterData
:
true
})
return
function
mutationObserverDefer
(
cb
)
{
queue
.
push
(
cb
)
node
.
nodeValue
=
(
i
=
++
i
%
2
)
}
}
}
/* istanbul ignore if */
if
(
typeof
MutationObserver
!==
'
undefined
'
)
{
exports
.
nextTick
=
function
(
cb
,
ctx
)
{
var
counter
=
1
if
(
ctx
)
{
var
observer
=
new
MutationObserver
(
handle
)
defer
(
function
()
{
cb
.
call
(
ctx
)
},
0
)
var
textNode
=
document
.
createTextNode
(
counter
)
observer
.
observe
(
textNode
,
{
characterData
:
true
})
timerFunc
=
function
()
{
counter
=
(
counter
+
1
)
%
2
textNode
.
data
=
counter
}
}
else
{
}
else
{
defer
(
cb
,
0
)
timerFunc
=
setTimeout
}
}
}
return
function
(
cb
,
ctx
)
{
var
func
=
ctx
?
function
()
{
cb
.
call
(
ctx
)
}
:
cb
callbacks
.
push
(
func
)
if
(
pending
)
return
pending
=
true
timerFunc
(
handle
,
0
)
}
})()
/**
/**
* Detect if we are in IE9...
* Detect if we are in IE9...
...
@@ -4865,6 +4987,11 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4865,6 +4987,11 @@ return /******/ (function(modules) { // webpackBootstrap
/**
/**
* Check if a node is in the document.
* Check if a node is in the document.
* Note: document.documentElement.contains should work here
* but always returns false for comment nodes in phantomjs,
* making unit tests difficult. This is fixed byy doing the
* contains() check on the node's parentNode instead of
* the node itself.
*
*
* @param {Node} node
* @param {Node} node
* @return {Boolean}
* @return {Boolean}
...
@@ -4875,7 +5002,10 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4875,7 +5002,10 @@ return /******/ (function(modules) { // webpackBootstrap
document
.
documentElement
document
.
documentElement
exports
.
inDoc
=
function
(
node
)
{
exports
.
inDoc
=
function
(
node
)
{
return
doc
&&
doc
.
contains
(
node
)
var
parent
=
node
&&
node
.
parentNode
return
doc
===
node
||
doc
===
parent
||
!!
(
parent
&&
parent
.
nodeType
===
1
&&
(
doc
.
contains
(
parent
)))
}
}
/**
/**
...
@@ -4898,7 +5028,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4898,7 +5028,7 @@ return /******/ (function(modules) { // webpackBootstrap
* Insert el before target
* Insert el before target
*
*
* @param {Element} el
* @param {Element} el
* @param {Element} target
* @param {Element} target
*/
*/
exports
.
before
=
function
(
el
,
target
)
{
exports
.
before
=
function
(
el
,
target
)
{
...
@@ -4909,7 +5039,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4909,7 +5039,7 @@ return /******/ (function(modules) { // webpackBootstrap
* Insert el after target
* Insert el after target
*
*
* @param {Element} el
* @param {Element} el
* @param {Element} target
* @param {Element} target
*/
*/
exports
.
after
=
function
(
el
,
target
)
{
exports
.
after
=
function
(
el
,
target
)
{
...
@@ -4934,7 +5064,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -4934,7 +5064,7 @@ return /******/ (function(modules) { // webpackBootstrap
* Prepend el to target
* Prepend el to target
*
*
* @param {Element} el
* @param {Element} el
* @param {Element} target
* @param {Element} target
*/
*/
exports
.
prepend
=
function
(
el
,
target
)
{
exports
.
prepend
=
function
(
el
,
target
)
{
...
@@ -5043,14 +5173,17 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5043,14 +5173,17 @@ return /******/ (function(modules) { // webpackBootstrap
* container div
* container div
*
*
* @param {Element} el
* @param {Element} el
* @param {Boolean} asFragment
* @return {Element}
* @return {Element}
*/
*/
exports
.
extractContent
=
function
(
el
)
{
exports
.
extractContent
=
function
(
el
,
asFragment
)
{
var
child
var
child
var
rawContent
var
rawContent
if
(
el
.
hasChildNodes
())
{
if
(
el
.
hasChildNodes
())
{
rawContent
=
document
.
createElement
(
'
div
'
)
rawContent
=
asFragment
?
document
.
createDocumentFragment
()
:
document
.
createElement
(
'
div
'
)
/* jshint boss:true */
/* jshint boss:true */
while
(
child
=
el
.
firstChild
)
{
while
(
child
=
el
.
firstChild
)
{
rawContent
.
appendChild
(
child
)
rawContent
.
appendChild
(
child
)
...
@@ -5059,6 +5192,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5059,6 +5192,7 @@ return /******/ (function(modules) { // webpackBootstrap
return
rawContent
return
rawContent
}
}
/***/
},
/***/
},
/* 29 */
/* 29 */
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
@@ -5520,6 +5654,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5520,6 +5654,7 @@ return /******/ (function(modules) { // webpackBootstrap
// same logic reuse from v-if
// same logic reuse from v-if
compile
:
vIf
.
compile
,
compile
:
vIf
.
compile
,
teardown
:
vIf
.
teardown
,
teardown
:
vIf
.
teardown
,
unbind
:
vIf
.
unbind
,
bind
:
function
()
{
bind
:
function
()
{
var
el
=
this
.
el
var
el
=
this
.
el
...
@@ -5548,7 +5683,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5548,7 +5683,7 @@ return /******/ (function(modules) { // webpackBootstrap
var
partial
=
this
.
vm
.
$options
.
partials
[
id
]
var
partial
=
this
.
vm
.
$options
.
partials
[
id
]
_
.
assertAsset
(
partial
,
'
partial
'
,
id
)
_
.
assertAsset
(
partial
,
'
partial
'
,
id
)
if
(
partial
)
{
if
(
partial
)
{
this
.
compile
(
templateParser
.
parse
(
partial
))
this
.
compile
(
templateParser
.
parse
(
partial
,
true
))
}
}
}
}
...
@@ -5674,6 +5809,11 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5674,6 +5809,11 @@ return /******/ (function(modules) { // webpackBootstrap
if
(
this
.
keepAlive
)
{
if
(
this
.
keepAlive
)
{
this
.
cache
=
{}
this
.
cache
=
{}
}
}
// check inline-template
if
(
this
.
_checkParam
(
'
inline-template
'
)
!==
null
)
{
// extract inline template as a DocumentFragment
this
.
template
=
_
.
extractContent
(
this
.
el
,
true
)
}
// if static, build right now.
// if static, build right now.
if
(
!
this
.
_isDynamicLiteral
)
{
if
(
!
this
.
_isDynamicLiteral
)
{
this
.
resolveCtor
(
this
.
expression
)
this
.
resolveCtor
(
this
.
expression
)
...
@@ -5724,6 +5864,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5724,6 +5864,7 @@ return /******/ (function(modules) { // webpackBootstrap
if
(
this
.
Ctor
)
{
if
(
this
.
Ctor
)
{
var
child
=
vm
.
$addChild
({
var
child
=
vm
.
$addChild
({
el
:
el
,
el
:
el
,
template
:
this
.
template
,
_asComponent
:
true
_asComponent
:
true
},
this
.
Ctor
)
},
this
.
Ctor
)
if
(
this
.
keepAlive
)
{
if
(
this
.
keepAlive
)
{
...
@@ -5870,6 +6011,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5870,6 +6011,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
var
_
=
__webpack_require__
(
11
)
var
_
=
__webpack_require__
(
11
)
var
config
=
__webpack_require__
(
15
)
var
isObject
=
_
.
isObject
var
isObject
=
_
.
isObject
var
isPlainObject
=
_
.
isPlainObject
var
isPlainObject
=
_
.
isPlainObject
var
textParser
=
__webpack_require__
(
19
)
var
textParser
=
__webpack_require__
(
19
)
...
@@ -5918,8 +6060,8 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5918,8 +6060,8 @@ return /******/ (function(modules) { // webpackBootstrap
this
.
idKey
=
this
.
idKey
=
this
.
_checkParam
(
'
track-by
'
)
||
this
.
_checkParam
(
'
track-by
'
)
||
this
.
_checkParam
(
'
trackby
'
)
// 0.11.0 compat
this
.
_checkParam
(
'
trackby
'
)
// 0.11.0 compat
// cache for primitive value instances
this
.
cache
=
Object
.
create
(
null
)
this
.
cache
=
Object
.
create
(
null
)
this
.
checkUpdateStrategy
()
},
},
/**
/**
...
@@ -5967,7 +6109,12 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5967,7 +6109,12 @@ return /******/ (function(modules) { // webpackBootstrap
this
.
template
=
transclude
(
this
.
template
)
this
.
template
=
transclude
(
this
.
template
)
this
.
_linkFn
=
compile
(
this
.
template
,
options
)
this
.
_linkFn
=
compile
(
this
.
template
,
options
)
}
else
{
}
else
{
this
.
_asComponent
=
true
this
.
asComponent
=
true
// check inline-template
if
(
this
.
_checkParam
(
'
inline-template
'
)
!==
null
)
{
// extract inline template as a DocumentFragment
this
.
inlineTempalte
=
_
.
extractContent
(
this
.
el
,
true
)
}
var
tokens
=
textParser
.
parse
(
id
)
var
tokens
=
textParser
.
parse
(
id
)
if
(
!
tokens
)
{
// static component
if
(
!
tokens
)
{
// static component
var
Ctor
=
this
.
Ctor
=
options
.
components
[
id
]
var
Ctor
=
this
.
Ctor
=
options
.
components
[
id
]
...
@@ -5983,6 +6130,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5983,6 +6130,7 @@ return /******/ (function(modules) { // webpackBootstrap
var
merged
=
mergeOptions
(
Ctor
.
options
,
{},
{
var
merged
=
mergeOptions
(
Ctor
.
options
,
{},
{
$parent
:
this
.
vm
$parent
:
this
.
vm
})
})
merged
.
template
=
this
.
inlineTempalte
||
merged
.
template
this
.
template
=
transclude
(
this
.
template
,
merged
)
this
.
template
=
transclude
(
this
.
template
,
merged
)
this
.
_linkFn
=
compile
(
this
.
template
,
merged
,
false
,
true
)
this
.
_linkFn
=
compile
(
this
.
template
,
merged
,
false
,
true
)
}
}
...
@@ -5994,18 +6142,48 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -5994,18 +6142,48 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
},
},
/**
* Check what strategy to use for updates.
*
* If the repeat is simple enough we can use in-place
* updates which simply overwrites existing instances'
* data. This strategy reuses DOM nodes and instances
* as much as possible.
*
* There are two situations where we have to use the
* more complex but more accurate diff algorithm:
* 1. We are using components with or inside v-repeat.
* The components could have private state that needs
* to be preserved across updates.
* 2. We have transitions on the list, which requires
* precise DOM re-positioning.
*/
checkUpdateStrategy
:
function
()
{
this
.
needDiff
=
this
.
asComponent
||
this
.
el
.
hasAttribute
(
config
.
prefix
+
'
transition
'
)
||
this
.
template
.
querySelector
(
'
[
'
+
config
.
prefix
+
'
component]
'
)
},
/**
/**
* Update.
* Update.
* This is called whenever the Array mutates.
* This is called whenever the Array mutates.
*
*
* @param {Array} data
* @param {Array
|Number|String
} data
*/
*/
update
:
function
(
data
)
{
update
:
function
(
data
)
{
if
(
typeof
data
===
'
number
'
)
{
data
=
data
||
[]
var
type
=
typeof
data
if
(
type
===
'
number
'
)
{
data
=
range
(
data
)
data
=
range
(
data
)
}
else
if
(
type
===
'
string
'
)
{
data
=
_
.
toArray
(
data
)
}
}
this
.
vms
=
this
.
diff
(
data
||
[],
this
.
vms
)
this
.
vms
=
this
.
needDiff
?
this
.
diff
(
data
,
this
.
vms
)
:
this
.
inplaceUpdate
(
data
,
this
.
vms
)
// update v-ref
// update v-ref
if
(
this
.
refID
)
{
if
(
this
.
refID
)
{
this
.
vm
.
$
[
this
.
refID
]
=
this
.
vms
this
.
vm
.
$
[
this
.
refID
]
=
this
.
vms
...
@@ -6017,6 +6195,43 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6017,6 +6195,43 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
},
},
/**
* Inplace update that maximally reuses existing vm
* instances and DOM nodes by simply swapping data into
* existing vms.
*
* @param {Array} data
* @param {Array} oldVms
* @return {Array}
*/
inplaceUpdate
:
function
(
data
,
oldVms
)
{
oldVms
=
oldVms
||
[]
var
vms
var
dir
=
this
var
alias
=
dir
.
arg
var
converted
=
dir
.
converted
if
(
data
.
length
<
oldVms
.
length
)
{
oldVms
.
slice
(
data
.
length
).
forEach
(
function
(
vm
)
{
vm
.
$destroy
(
true
)
})
vms
=
oldVms
.
slice
(
0
,
data
.
length
)
overwrite
(
data
,
vms
,
alias
,
converted
)
}
else
if
(
data
.
length
>
oldVms
.
length
)
{
var
newVms
=
data
.
slice
(
oldVms
.
length
).
map
(
function
(
data
,
i
)
{
var
vm
=
dir
.
build
(
data
,
i
+
oldVms
.
length
)
vm
.
$before
(
dir
.
ref
)
return
vm
})
overwrite
(
data
.
slice
(
0
,
oldVms
.
length
),
oldVms
,
alias
,
converted
)
vms
=
oldVms
.
concat
(
newVms
)
}
else
{
overwrite
(
data
,
oldVms
,
alias
,
converted
)
vms
=
oldVms
}
return
vms
},
/**
/**
* Diff, based on new data and old data, determine the
* Diff, based on new data and old data, determine the
* minimum amount of DOM manipulations needed to make the
* minimum amount of DOM manipulations needed to make the
...
@@ -6047,13 +6262,13 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6047,13 +6262,13 @@ return /******/ (function(modules) { // webpackBootstrap
// instance.
// instance.
for
(
i
=
0
,
l
=
data
.
length
;
i
<
l
;
i
++
)
{
for
(
i
=
0
,
l
=
data
.
length
;
i
<
l
;
i
++
)
{
obj
=
data
[
i
]
obj
=
data
[
i
]
raw
=
converted
?
obj
.
value
:
obj
raw
=
converted
?
obj
.
$
value
:
obj
vm
=
!
init
&&
this
.
getVm
(
raw
)
vm
=
!
init
&&
this
.
getVm
(
raw
)
if
(
vm
)
{
// reusable instance
if
(
vm
)
{
// reusable instance
vm
.
_reused
=
true
vm
.
_reused
=
true
vm
.
$index
=
i
// update $index
vm
.
$index
=
i
// update $index
if
(
converted
)
{
if
(
converted
)
{
vm
.
$key
=
obj
.
key
// update $key
vm
.
$key
=
obj
.
$
key
// update $key
}
}
if
(
idKey
)
{
// swap track by id data
if
(
idKey
)
{
// swap track by id data
if
(
alias
)
{
if
(
alias
)
{
...
@@ -6063,8 +6278,9 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6063,8 +6278,9 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
}
}
}
else
{
// new instance
}
else
{
// new instance
vm
=
this
.
build
(
obj
,
i
)
vm
=
this
.
build
(
obj
,
i
,
true
)
vm
.
_new
=
true
vm
.
_new
=
true
vm
.
_reused
=
false
}
}
vms
[
i
]
=
vm
vms
[
i
]
=
vm
// insert if this is first run
// insert if this is first run
...
@@ -6129,17 +6345,18 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6129,17 +6345,18 @@ return /******/ (function(modules) { // webpackBootstrap
*
*
* @param {Object} data
* @param {Object} data
* @param {Number} index
* @param {Number} index
* @param {Boolean} needCache
*/
*/
build
:
function
(
data
,
index
)
{
build
:
function
(
data
,
index
,
needCache
)
{
var
original
=
data
var
original
=
data
var
meta
=
{
$index
:
index
}
var
meta
=
{
$index
:
index
}
if
(
this
.
converted
)
{
if
(
this
.
converted
)
{
meta
.
$key
=
original
.
key
meta
.
$key
=
original
.
$
key
}
}
var
raw
=
this
.
converted
?
data
.
value
:
data
var
raw
=
this
.
converted
?
data
.
$
value
:
data
var
alias
=
this
.
arg
var
alias
=
this
.
arg
var
hasAlias
=
!
is
PlainObject
(
raw
)
||
alias
var
hasAlias
=
!
is
Object
(
raw
)
||
!
isPlainObject
(
data
)
||
alias
// wrap the raw data with alias
// wrap the raw data with alias
data
=
hasAlias
?
{}
:
raw
data
=
hasAlias
?
{}
:
raw
if
(
alias
)
{
if
(
alias
)
{
...
@@ -6151,14 +6368,30 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6151,14 +6368,30 @@ return /******/ (function(modules) { // webpackBootstrap
var
Ctor
=
this
.
Ctor
||
this
.
resolveCtor
(
data
,
meta
)
var
Ctor
=
this
.
Ctor
||
this
.
resolveCtor
(
data
,
meta
)
var
vm
=
this
.
vm
.
$addChild
({
var
vm
=
this
.
vm
.
$addChild
({
el
:
templateParser
.
clone
(
this
.
template
),
el
:
templateParser
.
clone
(
this
.
template
),
_asComponent
:
this
.
_
asComponent
,
_asComponent
:
this
.
asComponent
,
_linkFn
:
this
.
_linkFn
,
_linkFn
:
this
.
_linkFn
,
_meta
:
meta
,
_meta
:
meta
,
data
:
data
,
data
:
data
,
inherit
:
this
.
inherit
inherit
:
this
.
inherit
,
template
:
this
.
inlineTempalte
},
Ctor
)
},
Ctor
)
// flag this instance as a repeat instance
// so that we can skip it in vm._digest
vm
.
_repeat
=
true
// cache instance
// cache instance
this
.
cacheVm
(
raw
,
vm
)
if
(
needCache
)
{
this
.
cacheVm
(
raw
,
vm
)
}
// sync back changes for $value, particularly for
// two-way bindings of primitive values
var
self
=
this
vm
.
$watch
(
'
$value
'
,
function
(
val
)
{
if
(
self
.
converted
)
{
self
.
rawValue
[
vm
.
$key
]
=
val
}
else
{
self
.
rawValue
.
$set
(
vm
.
$index
,
val
)
}
})
return
vm
return
vm
},
},
...
@@ -6204,7 +6437,9 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6204,7 +6437,9 @@ return /******/ (function(modules) { // webpackBootstrap
var
vm
var
vm
while
(
i
--
)
{
while
(
i
--
)
{
vm
=
this
.
vms
[
i
]
vm
=
this
.
vms
[
i
]
this
.
uncacheVm
(
vm
)
if
(
this
.
needDiff
)
{
this
.
uncacheVm
(
vm
)
}
vm
.
$destroy
()
vm
.
$destroy
()
}
}
}
}
...
@@ -6231,7 +6466,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6231,7 +6466,7 @@ return /******/ (function(modules) { // webpackBootstrap
if
(
!
cache
[
id
])
{
if
(
!
cache
[
id
])
{
cache
[
id
]
=
vm
cache
[
id
]
=
vm
}
else
{
}
else
{
_
.
warn
(
'
Duplicate
ID
in v-repeat:
'
+
id
)
_
.
warn
(
'
Duplicate
track-by key
in v-repeat:
'
+
id
)
}
}
}
else
if
(
isObject
(
data
))
{
}
else
if
(
isObject
(
data
))
{
id
=
this
.
id
id
=
this
.
id
...
@@ -6240,7 +6475,8 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6240,7 +6475,8 @@ return /******/ (function(modules) { // webpackBootstrap
data
[
id
]
=
vm
data
[
id
]
=
vm
}
else
{
}
else
{
_
.
warn
(
_
.
warn
(
'
Duplicate objects are not supported in v-repeat.
'
'
Duplicate objects are not supported in v-repeat
'
+
'
when using components or transitions.
'
)
)
}
}
}
else
{
}
else
{
...
@@ -6339,6 +6575,8 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6339,6 +6575,8 @@ return /******/ (function(modules) { // webpackBootstrap
*/
*/
function
objToArray
(
obj
)
{
function
objToArray
(
obj
)
{
// regardless of type, store the un-filtered raw value.
this
.
rawValue
=
obj
if
(
!
isPlainObject
(
obj
))
{
if
(
!
isPlainObject
(
obj
))
{
return
obj
return
obj
}
}
...
@@ -6349,8 +6587,8 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6349,8 +6587,8 @@ return /******/ (function(modules) { // webpackBootstrap
while
(
i
--
)
{
while
(
i
--
)
{
key
=
keys
[
i
]
key
=
keys
[
i
]
res
[
i
]
=
{
res
[
i
]
=
{
key
:
key
,
$
key
:
key
,
value
:
obj
[
key
]
$
value
:
obj
[
key
]
}
}
}
}
// `this` points to the repeat directive instance
// `this` points to the repeat directive instance
...
@@ -6374,6 +6612,35 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6374,6 +6612,35 @@ return /******/ (function(modules) { // webpackBootstrap
return
ret
return
ret
}
}
/**
* Helper function to overwrite new data Array on to
* existing vms. Used in `inplaceUpdate`.
*
* @param {Array} arr
* @param {Array} vms
* @param {String|undefined} alias
* @param {Boolean} converted
*/
function
overwrite
(
arr
,
vms
,
alias
,
converted
)
{
var
vm
,
data
,
raw
for
(
var
i
=
0
,
l
=
arr
.
length
;
i
<
l
;
i
++
)
{
vm
=
vms
[
i
]
data
=
raw
=
arr
[
i
]
if
(
converted
)
{
vm
.
$key
=
data
.
$key
raw
=
data
.
$value
}
if
(
alias
)
{
vm
[
alias
]
=
raw
}
else
if
(
!
isObject
(
raw
))
{
vm
.
$value
=
raw
}
else
{
vm
.
_setData
(
raw
)
}
}
}
/***/
},
/***/
},
/* 45 */
/* 45 */
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
@@ -6392,11 +6659,15 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6392,11 +6659,15 @@ return /******/ (function(modules) { // webpackBootstrap
this
.
end
=
document
.
createComment
(
'
v-if-end
'
)
this
.
end
=
document
.
createComment
(
'
v-if-end
'
)
_
.
replace
(
el
,
this
.
end
)
_
.
replace
(
el
,
this
.
end
)
_
.
before
(
this
.
start
,
this
.
end
)
_
.
before
(
this
.
start
,
this
.
end
)
// Note: content transclusion is not available for
// <template> blocks
if
(
el
.
tagName
===
'
TEMPLATE
'
)
{
if
(
el
.
tagName
===
'
TEMPLATE
'
)
{
this
.
template
=
templateParser
.
parse
(
el
,
true
)
this
.
template
=
templateParser
.
parse
(
el
,
true
)
}
else
{
}
else
{
this
.
template
=
document
.
createDocumentFragment
()
this
.
template
=
document
.
createDocumentFragment
()
this
.
template
.
appendChild
(
el
)
this
.
template
.
appendChild
(
templateParser
.
clone
(
el
))
this
.
checkContent
()
}
}
// compile the nested partial
// compile the nested partial
this
.
linker
=
compile
(
this
.
linker
=
compile
(
...
@@ -6413,32 +6684,67 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6413,32 +6684,67 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
},
},
// check if there are any content nodes from parent.
// these nodes are compiled by the parent and should
// not be cloned during a re-compilation - otherwise the
// parent directives bound to them will no longer work.
// (see #736)
checkContent
:
function
()
{
var
el
=
this
.
el
for
(
var
i
=
0
;
i
<
el
.
childNodes
.
length
;
i
++
)
{
var
node
=
el
.
childNodes
[
i
]
// _isContent is a flag set in instance/compile
// after the raw content has been compiled by parent
if
(
node
.
_isContent
)
{
;(
this
.
contentNodes
=
this
.
contentNodes
||
[]).
push
(
node
)
;(
this
.
contentPositions
=
this
.
contentPositions
||
[]).
push
(
i
)
}
}
// keep track of any transcluded components contained within
// the conditional block. we need to call attach/detach hooks
// for them.
this
.
transCpnts
=
this
.
vm
.
_transCpnts
&&
this
.
vm
.
_transCpnts
.
filter
(
function
(
c
)
{
return
el
.
contains
(
c
.
$el
)
})
},
update
:
function
(
value
)
{
update
:
function
(
value
)
{
if
(
this
.
invalid
)
return
if
(
this
.
invalid
)
return
if
(
value
)
{
if
(
value
)
{
this
.
insert
()
// avoid duplicate compiles, since update() can be
// called with different truthy values
if
(
!
this
.
unlink
)
{
var
frag
=
templateParser
.
clone
(
this
.
template
)
// persist content nodes from parent.
if
(
this
.
contentNodes
)
{
var
el
=
frag
.
childNodes
[
0
]
for
(
var
i
=
0
,
l
=
this
.
contentNodes
.
length
;
i
<
l
;
i
++
)
{
var
node
=
this
.
contentNodes
[
i
]
var
j
=
this
.
contentPositions
[
i
]
el
.
replaceChild
(
node
,
el
.
childNodes
[
j
])
}
}
this
.
compile
(
frag
)
}
}
else
{
}
else
{
this
.
teardown
()
this
.
teardown
()
}
}
},
},
insert
:
function
()
{
// NOTE: this function is shared in v-partial
// avoid duplicate inserts, since update() can be
compile
:
function
(
frag
)
{
// called with different truthy values
if
(
!
this
.
unlink
)
{
this
.
compile
(
this
.
template
)
}
},
compile
:
function
(
template
)
{
var
vm
=
this
.
vm
var
vm
=
this
.
vm
var
frag
=
templateParser
.
clone
(
template
)
var
originalChildLength
=
vm
.
_children
.
length
var
originalChildLength
=
vm
.
_children
.
length
this
.
unlink
=
this
.
linker
this
.
unlink
=
this
.
linker
?
this
.
linker
(
vm
,
frag
)
?
this
.
linker
(
vm
,
frag
)
:
vm
.
$compile
(
frag
)
:
vm
.
$compile
(
frag
)
transition
.
blockAppend
(
frag
,
this
.
end
,
vm
)
transition
.
blockAppend
(
frag
,
this
.
end
,
vm
)
this
.
children
=
vm
.
_children
.
slice
(
originalChildLength
)
this
.
children
=
vm
.
_children
.
slice
(
originalChildLength
)
if
(
this
.
transCpnts
)
{
this
.
children
=
this
.
children
.
concat
(
this
.
transCpnts
)
}
if
(
this
.
children
.
length
&&
_
.
inDoc
(
vm
.
$el
))
{
if
(
this
.
children
.
length
&&
_
.
inDoc
(
vm
.
$el
))
{
this
.
children
.
forEach
(
function
(
child
)
{
this
.
children
.
forEach
(
function
(
child
)
{
child
.
_callHook
(
'
attached
'
)
child
.
_callHook
(
'
attached
'
)
...
@@ -6446,6 +6752,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6446,6 +6752,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
},
},
// NOTE: this function is shared in v-partial
teardown
:
function
()
{
teardown
:
function
()
{
if
(
!
this
.
unlink
)
return
if
(
!
this
.
unlink
)
return
transition
.
blockRemove
(
this
.
start
,
this
.
end
,
this
.
vm
)
transition
.
blockRemove
(
this
.
start
,
this
.
end
,
this
.
vm
)
...
@@ -6458,6 +6765,11 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6458,6 +6765,11 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
this
.
unlink
()
this
.
unlink
()
this
.
unlink
=
null
this
.
unlink
=
null
},
// NOTE: this function is shared in v-partial
unbind
:
function
()
{
if
(
this
.
unlink
)
this
.
unlink
()
}
}
}
}
...
@@ -6639,8 +6951,8 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6639,8 +6951,8 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
// sort on a copy to avoid mutating original array
// sort on a copy to avoid mutating original array
return
arr
.
slice
().
sort
(
function
(
a
,
b
)
{
return
arr
.
slice
().
sort
(
function
(
a
,
b
)
{
a
=
Path
.
get
(
a
,
key
)
a
=
_
.
isObject
(
a
)
?
Path
.
get
(
a
,
key
)
:
a
b
=
Path
.
get
(
b
,
key
)
b
=
_
.
isObject
(
b
)
?
Path
.
get
(
b
,
key
)
:
b
return
a
===
b
?
0
:
a
>
b
?
order
:
-
order
return
a
===
b
?
0
:
a
>
b
?
order
:
-
order
})
})
}
}
...
@@ -6670,7 +6982,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -6670,7 +6982,7 @@ return /******/ (function(modules) { // webpackBootstrap
var
_
=
__webpack_require__
(
11
)
var
_
=
__webpack_require__
(
11
)
var
config
=
__webpack_require__
(
15
)
var
config
=
__webpack_require__
(
15
)
var
Dep
=
__webpack_require__
(
2
3
)
var
Dep
=
__webpack_require__
(
2
4
)
var
arrayMethods
=
__webpack_require__
(
54
)
var
arrayMethods
=
__webpack_require__
(
54
)
var
arrayKeys
=
Object
.
getOwnPropertyNames
(
arrayMethods
)
var
arrayKeys
=
Object
.
getOwnPropertyNames
(
arrayMethods
)
__webpack_require__
(
55
)
__webpack_require__
(
55
)
...
@@ -7715,6 +8027,9 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -7715,6 +8027,9 @@ return /******/ (function(modules) { // webpackBootstrap
*/
*/
module
.
exports
=
function
(
el
,
direction
,
op
,
data
,
def
,
vm
,
cb
)
{
module
.
exports
=
function
(
el
,
direction
,
op
,
data
,
def
,
vm
,
cb
)
{
// if the element is the root of an instance,
// use that instance as the transition function context
vm
=
el
.
__vue__
||
vm
if
(
data
.
cancel
)
{
if
(
data
.
cancel
)
{
data
.
cancel
()
data
.
cancel
()
data
.
cancel
=
null
data
.
cancel
=
null
...
@@ -7763,6 +8078,8 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -7763,6 +8078,8 @@ return /******/ (function(modules) { // webpackBootstrap
var
lazy
=
this
.
_checkParam
(
'
lazy
'
)
!=
null
var
lazy
=
this
.
_checkParam
(
'
lazy
'
)
!=
null
// - number: cast value into number when updating model.
// - number: cast value into number when updating model.
var
number
=
this
.
_checkParam
(
'
number
'
)
!=
null
var
number
=
this
.
_checkParam
(
'
number
'
)
!=
null
// - debounce: debounce the input listener
var
debounce
=
parseInt
(
this
.
_checkParam
(
'
debounce
'
),
10
)
// handle composition events.
// handle composition events.
// http://blog.evanyou.me/2014/01/03/composition-event/
// http://blog.evanyou.me/2014/01/03/composition-event/
...
@@ -7793,7 +8110,8 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -7793,7 +8110,8 @@ return /******/ (function(modules) { // webpackBootstrap
// the input with the filtered value.
// the input with the filtered value.
// also force update for type="range" inputs to enable
// also force update for type="range" inputs to enable
// "lock in range" (see #506)
// "lock in range" (see #506)
this
.
listener
=
this
.
filters
||
el
.
type
===
'
range
'
var
hasReadFilter
=
this
.
filters
&&
this
.
filters
.
read
this
.
listener
=
hasReadFilter
||
el
.
type
===
'
range
'
?
function
textInputListener
()
{
?
function
textInputListener
()
{
if
(
cpLocked
)
return
if
(
cpLocked
)
return
var
charsOffset
var
charsOffset
...
@@ -7829,8 +8147,26 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -7829,8 +8147,26 @@ return /******/ (function(modules) { // webpackBootstrap
set
()
set
()
}
}
if
(
debounce
)
{
this
.
listener
=
_
.
debounce
(
this
.
listener
,
debounce
)
}
this
.
event
=
lazy
?
'
change
'
:
'
input
'
this
.
event
=
lazy
?
'
change
'
:
'
input
'
_
.
on
(
el
,
this
.
event
,
this
.
listener
)
// Support jQuery events, since jQuery.trigger() doesn't
// trigger native events in some cases and some plugins
// rely on $.trigger()
//
// We want to make sure if a listener is attached using
// jQuery, it is also removed with jQuery, that's why
// we do the check for each directive instance and
// store that check result on itself. This also allows
// easier test coverage control by unsetting the global
// jQuery variable in tests.
this
.
hasjQuery
=
typeof
jQuery
===
'
function
'
if
(
this
.
hasjQuery
)
{
jQuery
(
el
).
on
(
this
.
event
,
this
.
listener
)
}
else
{
_
.
on
(
el
,
this
.
event
,
this
.
listener
)
}
// IE9 doesn't fire input event on backspace/del/cut
// IE9 doesn't fire input event on backspace/del/cut
if
(
!
lazy
&&
_
.
isIE9
)
{
if
(
!
lazy
&&
_
.
isIE9
)
{
...
@@ -7863,7 +8199,11 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -7863,7 +8199,11 @@ return /******/ (function(modules) { // webpackBootstrap
unbind
:
function
()
{
unbind
:
function
()
{
var
el
=
this
.
el
var
el
=
this
.
el
_
.
off
(
el
,
this
.
event
,
this
.
listener
)
if
(
this
.
hasjQuery
)
{
jQuery
(
el
).
off
(
this
.
event
,
this
.
listener
)
}
else
{
_
.
off
(
el
,
this
.
event
,
this
.
listener
)
}
_
.
off
(
el
,
'
compositionstart
'
,
this
.
cpLock
)
_
.
off
(
el
,
'
compositionstart
'
,
this
.
cpLock
)
_
.
off
(
el
,
'
compositionend
'
,
this
.
cpUnlock
)
_
.
off
(
el
,
'
compositionend
'
,
this
.
cpUnlock
)
if
(
this
.
onCut
)
{
if
(
this
.
onCut
)
{
...
@@ -7911,6 +8251,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -7911,6 +8251,7 @@ return /******/ (function(modules) { // webpackBootstrap
var
_
=
__webpack_require__
(
11
)
var
_
=
__webpack_require__
(
11
)
var
Watcher
=
__webpack_require__
(
25
)
var
Watcher
=
__webpack_require__
(
25
)
var
dirParser
=
__webpack_require__
(
21
)
module
.
exports
=
{
module
.
exports
=
{
...
@@ -7929,7 +8270,9 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -7929,7 +8270,9 @@ return /******/ (function(modules) { // webpackBootstrap
?
getMultiValue
(
el
)
?
getMultiValue
(
el
)
:
el
.
value
:
el
.
value
value
=
self
.
number
value
=
self
.
number
?
_
.
toNumber
(
value
)
?
_
.
isArray
(
value
)
?
value
.
map
(
_
.
toNumber
)
:
_
.
toNumber
(
value
)
:
value
:
value
self
.
set
(
value
,
true
)
self
.
set
(
value
,
true
)
}
}
...
@@ -7970,6 +8313,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -7970,6 +8313,7 @@ return /******/ (function(modules) { // webpackBootstrap
function
initOptions
(
expression
)
{
function
initOptions
(
expression
)
{
var
self
=
this
var
self
=
this
var
descriptor
=
dirParser
.
parse
(
expression
)[
0
]
function
optionUpdateWatcher
(
value
)
{
function
optionUpdateWatcher
(
value
)
{
if
(
_
.
isArray
(
value
))
{
if
(
_
.
isArray
(
value
))
{
self
.
el
.
innerHTML
=
''
self
.
el
.
innerHTML
=
''
...
@@ -7983,9 +8327,12 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -7983,9 +8327,12 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
this
.
optionWatcher
=
new
Watcher
(
this
.
optionWatcher
=
new
Watcher
(
this
.
vm
,
this
.
vm
,
expression
,
descriptor
.
expression
,
optionUpdateWatcher
,
optionUpdateWatcher
,
{
deep
:
true
}
{
deep
:
true
,
filters
:
_
.
resolveFilters
(
this
.
vm
,
descriptor
.
filters
)
}
)
)
// update with initial value
// update with initial value
optionUpdateWatcher
(
this
.
optionWatcher
.
value
)
optionUpdateWatcher
(
this
.
optionWatcher
.
value
)
...
@@ -8038,7 +8385,7 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -8038,7 +8385,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
}
}
}
}
if
(
initValue
)
{
if
(
typeof
initValue
!==
'
undefined
'
)
{
this
.
_initValue
=
this
.
number
this
.
_initValue
=
this
.
number
?
_
.
toNumber
(
initValue
)
?
_
.
toNumber
(
initValue
)
:
initValue
:
initValue
...
@@ -8116,3 +8463,4 @@ return /******/ (function(modules) { // webpackBootstrap
...
@@ -8116,3 +8463,4 @@ return /******/ (function(modules) { // webpackBootstrap
/***/
}
/***/
}
/******/
])
/******/
])
});
});
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment