vuejs 1.0.35 → 1.0.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -10
- data/lib/vuejs/version.rb +1 -1
- data/vendor/assets/javascripts/vue-validator.js +780 -554
- data/vendor/assets/javascripts/vue2.js +66 -24
- metadata +3 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vue.js v2.1.
|
2
|
+
* Vue.js v2.1.8
|
3
3
|
* (c) 2014-2016 Evan You
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -86,10 +86,10 @@ function isPrimitive (value) {
|
|
86
86
|
*/
|
87
87
|
function cached (fn) {
|
88
88
|
var cache = Object.create(null);
|
89
|
-
return function cachedFn (str) {
|
89
|
+
return (function cachedFn (str) {
|
90
90
|
var hit = cache[str];
|
91
91
|
return hit || (cache[str] = fn(str))
|
92
|
-
}
|
92
|
+
})
|
93
93
|
}
|
94
94
|
|
95
95
|
/**
|
@@ -1304,7 +1304,7 @@ function assertProp (
|
|
1304
1304
|
}
|
1305
1305
|
for (var i = 0; i < type.length && !valid; i++) {
|
1306
1306
|
var assertedType = assertType(value, type[i]);
|
1307
|
-
expectedTypes.push(assertedType.expectedType);
|
1307
|
+
expectedTypes.push(assertedType.expectedType || '');
|
1308
1308
|
valid = assertedType.valid;
|
1309
1309
|
}
|
1310
1310
|
}
|
@@ -1793,9 +1793,8 @@ Watcher.prototype.teardown = function teardown () {
|
|
1793
1793
|
if (this.active) {
|
1794
1794
|
// remove self from vm's watcher list
|
1795
1795
|
// this is a somewhat expensive operation so we skip it
|
1796
|
-
// if the vm is being destroyed
|
1797
|
-
|
1798
|
-
if (!this.vm._isBeingDestroyed && !this.vm._vForRemoving) {
|
1796
|
+
// if the vm is being destroyed.
|
1797
|
+
if (!this.vm._isBeingDestroyed) {
|
1799
1798
|
remove$1(this.vm._watchers, this);
|
1800
1799
|
}
|
1801
1800
|
var i = this.deps.length;
|
@@ -1933,6 +1932,14 @@ var computedSharedDefinition = {
|
|
1933
1932
|
|
1934
1933
|
function initComputed (vm, computed) {
|
1935
1934
|
for (var key in computed) {
|
1935
|
+
/* istanbul ignore if */
|
1936
|
+
if ("development" !== 'production' && key in vm) {
|
1937
|
+
warn(
|
1938
|
+
"existing instance property \"" + key + "\" will be " +
|
1939
|
+
"overwritten by a computed property with the same name.",
|
1940
|
+
vm
|
1941
|
+
);
|
1942
|
+
}
|
1936
1943
|
var userDef = computed[key];
|
1937
1944
|
if (typeof userDef === 'function') {
|
1938
1945
|
computedSharedDefinition.get = makeComputedGetter(userDef, vm);
|
@@ -3649,7 +3656,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
|
|
3649
3656
|
get: isServerRendering
|
3650
3657
|
});
|
3651
3658
|
|
3652
|
-
Vue$3.version = '2.1.
|
3659
|
+
Vue$3.version = '2.1.8';
|
3653
3660
|
|
3654
3661
|
/* */
|
3655
3662
|
|
@@ -4476,6 +4483,8 @@ function createPatchFunction (backend) {
|
|
4476
4483
|
}
|
4477
4484
|
}
|
4478
4485
|
}
|
4486
|
+
} else if (elm.data !== vnode.text) {
|
4487
|
+
elm.data = vnode.text;
|
4479
4488
|
}
|
4480
4489
|
return true
|
4481
4490
|
}
|
@@ -4487,7 +4496,7 @@ function createPatchFunction (backend) {
|
|
4487
4496
|
vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
|
4488
4497
|
)
|
4489
4498
|
} else {
|
4490
|
-
return
|
4499
|
+
return node.nodeType === (vnode.isComment ? 8 : 3)
|
4491
4500
|
}
|
4492
4501
|
}
|
4493
4502
|
|
@@ -5271,8 +5280,10 @@ function enter (vnode, toggleDisplay) {
|
|
5271
5280
|
var css = data.css;
|
5272
5281
|
var type = data.type;
|
5273
5282
|
var enterClass = data.enterClass;
|
5283
|
+
var enterToClass = data.enterToClass;
|
5274
5284
|
var enterActiveClass = data.enterActiveClass;
|
5275
5285
|
var appearClass = data.appearClass;
|
5286
|
+
var appearToClass = data.appearToClass;
|
5276
5287
|
var appearActiveClass = data.appearActiveClass;
|
5277
5288
|
var beforeEnter = data.beforeEnter;
|
5278
5289
|
var enter = data.enter;
|
@@ -5302,6 +5313,7 @@ function enter (vnode, toggleDisplay) {
|
|
5302
5313
|
|
5303
5314
|
var startClass = isAppear ? appearClass : enterClass;
|
5304
5315
|
var activeClass = isAppear ? appearActiveClass : enterActiveClass;
|
5316
|
+
var toClass = isAppear ? appearToClass : enterToClass;
|
5305
5317
|
var beforeEnterHook = isAppear ? (beforeAppear || beforeEnter) : beforeEnter;
|
5306
5318
|
var enterHook = isAppear ? (typeof appear === 'function' ? appear : enter) : enter;
|
5307
5319
|
var afterEnterHook = isAppear ? (afterAppear || afterEnter) : afterEnter;
|
@@ -5316,6 +5328,7 @@ function enter (vnode, toggleDisplay) {
|
|
5316
5328
|
|
5317
5329
|
var cb = el._enterCb = once(function () {
|
5318
5330
|
if (expectsCSS) {
|
5331
|
+
removeTransitionClass(el, toClass);
|
5319
5332
|
removeTransitionClass(el, activeClass);
|
5320
5333
|
}
|
5321
5334
|
if (cb.cancelled) {
|
@@ -5348,9 +5361,10 @@ function enter (vnode, toggleDisplay) {
|
|
5348
5361
|
beforeEnterHook && beforeEnterHook(el);
|
5349
5362
|
if (expectsCSS) {
|
5350
5363
|
addTransitionClass(el, startClass);
|
5364
|
+
addTransitionClass(el, activeClass);
|
5351
5365
|
nextFrame(function () {
|
5366
|
+
addTransitionClass(el, toClass);
|
5352
5367
|
removeTransitionClass(el, startClass);
|
5353
|
-
addTransitionClass(el, activeClass);
|
5354
5368
|
if (!cb.cancelled && !userWantsControl) {
|
5355
5369
|
whenTransitionEnds(el, type, cb);
|
5356
5370
|
}
|
@@ -5389,6 +5403,7 @@ function leave (vnode, rm) {
|
|
5389
5403
|
var css = data.css;
|
5390
5404
|
var type = data.type;
|
5391
5405
|
var leaveClass = data.leaveClass;
|
5406
|
+
var leaveToClass = data.leaveToClass;
|
5392
5407
|
var leaveActiveClass = data.leaveActiveClass;
|
5393
5408
|
var beforeLeave = data.beforeLeave;
|
5394
5409
|
var leave = data.leave;
|
@@ -5408,6 +5423,7 @@ function leave (vnode, rm) {
|
|
5408
5423
|
el.parentNode._pending[vnode.key] = null;
|
5409
5424
|
}
|
5410
5425
|
if (expectsCSS) {
|
5426
|
+
removeTransitionClass(el, leaveToClass);
|
5411
5427
|
removeTransitionClass(el, leaveActiveClass);
|
5412
5428
|
}
|
5413
5429
|
if (cb.cancelled) {
|
@@ -5440,9 +5456,10 @@ function leave (vnode, rm) {
|
|
5440
5456
|
beforeLeave && beforeLeave(el);
|
5441
5457
|
if (expectsCSS) {
|
5442
5458
|
addTransitionClass(el, leaveClass);
|
5459
|
+
addTransitionClass(el, leaveActiveClass);
|
5443
5460
|
nextFrame(function () {
|
5461
|
+
addTransitionClass(el, leaveToClass);
|
5444
5462
|
removeTransitionClass(el, leaveClass);
|
5445
|
-
addTransitionClass(el, leaveActiveClass);
|
5446
5463
|
if (!cb.cancelled && !userWantsControl) {
|
5447
5464
|
whenTransitionEnds(el, type, cb);
|
5448
5465
|
}
|
@@ -5477,6 +5494,9 @@ var autoCssTransition = cached(function (name) {
|
|
5477
5494
|
enterClass: (name + "-enter"),
|
5478
5495
|
leaveClass: (name + "-leave"),
|
5479
5496
|
appearClass: (name + "-enter"),
|
5497
|
+
enterToClass: (name + "-enter-to"),
|
5498
|
+
leaveToClass: (name + "-leave-to"),
|
5499
|
+
appearToClass: (name + "-enter-to"),
|
5480
5500
|
enterActiveClass: (name + "-enter-active"),
|
5481
5501
|
leaveActiveClass: (name + "-leave-active"),
|
5482
5502
|
appearActiveClass: (name + "-enter-active")
|
@@ -5744,10 +5764,13 @@ var transitionProps = {
|
|
5744
5764
|
type: String,
|
5745
5765
|
enterClass: String,
|
5746
5766
|
leaveClass: String,
|
5767
|
+
enterToClass: String,
|
5768
|
+
leaveToClass: String,
|
5747
5769
|
enterActiveClass: String,
|
5748
5770
|
leaveActiveClass: String,
|
5749
5771
|
appearClass: String,
|
5750
|
-
appearActiveClass: String
|
5772
|
+
appearActiveClass: String,
|
5773
|
+
appearToClass: String
|
5751
5774
|
};
|
5752
5775
|
|
5753
5776
|
// in case the child is also an abstract component, e.g. <keep-alive>
|
@@ -5791,6 +5814,10 @@ function hasParentTransition (vnode) {
|
|
5791
5814
|
}
|
5792
5815
|
}
|
5793
5816
|
|
5817
|
+
function isSameChild (child, oldChild) {
|
5818
|
+
return oldChild.key === child.key && oldChild.tag === child.tag
|
5819
|
+
}
|
5820
|
+
|
5794
5821
|
var Transition = {
|
5795
5822
|
name: 'transition',
|
5796
5823
|
props: transitionProps,
|
@@ -5863,11 +5890,10 @@ var Transition = {
|
|
5863
5890
|
child.data.show = true;
|
5864
5891
|
}
|
5865
5892
|
|
5866
|
-
if (oldChild && oldChild.data && oldChild
|
5893
|
+
if (oldChild && oldChild.data && !isSameChild(child, oldChild)) {
|
5867
5894
|
// replace old child transition data with fresh one
|
5868
5895
|
// important for dynamic transitions!
|
5869
|
-
var oldData = oldChild.data.transition = extend({}, data);
|
5870
|
-
|
5896
|
+
var oldData = oldChild && (oldChild.data.transition = extend({}, data));
|
5871
5897
|
// handle transition mode
|
5872
5898
|
if (mode === 'out-in') {
|
5873
5899
|
// return placeholder node and queue update when leave finishes
|
@@ -6078,6 +6104,15 @@ Vue$3.prototype.$mount = function (
|
|
6078
6104
|
return this._mount(el, hydrating)
|
6079
6105
|
};
|
6080
6106
|
|
6107
|
+
if ("development" !== 'production' &&
|
6108
|
+
inBrowser && typeof console !== 'undefined') {
|
6109
|
+
console[console.info ? 'info' : 'log'](
|
6110
|
+
"You are running Vue in development mode.\n" +
|
6111
|
+
"Make sure to turn on production mode when deploying for production.\n" +
|
6112
|
+
"See more tips at https://vuejs.org/guide/deployment.html"
|
6113
|
+
);
|
6114
|
+
}
|
6115
|
+
|
6081
6116
|
// devtools global hook
|
6082
6117
|
/* istanbul ignore next */
|
6083
6118
|
setTimeout(function () {
|
@@ -6088,8 +6123,8 @@ setTimeout(function () {
|
|
6088
6123
|
"development" !== 'production' &&
|
6089
6124
|
inBrowser && !isEdge && /Chrome\/\d+/.test(window.navigator.userAgent)
|
6090
6125
|
) {
|
6091
|
-
console.log(
|
6092
|
-
'Download the Vue Devtools for a better development experience:\n' +
|
6126
|
+
console[console.info ? 'info' : 'log'](
|
6127
|
+
'Download the Vue Devtools extension for a better development experience:\n' +
|
6093
6128
|
'https://github.com/vuejs/vue-devtools'
|
6094
6129
|
);
|
6095
6130
|
}
|
@@ -7540,6 +7575,8 @@ function bind$2 (el, dir) {
|
|
7540
7575
|
};
|
7541
7576
|
}
|
7542
7577
|
|
7578
|
+
/* */
|
7579
|
+
|
7543
7580
|
var baseDirectives = {
|
7544
7581
|
bind: bind$2,
|
7545
7582
|
cloak: noop
|
@@ -7818,23 +7855,25 @@ function genChildren (el, checkSkip) {
|
|
7818
7855
|
}
|
7819
7856
|
}
|
7820
7857
|
|
7821
|
-
// determine the
|
7858
|
+
// determine the normalization needed for the children array.
|
7822
7859
|
// 0: no normalization needed
|
7823
7860
|
// 1: simple normalization needed (possible 1-level deep nested array)
|
7824
|
-
// 2: full
|
7861
|
+
// 2: full normalization needed
|
7825
7862
|
function getNormalizationType (children) {
|
7863
|
+
var res = 0;
|
7826
7864
|
for (var i = 0; i < children.length; i++) {
|
7827
7865
|
var el = children[i];
|
7828
7866
|
if (needsNormalization(el) ||
|
7829
7867
|
(el.if && el.ifConditions.some(function (c) { return needsNormalization(c.block); }))) {
|
7830
|
-
|
7868
|
+
res = 2;
|
7869
|
+
break
|
7831
7870
|
}
|
7832
7871
|
if (maybeComponent(el) ||
|
7833
7872
|
(el.if && el.ifConditions.some(function (c) { return maybeComponent(c.block); }))) {
|
7834
|
-
|
7873
|
+
res = 1;
|
7835
7874
|
}
|
7836
7875
|
}
|
7837
|
-
return
|
7876
|
+
return res
|
7838
7877
|
}
|
7839
7878
|
|
7840
7879
|
function needsNormalization (el) {
|
@@ -8139,8 +8178,11 @@ function genCheckboxModel (
|
|
8139
8178
|
var falseValueBinding = getBindingAttr(el, 'false-value') || 'false';
|
8140
8179
|
addProp(el, 'checked',
|
8141
8180
|
"Array.isArray(" + value + ")" +
|
8142
|
-
"?_i(" + value + "," + valueBinding + ")>-1" +
|
8143
|
-
|
8181
|
+
"?_i(" + value + "," + valueBinding + ")>-1" + (
|
8182
|
+
trueValueBinding === 'true'
|
8183
|
+
? (":(" + value + ")")
|
8184
|
+
: (":_q(" + value + "," + trueValueBinding + ")")
|
8185
|
+
)
|
8144
8186
|
);
|
8145
8187
|
addHandler(el, 'change',
|
8146
8188
|
"var $$a=" + value + "," +
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vuejs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Lim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.6.8
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Latest Vue.js + vue-router + vue-resource + vue-validator + vuex for Rails
|