nativescript-vue 2.8.4 → 2.9.1
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.
- package/README.md +7 -0
- package/dist/index.js +381 -398
- package/package.json +26 -32
- package/CHANGELOG.md +0 -872
- package/dist/hooks/before-checkForChanges.js +0 -19
- package/dist/hooks/before-watch.js +0 -18
- package/dist/hooks/helpers.js +0 -14
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/*!
|
|
3
|
-
* NativeScript-Vue v2.
|
|
4
|
-
* (Using Vue v2.6.
|
|
5
|
-
* (c) 2017-
|
|
3
|
+
* NativeScript-Vue v2.9.1
|
|
4
|
+
* (Using Vue v2.6.14)
|
|
5
|
+
* (c) 2017-2022 rigor789
|
|
6
6
|
* Released under the MIT license.
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -40,7 +40,7 @@ function isFalse (v) {
|
|
|
40
40
|
/**
|
|
41
41
|
* Check if value is primitive.
|
|
42
42
|
*/
|
|
43
|
-
function isPrimitive (value) {
|
|
43
|
+
function isPrimitive$2 (value) {
|
|
44
44
|
return (
|
|
45
45
|
typeof value === 'string' ||
|
|
46
46
|
typeof value === 'number' ||
|
|
@@ -55,7 +55,7 @@ function isPrimitive (value) {
|
|
|
55
55
|
* Objects from primitive values when we know the value
|
|
56
56
|
* is a JSON-compliant type.
|
|
57
57
|
*/
|
|
58
|
-
function isObject$
|
|
58
|
+
function isObject$2 (obj) {
|
|
59
59
|
return obj !== null && typeof obj === 'object'
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -72,7 +72,7 @@ function toRawType (value) {
|
|
|
72
72
|
* Strict object type check. Only returns true
|
|
73
73
|
* for plain JavaScript objects.
|
|
74
74
|
*/
|
|
75
|
-
function isPlainObject$
|
|
75
|
+
function isPlainObject$2 (obj) {
|
|
76
76
|
return _toString.call(obj) === '[object Object]'
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -102,7 +102,7 @@ function isPromise (val) {
|
|
|
102
102
|
function toString (val) {
|
|
103
103
|
return val == null
|
|
104
104
|
? ''
|
|
105
|
-
: Array.isArray(val) || (isPlainObject$
|
|
105
|
+
: Array.isArray(val) || (isPlainObject$2(val) && val.toString === _toString)
|
|
106
106
|
? JSON.stringify(val, null, 2)
|
|
107
107
|
: String(val)
|
|
108
108
|
}
|
|
@@ -301,8 +301,8 @@ function genStaticKeys$1 (modules) {
|
|
|
301
301
|
*/
|
|
302
302
|
function looseEqual (a, b) {
|
|
303
303
|
if (a === b) { return true }
|
|
304
|
-
var isObjectA = isObject$
|
|
305
|
-
var isObjectB = isObject$
|
|
304
|
+
var isObjectA = isObject$2(a);
|
|
305
|
+
var isObjectB = isObject$2(b);
|
|
306
306
|
if (isObjectA && isObjectB) {
|
|
307
307
|
try {
|
|
308
308
|
var isArrayA = Array.isArray(a);
|
|
@@ -802,6 +802,8 @@ prototypeAccessors$2.child.get = function () {
|
|
|
802
802
|
|
|
803
803
|
Object.defineProperties( VNode.prototype, prototypeAccessors$2 );
|
|
804
804
|
|
|
805
|
+
var VNode$1 = VNode;
|
|
806
|
+
|
|
805
807
|
var createEmptyVNode = function (text) {
|
|
806
808
|
if ( text === void 0 ) text = '';
|
|
807
809
|
|
|
@@ -980,7 +982,7 @@ function copyAugment (target, src, keys) {
|
|
|
980
982
|
* or the existing observer if the value already has one.
|
|
981
983
|
*/
|
|
982
984
|
function observe (value, asRootData) {
|
|
983
|
-
if (!isObject$
|
|
985
|
+
if (!isObject$2(value) || value instanceof VNode$1) {
|
|
984
986
|
return
|
|
985
987
|
}
|
|
986
988
|
var ob;
|
|
@@ -989,7 +991,7 @@ function observe (value, asRootData) {
|
|
|
989
991
|
} else if (
|
|
990
992
|
shouldObserve &&
|
|
991
993
|
!isServerRendering() &&
|
|
992
|
-
(Array.isArray(value) || isPlainObject$
|
|
994
|
+
(Array.isArray(value) || isPlainObject$2(value)) &&
|
|
993
995
|
Object.isExtensible(value) &&
|
|
994
996
|
!value._isVue
|
|
995
997
|
) {
|
|
@@ -1070,9 +1072,9 @@ function defineReactive (
|
|
|
1070
1072
|
* triggers change notification if the property doesn't
|
|
1071
1073
|
* already exist.
|
|
1072
1074
|
*/
|
|
1073
|
-
function set
|
|
1075
|
+
function set (target, key, val) {
|
|
1074
1076
|
if (process.env.NODE_ENV !== 'production' &&
|
|
1075
|
-
(isUndef(target) || isPrimitive(target))
|
|
1077
|
+
(isUndef(target) || isPrimitive$2(target))
|
|
1076
1078
|
) {
|
|
1077
1079
|
warn$1(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
|
|
1078
1080
|
}
|
|
@@ -1107,7 +1109,7 @@ function set$1 (target, key, val) {
|
|
|
1107
1109
|
*/
|
|
1108
1110
|
function del (target, key) {
|
|
1109
1111
|
if (process.env.NODE_ENV !== 'production' &&
|
|
1110
|
-
(isUndef(target) || isPrimitive(target))
|
|
1112
|
+
(isUndef(target) || isPrimitive$2(target))
|
|
1111
1113
|
) {
|
|
1112
1114
|
warn$1(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
|
|
1113
1115
|
}
|
|
@@ -1189,11 +1191,11 @@ function mergeData (to, from) {
|
|
|
1189
1191
|
toVal = to[key];
|
|
1190
1192
|
fromVal = from[key];
|
|
1191
1193
|
if (!hasOwn(to, key)) {
|
|
1192
|
-
set
|
|
1194
|
+
set(to, key, fromVal);
|
|
1193
1195
|
} else if (
|
|
1194
1196
|
toVal !== fromVal &&
|
|
1195
|
-
isPlainObject$
|
|
1196
|
-
isPlainObject$
|
|
1197
|
+
isPlainObject$2(toVal) &&
|
|
1198
|
+
isPlainObject$2(fromVal)
|
|
1197
1199
|
) {
|
|
1198
1200
|
mergeData(toVal, fromVal);
|
|
1199
1201
|
}
|
|
@@ -1439,11 +1441,11 @@ function normalizeProps (options, vm) {
|
|
|
1439
1441
|
warn$1('props must be strings when using array syntax.');
|
|
1440
1442
|
}
|
|
1441
1443
|
}
|
|
1442
|
-
} else if (isPlainObject$
|
|
1444
|
+
} else if (isPlainObject$2(props)) {
|
|
1443
1445
|
for (var key in props) {
|
|
1444
1446
|
val = props[key];
|
|
1445
1447
|
name = camelize(key);
|
|
1446
|
-
res[name] = isPlainObject$
|
|
1448
|
+
res[name] = isPlainObject$2(val)
|
|
1447
1449
|
? val
|
|
1448
1450
|
: { type: val };
|
|
1449
1451
|
}
|
|
@@ -1468,10 +1470,10 @@ function normalizeInject (options, vm) {
|
|
|
1468
1470
|
for (var i = 0; i < inject.length; i++) {
|
|
1469
1471
|
normalized[inject[i]] = { from: inject[i] };
|
|
1470
1472
|
}
|
|
1471
|
-
} else if (isPlainObject$
|
|
1473
|
+
} else if (isPlainObject$2(inject)) {
|
|
1472
1474
|
for (var key in inject) {
|
|
1473
1475
|
var val = inject[key];
|
|
1474
|
-
normalized[key] = isPlainObject$
|
|
1476
|
+
normalized[key] = isPlainObject$2(val)
|
|
1475
1477
|
? extend({ from: key }, val)
|
|
1476
1478
|
: { from: val };
|
|
1477
1479
|
}
|
|
@@ -1500,7 +1502,7 @@ function normalizeDirectives$1 (options) {
|
|
|
1500
1502
|
}
|
|
1501
1503
|
|
|
1502
1504
|
function assertObjectType (name, value, vm) {
|
|
1503
|
-
if (!isPlainObject$
|
|
1505
|
+
if (!isPlainObject$2(value)) {
|
|
1504
1506
|
warn$1(
|
|
1505
1507
|
"Invalid value for option \"" + name + "\": expected an Object, " +
|
|
1506
1508
|
"but got " + (toRawType(value)) + ".",
|
|
@@ -1652,7 +1654,7 @@ function getPropDefaultValue (vm, prop, key) {
|
|
|
1652
1654
|
}
|
|
1653
1655
|
var def = prop.default;
|
|
1654
1656
|
// warn against non-factory defaults for Object & Array
|
|
1655
|
-
if (process.env.NODE_ENV !== 'production' && isObject$
|
|
1657
|
+
if (process.env.NODE_ENV !== 'production' && isObject$2(def)) {
|
|
1656
1658
|
warn$1(
|
|
1657
1659
|
'Invalid default value for prop "' + key + '": ' +
|
|
1658
1660
|
'Props with type Object/Array must use a factory function ' +
|
|
@@ -1703,13 +1705,14 @@ function assertProp (
|
|
|
1703
1705
|
type = [type];
|
|
1704
1706
|
}
|
|
1705
1707
|
for (var i = 0; i < type.length && !valid; i++) {
|
|
1706
|
-
var assertedType = assertType(value, type[i]);
|
|
1708
|
+
var assertedType = assertType(value, type[i], vm);
|
|
1707
1709
|
expectedTypes.push(assertedType.expectedType || '');
|
|
1708
1710
|
valid = assertedType.valid;
|
|
1709
1711
|
}
|
|
1710
1712
|
}
|
|
1711
1713
|
|
|
1712
|
-
|
|
1714
|
+
var haveExpectedTypes = expectedTypes.some(function (t) { return t; });
|
|
1715
|
+
if (!valid && haveExpectedTypes) {
|
|
1713
1716
|
warn$1(
|
|
1714
1717
|
getInvalidTypeMessage(name, value, expectedTypes),
|
|
1715
1718
|
vm
|
|
@@ -1727,9 +1730,9 @@ function assertProp (
|
|
|
1727
1730
|
}
|
|
1728
1731
|
}
|
|
1729
1732
|
|
|
1730
|
-
var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
|
|
1733
|
+
var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol|BigInt)$/;
|
|
1731
1734
|
|
|
1732
|
-
function assertType (value, type) {
|
|
1735
|
+
function assertType (value, type, vm) {
|
|
1733
1736
|
var valid;
|
|
1734
1737
|
var expectedType = getType(type);
|
|
1735
1738
|
if (simpleCheckRE.test(expectedType)) {
|
|
@@ -1740,11 +1743,16 @@ function assertType (value, type) {
|
|
|
1740
1743
|
valid = value instanceof type;
|
|
1741
1744
|
}
|
|
1742
1745
|
} else if (expectedType === 'Object') {
|
|
1743
|
-
valid = isPlainObject$
|
|
1746
|
+
valid = isPlainObject$2(value);
|
|
1744
1747
|
} else if (expectedType === 'Array') {
|
|
1745
1748
|
valid = Array.isArray(value);
|
|
1746
1749
|
} else {
|
|
1747
|
-
|
|
1750
|
+
try {
|
|
1751
|
+
valid = value instanceof type;
|
|
1752
|
+
} catch (e) {
|
|
1753
|
+
warn$1('Invalid prop type: "' + String(type) + '" is not a constructor', vm);
|
|
1754
|
+
valid = false;
|
|
1755
|
+
}
|
|
1748
1756
|
}
|
|
1749
1757
|
return {
|
|
1750
1758
|
valid: valid,
|
|
@@ -1752,13 +1760,15 @@ function assertType (value, type) {
|
|
|
1752
1760
|
}
|
|
1753
1761
|
}
|
|
1754
1762
|
|
|
1763
|
+
var functionTypeCheckRE = /^\s*function (\w+)/;
|
|
1764
|
+
|
|
1755
1765
|
/**
|
|
1756
1766
|
* Use function string name to check built-in types,
|
|
1757
1767
|
* because a simple equality check will fail when running
|
|
1758
1768
|
* across different vms / iframes.
|
|
1759
1769
|
*/
|
|
1760
1770
|
function getType (fn) {
|
|
1761
|
-
var match = fn && fn.toString().match(
|
|
1771
|
+
var match = fn && fn.toString().match(functionTypeCheckRE);
|
|
1762
1772
|
return match ? match[1] : ''
|
|
1763
1773
|
}
|
|
1764
1774
|
|
|
@@ -1783,18 +1793,19 @@ function getInvalidTypeMessage (name, value, expectedTypes) {
|
|
|
1783
1793
|
" Expected " + (expectedTypes.map(capitalize).join(', '));
|
|
1784
1794
|
var expectedType = expectedTypes[0];
|
|
1785
1795
|
var receivedType = toRawType(value);
|
|
1786
|
-
var expectedValue = styleValue(value, expectedType);
|
|
1787
|
-
var receivedValue = styleValue(value, receivedType);
|
|
1788
1796
|
// check if we need to specify expected value
|
|
1789
|
-
if (
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1797
|
+
if (
|
|
1798
|
+
expectedTypes.length === 1 &&
|
|
1799
|
+
isExplicable(expectedType) &&
|
|
1800
|
+
isExplicable(typeof value) &&
|
|
1801
|
+
!isBoolean(expectedType, receivedType)
|
|
1802
|
+
) {
|
|
1803
|
+
message += " with value " + (styleValue(value, expectedType));
|
|
1793
1804
|
}
|
|
1794
1805
|
message += ", got " + receivedType + " ";
|
|
1795
1806
|
// check if we need to specify received value
|
|
1796
1807
|
if (isExplicable(receivedType)) {
|
|
1797
|
-
message += "with value " +
|
|
1808
|
+
message += "with value " + (styleValue(value, receivedType)) + ".";
|
|
1798
1809
|
}
|
|
1799
1810
|
return message
|
|
1800
1811
|
}
|
|
@@ -1809,9 +1820,9 @@ function styleValue (value, type) {
|
|
|
1809
1820
|
}
|
|
1810
1821
|
}
|
|
1811
1822
|
|
|
1823
|
+
var EXPLICABLE_TYPES = ['string', 'number', 'boolean'];
|
|
1812
1824
|
function isExplicable (value) {
|
|
1813
|
-
|
|
1814
|
-
return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
|
|
1825
|
+
return EXPLICABLE_TYPES.some(function (elem) { return value.toLowerCase() === elem; })
|
|
1815
1826
|
}
|
|
1816
1827
|
|
|
1817
1828
|
function isBoolean () {
|
|
@@ -2062,7 +2073,7 @@ function traverse (val) {
|
|
|
2062
2073
|
function _traverse (val, seen) {
|
|
2063
2074
|
var i, keys;
|
|
2064
2075
|
var isA = Array.isArray(val);
|
|
2065
|
-
if ((!isA && !isObject$
|
|
2076
|
+
if ((!isA && !isObject$2(val)) || Object.isFrozen(val) || val instanceof VNode$1) {
|
|
2066
2077
|
return
|
|
2067
2078
|
}
|
|
2068
2079
|
if (val.__ob__) {
|
|
@@ -2407,18 +2418,15 @@ Watcher.prototype.run = function run () {
|
|
|
2407
2418
|
// Deep watchers and watchers on Object/Arrays should fire even
|
|
2408
2419
|
// when the value is the same, because the value may
|
|
2409
2420
|
// have mutated.
|
|
2410
|
-
isObject$
|
|
2421
|
+
isObject$2(value) ||
|
|
2411
2422
|
this.deep
|
|
2412
2423
|
) {
|
|
2413
2424
|
// set new value
|
|
2414
2425
|
var oldValue = this.value;
|
|
2415
2426
|
this.value = value;
|
|
2416
2427
|
if (this.user) {
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
} catch (e) {
|
|
2420
|
-
handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
|
|
2421
|
-
}
|
|
2428
|
+
var info = "callback for watcher \"" + (this.expression) + "\"";
|
|
2429
|
+
invokeWithErrorHandling(this.cb, this.vm, [value, oldValue], this.vm, info);
|
|
2422
2430
|
} else {
|
|
2423
2431
|
this.cb.call(this.vm, value, oldValue);
|
|
2424
2432
|
}
|
|
@@ -2464,6 +2472,8 @@ Watcher.prototype.teardown = function teardown () {
|
|
|
2464
2472
|
}
|
|
2465
2473
|
};
|
|
2466
2474
|
|
|
2475
|
+
var Watcher$1 = Watcher;
|
|
2476
|
+
|
|
2467
2477
|
var mark;
|
|
2468
2478
|
var measure;
|
|
2469
2479
|
|
|
@@ -2565,7 +2575,7 @@ function updateListeners (
|
|
|
2565
2575
|
/* */
|
|
2566
2576
|
|
|
2567
2577
|
function mergeVNodeHook (def, hookKey, hook) {
|
|
2568
|
-
if (def instanceof VNode) {
|
|
2578
|
+
if (def instanceof VNode$1) {
|
|
2569
2579
|
def = def.data.hook || (def.data.hook = {});
|
|
2570
2580
|
}
|
|
2571
2581
|
var invoker;
|
|
@@ -2693,7 +2703,7 @@ function simpleNormalizeChildren (children) {
|
|
|
2693
2703
|
// with hand-written render functions / JSX. In such cases a full normalization
|
|
2694
2704
|
// is needed to cater to all possible types of children values.
|
|
2695
2705
|
function normalizeChildren (children) {
|
|
2696
|
-
return isPrimitive(children)
|
|
2706
|
+
return isPrimitive$2(children)
|
|
2697
2707
|
? [createTextVNode(children)]
|
|
2698
2708
|
: Array.isArray(children)
|
|
2699
2709
|
? normalizeArrayChildren(children)
|
|
@@ -2723,7 +2733,7 @@ function normalizeArrayChildren (children, nestedIndex) {
|
|
|
2723
2733
|
}
|
|
2724
2734
|
res.push.apply(res, c);
|
|
2725
2735
|
}
|
|
2726
|
-
} else if (isPrimitive(c)) {
|
|
2736
|
+
} else if (isPrimitive$2(c)) {
|
|
2727
2737
|
if (isTextNode(last)) {
|
|
2728
2738
|
// merge adjacent text nodes
|
|
2729
2739
|
// this is necessary for SSR hydration because text nodes are
|
|
@@ -2760,7 +2770,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
2760
2770
|
var allowedGlobals = makeMap(
|
|
2761
2771
|
'Infinity,undefined,NaN,isFinite,isNaN,' +
|
|
2762
2772
|
'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
|
|
2763
|
-
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
|
|
2773
|
+
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,' +
|
|
2764
2774
|
'require' // for Webpack/Browserify
|
|
2765
2775
|
);
|
|
2766
2776
|
|
|
@@ -2930,7 +2940,7 @@ function initData (vm) {
|
|
|
2930
2940
|
data = vm._data = typeof data === 'function'
|
|
2931
2941
|
? getData(data, vm)
|
|
2932
2942
|
: data || {};
|
|
2933
|
-
if (!isPlainObject$
|
|
2943
|
+
if (!isPlainObject$2(data)) {
|
|
2934
2944
|
data = {};
|
|
2935
2945
|
process.env.NODE_ENV !== 'production' && warn$1(
|
|
2936
2946
|
'data functions should return an object:\n' +
|
|
@@ -2998,7 +3008,7 @@ function initComputed$1 (vm, computed) {
|
|
|
2998
3008
|
|
|
2999
3009
|
{
|
|
3000
3010
|
// create internal watcher for the computed property.
|
|
3001
|
-
watchers[key] = new Watcher(
|
|
3011
|
+
watchers[key] = new Watcher$1(
|
|
3002
3012
|
vm,
|
|
3003
3013
|
getter || noop,
|
|
3004
3014
|
noop,
|
|
@@ -3016,6 +3026,8 @@ function initComputed$1 (vm, computed) {
|
|
|
3016
3026
|
warn$1(("The computed property \"" + key + "\" is already defined in data."), vm);
|
|
3017
3027
|
} else if (vm.$options.props && key in vm.$options.props) {
|
|
3018
3028
|
warn$1(("The computed property \"" + key + "\" is already defined as a prop."), vm);
|
|
3029
|
+
} else if (vm.$options.methods && key in vm.$options.methods) {
|
|
3030
|
+
warn$1(("The computed property \"" + key + "\" is already defined as a method."), vm);
|
|
3019
3031
|
}
|
|
3020
3032
|
}
|
|
3021
3033
|
}
|
|
@@ -3118,7 +3130,7 @@ function createWatcher (
|
|
|
3118
3130
|
handler,
|
|
3119
3131
|
options
|
|
3120
3132
|
) {
|
|
3121
|
-
if (isPlainObject$
|
|
3133
|
+
if (isPlainObject$2(handler)) {
|
|
3122
3134
|
options = handler;
|
|
3123
3135
|
handler = handler.handler;
|
|
3124
3136
|
}
|
|
@@ -3151,7 +3163,7 @@ function stateMixin (Vue) {
|
|
|
3151
3163
|
Object.defineProperty(Vue.prototype, '$data', dataDef);
|
|
3152
3164
|
Object.defineProperty(Vue.prototype, '$props', propsDef);
|
|
3153
3165
|
|
|
3154
|
-
Vue.prototype.$set = set
|
|
3166
|
+
Vue.prototype.$set = set;
|
|
3155
3167
|
Vue.prototype.$delete = del;
|
|
3156
3168
|
|
|
3157
3169
|
Vue.prototype.$watch = function (
|
|
@@ -3160,18 +3172,17 @@ function stateMixin (Vue) {
|
|
|
3160
3172
|
options
|
|
3161
3173
|
) {
|
|
3162
3174
|
var vm = this;
|
|
3163
|
-
if (isPlainObject$
|
|
3175
|
+
if (isPlainObject$2(cb)) {
|
|
3164
3176
|
return createWatcher(vm, expOrFn, cb, options)
|
|
3165
3177
|
}
|
|
3166
3178
|
options = options || {};
|
|
3167
3179
|
options.user = true;
|
|
3168
|
-
var watcher = new Watcher(vm, expOrFn, cb, options);
|
|
3180
|
+
var watcher = new Watcher$1(vm, expOrFn, cb, options);
|
|
3169
3181
|
if (options.immediate) {
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
}
|
|
3182
|
+
var info = "callback for immediate watcher \"" + (watcher.expression) + "\"";
|
|
3183
|
+
pushTarget();
|
|
3184
|
+
invokeWithErrorHandling(cb, vm, [watcher.value], vm, info);
|
|
3185
|
+
popTarget();
|
|
3175
3186
|
}
|
|
3176
3187
|
return function unwatchFn () {
|
|
3177
3188
|
watcher.teardown();
|
|
@@ -3421,6 +3432,12 @@ function isWhitespace (node) {
|
|
|
3421
3432
|
|
|
3422
3433
|
/* */
|
|
3423
3434
|
|
|
3435
|
+
function isAsyncPlaceholder (node) {
|
|
3436
|
+
return node.isComment && node.asyncFactory
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
/* */
|
|
3440
|
+
|
|
3424
3441
|
function normalizeScopedSlots (
|
|
3425
3442
|
slots,
|
|
3426
3443
|
normalSlots,
|
|
@@ -3477,9 +3494,10 @@ function normalizeScopedSlot(normalSlots, key, fn) {
|
|
|
3477
3494
|
res = res && typeof res === 'object' && !Array.isArray(res)
|
|
3478
3495
|
? [res] // single vnode
|
|
3479
3496
|
: normalizeChildren(res);
|
|
3497
|
+
var vnode = res && res[0];
|
|
3480
3498
|
return res && (
|
|
3481
|
-
|
|
3482
|
-
(res.length === 1 &&
|
|
3499
|
+
!vnode ||
|
|
3500
|
+
(res.length === 1 && vnode.isComment && !isAsyncPlaceholder(vnode)) // #9658, #10391
|
|
3483
3501
|
) ? undefined
|
|
3484
3502
|
: res
|
|
3485
3503
|
};
|
|
@@ -3520,7 +3538,7 @@ function renderList (
|
|
|
3520
3538
|
for (i = 0; i < val; i++) {
|
|
3521
3539
|
ret[i] = render(i + 1, i);
|
|
3522
3540
|
}
|
|
3523
|
-
} else if (isObject$
|
|
3541
|
+
} else if (isObject$2(val)) {
|
|
3524
3542
|
if (hasSymbol && val[Symbol.iterator]) {
|
|
3525
3543
|
ret = [];
|
|
3526
3544
|
var iterator = val[Symbol.iterator]();
|
|
@@ -3552,26 +3570,28 @@ function renderList (
|
|
|
3552
3570
|
*/
|
|
3553
3571
|
function renderSlot (
|
|
3554
3572
|
name,
|
|
3555
|
-
|
|
3573
|
+
fallbackRender,
|
|
3556
3574
|
props,
|
|
3557
3575
|
bindObject
|
|
3558
3576
|
) {
|
|
3559
3577
|
var scopedSlotFn = this.$scopedSlots[name];
|
|
3560
3578
|
var nodes;
|
|
3561
|
-
if (scopedSlotFn) {
|
|
3579
|
+
if (scopedSlotFn) {
|
|
3580
|
+
// scoped slot
|
|
3562
3581
|
props = props || {};
|
|
3563
3582
|
if (bindObject) {
|
|
3564
|
-
if (process.env.NODE_ENV !== 'production' && !isObject$
|
|
3565
|
-
warn$1(
|
|
3566
|
-
'slot v-bind without argument expects an Object',
|
|
3567
|
-
this
|
|
3568
|
-
);
|
|
3583
|
+
if (process.env.NODE_ENV !== 'production' && !isObject$2(bindObject)) {
|
|
3584
|
+
warn$1('slot v-bind without argument expects an Object', this);
|
|
3569
3585
|
}
|
|
3570
3586
|
props = extend(extend({}, bindObject), props);
|
|
3571
3587
|
}
|
|
3572
|
-
nodes =
|
|
3588
|
+
nodes =
|
|
3589
|
+
scopedSlotFn(props) ||
|
|
3590
|
+
(typeof fallbackRender === 'function' ? fallbackRender() : fallbackRender);
|
|
3573
3591
|
} else {
|
|
3574
|
-
nodes =
|
|
3592
|
+
nodes =
|
|
3593
|
+
this.$slots[name] ||
|
|
3594
|
+
(typeof fallbackRender === 'function' ? fallbackRender() : fallbackRender);
|
|
3575
3595
|
}
|
|
3576
3596
|
|
|
3577
3597
|
var target = props && props.slot;
|
|
@@ -3621,6 +3641,7 @@ function checkKeyCodes (
|
|
|
3621
3641
|
} else if (eventKeyName) {
|
|
3622
3642
|
return hyphenate(eventKeyName) !== key
|
|
3623
3643
|
}
|
|
3644
|
+
return eventKeyCode === undefined
|
|
3624
3645
|
}
|
|
3625
3646
|
|
|
3626
3647
|
/* */
|
|
@@ -3636,7 +3657,7 @@ function bindObjectProps (
|
|
|
3636
3657
|
isSync
|
|
3637
3658
|
) {
|
|
3638
3659
|
if (value) {
|
|
3639
|
-
if (!isObject$
|
|
3660
|
+
if (!isObject$2(value)) {
|
|
3640
3661
|
process.env.NODE_ENV !== 'production' && warn$1(
|
|
3641
3662
|
'v-bind without argument expects an Object or Array value',
|
|
3642
3663
|
this
|
|
@@ -3744,7 +3765,7 @@ function markStaticNode (node, key, isOnce) {
|
|
|
3744
3765
|
|
|
3745
3766
|
function bindObjectListeners (data, value) {
|
|
3746
3767
|
if (value) {
|
|
3747
|
-
if (!isPlainObject$
|
|
3768
|
+
if (!isPlainObject$2(value)) {
|
|
3748
3769
|
process.env.NODE_ENV !== 'production' && warn$1(
|
|
3749
3770
|
'v-on without argument expects an Object value',
|
|
3750
3771
|
this
|
|
@@ -3845,7 +3866,7 @@ function FunctionalRenderContext (
|
|
|
3845
3866
|
parent,
|
|
3846
3867
|
Ctor
|
|
3847
3868
|
) {
|
|
3848
|
-
var this$1 = this;
|
|
3869
|
+
var this$1$1 = this;
|
|
3849
3870
|
|
|
3850
3871
|
var options = Ctor.options;
|
|
3851
3872
|
// ensure the createElement function in functional components
|
|
@@ -3873,13 +3894,13 @@ function FunctionalRenderContext (
|
|
|
3873
3894
|
this.listeners = data.on || emptyObject;
|
|
3874
3895
|
this.injections = resolveInject(options.inject, parent);
|
|
3875
3896
|
this.slots = function () {
|
|
3876
|
-
if (!this$1.$slots) {
|
|
3897
|
+
if (!this$1$1.$slots) {
|
|
3877
3898
|
normalizeScopedSlots(
|
|
3878
3899
|
data.scopedSlots,
|
|
3879
|
-
this$1.$slots = resolveSlots(children, parent)
|
|
3900
|
+
this$1$1.$slots = resolveSlots(children, parent)
|
|
3880
3901
|
);
|
|
3881
3902
|
}
|
|
3882
|
-
return this$1.$slots
|
|
3903
|
+
return this$1$1.$slots
|
|
3883
3904
|
};
|
|
3884
3905
|
|
|
3885
3906
|
Object.defineProperty(this, 'scopedSlots', ({
|
|
@@ -3943,7 +3964,7 @@ function createFunctionalComponent (
|
|
|
3943
3964
|
|
|
3944
3965
|
var vnode = options.render.call(null, renderContext._c, renderContext);
|
|
3945
3966
|
|
|
3946
|
-
if (vnode instanceof VNode) {
|
|
3967
|
+
if (vnode instanceof VNode$1) {
|
|
3947
3968
|
return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
|
|
3948
3969
|
} else if (Array.isArray(vnode)) {
|
|
3949
3970
|
var vnodes = normalizeChildren(vnode) || [];
|
|
@@ -4060,7 +4081,7 @@ function createComponent (
|
|
|
4060
4081
|
var baseCtor = context.$options._base;
|
|
4061
4082
|
|
|
4062
4083
|
// plain options object: turn it into a constructor
|
|
4063
|
-
if (isObject$
|
|
4084
|
+
if (isObject$2(Ctor)) {
|
|
4064
4085
|
Ctor = baseCtor.extend(Ctor);
|
|
4065
4086
|
}
|
|
4066
4087
|
|
|
@@ -4135,7 +4156,7 @@ function createComponent (
|
|
|
4135
4156
|
|
|
4136
4157
|
// return a placeholder vnode
|
|
4137
4158
|
var name = Ctor.options.name || tag;
|
|
4138
|
-
var vnode = new VNode(
|
|
4159
|
+
var vnode = new VNode$1(
|
|
4139
4160
|
("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
|
|
4140
4161
|
data, undefined, undefined, undefined, context,
|
|
4141
4162
|
{ Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
|
|
@@ -4146,8 +4167,10 @@ function createComponent (
|
|
|
4146
4167
|
}
|
|
4147
4168
|
|
|
4148
4169
|
function createComponentInstanceForVnode (
|
|
4149
|
-
|
|
4150
|
-
|
|
4170
|
+
// we know it's MountedComponentVNode but flow doesn't
|
|
4171
|
+
vnode,
|
|
4172
|
+
// activeInstance in lifecycle state
|
|
4173
|
+
parent
|
|
4151
4174
|
) {
|
|
4152
4175
|
var options = {
|
|
4153
4176
|
_isComponent: true,
|
|
@@ -4222,7 +4245,7 @@ function createElement$1 (
|
|
|
4222
4245
|
normalizationType,
|
|
4223
4246
|
alwaysNormalize
|
|
4224
4247
|
) {
|
|
4225
|
-
if (Array.isArray(data) || isPrimitive(data)) {
|
|
4248
|
+
if (Array.isArray(data) || isPrimitive$2(data)) {
|
|
4226
4249
|
normalizationType = children;
|
|
4227
4250
|
children = data;
|
|
4228
4251
|
data = undefined;
|
|
@@ -4258,7 +4281,7 @@ function _createElement (
|
|
|
4258
4281
|
}
|
|
4259
4282
|
// warn against non-primitive key
|
|
4260
4283
|
if (process.env.NODE_ENV !== 'production' &&
|
|
4261
|
-
isDef(data) && isDef(data.key) && !isPrimitive(data.key)
|
|
4284
|
+
isDef(data) && isDef(data.key) && !isPrimitive$2(data.key)
|
|
4262
4285
|
) {
|
|
4263
4286
|
{
|
|
4264
4287
|
warn$1(
|
|
@@ -4287,13 +4310,13 @@ function _createElement (
|
|
|
4287
4310
|
ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
|
|
4288
4311
|
if (config.isReservedTag(tag)) {
|
|
4289
4312
|
// platform built-in elements
|
|
4290
|
-
if (process.env.NODE_ENV !== 'production' && isDef(data) && isDef(data.nativeOn)) {
|
|
4313
|
+
if (process.env.NODE_ENV !== 'production' && isDef(data) && isDef(data.nativeOn) && data.tag !== 'component') {
|
|
4291
4314
|
warn$1(
|
|
4292
4315
|
("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
|
|
4293
4316
|
context
|
|
4294
4317
|
);
|
|
4295
4318
|
}
|
|
4296
|
-
vnode = new VNode(
|
|
4319
|
+
vnode = new VNode$1(
|
|
4297
4320
|
config.parsePlatformTagName(tag), data, children,
|
|
4298
4321
|
undefined, undefined, context
|
|
4299
4322
|
);
|
|
@@ -4304,7 +4327,7 @@ function _createElement (
|
|
|
4304
4327
|
// unknown or unlisted namespaced elements
|
|
4305
4328
|
// check at runtime because it may get assigned a namespace when its
|
|
4306
4329
|
// parent normalizes children
|
|
4307
|
-
vnode = new VNode(
|
|
4330
|
+
vnode = new VNode$1(
|
|
4308
4331
|
tag, data, children,
|
|
4309
4332
|
undefined, undefined, context
|
|
4310
4333
|
);
|
|
@@ -4346,10 +4369,10 @@ function applyNS (vnode, ns, force) {
|
|
|
4346
4369
|
// necessary to ensure parent re-render when deep bindings like :style and
|
|
4347
4370
|
// :class are used on slot nodes
|
|
4348
4371
|
function registerDeepBindings (data) {
|
|
4349
|
-
if (isObject$
|
|
4372
|
+
if (isObject$2(data.style)) {
|
|
4350
4373
|
traverse(data.style);
|
|
4351
4374
|
}
|
|
4352
|
-
if (isObject$
|
|
4375
|
+
if (isObject$2(data.class)) {
|
|
4353
4376
|
traverse(data.class);
|
|
4354
4377
|
}
|
|
4355
4378
|
}
|
|
@@ -4449,7 +4472,7 @@ function renderMixin (Vue) {
|
|
|
4449
4472
|
vnode = vnode[0];
|
|
4450
4473
|
}
|
|
4451
4474
|
// return empty vnode in case the render function errored out
|
|
4452
|
-
if (!(vnode instanceof VNode)) {
|
|
4475
|
+
if (!(vnode instanceof VNode$1)) {
|
|
4453
4476
|
if (process.env.NODE_ENV !== 'production' && Array.isArray(vnode)) {
|
|
4454
4477
|
warn$1(
|
|
4455
4478
|
'Multiple root nodes returned from render function. Render function ' +
|
|
@@ -4474,7 +4497,7 @@ function ensureCtor (comp, base) {
|
|
|
4474
4497
|
) {
|
|
4475
4498
|
comp = comp.default;
|
|
4476
4499
|
}
|
|
4477
|
-
return isObject$
|
|
4500
|
+
return isObject$2(comp)
|
|
4478
4501
|
? base.extend(comp)
|
|
4479
4502
|
: comp
|
|
4480
4503
|
}
|
|
@@ -4565,7 +4588,7 @@ function resolveAsyncComponent (
|
|
|
4565
4588
|
|
|
4566
4589
|
var res = factory(resolve, reject);
|
|
4567
4590
|
|
|
4568
|
-
if (isObject$
|
|
4591
|
+
if (isObject$2(res)) {
|
|
4569
4592
|
if (isPromise(res)) {
|
|
4570
4593
|
// () => Promise
|
|
4571
4594
|
if (isUndef(factory.resolved)) {
|
|
@@ -4618,12 +4641,6 @@ function resolveAsyncComponent (
|
|
|
4618
4641
|
|
|
4619
4642
|
/* */
|
|
4620
4643
|
|
|
4621
|
-
function isAsyncPlaceholder (node) {
|
|
4622
|
-
return node.isComment && node.asyncFactory
|
|
4623
|
-
}
|
|
4624
|
-
|
|
4625
|
-
/* */
|
|
4626
|
-
|
|
4627
4644
|
function getFirstComponentChild (children) {
|
|
4628
4645
|
if (Array.isArray(children)) {
|
|
4629
4646
|
for (var i = 0; i < children.length; i++) {
|
|
@@ -4948,7 +4965,7 @@ function mountComponent (
|
|
|
4948
4965
|
// we set this to vm._watcher inside the watcher's constructor
|
|
4949
4966
|
// since the watcher's initial patch may call $forceUpdate (e.g. inside child
|
|
4950
4967
|
// component's mounted hook), which relies on vm._watcher being already defined
|
|
4951
|
-
new Watcher(vm, updateComponent, noop, {
|
|
4968
|
+
new Watcher$1(vm, updateComponent, noop, {
|
|
4952
4969
|
before: function before () {
|
|
4953
4970
|
if (vm._isMounted && !vm._isDestroyed) {
|
|
4954
4971
|
callHook$1(vm, 'beforeUpdate');
|
|
@@ -4988,7 +5005,8 @@ function updateChildComponent (
|
|
|
4988
5005
|
var hasDynamicScopedSlot = !!(
|
|
4989
5006
|
(newScopedSlots && !newScopedSlots.$stable) ||
|
|
4990
5007
|
(oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
|
|
4991
|
-
(newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
|
|
5008
|
+
(newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key) ||
|
|
5009
|
+
(!newScopedSlots && vm.$scopedSlots.$key)
|
|
4992
5010
|
);
|
|
4993
5011
|
|
|
4994
5012
|
// Any static slot children from the parent may have changed during parent's
|
|
@@ -5123,7 +5141,7 @@ makeMap(
|
|
|
5123
5141
|
// contain child elements.
|
|
5124
5142
|
makeMap(
|
|
5125
5143
|
'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
|
|
5126
|
-
'
|
|
5144
|
+
'foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
|
|
5127
5145
|
'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
|
|
5128
5146
|
true
|
|
5129
5147
|
);
|
|
@@ -5142,13 +5160,14 @@ var isTextInputType = makeMap('text,number,password,search,email,tel,url');
|
|
|
5142
5160
|
* of making flow understand it is not worth it.
|
|
5143
5161
|
*/
|
|
5144
5162
|
|
|
5145
|
-
var emptyNode = new VNode('', {}, []);
|
|
5163
|
+
var emptyNode = new VNode$1('', {}, []);
|
|
5146
5164
|
|
|
5147
5165
|
var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
|
|
5148
5166
|
|
|
5149
5167
|
function sameVnode (a, b) {
|
|
5150
5168
|
return (
|
|
5151
|
-
a.key === b.key &&
|
|
5169
|
+
a.key === b.key &&
|
|
5170
|
+
a.asyncFactory === b.asyncFactory && (
|
|
5152
5171
|
(
|
|
5153
5172
|
a.tag === b.tag &&
|
|
5154
5173
|
a.isComment === b.isComment &&
|
|
@@ -5156,7 +5175,6 @@ function sameVnode (a, b) {
|
|
|
5156
5175
|
sameInputType(a, b)
|
|
5157
5176
|
) || (
|
|
5158
5177
|
isTrue(a.isAsyncPlaceholder) &&
|
|
5159
|
-
a.asyncFactory === b.asyncFactory &&
|
|
5160
5178
|
isUndef(b.asyncFactory.error)
|
|
5161
5179
|
)
|
|
5162
5180
|
)
|
|
@@ -5198,7 +5216,7 @@ function createPatchFunction (backend) {
|
|
|
5198
5216
|
}
|
|
5199
5217
|
|
|
5200
5218
|
function emptyNodeAt (elm) {
|
|
5201
|
-
return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
|
|
5219
|
+
return new VNode$1(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
|
|
5202
5220
|
}
|
|
5203
5221
|
|
|
5204
5222
|
function createRmCb (childElm, listeners) {
|
|
@@ -5386,7 +5404,7 @@ function createPatchFunction (backend) {
|
|
|
5386
5404
|
for (var i = 0; i < children.length; ++i) {
|
|
5387
5405
|
createElm(children[i], insertedVnodeQueue, vnode.elm, null, true, children, i);
|
|
5388
5406
|
}
|
|
5389
|
-
} else if (isPrimitive(vnode.text)) {
|
|
5407
|
+
} else if (isPrimitive$2(vnode.text)) {
|
|
5390
5408
|
nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));
|
|
5391
5409
|
}
|
|
5392
5410
|
}
|
|
@@ -6103,7 +6121,7 @@ function stringifyClass (value) {
|
|
|
6103
6121
|
if (Array.isArray(value)) {
|
|
6104
6122
|
return stringifyArray(value)
|
|
6105
6123
|
}
|
|
6106
|
-
if (isObject$
|
|
6124
|
+
if (isObject$2(value)) {
|
|
6107
6125
|
return stringifyObject(value)
|
|
6108
6126
|
}
|
|
6109
6127
|
if (typeof value === 'string') {
|
|
@@ -6482,7 +6500,7 @@ function enter(vnode, toggleDisplay) {
|
|
|
6482
6500
|
: enterCancelled;
|
|
6483
6501
|
|
|
6484
6502
|
var explicitEnterDuration = toNumber(
|
|
6485
|
-
isObject$
|
|
6503
|
+
isObject$2(duration) ? duration.enter : duration
|
|
6486
6504
|
);
|
|
6487
6505
|
|
|
6488
6506
|
if (process.env.NODE_ENV !== 'production' && explicitEnterDuration != null) {
|
|
@@ -6588,7 +6606,7 @@ function leave(vnode, rm) {
|
|
|
6588
6606
|
var userWantsControl = getHookArgumentsLength(leave);
|
|
6589
6607
|
|
|
6590
6608
|
var explicitLeaveDuration = toNumber(
|
|
6591
|
-
isObject$
|
|
6609
|
+
isObject$2(duration) ? duration.leave : duration
|
|
6592
6610
|
);
|
|
6593
6611
|
|
|
6594
6612
|
if (process.env.NODE_ENV !== 'production' && isDef(explicitLeaveDuration)) {
|
|
@@ -6739,8 +6757,20 @@ function setFrame(id, frame) {
|
|
|
6739
6757
|
return frames.set(id, frame)
|
|
6740
6758
|
}
|
|
6741
6759
|
|
|
6742
|
-
function getFrame(id) {
|
|
6743
|
-
|
|
6760
|
+
function getFrame(id, fallback) {
|
|
6761
|
+
if (frames.has(id)) {
|
|
6762
|
+
return frames.get(id)
|
|
6763
|
+
}
|
|
6764
|
+
|
|
6765
|
+
// handle a fallback case where the frame with a same id might have been unmounted, but another one with the same id exists as a fallback...
|
|
6766
|
+
if (fallback) {
|
|
6767
|
+
var frameVM = fallback[VUE_ELEMENT_REF]['__vue__'];
|
|
6768
|
+
setFrame(id, frameVM);
|
|
6769
|
+
|
|
6770
|
+
return frameVM
|
|
6771
|
+
}
|
|
6772
|
+
|
|
6773
|
+
return null
|
|
6744
6774
|
}
|
|
6745
6775
|
|
|
6746
6776
|
function deleteFrame(id) {
|
|
@@ -6861,7 +6891,7 @@ var frame = {
|
|
|
6861
6891
|
},
|
|
6862
6892
|
|
|
6863
6893
|
navigate: function navigate(entry, back) {
|
|
6864
|
-
var this$1 = this;
|
|
6894
|
+
var this$1$1 = this;
|
|
6865
6895
|
if ( back === void 0 ) back = false;
|
|
6866
6896
|
|
|
6867
6897
|
var frame = this._getFrame();
|
|
@@ -6874,14 +6904,14 @@ var frame = {
|
|
|
6874
6904
|
// to fire the frame events
|
|
6875
6905
|
var page = entry.create();
|
|
6876
6906
|
page.once('navigatedTo', function () {
|
|
6877
|
-
this$1.$emit('navigated', entry);
|
|
6907
|
+
this$1$1.$emit('navigated', entry);
|
|
6878
6908
|
});
|
|
6879
6909
|
|
|
6880
6910
|
var handler = function (args) {
|
|
6881
6911
|
if (args.isBackNavigation) {
|
|
6882
6912
|
page.off('navigatedFrom', handler);
|
|
6883
6913
|
|
|
6884
|
-
this$1.$emit('navigatedBack', entry);
|
|
6914
|
+
this$1$1.$emit('navigatedBack', entry);
|
|
6885
6915
|
}
|
|
6886
6916
|
};
|
|
6887
6917
|
page.on('navigatedFrom', handler);
|
|
@@ -7076,7 +7106,7 @@ var listView = {
|
|
|
7076
7106
|
},
|
|
7077
7107
|
|
|
7078
7108
|
mounted: function mounted() {
|
|
7079
|
-
var this$1 = this;
|
|
7109
|
+
var this$1$1 = this;
|
|
7080
7110
|
|
|
7081
7111
|
if (!this.$templates) {
|
|
7082
7112
|
return
|
|
@@ -7087,7 +7117,7 @@ var listView = {
|
|
|
7087
7117
|
this.$templates.getKeyedTemplates()
|
|
7088
7118
|
);
|
|
7089
7119
|
this.$refs.listView.setAttribute('itemTemplateSelector', function (item, index) {
|
|
7090
|
-
return this$1.$templates.selectorFn(this$1.getItemContext(item, index))
|
|
7120
|
+
return this$1$1.$templates.selectorFn(this$1$1.getItemContext(item, index))
|
|
7091
7121
|
});
|
|
7092
7122
|
},
|
|
7093
7123
|
|
|
@@ -7163,8 +7193,8 @@ function isUnknownElement(el) {
|
|
|
7163
7193
|
return !isKnownView(el)
|
|
7164
7194
|
}
|
|
7165
7195
|
|
|
7166
|
-
var VUE_VERSION = process.env.VUE_VERSION || '2.6.
|
|
7167
|
-
var NS_VUE_VERSION = process.env.NS_VUE_VERSION || '2.
|
|
7196
|
+
var VUE_VERSION = process.env.VUE_VERSION || '2.6.14';
|
|
7197
|
+
var NS_VUE_VERSION = process.env.NS_VUE_VERSION || '2.9.1';
|
|
7168
7198
|
|
|
7169
7199
|
var infoTrace = once(function () {
|
|
7170
7200
|
console.log(
|
|
@@ -7208,7 +7238,7 @@ var page = {
|
|
|
7208
7238
|
)
|
|
7209
7239
|
},
|
|
7210
7240
|
mounted: function mounted() {
|
|
7211
|
-
var this$1 = this;
|
|
7241
|
+
var this$1$1 = this;
|
|
7212
7242
|
|
|
7213
7243
|
this.$el.nativeView[PAGE_REF] = this;
|
|
7214
7244
|
|
|
@@ -7223,8 +7253,8 @@ var page = {
|
|
|
7223
7253
|
|
|
7224
7254
|
var handler = function (e) {
|
|
7225
7255
|
if (e.isBackNavigation) {
|
|
7226
|
-
this$1.$el.nativeView.off('navigatedFrom', handler);
|
|
7227
|
-
this$1.$parent.$destroy();
|
|
7256
|
+
this$1$1.$el.nativeView.off('navigatedFrom', handler);
|
|
7257
|
+
this$1$1.$parent.$destroy();
|
|
7228
7258
|
}
|
|
7229
7259
|
};
|
|
7230
7260
|
|
|
@@ -7237,8 +7267,8 @@ var page = {
|
|
|
7237
7267
|
var args = [], len = arguments.length;
|
|
7238
7268
|
while ( len-- ) args[ len ] = arguments[ len ];
|
|
7239
7269
|
|
|
7240
|
-
this$1.$parent.$destroy();
|
|
7241
|
-
dispose.call(this$1.$el.nativeView, args);
|
|
7270
|
+
this$1$1.$parent.$destroy();
|
|
7271
|
+
dispose.call(this$1$1.$el.nativeView, args);
|
|
7242
7272
|
updateDevtools();
|
|
7243
7273
|
};
|
|
7244
7274
|
},
|
|
@@ -7295,122 +7325,6 @@ var tabViewItem = {
|
|
|
7295
7325
|
}
|
|
7296
7326
|
};
|
|
7297
7327
|
|
|
7298
|
-
var bottomNavigation = {
|
|
7299
|
-
model: {
|
|
7300
|
-
prop: 'selectedIndex',
|
|
7301
|
-
event: 'selectedIndexChange'
|
|
7302
|
-
},
|
|
7303
|
-
|
|
7304
|
-
render: function render(h) {
|
|
7305
|
-
return h(
|
|
7306
|
-
'NativeBottomNavigation',
|
|
7307
|
-
{
|
|
7308
|
-
on: this.$listeners,
|
|
7309
|
-
attrs: this.$attrs
|
|
7310
|
-
},
|
|
7311
|
-
this.$slots.default
|
|
7312
|
-
)
|
|
7313
|
-
},
|
|
7314
|
-
|
|
7315
|
-
methods: {
|
|
7316
|
-
registerTabStrip: function registerTabStrip(tabStrip) {
|
|
7317
|
-
this.$el.setAttribute('tabStrip', tabStrip);
|
|
7318
|
-
},
|
|
7319
|
-
registerTabContentItem: function registerTabContentItem(tabContentItem) {
|
|
7320
|
-
var items = this.$el.nativeView.items || [];
|
|
7321
|
-
|
|
7322
|
-
this.$el.setAttribute('items', items.concat([tabContentItem]));
|
|
7323
|
-
}
|
|
7324
|
-
}
|
|
7325
|
-
};
|
|
7326
|
-
|
|
7327
|
-
var tabs = {
|
|
7328
|
-
model: {
|
|
7329
|
-
prop: 'selectedIndex',
|
|
7330
|
-
event: 'selectedIndexChange'
|
|
7331
|
-
},
|
|
7332
|
-
|
|
7333
|
-
render: function render(h) {
|
|
7334
|
-
return h(
|
|
7335
|
-
'NativeTabs',
|
|
7336
|
-
{
|
|
7337
|
-
on: this.$listeners,
|
|
7338
|
-
attrs: this.$attrs
|
|
7339
|
-
},
|
|
7340
|
-
this.$slots.default
|
|
7341
|
-
)
|
|
7342
|
-
},
|
|
7343
|
-
|
|
7344
|
-
methods: {
|
|
7345
|
-
registerTabStrip: function registerTabStrip(tabStrip) {
|
|
7346
|
-
this.$el.setAttribute('tabStrip', tabStrip);
|
|
7347
|
-
},
|
|
7348
|
-
registerTabContentItem: function registerTabContentItem(tabContentItem) {
|
|
7349
|
-
var items = this.$el.nativeView.items || [];
|
|
7350
|
-
|
|
7351
|
-
this.$el.setAttribute('items', items.concat([tabContentItem]));
|
|
7352
|
-
}
|
|
7353
|
-
}
|
|
7354
|
-
};
|
|
7355
|
-
|
|
7356
|
-
var tabStrip = {
|
|
7357
|
-
render: function render(h) {
|
|
7358
|
-
return h(
|
|
7359
|
-
'NativeTabStrip',
|
|
7360
|
-
{
|
|
7361
|
-
on: this.$listeners,
|
|
7362
|
-
attrs: this.$attrs
|
|
7363
|
-
},
|
|
7364
|
-
this.$slots.default
|
|
7365
|
-
)
|
|
7366
|
-
},
|
|
7367
|
-
|
|
7368
|
-
mounted: function mounted() {
|
|
7369
|
-
var _nativeView = this.$el.nativeView;
|
|
7370
|
-
this.$parent.registerTabStrip(_nativeView);
|
|
7371
|
-
},
|
|
7372
|
-
|
|
7373
|
-
methods: {
|
|
7374
|
-
registerTabStripItem: function registerTabStripItem(tabStripItem) {
|
|
7375
|
-
var items = this.$el.nativeView.items || [];
|
|
7376
|
-
|
|
7377
|
-
this.$el.setAttribute('items', items.concat([tabStripItem]));
|
|
7378
|
-
}
|
|
7379
|
-
}
|
|
7380
|
-
};
|
|
7381
|
-
|
|
7382
|
-
var tabStripItem = {
|
|
7383
|
-
render: function render(h) {
|
|
7384
|
-
return h(
|
|
7385
|
-
'NativeTabStripItem',
|
|
7386
|
-
{
|
|
7387
|
-
on: this.$listeners,
|
|
7388
|
-
attrs: this.$attrs
|
|
7389
|
-
},
|
|
7390
|
-
this.$slots.default
|
|
7391
|
-
)
|
|
7392
|
-
},
|
|
7393
|
-
|
|
7394
|
-
mounted: function mounted() {
|
|
7395
|
-
var _nativeView = this.$el.nativeView;
|
|
7396
|
-
this.$parent.registerTabStripItem(_nativeView);
|
|
7397
|
-
}
|
|
7398
|
-
};
|
|
7399
|
-
|
|
7400
|
-
var tabContentItem = {
|
|
7401
|
-
template: "<NativeTabContentItem><slot /></NativeTabContentItem>",
|
|
7402
|
-
|
|
7403
|
-
mounted: function mounted() {
|
|
7404
|
-
if (this.$el.childNodes.length > 1) {
|
|
7405
|
-
warn$1('TabContentItem should contain only 1 root element', this);
|
|
7406
|
-
}
|
|
7407
|
-
|
|
7408
|
-
var _nativeView = this.$el.nativeView;
|
|
7409
|
-
_nativeView.view = this.$el.childNodes[0].nativeView;
|
|
7410
|
-
this.$parent.registerTabContentItem(_nativeView);
|
|
7411
|
-
}
|
|
7412
|
-
};
|
|
7413
|
-
|
|
7414
7328
|
/* */
|
|
7415
7329
|
|
|
7416
7330
|
var transitionProps = {
|
|
@@ -7488,7 +7402,7 @@ var Transition = {
|
|
|
7488
7402
|
abstract: true,
|
|
7489
7403
|
|
|
7490
7404
|
render: function render (h) {
|
|
7491
|
-
var this$1 = this;
|
|
7405
|
+
var this$1$1 = this;
|
|
7492
7406
|
|
|
7493
7407
|
var children = this.$slots.default;
|
|
7494
7408
|
if (!children) {
|
|
@@ -7551,7 +7465,7 @@ var Transition = {
|
|
|
7551
7465
|
? child.isComment
|
|
7552
7466
|
? id + 'comment'
|
|
7553
7467
|
: id + child.tag
|
|
7554
|
-
: isPrimitive(child.key)
|
|
7468
|
+
: isPrimitive$2(child.key)
|
|
7555
7469
|
? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
|
|
7556
7470
|
: child.key;
|
|
7557
7471
|
|
|
@@ -7581,8 +7495,8 @@ var Transition = {
|
|
|
7581
7495
|
// return placeholder node and queue update when leave finishes
|
|
7582
7496
|
this._leaving = true;
|
|
7583
7497
|
mergeVNodeHook(oldData, 'afterLeave', function () {
|
|
7584
|
-
this$1._leaving = false;
|
|
7585
|
-
this$1.$forceUpdate();
|
|
7498
|
+
this$1$1._leaving = false;
|
|
7499
|
+
this$1$1.$forceUpdate();
|
|
7586
7500
|
});
|
|
7587
7501
|
return placeholder(h, rawChild)
|
|
7588
7502
|
} else if (mode === 'in-out') {
|
|
@@ -7741,49 +7655,6 @@ registerElement(
|
|
|
7741
7655
|
}
|
|
7742
7656
|
);
|
|
7743
7657
|
|
|
7744
|
-
registerElement(
|
|
7745
|
-
'BottomNavigation',
|
|
7746
|
-
function () { return require('@nativescript/core').BottomNavigation; },
|
|
7747
|
-
{
|
|
7748
|
-
model: {
|
|
7749
|
-
prop: 'selectedIndex',
|
|
7750
|
-
event: 'selectedIndexChange'
|
|
7751
|
-
},
|
|
7752
|
-
component: bottomNavigation
|
|
7753
|
-
}
|
|
7754
|
-
);
|
|
7755
|
-
|
|
7756
|
-
registerElement('Tabs', function () { return require('@nativescript/core').Tabs; }, {
|
|
7757
|
-
model: {
|
|
7758
|
-
prop: 'selectedIndex',
|
|
7759
|
-
event: 'selectedIndexChange'
|
|
7760
|
-
},
|
|
7761
|
-
component: tabs
|
|
7762
|
-
});
|
|
7763
|
-
|
|
7764
|
-
registerElement('TabStrip', function () { return require('@nativescript/core').TabStrip; }, {
|
|
7765
|
-
skipAddToDom: true,
|
|
7766
|
-
component: tabStrip
|
|
7767
|
-
});
|
|
7768
|
-
|
|
7769
|
-
registerElement(
|
|
7770
|
-
'TabStripItem',
|
|
7771
|
-
function () { return require('@nativescript/core').TabStripItem; },
|
|
7772
|
-
{
|
|
7773
|
-
skipAddToDom: true,
|
|
7774
|
-
component: tabStripItem
|
|
7775
|
-
}
|
|
7776
|
-
);
|
|
7777
|
-
|
|
7778
|
-
registerElement(
|
|
7779
|
-
'TabContentItem',
|
|
7780
|
-
function () { return require('@nativescript/core').TabContentItem; },
|
|
7781
|
-
{
|
|
7782
|
-
skipAddToDom: true,
|
|
7783
|
-
component: tabContentItem
|
|
7784
|
-
}
|
|
7785
|
-
);
|
|
7786
|
-
|
|
7787
7658
|
registerElement('transition', null, {
|
|
7788
7659
|
component: Transition
|
|
7789
7660
|
});
|
|
@@ -7850,6 +7721,7 @@ registerElement(
|
|
|
7850
7721
|
// 'Repeater',
|
|
7851
7722
|
// () => require('@nativescript/core').Repeater
|
|
7852
7723
|
// )
|
|
7724
|
+
registerElement('RootLayout', function () { return require('@nativescript/core').RootLayout; });
|
|
7853
7725
|
registerElement('ScrollView', function () { return require('@nativescript/core').ScrollView; });
|
|
7854
7726
|
registerElement('SearchBar', function () { return require('@nativescript/core').SearchBar; }, {
|
|
7855
7727
|
model: {
|
|
@@ -7964,6 +7836,20 @@ registerElement('Frame', function () { return require('@nativescript/core').Fram
|
|
|
7964
7836
|
component: frame
|
|
7965
7837
|
});
|
|
7966
7838
|
|
|
7839
|
+
/*!
|
|
7840
|
+
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
7841
|
+
*
|
|
7842
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
7843
|
+
* Released under the MIT License.
|
|
7844
|
+
*/
|
|
7845
|
+
|
|
7846
|
+
var isPrimitive$1 = function isPrimitive(val) {
|
|
7847
|
+
if (typeof val === 'object') {
|
|
7848
|
+
return val === null;
|
|
7849
|
+
}
|
|
7850
|
+
return typeof val !== 'function';
|
|
7851
|
+
};
|
|
7852
|
+
|
|
7967
7853
|
/*!
|
|
7968
7854
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
7969
7855
|
*
|
|
@@ -7982,14 +7868,14 @@ var isobject = function isObject(val) {
|
|
|
7982
7868
|
* Released under the MIT License.
|
|
7983
7869
|
*/
|
|
7984
7870
|
|
|
7985
|
-
|
|
7871
|
+
var isObject$1 = isobject;
|
|
7986
7872
|
|
|
7987
7873
|
function isObjectObject(o) {
|
|
7988
|
-
return
|
|
7874
|
+
return isObject$1(o) === true
|
|
7989
7875
|
&& Object.prototype.toString.call(o) === '[object Object]';
|
|
7990
7876
|
}
|
|
7991
7877
|
|
|
7992
|
-
var isPlainObject = function isPlainObject(o) {
|
|
7878
|
+
var isPlainObject$1 = function isPlainObject(o) {
|
|
7993
7879
|
var ctor,prot;
|
|
7994
7880
|
|
|
7995
7881
|
if (isObjectObject(o) === false) { return false; }
|
|
@@ -8014,111 +7900,172 @@ var isPlainObject = function isPlainObject(o) {
|
|
|
8014
7900
|
/*!
|
|
8015
7901
|
* set-value <https://github.com/jonschlinkert/set-value>
|
|
8016
7902
|
*
|
|
8017
|
-
* Copyright (c)
|
|
7903
|
+
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
8018
7904
|
* Released under the MIT License.
|
|
8019
7905
|
*/
|
|
8020
7906
|
|
|
7907
|
+
var deleteProperty = Reflect.deleteProperty;
|
|
7908
|
+
var isPrimitive = isPrimitive$1;
|
|
7909
|
+
var isPlainObject = isPlainObject$1;
|
|
8021
7910
|
|
|
7911
|
+
var isObject = function (value) {
|
|
7912
|
+
return (typeof value === 'object' && value !== null) || typeof value === 'function';
|
|
7913
|
+
};
|
|
8022
7914
|
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
}
|
|
7915
|
+
var isUnsafeKey = function (key) {
|
|
7916
|
+
return key === '__proto__' || key === 'constructor' || key === 'prototype';
|
|
7917
|
+
};
|
|
8027
7918
|
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
return target;
|
|
7919
|
+
var validateKey = function (key) {
|
|
7920
|
+
if (!isPrimitive(key)) {
|
|
7921
|
+
throw new TypeError('Object keys must be strings or symbols');
|
|
8032
7922
|
}
|
|
8033
7923
|
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
merge = Object.assign;
|
|
7924
|
+
if (isUnsafeKey(key)) {
|
|
7925
|
+
throw new Error(("Cannot set unsafe key: \"" + key + "\""));
|
|
8037
7926
|
}
|
|
7927
|
+
};
|
|
7928
|
+
|
|
7929
|
+
var toStringKey = function (input) {
|
|
7930
|
+
return Array.isArray(input) ? input.flat().map(String).join(',') : input;
|
|
7931
|
+
};
|
|
7932
|
+
|
|
7933
|
+
var createMemoKey = function (input, options) {
|
|
7934
|
+
if (typeof input !== 'string' || !options) { return input; }
|
|
7935
|
+
var key = input + ';';
|
|
7936
|
+
if (options.arrays !== undefined) { key += "arrays=" + (options.arrays) + ";"; }
|
|
7937
|
+
if (options.separator !== undefined) { key += "separator=" + (options.separator) + ";"; }
|
|
7938
|
+
if (options.split !== undefined) { key += "split=" + (options.split) + ";"; }
|
|
7939
|
+
if (options.merge !== undefined) { key += "merge=" + (options.merge) + ";"; }
|
|
7940
|
+
if (options.preservePaths !== undefined) { key += "preservePaths=" + (options.preservePaths) + ";"; }
|
|
7941
|
+
return key;
|
|
7942
|
+
};
|
|
8038
7943
|
|
|
8039
|
-
|
|
8040
|
-
var
|
|
8041
|
-
|
|
7944
|
+
var memoize = function (input, options, fn) {
|
|
7945
|
+
var key = toStringKey(options ? createMemoKey(input, options) : input);
|
|
7946
|
+
validateKey(key);
|
|
8042
7947
|
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
7948
|
+
var value = setValue.cache.get(key) || fn();
|
|
7949
|
+
setValue.cache.set(key, value);
|
|
7950
|
+
return value;
|
|
7951
|
+
};
|
|
7952
|
+
|
|
7953
|
+
var splitString = function (input, options) {
|
|
7954
|
+
if ( options === void 0 ) options = {};
|
|
7955
|
+
|
|
7956
|
+
var sep = options.separator || '.';
|
|
7957
|
+
var preserve = sep === '/' ? false : options.preservePaths;
|
|
7958
|
+
|
|
7959
|
+
if (typeof input === 'string' && preserve !== false && /\//.test(input)) {
|
|
7960
|
+
return [input];
|
|
8046
7961
|
}
|
|
8047
7962
|
|
|
8048
|
-
|
|
8049
|
-
|
|
7963
|
+
var parts = [];
|
|
7964
|
+
var part = '';
|
|
8050
7965
|
|
|
8051
|
-
|
|
8052
|
-
|
|
7966
|
+
var push = function (part) {
|
|
7967
|
+
var number;
|
|
7968
|
+
if (part.trim() !== '' && Number.isInteger((number = Number(part)))) {
|
|
7969
|
+
parts.push(number);
|
|
7970
|
+
} else {
|
|
7971
|
+
parts.push(part);
|
|
8053
7972
|
}
|
|
7973
|
+
};
|
|
8054
7974
|
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
7975
|
+
for (var i = 0; i < input.length; i++) {
|
|
7976
|
+
var value = input[i];
|
|
7977
|
+
|
|
7978
|
+
if (value === '\\') {
|
|
7979
|
+
part += input[++i];
|
|
7980
|
+
continue;
|
|
8058
7981
|
}
|
|
8059
7982
|
|
|
8060
|
-
|
|
8061
|
-
|
|
7983
|
+
if (value === sep) {
|
|
7984
|
+
push(part);
|
|
7985
|
+
part = '';
|
|
7986
|
+
continue;
|
|
7987
|
+
}
|
|
8062
7988
|
|
|
8063
|
-
|
|
8064
|
-
}
|
|
7989
|
+
part += value;
|
|
7990
|
+
}
|
|
8065
7991
|
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
target[path] = merge({}, target[path], value);
|
|
8069
|
-
} else {
|
|
8070
|
-
target[path] = value;
|
|
7992
|
+
if (part) {
|
|
7993
|
+
push(part);
|
|
8071
7994
|
}
|
|
8072
|
-
}
|
|
8073
7995
|
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
if (set.memo[id]) { return set.memo[id]; }
|
|
7996
|
+
return parts;
|
|
7997
|
+
};
|
|
8077
7998
|
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
7999
|
+
var split = function (input, options) {
|
|
8000
|
+
if (options && typeof options.split === 'function') { return options.split(input); }
|
|
8001
|
+
if (typeof input === 'symbol') { return [input]; }
|
|
8002
|
+
if (Array.isArray(input)) { return input; }
|
|
8003
|
+
return memoize(input, options, function () { return splitString(input, options); });
|
|
8004
|
+
};
|
|
8081
8005
|
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
} else {
|
|
8085
|
-
keys = path.split(char);
|
|
8086
|
-
}
|
|
8006
|
+
var assignProp = function (obj, prop, value, options) {
|
|
8007
|
+
validateKey(prop);
|
|
8087
8008
|
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8009
|
+
// Delete property when "value" is undefined
|
|
8010
|
+
if (value === undefined) {
|
|
8011
|
+
deleteProperty(obj, prop);
|
|
8012
|
+
|
|
8013
|
+
} else if (options && options.merge) {
|
|
8014
|
+
var merge = options.merge === 'function' ? options.merge : Object.assign;
|
|
8015
|
+
|
|
8016
|
+
// Only merge plain objects
|
|
8017
|
+
if (merge && isPlainObject(obj[prop]) && isPlainObject(value)) {
|
|
8018
|
+
obj[prop] = merge(obj[prop], value);
|
|
8019
|
+
} else {
|
|
8020
|
+
obj[prop] = value;
|
|
8092
8021
|
}
|
|
8093
|
-
res.push(prop);
|
|
8094
|
-
}
|
|
8095
|
-
set.memo[id] = res;
|
|
8096
|
-
return res;
|
|
8097
|
-
}
|
|
8098
8022
|
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
if (typeof options === 'undefined') {
|
|
8102
|
-
return id + '';
|
|
8023
|
+
} else {
|
|
8024
|
+
obj[prop] = value;
|
|
8103
8025
|
}
|
|
8104
|
-
|
|
8026
|
+
|
|
8027
|
+
return obj;
|
|
8028
|
+
};
|
|
8029
|
+
|
|
8030
|
+
var setValue = function (target, path, value, options) {
|
|
8031
|
+
if (!path || !isObject(target)) { return target; }
|
|
8032
|
+
|
|
8033
|
+
var keys = split(path, options);
|
|
8034
|
+
var obj = target;
|
|
8035
|
+
|
|
8105
8036
|
for (var i = 0; i < keys.length; i++) {
|
|
8106
8037
|
var key = keys[i];
|
|
8107
|
-
|
|
8038
|
+
var next = keys[i + 1];
|
|
8039
|
+
|
|
8040
|
+
validateKey(key);
|
|
8041
|
+
|
|
8042
|
+
if (next === undefined) {
|
|
8043
|
+
assignProp(obj, key, value, options);
|
|
8044
|
+
break;
|
|
8045
|
+
}
|
|
8046
|
+
|
|
8047
|
+
if (typeof next === 'number' && !Array.isArray(obj[key])) {
|
|
8048
|
+
obj = obj[key] = [];
|
|
8049
|
+
continue;
|
|
8050
|
+
}
|
|
8051
|
+
|
|
8052
|
+
if (!isObject(obj[key])) {
|
|
8053
|
+
obj[key] = {};
|
|
8054
|
+
}
|
|
8055
|
+
|
|
8056
|
+
obj = obj[key];
|
|
8108
8057
|
}
|
|
8109
|
-
return id;
|
|
8110
|
-
}
|
|
8111
8058
|
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
}
|
|
8059
|
+
return target;
|
|
8060
|
+
};
|
|
8115
8061
|
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8062
|
+
setValue.split = split;
|
|
8063
|
+
setValue.cache = new Map();
|
|
8064
|
+
setValue.clear = function () {
|
|
8065
|
+
setValue.cache = new Map();
|
|
8066
|
+
};
|
|
8119
8067
|
|
|
8120
|
-
|
|
8121
|
-
var setValue = set;
|
|
8068
|
+
var setValue_1 = setValue;
|
|
8122
8069
|
|
|
8123
8070
|
var View;
|
|
8124
8071
|
function isView(view) {
|
|
@@ -8327,17 +8274,17 @@ ViewNode.prototype.setAttribute = function setAttribute (key, value) {
|
|
|
8327
8274
|
}
|
|
8328
8275
|
|
|
8329
8276
|
if (isAndroid && key.startsWith('android:')) {
|
|
8330
|
-
|
|
8277
|
+
setValue_1(nv, key.substr(8), value);
|
|
8331
8278
|
} else if (isIOS && key.startsWith('ios:')) {
|
|
8332
|
-
|
|
8279
|
+
setValue_1(nv, key.substr(4), value);
|
|
8333
8280
|
} else if (key.endsWith('.decode')) {
|
|
8334
|
-
|
|
8281
|
+
setValue_1(
|
|
8335
8282
|
nv,
|
|
8336
8283
|
key.slice(0, -7),
|
|
8337
8284
|
require('@nativescript/core').XmlParser._dereferenceEntities(value)
|
|
8338
8285
|
);
|
|
8339
8286
|
} else {
|
|
8340
|
-
|
|
8287
|
+
setValue_1(nv, key, value);
|
|
8341
8288
|
}
|
|
8342
8289
|
}
|
|
8343
8290
|
} catch (e) {
|
|
@@ -8771,7 +8718,7 @@ var isNonPhrasingTag = makeMap(
|
|
|
8771
8718
|
|
|
8772
8719
|
// Regular Expressions for parsing tags and attributes
|
|
8773
8720
|
var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
|
|
8774
|
-
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]
|
|
8721
|
+
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
|
|
8775
8722
|
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + (unicodeRegExp.source) + "]*";
|
|
8776
8723
|
var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
|
|
8777
8724
|
var startTagOpen = new RegExp(("^<" + qnameCapture));
|
|
@@ -9600,7 +9547,7 @@ var modifierRE = /\.[^.\]]+(?=[^\]]*$)/g;
|
|
|
9600
9547
|
var slotRE = /^v-slot(:|$)|^#/;
|
|
9601
9548
|
|
|
9602
9549
|
var lineBreakRE = /[\r\n]/;
|
|
9603
|
-
var whitespaceRE =
|
|
9550
|
+
var whitespaceRE = /[ \f\t\r\n]+/g;
|
|
9604
9551
|
|
|
9605
9552
|
var invalidAttributeRE = /[\s"'<>\/=]/;
|
|
9606
9553
|
|
|
@@ -9648,8 +9595,12 @@ function parse (
|
|
|
9648
9595
|
platformMustUseProp = options.mustUseProp || no;
|
|
9649
9596
|
platformGetTagNamespace = options.getTagNamespace || no;
|
|
9650
9597
|
var isReservedTag = options.isReservedTag || no;
|
|
9651
|
-
maybeComponent = function (el) { return !!
|
|
9652
|
-
|
|
9598
|
+
maybeComponent = function (el) { return !!(
|
|
9599
|
+
el.component ||
|
|
9600
|
+
el.attrsMap[':is'] ||
|
|
9601
|
+
el.attrsMap['v-bind:is'] ||
|
|
9602
|
+
!(el.attrsMap.is ? isReservedTag(el.attrsMap.is) : isReservedTag(el.tag))
|
|
9603
|
+
); };
|
|
9653
9604
|
transforms = pluckModuleFunction(options.modules, 'transformNode');
|
|
9654
9605
|
preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');
|
|
9655
9606
|
postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');
|
|
@@ -10785,9 +10736,9 @@ function genHandler (handler) {
|
|
|
10785
10736
|
code += genModifierCode;
|
|
10786
10737
|
}
|
|
10787
10738
|
var handlerCode = isMethodPath
|
|
10788
|
-
? ("return " + (handler.value) + "(
|
|
10739
|
+
? ("return " + (handler.value) + ".apply(null, arguments)")
|
|
10789
10740
|
: isFunctionExpression
|
|
10790
|
-
? ("return (" + (handler.value) + ")(
|
|
10741
|
+
? ("return (" + (handler.value) + ").apply(null, arguments)")
|
|
10791
10742
|
: isFunctionInvocation
|
|
10792
10743
|
? ("return " + (handler.value))
|
|
10793
10744
|
: handler.value;
|
|
@@ -10873,7 +10824,8 @@ function generate (
|
|
|
10873
10824
|
options
|
|
10874
10825
|
) {
|
|
10875
10826
|
var state = new CodegenState(options);
|
|
10876
|
-
|
|
10827
|
+
// fix #11483, Root level <script> tags should not be rendered.
|
|
10828
|
+
var code = ast ? (ast.tag === 'script' ? 'null' : genElement(ast, state)) : '_c("NativeContentView")';
|
|
10877
10829
|
return {
|
|
10878
10830
|
render: ("with(this){return " + code + "}"),
|
|
10879
10831
|
staticRenderFns: state.staticRenderFns
|
|
@@ -11338,7 +11290,7 @@ function genComment (comment) {
|
|
|
11338
11290
|
function genSlot (el, state) {
|
|
11339
11291
|
var slotName = el.slotName || '"default"';
|
|
11340
11292
|
var children = genChildren(el, state);
|
|
11341
|
-
var res = "_t(" + slotName + (children ? ("," + children) : '');
|
|
11293
|
+
var res = "_t(" + slotName + (children ? (",function(){return " + children + "}") : '');
|
|
11342
11294
|
var attrs = el.attrs || el.dynamicAttrs
|
|
11343
11295
|
? genProps((el.attrs || []).concat(el.dynamicAttrs || []).map(function (attr) { return ({
|
|
11344
11296
|
// slot props are camelized
|
|
@@ -12043,6 +11995,7 @@ var baseOptions = {
|
|
|
12043
11995
|
};
|
|
12044
11996
|
|
|
12045
11997
|
var ref = createCompiler(baseOptions);
|
|
11998
|
+
ref.compile;
|
|
12046
11999
|
var compileToFunctions = ref.compileToFunctions;
|
|
12047
12000
|
|
|
12048
12001
|
function Vue (options) {
|
|
@@ -12201,7 +12154,7 @@ function initAssetRegisters (Vue) {
|
|
|
12201
12154
|
if (process.env.NODE_ENV !== 'production' && type === 'component') {
|
|
12202
12155
|
validateComponentName(id);
|
|
12203
12156
|
}
|
|
12204
|
-
if (type === 'component' && isPlainObject$
|
|
12157
|
+
if (type === 'component' && isPlainObject$2(definition)) {
|
|
12205
12158
|
definition.name = definition.name || id;
|
|
12206
12159
|
definition = this.options._base.extend(definition);
|
|
12207
12160
|
}
|
|
@@ -12219,6 +12172,8 @@ function initAssetRegisters (Vue) {
|
|
|
12219
12172
|
|
|
12220
12173
|
|
|
12221
12174
|
|
|
12175
|
+
|
|
12176
|
+
|
|
12222
12177
|
function getComponentName (opts) {
|
|
12223
12178
|
return opts && (opts.Ctor.options.name || opts.tag)
|
|
12224
12179
|
}
|
|
@@ -12240,9 +12195,9 @@ function pruneCache (keepAliveInstance, filter) {
|
|
|
12240
12195
|
var keys = keepAliveInstance.keys;
|
|
12241
12196
|
var _vnode = keepAliveInstance._vnode;
|
|
12242
12197
|
for (var key in cache) {
|
|
12243
|
-
var
|
|
12244
|
-
if (
|
|
12245
|
-
var name =
|
|
12198
|
+
var entry = cache[key];
|
|
12199
|
+
if (entry) {
|
|
12200
|
+
var name = entry.name;
|
|
12246
12201
|
if (name && !filter(name)) {
|
|
12247
12202
|
pruneCacheEntry(cache, key, keys, _vnode);
|
|
12248
12203
|
}
|
|
@@ -12256,9 +12211,9 @@ function pruneCacheEntry (
|
|
|
12256
12211
|
keys,
|
|
12257
12212
|
current
|
|
12258
12213
|
) {
|
|
12259
|
-
var
|
|
12260
|
-
if (
|
|
12261
|
-
|
|
12214
|
+
var entry = cache[key];
|
|
12215
|
+
if (entry && (!current || entry.tag !== current.tag)) {
|
|
12216
|
+
entry.componentInstance.$destroy();
|
|
12262
12217
|
}
|
|
12263
12218
|
cache[key] = null;
|
|
12264
12219
|
remove$2(keys, key);
|
|
@@ -12276,6 +12231,32 @@ var KeepAlive = {
|
|
|
12276
12231
|
max: [String, Number]
|
|
12277
12232
|
},
|
|
12278
12233
|
|
|
12234
|
+
methods: {
|
|
12235
|
+
cacheVNode: function cacheVNode() {
|
|
12236
|
+
var ref = this;
|
|
12237
|
+
var cache = ref.cache;
|
|
12238
|
+
var keys = ref.keys;
|
|
12239
|
+
var vnodeToCache = ref.vnodeToCache;
|
|
12240
|
+
var keyToCache = ref.keyToCache;
|
|
12241
|
+
if (vnodeToCache) {
|
|
12242
|
+
var tag = vnodeToCache.tag;
|
|
12243
|
+
var componentInstance = vnodeToCache.componentInstance;
|
|
12244
|
+
var componentOptions = vnodeToCache.componentOptions;
|
|
12245
|
+
cache[keyToCache] = {
|
|
12246
|
+
name: getComponentName(componentOptions),
|
|
12247
|
+
tag: tag,
|
|
12248
|
+
componentInstance: componentInstance,
|
|
12249
|
+
};
|
|
12250
|
+
keys.push(keyToCache);
|
|
12251
|
+
// prune oldest entry
|
|
12252
|
+
if (this.max && keys.length > parseInt(this.max)) {
|
|
12253
|
+
pruneCacheEntry(cache, keys[0], keys, this._vnode);
|
|
12254
|
+
}
|
|
12255
|
+
this.vnodeToCache = null;
|
|
12256
|
+
}
|
|
12257
|
+
}
|
|
12258
|
+
},
|
|
12259
|
+
|
|
12279
12260
|
created: function created () {
|
|
12280
12261
|
this.cache = Object.create(null);
|
|
12281
12262
|
this.keys = [];
|
|
@@ -12288,16 +12269,21 @@ var KeepAlive = {
|
|
|
12288
12269
|
},
|
|
12289
12270
|
|
|
12290
12271
|
mounted: function mounted () {
|
|
12291
|
-
var this$1 = this;
|
|
12272
|
+
var this$1$1 = this;
|
|
12292
12273
|
|
|
12274
|
+
this.cacheVNode();
|
|
12293
12275
|
this.$watch('include', function (val) {
|
|
12294
|
-
pruneCache(this$1, function (name) { return matches(val, name); });
|
|
12276
|
+
pruneCache(this$1$1, function (name) { return matches(val, name); });
|
|
12295
12277
|
});
|
|
12296
12278
|
this.$watch('exclude', function (val) {
|
|
12297
|
-
pruneCache(this$1, function (name) { return !matches(val, name); });
|
|
12279
|
+
pruneCache(this$1$1, function (name) { return !matches(val, name); });
|
|
12298
12280
|
});
|
|
12299
12281
|
},
|
|
12300
12282
|
|
|
12283
|
+
updated: function updated () {
|
|
12284
|
+
this.cacheVNode();
|
|
12285
|
+
},
|
|
12286
|
+
|
|
12301
12287
|
render: function render () {
|
|
12302
12288
|
var slot = this.$slots.default;
|
|
12303
12289
|
var vnode = getFirstComponentChild(slot);
|
|
@@ -12331,12 +12317,9 @@ var KeepAlive = {
|
|
|
12331
12317
|
remove$2(keys, key);
|
|
12332
12318
|
keys.push(key);
|
|
12333
12319
|
} else {
|
|
12334
|
-
cache
|
|
12335
|
-
|
|
12336
|
-
|
|
12337
|
-
if (this.max && keys.length > parseInt(this.max)) {
|
|
12338
|
-
pruneCacheEntry(cache, keys[0], keys, this._vnode);
|
|
12339
|
-
}
|
|
12320
|
+
// delay setting the cache until update
|
|
12321
|
+
this.vnodeToCache = vnode;
|
|
12322
|
+
this.keyToCache = key;
|
|
12340
12323
|
}
|
|
12341
12324
|
|
|
12342
12325
|
vnode.data.keepAlive = true;
|
|
@@ -12374,7 +12357,7 @@ function initGlobalAPI (Vue) {
|
|
|
12374
12357
|
defineReactive: defineReactive
|
|
12375
12358
|
};
|
|
12376
12359
|
|
|
12377
|
-
Vue.set = set
|
|
12360
|
+
Vue.set = set;
|
|
12378
12361
|
Vue.delete = del;
|
|
12379
12362
|
Vue.nextTick = nextTick;
|
|
12380
12363
|
|
|
@@ -12419,7 +12402,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
|
|
|
12419
12402
|
value: FunctionalRenderContext
|
|
12420
12403
|
});
|
|
12421
12404
|
|
|
12422
|
-
Vue.version = '2.6.
|
|
12405
|
+
Vue.version = '2.6.14';
|
|
12423
12406
|
|
|
12424
12407
|
// recursively search for possible transition defined inside the component root
|
|
12425
12408
|
function locateNode(vnode) {
|
|
@@ -12597,7 +12580,7 @@ function serializeModalOptions(options) {
|
|
|
12597
12580
|
}
|
|
12598
12581
|
|
|
12599
12582
|
function getTargetView(target) {
|
|
12600
|
-
if (isObject$
|
|
12583
|
+
if (isObject$2(target) && isDef(target.$el)) {
|
|
12601
12584
|
return target.$el.nativeView
|
|
12602
12585
|
} else if (isDef(target.nativeView)) {
|
|
12603
12586
|
return target.nativeView
|
|
@@ -12637,7 +12620,7 @@ var ModalPlugin = {
|
|
|
12637
12620
|
});
|
|
12638
12621
|
|
|
12639
12622
|
Vue.prototype.$showModal = function (component, options) {
|
|
12640
|
-
var this$1 = this;
|
|
12623
|
+
var this$1$1 = this;
|
|
12641
12624
|
|
|
12642
12625
|
return new Promise(function (resolve) {
|
|
12643
12626
|
var resolved = false;
|
|
@@ -12657,7 +12640,7 @@ var ModalPlugin = {
|
|
|
12657
12640
|
// build options object with defaults
|
|
12658
12641
|
options = Object.assign(
|
|
12659
12642
|
{
|
|
12660
|
-
target: this$1.$root
|
|
12643
|
+
target: this$1$1.$root
|
|
12661
12644
|
},
|
|
12662
12645
|
options,
|
|
12663
12646
|
{
|
|
@@ -12710,15 +12693,15 @@ function getFrameInstance(frame) {
|
|
|
12710
12693
|
// a Vue ref to a frame
|
|
12711
12694
|
// a Frame ViewNode
|
|
12712
12695
|
// or a Frame instance
|
|
12713
|
-
if (isObject$
|
|
12696
|
+
if (isObject$2(frame) && isDef(frame.$el)) {
|
|
12714
12697
|
frame = frame.$el.nativeView;
|
|
12715
|
-
} else if (isPrimitive(frame)) {
|
|
12698
|
+
} else if (isPrimitive$2(frame)) {
|
|
12716
12699
|
frame = require('@nativescript/core').Frame.getFrameById(frame);
|
|
12717
12700
|
} else if (isDef(frame.nativeView)) {
|
|
12718
12701
|
frame = frame.nativeView;
|
|
12719
12702
|
}
|
|
12720
12703
|
// finally get the component instance for this frame
|
|
12721
|
-
return getFrame(frame.id)
|
|
12704
|
+
return getFrame(frame.id, frame)
|
|
12722
12705
|
}
|
|
12723
12706
|
|
|
12724
12707
|
function findParentFrame(vm) {
|