rails_admin_image_manager 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/rails_admin_image_manager/app-compiled.js.erb +759 -1340
- data/app/assets/javascripts/rails_admin_image_manager/ckeditor_plugin.js.erb +0 -0
- data/app/assets/javascripts/rails_admin_image_manager/components/imageInsertOverlay.vue +3 -1
- data/app/assets/javascripts/rails_admin_image_manager/router/index.js +0 -0
- data/app/assets/javascripts/rails_admin_image_manager/stores/medias.js +1 -1
- data/app/assets/stylesheets/rails_admin_image_manager/global.css.erb +20 -0
- data/app/models/rails_admin_image_manager/file.rb +0 -0
- data/lib/rails_admin_image_manager/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9449101eea142e292c1573651cab970ab0cb47cb
|
4
|
+
data.tar.gz: 2018ca9bc8fdd795fb4436d8cd5abe66e8e103ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e006b7775d152899cf3f4f13d8784c4e4e26105a3e8e6c14d9fbb3dc5142e0a727d54126e14b5788482a6db41e9d7434c887803c1dc4c3c30396144080b2af8d
|
7
|
+
data.tar.gz: 033f7d6d09025a16ddb041f2a2813b76c36096d9d6c5fb19c70f42d432d399ff3272a216359115b162b0d5ceee51d0cdcba60bc0562c0c3332d089610da15c9d
|
@@ -132,7 +132,7 @@
|
|
132
132
|
/***/ (function(module, exports, __webpack_require__) {
|
133
133
|
|
134
134
|
/* WEBPACK VAR INJECTION */(function(global) {/*!
|
135
|
-
* Vue.js v2.
|
135
|
+
* Vue.js v2.3.4
|
136
136
|
* (c) 2014-2017 Evan You
|
137
137
|
* Released under the MIT License.
|
138
138
|
*/
|
@@ -161,16 +161,11 @@
|
|
161
161
|
function isFalse (v) {
|
162
162
|
return v === false
|
163
163
|
}
|
164
|
-
|
165
164
|
/**
|
166
165
|
* Check if value is primitive
|
167
166
|
*/
|
168
167
|
function isPrimitive (value) {
|
169
|
-
return
|
170
|
-
typeof value === 'string' ||
|
171
|
-
typeof value === 'number' ||
|
172
|
-
typeof value === 'boolean'
|
173
|
-
)
|
168
|
+
return typeof value === 'string' || typeof value === 'number'
|
174
169
|
}
|
175
170
|
|
176
171
|
/**
|
@@ -196,14 +191,6 @@
|
|
196
191
|
return _toString.call(v) === '[object RegExp]'
|
197
192
|
}
|
198
193
|
|
199
|
-
/**
|
200
|
-
* Check if val is a valid array index.
|
201
|
-
*/
|
202
|
-
function isValidArrayIndex (val) {
|
203
|
-
var n = parseFloat(val);
|
204
|
-
return n >= 0 && Math.floor(n) === n && isFinite(val)
|
205
|
-
}
|
206
|
-
|
207
194
|
/**
|
208
195
|
* Convert a value to a string that is actually rendered.
|
209
196
|
*/
|
@@ -247,11 +234,6 @@
|
|
247
234
|
*/
|
248
235
|
var isBuiltInTag = makeMap('slot,component', true);
|
249
236
|
|
250
|
-
/**
|
251
|
-
* Check if a attribute is a reserved attribute.
|
252
|
-
*/
|
253
|
-
var isReservedAttribute = makeMap('key,ref,slot,is');
|
254
|
-
|
255
237
|
/**
|
256
238
|
* Remove an item from an array
|
257
239
|
*/
|
@@ -301,9 +283,12 @@
|
|
301
283
|
/**
|
302
284
|
* Hyphenate a camelCase string.
|
303
285
|
*/
|
304
|
-
var hyphenateRE =
|
286
|
+
var hyphenateRE = /([^-])([A-Z])/g;
|
305
287
|
var hyphenate = cached(function (str) {
|
306
|
-
return str
|
288
|
+
return str
|
289
|
+
.replace(hyphenateRE, '$1-$2')
|
290
|
+
.replace(hyphenateRE, '$1-$2')
|
291
|
+
.toLowerCase()
|
307
292
|
});
|
308
293
|
|
309
294
|
/**
|
@@ -361,15 +346,13 @@
|
|
361
346
|
|
362
347
|
/**
|
363
348
|
* Perform no operation.
|
364
|
-
* Stubbing args to make Flow happy without leaving useless transpiled code
|
365
|
-
* with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/)
|
366
349
|
*/
|
367
|
-
function noop (
|
350
|
+
function noop () {}
|
368
351
|
|
369
352
|
/**
|
370
353
|
* Always return false.
|
371
354
|
*/
|
372
|
-
var no = function (
|
355
|
+
var no = function () { return false; };
|
373
356
|
|
374
357
|
/**
|
375
358
|
* Return same value
|
@@ -390,30 +373,14 @@
|
|
390
373
|
* if they are plain objects, do they have the same shape?
|
391
374
|
*/
|
392
375
|
function looseEqual (a, b) {
|
393
|
-
if (a === b) { return true }
|
394
376
|
var isObjectA = isObject(a);
|
395
377
|
var isObjectB = isObject(b);
|
396
378
|
if (isObjectA && isObjectB) {
|
397
379
|
try {
|
398
|
-
|
399
|
-
var isArrayB = Array.isArray(b);
|
400
|
-
if (isArrayA && isArrayB) {
|
401
|
-
return a.length === b.length && a.every(function (e, i) {
|
402
|
-
return looseEqual(e, b[i])
|
403
|
-
})
|
404
|
-
} else if (!isArrayA && !isArrayB) {
|
405
|
-
var keysA = Object.keys(a);
|
406
|
-
var keysB = Object.keys(b);
|
407
|
-
return keysA.length === keysB.length && keysA.every(function (key) {
|
408
|
-
return looseEqual(a[key], b[key])
|
409
|
-
})
|
410
|
-
} else {
|
411
|
-
/* istanbul ignore next */
|
412
|
-
return false
|
413
|
-
}
|
380
|
+
return JSON.stringify(a) === JSON.stringify(b)
|
414
381
|
} catch (e) {
|
415
|
-
|
416
|
-
return
|
382
|
+
// possible circular reference
|
383
|
+
return a === b
|
417
384
|
}
|
418
385
|
} else if (!isObjectA && !isObjectB) {
|
419
386
|
return String(a) === String(b)
|
@@ -496,11 +463,6 @@
|
|
496
463
|
*/
|
497
464
|
errorHandler: null,
|
498
465
|
|
499
|
-
/**
|
500
|
-
* Warn handler for watcher warns
|
501
|
-
*/
|
502
|
-
warnHandler: null,
|
503
|
-
|
504
466
|
/**
|
505
467
|
* Ignore certain custom elements
|
506
468
|
*/
|
@@ -607,12 +569,10 @@
|
|
607
569
|
.replace(/[-_]/g, ''); };
|
608
570
|
|
609
571
|
warn = function (msg, vm) {
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
} else if (hasConsole && (!config.silent)) {
|
615
|
-
console.error(("[Vue warn]: " + msg + trace));
|
572
|
+
if (hasConsole && (!config.silent)) {
|
573
|
+
console.error("[Vue warn]: " + msg + (
|
574
|
+
vm ? generateComponentTrace(vm) : ''
|
575
|
+
));
|
616
576
|
}
|
617
577
|
};
|
618
578
|
|
@@ -722,9 +682,6 @@
|
|
722
682
|
var isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);
|
723
683
|
var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
|
724
684
|
|
725
|
-
// Firefox has a "watch" function on Object.prototype...
|
726
|
-
var nativeWatch = ({}).watch;
|
727
|
-
|
728
685
|
var supportsPassive = false;
|
729
686
|
if (inBrowser) {
|
730
687
|
try {
|
@@ -734,7 +691,7 @@
|
|
734
691
|
/* istanbul ignore next */
|
735
692
|
supportsPassive = true;
|
736
693
|
}
|
737
|
-
})); // https://github.com/facebook/flow/issues/285
|
694
|
+
} )); // https://github.com/facebook/flow/issues/285
|
738
695
|
window.addEventListener('test-passive', null, opts);
|
739
696
|
} catch (e) {}
|
740
697
|
}
|
@@ -804,13 +761,13 @@
|
|
804
761
|
// "force" the microtask queue to be flushed by adding an empty timer.
|
805
762
|
if (isIOS) { setTimeout(noop); }
|
806
763
|
};
|
807
|
-
} else if (
|
764
|
+
} else if (typeof MutationObserver !== 'undefined' && (
|
808
765
|
isNative(MutationObserver) ||
|
809
766
|
// PhantomJS and iOS 7.x
|
810
767
|
MutationObserver.toString() === '[object MutationObserverConstructor]'
|
811
768
|
)) {
|
812
769
|
// use MutationObserver where native Promise is not available,
|
813
|
-
// e.g. PhantomJS, iOS7, Android 4.4
|
770
|
+
// e.g. PhantomJS IE11, iOS7, Android 4.4
|
814
771
|
var counter = 1;
|
815
772
|
var observer = new MutationObserver(nextTickHandler);
|
816
773
|
var textNode = document.createTextNode(String(counter));
|
@@ -949,14 +906,22 @@
|
|
949
906
|
// cache original method
|
950
907
|
var original = arrayProto[method];
|
951
908
|
def(arrayMethods, method, function mutator () {
|
952
|
-
var
|
953
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
909
|
+
var arguments$1 = arguments;
|
954
910
|
|
911
|
+
// avoid leaking arguments:
|
912
|
+
// http://jsperf.com/closure-with-arguments
|
913
|
+
var i = arguments.length;
|
914
|
+
var args = new Array(i);
|
915
|
+
while (i--) {
|
916
|
+
args[i] = arguments$1[i];
|
917
|
+
}
|
955
918
|
var result = original.apply(this, args);
|
956
919
|
var ob = this.__ob__;
|
957
920
|
var inserted;
|
958
921
|
switch (method) {
|
959
922
|
case 'push':
|
923
|
+
inserted = args;
|
924
|
+
break
|
960
925
|
case 'unshift':
|
961
926
|
inserted = args;
|
962
927
|
break
|
@@ -982,7 +947,8 @@
|
|
982
947
|
* under a frozen data structure. Converting it would defeat the optimization.
|
983
948
|
*/
|
984
949
|
var observerState = {
|
985
|
-
shouldConvert: true
|
950
|
+
shouldConvert: true,
|
951
|
+
isSettingProps: false
|
986
952
|
};
|
987
953
|
|
988
954
|
/**
|
@@ -1034,7 +1000,7 @@
|
|
1034
1000
|
* Augment an target Object or Array by intercepting
|
1035
1001
|
* the prototype chain using __proto__
|
1036
1002
|
*/
|
1037
|
-
function protoAugment (target, src
|
1003
|
+
function protoAugment (target, src) {
|
1038
1004
|
/* eslint-disable no-proto */
|
1039
1005
|
target.__proto__ = src;
|
1040
1006
|
/* eslint-enable no-proto */
|
@@ -1086,8 +1052,7 @@
|
|
1086
1052
|
obj,
|
1087
1053
|
key,
|
1088
1054
|
val,
|
1089
|
-
customSetter
|
1090
|
-
shallow
|
1055
|
+
customSetter
|
1091
1056
|
) {
|
1092
1057
|
var dep = new Dep();
|
1093
1058
|
|
@@ -1100,7 +1065,7 @@
|
|
1100
1065
|
var getter = property && property.get;
|
1101
1066
|
var setter = property && property.set;
|
1102
1067
|
|
1103
|
-
var childOb =
|
1068
|
+
var childOb = observe(val);
|
1104
1069
|
Object.defineProperty(obj, key, {
|
1105
1070
|
enumerable: true,
|
1106
1071
|
configurable: true,
|
@@ -1110,9 +1075,9 @@
|
|
1110
1075
|
dep.depend();
|
1111
1076
|
if (childOb) {
|
1112
1077
|
childOb.dep.depend();
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1078
|
+
}
|
1079
|
+
if (Array.isArray(value)) {
|
1080
|
+
dependArray(value);
|
1116
1081
|
}
|
1117
1082
|
}
|
1118
1083
|
return value
|
@@ -1132,7 +1097,7 @@
|
|
1132
1097
|
} else {
|
1133
1098
|
val = newVal;
|
1134
1099
|
}
|
1135
|
-
childOb =
|
1100
|
+
childOb = observe(newVal);
|
1136
1101
|
dep.notify();
|
1137
1102
|
}
|
1138
1103
|
});
|
@@ -1144,7 +1109,7 @@
|
|
1144
1109
|
* already exist.
|
1145
1110
|
*/
|
1146
1111
|
function set (target, key, val) {
|
1147
|
-
if (Array.isArray(target) &&
|
1112
|
+
if (Array.isArray(target) && typeof key === 'number') {
|
1148
1113
|
target.length = Math.max(target.length, key);
|
1149
1114
|
target.splice(key, 1, val);
|
1150
1115
|
return val
|
@@ -1153,7 +1118,7 @@
|
|
1153
1118
|
target[key] = val;
|
1154
1119
|
return val
|
1155
1120
|
}
|
1156
|
-
var ob = (target).__ob__;
|
1121
|
+
var ob = (target ).__ob__;
|
1157
1122
|
if (target._isVue || (ob && ob.vmCount)) {
|
1158
1123
|
"development" !== 'production' && warn(
|
1159
1124
|
'Avoid adding reactive properties to a Vue instance or its root $data ' +
|
@@ -1174,11 +1139,11 @@
|
|
1174
1139
|
* Delete a property and trigger change if necessary.
|
1175
1140
|
*/
|
1176
1141
|
function del (target, key) {
|
1177
|
-
if (Array.isArray(target) &&
|
1142
|
+
if (Array.isArray(target) && typeof key === 'number') {
|
1178
1143
|
target.splice(key, 1);
|
1179
1144
|
return
|
1180
1145
|
}
|
1181
|
-
var ob = (target).__ob__;
|
1146
|
+
var ob = (target ).__ob__;
|
1182
1147
|
if (target._isVue || (ob && ob.vmCount)) {
|
1183
1148
|
"development" !== 'production' && warn(
|
1184
1149
|
'Avoid deleting properties on a Vue instance or its root $data ' +
|
@@ -1257,7 +1222,7 @@
|
|
1257
1222
|
/**
|
1258
1223
|
* Data
|
1259
1224
|
*/
|
1260
|
-
function
|
1225
|
+
strats.data = function (
|
1261
1226
|
parentVal,
|
1262
1227
|
childVal,
|
1263
1228
|
vm
|
@@ -1267,6 +1232,15 @@
|
|
1267
1232
|
if (!childVal) {
|
1268
1233
|
return parentVal
|
1269
1234
|
}
|
1235
|
+
if (typeof childVal !== 'function') {
|
1236
|
+
"development" !== 'production' && warn(
|
1237
|
+
'The "data" option should be a function ' +
|
1238
|
+
'that returns a per-instance value in component ' +
|
1239
|
+
'definitions.',
|
1240
|
+
vm
|
1241
|
+
);
|
1242
|
+
return parentVal
|
1243
|
+
}
|
1270
1244
|
if (!parentVal) {
|
1271
1245
|
return childVal
|
1272
1246
|
}
|
@@ -1277,8 +1251,8 @@
|
|
1277
1251
|
// it has to be a function to pass previous merges.
|
1278
1252
|
return function mergedDataFn () {
|
1279
1253
|
return mergeData(
|
1280
|
-
|
1281
|
-
|
1254
|
+
childVal.call(this),
|
1255
|
+
parentVal.call(this)
|
1282
1256
|
)
|
1283
1257
|
}
|
1284
1258
|
} else if (parentVal || childVal) {
|
@@ -1289,7 +1263,7 @@
|
|
1289
1263
|
: childVal;
|
1290
1264
|
var defaultData = typeof parentVal === 'function'
|
1291
1265
|
? parentVal.call(vm)
|
1292
|
-
:
|
1266
|
+
: undefined;
|
1293
1267
|
if (instanceData) {
|
1294
1268
|
return mergeData(instanceData, defaultData)
|
1295
1269
|
} else {
|
@@ -1297,28 +1271,6 @@
|
|
1297
1271
|
}
|
1298
1272
|
}
|
1299
1273
|
}
|
1300
|
-
}
|
1301
|
-
|
1302
|
-
strats.data = function (
|
1303
|
-
parentVal,
|
1304
|
-
childVal,
|
1305
|
-
vm
|
1306
|
-
) {
|
1307
|
-
if (!vm) {
|
1308
|
-
if (childVal && typeof childVal !== 'function') {
|
1309
|
-
"development" !== 'production' && warn(
|
1310
|
-
'The "data" option should be a function ' +
|
1311
|
-
'that returns a per-instance value in component ' +
|
1312
|
-
'definitions.',
|
1313
|
-
vm
|
1314
|
-
);
|
1315
|
-
|
1316
|
-
return parentVal
|
1317
|
-
}
|
1318
|
-
return mergeDataOrFn.call(this, parentVal, childVal)
|
1319
|
-
}
|
1320
|
-
|
1321
|
-
return mergeDataOrFn(parentVal, childVal, vm)
|
1322
1274
|
};
|
1323
1275
|
|
1324
1276
|
/**
|
@@ -1366,9 +1318,6 @@
|
|
1366
1318
|
* another, so we merge them as arrays.
|
1367
1319
|
*/
|
1368
1320
|
strats.watch = function (parentVal, childVal) {
|
1369
|
-
// work around Firefox's Object.prototype.watch...
|
1370
|
-
if (parentVal === nativeWatch) { parentVal = undefined; }
|
1371
|
-
if (childVal === nativeWatch) { childVal = undefined; }
|
1372
1321
|
/* istanbul ignore if */
|
1373
1322
|
if (!childVal) { return Object.create(parentVal || null) }
|
1374
1323
|
if (!parentVal) { return childVal }
|
@@ -1382,7 +1331,7 @@
|
|
1382
1331
|
}
|
1383
1332
|
ret[key] = parent
|
1384
1333
|
? parent.concat(child)
|
1385
|
-
:
|
1334
|
+
: [child];
|
1386
1335
|
}
|
1387
1336
|
return ret
|
1388
1337
|
};
|
@@ -1392,15 +1341,14 @@
|
|
1392
1341
|
*/
|
1393
1342
|
strats.props =
|
1394
1343
|
strats.methods =
|
1395
|
-
strats.inject =
|
1396
1344
|
strats.computed = function (parentVal, childVal) {
|
1345
|
+
if (!childVal) { return Object.create(parentVal || null) }
|
1397
1346
|
if (!parentVal) { return childVal }
|
1398
1347
|
var ret = Object.create(null);
|
1399
1348
|
extend(ret, parentVal);
|
1400
|
-
|
1349
|
+
extend(ret, childVal);
|
1401
1350
|
return ret
|
1402
1351
|
};
|
1403
|
-
strats.provide = mergeDataOrFn;
|
1404
1352
|
|
1405
1353
|
/**
|
1406
1354
|
* Default strategy.
|
@@ -1458,19 +1406,6 @@
|
|
1458
1406
|
options.props = res;
|
1459
1407
|
}
|
1460
1408
|
|
1461
|
-
/**
|
1462
|
-
* Normalize all injections into Object-based format
|
1463
|
-
*/
|
1464
|
-
function normalizeInject (options) {
|
1465
|
-
var inject = options.inject;
|
1466
|
-
if (Array.isArray(inject)) {
|
1467
|
-
var normalized = options.inject = {};
|
1468
|
-
for (var i = 0; i < inject.length; i++) {
|
1469
|
-
normalized[inject[i]] = inject[i];
|
1470
|
-
}
|
1471
|
-
}
|
1472
|
-
}
|
1473
|
-
|
1474
1409
|
/**
|
1475
1410
|
* Normalize raw function directives into object format.
|
1476
1411
|
*/
|
@@ -1504,7 +1439,6 @@
|
|
1504
1439
|
}
|
1505
1440
|
|
1506
1441
|
normalizeProps(child);
|
1507
|
-
normalizeInject(child);
|
1508
1442
|
normalizeDirectives(child);
|
1509
1443
|
var extendsFrom = child.extends;
|
1510
1444
|
if (extendsFrom) {
|
@@ -1692,12 +1626,7 @@
|
|
1692
1626
|
var valid;
|
1693
1627
|
var expectedType = getType(type);
|
1694
1628
|
if (simpleCheckRE.test(expectedType)) {
|
1695
|
-
|
1696
|
-
valid = t === expectedType.toLowerCase();
|
1697
|
-
// for primitive wrapper objects
|
1698
|
-
if (!valid && t === 'object') {
|
1699
|
-
valid = value instanceof type;
|
1700
|
-
}
|
1629
|
+
valid = typeof value === expectedType.toLowerCase();
|
1701
1630
|
} else if (expectedType === 'Object') {
|
1702
1631
|
valid = isPlainObject(value);
|
1703
1632
|
} else if (expectedType === 'Array') {
|
@@ -1842,8 +1771,7 @@
|
|
1842
1771
|
text,
|
1843
1772
|
elm,
|
1844
1773
|
context,
|
1845
|
-
componentOptions
|
1846
|
-
asyncFactory
|
1774
|
+
componentOptions
|
1847
1775
|
) {
|
1848
1776
|
this.tag = tag;
|
1849
1777
|
this.data = data;
|
@@ -1863,9 +1791,6 @@
|
|
1863
1791
|
this.isComment = false;
|
1864
1792
|
this.isCloned = false;
|
1865
1793
|
this.isOnce = false;
|
1866
|
-
this.asyncFactory = asyncFactory;
|
1867
|
-
this.asyncMeta = undefined;
|
1868
|
-
this.isAsyncPlaceholder = false;
|
1869
1794
|
};
|
1870
1795
|
|
1871
1796
|
var prototypeAccessors = { child: {} };
|
@@ -1878,11 +1803,9 @@
|
|
1878
1803
|
|
1879
1804
|
Object.defineProperties( VNode.prototype, prototypeAccessors );
|
1880
1805
|
|
1881
|
-
var createEmptyVNode = function (
|
1882
|
-
if ( text === void 0 ) text = '';
|
1883
|
-
|
1806
|
+
var createEmptyVNode = function () {
|
1884
1807
|
var node = new VNode();
|
1885
|
-
node.text =
|
1808
|
+
node.text = '';
|
1886
1809
|
node.isComment = true;
|
1887
1810
|
return node
|
1888
1811
|
};
|
@@ -1895,7 +1818,7 @@
|
|
1895
1818
|
// used for static nodes and slot nodes because they may be reused across
|
1896
1819
|
// multiple renders, cloning them avoids errors when DOM manipulations rely
|
1897
1820
|
// on their elm reference.
|
1898
|
-
function cloneVNode (vnode
|
1821
|
+
function cloneVNode (vnode) {
|
1899
1822
|
var cloned = new VNode(
|
1900
1823
|
vnode.tag,
|
1901
1824
|
vnode.data,
|
@@ -1903,25 +1826,21 @@
|
|
1903
1826
|
vnode.text,
|
1904
1827
|
vnode.elm,
|
1905
1828
|
vnode.context,
|
1906
|
-
vnode.componentOptions
|
1907
|
-
vnode.asyncFactory
|
1829
|
+
vnode.componentOptions
|
1908
1830
|
);
|
1909
1831
|
cloned.ns = vnode.ns;
|
1910
1832
|
cloned.isStatic = vnode.isStatic;
|
1911
1833
|
cloned.key = vnode.key;
|
1912
1834
|
cloned.isComment = vnode.isComment;
|
1913
1835
|
cloned.isCloned = true;
|
1914
|
-
if (deep && vnode.children) {
|
1915
|
-
cloned.children = cloneVNodes(vnode.children);
|
1916
|
-
}
|
1917
1836
|
return cloned
|
1918
1837
|
}
|
1919
1838
|
|
1920
|
-
function cloneVNodes (vnodes
|
1839
|
+
function cloneVNodes (vnodes) {
|
1921
1840
|
var len = vnodes.length;
|
1922
1841
|
var res = new Array(len);
|
1923
1842
|
for (var i = 0; i < len; i++) {
|
1924
|
-
res[i] = cloneVNode(vnodes[i]
|
1843
|
+
res[i] = cloneVNode(vnodes[i]);
|
1925
1844
|
}
|
1926
1845
|
return res
|
1927
1846
|
}
|
@@ -1935,10 +1854,8 @@
|
|
1935
1854
|
name = once$$1 ? name.slice(1) : name;
|
1936
1855
|
var capture = name.charAt(0) === '!';
|
1937
1856
|
name = capture ? name.slice(1) : name;
|
1938
|
-
var plain = !(passive || once$$1 || capture);
|
1939
1857
|
return {
|
1940
1858
|
name: name,
|
1941
|
-
plain: plain,
|
1942
1859
|
once: once$$1,
|
1943
1860
|
capture: capture,
|
1944
1861
|
passive: passive
|
@@ -1951,9 +1868,8 @@
|
|
1951
1868
|
|
1952
1869
|
var fns = invoker.fns;
|
1953
1870
|
if (Array.isArray(fns)) {
|
1954
|
-
var
|
1955
|
-
|
1956
|
-
cloned[i].apply(null, arguments$1);
|
1871
|
+
for (var i = 0; i < fns.length; i++) {
|
1872
|
+
fns[i].apply(null, arguments$1);
|
1957
1873
|
}
|
1958
1874
|
} else {
|
1959
1875
|
// return handler return value for single handlers
|
@@ -1964,11 +1880,6 @@
|
|
1964
1880
|
return invoker
|
1965
1881
|
}
|
1966
1882
|
|
1967
|
-
// #6552
|
1968
|
-
function prioritizePlainEvents (a, b) {
|
1969
|
-
return a.plain ? -1 : b.plain ? 1 : 0
|
1970
|
-
}
|
1971
|
-
|
1972
1883
|
function updateListeners (
|
1973
1884
|
on,
|
1974
1885
|
oldOn,
|
@@ -1977,13 +1888,10 @@
|
|
1977
1888
|
vm
|
1978
1889
|
) {
|
1979
1890
|
var name, cur, old, event;
|
1980
|
-
var toAdd = [];
|
1981
|
-
var hasModifier = false;
|
1982
1891
|
for (name in on) {
|
1983
1892
|
cur = on[name];
|
1984
1893
|
old = oldOn[name];
|
1985
1894
|
event = normalizeEvent(name);
|
1986
|
-
if (!event.plain) { hasModifier = true; }
|
1987
1895
|
if (isUndef(cur)) {
|
1988
1896
|
"development" !== 'production' && warn(
|
1989
1897
|
"Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
|
@@ -1993,20 +1901,12 @@
|
|
1993
1901
|
if (isUndef(cur.fns)) {
|
1994
1902
|
cur = on[name] = createFnInvoker(cur);
|
1995
1903
|
}
|
1996
|
-
event.
|
1997
|
-
toAdd.push(event);
|
1904
|
+
add(event.name, cur, event.once, event.capture, event.passive);
|
1998
1905
|
} else if (cur !== old) {
|
1999
1906
|
old.fns = cur;
|
2000
1907
|
on[name] = old;
|
2001
1908
|
}
|
2002
1909
|
}
|
2003
|
-
if (toAdd.length) {
|
2004
|
-
if (hasModifier) { toAdd.sort(prioritizePlainEvents); }
|
2005
|
-
for (var i = 0; i < toAdd.length; i++) {
|
2006
|
-
var event$1 = toAdd[i];
|
2007
|
-
add(event$1.name, event$1.handler, event$1.once, event$1.capture, event$1.passive);
|
2008
|
-
}
|
2009
|
-
}
|
2010
1910
|
for (name in oldOn) {
|
2011
1911
|
if (isUndef(on[name])) {
|
2012
1912
|
event = normalizeEvent(name);
|
@@ -2196,27 +2096,11 @@
|
|
2196
2096
|
/* */
|
2197
2097
|
|
2198
2098
|
function ensureCtor (comp, base) {
|
2199
|
-
if (comp.__esModule && comp.default) {
|
2200
|
-
comp = comp.default;
|
2201
|
-
}
|
2202
2099
|
return isObject(comp)
|
2203
2100
|
? base.extend(comp)
|
2204
2101
|
: comp
|
2205
2102
|
}
|
2206
2103
|
|
2207
|
-
function createAsyncPlaceholder (
|
2208
|
-
factory,
|
2209
|
-
data,
|
2210
|
-
context,
|
2211
|
-
children,
|
2212
|
-
tag
|
2213
|
-
) {
|
2214
|
-
var node = createEmptyVNode();
|
2215
|
-
node.asyncFactory = factory;
|
2216
|
-
node.asyncMeta = { data: data, context: context, children: children, tag: tag };
|
2217
|
-
return node
|
2218
|
-
}
|
2219
|
-
|
2220
2104
|
function resolveAsyncComponent (
|
2221
2105
|
factory,
|
2222
2106
|
baseCtor,
|
@@ -2319,17 +2203,11 @@
|
|
2319
2203
|
|
2320
2204
|
/* */
|
2321
2205
|
|
2322
|
-
function isAsyncPlaceholder (node) {
|
2323
|
-
return node.isComment && node.asyncFactory
|
2324
|
-
}
|
2325
|
-
|
2326
|
-
/* */
|
2327
|
-
|
2328
2206
|
function getFirstComponentChild (children) {
|
2329
2207
|
if (Array.isArray(children)) {
|
2330
2208
|
for (var i = 0; i < children.length; i++) {
|
2331
2209
|
var c = children[i];
|
2332
|
-
if (isDef(c) &&
|
2210
|
+
if (isDef(c) && isDef(c.componentOptions)) {
|
2333
2211
|
return c
|
2334
2212
|
}
|
2335
2213
|
}
|
@@ -2416,8 +2294,8 @@
|
|
2416
2294
|
}
|
2417
2295
|
// array of events
|
2418
2296
|
if (Array.isArray(event)) {
|
2419
|
-
for (var i = 0, l = event.length; i < l; i++) {
|
2420
|
-
this$1.$off(event[i], fn);
|
2297
|
+
for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
|
2298
|
+
this$1.$off(event[i$1], fn);
|
2421
2299
|
}
|
2422
2300
|
return vm
|
2423
2301
|
}
|
@@ -2430,16 +2308,14 @@
|
|
2430
2308
|
vm._events[event] = null;
|
2431
2309
|
return vm
|
2432
2310
|
}
|
2433
|
-
|
2434
|
-
|
2435
|
-
|
2436
|
-
|
2437
|
-
|
2438
|
-
|
2439
|
-
|
2440
|
-
|
2441
|
-
break
|
2442
|
-
}
|
2311
|
+
// specific handler
|
2312
|
+
var cb;
|
2313
|
+
var i = cbs.length;
|
2314
|
+
while (i--) {
|
2315
|
+
cb = cbs[i];
|
2316
|
+
if (cb === fn || cb.fn === fn) {
|
2317
|
+
cbs.splice(i, 1);
|
2318
|
+
break
|
2443
2319
|
}
|
2444
2320
|
}
|
2445
2321
|
return vm
|
@@ -2464,11 +2340,7 @@
|
|
2464
2340
|
cbs = cbs.length > 1 ? toArray(cbs) : cbs;
|
2465
2341
|
var args = toArray(arguments, 1);
|
2466
2342
|
for (var i = 0, l = cbs.length; i < l; i++) {
|
2467
|
-
|
2468
|
-
cbs[i].apply(vm, args);
|
2469
|
-
} catch (e) {
|
2470
|
-
handleError(e, vm, ("event handler for \"" + event + "\""));
|
2471
|
-
}
|
2343
|
+
cbs[i].apply(vm, args);
|
2472
2344
|
}
|
2473
2345
|
}
|
2474
2346
|
return vm
|
@@ -2491,15 +2363,10 @@
|
|
2491
2363
|
var defaultSlot = [];
|
2492
2364
|
for (var i = 0, l = children.length; i < l; i++) {
|
2493
2365
|
var child = children[i];
|
2494
|
-
var data = child.data;
|
2495
|
-
// remove slot attribute if the node is resolved as a Vue slot node
|
2496
|
-
if (data && data.attrs && data.attrs.slot) {
|
2497
|
-
delete data.attrs.slot;
|
2498
|
-
}
|
2499
2366
|
// named slots should only be respected if the vnode was rendered in the
|
2500
2367
|
// same context.
|
2501
2368
|
if ((child.context === context || child.functionalContext === context) &&
|
2502
|
-
data && data.slot != null
|
2369
|
+
child.data && child.data.slot != null
|
2503
2370
|
) {
|
2504
2371
|
var name = child.data.slot;
|
2505
2372
|
var slot = (slots[name] || (slots[name] = []));
|
@@ -2541,7 +2408,6 @@
|
|
2541
2408
|
/* */
|
2542
2409
|
|
2543
2410
|
var activeInstance = null;
|
2544
|
-
var isUpdatingChildComponent = false;
|
2545
2411
|
|
2546
2412
|
function initLifecycle (vm) {
|
2547
2413
|
var options = vm.$options;
|
@@ -2589,9 +2455,6 @@
|
|
2589
2455
|
vm.$options._parentElm,
|
2590
2456
|
vm.$options._refElm
|
2591
2457
|
);
|
2592
|
-
// no need for the ref nodes after initial patch
|
2593
|
-
// this prevents keeping a detached DOM tree in memory (#5851)
|
2594
|
-
vm.$options._parentElm = vm.$options._refElm = null;
|
2595
2458
|
} else {
|
2596
2459
|
// updates
|
2597
2460
|
vm.$el = vm.__patch__(prevVnode, vnode);
|
@@ -2656,6 +2519,8 @@
|
|
2656
2519
|
if (vm.$el) {
|
2657
2520
|
vm.$el.__vue__ = null;
|
2658
2521
|
}
|
2522
|
+
// remove reference to DOM nodes (prevents leak)
|
2523
|
+
vm.$options._parentElm = vm.$options._refElm = null;
|
2659
2524
|
};
|
2660
2525
|
}
|
2661
2526
|
|
@@ -2731,10 +2596,6 @@
|
|
2731
2596
|
parentVnode,
|
2732
2597
|
renderChildren
|
2733
2598
|
) {
|
2734
|
-
{
|
2735
|
-
isUpdatingChildComponent = true;
|
2736
|
-
}
|
2737
|
-
|
2738
2599
|
// determine whether component has slot children
|
2739
2600
|
// we need to do this before overwriting $options._renderChildren
|
2740
2601
|
var hasChildren = !!(
|
@@ -2746,21 +2607,17 @@
|
|
2746
2607
|
|
2747
2608
|
vm.$options._parentVnode = parentVnode;
|
2748
2609
|
vm.$vnode = parentVnode; // update vm's placeholder node without re-render
|
2749
|
-
|
2750
2610
|
if (vm._vnode) { // update child tree's parent
|
2751
2611
|
vm._vnode.parent = parentVnode;
|
2752
2612
|
}
|
2753
2613
|
vm.$options._renderChildren = renderChildren;
|
2754
2614
|
|
2755
|
-
// update $attrs and $listeners hash
|
2756
|
-
// these are also reactive so they may trigger child update if the child
|
2757
|
-
// used them during render
|
2758
|
-
vm.$attrs = (parentVnode.data && parentVnode.data.attrs) || emptyObject;
|
2759
|
-
vm.$listeners = listeners || emptyObject;
|
2760
|
-
|
2761
2615
|
// update props
|
2762
2616
|
if (propsData && vm.$options.props) {
|
2763
2617
|
observerState.shouldConvert = false;
|
2618
|
+
{
|
2619
|
+
observerState.isSettingProps = true;
|
2620
|
+
}
|
2764
2621
|
var props = vm._props;
|
2765
2622
|
var propKeys = vm.$options._propKeys || [];
|
2766
2623
|
for (var i = 0; i < propKeys.length; i++) {
|
@@ -2768,10 +2625,12 @@
|
|
2768
2625
|
props[key] = validateProp(key, vm.$options.props, propsData, vm);
|
2769
2626
|
}
|
2770
2627
|
observerState.shouldConvert = true;
|
2628
|
+
{
|
2629
|
+
observerState.isSettingProps = false;
|
2630
|
+
}
|
2771
2631
|
// keep a copy of raw propsData
|
2772
2632
|
vm.$options.propsData = propsData;
|
2773
2633
|
}
|
2774
|
-
|
2775
2634
|
// update listeners
|
2776
2635
|
if (listeners) {
|
2777
2636
|
var oldListeners = vm.$options._parentListeners;
|
@@ -2783,10 +2642,6 @@
|
|
2783
2642
|
vm.$slots = resolveSlots(renderChildren, parentVnode.context);
|
2784
2643
|
vm.$forceUpdate();
|
2785
2644
|
}
|
2786
|
-
|
2787
|
-
{
|
2788
|
-
isUpdatingChildComponent = false;
|
2789
|
-
}
|
2790
2645
|
}
|
2791
2646
|
|
2792
2647
|
function isInInactiveTree (vm) {
|
@@ -2920,7 +2775,7 @@
|
|
2920
2775
|
|
2921
2776
|
// call component updated and activated hooks
|
2922
2777
|
callActivatedHooks(activatedQueue);
|
2923
|
-
|
2778
|
+
callUpdateHooks(updatedQueue);
|
2924
2779
|
|
2925
2780
|
// devtool hook
|
2926
2781
|
/* istanbul ignore if */
|
@@ -2929,7 +2784,7 @@
|
|
2929
2784
|
}
|
2930
2785
|
}
|
2931
2786
|
|
2932
|
-
function
|
2787
|
+
function callUpdateHooks (queue) {
|
2933
2788
|
var i = queue.length;
|
2934
2789
|
while (i--) {
|
2935
2790
|
var watcher = queue[i];
|
@@ -3048,23 +2903,22 @@
|
|
3048
2903
|
pushTarget(this);
|
3049
2904
|
var value;
|
3050
2905
|
var vm = this.vm;
|
3051
|
-
|
3052
|
-
|
3053
|
-
|
3054
|
-
|
2906
|
+
if (this.user) {
|
2907
|
+
try {
|
2908
|
+
value = this.getter.call(vm, vm);
|
2909
|
+
} catch (e) {
|
3055
2910
|
handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
|
3056
|
-
} else {
|
3057
|
-
throw e
|
3058
|
-
}
|
3059
|
-
} finally {
|
3060
|
-
// "touch" every property so they are all tracked as
|
3061
|
-
// dependencies for deep watching
|
3062
|
-
if (this.deep) {
|
3063
|
-
traverse(value);
|
3064
2911
|
}
|
3065
|
-
|
3066
|
-
this.
|
2912
|
+
} else {
|
2913
|
+
value = this.getter.call(vm, vm);
|
3067
2914
|
}
|
2915
|
+
// "touch" every property so they are all tracked as
|
2916
|
+
// dependencies for deep watching
|
2917
|
+
if (this.deep) {
|
2918
|
+
traverse(value);
|
2919
|
+
}
|
2920
|
+
popTarget();
|
2921
|
+
this.cleanupDeps();
|
3068
2922
|
return value
|
3069
2923
|
};
|
3070
2924
|
|
@@ -3257,20 +3111,14 @@
|
|
3257
3111
|
observe(vm._data = {}, true /* asRootData */);
|
3258
3112
|
}
|
3259
3113
|
if (opts.computed) { initComputed(vm, opts.computed); }
|
3260
|
-
if (opts.watch
|
3261
|
-
initWatch(vm, opts.watch);
|
3262
|
-
}
|
3114
|
+
if (opts.watch) { initWatch(vm, opts.watch); }
|
3263
3115
|
}
|
3264
3116
|
|
3265
|
-
|
3266
|
-
|
3267
|
-
|
3268
|
-
|
3269
|
-
|
3270
|
-
vm
|
3271
|
-
);
|
3272
|
-
}
|
3273
|
-
}
|
3117
|
+
var isReservedProp = {
|
3118
|
+
key: 1,
|
3119
|
+
ref: 1,
|
3120
|
+
slot: 1
|
3121
|
+
};
|
3274
3122
|
|
3275
3123
|
function initProps (vm, propsOptions) {
|
3276
3124
|
var propsData = vm.$options.propsData || {};
|
@@ -3286,14 +3134,14 @@
|
|
3286
3134
|
var value = validateProp(key, propsOptions, propsData, vm);
|
3287
3135
|
/* istanbul ignore else */
|
3288
3136
|
{
|
3289
|
-
if (
|
3137
|
+
if (isReservedProp[key] || config.isReservedAttr(key)) {
|
3290
3138
|
warn(
|
3291
3139
|
("\"" + key + "\" is a reserved attribute and cannot be used as component prop."),
|
3292
3140
|
vm
|
3293
3141
|
);
|
3294
3142
|
}
|
3295
3143
|
defineReactive$$1(props, key, value, function () {
|
3296
|
-
if (vm.$parent && !
|
3144
|
+
if (vm.$parent && !observerState.isSettingProps) {
|
3297
3145
|
warn(
|
3298
3146
|
"Avoid mutating a prop directly since the value will be " +
|
3299
3147
|
"overwritten whenever the parent component re-renders. " +
|
@@ -3332,26 +3180,16 @@
|
|
3332
3180
|
// proxy data on instance
|
3333
3181
|
var keys = Object.keys(data);
|
3334
3182
|
var props = vm.$options.props;
|
3335
|
-
var methods = vm.$options.methods;
|
3336
3183
|
var i = keys.length;
|
3337
3184
|
while (i--) {
|
3338
|
-
|
3339
|
-
{
|
3340
|
-
if (methods && hasOwn(methods, key)) {
|
3341
|
-
warn(
|
3342
|
-
("Method \"" + key + "\" has already been defined as a data property."),
|
3343
|
-
vm
|
3344
|
-
);
|
3345
|
-
}
|
3346
|
-
}
|
3347
|
-
if (props && hasOwn(props, key)) {
|
3185
|
+
if (props && hasOwn(props, keys[i])) {
|
3348
3186
|
"development" !== 'production' && warn(
|
3349
|
-
"The data property \"" +
|
3187
|
+
"The data property \"" + (keys[i]) + "\" is already declared as a prop. " +
|
3350
3188
|
"Use prop default value instead.",
|
3351
3189
|
vm
|
3352
3190
|
);
|
3353
|
-
} else if (!isReserved(
|
3354
|
-
proxy(vm, "_data",
|
3191
|
+
} else if (!isReserved(keys[i])) {
|
3192
|
+
proxy(vm, "_data", keys[i]);
|
3355
3193
|
}
|
3356
3194
|
}
|
3357
3195
|
// observe data
|
@@ -3370,30 +3208,22 @@
|
|
3370
3208
|
var computedWatcherOptions = { lazy: true };
|
3371
3209
|
|
3372
3210
|
function initComputed (vm, computed) {
|
3373
|
-
"development" !== 'production' && checkOptionType(vm, 'computed');
|
3374
3211
|
var watchers = vm._computedWatchers = Object.create(null);
|
3375
|
-
// computed properties are just getters during SSR
|
3376
|
-
var isSSR = isServerRendering();
|
3377
3212
|
|
3378
3213
|
for (var key in computed) {
|
3379
3214
|
var userDef = computed[key];
|
3380
3215
|
var getter = typeof userDef === 'function' ? userDef : userDef.get;
|
3381
|
-
|
3382
|
-
|
3383
|
-
(
|
3384
|
-
|
3385
|
-
|
3386
|
-
|
3387
|
-
|
3388
|
-
|
3389
|
-
// create internal watcher for the computed property.
|
3390
|
-
watchers[key] = new Watcher(
|
3391
|
-
vm,
|
3392
|
-
getter || noop,
|
3393
|
-
noop,
|
3394
|
-
computedWatcherOptions
|
3395
|
-
);
|
3216
|
+
{
|
3217
|
+
if (getter === undefined) {
|
3218
|
+
warn(
|
3219
|
+
("No getter function has been defined for computed property \"" + key + "\"."),
|
3220
|
+
vm
|
3221
|
+
);
|
3222
|
+
getter = noop;
|
3223
|
+
}
|
3396
3224
|
}
|
3225
|
+
// create internal watcher for the computed property.
|
3226
|
+
watchers[key] = new Watcher(vm, getter, noop, computedWatcherOptions);
|
3397
3227
|
|
3398
3228
|
// component-defined computed properties are already defined on the
|
3399
3229
|
// component prototype. We only need to define computed properties defined
|
@@ -3410,20 +3240,13 @@
|
|
3410
3240
|
}
|
3411
3241
|
}
|
3412
3242
|
|
3413
|
-
function defineComputed (
|
3414
|
-
target,
|
3415
|
-
key,
|
3416
|
-
userDef
|
3417
|
-
) {
|
3418
|
-
var shouldCache = !isServerRendering();
|
3243
|
+
function defineComputed (target, key, userDef) {
|
3419
3244
|
if (typeof userDef === 'function') {
|
3420
|
-
sharedPropertyDefinition.get =
|
3421
|
-
? createComputedGetter(key)
|
3422
|
-
: userDef;
|
3245
|
+
sharedPropertyDefinition.get = createComputedGetter(key);
|
3423
3246
|
sharedPropertyDefinition.set = noop;
|
3424
3247
|
} else {
|
3425
3248
|
sharedPropertyDefinition.get = userDef.get
|
3426
|
-
?
|
3249
|
+
? userDef.cache !== false
|
3427
3250
|
? createComputedGetter(key)
|
3428
3251
|
: userDef.get
|
3429
3252
|
: noop;
|
@@ -3431,15 +3254,6 @@
|
|
3431
3254
|
? userDef.set
|
3432
3255
|
: noop;
|
3433
3256
|
}
|
3434
|
-
if ("development" !== 'production' &&
|
3435
|
-
sharedPropertyDefinition.set === noop) {
|
3436
|
-
sharedPropertyDefinition.set = function () {
|
3437
|
-
warn(
|
3438
|
-
("Computed property \"" + key + "\" was assigned to but it has no setter."),
|
3439
|
-
this
|
3440
|
-
);
|
3441
|
-
};
|
3442
|
-
}
|
3443
3257
|
Object.defineProperty(target, key, sharedPropertyDefinition);
|
3444
3258
|
}
|
3445
3259
|
|
@@ -3459,36 +3273,28 @@
|
|
3459
3273
|
}
|
3460
3274
|
|
3461
3275
|
function initMethods (vm, methods) {
|
3462
|
-
"development" !== 'production' && checkOptionType(vm, 'methods');
|
3463
3276
|
var props = vm.$options.props;
|
3464
3277
|
for (var key in methods) {
|
3278
|
+
vm[key] = methods[key] == null ? noop : bind(methods[key], vm);
|
3465
3279
|
{
|
3466
3280
|
if (methods[key] == null) {
|
3467
3281
|
warn(
|
3468
|
-
"
|
3282
|
+
"method \"" + key + "\" has an undefined value in the component definition. " +
|
3469
3283
|
"Did you reference the function correctly?",
|
3470
3284
|
vm
|
3471
3285
|
);
|
3472
3286
|
}
|
3473
3287
|
if (props && hasOwn(props, key)) {
|
3474
3288
|
warn(
|
3475
|
-
("
|
3289
|
+
("method \"" + key + "\" has already been defined as a prop."),
|
3476
3290
|
vm
|
3477
3291
|
);
|
3478
3292
|
}
|
3479
|
-
if ((key in vm) && isReserved(key)) {
|
3480
|
-
warn(
|
3481
|
-
"Method \"" + key + "\" conflicts with an existing Vue instance method. " +
|
3482
|
-
"Avoid defining component methods that start with _ or $."
|
3483
|
-
);
|
3484
|
-
}
|
3485
3293
|
}
|
3486
|
-
vm[key] = methods[key] == null ? noop : bind(methods[key], vm);
|
3487
3294
|
}
|
3488
3295
|
}
|
3489
3296
|
|
3490
3297
|
function initWatch (vm, watch) {
|
3491
|
-
"development" !== 'production' && checkOptionType(vm, 'watch');
|
3492
3298
|
for (var key in watch) {
|
3493
3299
|
var handler = watch[key];
|
3494
3300
|
if (Array.isArray(handler)) {
|
@@ -3501,12 +3307,8 @@
|
|
3501
3307
|
}
|
3502
3308
|
}
|
3503
3309
|
|
3504
|
-
function createWatcher (
|
3505
|
-
|
3506
|
-
keyOrFn,
|
3507
|
-
handler,
|
3508
|
-
options
|
3509
|
-
) {
|
3310
|
+
function createWatcher (vm, key, handler) {
|
3311
|
+
var options;
|
3510
3312
|
if (isPlainObject(handler)) {
|
3511
3313
|
options = handler;
|
3512
3314
|
handler = handler.handler;
|
@@ -3514,7 +3316,7 @@
|
|
3514
3316
|
if (typeof handler === 'string') {
|
3515
3317
|
handler = vm[handler];
|
3516
3318
|
}
|
3517
|
-
|
3319
|
+
vm.$watch(key, handler, options);
|
3518
3320
|
}
|
3519
3321
|
|
3520
3322
|
function stateMixin (Vue) {
|
@@ -3549,9 +3351,6 @@
|
|
3549
3351
|
options
|
3550
3352
|
) {
|
3551
3353
|
var vm = this;
|
3552
|
-
if (isPlainObject(cb)) {
|
3553
|
-
return createWatcher(vm, expOrFn, cb, options)
|
3554
|
-
}
|
3555
3354
|
options = options || {};
|
3556
3355
|
options.user = true;
|
3557
3356
|
var watcher = new Watcher(vm, expOrFn, cb, options);
|
@@ -3578,7 +3377,6 @@
|
|
3578
3377
|
function initInjections (vm) {
|
3579
3378
|
var result = resolveInject(vm.$options.inject, vm);
|
3580
3379
|
if (result) {
|
3581
|
-
observerState.shouldConvert = false;
|
3582
3380
|
Object.keys(result).forEach(function (key) {
|
3583
3381
|
/* istanbul ignore else */
|
3584
3382
|
{
|
@@ -3592,24 +3390,24 @@
|
|
3592
3390
|
});
|
3593
3391
|
}
|
3594
3392
|
});
|
3595
|
-
observerState.shouldConvert = true;
|
3596
3393
|
}
|
3597
3394
|
}
|
3598
3395
|
|
3599
3396
|
function resolveInject (inject, vm) {
|
3600
3397
|
if (inject) {
|
3601
3398
|
// inject is :any because flow is not smart enough to figure out cached
|
3399
|
+
// isArray here
|
3400
|
+
var isArray = Array.isArray(inject);
|
3602
3401
|
var result = Object.create(null);
|
3603
|
-
var keys =
|
3604
|
-
|
3605
|
-
|
3606
|
-
|
3607
|
-
})
|
3402
|
+
var keys = isArray
|
3403
|
+
? inject
|
3404
|
+
: hasSymbol
|
3405
|
+
? Reflect.ownKeys(inject)
|
3608
3406
|
: Object.keys(inject);
|
3609
3407
|
|
3610
3408
|
for (var i = 0; i < keys.length; i++) {
|
3611
3409
|
var key = keys[i];
|
3612
|
-
var provideKey = inject[key];
|
3410
|
+
var provideKey = isArray ? key : inject[key];
|
3613
3411
|
var source = vm;
|
3614
3412
|
while (source) {
|
3615
3413
|
if (source._provided && provideKey in source._provided) {
|
@@ -3618,9 +3416,6 @@
|
|
3618
3416
|
}
|
3619
3417
|
source = source.$parent;
|
3620
3418
|
}
|
3621
|
-
if ("development" !== 'production' && !source) {
|
3622
|
-
warn(("Injection \"" + key + "\" not found"), vm);
|
3623
|
-
}
|
3624
3419
|
}
|
3625
3420
|
return result
|
3626
3421
|
}
|
@@ -3639,7 +3434,7 @@
|
|
3639
3434
|
var propOptions = Ctor.options.props;
|
3640
3435
|
if (isDef(propOptions)) {
|
3641
3436
|
for (var key in propOptions) {
|
3642
|
-
props[key] = validateProp(key, propOptions, propsData ||
|
3437
|
+
props[key] = validateProp(key, propOptions, propsData || {});
|
3643
3438
|
}
|
3644
3439
|
} else {
|
3645
3440
|
if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
|
@@ -3654,7 +3449,7 @@
|
|
3654
3449
|
props: props,
|
3655
3450
|
children: children,
|
3656
3451
|
parent: context,
|
3657
|
-
listeners: data.on ||
|
3452
|
+
listeners: data.on || {},
|
3658
3453
|
injections: resolveInject(Ctor.options.inject, context),
|
3659
3454
|
slots: function () { return resolveSlots(children, context); }
|
3660
3455
|
});
|
@@ -3774,30 +3569,21 @@
|
|
3774
3569
|
}
|
3775
3570
|
|
3776
3571
|
// async component
|
3777
|
-
var asyncFactory;
|
3778
3572
|
if (isUndef(Ctor.cid)) {
|
3779
|
-
|
3780
|
-
Ctor = resolveAsyncComponent(asyncFactory, baseCtor, context);
|
3573
|
+
Ctor = resolveAsyncComponent(Ctor, baseCtor, context);
|
3781
3574
|
if (Ctor === undefined) {
|
3782
|
-
// return
|
3783
|
-
//
|
3784
|
-
|
3785
|
-
return createAsyncPlaceholder(
|
3786
|
-
asyncFactory,
|
3787
|
-
data,
|
3788
|
-
context,
|
3789
|
-
children,
|
3790
|
-
tag
|
3791
|
-
)
|
3575
|
+
// return nothing if this is indeed an async component
|
3576
|
+
// wait for the callback to trigger parent update.
|
3577
|
+
return
|
3792
3578
|
}
|
3793
3579
|
}
|
3794
3580
|
|
3795
|
-
data = data || {};
|
3796
|
-
|
3797
3581
|
// resolve constructor options in case global mixins are applied after
|
3798
3582
|
// component constructor creation
|
3799
3583
|
resolveConstructorOptions(Ctor);
|
3800
3584
|
|
3585
|
+
data = data || {};
|
3586
|
+
|
3801
3587
|
// transform component v-model data into props & events
|
3802
3588
|
if (isDef(data.model)) {
|
3803
3589
|
transformModel(Ctor.options, data);
|
@@ -3815,19 +3601,12 @@
|
|
3815
3601
|
// child component listeners instead of DOM listeners
|
3816
3602
|
var listeners = data.on;
|
3817
3603
|
// replace with listeners with .native modifier
|
3818
|
-
// so it gets processed during parent component patch.
|
3819
3604
|
data.on = data.nativeOn;
|
3820
3605
|
|
3821
3606
|
if (isTrue(Ctor.options.abstract)) {
|
3822
3607
|
// abstract components do not keep anything
|
3823
|
-
// other than props & listeners
|
3824
|
-
|
3825
|
-
// work around flow
|
3826
|
-
var slot = data.slot;
|
3608
|
+
// other than props & listeners
|
3827
3609
|
data = {};
|
3828
|
-
if (slot) {
|
3829
|
-
data.slot = slot;
|
3830
|
-
}
|
3831
3610
|
}
|
3832
3611
|
|
3833
3612
|
// merge component management hooks onto the placeholder node
|
@@ -3838,8 +3617,7 @@
|
|
3838
3617
|
var vnode = new VNode(
|
3839
3618
|
("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
|
3840
3619
|
data, undefined, undefined, undefined, context,
|
3841
|
-
{ Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children }
|
3842
|
-
asyncFactory
|
3620
|
+
{ Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children }
|
3843
3621
|
);
|
3844
3622
|
return vnode
|
3845
3623
|
}
|
@@ -3944,24 +3722,10 @@
|
|
3944
3722
|
);
|
3945
3723
|
return createEmptyVNode()
|
3946
3724
|
}
|
3947
|
-
// object syntax in v-bind
|
3948
|
-
if (isDef(data) && isDef(data.is)) {
|
3949
|
-
tag = data.is;
|
3950
|
-
}
|
3951
3725
|
if (!tag) {
|
3952
3726
|
// in case of component :is set to falsy value
|
3953
3727
|
return createEmptyVNode()
|
3954
3728
|
}
|
3955
|
-
// warn against non-primitive key
|
3956
|
-
if ("development" !== 'production' &&
|
3957
|
-
isDef(data) && isDef(data.key) && !isPrimitive(data.key)
|
3958
|
-
) {
|
3959
|
-
warn(
|
3960
|
-
'Avoid using non-primitive value as key, ' +
|
3961
|
-
'use string/number value instead.',
|
3962
|
-
context
|
3963
|
-
);
|
3964
|
-
}
|
3965
3729
|
// support single function children as default scoped slot
|
3966
3730
|
if (Array.isArray(children) &&
|
3967
3731
|
typeof children[0] === 'function'
|
@@ -3978,7 +3742,7 @@
|
|
3978
3742
|
var vnode, ns;
|
3979
3743
|
if (typeof tag === 'string') {
|
3980
3744
|
var Ctor;
|
3981
|
-
ns =
|
3745
|
+
ns = config.getTagNamespace(tag);
|
3982
3746
|
if (config.isReservedTag(tag)) {
|
3983
3747
|
// platform built-in elements
|
3984
3748
|
vnode = new VNode(
|
@@ -4074,7 +3838,7 @@
|
|
4074
3838
|
if (scopedSlotFn) { // scoped slot
|
4075
3839
|
props = props || {};
|
4076
3840
|
if (bindObject) {
|
4077
|
-
|
3841
|
+
extend(props, bindObject);
|
4078
3842
|
}
|
4079
3843
|
return scopedSlotFn(props) || fallback
|
4080
3844
|
} else {
|
@@ -4128,8 +3892,7 @@
|
|
4128
3892
|
data,
|
4129
3893
|
tag,
|
4130
3894
|
value,
|
4131
|
-
asProp
|
4132
|
-
isSync
|
3895
|
+
asProp
|
4133
3896
|
) {
|
4134
3897
|
if (value) {
|
4135
3898
|
if (!isObject(value)) {
|
@@ -4142,12 +3905,8 @@
|
|
4142
3905
|
value = toObject(value);
|
4143
3906
|
}
|
4144
3907
|
var hash;
|
4145
|
-
|
4146
|
-
if (
|
4147
|
-
key === 'class' ||
|
4148
|
-
key === 'style' ||
|
4149
|
-
isReservedAttribute(key)
|
4150
|
-
) {
|
3908
|
+
for (var key in value) {
|
3909
|
+
if (key === 'class' || key === 'style') {
|
4151
3910
|
hash = data;
|
4152
3911
|
} else {
|
4153
3912
|
var type = data.attrs && data.attrs.type;
|
@@ -4157,17 +3916,8 @@
|
|
4157
3916
|
}
|
4158
3917
|
if (!(key in hash)) {
|
4159
3918
|
hash[key] = value[key];
|
4160
|
-
|
4161
|
-
if (isSync) {
|
4162
|
-
var on = data.on || (data.on = {});
|
4163
|
-
on[("update:" + key)] = function ($event) {
|
4164
|
-
value[key] = $event;
|
4165
|
-
};
|
4166
|
-
}
|
4167
3919
|
}
|
4168
|
-
}
|
4169
|
-
|
4170
|
-
for (var key in value) loop( key );
|
3920
|
+
}
|
4171
3921
|
}
|
4172
3922
|
}
|
4173
3923
|
return data
|
@@ -4234,27 +3984,6 @@
|
|
4234
3984
|
|
4235
3985
|
/* */
|
4236
3986
|
|
4237
|
-
function bindObjectListeners (data, value) {
|
4238
|
-
if (value) {
|
4239
|
-
if (!isPlainObject(value)) {
|
4240
|
-
"development" !== 'production' && warn(
|
4241
|
-
'v-on without argument expects an Object value',
|
4242
|
-
this
|
4243
|
-
);
|
4244
|
-
} else {
|
4245
|
-
var on = data.on = data.on ? extend({}, data.on) : {};
|
4246
|
-
for (var key in value) {
|
4247
|
-
var existing = on[key];
|
4248
|
-
var ours = value[key];
|
4249
|
-
on[key] = existing ? [].concat(ours, existing) : ours;
|
4250
|
-
}
|
4251
|
-
}
|
4252
|
-
}
|
4253
|
-
return data
|
4254
|
-
}
|
4255
|
-
|
4256
|
-
/* */
|
4257
|
-
|
4258
3987
|
function initRender (vm) {
|
4259
3988
|
vm._vnode = null; // the root of the child tree
|
4260
3989
|
vm._staticTrees = null;
|
@@ -4270,20 +3999,6 @@
|
|
4270
3999
|
// normalization is always applied for the public version, used in
|
4271
4000
|
// user-written render functions.
|
4272
4001
|
vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
|
4273
|
-
|
4274
|
-
// $attrs & $listeners are exposed for easier HOC creation.
|
4275
|
-
// they need to be reactive so that HOCs using them are always updated
|
4276
|
-
var parentData = parentVnode && parentVnode.data;
|
4277
|
-
|
4278
|
-
/* istanbul ignore else */
|
4279
|
-
{
|
4280
|
-
defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
|
4281
|
-
!isUpdatingChildComponent && warn("$attrs is readonly.", vm);
|
4282
|
-
}, true);
|
4283
|
-
defineReactive$$1(vm, '$listeners', vm.$options._parentListeners || emptyObject, function () {
|
4284
|
-
!isUpdatingChildComponent && warn("$listeners is readonly.", vm);
|
4285
|
-
}, true);
|
4286
|
-
}
|
4287
4002
|
}
|
4288
4003
|
|
4289
4004
|
function renderMixin (Vue) {
|
@@ -4299,13 +4014,9 @@
|
|
4299
4014
|
var _parentVnode = ref._parentVnode;
|
4300
4015
|
|
4301
4016
|
if (vm._isMounted) {
|
4302
|
-
//
|
4303
|
-
// last render. They need to be cloned to ensure "freshness" for this render.
|
4017
|
+
// clone slot nodes on re-renders
|
4304
4018
|
for (var key in vm.$slots) {
|
4305
|
-
|
4306
|
-
if (slot._rendered) {
|
4307
|
-
vm.$slots[key] = cloneVNodes(slot, true /* deep */);
|
4308
|
-
}
|
4019
|
+
vm.$slots[key] = cloneVNodes(vm.$slots[key]);
|
4309
4020
|
}
|
4310
4021
|
}
|
4311
4022
|
|
@@ -4365,7 +4076,6 @@
|
|
4365
4076
|
Vue.prototype._v = createTextVNode;
|
4366
4077
|
Vue.prototype._e = createEmptyVNode;
|
4367
4078
|
Vue.prototype._u = resolveScopedSlots;
|
4368
|
-
Vue.prototype._g = bindObjectListeners;
|
4369
4079
|
}
|
4370
4080
|
|
4371
4081
|
/* */
|
@@ -4522,11 +4232,10 @@
|
|
4522
4232
|
|
4523
4233
|
function initUse (Vue) {
|
4524
4234
|
Vue.use = function (plugin) {
|
4525
|
-
|
4526
|
-
if (
|
4235
|
+
/* istanbul ignore if */
|
4236
|
+
if (plugin.installed) {
|
4527
4237
|
return this
|
4528
4238
|
}
|
4529
|
-
|
4530
4239
|
// additional parameters
|
4531
4240
|
var args = toArray(arguments, 1);
|
4532
4241
|
args.unshift(this);
|
@@ -4535,7 +4244,7 @@
|
|
4535
4244
|
} else if (typeof plugin === 'function') {
|
4536
4245
|
plugin.apply(null, args);
|
4537
4246
|
}
|
4538
|
-
|
4247
|
+
plugin.installed = true;
|
4539
4248
|
return this
|
4540
4249
|
};
|
4541
4250
|
}
|
@@ -4686,16 +4395,14 @@
|
|
4686
4395
|
|
4687
4396
|
/* */
|
4688
4397
|
|
4689
|
-
var patternTypes = [String, RegExp
|
4398
|
+
var patternTypes = [String, RegExp];
|
4690
4399
|
|
4691
4400
|
function getComponentName (opts) {
|
4692
4401
|
return opts && (opts.Ctor.options.name || opts.tag)
|
4693
4402
|
}
|
4694
4403
|
|
4695
4404
|
function matches (pattern, name) {
|
4696
|
-
if (
|
4697
|
-
return pattern.indexOf(name) > -1
|
4698
|
-
} else if (typeof pattern === 'string') {
|
4405
|
+
if (typeof pattern === 'string') {
|
4699
4406
|
return pattern.split(',').indexOf(name) > -1
|
4700
4407
|
} else if (isRegExp(pattern)) {
|
4701
4408
|
return pattern.test(name)
|
@@ -4842,11 +4549,11 @@
|
|
4842
4549
|
Object.defineProperty(Vue$3.prototype, '$ssrContext', {
|
4843
4550
|
get: function get () {
|
4844
4551
|
/* istanbul ignore next */
|
4845
|
-
return this.$vnode
|
4552
|
+
return this.$vnode.ssrContext
|
4846
4553
|
}
|
4847
4554
|
});
|
4848
4555
|
|
4849
|
-
Vue$3.version = '2.
|
4556
|
+
Vue$3.version = '2.3.4';
|
4850
4557
|
|
4851
4558
|
/* */
|
4852
4559
|
|
@@ -4855,7 +4562,7 @@
|
|
4855
4562
|
var isReservedAttr = makeMap('style,class');
|
4856
4563
|
|
4857
4564
|
// attributes that should be using props for binding
|
4858
|
-
var acceptValue = makeMap('input,textarea,option,select
|
4565
|
+
var acceptValue = makeMap('input,textarea,option,select');
|
4859
4566
|
var mustUseProp = function (tag, type, attr) {
|
4860
4567
|
return (
|
4861
4568
|
(attr === 'value' && acceptValue(tag)) && type !== 'button' ||
|
@@ -4907,7 +4614,7 @@
|
|
4907
4614
|
data = mergeClassData(data, parentNode.data);
|
4908
4615
|
}
|
4909
4616
|
}
|
4910
|
-
return
|
4617
|
+
return genClassFromData(data)
|
4911
4618
|
}
|
4912
4619
|
|
4913
4620
|
function mergeClassData (child, parent) {
|
@@ -4919,10 +4626,9 @@
|
|
4919
4626
|
}
|
4920
4627
|
}
|
4921
4628
|
|
4922
|
-
function
|
4923
|
-
|
4924
|
-
|
4925
|
-
) {
|
4629
|
+
function genClassFromData (data) {
|
4630
|
+
var dynamicClass = data.class;
|
4631
|
+
var staticClass = data.staticClass;
|
4926
4632
|
if (isDef(staticClass) || isDef(dynamicClass)) {
|
4927
4633
|
return concat(staticClass, stringifyClass(dynamicClass))
|
4928
4634
|
}
|
@@ -4935,39 +4641,31 @@
|
|
4935
4641
|
}
|
4936
4642
|
|
4937
4643
|
function stringifyClass (value) {
|
4938
|
-
if (
|
4939
|
-
return
|
4940
|
-
}
|
4941
|
-
if (isObject(value)) {
|
4942
|
-
return stringifyObject(value)
|
4644
|
+
if (isUndef(value)) {
|
4645
|
+
return ''
|
4943
4646
|
}
|
4944
4647
|
if (typeof value === 'string') {
|
4945
4648
|
return value
|
4946
4649
|
}
|
4947
|
-
/* istanbul ignore next */
|
4948
|
-
return ''
|
4949
|
-
}
|
4950
|
-
|
4951
|
-
function stringifyArray (value) {
|
4952
4650
|
var res = '';
|
4953
|
-
|
4954
|
-
|
4955
|
-
|
4956
|
-
if (
|
4957
|
-
|
4651
|
+
if (Array.isArray(value)) {
|
4652
|
+
var stringified;
|
4653
|
+
for (var i = 0, l = value.length; i < l; i++) {
|
4654
|
+
if (isDef(value[i])) {
|
4655
|
+
if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
|
4656
|
+
res += stringified + ' ';
|
4657
|
+
}
|
4658
|
+
}
|
4958
4659
|
}
|
4660
|
+
return res.slice(0, -1)
|
4959
4661
|
}
|
4960
|
-
|
4961
|
-
|
4962
|
-
|
4963
|
-
function stringifyObject (value) {
|
4964
|
-
var res = '';
|
4965
|
-
for (var key in value) {
|
4966
|
-
if (value[key]) {
|
4967
|
-
if (res) { res += ' '; }
|
4968
|
-
res += key;
|
4662
|
+
if (isObject(value)) {
|
4663
|
+
for (var key in value) {
|
4664
|
+
if (value[key]) { res += key + ' '; }
|
4969
4665
|
}
|
4666
|
+
return res.slice(0, -1)
|
4970
4667
|
}
|
4668
|
+
/* istanbul ignore next */
|
4971
4669
|
return res
|
4972
4670
|
}
|
4973
4671
|
|
@@ -4981,7 +4679,7 @@
|
|
4981
4679
|
var isHTMLTag = makeMap(
|
4982
4680
|
'html,body,base,head,link,meta,style,title,' +
|
4983
4681
|
'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
|
4984
|
-
'div,dd,dl,dt,figcaption,figure,
|
4682
|
+
'div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,' +
|
4985
4683
|
'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
|
4986
4684
|
's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +
|
4987
4685
|
'embed,object,param,source,canvas,script,noscript,del,ins,' +
|
@@ -4989,7 +4687,7 @@
|
|
4989
4687
|
'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +
|
4990
4688
|
'output,progress,select,textarea,' +
|
4991
4689
|
'details,dialog,menu,menuitem,summary,' +
|
4992
|
-
'content,element,shadow,template
|
4690
|
+
'content,element,shadow,template'
|
4993
4691
|
);
|
4994
4692
|
|
4995
4693
|
// this map is intentionally selective, only covering SVG elements that may
|
@@ -5044,8 +4742,6 @@
|
|
5044
4742
|
}
|
5045
4743
|
}
|
5046
4744
|
|
5047
|
-
var isTextInputType = makeMap('text,number,password,search,email,tel,url');
|
5048
|
-
|
5049
4745
|
/* */
|
5050
4746
|
|
5051
4747
|
/**
|
@@ -5172,11 +4868,10 @@
|
|
5172
4868
|
}
|
5173
4869
|
} else {
|
5174
4870
|
if (vnode.data.refInFor) {
|
5175
|
-
if (
|
5176
|
-
refs[key] = [ref];
|
5177
|
-
} else if (refs[key].indexOf(ref) < 0) {
|
5178
|
-
// $flow-disable-line
|
4871
|
+
if (Array.isArray(refs[key]) && refs[key].indexOf(ref) < 0) {
|
5179
4872
|
refs[key].push(ref);
|
4873
|
+
} else {
|
4874
|
+
refs[key] = [ref];
|
5180
4875
|
}
|
5181
4876
|
} else {
|
5182
4877
|
refs[key] = ref;
|
@@ -5192,6 +4887,8 @@
|
|
5192
4887
|
*
|
5193
4888
|
* modified by Evan You (@yyx990803)
|
5194
4889
|
*
|
4890
|
+
|
4891
|
+
/*
|
5195
4892
|
* Not type-checking this because this file is perf-critical and the cost
|
5196
4893
|
* of making flow understand it is not worth it.
|
5197
4894
|
*/
|
@@ -5202,27 +4899,22 @@
|
|
5202
4899
|
|
5203
4900
|
function sameVnode (a, b) {
|
5204
4901
|
return (
|
5205
|
-
a.key === b.key &&
|
5206
|
-
|
5207
|
-
|
5208
|
-
|
5209
|
-
|
5210
|
-
sameInputType(a, b)
|
5211
|
-
) || (
|
5212
|
-
isTrue(a.isAsyncPlaceholder) &&
|
5213
|
-
a.asyncFactory === b.asyncFactory &&
|
5214
|
-
isUndef(b.asyncFactory.error)
|
5215
|
-
)
|
5216
|
-
)
|
4902
|
+
a.key === b.key &&
|
4903
|
+
a.tag === b.tag &&
|
4904
|
+
a.isComment === b.isComment &&
|
4905
|
+
isDef(a.data) === isDef(b.data) &&
|
4906
|
+
sameInputType(a, b)
|
5217
4907
|
)
|
5218
4908
|
}
|
5219
4909
|
|
4910
|
+
// Some browsers do not support dynamically changing type for <input>
|
4911
|
+
// so they need to be treated as different nodes
|
5220
4912
|
function sameInputType (a, b) {
|
5221
4913
|
if (a.tag !== 'input') { return true }
|
5222
4914
|
var i;
|
5223
4915
|
var typeA = isDef(i = a.data) && isDef(i = i.attrs) && i.type;
|
5224
4916
|
var typeB = isDef(i = b.data) && isDef(i = i.attrs) && i.type;
|
5225
|
-
return typeA === typeB
|
4917
|
+
return typeA === typeB
|
5226
4918
|
}
|
5227
4919
|
|
5228
4920
|
function createKeyToOldIdx (children, beginIdx, endIdx) {
|
@@ -5389,11 +5081,11 @@
|
|
5389
5081
|
insert(parentElm, vnode.elm, refElm);
|
5390
5082
|
}
|
5391
5083
|
|
5392
|
-
function insert (parent, elm, ref
|
5084
|
+
function insert (parent, elm, ref) {
|
5393
5085
|
if (isDef(parent)) {
|
5394
|
-
if (isDef(ref
|
5395
|
-
if (ref
|
5396
|
-
nodeOps.insertBefore(parent, elm, ref
|
5086
|
+
if (isDef(ref)) {
|
5087
|
+
if (ref.parentNode === parent) {
|
5088
|
+
nodeOps.insertBefore(parent, elm, ref);
|
5397
5089
|
}
|
5398
5090
|
} else {
|
5399
5091
|
nodeOps.appendChild(parent, elm);
|
@@ -5554,11 +5246,10 @@
|
|
5554
5246
|
newStartVnode = newCh[++newStartIdx];
|
5555
5247
|
} else {
|
5556
5248
|
if (isUndef(oldKeyToIdx)) { oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx); }
|
5557
|
-
idxInOld = isDef(newStartVnode.key)
|
5558
|
-
? oldKeyToIdx[newStartVnode.key]
|
5559
|
-
: findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx);
|
5249
|
+
idxInOld = isDef(newStartVnode.key) ? oldKeyToIdx[newStartVnode.key] : null;
|
5560
5250
|
if (isUndef(idxInOld)) { // New element
|
5561
5251
|
createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm);
|
5252
|
+
newStartVnode = newCh[++newStartIdx];
|
5562
5253
|
} else {
|
5563
5254
|
elmToMove = oldCh[idxInOld];
|
5564
5255
|
/* istanbul ignore if */
|
@@ -5571,13 +5262,14 @@
|
|
5571
5262
|
if (sameVnode(elmToMove, newStartVnode)) {
|
5572
5263
|
patchVnode(elmToMove, newStartVnode, insertedVnodeQueue);
|
5573
5264
|
oldCh[idxInOld] = undefined;
|
5574
|
-
canMove && nodeOps.insertBefore(parentElm,
|
5265
|
+
canMove && nodeOps.insertBefore(parentElm, newStartVnode.elm, oldStartVnode.elm);
|
5266
|
+
newStartVnode = newCh[++newStartIdx];
|
5575
5267
|
} else {
|
5576
5268
|
// same key but different element. treat as new element
|
5577
5269
|
createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm);
|
5270
|
+
newStartVnode = newCh[++newStartIdx];
|
5578
5271
|
}
|
5579
5272
|
}
|
5580
|
-
newStartVnode = newCh[++newStartIdx];
|
5581
5273
|
}
|
5582
5274
|
}
|
5583
5275
|
if (oldStartIdx > oldEndIdx) {
|
@@ -5588,29 +5280,10 @@
|
|
5588
5280
|
}
|
5589
5281
|
}
|
5590
5282
|
|
5591
|
-
function findIdxInOld (node, oldCh, start, end) {
|
5592
|
-
for (var i = start; i < end; i++) {
|
5593
|
-
var c = oldCh[i];
|
5594
|
-
if (isDef(c) && sameVnode(node, c)) { return i }
|
5595
|
-
}
|
5596
|
-
}
|
5597
|
-
|
5598
5283
|
function patchVnode (oldVnode, vnode, insertedVnodeQueue, removeOnly) {
|
5599
5284
|
if (oldVnode === vnode) {
|
5600
5285
|
return
|
5601
5286
|
}
|
5602
|
-
|
5603
|
-
var elm = vnode.elm = oldVnode.elm;
|
5604
|
-
|
5605
|
-
if (isTrue(oldVnode.isAsyncPlaceholder)) {
|
5606
|
-
if (isDef(vnode.asyncFactory.resolved)) {
|
5607
|
-
hydrate(oldVnode.elm, vnode, insertedVnodeQueue);
|
5608
|
-
} else {
|
5609
|
-
vnode.isAsyncPlaceholder = true;
|
5610
|
-
}
|
5611
|
-
return
|
5612
|
-
}
|
5613
|
-
|
5614
5287
|
// reuse element for static trees.
|
5615
5288
|
// note we only do this if the vnode is cloned -
|
5616
5289
|
// if the new node is not cloned it means the render functions have been
|
@@ -5620,16 +5293,16 @@
|
|
5620
5293
|
vnode.key === oldVnode.key &&
|
5621
5294
|
(isTrue(vnode.isCloned) || isTrue(vnode.isOnce))
|
5622
5295
|
) {
|
5296
|
+
vnode.elm = oldVnode.elm;
|
5623
5297
|
vnode.componentInstance = oldVnode.componentInstance;
|
5624
5298
|
return
|
5625
5299
|
}
|
5626
|
-
|
5627
5300
|
var i;
|
5628
5301
|
var data = vnode.data;
|
5629
5302
|
if (isDef(data) && isDef(i = data.hook) && isDef(i = i.prepatch)) {
|
5630
5303
|
i(oldVnode, vnode);
|
5631
5304
|
}
|
5632
|
-
|
5305
|
+
var elm = vnode.elm = oldVnode.elm;
|
5633
5306
|
var oldCh = oldVnode.children;
|
5634
5307
|
var ch = vnode.children;
|
5635
5308
|
if (isDef(data) && isPatchable(vnode)) {
|
@@ -5674,11 +5347,6 @@
|
|
5674
5347
|
|
5675
5348
|
// Note: this is a browser-only function so we can assume elms are DOM nodes.
|
5676
5349
|
function hydrate (elm, vnode, insertedVnodeQueue) {
|
5677
|
-
if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {
|
5678
|
-
vnode.elm = elm;
|
5679
|
-
vnode.isAsyncPlaceholder = true;
|
5680
|
-
return true
|
5681
|
-
}
|
5682
5350
|
{
|
5683
5351
|
if (!assertNodeMatch(elm, vnode)) {
|
5684
5352
|
return false
|
@@ -5702,46 +5370,27 @@
|
|
5702
5370
|
if (!elm.hasChildNodes()) {
|
5703
5371
|
createChildren(vnode, children, insertedVnodeQueue);
|
5704
5372
|
} else {
|
5705
|
-
|
5706
|
-
|
5707
|
-
|
5708
|
-
|
5709
|
-
|
5710
|
-
|
5711
|
-
!bailed
|
5712
|
-
) {
|
5713
|
-
bailed = true;
|
5714
|
-
console.warn('Parent: ', elm);
|
5715
|
-
console.warn('server innerHTML: ', i);
|
5716
|
-
console.warn('client innerHTML: ', elm.innerHTML);
|
5717
|
-
}
|
5718
|
-
return false
|
5373
|
+
var childrenMatch = true;
|
5374
|
+
var childNode = elm.firstChild;
|
5375
|
+
for (var i$1 = 0; i$1 < children.length; i$1++) {
|
5376
|
+
if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue)) {
|
5377
|
+
childrenMatch = false;
|
5378
|
+
break
|
5719
5379
|
}
|
5720
|
-
|
5721
|
-
|
5722
|
-
|
5723
|
-
|
5724
|
-
|
5725
|
-
|
5726
|
-
|
5727
|
-
|
5728
|
-
|
5729
|
-
|
5730
|
-
|
5731
|
-
|
5732
|
-
// longer than the virtual children list.
|
5733
|
-
if (!childrenMatch || childNode) {
|
5734
|
-
/* istanbul ignore if */
|
5735
|
-
if ("development" !== 'production' &&
|
5736
|
-
typeof console !== 'undefined' &&
|
5737
|
-
!bailed
|
5738
|
-
) {
|
5739
|
-
bailed = true;
|
5740
|
-
console.warn('Parent: ', elm);
|
5741
|
-
console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);
|
5742
|
-
}
|
5743
|
-
return false
|
5380
|
+
childNode = childNode.nextSibling;
|
5381
|
+
}
|
5382
|
+
// if childNode is not null, it means the actual childNodes list is
|
5383
|
+
// longer than the virtual children list.
|
5384
|
+
if (!childrenMatch || childNode) {
|
5385
|
+
if ("development" !== 'production' &&
|
5386
|
+
typeof console !== 'undefined' &&
|
5387
|
+
!bailed
|
5388
|
+
) {
|
5389
|
+
bailed = true;
|
5390
|
+
console.warn('Parent: ', elm);
|
5391
|
+
console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);
|
5744
5392
|
}
|
5393
|
+
return false
|
5745
5394
|
}
|
5746
5395
|
}
|
5747
5396
|
}
|
@@ -5832,29 +5481,15 @@
|
|
5832
5481
|
// component root element replaced.
|
5833
5482
|
// update parent placeholder node element, recursively
|
5834
5483
|
var ancestor = vnode.parent;
|
5835
|
-
var patchable = isPatchable(vnode);
|
5836
5484
|
while (ancestor) {
|
5837
|
-
for (var i = 0; i < cbs.destroy.length; ++i) {
|
5838
|
-
cbs.destroy[i](ancestor);
|
5839
|
-
}
|
5840
5485
|
ancestor.elm = vnode.elm;
|
5841
|
-
if (patchable) {
|
5842
|
-
for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
|
5843
|
-
cbs.create[i$1](emptyNode, ancestor);
|
5844
|
-
}
|
5845
|
-
// #6513
|
5846
|
-
// invoke insert hooks that may have been merged by create hooks.
|
5847
|
-
// e.g. for directives that uses the "inserted" hook.
|
5848
|
-
var insert = ancestor.data.hook.insert;
|
5849
|
-
if (insert.merged) {
|
5850
|
-
// start at index 1 to avoid re-invoking component mounted hook
|
5851
|
-
for (var i$2 = 1; i$2 < insert.fns.length; i$2++) {
|
5852
|
-
insert.fns[i$2]();
|
5853
|
-
}
|
5854
|
-
}
|
5855
|
-
}
|
5856
5486
|
ancestor = ancestor.parent;
|
5857
5487
|
}
|
5488
|
+
if (isPatchable(vnode)) {
|
5489
|
+
for (var i = 0; i < cbs.create.length; ++i) {
|
5490
|
+
cbs.create[i](emptyNode, vnode.parent);
|
5491
|
+
}
|
5492
|
+
}
|
5858
5493
|
}
|
5859
5494
|
|
5860
5495
|
if (isDef(parentElm$1)) {
|
@@ -5991,10 +5626,6 @@
|
|
5991
5626
|
/* */
|
5992
5627
|
|
5993
5628
|
function updateAttrs (oldVnode, vnode) {
|
5994
|
-
var opts = vnode.componentOptions;
|
5995
|
-
if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {
|
5996
|
-
return
|
5997
|
-
}
|
5998
5629
|
if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {
|
5999
5630
|
return
|
6000
5631
|
}
|
@@ -6037,12 +5668,7 @@
|
|
6037
5668
|
if (isFalsyAttrValue(value)) {
|
6038
5669
|
el.removeAttribute(key);
|
6039
5670
|
} else {
|
6040
|
-
|
6041
|
-
// but Flash expects a value of "true" when used on <embed> tag
|
6042
|
-
value = key === 'allowfullscreen' && el.tagName === 'EMBED'
|
6043
|
-
? 'true'
|
6044
|
-
: key;
|
6045
|
-
el.setAttribute(key, value);
|
5671
|
+
el.setAttribute(key, key);
|
6046
5672
|
}
|
6047
5673
|
} else if (isEnumeratedAttr(key)) {
|
6048
5674
|
el.setAttribute(key, isFalsyAttrValue(value) || value === 'false' ? 'false' : 'true');
|
@@ -6365,7 +5991,10 @@
|
|
6365
5991
|
if (modelRs.idx === null) {
|
6366
5992
|
return (value + "=" + assignment)
|
6367
5993
|
} else {
|
6368
|
-
return
|
5994
|
+
return "var $$exp = " + (modelRs.exp) + ", $$idx = " + (modelRs.idx) + ";" +
|
5995
|
+
"if (!Array.isArray($$exp)){" +
|
5996
|
+
value + "=" + assignment + "}" +
|
5997
|
+
"else{$$exp.splice($$idx, 1, " + assignment + ")}"
|
6369
5998
|
}
|
6370
5999
|
}
|
6371
6000
|
|
@@ -6496,11 +6125,7 @@
|
|
6496
6125
|
}
|
6497
6126
|
}
|
6498
6127
|
|
6499
|
-
if (
|
6500
|
-
genComponentModel(el, value, modifiers);
|
6501
|
-
// component v-model doesn't need extra runtime
|
6502
|
-
return false
|
6503
|
-
} else if (tag === 'select') {
|
6128
|
+
if (tag === 'select') {
|
6504
6129
|
genSelect(el, value, modifiers);
|
6505
6130
|
} else if (tag === 'input' && type === 'checkbox') {
|
6506
6131
|
genCheckboxModel(el, value, modifiers);
|
@@ -6549,7 +6174,7 @@
|
|
6549
6174
|
'if(Array.isArray($$a)){' +
|
6550
6175
|
"var $$v=" + (number ? '_n(' + valueBinding + ')' : valueBinding) + "," +
|
6551
6176
|
'$$i=_i($$a,$$v);' +
|
6552
|
-
"if($$
|
6177
|
+
"if($$c){$$i<0&&(" + value + "=$$a.concat($$v))}" +
|
6553
6178
|
"else{$$i>-1&&(" + value + "=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}" +
|
6554
6179
|
"}else{" + (genAssignmentCode(value, '$$c')) + "}",
|
6555
6180
|
null, true
|
@@ -6617,7 +6242,7 @@
|
|
6617
6242
|
|
6618
6243
|
addProp(el, 'value', ("(" + value + ")"));
|
6619
6244
|
addHandler(el, event, code, null, true);
|
6620
|
-
if (trim || number) {
|
6245
|
+
if (trim || number || type === 'number') {
|
6621
6246
|
addHandler(el, 'blur', '$forceUpdate()');
|
6622
6247
|
}
|
6623
6248
|
}
|
@@ -6761,19 +6386,14 @@
|
|
6761
6386
|
}
|
6762
6387
|
|
6763
6388
|
function isDirty (elm, checkVal) {
|
6764
|
-
// return true when textbox (.number and .trim) loses focus and its value is
|
6765
|
-
|
6766
|
-
var notInFocus = true;
|
6767
|
-
// #6157
|
6768
|
-
// work around IE bug when accessing document.activeElement in an iframe
|
6769
|
-
try { notInFocus = document.activeElement !== elm; } catch (e) {}
|
6770
|
-
return notInFocus && elm.value !== checkVal
|
6389
|
+
// return true when textbox (.number and .trim) loses focus and its value is not equal to the updated value
|
6390
|
+
return document.activeElement !== elm && elm.value !== checkVal
|
6771
6391
|
}
|
6772
6392
|
|
6773
6393
|
function isInputChanged (elm, newVal) {
|
6774
6394
|
var value = elm.value;
|
6775
6395
|
var modifiers = elm._vModifiers; // injected by v-model runtime
|
6776
|
-
if (isDef(modifiers) && modifiers.number) {
|
6396
|
+
if ((isDef(modifiers) && modifiers.number) || elm.type === 'number') {
|
6777
6397
|
return toNumber(value) !== toNumber(newVal)
|
6778
6398
|
}
|
6779
6399
|
if (isDef(modifiers) && modifiers.trim) {
|
@@ -6879,20 +6499,20 @@
|
|
6879
6499
|
}
|
6880
6500
|
};
|
6881
6501
|
|
6882
|
-
var
|
6502
|
+
var prefixes = ['Webkit', 'Moz', 'ms'];
|
6883
6503
|
|
6884
|
-
var
|
6504
|
+
var testEl;
|
6885
6505
|
var normalize = cached(function (prop) {
|
6886
|
-
|
6506
|
+
testEl = testEl || document.createElement('div');
|
6887
6507
|
prop = camelize(prop);
|
6888
|
-
if (prop !== 'filter' && (prop in
|
6508
|
+
if (prop !== 'filter' && (prop in testEl.style)) {
|
6889
6509
|
return prop
|
6890
6510
|
}
|
6891
|
-
var
|
6892
|
-
for (var i = 0; i <
|
6893
|
-
var
|
6894
|
-
if (
|
6895
|
-
return
|
6511
|
+
var upper = prop.charAt(0).toUpperCase() + prop.slice(1);
|
6512
|
+
for (var i = 0; i < prefixes.length; i++) {
|
6513
|
+
var prefixed = prefixes[i] + upper;
|
6514
|
+
if (prefixed in testEl.style) {
|
6515
|
+
return prefixed
|
6896
6516
|
}
|
6897
6517
|
}
|
6898
6518
|
});
|
@@ -6918,7 +6538,7 @@
|
|
6918
6538
|
var style = normalizeStyleBinding(vnode.data.style) || {};
|
6919
6539
|
|
6920
6540
|
// store normalized style under a different key for next diff
|
6921
|
-
// make sure to clone it if it's reactive, since the user
|
6541
|
+
// make sure to clone it if it's reactive, since the user likley wants
|
6922
6542
|
// to mutate it.
|
6923
6543
|
vnode.data.normalizedStyle = isDef(style.__ob__)
|
6924
6544
|
? extend({}, style)
|
@@ -6989,21 +6609,13 @@
|
|
6989
6609
|
} else {
|
6990
6610
|
el.classList.remove(cls);
|
6991
6611
|
}
|
6992
|
-
if (!el.classList.length) {
|
6993
|
-
el.removeAttribute('class');
|
6994
|
-
}
|
6995
6612
|
} else {
|
6996
6613
|
var cur = " " + (el.getAttribute('class') || '') + " ";
|
6997
6614
|
var tar = ' ' + cls + ' ';
|
6998
6615
|
while (cur.indexOf(tar) >= 0) {
|
6999
6616
|
cur = cur.replace(tar, ' ');
|
7000
6617
|
}
|
7001
|
-
|
7002
|
-
if (cur) {
|
7003
|
-
el.setAttribute('class', cur);
|
7004
|
-
} else {
|
7005
|
-
el.removeAttribute('class');
|
7006
|
-
}
|
6618
|
+
el.setAttribute('class', cur.trim());
|
7007
6619
|
}
|
7008
6620
|
}
|
7009
6621
|
|
@@ -7074,11 +6686,8 @@
|
|
7074
6686
|
}
|
7075
6687
|
|
7076
6688
|
function addTransitionClass (el, cls) {
|
7077
|
-
|
7078
|
-
|
7079
|
-
transitionClasses.push(cls);
|
7080
|
-
addClass(el, cls);
|
7081
|
-
}
|
6689
|
+
(el._transitionClasses || (el._transitionClasses = [])).push(cls);
|
6690
|
+
addClass(el, cls);
|
7082
6691
|
}
|
7083
6692
|
|
7084
6693
|
function removeTransitionClass (el, cls) {
|
@@ -7537,9 +7146,15 @@
|
|
7537
7146
|
var model$1 = {
|
7538
7147
|
inserted: function inserted (el, binding, vnode) {
|
7539
7148
|
if (vnode.tag === 'select') {
|
7540
|
-
|
7541
|
-
|
7542
|
-
|
7149
|
+
var cb = function () {
|
7150
|
+
setSelected(el, binding, vnode.context);
|
7151
|
+
};
|
7152
|
+
cb();
|
7153
|
+
/* istanbul ignore if */
|
7154
|
+
if (isIE || isEdge) {
|
7155
|
+
setTimeout(cb, 0);
|
7156
|
+
}
|
7157
|
+
} else if (vnode.tag === 'textarea' || el.type === 'text' || el.type === 'password') {
|
7543
7158
|
el._vModifiers = binding.modifiers;
|
7544
7159
|
if (!binding.modifiers.lazy) {
|
7545
7160
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
@@ -7565,33 +7180,17 @@
|
|
7565
7180
|
// it's possible that the value is out-of-sync with the rendered options.
|
7566
7181
|
// detect such cases and filter out values that no longer has a matching
|
7567
7182
|
// option in the DOM.
|
7568
|
-
var
|
7569
|
-
|
7570
|
-
|
7571
|
-
|
7572
|
-
|
7573
|
-
var needReset = el.multiple
|
7574
|
-
? binding.value.some(function (v) { return hasNoMatchingOption(v, curOptions); })
|
7575
|
-
: binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, curOptions);
|
7576
|
-
if (needReset) {
|
7577
|
-
trigger(el, 'change');
|
7578
|
-
}
|
7183
|
+
var needReset = el.multiple
|
7184
|
+
? binding.value.some(function (v) { return hasNoMatchingOption(v, el.options); })
|
7185
|
+
: binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, el.options);
|
7186
|
+
if (needReset) {
|
7187
|
+
trigger(el, 'change');
|
7579
7188
|
}
|
7580
7189
|
}
|
7581
7190
|
}
|
7582
7191
|
};
|
7583
7192
|
|
7584
7193
|
function setSelected (el, binding, vm) {
|
7585
|
-
actuallySetSelected(el, binding, vm);
|
7586
|
-
/* istanbul ignore if */
|
7587
|
-
if (isIE || isEdge) {
|
7588
|
-
setTimeout(function () {
|
7589
|
-
actuallySetSelected(el, binding, vm);
|
7590
|
-
}, 0);
|
7591
|
-
}
|
7592
|
-
}
|
7593
|
-
|
7594
|
-
function actuallySetSelected (el, binding, vm) {
|
7595
7194
|
var value = binding.value;
|
7596
7195
|
var isMultiple = el.multiple;
|
7597
7196
|
if (isMultiple && !Array.isArray(value)) {
|
@@ -7625,7 +7224,12 @@
|
|
7625
7224
|
}
|
7626
7225
|
|
7627
7226
|
function hasNoMatchingOption (value, options) {
|
7628
|
-
|
7227
|
+
for (var i = 0, l = options.length; i < l; i++) {
|
7228
|
+
if (looseEqual(getValue(options[i]), value)) {
|
7229
|
+
return false
|
7230
|
+
}
|
7231
|
+
}
|
7232
|
+
return true
|
7629
7233
|
}
|
7630
7234
|
|
7631
7235
|
function getValue (option) {
|
@@ -7665,10 +7269,10 @@
|
|
7665
7269
|
var value = ref.value;
|
7666
7270
|
|
7667
7271
|
vnode = locateNode(vnode);
|
7668
|
-
var transition
|
7272
|
+
var transition = vnode.data && vnode.data.transition;
|
7669
7273
|
var originalDisplay = el.__vOriginalDisplay =
|
7670
7274
|
el.style.display === 'none' ? '' : el.style.display;
|
7671
|
-
if (value && transition
|
7275
|
+
if (value && transition && !isIE9) {
|
7672
7276
|
vnode.data.show = true;
|
7673
7277
|
enter(vnode, function () {
|
7674
7278
|
el.style.display = originalDisplay;
|
@@ -7685,8 +7289,8 @@
|
|
7685
7289
|
/* istanbul ignore if */
|
7686
7290
|
if (value === oldValue) { return }
|
7687
7291
|
vnode = locateNode(vnode);
|
7688
|
-
var transition
|
7689
|
-
if (transition
|
7292
|
+
var transition = vnode.data && vnode.data.transition;
|
7293
|
+
if (transition && !isIE9) {
|
7690
7294
|
vnode.data.show = true;
|
7691
7295
|
if (value) {
|
7692
7296
|
enter(vnode, function () {
|
@@ -7798,13 +7402,13 @@
|
|
7798
7402
|
render: function render (h) {
|
7799
7403
|
var this$1 = this;
|
7800
7404
|
|
7801
|
-
var children = this.$
|
7405
|
+
var children = this.$slots.default;
|
7802
7406
|
if (!children) {
|
7803
7407
|
return
|
7804
7408
|
}
|
7805
7409
|
|
7806
7410
|
// filter out text nodes (possible whitespaces)
|
7807
|
-
children = children.filter(function (c) { return c.tag
|
7411
|
+
children = children.filter(function (c) { return c.tag; });
|
7808
7412
|
/* istanbul ignore if */
|
7809
7413
|
if (!children.length) {
|
7810
7414
|
return
|
@@ -7856,9 +7460,7 @@
|
|
7856
7460
|
// during entering.
|
7857
7461
|
var id = "__transition-" + (this._uid) + "-";
|
7858
7462
|
child.key = child.key == null
|
7859
|
-
? child.
|
7860
|
-
? id + 'comment'
|
7861
|
-
: id + child.tag
|
7463
|
+
? id + child.tag
|
7862
7464
|
: isPrimitive(child.key)
|
7863
7465
|
? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
|
7864
7466
|
: child.key;
|
@@ -7873,12 +7475,7 @@
|
|
7873
7475
|
child.data.show = true;
|
7874
7476
|
}
|
7875
7477
|
|
7876
|
-
if (
|
7877
|
-
oldChild &&
|
7878
|
-
oldChild.data &&
|
7879
|
-
!isSameChild(child, oldChild) &&
|
7880
|
-
!isAsyncPlaceholder(oldChild)
|
7881
|
-
) {
|
7478
|
+
if (oldChild && oldChild.data && !isSameChild(child, oldChild)) {
|
7882
7479
|
// replace old child transition data with fresh one
|
7883
7480
|
// important for dynamic transitions!
|
7884
7481
|
var oldData = oldChild && (oldChild.data.transition = extend({}, data));
|
@@ -7892,9 +7489,6 @@
|
|
7892
7489
|
});
|
7893
7490
|
return placeholder(h, rawChild)
|
7894
7491
|
} else if (mode === 'in-out') {
|
7895
|
-
if (isAsyncPlaceholder(child)) {
|
7896
|
-
return oldRawChild
|
7897
|
-
}
|
7898
7492
|
var delayedLeave;
|
7899
7493
|
var performLeave = function () { delayedLeave(); };
|
7900
7494
|
mergeVNodeHook(data, 'afterEnter', performLeave);
|
@@ -8024,8 +7618,7 @@
|
|
8024
7618
|
if (!hasTransition) {
|
8025
7619
|
return false
|
8026
7620
|
}
|
8027
|
-
|
8028
|
-
if (this._hasMove) {
|
7621
|
+
if (this._hasMove != null) {
|
8029
7622
|
return this._hasMove
|
8030
7623
|
}
|
8031
7624
|
// Detect whether an element with the move class applied has
|
@@ -8135,7 +7728,7 @@
|
|
8135
7728
|
// check whether current browser encodes a char inside attribute values
|
8136
7729
|
function shouldDecode (content, encoded) {
|
8137
7730
|
var div = document.createElement('div');
|
8138
|
-
div.innerHTML = "<div a=\"" + content + "\"
|
7731
|
+
div.innerHTML = "<div a=\"" + content + "\">";
|
8139
7732
|
return div.innerHTML.indexOf(encoded) > 0
|
8140
7733
|
}
|
8141
7734
|
|
@@ -8145,158 +7738,6 @@
|
|
8145
7738
|
|
8146
7739
|
/* */
|
8147
7740
|
|
8148
|
-
var defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g;
|
8149
|
-
var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
|
8150
|
-
|
8151
|
-
var buildRegex = cached(function (delimiters) {
|
8152
|
-
var open = delimiters[0].replace(regexEscapeRE, '\\$&');
|
8153
|
-
var close = delimiters[1].replace(regexEscapeRE, '\\$&');
|
8154
|
-
return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
|
8155
|
-
});
|
8156
|
-
|
8157
|
-
function parseText (
|
8158
|
-
text,
|
8159
|
-
delimiters
|
8160
|
-
) {
|
8161
|
-
var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;
|
8162
|
-
if (!tagRE.test(text)) {
|
8163
|
-
return
|
8164
|
-
}
|
8165
|
-
var tokens = [];
|
8166
|
-
var lastIndex = tagRE.lastIndex = 0;
|
8167
|
-
var match, index;
|
8168
|
-
while ((match = tagRE.exec(text))) {
|
8169
|
-
index = match.index;
|
8170
|
-
// push text token
|
8171
|
-
if (index > lastIndex) {
|
8172
|
-
tokens.push(JSON.stringify(text.slice(lastIndex, index)));
|
8173
|
-
}
|
8174
|
-
// tag token
|
8175
|
-
var exp = parseFilters(match[1].trim());
|
8176
|
-
tokens.push(("_s(" + exp + ")"));
|
8177
|
-
lastIndex = index + match[0].length;
|
8178
|
-
}
|
8179
|
-
if (lastIndex < text.length) {
|
8180
|
-
tokens.push(JSON.stringify(text.slice(lastIndex)));
|
8181
|
-
}
|
8182
|
-
return tokens.join('+')
|
8183
|
-
}
|
8184
|
-
|
8185
|
-
/* */
|
8186
|
-
|
8187
|
-
function transformNode (el, options) {
|
8188
|
-
var warn = options.warn || baseWarn;
|
8189
|
-
var staticClass = getAndRemoveAttr(el, 'class');
|
8190
|
-
if ("development" !== 'production' && staticClass) {
|
8191
|
-
var expression = parseText(staticClass, options.delimiters);
|
8192
|
-
if (expression) {
|
8193
|
-
warn(
|
8194
|
-
"class=\"" + staticClass + "\": " +
|
8195
|
-
'Interpolation inside attributes has been removed. ' +
|
8196
|
-
'Use v-bind or the colon shorthand instead. For example, ' +
|
8197
|
-
'instead of <div class="{{ val }}">, use <div :class="val">.'
|
8198
|
-
);
|
8199
|
-
}
|
8200
|
-
}
|
8201
|
-
if (staticClass) {
|
8202
|
-
el.staticClass = JSON.stringify(staticClass);
|
8203
|
-
}
|
8204
|
-
var classBinding = getBindingAttr(el, 'class', false /* getStatic */);
|
8205
|
-
if (classBinding) {
|
8206
|
-
el.classBinding = classBinding;
|
8207
|
-
}
|
8208
|
-
}
|
8209
|
-
|
8210
|
-
function genData (el) {
|
8211
|
-
var data = '';
|
8212
|
-
if (el.staticClass) {
|
8213
|
-
data += "staticClass:" + (el.staticClass) + ",";
|
8214
|
-
}
|
8215
|
-
if (el.classBinding) {
|
8216
|
-
data += "class:" + (el.classBinding) + ",";
|
8217
|
-
}
|
8218
|
-
return data
|
8219
|
-
}
|
8220
|
-
|
8221
|
-
var klass$1 = {
|
8222
|
-
staticKeys: ['staticClass'],
|
8223
|
-
transformNode: transformNode,
|
8224
|
-
genData: genData
|
8225
|
-
};
|
8226
|
-
|
8227
|
-
/* */
|
8228
|
-
|
8229
|
-
function transformNode$1 (el, options) {
|
8230
|
-
var warn = options.warn || baseWarn;
|
8231
|
-
var staticStyle = getAndRemoveAttr(el, 'style');
|
8232
|
-
if (staticStyle) {
|
8233
|
-
/* istanbul ignore if */
|
8234
|
-
{
|
8235
|
-
var expression = parseText(staticStyle, options.delimiters);
|
8236
|
-
if (expression) {
|
8237
|
-
warn(
|
8238
|
-
"style=\"" + staticStyle + "\": " +
|
8239
|
-
'Interpolation inside attributes has been removed. ' +
|
8240
|
-
'Use v-bind or the colon shorthand instead. For example, ' +
|
8241
|
-
'instead of <div style="{{ val }}">, use <div :style="val">.'
|
8242
|
-
);
|
8243
|
-
}
|
8244
|
-
}
|
8245
|
-
el.staticStyle = JSON.stringify(parseStyleText(staticStyle));
|
8246
|
-
}
|
8247
|
-
|
8248
|
-
var styleBinding = getBindingAttr(el, 'style', false /* getStatic */);
|
8249
|
-
if (styleBinding) {
|
8250
|
-
el.styleBinding = styleBinding;
|
8251
|
-
}
|
8252
|
-
}
|
8253
|
-
|
8254
|
-
function genData$1 (el) {
|
8255
|
-
var data = '';
|
8256
|
-
if (el.staticStyle) {
|
8257
|
-
data += "staticStyle:" + (el.staticStyle) + ",";
|
8258
|
-
}
|
8259
|
-
if (el.styleBinding) {
|
8260
|
-
data += "style:(" + (el.styleBinding) + "),";
|
8261
|
-
}
|
8262
|
-
return data
|
8263
|
-
}
|
8264
|
-
|
8265
|
-
var style$1 = {
|
8266
|
-
staticKeys: ['staticStyle'],
|
8267
|
-
transformNode: transformNode$1,
|
8268
|
-
genData: genData$1
|
8269
|
-
};
|
8270
|
-
|
8271
|
-
var modules$1 = [
|
8272
|
-
klass$1,
|
8273
|
-
style$1
|
8274
|
-
];
|
8275
|
-
|
8276
|
-
/* */
|
8277
|
-
|
8278
|
-
function text (el, dir) {
|
8279
|
-
if (dir.value) {
|
8280
|
-
addProp(el, 'textContent', ("_s(" + (dir.value) + ")"));
|
8281
|
-
}
|
8282
|
-
}
|
8283
|
-
|
8284
|
-
/* */
|
8285
|
-
|
8286
|
-
function html (el, dir) {
|
8287
|
-
if (dir.value) {
|
8288
|
-
addProp(el, 'innerHTML', ("_s(" + (dir.value) + ")"));
|
8289
|
-
}
|
8290
|
-
}
|
8291
|
-
|
8292
|
-
var directives$1 = {
|
8293
|
-
model: model,
|
8294
|
-
text: text,
|
8295
|
-
html: html
|
8296
|
-
};
|
8297
|
-
|
8298
|
-
/* */
|
8299
|
-
|
8300
7741
|
var isUnaryTag = makeMap(
|
8301
7742
|
'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
|
8302
7743
|
'link,meta,param,source,track,wbr'
|
@@ -8320,30 +7761,13 @@
|
|
8320
7761
|
|
8321
7762
|
/* */
|
8322
7763
|
|
8323
|
-
var baseOptions = {
|
8324
|
-
expectHTML: true,
|
8325
|
-
modules: modules$1,
|
8326
|
-
directives: directives$1,
|
8327
|
-
isPreTag: isPreTag,
|
8328
|
-
isUnaryTag: isUnaryTag,
|
8329
|
-
mustUseProp: mustUseProp,
|
8330
|
-
canBeLeftOpenTag: canBeLeftOpenTag,
|
8331
|
-
isReservedTag: isReservedTag,
|
8332
|
-
getTagNamespace: getTagNamespace,
|
8333
|
-
staticKeys: genStaticKeys(modules$1)
|
8334
|
-
};
|
8335
|
-
|
8336
|
-
/* */
|
8337
|
-
|
8338
7764
|
var decoder;
|
8339
7765
|
|
8340
|
-
|
8341
|
-
|
8342
|
-
|
8343
|
-
|
8344
|
-
|
8345
|
-
}
|
8346
|
-
};
|
7766
|
+
function decode (html) {
|
7767
|
+
decoder = decoder || document.createElement('div');
|
7768
|
+
decoder.innerHTML = html;
|
7769
|
+
return decoder.textContent
|
7770
|
+
}
|
8347
7771
|
|
8348
7772
|
/**
|
8349
7773
|
* Not type-checking this file because it's mostly vendor code.
|
@@ -8357,14 +7781,29 @@
|
|
8357
7781
|
*/
|
8358
7782
|
|
8359
7783
|
// Regular Expressions for parsing tags and attributes
|
8360
|
-
var
|
7784
|
+
var singleAttrIdentifier = /([^\s"'<>/=]+)/;
|
7785
|
+
var singleAttrAssign = /(?:=)/;
|
7786
|
+
var singleAttrValues = [
|
7787
|
+
// attr value double quotes
|
7788
|
+
/"([^"]*)"+/.source,
|
7789
|
+
// attr value, single quotes
|
7790
|
+
/'([^']*)'+/.source,
|
7791
|
+
// attr value, no quotes
|
7792
|
+
/([^\s"'=<>`]+)/.source
|
7793
|
+
];
|
7794
|
+
var attribute = new RegExp(
|
7795
|
+
'^\\s*' + singleAttrIdentifier.source +
|
7796
|
+
'(?:\\s*(' + singleAttrAssign.source + ')' +
|
7797
|
+
'\\s*(?:' + singleAttrValues.join('|') + '))?'
|
7798
|
+
);
|
7799
|
+
|
8361
7800
|
// could use https://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-QName
|
8362
7801
|
// but for Vue templates we can enforce a simple charset
|
8363
7802
|
var ncname = '[a-zA-Z_][\\w\\-\\.]*';
|
8364
|
-
var qnameCapture =
|
8365
|
-
var startTagOpen = new RegExp(
|
7803
|
+
var qnameCapture = '((?:' + ncname + '\\:)?' + ncname + ')';
|
7804
|
+
var startTagOpen = new RegExp('^<' + qnameCapture);
|
8366
7805
|
var startTagClose = /^\s*(\/?)>/;
|
8367
|
-
var endTag = new RegExp(
|
7806
|
+
var endTag = new RegExp('^<\\/' + qnameCapture + '[^>]*>');
|
8368
7807
|
var doctype = /^<!DOCTYPE [^>]+>/i;
|
8369
7808
|
var comment = /^<!--/;
|
8370
7809
|
var conditionalComment = /^<!\[/;
|
@@ -8388,10 +7827,6 @@
|
|
8388
7827
|
var encodedAttr = /&(?:lt|gt|quot|amp);/g;
|
8389
7828
|
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10);/g;
|
8390
7829
|
|
8391
|
-
// #5992
|
8392
|
-
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
|
8393
|
-
var shouldIgnoreFirstNewline = function (tag, html) { return tag && isIgnoreNewlineTag(tag) && html[0] === '\n'; };
|
8394
|
-
|
8395
7830
|
function decodeAttr (value, shouldDecodeNewlines) {
|
8396
7831
|
var re = shouldDecodeNewlines ? encodedAttrWithNewLines : encodedAttr;
|
8397
7832
|
return value.replace(re, function (match) { return decodingMap[match]; })
|
@@ -8415,9 +7850,6 @@
|
|
8415
7850
|
var commentEnd = html.indexOf('-->');
|
8416
7851
|
|
8417
7852
|
if (commentEnd >= 0) {
|
8418
|
-
if (options.shouldKeepComment) {
|
8419
|
-
options.comment(html.substring(4, commentEnd));
|
8420
|
-
}
|
8421
7853
|
advance(commentEnd + 3);
|
8422
7854
|
continue
|
8423
7855
|
}
|
@@ -8453,27 +7885,24 @@
|
|
8453
7885
|
var startTagMatch = parseStartTag();
|
8454
7886
|
if (startTagMatch) {
|
8455
7887
|
handleStartTag(startTagMatch);
|
8456
|
-
if (shouldIgnoreFirstNewline(lastTag, html)) {
|
8457
|
-
advance(1);
|
8458
|
-
}
|
8459
7888
|
continue
|
8460
7889
|
}
|
8461
7890
|
}
|
8462
7891
|
|
8463
|
-
var text = (void 0), rest = (void 0), next = (void 0);
|
7892
|
+
var text = (void 0), rest$1 = (void 0), next = (void 0);
|
8464
7893
|
if (textEnd >= 0) {
|
8465
|
-
rest = html.slice(textEnd);
|
7894
|
+
rest$1 = html.slice(textEnd);
|
8466
7895
|
while (
|
8467
|
-
!endTag.test(rest) &&
|
8468
|
-
!startTagOpen.test(rest) &&
|
8469
|
-
!comment.test(rest) &&
|
8470
|
-
!conditionalComment.test(rest)
|
7896
|
+
!endTag.test(rest$1) &&
|
7897
|
+
!startTagOpen.test(rest$1) &&
|
7898
|
+
!comment.test(rest$1) &&
|
7899
|
+
!conditionalComment.test(rest$1)
|
8471
7900
|
) {
|
8472
7901
|
// < in plain text, be forgiving and treat it as text
|
8473
|
-
next = rest.indexOf('<', 1);
|
7902
|
+
next = rest$1.indexOf('<', 1);
|
8474
7903
|
if (next < 0) { break }
|
8475
7904
|
textEnd += next;
|
8476
|
-
rest = html.slice(textEnd);
|
7905
|
+
rest$1 = html.slice(textEnd);
|
8477
7906
|
}
|
8478
7907
|
text = html.substring(0, textEnd);
|
8479
7908
|
advance(textEnd);
|
@@ -8488,26 +7917,23 @@
|
|
8488
7917
|
options.chars(text);
|
8489
7918
|
}
|
8490
7919
|
} else {
|
8491
|
-
var endTagLength = 0;
|
8492
7920
|
var stackedTag = lastTag.toLowerCase();
|
8493
7921
|
var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)(</' + stackedTag + '[^>]*>)', 'i'));
|
8494
|
-
var
|
7922
|
+
var endTagLength = 0;
|
7923
|
+
var rest = html.replace(reStackedTag, function (all, text, endTag) {
|
8495
7924
|
endTagLength = endTag.length;
|
8496
7925
|
if (!isPlainTextElement(stackedTag) && stackedTag !== 'noscript') {
|
8497
7926
|
text = text
|
8498
7927
|
.replace(/<!--([\s\S]*?)-->/g, '$1')
|
8499
7928
|
.replace(/<!\[CDATA\[([\s\S]*?)]]>/g, '$1');
|
8500
7929
|
}
|
8501
|
-
if (shouldIgnoreFirstNewline(stackedTag, text)) {
|
8502
|
-
text = text.slice(1);
|
8503
|
-
}
|
8504
7930
|
if (options.chars) {
|
8505
7931
|
options.chars(text);
|
8506
7932
|
}
|
8507
7933
|
return ''
|
8508
7934
|
});
|
8509
|
-
index += html.length - rest
|
8510
|
-
html = rest
|
7935
|
+
index += html.length - rest.length;
|
7936
|
+
html = rest;
|
8511
7937
|
parseEndTag(stackedTag, index - endTagLength, index);
|
8512
7938
|
}
|
8513
7939
|
|
@@ -8564,7 +7990,7 @@
|
|
8564
7990
|
}
|
8565
7991
|
}
|
8566
7992
|
|
8567
|
-
var unary = isUnaryTag$$1(tagName) || !!unarySlash;
|
7993
|
+
var unary = isUnaryTag$$1(tagName) || tagName === 'html' && lastTag === 'head' || !!unarySlash;
|
8568
7994
|
|
8569
7995
|
var l = match.attrs.length;
|
8570
7996
|
var attrs = new Array(l);
|
@@ -8653,6 +8079,45 @@
|
|
8653
8079
|
|
8654
8080
|
/* */
|
8655
8081
|
|
8082
|
+
var defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g;
|
8083
|
+
var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
|
8084
|
+
|
8085
|
+
var buildRegex = cached(function (delimiters) {
|
8086
|
+
var open = delimiters[0].replace(regexEscapeRE, '\\$&');
|
8087
|
+
var close = delimiters[1].replace(regexEscapeRE, '\\$&');
|
8088
|
+
return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
|
8089
|
+
});
|
8090
|
+
|
8091
|
+
function parseText (
|
8092
|
+
text,
|
8093
|
+
delimiters
|
8094
|
+
) {
|
8095
|
+
var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;
|
8096
|
+
if (!tagRE.test(text)) {
|
8097
|
+
return
|
8098
|
+
}
|
8099
|
+
var tokens = [];
|
8100
|
+
var lastIndex = tagRE.lastIndex = 0;
|
8101
|
+
var match, index;
|
8102
|
+
while ((match = tagRE.exec(text))) {
|
8103
|
+
index = match.index;
|
8104
|
+
// push text token
|
8105
|
+
if (index > lastIndex) {
|
8106
|
+
tokens.push(JSON.stringify(text.slice(lastIndex, index)));
|
8107
|
+
}
|
8108
|
+
// tag token
|
8109
|
+
var exp = parseFilters(match[1].trim());
|
8110
|
+
tokens.push(("_s(" + exp + ")"));
|
8111
|
+
lastIndex = index + match[0].length;
|
8112
|
+
}
|
8113
|
+
if (lastIndex < text.length) {
|
8114
|
+
tokens.push(JSON.stringify(text.slice(lastIndex)));
|
8115
|
+
}
|
8116
|
+
return tokens.join('+')
|
8117
|
+
}
|
8118
|
+
|
8119
|
+
/* */
|
8120
|
+
|
8656
8121
|
var onRE = /^@|^v-on:/;
|
8657
8122
|
var dirRE = /^v-|^@|^:/;
|
8658
8123
|
var forAliasRE = /(.*?)\s+(?:in|of)\s+(.*)/;
|
@@ -8662,7 +8127,7 @@
|
|
8662
8127
|
var bindRE = /^:|^v-bind:/;
|
8663
8128
|
var modifierRE = /\.[^.]+/g;
|
8664
8129
|
|
8665
|
-
var decodeHTMLCached = cached(
|
8130
|
+
var decodeHTMLCached = cached(decode);
|
8666
8131
|
|
8667
8132
|
// configurable state
|
8668
8133
|
var warn$2;
|
@@ -8682,15 +8147,12 @@
|
|
8682
8147
|
options
|
8683
8148
|
) {
|
8684
8149
|
warn$2 = options.warn || baseWarn;
|
8685
|
-
|
8686
|
-
platformIsPreTag = options.isPreTag || no;
|
8687
|
-
platformMustUseProp = options.mustUseProp || no;
|
8688
8150
|
platformGetTagNamespace = options.getTagNamespace || no;
|
8689
|
-
|
8690
|
-
|
8151
|
+
platformMustUseProp = options.mustUseProp || no;
|
8152
|
+
platformIsPreTag = options.isPreTag || no;
|
8691
8153
|
preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');
|
8154
|
+
transforms = pluckModuleFunction(options.modules, 'transformNode');
|
8692
8155
|
postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');
|
8693
|
-
|
8694
8156
|
delimiters = options.delimiters;
|
8695
8157
|
|
8696
8158
|
var stack = [];
|
@@ -8724,7 +8186,6 @@
|
|
8724
8186
|
isUnaryTag: options.isUnaryTag,
|
8725
8187
|
canBeLeftOpenTag: options.canBeLeftOpenTag,
|
8726
8188
|
shouldDecodeNewlines: options.shouldDecodeNewlines,
|
8727
|
-
shouldKeepComment: options.comments,
|
8728
8189
|
start: function start (tag, attrs, unary) {
|
8729
8190
|
// check namespace.
|
8730
8191
|
// inherit parent ns if there is one
|
@@ -8908,13 +8369,6 @@
|
|
8908
8369
|
});
|
8909
8370
|
}
|
8910
8371
|
}
|
8911
|
-
},
|
8912
|
-
comment: function comment (text) {
|
8913
|
-
currentParent.children.push({
|
8914
|
-
type: 3,
|
8915
|
-
text: text,
|
8916
|
-
isComment: true
|
8917
|
-
});
|
8918
8372
|
}
|
8919
8373
|
});
|
8920
8374
|
return root
|
@@ -9064,8 +8518,6 @@
|
|
9064
8518
|
var slotTarget = getBindingAttr(el, 'slot');
|
9065
8519
|
if (slotTarget) {
|
9066
8520
|
el.slotTarget = slotTarget === '""' ? '"default"' : slotTarget;
|
9067
|
-
// preserve slot as an attribute for native shadow DOM compat
|
9068
|
-
addAttr(el, 'slot', slotTarget);
|
9069
8521
|
}
|
9070
8522
|
if (el.tag === 'template') {
|
9071
8523
|
el.slotScope = getAndRemoveAttr(el, 'scope');
|
@@ -9118,9 +8570,7 @@
|
|
9118
8570
|
);
|
9119
8571
|
}
|
9120
8572
|
}
|
9121
|
-
if (isProp || (
|
9122
|
-
!el.component && platformMustUseProp(el.tag, el.attrsMap.type, name)
|
9123
|
-
)) {
|
8573
|
+
if (isProp || platformMustUseProp(el.tag, el.attrsMap.type, name)) {
|
9124
8574
|
addProp(el, name, value);
|
9125
8575
|
} else {
|
9126
8576
|
addAttr(el, name, value);
|
@@ -9295,15 +8745,6 @@
|
|
9295
8745
|
node.static = false;
|
9296
8746
|
}
|
9297
8747
|
}
|
9298
|
-
if (node.ifConditions) {
|
9299
|
-
for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {
|
9300
|
-
var block = node.ifConditions[i$1].block;
|
9301
|
-
markStatic$1(block);
|
9302
|
-
if (!block.static) {
|
9303
|
-
node.static = false;
|
9304
|
-
}
|
9305
|
-
}
|
9306
|
-
}
|
9307
8748
|
}
|
9308
8749
|
}
|
9309
8750
|
|
@@ -9330,13 +8771,17 @@
|
|
9330
8771
|
}
|
9331
8772
|
}
|
9332
8773
|
if (node.ifConditions) {
|
9333
|
-
|
9334
|
-
markStaticRoots(node.ifConditions[i$1].block, isInFor);
|
9335
|
-
}
|
8774
|
+
walkThroughConditionsBlocks(node.ifConditions, isInFor);
|
9336
8775
|
}
|
9337
8776
|
}
|
9338
8777
|
}
|
9339
8778
|
|
8779
|
+
function walkThroughConditionsBlocks (conditionBlocks, isInFor) {
|
8780
|
+
for (var i = 1, len = conditionBlocks.length; i < len; i++) {
|
8781
|
+
markStaticRoots(conditionBlocks[i].block, isInFor);
|
8782
|
+
}
|
8783
|
+
}
|
8784
|
+
|
9340
8785
|
function isStatic (node) {
|
9341
8786
|
if (node.type === 2) { // expression
|
9342
8787
|
return false
|
@@ -9491,101 +8936,99 @@
|
|
9491
8936
|
|
9492
8937
|
/* */
|
9493
8938
|
|
9494
|
-
function on (el, dir) {
|
9495
|
-
if ("development" !== 'production' && dir.modifiers) {
|
9496
|
-
warn("v-on without argument does not support modifiers.");
|
9497
|
-
}
|
9498
|
-
el.wrapListeners = function (code) { return ("_g(" + code + "," + (dir.value) + ")"); };
|
9499
|
-
}
|
9500
|
-
|
9501
|
-
/* */
|
9502
|
-
|
9503
8939
|
function bind$1 (el, dir) {
|
9504
8940
|
el.wrapData = function (code) {
|
9505
|
-
return ("_b(" + code + ",'" + (el.tag) + "'," + (dir.value) +
|
8941
|
+
return ("_b(" + code + ",'" + (el.tag) + "'," + (dir.value) + (dir.modifiers && dir.modifiers.prop ? ',true' : '') + ")")
|
9506
8942
|
};
|
9507
8943
|
}
|
9508
8944
|
|
9509
8945
|
/* */
|
9510
8946
|
|
9511
8947
|
var baseDirectives = {
|
9512
|
-
on: on,
|
9513
8948
|
bind: bind$1,
|
9514
8949
|
cloak: noop
|
9515
8950
|
};
|
9516
8951
|
|
9517
8952
|
/* */
|
9518
8953
|
|
9519
|
-
|
9520
|
-
|
9521
|
-
|
9522
|
-
|
9523
|
-
|
9524
|
-
|
9525
|
-
|
9526
|
-
|
9527
|
-
|
9528
|
-
this.staticRenderFns = [];
|
9529
|
-
};
|
9530
|
-
|
9531
|
-
|
8954
|
+
// configurable state
|
8955
|
+
var warn$3;
|
8956
|
+
var transforms$1;
|
8957
|
+
var dataGenFns;
|
8958
|
+
var platformDirectives$1;
|
8959
|
+
var isPlatformReservedTag$1;
|
8960
|
+
var staticRenderFns;
|
8961
|
+
var onceCount;
|
8962
|
+
var currentOptions;
|
9532
8963
|
|
9533
8964
|
function generate (
|
9534
8965
|
ast,
|
9535
8966
|
options
|
9536
8967
|
) {
|
9537
|
-
|
9538
|
-
var
|
8968
|
+
// save previous staticRenderFns so generate calls can be nested
|
8969
|
+
var prevStaticRenderFns = staticRenderFns;
|
8970
|
+
var currentStaticRenderFns = staticRenderFns = [];
|
8971
|
+
var prevOnceCount = onceCount;
|
8972
|
+
onceCount = 0;
|
8973
|
+
currentOptions = options;
|
8974
|
+
warn$3 = options.warn || baseWarn;
|
8975
|
+
transforms$1 = pluckModuleFunction(options.modules, 'transformCode');
|
8976
|
+
dataGenFns = pluckModuleFunction(options.modules, 'genData');
|
8977
|
+
platformDirectives$1 = options.directives || {};
|
8978
|
+
isPlatformReservedTag$1 = options.isReservedTag || no;
|
8979
|
+
var code = ast ? genElement(ast) : '_c("div")';
|
8980
|
+
staticRenderFns = prevStaticRenderFns;
|
8981
|
+
onceCount = prevOnceCount;
|
9539
8982
|
return {
|
9540
8983
|
render: ("with(this){return " + code + "}"),
|
9541
|
-
staticRenderFns:
|
8984
|
+
staticRenderFns: currentStaticRenderFns
|
9542
8985
|
}
|
9543
8986
|
}
|
9544
8987
|
|
9545
|
-
function genElement (el
|
8988
|
+
function genElement (el) {
|
9546
8989
|
if (el.staticRoot && !el.staticProcessed) {
|
9547
|
-
return genStatic(el
|
8990
|
+
return genStatic(el)
|
9548
8991
|
} else if (el.once && !el.onceProcessed) {
|
9549
|
-
return genOnce(el
|
8992
|
+
return genOnce(el)
|
9550
8993
|
} else if (el.for && !el.forProcessed) {
|
9551
|
-
return genFor(el
|
8994
|
+
return genFor(el)
|
9552
8995
|
} else if (el.if && !el.ifProcessed) {
|
9553
|
-
return genIf(el
|
8996
|
+
return genIf(el)
|
9554
8997
|
} else if (el.tag === 'template' && !el.slotTarget) {
|
9555
|
-
return genChildren(el
|
8998
|
+
return genChildren(el) || 'void 0'
|
9556
8999
|
} else if (el.tag === 'slot') {
|
9557
|
-
return genSlot(el
|
9000
|
+
return genSlot(el)
|
9558
9001
|
} else {
|
9559
9002
|
// component or element
|
9560
9003
|
var code;
|
9561
9004
|
if (el.component) {
|
9562
|
-
code = genComponent(el.component, el
|
9005
|
+
code = genComponent(el.component, el);
|
9563
9006
|
} else {
|
9564
|
-
var data = el.plain ? undefined : genData
|
9007
|
+
var data = el.plain ? undefined : genData(el);
|
9565
9008
|
|
9566
|
-
var children = el.inlineTemplate ? null : genChildren(el,
|
9009
|
+
var children = el.inlineTemplate ? null : genChildren(el, true);
|
9567
9010
|
code = "_c('" + (el.tag) + "'" + (data ? ("," + data) : '') + (children ? ("," + children) : '') + ")";
|
9568
9011
|
}
|
9569
9012
|
// module transforms
|
9570
|
-
for (var i = 0; i <
|
9571
|
-
code =
|
9013
|
+
for (var i = 0; i < transforms$1.length; i++) {
|
9014
|
+
code = transforms$1[i](el, code);
|
9572
9015
|
}
|
9573
9016
|
return code
|
9574
9017
|
}
|
9575
9018
|
}
|
9576
9019
|
|
9577
9020
|
// hoist static sub-trees out
|
9578
|
-
function genStatic (el
|
9021
|
+
function genStatic (el) {
|
9579
9022
|
el.staticProcessed = true;
|
9580
|
-
|
9581
|
-
return ("_m(" + (
|
9023
|
+
staticRenderFns.push(("with(this){return " + (genElement(el)) + "}"));
|
9024
|
+
return ("_m(" + (staticRenderFns.length - 1) + (el.staticInFor ? ',true' : '') + ")")
|
9582
9025
|
}
|
9583
9026
|
|
9584
9027
|
// v-once
|
9585
|
-
function genOnce (el
|
9028
|
+
function genOnce (el) {
|
9586
9029
|
el.onceProcessed = true;
|
9587
9030
|
if (el.if && !el.ifProcessed) {
|
9588
|
-
return genIf(el
|
9031
|
+
return genIf(el)
|
9589
9032
|
} else if (el.staticInFor) {
|
9590
9033
|
var key = '';
|
9591
9034
|
var parent = el.parent;
|
@@ -9597,72 +9040,51 @@
|
|
9597
9040
|
parent = parent.parent;
|
9598
9041
|
}
|
9599
9042
|
if (!key) {
|
9600
|
-
"development" !== 'production' &&
|
9043
|
+
"development" !== 'production' && warn$3(
|
9601
9044
|
"v-once can only be used inside v-for that is keyed. "
|
9602
9045
|
);
|
9603
|
-
return genElement(el
|
9046
|
+
return genElement(el)
|
9604
9047
|
}
|
9605
|
-
return ("_o(" + (genElement(el
|
9048
|
+
return ("_o(" + (genElement(el)) + "," + (onceCount++) + (key ? ("," + key) : "") + ")")
|
9606
9049
|
} else {
|
9607
|
-
return genStatic(el
|
9050
|
+
return genStatic(el)
|
9608
9051
|
}
|
9609
9052
|
}
|
9610
9053
|
|
9611
|
-
function genIf (
|
9612
|
-
el,
|
9613
|
-
state,
|
9614
|
-
altGen,
|
9615
|
-
altEmpty
|
9616
|
-
) {
|
9054
|
+
function genIf (el) {
|
9617
9055
|
el.ifProcessed = true; // avoid recursion
|
9618
|
-
return genIfConditions(el.ifConditions.slice()
|
9056
|
+
return genIfConditions(el.ifConditions.slice())
|
9619
9057
|
}
|
9620
9058
|
|
9621
|
-
function genIfConditions (
|
9622
|
-
conditions,
|
9623
|
-
state,
|
9624
|
-
altGen,
|
9625
|
-
altEmpty
|
9626
|
-
) {
|
9059
|
+
function genIfConditions (conditions) {
|
9627
9060
|
if (!conditions.length) {
|
9628
|
-
return
|
9061
|
+
return '_e()'
|
9629
9062
|
}
|
9630
9063
|
|
9631
9064
|
var condition = conditions.shift();
|
9632
9065
|
if (condition.exp) {
|
9633
|
-
return ("(" + (condition.exp) + ")?" + (genTernaryExp(condition.block)) + ":" + (genIfConditions(conditions
|
9066
|
+
return ("(" + (condition.exp) + ")?" + (genTernaryExp(condition.block)) + ":" + (genIfConditions(conditions)))
|
9634
9067
|
} else {
|
9635
9068
|
return ("" + (genTernaryExp(condition.block)))
|
9636
9069
|
}
|
9637
9070
|
|
9638
9071
|
// v-if with v-once should generate code like (a)?_m(0):_m(1)
|
9639
9072
|
function genTernaryExp (el) {
|
9640
|
-
return
|
9641
|
-
? altGen(el, state)
|
9642
|
-
: el.once
|
9643
|
-
? genOnce(el, state)
|
9644
|
-
: genElement(el, state)
|
9073
|
+
return el.once ? genOnce(el) : genElement(el)
|
9645
9074
|
}
|
9646
9075
|
}
|
9647
9076
|
|
9648
|
-
function genFor (
|
9649
|
-
el,
|
9650
|
-
state,
|
9651
|
-
altGen,
|
9652
|
-
altHelper
|
9653
|
-
) {
|
9077
|
+
function genFor (el) {
|
9654
9078
|
var exp = el.for;
|
9655
9079
|
var alias = el.alias;
|
9656
9080
|
var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
|
9657
9081
|
var iterator2 = el.iterator2 ? ("," + (el.iterator2)) : '';
|
9658
9082
|
|
9659
|
-
if (
|
9660
|
-
|
9661
|
-
el.tag !== 'slot' &&
|
9662
|
-
el.tag !== 'template' &&
|
9663
|
-
!el.key
|
9083
|
+
if (
|
9084
|
+
"development" !== 'production' &&
|
9085
|
+
maybeComponent(el) && el.tag !== 'slot' && el.tag !== 'template' && !el.key
|
9664
9086
|
) {
|
9665
|
-
|
9087
|
+
warn$3(
|
9666
9088
|
"<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
|
9667
9089
|
"v-for should have explicit keys. " +
|
9668
9090
|
"See https://vuejs.org/guide/list.html#key for more info.",
|
@@ -9671,18 +9093,18 @@
|
|
9671
9093
|
}
|
9672
9094
|
|
9673
9095
|
el.forProcessed = true; // avoid recursion
|
9674
|
-
return
|
9096
|
+
return "_l((" + exp + ")," +
|
9675
9097
|
"function(" + alias + iterator1 + iterator2 + "){" +
|
9676
|
-
"return " + (
|
9098
|
+
"return " + (genElement(el)) +
|
9677
9099
|
'})'
|
9678
9100
|
}
|
9679
9101
|
|
9680
|
-
function genData
|
9102
|
+
function genData (el) {
|
9681
9103
|
var data = '{';
|
9682
9104
|
|
9683
9105
|
// directives first.
|
9684
9106
|
// directives may mutate the el's other properties before they are generated.
|
9685
|
-
var dirs = genDirectives(el
|
9107
|
+
var dirs = genDirectives(el);
|
9686
9108
|
if (dirs) { data += dirs + ','; }
|
9687
9109
|
|
9688
9110
|
// key
|
@@ -9705,8 +9127,8 @@
|
|
9705
9127
|
data += "tag:\"" + (el.tag) + "\",";
|
9706
9128
|
}
|
9707
9129
|
// module data generation functions
|
9708
|
-
for (var i = 0; i <
|
9709
|
-
data +=
|
9130
|
+
for (var i = 0; i < dataGenFns.length; i++) {
|
9131
|
+
data += dataGenFns[i](el);
|
9710
9132
|
}
|
9711
9133
|
// attributes
|
9712
9134
|
if (el.attrs) {
|
@@ -9718,10 +9140,10 @@
|
|
9718
9140
|
}
|
9719
9141
|
// event handlers
|
9720
9142
|
if (el.events) {
|
9721
|
-
data += (genHandlers(el.events, false,
|
9143
|
+
data += (genHandlers(el.events, false, warn$3)) + ",";
|
9722
9144
|
}
|
9723
9145
|
if (el.nativeEvents) {
|
9724
|
-
data += (genHandlers(el.nativeEvents, true,
|
9146
|
+
data += (genHandlers(el.nativeEvents, true, warn$3)) + ",";
|
9725
9147
|
}
|
9726
9148
|
// slot target
|
9727
9149
|
if (el.slotTarget) {
|
@@ -9729,7 +9151,7 @@
|
|
9729
9151
|
}
|
9730
9152
|
// scoped slots
|
9731
9153
|
if (el.scopedSlots) {
|
9732
|
-
data += (genScopedSlots(el.scopedSlots
|
9154
|
+
data += (genScopedSlots(el.scopedSlots)) + ",";
|
9733
9155
|
}
|
9734
9156
|
// component v-model
|
9735
9157
|
if (el.model) {
|
@@ -9737,7 +9159,7 @@
|
|
9737
9159
|
}
|
9738
9160
|
// inline-template
|
9739
9161
|
if (el.inlineTemplate) {
|
9740
|
-
var inlineTemplate = genInlineTemplate(el
|
9162
|
+
var inlineTemplate = genInlineTemplate(el);
|
9741
9163
|
if (inlineTemplate) {
|
9742
9164
|
data += inlineTemplate + ",";
|
9743
9165
|
}
|
@@ -9747,14 +9169,10 @@
|
|
9747
9169
|
if (el.wrapData) {
|
9748
9170
|
data = el.wrapData(data);
|
9749
9171
|
}
|
9750
|
-
// v-on data wrap
|
9751
|
-
if (el.wrapListeners) {
|
9752
|
-
data = el.wrapListeners(data);
|
9753
|
-
}
|
9754
9172
|
return data
|
9755
9173
|
}
|
9756
9174
|
|
9757
|
-
function genDirectives (el
|
9175
|
+
function genDirectives (el) {
|
9758
9176
|
var dirs = el.directives;
|
9759
9177
|
if (!dirs) { return }
|
9760
9178
|
var res = 'directives:[';
|
@@ -9763,11 +9181,11 @@
|
|
9763
9181
|
for (i = 0, l = dirs.length; i < l; i++) {
|
9764
9182
|
dir = dirs[i];
|
9765
9183
|
needRuntime = true;
|
9766
|
-
var gen =
|
9184
|
+
var gen = platformDirectives$1[dir.name] || baseDirectives[dir.name];
|
9767
9185
|
if (gen) {
|
9768
9186
|
// compile-time directive that manipulates AST.
|
9769
9187
|
// returns true if it also needs a runtime counterpart.
|
9770
|
-
needRuntime = !!gen(el, dir,
|
9188
|
+
needRuntime = !!gen(el, dir, warn$3);
|
9771
9189
|
}
|
9772
9190
|
if (needRuntime) {
|
9773
9191
|
hasRuntime = true;
|
@@ -9779,47 +9197,34 @@
|
|
9779
9197
|
}
|
9780
9198
|
}
|
9781
9199
|
|
9782
|
-
function genInlineTemplate (el
|
9200
|
+
function genInlineTemplate (el) {
|
9783
9201
|
var ast = el.children[0];
|
9784
9202
|
if ("development" !== 'production' && (
|
9785
9203
|
el.children.length > 1 || ast.type !== 1
|
9786
9204
|
)) {
|
9787
|
-
|
9205
|
+
warn$3('Inline-template components must have exactly one child element.');
|
9788
9206
|
}
|
9789
9207
|
if (ast.type === 1) {
|
9790
|
-
var inlineRenderFns = generate(ast,
|
9208
|
+
var inlineRenderFns = generate(ast, currentOptions);
|
9791
9209
|
return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
|
9792
9210
|
}
|
9793
9211
|
}
|
9794
9212
|
|
9795
|
-
function genScopedSlots (
|
9796
|
-
slots,
|
9797
|
-
state
|
9798
|
-
) {
|
9799
|
-
return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) {
|
9800
|
-
return genScopedSlot(key, slots[key], state)
|
9801
|
-
}).join(',')) + "])")
|
9213
|
+
function genScopedSlots (slots) {
|
9214
|
+
return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) { return genScopedSlot(key, slots[key]); }).join(',')) + "])")
|
9802
9215
|
}
|
9803
9216
|
|
9804
|
-
function genScopedSlot (
|
9805
|
-
key,
|
9806
|
-
el,
|
9807
|
-
state
|
9808
|
-
) {
|
9217
|
+
function genScopedSlot (key, el) {
|
9809
9218
|
if (el.for && !el.forProcessed) {
|
9810
|
-
return genForScopedSlot(key, el
|
9219
|
+
return genForScopedSlot(key, el)
|
9811
9220
|
}
|
9812
9221
|
return "{key:" + key + ",fn:function(" + (String(el.attrsMap.scope)) + "){" +
|
9813
9222
|
"return " + (el.tag === 'template'
|
9814
|
-
? genChildren(el
|
9815
|
-
: genElement(el
|
9223
|
+
? genChildren(el) || 'void 0'
|
9224
|
+
: genElement(el)) + "}}"
|
9816
9225
|
}
|
9817
9226
|
|
9818
|
-
function genForScopedSlot (
|
9819
|
-
key,
|
9820
|
-
el,
|
9821
|
-
state
|
9822
|
-
) {
|
9227
|
+
function genForScopedSlot (key, el) {
|
9823
9228
|
var exp = el.for;
|
9824
9229
|
var alias = el.alias;
|
9825
9230
|
var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
|
@@ -9827,17 +9232,11 @@
|
|
9827
9232
|
el.forProcessed = true; // avoid recursion
|
9828
9233
|
return "_l((" + exp + ")," +
|
9829
9234
|
"function(" + alias + iterator1 + iterator2 + "){" +
|
9830
|
-
"return " + (genScopedSlot(key, el
|
9235
|
+
"return " + (genScopedSlot(key, el)) +
|
9831
9236
|
'})'
|
9832
9237
|
}
|
9833
9238
|
|
9834
|
-
function genChildren (
|
9835
|
-
el,
|
9836
|
-
state,
|
9837
|
-
checkSkip,
|
9838
|
-
altGenElement,
|
9839
|
-
altGenNode
|
9840
|
-
) {
|
9239
|
+
function genChildren (el, checkSkip) {
|
9841
9240
|
var children = el.children;
|
9842
9241
|
if (children.length) {
|
9843
9242
|
var el$1 = children[0];
|
@@ -9847,13 +9246,10 @@
|
|
9847
9246
|
el$1.tag !== 'template' &&
|
9848
9247
|
el$1.tag !== 'slot'
|
9849
9248
|
) {
|
9850
|
-
return
|
9249
|
+
return genElement(el$1)
|
9851
9250
|
}
|
9852
|
-
var normalizationType = checkSkip
|
9853
|
-
|
9854
|
-
: 0;
|
9855
|
-
var gen = altGenNode || genNode;
|
9856
|
-
return ("[" + (children.map(function (c) { return gen(c, state); }).join(',')) + "]" + (normalizationType ? ("," + normalizationType) : ''))
|
9251
|
+
var normalizationType = checkSkip ? getNormalizationType(children) : 0;
|
9252
|
+
return ("[" + (children.map(genNode).join(',')) + "]" + (normalizationType ? ("," + normalizationType) : ''))
|
9857
9253
|
}
|
9858
9254
|
}
|
9859
9255
|
|
@@ -9861,10 +9257,7 @@
|
|
9861
9257
|
// 0: no normalization needed
|
9862
9258
|
// 1: simple normalization needed (possible 1-level deep nested array)
|
9863
9259
|
// 2: full normalization needed
|
9864
|
-
function getNormalizationType (
|
9865
|
-
children,
|
9866
|
-
maybeComponent
|
9867
|
-
) {
|
9260
|
+
function getNormalizationType (children) {
|
9868
9261
|
var res = 0;
|
9869
9262
|
for (var i = 0; i < children.length; i++) {
|
9870
9263
|
var el = children[i];
|
@@ -9888,11 +9281,13 @@
|
|
9888
9281
|
return el.for !== undefined || el.tag === 'template' || el.tag === 'slot'
|
9889
9282
|
}
|
9890
9283
|
|
9891
|
-
function
|
9284
|
+
function maybeComponent (el) {
|
9285
|
+
return !isPlatformReservedTag$1(el.tag)
|
9286
|
+
}
|
9287
|
+
|
9288
|
+
function genNode (node) {
|
9892
9289
|
if (node.type === 1) {
|
9893
|
-
return genElement(node
|
9894
|
-
} if (node.type === 3 && node.isComment) {
|
9895
|
-
return genComment(node)
|
9290
|
+
return genElement(node)
|
9896
9291
|
} else {
|
9897
9292
|
return genText(node)
|
9898
9293
|
}
|
@@ -9904,13 +9299,9 @@
|
|
9904
9299
|
: transformSpecialNewlines(JSON.stringify(text.text))) + ")")
|
9905
9300
|
}
|
9906
9301
|
|
9907
|
-
function
|
9908
|
-
return ("_e(" + (JSON.stringify(comment.text)) + ")")
|
9909
|
-
}
|
9910
|
-
|
9911
|
-
function genSlot (el, state) {
|
9302
|
+
function genSlot (el) {
|
9912
9303
|
var slotName = el.slotName || '"default"';
|
9913
|
-
var children = genChildren(el
|
9304
|
+
var children = genChildren(el);
|
9914
9305
|
var res = "_t(" + slotName + (children ? ("," + children) : '');
|
9915
9306
|
var attrs = el.attrs && ("{" + (el.attrs.map(function (a) { return ((camelize(a.name)) + ":" + (a.value)); }).join(',')) + "}");
|
9916
9307
|
var bind$$1 = el.attrsMap['v-bind'];
|
@@ -9927,13 +9318,9 @@
|
|
9927
9318
|
}
|
9928
9319
|
|
9929
9320
|
// componentName is el.component, take it as argument to shun flow's pessimistic refinement
|
9930
|
-
function genComponent (
|
9931
|
-
|
9932
|
-
el,
|
9933
|
-
state
|
9934
|
-
) {
|
9935
|
-
var children = el.inlineTemplate ? null : genChildren(el, state, true);
|
9936
|
-
return ("_c(" + componentName + "," + (genData$2(el, state)) + (children ? ("," + children) : '') + ")")
|
9321
|
+
function genComponent (componentName, el) {
|
9322
|
+
var children = el.inlineTemplate ? null : genChildren(el, true);
|
9323
|
+
return ("_c(" + componentName + "," + (genData(el)) + (children ? ("," + children) : '') + ")")
|
9937
9324
|
}
|
9938
9325
|
|
9939
9326
|
function genProps (props) {
|
@@ -10051,7 +9438,21 @@
|
|
10051
9438
|
|
10052
9439
|
/* */
|
10053
9440
|
|
10054
|
-
function
|
9441
|
+
function baseCompile (
|
9442
|
+
template,
|
9443
|
+
options
|
9444
|
+
) {
|
9445
|
+
var ast = parse(template.trim(), options);
|
9446
|
+
optimize(ast, options);
|
9447
|
+
var code = generate(ast, options);
|
9448
|
+
return {
|
9449
|
+
ast: ast,
|
9450
|
+
render: code.render,
|
9451
|
+
staticRenderFns: code.staticRenderFns
|
9452
|
+
}
|
9453
|
+
}
|
9454
|
+
|
9455
|
+
function makeFunction (code, errors) {
|
10055
9456
|
try {
|
10056
9457
|
return new Function(code)
|
10057
9458
|
} catch (err) {
|
@@ -10060,10 +9461,50 @@
|
|
10060
9461
|
}
|
10061
9462
|
}
|
10062
9463
|
|
10063
|
-
function
|
10064
|
-
var
|
9464
|
+
function createCompiler (baseOptions) {
|
9465
|
+
var functionCompileCache = Object.create(null);
|
9466
|
+
|
9467
|
+
function compile (
|
9468
|
+
template,
|
9469
|
+
options
|
9470
|
+
) {
|
9471
|
+
var finalOptions = Object.create(baseOptions);
|
9472
|
+
var errors = [];
|
9473
|
+
var tips = [];
|
9474
|
+
finalOptions.warn = function (msg, tip$$1) {
|
9475
|
+
(tip$$1 ? tips : errors).push(msg);
|
9476
|
+
};
|
9477
|
+
|
9478
|
+
if (options) {
|
9479
|
+
// merge custom modules
|
9480
|
+
if (options.modules) {
|
9481
|
+
finalOptions.modules = (baseOptions.modules || []).concat(options.modules);
|
9482
|
+
}
|
9483
|
+
// merge custom directives
|
9484
|
+
if (options.directives) {
|
9485
|
+
finalOptions.directives = extend(
|
9486
|
+
Object.create(baseOptions.directives),
|
9487
|
+
options.directives
|
9488
|
+
);
|
9489
|
+
}
|
9490
|
+
// copy other options
|
9491
|
+
for (var key in options) {
|
9492
|
+
if (key !== 'modules' && key !== 'directives') {
|
9493
|
+
finalOptions[key] = options[key];
|
9494
|
+
}
|
9495
|
+
}
|
9496
|
+
}
|
9497
|
+
|
9498
|
+
var compiled = baseCompile(template, finalOptions);
|
9499
|
+
{
|
9500
|
+
errors.push.apply(errors, detectErrors(compiled.ast));
|
9501
|
+
}
|
9502
|
+
compiled.errors = errors;
|
9503
|
+
compiled.tips = tips;
|
9504
|
+
return compiled
|
9505
|
+
}
|
10065
9506
|
|
10066
|
-
|
9507
|
+
function compileToFunctions (
|
10067
9508
|
template,
|
10068
9509
|
options,
|
10069
9510
|
vm
|
@@ -10092,8 +9533,8 @@
|
|
10092
9533
|
var key = options.delimiters
|
10093
9534
|
? String(options.delimiters) + template
|
10094
9535
|
: template;
|
10095
|
-
if (
|
10096
|
-
return
|
9536
|
+
if (functionCompileCache[key]) {
|
9537
|
+
return functionCompileCache[key]
|
10097
9538
|
}
|
10098
9539
|
|
10099
9540
|
// compile
|
@@ -10116,10 +9557,12 @@
|
|
10116
9557
|
// turn code into functions
|
10117
9558
|
var res = {};
|
10118
9559
|
var fnGenErrors = [];
|
10119
|
-
res.render =
|
10120
|
-
|
10121
|
-
|
10122
|
-
|
9560
|
+
res.render = makeFunction(compiled.render, fnGenErrors);
|
9561
|
+
var l = compiled.staticRenderFns.length;
|
9562
|
+
res.staticRenderFns = new Array(l);
|
9563
|
+
for (var i = 0; i < l; i++) {
|
9564
|
+
res.staticRenderFns[i] = makeFunction(compiled.staticRenderFns[i], fnGenErrors);
|
9565
|
+
}
|
10123
9566
|
|
10124
9567
|
// check function generation errors.
|
10125
9568
|
// this should only happen if there is a bug in the compiler itself.
|
@@ -10140,83 +9583,143 @@
|
|
10140
9583
|
}
|
10141
9584
|
}
|
10142
9585
|
|
10143
|
-
return (
|
9586
|
+
return (functionCompileCache[key] = res)
|
9587
|
+
}
|
9588
|
+
|
9589
|
+
return {
|
9590
|
+
compile: compile,
|
9591
|
+
compileToFunctions: compileToFunctions
|
10144
9592
|
}
|
10145
9593
|
}
|
10146
9594
|
|
10147
9595
|
/* */
|
10148
9596
|
|
10149
|
-
function
|
10150
|
-
|
10151
|
-
|
10152
|
-
|
10153
|
-
|
10154
|
-
) {
|
10155
|
-
|
10156
|
-
|
10157
|
-
|
10158
|
-
|
10159
|
-
|
10160
|
-
|
9597
|
+
function transformNode (el, options) {
|
9598
|
+
var warn = options.warn || baseWarn;
|
9599
|
+
var staticClass = getAndRemoveAttr(el, 'class');
|
9600
|
+
if ("development" !== 'production' && staticClass) {
|
9601
|
+
var expression = parseText(staticClass, options.delimiters);
|
9602
|
+
if (expression) {
|
9603
|
+
warn(
|
9604
|
+
"class=\"" + staticClass + "\": " +
|
9605
|
+
'Interpolation inside attributes has been removed. ' +
|
9606
|
+
'Use v-bind or the colon shorthand instead. For example, ' +
|
9607
|
+
'instead of <div class="{{ val }}">, use <div :class="val">.'
|
9608
|
+
);
|
9609
|
+
}
|
9610
|
+
}
|
9611
|
+
if (staticClass) {
|
9612
|
+
el.staticClass = JSON.stringify(staticClass);
|
9613
|
+
}
|
9614
|
+
var classBinding = getBindingAttr(el, 'class', false /* getStatic */);
|
9615
|
+
if (classBinding) {
|
9616
|
+
el.classBinding = classBinding;
|
9617
|
+
}
|
9618
|
+
}
|
10161
9619
|
|
10162
|
-
|
10163
|
-
|
10164
|
-
|
10165
|
-
|
10166
|
-
|
10167
|
-
|
10168
|
-
|
10169
|
-
|
10170
|
-
|
10171
|
-
|
10172
|
-
options.directives
|
10173
|
-
);
|
10174
|
-
}
|
10175
|
-
// copy other options
|
10176
|
-
for (var key in options) {
|
10177
|
-
if (key !== 'modules' && key !== 'directives') {
|
10178
|
-
finalOptions[key] = options[key];
|
10179
|
-
}
|
10180
|
-
}
|
10181
|
-
}
|
9620
|
+
function genData$1 (el) {
|
9621
|
+
var data = '';
|
9622
|
+
if (el.staticClass) {
|
9623
|
+
data += "staticClass:" + (el.staticClass) + ",";
|
9624
|
+
}
|
9625
|
+
if (el.classBinding) {
|
9626
|
+
data += "class:" + (el.classBinding) + ",";
|
9627
|
+
}
|
9628
|
+
return data
|
9629
|
+
}
|
10182
9630
|
|
10183
|
-
|
10184
|
-
|
10185
|
-
|
9631
|
+
var klass$1 = {
|
9632
|
+
staticKeys: ['staticClass'],
|
9633
|
+
transformNode: transformNode,
|
9634
|
+
genData: genData$1
|
9635
|
+
};
|
9636
|
+
|
9637
|
+
/* */
|
9638
|
+
|
9639
|
+
function transformNode$1 (el, options) {
|
9640
|
+
var warn = options.warn || baseWarn;
|
9641
|
+
var staticStyle = getAndRemoveAttr(el, 'style');
|
9642
|
+
if (staticStyle) {
|
9643
|
+
/* istanbul ignore if */
|
9644
|
+
{
|
9645
|
+
var expression = parseText(staticStyle, options.delimiters);
|
9646
|
+
if (expression) {
|
9647
|
+
warn(
|
9648
|
+
"style=\"" + staticStyle + "\": " +
|
9649
|
+
'Interpolation inside attributes has been removed. ' +
|
9650
|
+
'Use v-bind or the colon shorthand instead. For example, ' +
|
9651
|
+
'instead of <div style="{{ val }}">, use <div :style="val">.'
|
9652
|
+
);
|
10186
9653
|
}
|
10187
|
-
compiled.errors = errors;
|
10188
|
-
compiled.tips = tips;
|
10189
|
-
return compiled
|
10190
9654
|
}
|
9655
|
+
el.staticStyle = JSON.stringify(parseStyleText(staticStyle));
|
9656
|
+
}
|
10191
9657
|
|
10192
|
-
|
10193
|
-
|
10194
|
-
|
10195
|
-
|
9658
|
+
var styleBinding = getBindingAttr(el, 'style', false /* getStatic */);
|
9659
|
+
if (styleBinding) {
|
9660
|
+
el.styleBinding = styleBinding;
|
9661
|
+
}
|
9662
|
+
}
|
9663
|
+
|
9664
|
+
function genData$2 (el) {
|
9665
|
+
var data = '';
|
9666
|
+
if (el.staticStyle) {
|
9667
|
+
data += "staticStyle:" + (el.staticStyle) + ",";
|
9668
|
+
}
|
9669
|
+
if (el.styleBinding) {
|
9670
|
+
data += "style:(" + (el.styleBinding) + "),";
|
10196
9671
|
}
|
9672
|
+
return data
|
10197
9673
|
}
|
10198
9674
|
|
9675
|
+
var style$1 = {
|
9676
|
+
staticKeys: ['staticStyle'],
|
9677
|
+
transformNode: transformNode$1,
|
9678
|
+
genData: genData$2
|
9679
|
+
};
|
9680
|
+
|
9681
|
+
var modules$1 = [
|
9682
|
+
klass$1,
|
9683
|
+
style$1
|
9684
|
+
];
|
9685
|
+
|
10199
9686
|
/* */
|
10200
9687
|
|
10201
|
-
|
10202
|
-
|
10203
|
-
|
10204
|
-
var createCompiler = createCompilerCreator(function baseCompile (
|
10205
|
-
template,
|
10206
|
-
options
|
10207
|
-
) {
|
10208
|
-
var ast = parse(template.trim(), options);
|
10209
|
-
optimize(ast, options);
|
10210
|
-
var code = generate(ast, options);
|
10211
|
-
return {
|
10212
|
-
ast: ast,
|
10213
|
-
render: code.render,
|
10214
|
-
staticRenderFns: code.staticRenderFns
|
9688
|
+
function text (el, dir) {
|
9689
|
+
if (dir.value) {
|
9690
|
+
addProp(el, 'textContent', ("_s(" + (dir.value) + ")"));
|
10215
9691
|
}
|
10216
|
-
}
|
9692
|
+
}
|
9693
|
+
|
9694
|
+
/* */
|
9695
|
+
|
9696
|
+
function html (el, dir) {
|
9697
|
+
if (dir.value) {
|
9698
|
+
addProp(el, 'innerHTML', ("_s(" + (dir.value) + ")"));
|
9699
|
+
}
|
9700
|
+
}
|
9701
|
+
|
9702
|
+
var directives$1 = {
|
9703
|
+
model: model,
|
9704
|
+
text: text,
|
9705
|
+
html: html
|
9706
|
+
};
|
10217
9707
|
|
10218
9708
|
/* */
|
10219
9709
|
|
9710
|
+
var baseOptions = {
|
9711
|
+
expectHTML: true,
|
9712
|
+
modules: modules$1,
|
9713
|
+
directives: directives$1,
|
9714
|
+
isPreTag: isPreTag,
|
9715
|
+
isUnaryTag: isUnaryTag,
|
9716
|
+
mustUseProp: mustUseProp,
|
9717
|
+
canBeLeftOpenTag: canBeLeftOpenTag,
|
9718
|
+
isReservedTag: isReservedTag,
|
9719
|
+
getTagNamespace: getTagNamespace,
|
9720
|
+
staticKeys: genStaticKeys(modules$1)
|
9721
|
+
};
|
9722
|
+
|
10220
9723
|
var ref$1 = createCompiler(baseOptions);
|
10221
9724
|
var compileToFunctions = ref$1.compileToFunctions;
|
10222
9725
|
|
@@ -10277,8 +9780,7 @@
|
|
10277
9780
|
|
10278
9781
|
var ref = compileToFunctions(template, {
|
10279
9782
|
shouldDecodeNewlines: shouldDecodeNewlines,
|
10280
|
-
delimiters: options.delimiters
|
10281
|
-
comments: options.comments
|
9783
|
+
delimiters: options.delimiters
|
10282
9784
|
}, this);
|
10283
9785
|
var render = ref.render;
|
10284
9786
|
var staticRenderFns = ref.staticRenderFns;
|
@@ -14653,7 +14155,7 @@
|
|
14653
14155
|
/* moduleIdentifier (server only) */
|
14654
14156
|
null
|
14655
14157
|
)
|
14656
|
-
Component.options.__file = "/
|
14158
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/imageListing.vue"
|
14657
14159
|
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.")}
|
14658
14160
|
if (Component.options.functional) {console.error("[vue-loader] imageListing.vue: functional components are not supported with templates, they should use render functions.")}
|
14659
14161
|
|
@@ -14711,7 +14213,7 @@
|
|
14711
14213
|
|
14712
14214
|
|
14713
14215
|
// module
|
14714
|
-
exports.push([module.id, "\n.table > thead td {\n text-transform: uppercase;\n}\n.add-image-link {\n margin-bottom: 15px;\n}\n.img-options-content .btn {\n margin: 4px;\n}\n.add-image-link {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n font-size: 50px;\n}\n.listing-element {\n margin: 10px;\n float: left;\n width: 150px;\n}\n.listing-element .btn-sm.btn {\n padding: 0 5px;\n font-size: 11px;\n}\n", ""]);
|
14216
|
+
exports.push([module.id, "\n.table > thead td {\n text-transform: uppercase;\n}\n.add-image-link {\n margin-bottom: 15px;\n}\n.img-options-content .btn {\n margin: 4px;\n}\n.add-image-link {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: 100%;\n font-size: 50px;\n}\n.listing-element {\n margin: 10px;\n float: left;\n width: 150px;\n}\n.listing-element .btn-sm.btn {\n padding: 0 5px;\n font-size: 11px;\n}\n", ""]);
|
14715
14217
|
|
14716
14218
|
// exports
|
14717
14219
|
|
@@ -15343,7 +14845,7 @@
|
|
15343
14845
|
/* moduleIdentifier (server only) */
|
15344
14846
|
null
|
15345
14847
|
)
|
15346
|
-
Component.options.__file = "/
|
14848
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/imageInsertButton.vue"
|
15347
14849
|
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.")}
|
15348
14850
|
if (Component.options.functional) {console.error("[vue-loader] imageInsertButton.vue: functional components are not supported with templates, they should use render functions.")}
|
15349
14851
|
|
@@ -15460,18 +14962,23 @@
|
|
15460
14962
|
/* 44 */
|
15461
14963
|
/***/ (function(module, exports, __webpack_require__) {
|
15462
14964
|
|
15463
|
-
|
15464
|
-
* vuex v2.
|
14965
|
+
/**
|
14966
|
+
* vuex v2.3.0
|
15465
14967
|
* (c) 2017 Evan You
|
15466
14968
|
* @license MIT
|
15467
14969
|
*/
|
15468
|
-
|
14970
|
+
(function (global, factory) {
|
14971
|
+
true ? module.exports = factory() :
|
14972
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
14973
|
+
(global.Vuex = factory());
|
14974
|
+
}(this, (function () { 'use strict';
|
15469
14975
|
|
15470
14976
|
var applyMixin = function (Vue) {
|
15471
14977
|
var version = Number(Vue.version.split('.')[0]);
|
15472
14978
|
|
15473
14979
|
if (version >= 2) {
|
15474
|
-
Vue.
|
14980
|
+
var usesInit = Vue.config._lifecycleHooks.indexOf('init') > -1;
|
14981
|
+
Vue.mixin(usesInit ? { init: vuexInit } : { beforeCreate: vuexInit });
|
15475
14982
|
} else {
|
15476
14983
|
// override init and inject vuex init procedure
|
15477
14984
|
// for 1.x backwards compatibility.
|
@@ -15494,9 +15001,7 @@
|
|
15494
15001
|
var options = this.$options;
|
15495
15002
|
// store injection
|
15496
15003
|
if (options.store) {
|
15497
|
-
this.$store =
|
15498
|
-
? options.store()
|
15499
|
-
: options.store;
|
15004
|
+
this.$store = options.store;
|
15500
15005
|
} else if (options.parent && options.parent.$store) {
|
15501
15006
|
this.$store = options.parent.$store;
|
15502
15007
|
}
|
@@ -15569,7 +15074,7 @@
|
|
15569
15074
|
this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
|
15570
15075
|
};
|
15571
15076
|
|
15572
|
-
var prototypeAccessors$1 = { namespaced: {
|
15077
|
+
var prototypeAccessors$1 = { namespaced: {} };
|
15573
15078
|
|
15574
15079
|
prototypeAccessors$1.namespaced.get = function () {
|
15575
15080
|
return !!this._rawModule.namespaced
|
@@ -15625,8 +15130,17 @@
|
|
15625
15130
|
Object.defineProperties( Module.prototype, prototypeAccessors$1 );
|
15626
15131
|
|
15627
15132
|
var ModuleCollection = function ModuleCollection (rawRootModule) {
|
15133
|
+
var this$1 = this;
|
15134
|
+
|
15628
15135
|
// register root module (Vuex.Store options)
|
15629
|
-
this.
|
15136
|
+
this.root = new Module(rawRootModule, false);
|
15137
|
+
|
15138
|
+
// register all nested modules
|
15139
|
+
if (rawRootModule.modules) {
|
15140
|
+
forEachValue(rawRootModule.modules, function (rawModule, key) {
|
15141
|
+
this$1.register([key], rawModule, false);
|
15142
|
+
});
|
15143
|
+
}
|
15630
15144
|
};
|
15631
15145
|
|
15632
15146
|
ModuleCollection.prototype.get = function get (path) {
|
@@ -15644,24 +15158,16 @@
|
|
15644
15158
|
};
|
15645
15159
|
|
15646
15160
|
ModuleCollection.prototype.update = function update$1 (rawRootModule) {
|
15647
|
-
update(
|
15161
|
+
update(this.root, rawRootModule);
|
15648
15162
|
};
|
15649
15163
|
|
15650
15164
|
ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
|
15651
15165
|
var this$1 = this;
|
15652
15166
|
if ( runtime === void 0 ) runtime = true;
|
15653
15167
|
|
15654
|
-
|
15655
|
-
assertRawModule(path, rawModule);
|
15656
|
-
}
|
15657
|
-
|
15168
|
+
var parent = this.get(path.slice(0, -1));
|
15658
15169
|
var newModule = new Module(rawModule, runtime);
|
15659
|
-
|
15660
|
-
this.root = newModule;
|
15661
|
-
} else {
|
15662
|
-
var parent = this.get(path.slice(0, -1));
|
15663
|
-
parent.addChild(path[path.length - 1], newModule);
|
15664
|
-
}
|
15170
|
+
parent.addChild(path[path.length - 1], newModule);
|
15665
15171
|
|
15666
15172
|
// register nested modules
|
15667
15173
|
if (rawModule.modules) {
|
@@ -15679,11 +15185,7 @@
|
|
15679
15185
|
parent.removeChild(key);
|
15680
15186
|
};
|
15681
15187
|
|
15682
|
-
function update (
|
15683
|
-
if (process.env.NODE_ENV !== 'production') {
|
15684
|
-
assertRawModule(path, newModule);
|
15685
|
-
}
|
15686
|
-
|
15188
|
+
function update (targetModule, newModule) {
|
15687
15189
|
// update target module
|
15688
15190
|
targetModule.update(newModule);
|
15689
15191
|
|
@@ -15691,73 +15193,30 @@
|
|
15691
15193
|
if (newModule.modules) {
|
15692
15194
|
for (var key in newModule.modules) {
|
15693
15195
|
if (!targetModule.getChild(key)) {
|
15694
|
-
|
15695
|
-
|
15696
|
-
|
15697
|
-
|
15698
|
-
);
|
15699
|
-
}
|
15196
|
+
console.warn(
|
15197
|
+
"[vuex] trying to add a new module '" + key + "' on hot reloading, " +
|
15198
|
+
'manual reload is needed'
|
15199
|
+
);
|
15700
15200
|
return
|
15701
15201
|
}
|
15702
|
-
update(
|
15703
|
-
path.concat(key),
|
15704
|
-
targetModule.getChild(key),
|
15705
|
-
newModule.modules[key]
|
15706
|
-
);
|
15202
|
+
update(targetModule.getChild(key), newModule.modules[key]);
|
15707
15203
|
}
|
15708
15204
|
}
|
15709
15205
|
}
|
15710
15206
|
|
15711
|
-
function assertRawModule (path, rawModule) {
|
15712
|
-
['getters', 'actions', 'mutations'].forEach(function (key) {
|
15713
|
-
if (!rawModule[key]) { return }
|
15714
|
-
|
15715
|
-
forEachValue(rawModule[key], function (value, type) {
|
15716
|
-
assert(
|
15717
|
-
typeof value === 'function',
|
15718
|
-
makeAssertionMessage(path, key, type, value)
|
15719
|
-
);
|
15720
|
-
});
|
15721
|
-
});
|
15722
|
-
}
|
15723
|
-
|
15724
|
-
function makeAssertionMessage (path, key, type, value) {
|
15725
|
-
var buf = key + " should be function but \"" + key + "." + type + "\"";
|
15726
|
-
if (path.length > 0) {
|
15727
|
-
buf += " in module \"" + (path.join('.')) + "\"";
|
15728
|
-
}
|
15729
|
-
buf += " is " + (JSON.stringify(value)) + ".";
|
15730
|
-
|
15731
|
-
return buf
|
15732
|
-
}
|
15733
|
-
|
15734
15207
|
var Vue; // bind on install
|
15735
15208
|
|
15736
15209
|
var Store = function Store (options) {
|
15737
15210
|
var this$1 = this;
|
15738
15211
|
if ( options === void 0 ) options = {};
|
15739
15212
|
|
15740
|
-
|
15741
|
-
|
15742
|
-
// this code should be placed here. See #731
|
15743
|
-
if (!Vue && typeof window !== 'undefined' && window.Vue) {
|
15744
|
-
install(window.Vue);
|
15745
|
-
}
|
15746
|
-
|
15747
|
-
if (process.env.NODE_ENV !== 'production') {
|
15748
|
-
assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
|
15749
|
-
assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
|
15750
|
-
assert(this instanceof Store, "Store must be called with the new operator.");
|
15751
|
-
}
|
15213
|
+
assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
|
15214
|
+
assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
|
15752
15215
|
|
15216
|
+
var state = options.state; if ( state === void 0 ) state = {};
|
15753
15217
|
var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
|
15754
15218
|
var strict = options.strict; if ( strict === void 0 ) strict = false;
|
15755
15219
|
|
15756
|
-
var state = options.state; if ( state === void 0 ) state = {};
|
15757
|
-
if (typeof state === 'function') {
|
15758
|
-
state = state();
|
15759
|
-
}
|
15760
|
-
|
15761
15220
|
// store internal state
|
15762
15221
|
this._committing = false;
|
15763
15222
|
this._actions = Object.create(null);
|
@@ -15793,23 +15252,17 @@
|
|
15793
15252
|
resetStoreVM(this, state);
|
15794
15253
|
|
15795
15254
|
// apply plugins
|
15796
|
-
plugins.forEach(function (plugin) { return plugin(this$1); });
|
15797
|
-
|
15798
|
-
if (Vue.config.devtools) {
|
15799
|
-
devtoolPlugin(this);
|
15800
|
-
}
|
15255
|
+
plugins.concat(devtoolPlugin).forEach(function (plugin) { return plugin(this$1); });
|
15801
15256
|
};
|
15802
15257
|
|
15803
|
-
var prototypeAccessors = { state: {
|
15258
|
+
var prototypeAccessors = { state: {} };
|
15804
15259
|
|
15805
15260
|
prototypeAccessors.state.get = function () {
|
15806
15261
|
return this._vm._data.$$state
|
15807
15262
|
};
|
15808
15263
|
|
15809
15264
|
prototypeAccessors.state.set = function (v) {
|
15810
|
-
|
15811
|
-
assert(false, "Use store.replaceState() to explicit replace store state.");
|
15812
|
-
}
|
15265
|
+
assert(false, "Use store.replaceState() to explicit replace store state.");
|
15813
15266
|
};
|
15814
15267
|
|
15815
15268
|
Store.prototype.commit = function commit (_type, _payload, _options) {
|
@@ -15824,9 +15277,7 @@
|
|
15824
15277
|
var mutation = { type: type, payload: payload };
|
15825
15278
|
var entry = this._mutations[type];
|
15826
15279
|
if (!entry) {
|
15827
|
-
|
15828
|
-
console.error(("[vuex] unknown mutation type: " + type));
|
15829
|
-
}
|
15280
|
+
console.error(("[vuex] unknown mutation type: " + type));
|
15830
15281
|
return
|
15831
15282
|
}
|
15832
15283
|
this._withCommit(function () {
|
@@ -15836,10 +15287,7 @@
|
|
15836
15287
|
});
|
15837
15288
|
this._subscribers.forEach(function (sub) { return sub(mutation, this$1.state); });
|
15838
15289
|
|
15839
|
-
if (
|
15840
|
-
process.env.NODE_ENV !== 'production' &&
|
15841
|
-
options && options.silent
|
15842
|
-
) {
|
15290
|
+
if (options && options.silent) {
|
15843
15291
|
console.warn(
|
15844
15292
|
"[vuex] mutation type: " + type + ". Silent option has been removed. " +
|
15845
15293
|
'Use the filter functionality in the vue-devtools'
|
@@ -15855,9 +15303,7 @@
|
|
15855
15303
|
|
15856
15304
|
var entry = this._actions[type];
|
15857
15305
|
if (!entry) {
|
15858
|
-
|
15859
|
-
console.error(("[vuex] unknown action type: " + type));
|
15860
|
-
}
|
15306
|
+
console.error(("[vuex] unknown action type: " + type));
|
15861
15307
|
return
|
15862
15308
|
}
|
15863
15309
|
return entry.length > 1
|
@@ -15881,9 +15327,7 @@
|
|
15881
15327
|
Store.prototype.watch = function watch (getter, cb, options) {
|
15882
15328
|
var this$1 = this;
|
15883
15329
|
|
15884
|
-
|
15885
|
-
assert(typeof getter === 'function', "store.watch only accepts a function.");
|
15886
|
-
}
|
15330
|
+
assert(typeof getter === 'function', "store.watch only accepts a function.");
|
15887
15331
|
return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
|
15888
15332
|
};
|
15889
15333
|
|
@@ -15897,12 +15341,7 @@
|
|
15897
15341
|
|
15898
15342
|
Store.prototype.registerModule = function registerModule (path, rawModule) {
|
15899
15343
|
if (typeof path === 'string') { path = [path]; }
|
15900
|
-
|
15901
|
-
if (process.env.NODE_ENV !== 'production') {
|
15902
|
-
assert(Array.isArray(path), "module path must be a string or an Array.");
|
15903
|
-
assert(path.length > 0, 'cannot register the root module by using registerModule.');
|
15904
|
-
}
|
15905
|
-
|
15344
|
+
assert(Array.isArray(path), "module path must be a string or an Array.");
|
15906
15345
|
this._modules.register(path, rawModule);
|
15907
15346
|
installModule(this, this.state, path, this._modules.get(path));
|
15908
15347
|
// reset store to update getters...
|
@@ -15913,11 +15352,7 @@
|
|
15913
15352
|
var this$1 = this;
|
15914
15353
|
|
15915
15354
|
if (typeof path === 'string') { path = [path]; }
|
15916
|
-
|
15917
|
-
if (process.env.NODE_ENV !== 'production') {
|
15918
|
-
assert(Array.isArray(path), "module path must be a string or an Array.");
|
15919
|
-
}
|
15920
|
-
|
15355
|
+
assert(Array.isArray(path), "module path must be a string or an Array.");
|
15921
15356
|
this._modules.unregister(path);
|
15922
15357
|
this._withCommit(function () {
|
15923
15358
|
var parentState = getNestedState(this$1.state, path.slice(0, -1));
|
@@ -16054,7 +15489,7 @@
|
|
16054
15489
|
|
16055
15490
|
if (!options || !options.root) {
|
16056
15491
|
type = namespace + type;
|
16057
|
-
if (
|
15492
|
+
if (!store._actions[type]) {
|
16058
15493
|
console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
|
16059
15494
|
return
|
16060
15495
|
}
|
@@ -16071,7 +15506,7 @@
|
|
16071
15506
|
|
16072
15507
|
if (!options || !options.root) {
|
16073
15508
|
type = namespace + type;
|
16074
|
-
if (
|
15509
|
+
if (!store._mutations[type]) {
|
16075
15510
|
console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
|
16076
15511
|
return
|
16077
15512
|
}
|
@@ -16123,14 +15558,14 @@
|
|
16123
15558
|
function registerMutation (store, type, handler, local) {
|
16124
15559
|
var entry = store._mutations[type] || (store._mutations[type] = []);
|
16125
15560
|
entry.push(function wrappedMutationHandler (payload) {
|
16126
|
-
handler
|
15561
|
+
handler(local.state, payload);
|
16127
15562
|
});
|
16128
15563
|
}
|
16129
15564
|
|
16130
15565
|
function registerAction (store, type, handler, local) {
|
16131
15566
|
var entry = store._actions[type] || (store._actions[type] = []);
|
16132
15567
|
entry.push(function wrappedActionHandler (payload, cb) {
|
16133
|
-
var res = handler
|
15568
|
+
var res = handler({
|
16134
15569
|
dispatch: local.dispatch,
|
16135
15570
|
commit: local.commit,
|
16136
15571
|
getters: local.getters,
|
@@ -16154,9 +15589,7 @@
|
|
16154
15589
|
|
16155
15590
|
function registerGetter (store, type, rawGetter, local) {
|
16156
15591
|
if (store._wrappedGetters[type]) {
|
16157
|
-
|
16158
|
-
console.error(("[vuex] duplicate getter key: " + type));
|
16159
|
-
}
|
15592
|
+
console.error(("[vuex] duplicate getter key: " + type));
|
16160
15593
|
return
|
16161
15594
|
}
|
16162
15595
|
store._wrappedGetters[type] = function wrappedGetter (store) {
|
@@ -16171,9 +15604,7 @@
|
|
16171
15604
|
|
16172
15605
|
function enableStrictMode (store) {
|
16173
15606
|
store._vm.$watch(function () { return this._data.$$state }, function () {
|
16174
|
-
|
16175
|
-
assert(store._committing, "Do not mutate vuex store state outside mutation handlers.");
|
16176
|
-
}
|
15607
|
+
assert(store._committing, "Do not mutate vuex store state outside mutation handlers.");
|
16177
15608
|
}, { deep: true, sync: true });
|
16178
15609
|
}
|
16179
15610
|
|
@@ -16190,26 +15621,27 @@
|
|
16190
15621
|
type = type.type;
|
16191
15622
|
}
|
16192
15623
|
|
16193
|
-
|
16194
|
-
assert(typeof type === 'string', ("Expects string as the type, but found " + (typeof type) + "."));
|
16195
|
-
}
|
15624
|
+
assert(typeof type === 'string', ("Expects string as the type, but found " + (typeof type) + "."));
|
16196
15625
|
|
16197
15626
|
return { type: type, payload: payload, options: options }
|
16198
15627
|
}
|
16199
15628
|
|
16200
15629
|
function install (_Vue) {
|
16201
|
-
if (Vue
|
16202
|
-
|
16203
|
-
|
16204
|
-
|
16205
|
-
);
|
16206
|
-
}
|
15630
|
+
if (Vue) {
|
15631
|
+
console.error(
|
15632
|
+
'[vuex] already installed. Vue.use(Vuex) should be called only once.'
|
15633
|
+
);
|
16207
15634
|
return
|
16208
15635
|
}
|
16209
15636
|
Vue = _Vue;
|
16210
15637
|
applyMixin(Vue);
|
16211
15638
|
}
|
16212
15639
|
|
15640
|
+
// auto install in dist mode
|
15641
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
15642
|
+
install(window.Vue);
|
15643
|
+
}
|
15644
|
+
|
16213
15645
|
var mapState = normalizeNamespace(function (namespace, states) {
|
16214
15646
|
var res = {};
|
16215
15647
|
normalizeMap(states).forEach(function (ref) {
|
@@ -16243,21 +15675,15 @@
|
|
16243
15675
|
var key = ref.key;
|
16244
15676
|
var val = ref.val;
|
16245
15677
|
|
15678
|
+
val = namespace + val;
|
16246
15679
|
res[key] = function mappedMutation () {
|
16247
15680
|
var args = [], len = arguments.length;
|
16248
15681
|
while ( len-- ) args[ len ] = arguments[ len ];
|
16249
15682
|
|
16250
|
-
|
16251
|
-
|
16252
|
-
var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
|
16253
|
-
if (!module) {
|
16254
|
-
return
|
16255
|
-
}
|
16256
|
-
commit = module.context.commit;
|
15683
|
+
if (namespace && !getModuleByNamespace(this.$store, 'mapMutations', namespace)) {
|
15684
|
+
return
|
16257
15685
|
}
|
16258
|
-
return
|
16259
|
-
? val.apply(this, [commit].concat(args))
|
16260
|
-
: commit.apply(this.$store, [val].concat(args))
|
15686
|
+
return this.$store.commit.apply(this.$store, [val].concat(args))
|
16261
15687
|
};
|
16262
15688
|
});
|
16263
15689
|
return res
|
@@ -16274,7 +15700,7 @@
|
|
16274
15700
|
if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
|
16275
15701
|
return
|
16276
15702
|
}
|
16277
|
-
if (
|
15703
|
+
if (!(val in this.$store.getters)) {
|
16278
15704
|
console.error(("[vuex] unknown getter: " + val));
|
16279
15705
|
return
|
16280
15706
|
}
|
@@ -16292,33 +15718,20 @@
|
|
16292
15718
|
var key = ref.key;
|
16293
15719
|
var val = ref.val;
|
16294
15720
|
|
15721
|
+
val = namespace + val;
|
16295
15722
|
res[key] = function mappedAction () {
|
16296
15723
|
var args = [], len = arguments.length;
|
16297
15724
|
while ( len-- ) args[ len ] = arguments[ len ];
|
16298
15725
|
|
16299
|
-
|
16300
|
-
|
16301
|
-
var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
|
16302
|
-
if (!module) {
|
16303
|
-
return
|
16304
|
-
}
|
16305
|
-
dispatch = module.context.dispatch;
|
15726
|
+
if (namespace && !getModuleByNamespace(this.$store, 'mapActions', namespace)) {
|
15727
|
+
return
|
16306
15728
|
}
|
16307
|
-
return
|
16308
|
-
? val.apply(this, [dispatch].concat(args))
|
16309
|
-
: dispatch.apply(this.$store, [val].concat(args))
|
15729
|
+
return this.$store.dispatch.apply(this.$store, [val].concat(args))
|
16310
15730
|
};
|
16311
15731
|
});
|
16312
15732
|
return res
|
16313
15733
|
});
|
16314
15734
|
|
16315
|
-
var createNamespacedHelpers = function (namespace) { return ({
|
16316
|
-
mapState: mapState.bind(null, namespace),
|
16317
|
-
mapGetters: mapGetters.bind(null, namespace),
|
16318
|
-
mapMutations: mapMutations.bind(null, namespace),
|
16319
|
-
mapActions: mapActions.bind(null, namespace)
|
16320
|
-
}); };
|
16321
|
-
|
16322
15735
|
function normalizeMap (map) {
|
16323
15736
|
return Array.isArray(map)
|
16324
15737
|
? map.map(function (key) { return ({ key: key, val: key }); })
|
@@ -16339,7 +15752,7 @@
|
|
16339
15752
|
|
16340
15753
|
function getModuleByNamespace (store, helper, namespace) {
|
16341
15754
|
var module = store._modulesNamespaceMap[namespace];
|
16342
|
-
if (
|
15755
|
+
if (!module) {
|
16343
15756
|
console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
|
16344
15757
|
}
|
16345
15758
|
return module
|
@@ -16348,17 +15761,17 @@
|
|
16348
15761
|
var index = {
|
16349
15762
|
Store: Store,
|
16350
15763
|
install: install,
|
16351
|
-
version: '2.
|
15764
|
+
version: '2.3.0',
|
16352
15765
|
mapState: mapState,
|
16353
15766
|
mapMutations: mapMutations,
|
16354
15767
|
mapGetters: mapGetters,
|
16355
|
-
mapActions: mapActions
|
16356
|
-
createNamespacedHelpers: createNamespacedHelpers
|
15768
|
+
mapActions: mapActions
|
16357
15769
|
};
|
16358
15770
|
|
16359
|
-
|
15771
|
+
return index;
|
15772
|
+
|
15773
|
+
})));
|
16360
15774
|
|
16361
|
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
|
16362
15775
|
|
16363
15776
|
/***/ }),
|
16364
15777
|
/* 45 */
|
@@ -16407,7 +15820,7 @@
|
|
16407
15820
|
/* moduleIdentifier (server only) */
|
16408
15821
|
null
|
16409
15822
|
)
|
16410
|
-
Component.options.__file = "/
|
15823
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/imageTagSelector.vue"
|
16411
15824
|
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.")}
|
16412
15825
|
if (Component.options.functional) {console.error("[vue-loader] imageTagSelector.vue: functional components are not supported with templates, they should use render functions.")}
|
16413
15826
|
|
@@ -16636,7 +16049,7 @@
|
|
16636
16049
|
/* moduleIdentifier (server only) */
|
16637
16050
|
null
|
16638
16051
|
)
|
16639
|
-
Component.options.__file = "/
|
16052
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/searchAutocomplete.vue"
|
16640
16053
|
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.")}
|
16641
16054
|
if (Component.options.functional) {console.error("[vue-loader] searchAutocomplete.vue: functional components are not supported with templates, they should use render functions.")}
|
16642
16055
|
|
@@ -16694,7 +16107,7 @@
|
|
16694
16107
|
|
16695
16108
|
|
16696
16109
|
// module
|
16697
|
-
exports.push([module.id, "\n.search-autocomplete__selected-tag {\n display: inline-flex;\n margin: 3px;\n position: relative;\n cursor: pointer;\n}\n.search-autocomplete__selected-tag:first-of-type {\n margin-left: 0;\n}\n.search-autocomplete__input {\n position: relative;\n}\n.search-autocomplete {\n width: 100%;\n position: relative;\n}\n.search-autocomplete__tags-list {\n position: absolute;\n top: 100%;\n width: 100%;\n z-index: 100;\n background-color: white;\n box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);\n}\n.search-autocomplete__tag {\n display: block;\n padding: 5px;\n transition: all 200ms linear;\n cursor: pointer;\n}\n.search-autocomplete__tag:hover {\n background-color: #ededed;\n}\n.search-autocomplete__tag.active {\n background-color: #5c90d2;\n color: white;\n}\n", ""]);
|
16110
|
+
exports.push([module.id, "\n.search-autocomplete__selected-tag {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n margin: 3px;\n position: relative;\n cursor: pointer;\n}\n.search-autocomplete__selected-tag:first-of-type {\n margin-left: 0;\n}\n.search-autocomplete__input {\n position: relative;\n}\n.search-autocomplete {\n width: 100%;\n position: relative;\n}\n.search-autocomplete__tags-list {\n position: absolute;\n top: 100%;\n width: 100%;\n z-index: 100;\n background-color: white;\n box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);\n}\n.search-autocomplete__tag {\n display: block;\n padding: 5px;\n transition: all 200ms linear;\n cursor: pointer;\n}\n.search-autocomplete__tag:hover {\n background-color: #ededed;\n}\n.search-autocomplete__tag.active {\n background-color: #5c90d2;\n color: white;\n}\n", ""]);
|
16698
16111
|
|
16699
16112
|
// exports
|
16700
16113
|
|
@@ -17239,7 +16652,7 @@
|
|
17239
16652
|
/* moduleIdentifier (server only) */
|
17240
16653
|
null
|
17241
16654
|
)
|
17242
|
-
Component.options.__file = "/
|
16655
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/listingFilter.vue"
|
17243
16656
|
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.")}
|
17244
16657
|
if (Component.options.functional) {console.error("[vue-loader] listingFilter.vue: functional components are not supported with templates, they should use render functions.")}
|
17245
16658
|
|
@@ -33466,7 +32879,7 @@
|
|
33466
32879
|
/* moduleIdentifier (server only) */
|
33467
32880
|
null
|
33468
32881
|
)
|
33469
|
-
Component.options.__file = "/
|
32882
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/imageShow.vue"
|
33470
32883
|
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.")}
|
33471
32884
|
if (Component.options.functional) {console.error("[vue-loader] imageShow.vue: functional components are not supported with templates, they should use render functions.")}
|
33472
32885
|
|
@@ -33681,7 +33094,7 @@
|
|
33681
33094
|
/* moduleIdentifier (server only) */
|
33682
33095
|
null
|
33683
33096
|
)
|
33684
|
-
Component.options.__file = "/
|
33097
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/imageUpload.vue"
|
33685
33098
|
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.")}
|
33686
33099
|
if (Component.options.functional) {console.error("[vue-loader] imageUpload.vue: functional components are not supported with templates, they should use render functions.")}
|
33687
33100
|
|
@@ -33739,7 +33152,7 @@
|
|
33739
33152
|
|
33740
33153
|
|
33741
33154
|
// module
|
33742
|
-
exports.push([module.id, "\n.image-upload {\n position: relative;\n}\n.image-upload__img {\n width: 100%;\n}\n.image-upload__file-input {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n opacity: 0;\n cursor: pointer;\n}\n.image-upload__content {\n position: relative;\n border: 6px dashed #fcfcfc;\n transition: all 200ms linear;\n}\n.has-error .image-upload__content {\n border-color: #d26a5c;\n}\n.image-upload__content:hover {\n border-color: #c9c9c9;\n}\n.image-upload__placeholder {\n width: 100%;\n padding: 30px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n cursor: pointer;\n opacity: 0.8;\n}\n.image-upload__placeholder i {\n font-size: 70px;\n}\n", ""]);
|
33155
|
+
exports.push([module.id, "\n.image-upload {\n position: relative;\n}\n.image-upload__img {\n width: 100%;\n}\n.image-upload__file-input {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n opacity: 0;\n cursor: pointer;\n}\n.image-upload__content {\n position: relative;\n border: 6px dashed #fcfcfc;\n transition: all 200ms linear;\n}\n.has-error .image-upload__content {\n border-color: #d26a5c;\n}\n.image-upload__content:hover {\n border-color: #c9c9c9;\n}\n.image-upload__placeholder {\n width: 100%;\n padding: 30px 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n cursor: pointer;\n opacity: 0.8;\n}\n.image-upload__placeholder i {\n font-size: 70px;\n}\n", ""]);
|
33743
33156
|
|
33744
33157
|
// exports
|
33745
33158
|
|
@@ -34252,7 +33665,7 @@
|
|
34252
33665
|
// Generating new dynamic image size before sending it back to CKEDITOR
|
34253
33666
|
_axios2.default.get('/images/' + state.currentImgId + '?width=' + data[0] + '&height=' + data[1]).then(function (response) {
|
34254
33667
|
dispatch('overlayStore/showProgressOverlay', false, { root: true });
|
34255
|
-
window.opener.CKEDITOR.tools.callFunction(rootState.ckEditorStore.ckId, response.data.src_for_wysiwyg, state.currentImgId, state.currentImgTitle.replace(/"/g, '"'));
|
33668
|
+
window.opener.CKEDITOR.tools.callFunction(rootState.ckEditorStore.ckId, response.data.image.src_for_wysiwyg, state.currentImgId, state.currentImgTitle.replace(/"/g, '"'));
|
34256
33669
|
window.close();
|
34257
33670
|
});
|
34258
33671
|
},
|
@@ -34688,7 +34101,7 @@
|
|
34688
34101
|
/* moduleIdentifier (server only) */
|
34689
34102
|
null
|
34690
34103
|
)
|
34691
|
-
Component.options.__file = "/
|
34104
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/imageInsertOverlay.vue"
|
34692
34105
|
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.")}
|
34693
34106
|
if (Component.options.functional) {console.error("[vue-loader] imageInsertOverlay.vue: functional components are not supported with templates, they should use render functions.")}
|
34694
34107
|
|
@@ -34746,7 +34159,7 @@
|
|
34746
34159
|
|
34747
34160
|
|
34748
34161
|
// module
|
34749
|
-
exports.push([module.id, "\n.image-insert-overlay {\n box-shadow: 0 0 200px rgba(0, 0, 0, 0.5);\n position:
|
34162
|
+
exports.push([module.id, "\n.image-insert-overlay {\n box-shadow: 0 0 200px rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%,-50%);\n transform: translate(-50%,-50%);\n width: 100%;\n max-width: 475px;\n z-index: 20;\n max-height: 100vh;\n overflow-y: auto\n}\n.fade-enter-active, .fade-leave-active {\n transition: opacity .5s\n}\n.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {\n opacity: 0\n}\n.image-insert-overlay__close {\n position: absolute;\n top: 0;\n right: 0;\n background-color: transparent;\n border: none;\n}\n", ""]);
|
34750
34163
|
|
34751
34164
|
// exports
|
34752
34165
|
|
@@ -34881,6 +34294,9 @@
|
|
34881
34294
|
"input": function($event) {
|
34882
34295
|
if ($event.target.composing) { return; }
|
34883
34296
|
_vm.imgWidth = $event.target.value
|
34297
|
+
},
|
34298
|
+
"blur": function($event) {
|
34299
|
+
_vm.$forceUpdate()
|
34884
34300
|
}
|
34885
34301
|
}
|
34886
34302
|
}), _vm._v(" "), _c('label', {
|
@@ -34912,6 +34328,9 @@
|
|
34912
34328
|
"input": function($event) {
|
34913
34329
|
if ($event.target.composing) { return; }
|
34914
34330
|
_vm.imgHeight = $event.target.value
|
34331
|
+
},
|
34332
|
+
"blur": function($event) {
|
34333
|
+
_vm.$forceUpdate()
|
34915
34334
|
}
|
34916
34335
|
}
|
34917
34336
|
}), _vm._v(" "), _c('label', {
|
@@ -34973,7 +34392,7 @@
|
|
34973
34392
|
/* moduleIdentifier (server only) */
|
34974
34393
|
null
|
34975
34394
|
)
|
34976
|
-
Component.options.__file = "/
|
34395
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/progressOverlay.vue"
|
34977
34396
|
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.")}
|
34978
34397
|
if (Component.options.functional) {console.error("[vue-loader] progressOverlay.vue: functional components are not supported with templates, they should use render functions.")}
|
34979
34398
|
|
@@ -35117,7 +34536,7 @@
|
|
35117
34536
|
/* moduleIdentifier (server only) */
|
35118
34537
|
null
|
35119
34538
|
)
|
35120
|
-
Component.options.__file = "/
|
34539
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/notificationOverlay.vue"
|
35121
34540
|
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.")}
|
35122
34541
|
if (Component.options.functional) {console.error("[vue-loader] notificationOverlay.vue: functional components are not supported with templates, they should use render functions.")}
|
35123
34542
|
|
@@ -35257,7 +34676,7 @@
|
|
35257
34676
|
/* moduleIdentifier (server only) */
|
35258
34677
|
null
|
35259
34678
|
)
|
35260
|
-
Component.options.__file = "/
|
34679
|
+
Component.options.__file = "/Users/lpdumas/vm/www/rails_admin_image_manager/app/assets/javascripts/rails_admin_image_manager/components/confirmationOverlay.vue"
|
35261
34680
|
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.")}
|
35262
34681
|
if (Component.options.functional) {console.error("[vue-loader] confirmationOverlay.vue: functional components are not supported with templates, they should use render functions.")}
|
35263
34682
|
|
@@ -35315,7 +34734,7 @@
|
|
35315
34734
|
|
35316
34735
|
|
35317
34736
|
// module
|
35318
|
-
exports.push([module.id, "\n.confirmation-overlay::after {\n position: fixed;\n content: \"\";\n display: block;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(255, 255, 255, 0.5);\n z-index: 10;\n}\n.confirmation-overlay__box {\n box-shadow: 0 0 200px rgba(0, 0, 0, 0.5);\n position: fixed;\n background-color: white;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n max-width: 640px;\n z-index: 20;\n}\n", ""]);
|
34737
|
+
exports.push([module.id, "\n.confirmation-overlay::after {\n position: fixed;\n content: \"\";\n display: block;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(255, 255, 255, 0.5);\n z-index: 10;\n}\n.confirmation-overlay__box {\n box-shadow: 0 0 200px rgba(0, 0, 0, 0.5);\n position: fixed;\n background-color: white;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n width: 100%;\n max-width: 640px;\n z-index: 20;\n}\n", ""]);
|
35319
34738
|
|
35320
34739
|
// exports
|
35321
34740
|
|