nativescript-vue 2.9.0 → 2.9.2
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 +386 -228
- package/index.d.ts +25 -23
- package/package.json +29 -33
- package/CHANGELOG.md +0 -882
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/*!
|
|
3
|
-
* NativeScript-Vue v2.9.
|
|
4
|
-
* (Using Vue v2.6.
|
|
5
|
-
* (c) 2017-
|
|
3
|
+
* NativeScript-Vue v2.9.2
|
|
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);
|
|
@@ -980,7 +980,7 @@ function copyAugment (target, src, keys) {
|
|
|
980
980
|
* or the existing observer if the value already has one.
|
|
981
981
|
*/
|
|
982
982
|
function observe (value, asRootData) {
|
|
983
|
-
if (!isObject$
|
|
983
|
+
if (!isObject$2(value) || value instanceof VNode) {
|
|
984
984
|
return
|
|
985
985
|
}
|
|
986
986
|
var ob;
|
|
@@ -989,7 +989,7 @@ function observe (value, asRootData) {
|
|
|
989
989
|
} else if (
|
|
990
990
|
shouldObserve &&
|
|
991
991
|
!isServerRendering() &&
|
|
992
|
-
(Array.isArray(value) || isPlainObject$
|
|
992
|
+
(Array.isArray(value) || isPlainObject$2(value)) &&
|
|
993
993
|
Object.isExtensible(value) &&
|
|
994
994
|
!value._isVue
|
|
995
995
|
) {
|
|
@@ -1070,9 +1070,9 @@ function defineReactive (
|
|
|
1070
1070
|
* triggers change notification if the property doesn't
|
|
1071
1071
|
* already exist.
|
|
1072
1072
|
*/
|
|
1073
|
-
function set
|
|
1073
|
+
function set (target, key, val) {
|
|
1074
1074
|
if (process.env.NODE_ENV !== 'production' &&
|
|
1075
|
-
(isUndef(target) || isPrimitive(target))
|
|
1075
|
+
(isUndef(target) || isPrimitive$2(target))
|
|
1076
1076
|
) {
|
|
1077
1077
|
warn$1(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
|
|
1078
1078
|
}
|
|
@@ -1107,7 +1107,7 @@ function set$1 (target, key, val) {
|
|
|
1107
1107
|
*/
|
|
1108
1108
|
function del (target, key) {
|
|
1109
1109
|
if (process.env.NODE_ENV !== 'production' &&
|
|
1110
|
-
(isUndef(target) || isPrimitive(target))
|
|
1110
|
+
(isUndef(target) || isPrimitive$2(target))
|
|
1111
1111
|
) {
|
|
1112
1112
|
warn$1(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
|
|
1113
1113
|
}
|
|
@@ -1189,11 +1189,11 @@ function mergeData (to, from) {
|
|
|
1189
1189
|
toVal = to[key];
|
|
1190
1190
|
fromVal = from[key];
|
|
1191
1191
|
if (!hasOwn(to, key)) {
|
|
1192
|
-
set
|
|
1192
|
+
set(to, key, fromVal);
|
|
1193
1193
|
} else if (
|
|
1194
1194
|
toVal !== fromVal &&
|
|
1195
|
-
isPlainObject$
|
|
1196
|
-
isPlainObject$
|
|
1195
|
+
isPlainObject$2(toVal) &&
|
|
1196
|
+
isPlainObject$2(fromVal)
|
|
1197
1197
|
) {
|
|
1198
1198
|
mergeData(toVal, fromVal);
|
|
1199
1199
|
}
|
|
@@ -1439,11 +1439,11 @@ function normalizeProps (options, vm) {
|
|
|
1439
1439
|
warn$1('props must be strings when using array syntax.');
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
|
-
} else if (isPlainObject$
|
|
1442
|
+
} else if (isPlainObject$2(props)) {
|
|
1443
1443
|
for (var key in props) {
|
|
1444
1444
|
val = props[key];
|
|
1445
1445
|
name = camelize(key);
|
|
1446
|
-
res[name] = isPlainObject$
|
|
1446
|
+
res[name] = isPlainObject$2(val)
|
|
1447
1447
|
? val
|
|
1448
1448
|
: { type: val };
|
|
1449
1449
|
}
|
|
@@ -1468,10 +1468,10 @@ function normalizeInject (options, vm) {
|
|
|
1468
1468
|
for (var i = 0; i < inject.length; i++) {
|
|
1469
1469
|
normalized[inject[i]] = { from: inject[i] };
|
|
1470
1470
|
}
|
|
1471
|
-
} else if (isPlainObject$
|
|
1471
|
+
} else if (isPlainObject$2(inject)) {
|
|
1472
1472
|
for (var key in inject) {
|
|
1473
1473
|
var val = inject[key];
|
|
1474
|
-
normalized[key] = isPlainObject$
|
|
1474
|
+
normalized[key] = isPlainObject$2(val)
|
|
1475
1475
|
? extend({ from: key }, val)
|
|
1476
1476
|
: { from: val };
|
|
1477
1477
|
}
|
|
@@ -1500,7 +1500,7 @@ function normalizeDirectives$1 (options) {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
1502
|
function assertObjectType (name, value, vm) {
|
|
1503
|
-
if (!isPlainObject$
|
|
1503
|
+
if (!isPlainObject$2(value)) {
|
|
1504
1504
|
warn$1(
|
|
1505
1505
|
"Invalid value for option \"" + name + "\": expected an Object, " +
|
|
1506
1506
|
"but got " + (toRawType(value)) + ".",
|
|
@@ -1652,7 +1652,7 @@ function getPropDefaultValue (vm, prop, key) {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
var def = prop.default;
|
|
1654
1654
|
// warn against non-factory defaults for Object & Array
|
|
1655
|
-
if (process.env.NODE_ENV !== 'production' && isObject$
|
|
1655
|
+
if (process.env.NODE_ENV !== 'production' && isObject$2(def)) {
|
|
1656
1656
|
warn$1(
|
|
1657
1657
|
'Invalid default value for prop "' + key + '": ' +
|
|
1658
1658
|
'Props with type Object/Array must use a factory function ' +
|
|
@@ -1703,13 +1703,14 @@ function assertProp (
|
|
|
1703
1703
|
type = [type];
|
|
1704
1704
|
}
|
|
1705
1705
|
for (var i = 0; i < type.length && !valid; i++) {
|
|
1706
|
-
var assertedType = assertType(value, type[i]);
|
|
1706
|
+
var assertedType = assertType(value, type[i], vm);
|
|
1707
1707
|
expectedTypes.push(assertedType.expectedType || '');
|
|
1708
1708
|
valid = assertedType.valid;
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
1711
|
|
|
1712
|
-
|
|
1712
|
+
var haveExpectedTypes = expectedTypes.some(function (t) { return t; });
|
|
1713
|
+
if (!valid && haveExpectedTypes) {
|
|
1713
1714
|
warn$1(
|
|
1714
1715
|
getInvalidTypeMessage(name, value, expectedTypes),
|
|
1715
1716
|
vm
|
|
@@ -1727,9 +1728,9 @@ function assertProp (
|
|
|
1727
1728
|
}
|
|
1728
1729
|
}
|
|
1729
1730
|
|
|
1730
|
-
var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
|
|
1731
|
+
var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol|BigInt)$/;
|
|
1731
1732
|
|
|
1732
|
-
function assertType (value, type) {
|
|
1733
|
+
function assertType (value, type, vm) {
|
|
1733
1734
|
var valid;
|
|
1734
1735
|
var expectedType = getType(type);
|
|
1735
1736
|
if (simpleCheckRE.test(expectedType)) {
|
|
@@ -1740,11 +1741,16 @@ function assertType (value, type) {
|
|
|
1740
1741
|
valid = value instanceof type;
|
|
1741
1742
|
}
|
|
1742
1743
|
} else if (expectedType === 'Object') {
|
|
1743
|
-
valid = isPlainObject$
|
|
1744
|
+
valid = isPlainObject$2(value);
|
|
1744
1745
|
} else if (expectedType === 'Array') {
|
|
1745
1746
|
valid = Array.isArray(value);
|
|
1746
1747
|
} else {
|
|
1747
|
-
|
|
1748
|
+
try {
|
|
1749
|
+
valid = value instanceof type;
|
|
1750
|
+
} catch (e) {
|
|
1751
|
+
warn$1('Invalid prop type: "' + String(type) + '" is not a constructor', vm);
|
|
1752
|
+
valid = false;
|
|
1753
|
+
}
|
|
1748
1754
|
}
|
|
1749
1755
|
return {
|
|
1750
1756
|
valid: valid,
|
|
@@ -1752,13 +1758,15 @@ function assertType (value, type) {
|
|
|
1752
1758
|
}
|
|
1753
1759
|
}
|
|
1754
1760
|
|
|
1761
|
+
var functionTypeCheckRE = /^\s*function (\w+)/;
|
|
1762
|
+
|
|
1755
1763
|
/**
|
|
1756
1764
|
* Use function string name to check built-in types,
|
|
1757
1765
|
* because a simple equality check will fail when running
|
|
1758
1766
|
* across different vms / iframes.
|
|
1759
1767
|
*/
|
|
1760
1768
|
function getType (fn) {
|
|
1761
|
-
var match = fn && fn.toString().match(
|
|
1769
|
+
var match = fn && fn.toString().match(functionTypeCheckRE);
|
|
1762
1770
|
return match ? match[1] : ''
|
|
1763
1771
|
}
|
|
1764
1772
|
|
|
@@ -1783,18 +1791,19 @@ function getInvalidTypeMessage (name, value, expectedTypes) {
|
|
|
1783
1791
|
" Expected " + (expectedTypes.map(capitalize).join(', '));
|
|
1784
1792
|
var expectedType = expectedTypes[0];
|
|
1785
1793
|
var receivedType = toRawType(value);
|
|
1786
|
-
var expectedValue = styleValue(value, expectedType);
|
|
1787
|
-
var receivedValue = styleValue(value, receivedType);
|
|
1788
1794
|
// check if we need to specify expected value
|
|
1789
|
-
if (
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1795
|
+
if (
|
|
1796
|
+
expectedTypes.length === 1 &&
|
|
1797
|
+
isExplicable(expectedType) &&
|
|
1798
|
+
isExplicable(typeof value) &&
|
|
1799
|
+
!isBoolean(expectedType, receivedType)
|
|
1800
|
+
) {
|
|
1801
|
+
message += " with value " + (styleValue(value, expectedType));
|
|
1793
1802
|
}
|
|
1794
1803
|
message += ", got " + receivedType + " ";
|
|
1795
1804
|
// check if we need to specify received value
|
|
1796
1805
|
if (isExplicable(receivedType)) {
|
|
1797
|
-
message += "with value " +
|
|
1806
|
+
message += "with value " + (styleValue(value, receivedType)) + ".";
|
|
1798
1807
|
}
|
|
1799
1808
|
return message
|
|
1800
1809
|
}
|
|
@@ -1809,9 +1818,9 @@ function styleValue (value, type) {
|
|
|
1809
1818
|
}
|
|
1810
1819
|
}
|
|
1811
1820
|
|
|
1821
|
+
var EXPLICABLE_TYPES = ['string', 'number', 'boolean'];
|
|
1812
1822
|
function isExplicable (value) {
|
|
1813
|
-
|
|
1814
|
-
return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
|
|
1823
|
+
return EXPLICABLE_TYPES.some(function (elem) { return value.toLowerCase() === elem; })
|
|
1815
1824
|
}
|
|
1816
1825
|
|
|
1817
1826
|
function isBoolean () {
|
|
@@ -2062,7 +2071,7 @@ function traverse (val) {
|
|
|
2062
2071
|
function _traverse (val, seen) {
|
|
2063
2072
|
var i, keys;
|
|
2064
2073
|
var isA = Array.isArray(val);
|
|
2065
|
-
if ((!isA && !isObject$
|
|
2074
|
+
if ((!isA && !isObject$2(val)) || Object.isFrozen(val) || val instanceof VNode) {
|
|
2066
2075
|
return
|
|
2067
2076
|
}
|
|
2068
2077
|
if (val.__ob__) {
|
|
@@ -2407,18 +2416,15 @@ Watcher.prototype.run = function run () {
|
|
|
2407
2416
|
// Deep watchers and watchers on Object/Arrays should fire even
|
|
2408
2417
|
// when the value is the same, because the value may
|
|
2409
2418
|
// have mutated.
|
|
2410
|
-
isObject$
|
|
2419
|
+
isObject$2(value) ||
|
|
2411
2420
|
this.deep
|
|
2412
2421
|
) {
|
|
2413
2422
|
// set new value
|
|
2414
2423
|
var oldValue = this.value;
|
|
2415
2424
|
this.value = value;
|
|
2416
2425
|
if (this.user) {
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
} catch (e) {
|
|
2420
|
-
handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
|
|
2421
|
-
}
|
|
2426
|
+
var info = "callback for watcher \"" + (this.expression) + "\"";
|
|
2427
|
+
invokeWithErrorHandling(this.cb, this.vm, [value, oldValue], this.vm, info);
|
|
2422
2428
|
} else {
|
|
2423
2429
|
this.cb.call(this.vm, value, oldValue);
|
|
2424
2430
|
}
|
|
@@ -2693,7 +2699,7 @@ function simpleNormalizeChildren (children) {
|
|
|
2693
2699
|
// with hand-written render functions / JSX. In such cases a full normalization
|
|
2694
2700
|
// is needed to cater to all possible types of children values.
|
|
2695
2701
|
function normalizeChildren (children) {
|
|
2696
|
-
return isPrimitive(children)
|
|
2702
|
+
return isPrimitive$2(children)
|
|
2697
2703
|
? [createTextVNode(children)]
|
|
2698
2704
|
: Array.isArray(children)
|
|
2699
2705
|
? normalizeArrayChildren(children)
|
|
@@ -2723,7 +2729,7 @@ function normalizeArrayChildren (children, nestedIndex) {
|
|
|
2723
2729
|
}
|
|
2724
2730
|
res.push.apply(res, c);
|
|
2725
2731
|
}
|
|
2726
|
-
} else if (isPrimitive(c)) {
|
|
2732
|
+
} else if (isPrimitive$2(c)) {
|
|
2727
2733
|
if (isTextNode(last)) {
|
|
2728
2734
|
// merge adjacent text nodes
|
|
2729
2735
|
// this is necessary for SSR hydration because text nodes are
|
|
@@ -2760,7 +2766,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
2760
2766
|
var allowedGlobals = makeMap(
|
|
2761
2767
|
'Infinity,undefined,NaN,isFinite,isNaN,' +
|
|
2762
2768
|
'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
|
|
2763
|
-
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
|
|
2769
|
+
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,' +
|
|
2764
2770
|
'require' // for Webpack/Browserify
|
|
2765
2771
|
);
|
|
2766
2772
|
|
|
@@ -2930,7 +2936,7 @@ function initData (vm) {
|
|
|
2930
2936
|
data = vm._data = typeof data === 'function'
|
|
2931
2937
|
? getData(data, vm)
|
|
2932
2938
|
: data || {};
|
|
2933
|
-
if (!isPlainObject$
|
|
2939
|
+
if (!isPlainObject$2(data)) {
|
|
2934
2940
|
data = {};
|
|
2935
2941
|
process.env.NODE_ENV !== 'production' && warn$1(
|
|
2936
2942
|
'data functions should return an object:\n' +
|
|
@@ -3016,6 +3022,8 @@ function initComputed$1 (vm, computed) {
|
|
|
3016
3022
|
warn$1(("The computed property \"" + key + "\" is already defined in data."), vm);
|
|
3017
3023
|
} else if (vm.$options.props && key in vm.$options.props) {
|
|
3018
3024
|
warn$1(("The computed property \"" + key + "\" is already defined as a prop."), vm);
|
|
3025
|
+
} else if (vm.$options.methods && key in vm.$options.methods) {
|
|
3026
|
+
warn$1(("The computed property \"" + key + "\" is already defined as a method."), vm);
|
|
3019
3027
|
}
|
|
3020
3028
|
}
|
|
3021
3029
|
}
|
|
@@ -3118,7 +3126,7 @@ function createWatcher (
|
|
|
3118
3126
|
handler,
|
|
3119
3127
|
options
|
|
3120
3128
|
) {
|
|
3121
|
-
if (isPlainObject$
|
|
3129
|
+
if (isPlainObject$2(handler)) {
|
|
3122
3130
|
options = handler;
|
|
3123
3131
|
handler = handler.handler;
|
|
3124
3132
|
}
|
|
@@ -3151,7 +3159,7 @@ function stateMixin (Vue) {
|
|
|
3151
3159
|
Object.defineProperty(Vue.prototype, '$data', dataDef);
|
|
3152
3160
|
Object.defineProperty(Vue.prototype, '$props', propsDef);
|
|
3153
3161
|
|
|
3154
|
-
Vue.prototype.$set = set
|
|
3162
|
+
Vue.prototype.$set = set;
|
|
3155
3163
|
Vue.prototype.$delete = del;
|
|
3156
3164
|
|
|
3157
3165
|
Vue.prototype.$watch = function (
|
|
@@ -3160,18 +3168,17 @@ function stateMixin (Vue) {
|
|
|
3160
3168
|
options
|
|
3161
3169
|
) {
|
|
3162
3170
|
var vm = this;
|
|
3163
|
-
if (isPlainObject$
|
|
3171
|
+
if (isPlainObject$2(cb)) {
|
|
3164
3172
|
return createWatcher(vm, expOrFn, cb, options)
|
|
3165
3173
|
}
|
|
3166
3174
|
options = options || {};
|
|
3167
3175
|
options.user = true;
|
|
3168
3176
|
var watcher = new Watcher(vm, expOrFn, cb, options);
|
|
3169
3177
|
if (options.immediate) {
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
}
|
|
3178
|
+
var info = "callback for immediate watcher \"" + (watcher.expression) + "\"";
|
|
3179
|
+
pushTarget();
|
|
3180
|
+
invokeWithErrorHandling(cb, vm, [watcher.value], vm, info);
|
|
3181
|
+
popTarget();
|
|
3175
3182
|
}
|
|
3176
3183
|
return function unwatchFn () {
|
|
3177
3184
|
watcher.teardown();
|
|
@@ -3421,6 +3428,12 @@ function isWhitespace (node) {
|
|
|
3421
3428
|
|
|
3422
3429
|
/* */
|
|
3423
3430
|
|
|
3431
|
+
function isAsyncPlaceholder (node) {
|
|
3432
|
+
return node.isComment && node.asyncFactory
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
/* */
|
|
3436
|
+
|
|
3424
3437
|
function normalizeScopedSlots (
|
|
3425
3438
|
slots,
|
|
3426
3439
|
normalSlots,
|
|
@@ -3477,9 +3490,10 @@ function normalizeScopedSlot(normalSlots, key, fn) {
|
|
|
3477
3490
|
res = res && typeof res === 'object' && !Array.isArray(res)
|
|
3478
3491
|
? [res] // single vnode
|
|
3479
3492
|
: normalizeChildren(res);
|
|
3493
|
+
var vnode = res && res[0];
|
|
3480
3494
|
return res && (
|
|
3481
|
-
|
|
3482
|
-
(res.length === 1 &&
|
|
3495
|
+
!vnode ||
|
|
3496
|
+
(res.length === 1 && vnode.isComment && !isAsyncPlaceholder(vnode)) // #9658, #10391
|
|
3483
3497
|
) ? undefined
|
|
3484
3498
|
: res
|
|
3485
3499
|
};
|
|
@@ -3520,7 +3534,7 @@ function renderList (
|
|
|
3520
3534
|
for (i = 0; i < val; i++) {
|
|
3521
3535
|
ret[i] = render(i + 1, i);
|
|
3522
3536
|
}
|
|
3523
|
-
} else if (isObject$
|
|
3537
|
+
} else if (isObject$2(val)) {
|
|
3524
3538
|
if (hasSymbol && val[Symbol.iterator]) {
|
|
3525
3539
|
ret = [];
|
|
3526
3540
|
var iterator = val[Symbol.iterator]();
|
|
@@ -3552,26 +3566,28 @@ function renderList (
|
|
|
3552
3566
|
*/
|
|
3553
3567
|
function renderSlot (
|
|
3554
3568
|
name,
|
|
3555
|
-
|
|
3569
|
+
fallbackRender,
|
|
3556
3570
|
props,
|
|
3557
3571
|
bindObject
|
|
3558
3572
|
) {
|
|
3559
3573
|
var scopedSlotFn = this.$scopedSlots[name];
|
|
3560
3574
|
var nodes;
|
|
3561
|
-
if (scopedSlotFn) {
|
|
3575
|
+
if (scopedSlotFn) {
|
|
3576
|
+
// scoped slot
|
|
3562
3577
|
props = props || {};
|
|
3563
3578
|
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
|
-
);
|
|
3579
|
+
if (process.env.NODE_ENV !== 'production' && !isObject$2(bindObject)) {
|
|
3580
|
+
warn$1('slot v-bind without argument expects an Object', this);
|
|
3569
3581
|
}
|
|
3570
3582
|
props = extend(extend({}, bindObject), props);
|
|
3571
3583
|
}
|
|
3572
|
-
nodes =
|
|
3584
|
+
nodes =
|
|
3585
|
+
scopedSlotFn(props) ||
|
|
3586
|
+
(typeof fallbackRender === 'function' ? fallbackRender() : fallbackRender);
|
|
3573
3587
|
} else {
|
|
3574
|
-
nodes =
|
|
3588
|
+
nodes =
|
|
3589
|
+
this.$slots[name] ||
|
|
3590
|
+
(typeof fallbackRender === 'function' ? fallbackRender() : fallbackRender);
|
|
3575
3591
|
}
|
|
3576
3592
|
|
|
3577
3593
|
var target = props && props.slot;
|
|
@@ -3621,6 +3637,7 @@ function checkKeyCodes (
|
|
|
3621
3637
|
} else if (eventKeyName) {
|
|
3622
3638
|
return hyphenate(eventKeyName) !== key
|
|
3623
3639
|
}
|
|
3640
|
+
return eventKeyCode === undefined
|
|
3624
3641
|
}
|
|
3625
3642
|
|
|
3626
3643
|
/* */
|
|
@@ -3636,7 +3653,7 @@ function bindObjectProps (
|
|
|
3636
3653
|
isSync
|
|
3637
3654
|
) {
|
|
3638
3655
|
if (value) {
|
|
3639
|
-
if (!isObject$
|
|
3656
|
+
if (!isObject$2(value)) {
|
|
3640
3657
|
process.env.NODE_ENV !== 'production' && warn$1(
|
|
3641
3658
|
'v-bind without argument expects an Object or Array value',
|
|
3642
3659
|
this
|
|
@@ -3744,7 +3761,7 @@ function markStaticNode (node, key, isOnce) {
|
|
|
3744
3761
|
|
|
3745
3762
|
function bindObjectListeners (data, value) {
|
|
3746
3763
|
if (value) {
|
|
3747
|
-
if (!isPlainObject$
|
|
3764
|
+
if (!isPlainObject$2(value)) {
|
|
3748
3765
|
process.env.NODE_ENV !== 'production' && warn$1(
|
|
3749
3766
|
'v-on without argument expects an Object value',
|
|
3750
3767
|
this
|
|
@@ -3845,7 +3862,7 @@ function FunctionalRenderContext (
|
|
|
3845
3862
|
parent,
|
|
3846
3863
|
Ctor
|
|
3847
3864
|
) {
|
|
3848
|
-
var this$1 = this;
|
|
3865
|
+
var this$1$1 = this;
|
|
3849
3866
|
|
|
3850
3867
|
var options = Ctor.options;
|
|
3851
3868
|
// ensure the createElement function in functional components
|
|
@@ -3873,13 +3890,13 @@ function FunctionalRenderContext (
|
|
|
3873
3890
|
this.listeners = data.on || emptyObject;
|
|
3874
3891
|
this.injections = resolveInject(options.inject, parent);
|
|
3875
3892
|
this.slots = function () {
|
|
3876
|
-
if (!this$1.$slots) {
|
|
3893
|
+
if (!this$1$1.$slots) {
|
|
3877
3894
|
normalizeScopedSlots(
|
|
3878
3895
|
data.scopedSlots,
|
|
3879
|
-
this$1.$slots = resolveSlots(children, parent)
|
|
3896
|
+
this$1$1.$slots = resolveSlots(children, parent)
|
|
3880
3897
|
);
|
|
3881
3898
|
}
|
|
3882
|
-
return this$1.$slots
|
|
3899
|
+
return this$1$1.$slots
|
|
3883
3900
|
};
|
|
3884
3901
|
|
|
3885
3902
|
Object.defineProperty(this, 'scopedSlots', ({
|
|
@@ -4060,7 +4077,7 @@ function createComponent (
|
|
|
4060
4077
|
var baseCtor = context.$options._base;
|
|
4061
4078
|
|
|
4062
4079
|
// plain options object: turn it into a constructor
|
|
4063
|
-
if (isObject$
|
|
4080
|
+
if (isObject$2(Ctor)) {
|
|
4064
4081
|
Ctor = baseCtor.extend(Ctor);
|
|
4065
4082
|
}
|
|
4066
4083
|
|
|
@@ -4146,8 +4163,10 @@ function createComponent (
|
|
|
4146
4163
|
}
|
|
4147
4164
|
|
|
4148
4165
|
function createComponentInstanceForVnode (
|
|
4149
|
-
|
|
4150
|
-
|
|
4166
|
+
// we know it's MountedComponentVNode but flow doesn't
|
|
4167
|
+
vnode,
|
|
4168
|
+
// activeInstance in lifecycle state
|
|
4169
|
+
parent
|
|
4151
4170
|
) {
|
|
4152
4171
|
var options = {
|
|
4153
4172
|
_isComponent: true,
|
|
@@ -4222,7 +4241,7 @@ function createElement$1 (
|
|
|
4222
4241
|
normalizationType,
|
|
4223
4242
|
alwaysNormalize
|
|
4224
4243
|
) {
|
|
4225
|
-
if (Array.isArray(data) || isPrimitive(data)) {
|
|
4244
|
+
if (Array.isArray(data) || isPrimitive$2(data)) {
|
|
4226
4245
|
normalizationType = children;
|
|
4227
4246
|
children = data;
|
|
4228
4247
|
data = undefined;
|
|
@@ -4258,7 +4277,7 @@ function _createElement (
|
|
|
4258
4277
|
}
|
|
4259
4278
|
// warn against non-primitive key
|
|
4260
4279
|
if (process.env.NODE_ENV !== 'production' &&
|
|
4261
|
-
isDef(data) && isDef(data.key) && !isPrimitive(data.key)
|
|
4280
|
+
isDef(data) && isDef(data.key) && !isPrimitive$2(data.key)
|
|
4262
4281
|
) {
|
|
4263
4282
|
{
|
|
4264
4283
|
warn$1(
|
|
@@ -4287,7 +4306,7 @@ function _createElement (
|
|
|
4287
4306
|
ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
|
|
4288
4307
|
if (config.isReservedTag(tag)) {
|
|
4289
4308
|
// platform built-in elements
|
|
4290
|
-
if (process.env.NODE_ENV !== 'production' && isDef(data) && isDef(data.nativeOn)) {
|
|
4309
|
+
if (process.env.NODE_ENV !== 'production' && isDef(data) && isDef(data.nativeOn) && data.tag !== 'component') {
|
|
4291
4310
|
warn$1(
|
|
4292
4311
|
("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
|
|
4293
4312
|
context
|
|
@@ -4346,10 +4365,10 @@ function applyNS (vnode, ns, force) {
|
|
|
4346
4365
|
// necessary to ensure parent re-render when deep bindings like :style and
|
|
4347
4366
|
// :class are used on slot nodes
|
|
4348
4367
|
function registerDeepBindings (data) {
|
|
4349
|
-
if (isObject$
|
|
4368
|
+
if (isObject$2(data.style)) {
|
|
4350
4369
|
traverse(data.style);
|
|
4351
4370
|
}
|
|
4352
|
-
if (isObject$
|
|
4371
|
+
if (isObject$2(data.class)) {
|
|
4353
4372
|
traverse(data.class);
|
|
4354
4373
|
}
|
|
4355
4374
|
}
|
|
@@ -4474,7 +4493,7 @@ function ensureCtor (comp, base) {
|
|
|
4474
4493
|
) {
|
|
4475
4494
|
comp = comp.default;
|
|
4476
4495
|
}
|
|
4477
|
-
return isObject$
|
|
4496
|
+
return isObject$2(comp)
|
|
4478
4497
|
? base.extend(comp)
|
|
4479
4498
|
: comp
|
|
4480
4499
|
}
|
|
@@ -4565,7 +4584,7 @@ function resolveAsyncComponent (
|
|
|
4565
4584
|
|
|
4566
4585
|
var res = factory(resolve, reject);
|
|
4567
4586
|
|
|
4568
|
-
if (isObject$
|
|
4587
|
+
if (isObject$2(res)) {
|
|
4569
4588
|
if (isPromise(res)) {
|
|
4570
4589
|
// () => Promise
|
|
4571
4590
|
if (isUndef(factory.resolved)) {
|
|
@@ -4618,12 +4637,6 @@ function resolveAsyncComponent (
|
|
|
4618
4637
|
|
|
4619
4638
|
/* */
|
|
4620
4639
|
|
|
4621
|
-
function isAsyncPlaceholder (node) {
|
|
4622
|
-
return node.isComment && node.asyncFactory
|
|
4623
|
-
}
|
|
4624
|
-
|
|
4625
|
-
/* */
|
|
4626
|
-
|
|
4627
4640
|
function getFirstComponentChild (children) {
|
|
4628
4641
|
if (Array.isArray(children)) {
|
|
4629
4642
|
for (var i = 0; i < children.length; i++) {
|
|
@@ -4988,7 +5001,8 @@ function updateChildComponent (
|
|
|
4988
5001
|
var hasDynamicScopedSlot = !!(
|
|
4989
5002
|
(newScopedSlots && !newScopedSlots.$stable) ||
|
|
4990
5003
|
(oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
|
|
4991
|
-
(newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
|
|
5004
|
+
(newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key) ||
|
|
5005
|
+
(!newScopedSlots && vm.$scopedSlots.$key)
|
|
4992
5006
|
);
|
|
4993
5007
|
|
|
4994
5008
|
// Any static slot children from the parent may have changed during parent's
|
|
@@ -5123,7 +5137,7 @@ makeMap(
|
|
|
5123
5137
|
// contain child elements.
|
|
5124
5138
|
makeMap(
|
|
5125
5139
|
'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
|
|
5126
|
-
'
|
|
5140
|
+
'foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
|
|
5127
5141
|
'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
|
|
5128
5142
|
true
|
|
5129
5143
|
);
|
|
@@ -5148,7 +5162,8 @@ var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
|
|
|
5148
5162
|
|
|
5149
5163
|
function sameVnode (a, b) {
|
|
5150
5164
|
return (
|
|
5151
|
-
a.key === b.key &&
|
|
5165
|
+
a.key === b.key &&
|
|
5166
|
+
a.asyncFactory === b.asyncFactory && (
|
|
5152
5167
|
(
|
|
5153
5168
|
a.tag === b.tag &&
|
|
5154
5169
|
a.isComment === b.isComment &&
|
|
@@ -5156,7 +5171,6 @@ function sameVnode (a, b) {
|
|
|
5156
5171
|
sameInputType(a, b)
|
|
5157
5172
|
) || (
|
|
5158
5173
|
isTrue(a.isAsyncPlaceholder) &&
|
|
5159
|
-
a.asyncFactory === b.asyncFactory &&
|
|
5160
5174
|
isUndef(b.asyncFactory.error)
|
|
5161
5175
|
)
|
|
5162
5176
|
)
|
|
@@ -5386,7 +5400,7 @@ function createPatchFunction (backend) {
|
|
|
5386
5400
|
for (var i = 0; i < children.length; ++i) {
|
|
5387
5401
|
createElm(children[i], insertedVnodeQueue, vnode.elm, null, true, children, i);
|
|
5388
5402
|
}
|
|
5389
|
-
} else if (isPrimitive(vnode.text)) {
|
|
5403
|
+
} else if (isPrimitive$2(vnode.text)) {
|
|
5390
5404
|
nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));
|
|
5391
5405
|
}
|
|
5392
5406
|
}
|
|
@@ -6057,6 +6071,28 @@ var attrs = {
|
|
|
6057
6071
|
|
|
6058
6072
|
/* */
|
|
6059
6073
|
|
|
6074
|
+
// these are reserved for web because they are directly compiled away
|
|
6075
|
+
// during template compilation
|
|
6076
|
+
makeMap('style,class');
|
|
6077
|
+
|
|
6078
|
+
// attributes that should be using props for binding
|
|
6079
|
+
makeMap('input,textarea,option,select,progress');
|
|
6080
|
+
|
|
6081
|
+
makeMap('contenteditable,draggable,spellcheck');
|
|
6082
|
+
|
|
6083
|
+
makeMap('events,caret,typing,plaintext-only');
|
|
6084
|
+
|
|
6085
|
+
makeMap(
|
|
6086
|
+
'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +
|
|
6087
|
+
'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
|
|
6088
|
+
'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
|
|
6089
|
+
'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +
|
|
6090
|
+
'required,reversed,scoped,seamless,selected,sortable,' +
|
|
6091
|
+
'truespeed,typemustmatch,visible'
|
|
6092
|
+
);
|
|
6093
|
+
|
|
6094
|
+
/* */
|
|
6095
|
+
|
|
6060
6096
|
function genClassForVnode (vnode) {
|
|
6061
6097
|
var data = vnode.data;
|
|
6062
6098
|
var parentNode = vnode;
|
|
@@ -6103,7 +6139,7 @@ function stringifyClass (value) {
|
|
|
6103
6139
|
if (Array.isArray(value)) {
|
|
6104
6140
|
return stringifyArray(value)
|
|
6105
6141
|
}
|
|
6106
|
-
if (isObject$
|
|
6142
|
+
if (isObject$2(value)) {
|
|
6107
6143
|
return stringifyObject(value)
|
|
6108
6144
|
}
|
|
6109
6145
|
if (typeof value === 'string') {
|
|
@@ -6482,7 +6518,7 @@ function enter(vnode, toggleDisplay) {
|
|
|
6482
6518
|
: enterCancelled;
|
|
6483
6519
|
|
|
6484
6520
|
var explicitEnterDuration = toNumber(
|
|
6485
|
-
isObject$
|
|
6521
|
+
isObject$2(duration) ? duration.enter : duration
|
|
6486
6522
|
);
|
|
6487
6523
|
|
|
6488
6524
|
if (process.env.NODE_ENV !== 'production' && explicitEnterDuration != null) {
|
|
@@ -6588,7 +6624,7 @@ function leave(vnode, rm) {
|
|
|
6588
6624
|
var userWantsControl = getHookArgumentsLength(leave);
|
|
6589
6625
|
|
|
6590
6626
|
var explicitLeaveDuration = toNumber(
|
|
6591
|
-
isObject$
|
|
6627
|
+
isObject$2(duration) ? duration.leave : duration
|
|
6592
6628
|
);
|
|
6593
6629
|
|
|
6594
6630
|
if (process.env.NODE_ENV !== 'production' && isDef(explicitLeaveDuration)) {
|
|
@@ -6739,8 +6775,20 @@ function setFrame(id, frame) {
|
|
|
6739
6775
|
return frames.set(id, frame)
|
|
6740
6776
|
}
|
|
6741
6777
|
|
|
6742
|
-
function getFrame(id) {
|
|
6743
|
-
|
|
6778
|
+
function getFrame(id, fallback) {
|
|
6779
|
+
if (frames.has(id)) {
|
|
6780
|
+
return frames.get(id)
|
|
6781
|
+
}
|
|
6782
|
+
|
|
6783
|
+
// 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...
|
|
6784
|
+
if (fallback) {
|
|
6785
|
+
var frameVM = fallback[VUE_ELEMENT_REF]['__vue__'];
|
|
6786
|
+
setFrame(id, frameVM);
|
|
6787
|
+
|
|
6788
|
+
return frameVM
|
|
6789
|
+
}
|
|
6790
|
+
|
|
6791
|
+
return null
|
|
6744
6792
|
}
|
|
6745
6793
|
|
|
6746
6794
|
function deleteFrame(id) {
|
|
@@ -6861,7 +6909,7 @@ var frame = {
|
|
|
6861
6909
|
},
|
|
6862
6910
|
|
|
6863
6911
|
navigate: function navigate(entry, back) {
|
|
6864
|
-
var this$1 = this;
|
|
6912
|
+
var this$1$1 = this;
|
|
6865
6913
|
if ( back === void 0 ) back = false;
|
|
6866
6914
|
|
|
6867
6915
|
var frame = this._getFrame();
|
|
@@ -6874,14 +6922,14 @@ var frame = {
|
|
|
6874
6922
|
// to fire the frame events
|
|
6875
6923
|
var page = entry.create();
|
|
6876
6924
|
page.once('navigatedTo', function () {
|
|
6877
|
-
this$1.$emit('navigated', entry);
|
|
6925
|
+
this$1$1.$emit('navigated', entry);
|
|
6878
6926
|
});
|
|
6879
6927
|
|
|
6880
6928
|
var handler = function (args) {
|
|
6881
6929
|
if (args.isBackNavigation) {
|
|
6882
6930
|
page.off('navigatedFrom', handler);
|
|
6883
6931
|
|
|
6884
|
-
this$1.$emit('navigatedBack', entry);
|
|
6932
|
+
this$1$1.$emit('navigatedBack', entry);
|
|
6885
6933
|
}
|
|
6886
6934
|
};
|
|
6887
6935
|
page.on('navigatedFrom', handler);
|
|
@@ -7076,7 +7124,7 @@ var listView = {
|
|
|
7076
7124
|
},
|
|
7077
7125
|
|
|
7078
7126
|
mounted: function mounted() {
|
|
7079
|
-
var this$1 = this;
|
|
7127
|
+
var this$1$1 = this;
|
|
7080
7128
|
|
|
7081
7129
|
if (!this.$templates) {
|
|
7082
7130
|
return
|
|
@@ -7087,7 +7135,7 @@ var listView = {
|
|
|
7087
7135
|
this.$templates.getKeyedTemplates()
|
|
7088
7136
|
);
|
|
7089
7137
|
this.$refs.listView.setAttribute('itemTemplateSelector', function (item, index) {
|
|
7090
|
-
return this$1.$templates.selectorFn(this$1.getItemContext(item, index))
|
|
7138
|
+
return this$1$1.$templates.selectorFn(this$1$1.getItemContext(item, index))
|
|
7091
7139
|
});
|
|
7092
7140
|
},
|
|
7093
7141
|
|
|
@@ -7163,8 +7211,8 @@ function isUnknownElement(el) {
|
|
|
7163
7211
|
return !isKnownView(el)
|
|
7164
7212
|
}
|
|
7165
7213
|
|
|
7166
|
-
var VUE_VERSION = process.env.VUE_VERSION || '2.6.
|
|
7167
|
-
var NS_VUE_VERSION = process.env.NS_VUE_VERSION || '2.9.
|
|
7214
|
+
var VUE_VERSION = process.env.VUE_VERSION || '2.6.14';
|
|
7215
|
+
var NS_VUE_VERSION = process.env.NS_VUE_VERSION || '2.9.2';
|
|
7168
7216
|
|
|
7169
7217
|
var infoTrace = once(function () {
|
|
7170
7218
|
console.log(
|
|
@@ -7208,7 +7256,7 @@ var page = {
|
|
|
7208
7256
|
)
|
|
7209
7257
|
},
|
|
7210
7258
|
mounted: function mounted() {
|
|
7211
|
-
var this$1 = this;
|
|
7259
|
+
var this$1$1 = this;
|
|
7212
7260
|
|
|
7213
7261
|
this.$el.nativeView[PAGE_REF] = this;
|
|
7214
7262
|
|
|
@@ -7223,8 +7271,8 @@ var page = {
|
|
|
7223
7271
|
|
|
7224
7272
|
var handler = function (e) {
|
|
7225
7273
|
if (e.isBackNavigation) {
|
|
7226
|
-
this$1.$el.nativeView.off('navigatedFrom', handler);
|
|
7227
|
-
this$1.$parent.$destroy();
|
|
7274
|
+
this$1$1.$el.nativeView.off('navigatedFrom', handler);
|
|
7275
|
+
this$1$1.$parent.$destroy();
|
|
7228
7276
|
}
|
|
7229
7277
|
};
|
|
7230
7278
|
|
|
@@ -7237,8 +7285,8 @@ var page = {
|
|
|
7237
7285
|
var args = [], len = arguments.length;
|
|
7238
7286
|
while ( len-- ) args[ len ] = arguments[ len ];
|
|
7239
7287
|
|
|
7240
|
-
this$1.$parent.$destroy();
|
|
7241
|
-
dispose.call(this$1.$el.nativeView, args);
|
|
7288
|
+
this$1$1.$parent.$destroy();
|
|
7289
|
+
dispose.call(this$1$1.$el.nativeView, args);
|
|
7242
7290
|
updateDevtools();
|
|
7243
7291
|
};
|
|
7244
7292
|
},
|
|
@@ -7372,7 +7420,7 @@ var Transition = {
|
|
|
7372
7420
|
abstract: true,
|
|
7373
7421
|
|
|
7374
7422
|
render: function render (h) {
|
|
7375
|
-
var this$1 = this;
|
|
7423
|
+
var this$1$1 = this;
|
|
7376
7424
|
|
|
7377
7425
|
var children = this.$slots.default;
|
|
7378
7426
|
if (!children) {
|
|
@@ -7435,7 +7483,7 @@ var Transition = {
|
|
|
7435
7483
|
? child.isComment
|
|
7436
7484
|
? id + 'comment'
|
|
7437
7485
|
: id + child.tag
|
|
7438
|
-
: isPrimitive(child.key)
|
|
7486
|
+
: isPrimitive$2(child.key)
|
|
7439
7487
|
? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
|
|
7440
7488
|
: child.key;
|
|
7441
7489
|
|
|
@@ -7465,8 +7513,8 @@ var Transition = {
|
|
|
7465
7513
|
// return placeholder node and queue update when leave finishes
|
|
7466
7514
|
this._leaving = true;
|
|
7467
7515
|
mergeVNodeHook(oldData, 'afterLeave', function () {
|
|
7468
|
-
this$1._leaving = false;
|
|
7469
|
-
this$1.$forceUpdate();
|
|
7516
|
+
this$1$1._leaving = false;
|
|
7517
|
+
this$1$1.$forceUpdate();
|
|
7470
7518
|
});
|
|
7471
7519
|
return placeholder(h, rawChild)
|
|
7472
7520
|
} else if (mode === 'in-out') {
|
|
@@ -7806,6 +7854,20 @@ registerElement('Frame', function () { return require('@nativescript/core').Fram
|
|
|
7806
7854
|
component: frame
|
|
7807
7855
|
});
|
|
7808
7856
|
|
|
7857
|
+
/*!
|
|
7858
|
+
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
7859
|
+
*
|
|
7860
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
7861
|
+
* Released under the MIT License.
|
|
7862
|
+
*/
|
|
7863
|
+
|
|
7864
|
+
var isPrimitive$1 = function isPrimitive(val) {
|
|
7865
|
+
if (typeof val === 'object') {
|
|
7866
|
+
return val === null;
|
|
7867
|
+
}
|
|
7868
|
+
return typeof val !== 'function';
|
|
7869
|
+
};
|
|
7870
|
+
|
|
7809
7871
|
/*!
|
|
7810
7872
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
7811
7873
|
*
|
|
@@ -7824,14 +7886,14 @@ var isobject = function isObject(val) {
|
|
|
7824
7886
|
* Released under the MIT License.
|
|
7825
7887
|
*/
|
|
7826
7888
|
|
|
7827
|
-
|
|
7889
|
+
var isObject$1 = isobject;
|
|
7828
7890
|
|
|
7829
7891
|
function isObjectObject(o) {
|
|
7830
|
-
return
|
|
7892
|
+
return isObject$1(o) === true
|
|
7831
7893
|
&& Object.prototype.toString.call(o) === '[object Object]';
|
|
7832
7894
|
}
|
|
7833
7895
|
|
|
7834
|
-
var isPlainObject = function isPlainObject(o) {
|
|
7896
|
+
var isPlainObject$1 = function isPlainObject(o) {
|
|
7835
7897
|
var ctor,prot;
|
|
7836
7898
|
|
|
7837
7899
|
if (isObjectObject(o) === false) { return false; }
|
|
@@ -7856,111 +7918,172 @@ var isPlainObject = function isPlainObject(o) {
|
|
|
7856
7918
|
/*!
|
|
7857
7919
|
* set-value <https://github.com/jonschlinkert/set-value>
|
|
7858
7920
|
*
|
|
7859
|
-
* Copyright (c)
|
|
7921
|
+
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
7860
7922
|
* Released under the MIT License.
|
|
7861
7923
|
*/
|
|
7862
7924
|
|
|
7925
|
+
var deleteProperty = Reflect.deleteProperty;
|
|
7926
|
+
var isPrimitive = isPrimitive$1;
|
|
7927
|
+
var isPlainObject = isPlainObject$1;
|
|
7863
7928
|
|
|
7929
|
+
var isObject = function (value) {
|
|
7930
|
+
return (typeof value === 'object' && value !== null) || typeof value === 'function';
|
|
7931
|
+
};
|
|
7864
7932
|
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
}
|
|
7933
|
+
var isUnsafeKey = function (key) {
|
|
7934
|
+
return key === '__proto__' || key === 'constructor' || key === 'prototype';
|
|
7935
|
+
};
|
|
7869
7936
|
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
return target;
|
|
7937
|
+
var validateKey = function (key) {
|
|
7938
|
+
if (!isPrimitive(key)) {
|
|
7939
|
+
throw new TypeError('Object keys must be strings or symbols');
|
|
7874
7940
|
}
|
|
7875
7941
|
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
merge = Object.assign;
|
|
7942
|
+
if (isUnsafeKey(key)) {
|
|
7943
|
+
throw new Error(("Cannot set unsafe key: \"" + key + "\""));
|
|
7879
7944
|
}
|
|
7945
|
+
};
|
|
7880
7946
|
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7947
|
+
var toStringKey = function (input) {
|
|
7948
|
+
return Array.isArray(input) ? input.flat().map(String).join(',') : input;
|
|
7949
|
+
};
|
|
7884
7950
|
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7951
|
+
var createMemoKey = function (input, options) {
|
|
7952
|
+
if (typeof input !== 'string' || !options) { return input; }
|
|
7953
|
+
var key = input + ';';
|
|
7954
|
+
if (options.arrays !== undefined) { key += "arrays=" + (options.arrays) + ";"; }
|
|
7955
|
+
if (options.separator !== undefined) { key += "separator=" + (options.separator) + ";"; }
|
|
7956
|
+
if (options.split !== undefined) { key += "split=" + (options.split) + ";"; }
|
|
7957
|
+
if (options.merge !== undefined) { key += "merge=" + (options.merge) + ";"; }
|
|
7958
|
+
if (options.preservePaths !== undefined) { key += "preservePaths=" + (options.preservePaths) + ";"; }
|
|
7959
|
+
return key;
|
|
7960
|
+
};
|
|
7961
|
+
|
|
7962
|
+
var memoize = function (input, options, fn) {
|
|
7963
|
+
var key = toStringKey(options ? createMemoKey(input, options) : input);
|
|
7964
|
+
validateKey(key);
|
|
7965
|
+
|
|
7966
|
+
var value = setValue.cache.get(key) || fn();
|
|
7967
|
+
setValue.cache.set(key, value);
|
|
7968
|
+
return value;
|
|
7969
|
+
};
|
|
7970
|
+
|
|
7971
|
+
var splitString = function (input, options) {
|
|
7972
|
+
if ( options === void 0 ) options = {};
|
|
7973
|
+
|
|
7974
|
+
var sep = options.separator || '.';
|
|
7975
|
+
var preserve = sep === '/' ? false : options.preservePaths;
|
|
7976
|
+
|
|
7977
|
+
if (typeof input === 'string' && preserve !== false && /\//.test(input)) {
|
|
7978
|
+
return [input];
|
|
7888
7979
|
}
|
|
7889
7980
|
|
|
7890
|
-
|
|
7891
|
-
|
|
7981
|
+
var parts = [];
|
|
7982
|
+
var part = '';
|
|
7892
7983
|
|
|
7893
|
-
|
|
7894
|
-
|
|
7984
|
+
var push = function (part) {
|
|
7985
|
+
var number;
|
|
7986
|
+
if (part.trim() !== '' && Number.isInteger((number = Number(part)))) {
|
|
7987
|
+
parts.push(number);
|
|
7988
|
+
} else {
|
|
7989
|
+
parts.push(part);
|
|
7895
7990
|
}
|
|
7991
|
+
};
|
|
7896
7992
|
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7993
|
+
for (var i = 0; i < input.length; i++) {
|
|
7994
|
+
var value = input[i];
|
|
7995
|
+
|
|
7996
|
+
if (value === '\\') {
|
|
7997
|
+
part += input[++i];
|
|
7998
|
+
continue;
|
|
7900
7999
|
}
|
|
7901
8000
|
|
|
7902
|
-
|
|
7903
|
-
|
|
8001
|
+
if (value === sep) {
|
|
8002
|
+
push(part);
|
|
8003
|
+
part = '';
|
|
8004
|
+
continue;
|
|
8005
|
+
}
|
|
7904
8006
|
|
|
7905
|
-
|
|
7906
|
-
}
|
|
8007
|
+
part += value;
|
|
8008
|
+
}
|
|
7907
8009
|
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
target[path] = merge({}, target[path], value);
|
|
7911
|
-
} else {
|
|
7912
|
-
target[path] = value;
|
|
8010
|
+
if (part) {
|
|
8011
|
+
push(part);
|
|
7913
8012
|
}
|
|
7914
|
-
}
|
|
7915
8013
|
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
if (set.memo[id]) { return set.memo[id]; }
|
|
8014
|
+
return parts;
|
|
8015
|
+
};
|
|
7919
8016
|
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
8017
|
+
var split = function (input, options) {
|
|
8018
|
+
if (options && typeof options.split === 'function') { return options.split(input); }
|
|
8019
|
+
if (typeof input === 'symbol') { return [input]; }
|
|
8020
|
+
if (Array.isArray(input)) { return input; }
|
|
8021
|
+
return memoize(input, options, function () { return splitString(input, options); });
|
|
8022
|
+
};
|
|
7923
8023
|
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
} else {
|
|
7927
|
-
keys = path.split(char);
|
|
7928
|
-
}
|
|
8024
|
+
var assignProp = function (obj, prop, value, options) {
|
|
8025
|
+
validateKey(prop);
|
|
7929
8026
|
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
8027
|
+
// Delete property when "value" is undefined
|
|
8028
|
+
if (value === undefined) {
|
|
8029
|
+
deleteProperty(obj, prop);
|
|
8030
|
+
|
|
8031
|
+
} else if (options && options.merge) {
|
|
8032
|
+
var merge = options.merge === 'function' ? options.merge : Object.assign;
|
|
8033
|
+
|
|
8034
|
+
// Only merge plain objects
|
|
8035
|
+
if (merge && isPlainObject(obj[prop]) && isPlainObject(value)) {
|
|
8036
|
+
obj[prop] = merge(obj[prop], value);
|
|
8037
|
+
} else {
|
|
8038
|
+
obj[prop] = value;
|
|
7934
8039
|
}
|
|
7935
|
-
res.push(prop);
|
|
7936
|
-
}
|
|
7937
|
-
set.memo[id] = res;
|
|
7938
|
-
return res;
|
|
7939
|
-
}
|
|
7940
8040
|
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
if (typeof options === 'undefined') {
|
|
7944
|
-
return id + '';
|
|
8041
|
+
} else {
|
|
8042
|
+
obj[prop] = value;
|
|
7945
8043
|
}
|
|
7946
|
-
|
|
8044
|
+
|
|
8045
|
+
return obj;
|
|
8046
|
+
};
|
|
8047
|
+
|
|
8048
|
+
var setValue = function (target, path, value, options) {
|
|
8049
|
+
if (!path || !isObject(target)) { return target; }
|
|
8050
|
+
|
|
8051
|
+
var keys = split(path, options);
|
|
8052
|
+
var obj = target;
|
|
8053
|
+
|
|
7947
8054
|
for (var i = 0; i < keys.length; i++) {
|
|
7948
8055
|
var key = keys[i];
|
|
7949
|
-
|
|
8056
|
+
var next = keys[i + 1];
|
|
8057
|
+
|
|
8058
|
+
validateKey(key);
|
|
8059
|
+
|
|
8060
|
+
if (next === undefined) {
|
|
8061
|
+
assignProp(obj, key, value, options);
|
|
8062
|
+
break;
|
|
8063
|
+
}
|
|
8064
|
+
|
|
8065
|
+
if (typeof next === 'number' && !Array.isArray(obj[key])) {
|
|
8066
|
+
obj = obj[key] = [];
|
|
8067
|
+
continue;
|
|
8068
|
+
}
|
|
8069
|
+
|
|
8070
|
+
if (!isObject(obj[key])) {
|
|
8071
|
+
obj[key] = {};
|
|
8072
|
+
}
|
|
8073
|
+
|
|
8074
|
+
obj = obj[key];
|
|
7950
8075
|
}
|
|
7951
|
-
return id;
|
|
7952
|
-
}
|
|
7953
8076
|
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
}
|
|
8077
|
+
return target;
|
|
8078
|
+
};
|
|
7957
8079
|
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
8080
|
+
setValue.split = split;
|
|
8081
|
+
setValue.cache = new Map();
|
|
8082
|
+
setValue.clear = function () {
|
|
8083
|
+
setValue.cache = new Map();
|
|
8084
|
+
};
|
|
7961
8085
|
|
|
7962
|
-
|
|
7963
|
-
var setValue = set;
|
|
8086
|
+
var setValue_1 = setValue;
|
|
7964
8087
|
|
|
7965
8088
|
var View;
|
|
7966
8089
|
function isView(view) {
|
|
@@ -8169,17 +8292,17 @@ ViewNode.prototype.setAttribute = function setAttribute (key, value) {
|
|
|
8169
8292
|
}
|
|
8170
8293
|
|
|
8171
8294
|
if (isAndroid && key.startsWith('android:')) {
|
|
8172
|
-
|
|
8295
|
+
setValue_1(nv, key.substr(8), value);
|
|
8173
8296
|
} else if (isIOS && key.startsWith('ios:')) {
|
|
8174
|
-
|
|
8297
|
+
setValue_1(nv, key.substr(4), value);
|
|
8175
8298
|
} else if (key.endsWith('.decode')) {
|
|
8176
|
-
|
|
8299
|
+
setValue_1(
|
|
8177
8300
|
nv,
|
|
8178
8301
|
key.slice(0, -7),
|
|
8179
8302
|
require('@nativescript/core').XmlParser._dereferenceEntities(value)
|
|
8180
8303
|
);
|
|
8181
8304
|
} else {
|
|
8182
|
-
|
|
8305
|
+
setValue_1(nv, key, value);
|
|
8183
8306
|
}
|
|
8184
8307
|
}
|
|
8185
8308
|
} catch (e) {
|
|
@@ -8613,7 +8736,7 @@ var isNonPhrasingTag = makeMap(
|
|
|
8613
8736
|
|
|
8614
8737
|
// Regular Expressions for parsing tags and attributes
|
|
8615
8738
|
var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
|
|
8616
|
-
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]
|
|
8739
|
+
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
|
|
8617
8740
|
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + (unicodeRegExp.source) + "]*";
|
|
8618
8741
|
var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
|
|
8619
8742
|
var startTagOpen = new RegExp(("^<" + qnameCapture));
|
|
@@ -9442,7 +9565,7 @@ var modifierRE = /\.[^.\]]+(?=[^\]]*$)/g;
|
|
|
9442
9565
|
var slotRE = /^v-slot(:|$)|^#/;
|
|
9443
9566
|
|
|
9444
9567
|
var lineBreakRE = /[\r\n]/;
|
|
9445
|
-
var whitespaceRE =
|
|
9568
|
+
var whitespaceRE = /[ \f\t\r\n]+/g;
|
|
9446
9569
|
|
|
9447
9570
|
var invalidAttributeRE = /[\s"'<>\/=]/;
|
|
9448
9571
|
|
|
@@ -9490,8 +9613,12 @@ function parse (
|
|
|
9490
9613
|
platformMustUseProp = options.mustUseProp || no;
|
|
9491
9614
|
platformGetTagNamespace = options.getTagNamespace || no;
|
|
9492
9615
|
var isReservedTag = options.isReservedTag || no;
|
|
9493
|
-
maybeComponent = function (el) { return !!
|
|
9494
|
-
|
|
9616
|
+
maybeComponent = function (el) { return !!(
|
|
9617
|
+
el.component ||
|
|
9618
|
+
el.attrsMap[':is'] ||
|
|
9619
|
+
el.attrsMap['v-bind:is'] ||
|
|
9620
|
+
!(el.attrsMap.is ? isReservedTag(el.attrsMap.is) : isReservedTag(el.tag))
|
|
9621
|
+
); };
|
|
9495
9622
|
transforms = pluckModuleFunction(options.modules, 'transformNode');
|
|
9496
9623
|
preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');
|
|
9497
9624
|
postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');
|
|
@@ -10627,9 +10754,9 @@ function genHandler (handler) {
|
|
|
10627
10754
|
code += genModifierCode;
|
|
10628
10755
|
}
|
|
10629
10756
|
var handlerCode = isMethodPath
|
|
10630
|
-
? ("return " + (handler.value) + "(
|
|
10757
|
+
? ("return " + (handler.value) + ".apply(null, arguments)")
|
|
10631
10758
|
: isFunctionExpression
|
|
10632
|
-
? ("return (" + (handler.value) + ")(
|
|
10759
|
+
? ("return (" + (handler.value) + ").apply(null, arguments)")
|
|
10633
10760
|
: isFunctionInvocation
|
|
10634
10761
|
? ("return " + (handler.value))
|
|
10635
10762
|
: handler.value;
|
|
@@ -10715,7 +10842,8 @@ function generate (
|
|
|
10715
10842
|
options
|
|
10716
10843
|
) {
|
|
10717
10844
|
var state = new CodegenState(options);
|
|
10718
|
-
|
|
10845
|
+
// fix #11483, Root level <script> tags should not be rendered.
|
|
10846
|
+
var code = ast ? (ast.tag === 'script' ? 'null' : genElement(ast, state)) : '_c("NativeContentView")';
|
|
10719
10847
|
return {
|
|
10720
10848
|
render: ("with(this){return " + code + "}"),
|
|
10721
10849
|
staticRenderFns: state.staticRenderFns
|
|
@@ -11180,7 +11308,7 @@ function genComment (comment) {
|
|
|
11180
11308
|
function genSlot (el, state) {
|
|
11181
11309
|
var slotName = el.slotName || '"default"';
|
|
11182
11310
|
var children = genChildren(el, state);
|
|
11183
|
-
var res = "_t(" + slotName + (children ? ("," + children) : '');
|
|
11311
|
+
var res = "_t(" + slotName + (children ? (",function(){return " + children + "}") : '');
|
|
11184
11312
|
var attrs = el.attrs || el.dynamicAttrs
|
|
11185
11313
|
? genProps((el.attrs || []).concat(el.dynamicAttrs || []).map(function (attr) { return ({
|
|
11186
11314
|
// slot props are camelized
|
|
@@ -12043,7 +12171,7 @@ function initAssetRegisters (Vue) {
|
|
|
12043
12171
|
if (process.env.NODE_ENV !== 'production' && type === 'component') {
|
|
12044
12172
|
validateComponentName(id);
|
|
12045
12173
|
}
|
|
12046
|
-
if (type === 'component' && isPlainObject$
|
|
12174
|
+
if (type === 'component' && isPlainObject$2(definition)) {
|
|
12047
12175
|
definition.name = definition.name || id;
|
|
12048
12176
|
definition = this.options._base.extend(definition);
|
|
12049
12177
|
}
|
|
@@ -12061,6 +12189,8 @@ function initAssetRegisters (Vue) {
|
|
|
12061
12189
|
|
|
12062
12190
|
|
|
12063
12191
|
|
|
12192
|
+
|
|
12193
|
+
|
|
12064
12194
|
function getComponentName (opts) {
|
|
12065
12195
|
return opts && (opts.Ctor.options.name || opts.tag)
|
|
12066
12196
|
}
|
|
@@ -12082,9 +12212,9 @@ function pruneCache (keepAliveInstance, filter) {
|
|
|
12082
12212
|
var keys = keepAliveInstance.keys;
|
|
12083
12213
|
var _vnode = keepAliveInstance._vnode;
|
|
12084
12214
|
for (var key in cache) {
|
|
12085
|
-
var
|
|
12086
|
-
if (
|
|
12087
|
-
var name =
|
|
12215
|
+
var entry = cache[key];
|
|
12216
|
+
if (entry) {
|
|
12217
|
+
var name = entry.name;
|
|
12088
12218
|
if (name && !filter(name)) {
|
|
12089
12219
|
pruneCacheEntry(cache, key, keys, _vnode);
|
|
12090
12220
|
}
|
|
@@ -12098,9 +12228,9 @@ function pruneCacheEntry (
|
|
|
12098
12228
|
keys,
|
|
12099
12229
|
current
|
|
12100
12230
|
) {
|
|
12101
|
-
var
|
|
12102
|
-
if (
|
|
12103
|
-
|
|
12231
|
+
var entry = cache[key];
|
|
12232
|
+
if (entry && (!current || entry.tag !== current.tag)) {
|
|
12233
|
+
entry.componentInstance.$destroy();
|
|
12104
12234
|
}
|
|
12105
12235
|
cache[key] = null;
|
|
12106
12236
|
remove$2(keys, key);
|
|
@@ -12118,6 +12248,32 @@ var KeepAlive = {
|
|
|
12118
12248
|
max: [String, Number]
|
|
12119
12249
|
},
|
|
12120
12250
|
|
|
12251
|
+
methods: {
|
|
12252
|
+
cacheVNode: function cacheVNode() {
|
|
12253
|
+
var ref = this;
|
|
12254
|
+
var cache = ref.cache;
|
|
12255
|
+
var keys = ref.keys;
|
|
12256
|
+
var vnodeToCache = ref.vnodeToCache;
|
|
12257
|
+
var keyToCache = ref.keyToCache;
|
|
12258
|
+
if (vnodeToCache) {
|
|
12259
|
+
var tag = vnodeToCache.tag;
|
|
12260
|
+
var componentInstance = vnodeToCache.componentInstance;
|
|
12261
|
+
var componentOptions = vnodeToCache.componentOptions;
|
|
12262
|
+
cache[keyToCache] = {
|
|
12263
|
+
name: getComponentName(componentOptions),
|
|
12264
|
+
tag: tag,
|
|
12265
|
+
componentInstance: componentInstance,
|
|
12266
|
+
};
|
|
12267
|
+
keys.push(keyToCache);
|
|
12268
|
+
// prune oldest entry
|
|
12269
|
+
if (this.max && keys.length > parseInt(this.max)) {
|
|
12270
|
+
pruneCacheEntry(cache, keys[0], keys, this._vnode);
|
|
12271
|
+
}
|
|
12272
|
+
this.vnodeToCache = null;
|
|
12273
|
+
}
|
|
12274
|
+
}
|
|
12275
|
+
},
|
|
12276
|
+
|
|
12121
12277
|
created: function created () {
|
|
12122
12278
|
this.cache = Object.create(null);
|
|
12123
12279
|
this.keys = [];
|
|
@@ -12130,16 +12286,21 @@ var KeepAlive = {
|
|
|
12130
12286
|
},
|
|
12131
12287
|
|
|
12132
12288
|
mounted: function mounted () {
|
|
12133
|
-
var this$1 = this;
|
|
12289
|
+
var this$1$1 = this;
|
|
12134
12290
|
|
|
12291
|
+
this.cacheVNode();
|
|
12135
12292
|
this.$watch('include', function (val) {
|
|
12136
|
-
pruneCache(this$1, function (name) { return matches(val, name); });
|
|
12293
|
+
pruneCache(this$1$1, function (name) { return matches(val, name); });
|
|
12137
12294
|
});
|
|
12138
12295
|
this.$watch('exclude', function (val) {
|
|
12139
|
-
pruneCache(this$1, function (name) { return !matches(val, name); });
|
|
12296
|
+
pruneCache(this$1$1, function (name) { return !matches(val, name); });
|
|
12140
12297
|
});
|
|
12141
12298
|
},
|
|
12142
12299
|
|
|
12300
|
+
updated: function updated () {
|
|
12301
|
+
this.cacheVNode();
|
|
12302
|
+
},
|
|
12303
|
+
|
|
12143
12304
|
render: function render () {
|
|
12144
12305
|
var slot = this.$slots.default;
|
|
12145
12306
|
var vnode = getFirstComponentChild(slot);
|
|
@@ -12173,12 +12334,9 @@ var KeepAlive = {
|
|
|
12173
12334
|
remove$2(keys, key);
|
|
12174
12335
|
keys.push(key);
|
|
12175
12336
|
} else {
|
|
12176
|
-
cache
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
if (this.max && keys.length > parseInt(this.max)) {
|
|
12180
|
-
pruneCacheEntry(cache, keys[0], keys, this._vnode);
|
|
12181
|
-
}
|
|
12337
|
+
// delay setting the cache until update
|
|
12338
|
+
this.vnodeToCache = vnode;
|
|
12339
|
+
this.keyToCache = key;
|
|
12182
12340
|
}
|
|
12183
12341
|
|
|
12184
12342
|
vnode.data.keepAlive = true;
|
|
@@ -12216,7 +12374,7 @@ function initGlobalAPI (Vue) {
|
|
|
12216
12374
|
defineReactive: defineReactive
|
|
12217
12375
|
};
|
|
12218
12376
|
|
|
12219
|
-
Vue.set = set
|
|
12377
|
+
Vue.set = set;
|
|
12220
12378
|
Vue.delete = del;
|
|
12221
12379
|
Vue.nextTick = nextTick;
|
|
12222
12380
|
|
|
@@ -12261,7 +12419,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
|
|
|
12261
12419
|
value: FunctionalRenderContext
|
|
12262
12420
|
});
|
|
12263
12421
|
|
|
12264
|
-
Vue.version = '2.6.
|
|
12422
|
+
Vue.version = '2.6.14';
|
|
12265
12423
|
|
|
12266
12424
|
// recursively search for possible transition defined inside the component root
|
|
12267
12425
|
function locateNode(vnode) {
|
|
@@ -12439,7 +12597,7 @@ function serializeModalOptions(options) {
|
|
|
12439
12597
|
}
|
|
12440
12598
|
|
|
12441
12599
|
function getTargetView(target) {
|
|
12442
|
-
if (isObject$
|
|
12600
|
+
if (isObject$2(target) && isDef(target.$el)) {
|
|
12443
12601
|
return target.$el.nativeView
|
|
12444
12602
|
} else if (isDef(target.nativeView)) {
|
|
12445
12603
|
return target.nativeView
|
|
@@ -12479,7 +12637,7 @@ var ModalPlugin = {
|
|
|
12479
12637
|
});
|
|
12480
12638
|
|
|
12481
12639
|
Vue.prototype.$showModal = function (component, options) {
|
|
12482
|
-
var this$1 = this;
|
|
12640
|
+
var this$1$1 = this;
|
|
12483
12641
|
|
|
12484
12642
|
return new Promise(function (resolve) {
|
|
12485
12643
|
var resolved = false;
|
|
@@ -12499,7 +12657,7 @@ var ModalPlugin = {
|
|
|
12499
12657
|
// build options object with defaults
|
|
12500
12658
|
options = Object.assign(
|
|
12501
12659
|
{
|
|
12502
|
-
target: this$1.$root
|
|
12660
|
+
target: this$1$1.$root
|
|
12503
12661
|
},
|
|
12504
12662
|
options,
|
|
12505
12663
|
{
|
|
@@ -12552,15 +12710,15 @@ function getFrameInstance(frame) {
|
|
|
12552
12710
|
// a Vue ref to a frame
|
|
12553
12711
|
// a Frame ViewNode
|
|
12554
12712
|
// or a Frame instance
|
|
12555
|
-
if (isObject$
|
|
12713
|
+
if (isObject$2(frame) && isDef(frame.$el)) {
|
|
12556
12714
|
frame = frame.$el.nativeView;
|
|
12557
|
-
} else if (isPrimitive(frame)) {
|
|
12715
|
+
} else if (isPrimitive$2(frame)) {
|
|
12558
12716
|
frame = require('@nativescript/core').Frame.getFrameById(frame);
|
|
12559
12717
|
} else if (isDef(frame.nativeView)) {
|
|
12560
12718
|
frame = frame.nativeView;
|
|
12561
12719
|
}
|
|
12562
12720
|
// finally get the component instance for this frame
|
|
12563
|
-
return getFrame(frame.id)
|
|
12721
|
+
return getFrame(frame.id, frame)
|
|
12564
12722
|
}
|
|
12565
12723
|
|
|
12566
12724
|
function findParentFrame(vm) {
|