lwc 2.5.9 → 2.6.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/dist/engine-dom/esm/es2017/engine-dom.js +52 -79
- package/dist/engine-dom/iife/es2017/engine-dom.js +52 -79
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +52 -79
- package/dist/engine-dom/iife/es5/engine-dom.js +64 -91
- package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +64 -91
- package/dist/engine-dom/umd/es2017/engine-dom.js +52 -79
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +52 -79
- package/dist/engine-dom/umd/es5/engine-dom.js +64 -91
- package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +64 -91
- package/dist/engine-server/commonjs/es2017/engine-server.js +63 -87
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
- package/dist/engine-server/esm/es2017/engine-server.js +63 -87
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +23 -130
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +23 -130
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +23 -130
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +30 -127
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +30 -127
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +23 -130
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +23 -130
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +30 -127
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +30 -127
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +11 -11
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +11 -11
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +11 -11
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +11 -11
- package/package.json +8 -8
|
@@ -15,13 +15,13 @@ var LWC = (function (exports) {
|
|
|
15
15
|
|
|
16
16
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
17
17
|
|
|
18
|
-
function _get2(
|
|
18
|
+
function _get2() { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get; } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get2.apply(this, arguments); }
|
|
19
19
|
|
|
20
20
|
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf2(object); if (object === null) break; } return object; }
|
|
21
21
|
|
|
22
22
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
23
|
|
|
24
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
25
|
|
|
26
26
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
27
|
|
|
@@ -39,7 +39,7 @@ var LWC = (function (exports) {
|
|
|
39
39
|
|
|
40
40
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
41
41
|
|
|
42
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
42
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
43
43
|
|
|
44
44
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
45
45
|
|
|
@@ -53,7 +53,7 @@ var LWC = (function (exports) {
|
|
|
53
53
|
|
|
54
54
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
55
55
|
|
|
56
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
56
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
57
57
|
|
|
58
58
|
/* proxy-compat-disable */
|
|
59
59
|
|
|
@@ -341,7 +341,7 @@ var LWC = (function (exports) {
|
|
|
341
341
|
CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
|
|
342
342
|
return attributeName;
|
|
343
343
|
}
|
|
344
|
-
/** version: 2.
|
|
344
|
+
/** version: 2.6.2 */
|
|
345
345
|
|
|
346
346
|
/*
|
|
347
347
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -453,7 +453,6 @@ var LWC = (function (exports) {
|
|
|
453
453
|
ENABLE_NODE_LIST_PATCH: null,
|
|
454
454
|
ENABLE_HTML_COLLECTIONS_PATCH: null,
|
|
455
455
|
ENABLE_NODE_PATCH: null,
|
|
456
|
-
ENABLE_NON_COMPOSED_EVENTS_LEAKAGE: null,
|
|
457
456
|
ENABLE_MIXED_SHADOW_MODE: null,
|
|
458
457
|
ENABLE_WIRE_SYNC_EMIT: null
|
|
459
458
|
};
|
|
@@ -513,7 +512,7 @@ var LWC = (function (exports) {
|
|
|
513
512
|
|
|
514
513
|
function setFeatureFlagForTest(name, value) {
|
|
515
514
|
}
|
|
516
|
-
/** version: 2.
|
|
515
|
+
/** version: 2.6.2 */
|
|
517
516
|
|
|
518
517
|
/* proxy-compat-disable */
|
|
519
518
|
|
|
@@ -1494,7 +1493,8 @@ var LWC = (function (exports) {
|
|
|
1494
1493
|
*/
|
|
1495
1494
|
|
|
1496
1495
|
var isArray = Array.isArray;
|
|
1497
|
-
var
|
|
1496
|
+
var ObjectDotPrototype = Object.prototype,
|
|
1497
|
+
_getPrototypeOf = Object.getPrototypeOf,
|
|
1498
1498
|
ObjectCreate = Object.create,
|
|
1499
1499
|
ObjectDefineProperty = Object.defineProperty,
|
|
1500
1500
|
_isExtensible = Object.isExtensible,
|
|
@@ -2008,8 +2008,6 @@ var LWC = (function (exports) {
|
|
|
2008
2008
|
return ReadOnlyHandler;
|
|
2009
2009
|
}(BaseProxyHandler);
|
|
2010
2010
|
|
|
2011
|
-
var ObjectDotPrototype = Object.prototype;
|
|
2012
|
-
|
|
2013
2011
|
function defaultValueIsObservable(value) {
|
|
2014
2012
|
// intentionally checking for null
|
|
2015
2013
|
if (value === null) {
|
|
@@ -2038,68 +2036,54 @@ var LWC = (function (exports) {
|
|
|
2038
2036
|
/* do nothing */
|
|
2039
2037
|
};
|
|
2040
2038
|
|
|
2041
|
-
var defaultValueDistortion = function defaultValueDistortion(value) {
|
|
2042
|
-
return value;
|
|
2043
|
-
};
|
|
2044
|
-
|
|
2045
2039
|
function createShadowTarget(value) {
|
|
2046
2040
|
return isArray(value) ? [] : {};
|
|
2047
2041
|
}
|
|
2048
2042
|
|
|
2049
|
-
var
|
|
2050
|
-
function
|
|
2051
|
-
|
|
2043
|
+
var ObservableMembrane = /*#__PURE__*/function () {
|
|
2044
|
+
function ObservableMembrane() {
|
|
2045
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2046
|
+
|
|
2047
|
+
_classCallCheck(this, ObservableMembrane);
|
|
2052
2048
|
|
|
2053
|
-
this.valueDistortion = defaultValueDistortion;
|
|
2054
|
-
this.valueMutated = defaultValueMutated;
|
|
2055
|
-
this.valueObserved = defaultValueObserved;
|
|
2056
|
-
this.valueIsObservable = defaultValueIsObservable;
|
|
2057
2049
|
this.readOnlyObjectGraph = new WeakMap();
|
|
2058
2050
|
this.reactiveObjectGraph = new WeakMap();
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
this.valueMutated = isFunction(_valueMutated) ? _valueMutated : defaultValueMutated;
|
|
2068
|
-
this.valueObserved = isFunction(_valueObserved) ? _valueObserved : defaultValueObserved;
|
|
2069
|
-
this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
|
|
2070
|
-
this.tagPropertyKey = tagPropertyKey;
|
|
2071
|
-
}
|
|
2051
|
+
var valueMutated = options.valueMutated,
|
|
2052
|
+
valueObserved = options.valueObserved,
|
|
2053
|
+
valueIsObservable = options.valueIsObservable,
|
|
2054
|
+
tagPropertyKey = options.tagPropertyKey;
|
|
2055
|
+
this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
|
|
2056
|
+
this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
|
|
2057
|
+
this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
|
|
2058
|
+
this.tagPropertyKey = tagPropertyKey;
|
|
2072
2059
|
}
|
|
2073
2060
|
|
|
2074
|
-
_createClass(
|
|
2061
|
+
_createClass(ObservableMembrane, [{
|
|
2075
2062
|
key: "getProxy",
|
|
2076
2063
|
value: function getProxy(value) {
|
|
2077
2064
|
var unwrappedValue = unwrap$1(value);
|
|
2078
|
-
var distorted = this.valueDistortion(unwrappedValue);
|
|
2079
2065
|
|
|
2080
|
-
if (this.valueIsObservable(
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
// we return the readonly.
|
|
2066
|
+
if (this.valueIsObservable(unwrappedValue)) {
|
|
2067
|
+
// When trying to extract the writable version of a readonly we return the readonly.
|
|
2068
|
+
if (this.readOnlyObjectGraph.get(unwrappedValue) === value) {
|
|
2084
2069
|
return value;
|
|
2085
2070
|
}
|
|
2086
2071
|
|
|
2087
|
-
return this.getReactiveHandler(unwrappedValue
|
|
2072
|
+
return this.getReactiveHandler(unwrappedValue);
|
|
2088
2073
|
}
|
|
2089
2074
|
|
|
2090
|
-
return
|
|
2075
|
+
return unwrappedValue;
|
|
2091
2076
|
}
|
|
2092
2077
|
}, {
|
|
2093
2078
|
key: "getReadOnlyProxy",
|
|
2094
2079
|
value: function getReadOnlyProxy(value) {
|
|
2095
2080
|
value = unwrap$1(value);
|
|
2096
|
-
var distorted = this.valueDistortion(value);
|
|
2097
2081
|
|
|
2098
|
-
if (this.valueIsObservable(
|
|
2099
|
-
return this.getReadOnlyHandler(value
|
|
2082
|
+
if (this.valueIsObservable(value)) {
|
|
2083
|
+
return this.getReadOnlyHandler(value);
|
|
2100
2084
|
}
|
|
2101
2085
|
|
|
2102
|
-
return
|
|
2086
|
+
return value;
|
|
2103
2087
|
}
|
|
2104
2088
|
}, {
|
|
2105
2089
|
key: "unwrapProxy",
|
|
@@ -2108,39 +2092,39 @@ var LWC = (function (exports) {
|
|
|
2108
2092
|
}
|
|
2109
2093
|
}, {
|
|
2110
2094
|
key: "getReactiveHandler",
|
|
2111
|
-
value: function getReactiveHandler(value
|
|
2112
|
-
var proxy = this.reactiveObjectGraph.get(
|
|
2095
|
+
value: function getReactiveHandler(value) {
|
|
2096
|
+
var proxy = this.reactiveObjectGraph.get(value);
|
|
2113
2097
|
|
|
2114
2098
|
if (isUndefined(proxy)) {
|
|
2115
2099
|
// caching the proxy after the first time it is accessed
|
|
2116
|
-
var handler = new ReactiveProxyHandler(this,
|
|
2117
|
-
proxy = new Proxy(createShadowTarget(
|
|
2100
|
+
var handler = new ReactiveProxyHandler(this, value);
|
|
2101
|
+
proxy = new Proxy(createShadowTarget(value), handler);
|
|
2118
2102
|
registerProxy(proxy, value);
|
|
2119
|
-
this.reactiveObjectGraph.set(
|
|
2103
|
+
this.reactiveObjectGraph.set(value, proxy);
|
|
2120
2104
|
}
|
|
2121
2105
|
|
|
2122
2106
|
return proxy;
|
|
2123
2107
|
}
|
|
2124
2108
|
}, {
|
|
2125
2109
|
key: "getReadOnlyHandler",
|
|
2126
|
-
value: function getReadOnlyHandler(value
|
|
2127
|
-
var proxy = this.readOnlyObjectGraph.get(
|
|
2110
|
+
value: function getReadOnlyHandler(value) {
|
|
2111
|
+
var proxy = this.readOnlyObjectGraph.get(value);
|
|
2128
2112
|
|
|
2129
2113
|
if (isUndefined(proxy)) {
|
|
2130
2114
|
// caching the proxy after the first time it is accessed
|
|
2131
|
-
var handler = new ReadOnlyHandler(this,
|
|
2132
|
-
proxy = new Proxy(createShadowTarget(
|
|
2115
|
+
var handler = new ReadOnlyHandler(this, value);
|
|
2116
|
+
proxy = new Proxy(createShadowTarget(value), handler);
|
|
2133
2117
|
registerProxy(proxy, value);
|
|
2134
|
-
this.readOnlyObjectGraph.set(
|
|
2118
|
+
this.readOnlyObjectGraph.set(value, proxy);
|
|
2135
2119
|
}
|
|
2136
2120
|
|
|
2137
2121
|
return proxy;
|
|
2138
2122
|
}
|
|
2139
2123
|
}]);
|
|
2140
2124
|
|
|
2141
|
-
return
|
|
2125
|
+
return ObservableMembrane;
|
|
2142
2126
|
}();
|
|
2143
|
-
/** version:
|
|
2127
|
+
/** version: 2.0.0 */
|
|
2144
2128
|
|
|
2145
2129
|
/*
|
|
2146
2130
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -2151,15 +2135,9 @@ var LWC = (function (exports) {
|
|
|
2151
2135
|
|
|
2152
2136
|
|
|
2153
2137
|
var lockerLivePropertyKey = Symbol.for('@@lockerLiveValue');
|
|
2154
|
-
|
|
2155
|
-
function valueDistortion(value) {
|
|
2156
|
-
return value;
|
|
2157
|
-
}
|
|
2158
|
-
|
|
2159
|
-
var reactiveMembrane = new ReactiveMembrane({
|
|
2138
|
+
var reactiveMembrane = new ObservableMembrane({
|
|
2160
2139
|
valueObserved: valueObserved,
|
|
2161
2140
|
valueMutated: valueMutated,
|
|
2162
|
-
valueDistortion: valueDistortion,
|
|
2163
2141
|
tagPropertyKey: lockerLivePropertyKey
|
|
2164
2142
|
});
|
|
2165
2143
|
/**
|
|
@@ -2168,16 +2146,9 @@ var LWC = (function (exports) {
|
|
|
2168
2146
|
* change or being removed.
|
|
2169
2147
|
*/
|
|
2170
2148
|
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
if (unwrapped !== value) {
|
|
2175
|
-
// if value is a proxy, unwrap to access original value and apply distortion
|
|
2176
|
-
return valueDistortion(unwrapped);
|
|
2177
|
-
}
|
|
2178
|
-
|
|
2179
|
-
return value;
|
|
2180
|
-
};
|
|
2149
|
+
function unwrap(value) {
|
|
2150
|
+
return reactiveMembrane.unwrapProxy(value);
|
|
2151
|
+
}
|
|
2181
2152
|
/*
|
|
2182
2153
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
2183
2154
|
* All rights reserved.
|
|
@@ -3029,7 +3000,7 @@ var LWC = (function (exports) {
|
|
|
3029
3000
|
return _super4.apply(this, arguments);
|
|
3030
3001
|
}
|
|
3031
3002
|
|
|
3032
|
-
return HTMLBridgeElement;
|
|
3003
|
+
return _createClass(HTMLBridgeElement);
|
|
3033
3004
|
}(SuperClass);
|
|
3034
3005
|
} else {
|
|
3035
3006
|
HTMLBridgeElement = function HTMLBridgeElement() {
|
|
@@ -3482,12 +3453,14 @@ var LWC = (function (exports) {
|
|
|
3482
3453
|
}
|
|
3483
3454
|
|
|
3484
3455
|
function updateChildrenHook(oldVnode, vnode) {
|
|
3485
|
-
var
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
}
|
|
3456
|
+
var elm = vnode.elm,
|
|
3457
|
+
children = vnode.children;
|
|
3458
|
+
|
|
3459
|
+
if (hasDynamicChildren(children)) {
|
|
3460
|
+
updateDynamicChildren(elm, oldVnode.children, children);
|
|
3461
|
+
} else {
|
|
3462
|
+
updateStaticChildren(elm, oldVnode.children, children);
|
|
3463
|
+
}
|
|
3491
3464
|
}
|
|
3492
3465
|
|
|
3493
3466
|
function allocateChildrenHook(vnode, vm) {
|
|
@@ -3675,7 +3648,7 @@ var LWC = (function (exports) {
|
|
|
3675
3648
|
return _this4;
|
|
3676
3649
|
}
|
|
3677
3650
|
|
|
3678
|
-
return LWCUpgradableElement;
|
|
3651
|
+
return _createClass(LWCUpgradableElement);
|
|
3679
3652
|
}(renderer.HTMLElement);
|
|
3680
3653
|
|
|
3681
3654
|
renderer.defineCustomElement(tagName, CE);
|
|
@@ -4527,7 +4500,7 @@ var LWC = (function (exports) {
|
|
|
4527
4500
|
if (isProfilerEnabled) {
|
|
4528
4501
|
currentDispatcher(opId, 0
|
|
4529
4502
|
/* Start */
|
|
4530
|
-
, vm.tagName, vm.idx);
|
|
4503
|
+
, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
|
|
4531
4504
|
}
|
|
4532
4505
|
}
|
|
4533
4506
|
|
|
@@ -4536,7 +4509,7 @@ var LWC = (function (exports) {
|
|
|
4536
4509
|
if (isProfilerEnabled) {
|
|
4537
4510
|
currentDispatcher(opId, 1
|
|
4538
4511
|
/* Stop */
|
|
4539
|
-
, vm.tagName, vm.idx);
|
|
4512
|
+
, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
|
|
4540
4513
|
}
|
|
4541
4514
|
}
|
|
4542
4515
|
|
|
@@ -4545,7 +4518,7 @@ var LWC = (function (exports) {
|
|
|
4545
4518
|
if (isProfilerEnabled) {
|
|
4546
4519
|
currentDispatcher(opId, 0
|
|
4547
4520
|
/* Start */
|
|
4548
|
-
, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
|
|
4521
|
+
, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
|
|
4549
4522
|
}
|
|
4550
4523
|
}
|
|
4551
4524
|
|
|
@@ -4554,7 +4527,7 @@ var LWC = (function (exports) {
|
|
|
4554
4527
|
if (isProfilerEnabled) {
|
|
4555
4528
|
currentDispatcher(opId, 1
|
|
4556
4529
|
/* Stop */
|
|
4557
|
-
, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
|
|
4530
|
+
, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
|
|
4558
4531
|
}
|
|
4559
4532
|
}
|
|
4560
4533
|
/*
|
|
@@ -5593,7 +5566,7 @@ var LWC = (function (exports) {
|
|
|
5593
5566
|
return _this5;
|
|
5594
5567
|
}
|
|
5595
5568
|
|
|
5596
|
-
return WireContextRegistrationEvent;
|
|
5569
|
+
return _createClass(WireContextRegistrationEvent);
|
|
5597
5570
|
}( /*#__PURE__*/_wrapNativeSuper(CustomEvent));
|
|
5598
5571
|
|
|
5599
5572
|
function createFieldDataCallback(vm, name) {
|
|
@@ -5927,7 +5900,7 @@ var LWC = (function (exports) {
|
|
|
5927
5900
|
hooksAreSet = true;
|
|
5928
5901
|
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
5929
5902
|
}
|
|
5930
|
-
/* version: 2.
|
|
5903
|
+
/* version: 2.6.2 */
|
|
5931
5904
|
|
|
5932
5905
|
/*
|
|
5933
5906
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5974,7 +5947,7 @@ var LWC = (function (exports) {
|
|
|
5974
5947
|
return _super7.apply(this, arguments);
|
|
5975
5948
|
}
|
|
5976
5949
|
|
|
5977
|
-
return clazz;
|
|
5950
|
+
return _createClass(clazz);
|
|
5978
5951
|
}(HTMLElementAlias);
|
|
5979
5952
|
|
|
5980
5953
|
customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
|
|
@@ -6557,7 +6530,7 @@ var LWC = (function (exports) {
|
|
|
6557
6530
|
});
|
|
6558
6531
|
freeze(LightningElement);
|
|
6559
6532
|
seal(LightningElement.prototype);
|
|
6560
|
-
/* version: 2.
|
|
6533
|
+
/* version: 2.6.2 */
|
|
6561
6534
|
|
|
6562
6535
|
exports.LightningElement = LightningElement;
|
|
6563
6536
|
exports.__unstable__ProfilerControl = profilerControl;
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
|
|
306
306
|
return attributeName;
|
|
307
307
|
}
|
|
308
|
-
/** version: 2.
|
|
308
|
+
/** version: 2.6.2 */
|
|
309
309
|
|
|
310
310
|
/*
|
|
311
311
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -419,7 +419,6 @@
|
|
|
419
419
|
ENABLE_NODE_LIST_PATCH: null,
|
|
420
420
|
ENABLE_HTML_COLLECTIONS_PATCH: null,
|
|
421
421
|
ENABLE_NODE_PATCH: null,
|
|
422
|
-
ENABLE_NON_COMPOSED_EVENTS_LEAKAGE: null,
|
|
423
422
|
ENABLE_MIXED_SHADOW_MODE: null,
|
|
424
423
|
ENABLE_WIRE_SYNC_EMIT: null
|
|
425
424
|
};
|
|
@@ -485,7 +484,7 @@
|
|
|
485
484
|
setFeatureFlag(name, value);
|
|
486
485
|
}
|
|
487
486
|
}
|
|
488
|
-
/** version: 2.
|
|
487
|
+
/** version: 2.6.2 */
|
|
489
488
|
|
|
490
489
|
/* proxy-compat-disable */
|
|
491
490
|
|
|
@@ -1932,6 +1931,7 @@
|
|
|
1932
1931
|
isArray
|
|
1933
1932
|
} = Array;
|
|
1934
1933
|
const {
|
|
1934
|
+
prototype: ObjectDotPrototype,
|
|
1935
1935
|
getPrototypeOf,
|
|
1936
1936
|
create: ObjectCreate,
|
|
1937
1937
|
defineProperty: ObjectDefineProperty,
|
|
@@ -2581,8 +2581,6 @@
|
|
|
2581
2581
|
init();
|
|
2582
2582
|
}
|
|
2583
2583
|
|
|
2584
|
-
const ObjectDotPrototype = Object.prototype;
|
|
2585
|
-
|
|
2586
2584
|
function defaultValueIsObservable(value) {
|
|
2587
2585
|
// intentionally checking for null
|
|
2588
2586
|
if (value === null) {
|
|
@@ -2610,99 +2608,85 @@
|
|
|
2610
2608
|
/* do nothing */
|
|
2611
2609
|
};
|
|
2612
2610
|
|
|
2613
|
-
const defaultValueDistortion = value => value;
|
|
2614
|
-
|
|
2615
2611
|
function createShadowTarget(value) {
|
|
2616
2612
|
return isArray(value) ? [] : {};
|
|
2617
2613
|
}
|
|
2618
2614
|
|
|
2619
|
-
class
|
|
2620
|
-
constructor(options) {
|
|
2621
|
-
this.valueDistortion = defaultValueDistortion;
|
|
2622
|
-
this.valueMutated = defaultValueMutated;
|
|
2623
|
-
this.valueObserved = defaultValueObserved;
|
|
2624
|
-
this.valueIsObservable = defaultValueIsObservable;
|
|
2615
|
+
class ObservableMembrane {
|
|
2616
|
+
constructor(options = {}) {
|
|
2625
2617
|
this.readOnlyObjectGraph = new WeakMap();
|
|
2626
2618
|
this.reactiveObjectGraph = new WeakMap();
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
|
|
2638
|
-
this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
|
|
2639
|
-
this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
|
|
2640
|
-
this.tagPropertyKey = tagPropertyKey;
|
|
2641
|
-
}
|
|
2619
|
+
const {
|
|
2620
|
+
valueMutated,
|
|
2621
|
+
valueObserved,
|
|
2622
|
+
valueIsObservable,
|
|
2623
|
+
tagPropertyKey
|
|
2624
|
+
} = options;
|
|
2625
|
+
this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
|
|
2626
|
+
this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
|
|
2627
|
+
this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
|
|
2628
|
+
this.tagPropertyKey = tagPropertyKey;
|
|
2642
2629
|
}
|
|
2643
2630
|
|
|
2644
2631
|
getProxy(value) {
|
|
2645
2632
|
const unwrappedValue = unwrap$1(value);
|
|
2646
|
-
const distorted = this.valueDistortion(unwrappedValue);
|
|
2647
2633
|
|
|
2648
|
-
if (this.valueIsObservable(
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
// we return the readonly.
|
|
2634
|
+
if (this.valueIsObservable(unwrappedValue)) {
|
|
2635
|
+
// When trying to extract the writable version of a readonly we return the readonly.
|
|
2636
|
+
if (this.readOnlyObjectGraph.get(unwrappedValue) === value) {
|
|
2652
2637
|
return value;
|
|
2653
2638
|
}
|
|
2654
2639
|
|
|
2655
|
-
return this.getReactiveHandler(unwrappedValue
|
|
2640
|
+
return this.getReactiveHandler(unwrappedValue);
|
|
2656
2641
|
}
|
|
2657
2642
|
|
|
2658
|
-
return
|
|
2643
|
+
return unwrappedValue;
|
|
2659
2644
|
}
|
|
2660
2645
|
|
|
2661
2646
|
getReadOnlyProxy(value) {
|
|
2662
2647
|
value = unwrap$1(value);
|
|
2663
|
-
const distorted = this.valueDistortion(value);
|
|
2664
2648
|
|
|
2665
|
-
if (this.valueIsObservable(
|
|
2666
|
-
return this.getReadOnlyHandler(value
|
|
2649
|
+
if (this.valueIsObservable(value)) {
|
|
2650
|
+
return this.getReadOnlyHandler(value);
|
|
2667
2651
|
}
|
|
2668
2652
|
|
|
2669
|
-
return
|
|
2653
|
+
return value;
|
|
2670
2654
|
}
|
|
2671
2655
|
|
|
2672
2656
|
unwrapProxy(p) {
|
|
2673
2657
|
return unwrap$1(p);
|
|
2674
2658
|
}
|
|
2675
2659
|
|
|
2676
|
-
getReactiveHandler(value
|
|
2677
|
-
let proxy = this.reactiveObjectGraph.get(
|
|
2660
|
+
getReactiveHandler(value) {
|
|
2661
|
+
let proxy = this.reactiveObjectGraph.get(value);
|
|
2678
2662
|
|
|
2679
2663
|
if (isUndefined(proxy)) {
|
|
2680
2664
|
// caching the proxy after the first time it is accessed
|
|
2681
|
-
const handler = new ReactiveProxyHandler(this,
|
|
2682
|
-
proxy = new Proxy(createShadowTarget(
|
|
2665
|
+
const handler = new ReactiveProxyHandler(this, value);
|
|
2666
|
+
proxy = new Proxy(createShadowTarget(value), handler);
|
|
2683
2667
|
registerProxy(proxy, value);
|
|
2684
|
-
this.reactiveObjectGraph.set(
|
|
2668
|
+
this.reactiveObjectGraph.set(value, proxy);
|
|
2685
2669
|
}
|
|
2686
2670
|
|
|
2687
2671
|
return proxy;
|
|
2688
2672
|
}
|
|
2689
2673
|
|
|
2690
|
-
getReadOnlyHandler(value
|
|
2691
|
-
let proxy = this.readOnlyObjectGraph.get(
|
|
2674
|
+
getReadOnlyHandler(value) {
|
|
2675
|
+
let proxy = this.readOnlyObjectGraph.get(value);
|
|
2692
2676
|
|
|
2693
2677
|
if (isUndefined(proxy)) {
|
|
2694
2678
|
// caching the proxy after the first time it is accessed
|
|
2695
|
-
const handler = new ReadOnlyHandler(this,
|
|
2696
|
-
proxy = new Proxy(createShadowTarget(
|
|
2679
|
+
const handler = new ReadOnlyHandler(this, value);
|
|
2680
|
+
proxy = new Proxy(createShadowTarget(value), handler);
|
|
2697
2681
|
registerProxy(proxy, value);
|
|
2698
|
-
this.readOnlyObjectGraph.set(
|
|
2682
|
+
this.readOnlyObjectGraph.set(value, proxy);
|
|
2699
2683
|
}
|
|
2700
2684
|
|
|
2701
2685
|
return proxy;
|
|
2702
2686
|
}
|
|
2703
2687
|
|
|
2704
2688
|
}
|
|
2705
|
-
/** version:
|
|
2689
|
+
/** version: 2.0.0 */
|
|
2706
2690
|
|
|
2707
2691
|
/*
|
|
2708
2692
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -2713,15 +2697,9 @@
|
|
|
2713
2697
|
|
|
2714
2698
|
|
|
2715
2699
|
const lockerLivePropertyKey = Symbol.for('@@lockerLiveValue');
|
|
2716
|
-
|
|
2717
|
-
function valueDistortion(value) {
|
|
2718
|
-
return value;
|
|
2719
|
-
}
|
|
2720
|
-
|
|
2721
|
-
const reactiveMembrane = new ReactiveMembrane({
|
|
2700
|
+
const reactiveMembrane = new ObservableMembrane({
|
|
2722
2701
|
valueObserved,
|
|
2723
2702
|
valueMutated,
|
|
2724
|
-
valueDistortion,
|
|
2725
2703
|
tagPropertyKey: lockerLivePropertyKey
|
|
2726
2704
|
});
|
|
2727
2705
|
/**
|
|
@@ -2730,16 +2708,9 @@
|
|
|
2730
2708
|
* change or being removed.
|
|
2731
2709
|
*/
|
|
2732
2710
|
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
if (unwrapped !== value) {
|
|
2737
|
-
// if value is a proxy, unwrap to access original value and apply distortion
|
|
2738
|
-
return valueDistortion(unwrapped);
|
|
2739
|
-
}
|
|
2740
|
-
|
|
2741
|
-
return value;
|
|
2742
|
-
};
|
|
2711
|
+
function unwrap(value) {
|
|
2712
|
+
return reactiveMembrane.unwrapProxy(value);
|
|
2713
|
+
}
|
|
2743
2714
|
/*
|
|
2744
2715
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
2745
2716
|
* All rights reserved.
|
|
@@ -4724,13 +4695,15 @@
|
|
|
4724
4695
|
|
|
4725
4696
|
function updateChildrenHook(oldVnode, vnode) {
|
|
4726
4697
|
const {
|
|
4727
|
-
|
|
4728
|
-
|
|
4698
|
+
elm,
|
|
4699
|
+
children
|
|
4729
4700
|
} = vnode;
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
}
|
|
4701
|
+
|
|
4702
|
+
if (hasDynamicChildren(children)) {
|
|
4703
|
+
updateDynamicChildren(elm, oldVnode.children, children);
|
|
4704
|
+
} else {
|
|
4705
|
+
updateStaticChildren(elm, oldVnode.children, children);
|
|
4706
|
+
}
|
|
4734
4707
|
}
|
|
4735
4708
|
|
|
4736
4709
|
function allocateChildrenHook(vnode, vm) {
|
|
@@ -6191,7 +6164,7 @@
|
|
|
6191
6164
|
if (isProfilerEnabled) {
|
|
6192
6165
|
currentDispatcher(opId, 0
|
|
6193
6166
|
/* Start */
|
|
6194
|
-
, vm.tagName, vm.idx);
|
|
6167
|
+
, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
|
|
6195
6168
|
}
|
|
6196
6169
|
}
|
|
6197
6170
|
|
|
@@ -6205,7 +6178,7 @@
|
|
|
6205
6178
|
if (isProfilerEnabled) {
|
|
6206
6179
|
currentDispatcher(opId, 1
|
|
6207
6180
|
/* Stop */
|
|
6208
|
-
, vm.tagName, vm.idx);
|
|
6181
|
+
, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
|
|
6209
6182
|
}
|
|
6210
6183
|
}
|
|
6211
6184
|
|
|
@@ -6219,7 +6192,7 @@
|
|
|
6219
6192
|
if (isProfilerEnabled) {
|
|
6220
6193
|
currentDispatcher(opId, 0
|
|
6221
6194
|
/* Start */
|
|
6222
|
-
, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
|
|
6195
|
+
, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
|
|
6223
6196
|
}
|
|
6224
6197
|
}
|
|
6225
6198
|
|
|
@@ -6233,7 +6206,7 @@
|
|
|
6233
6206
|
if (isProfilerEnabled) {
|
|
6234
6207
|
currentDispatcher(opId, 1
|
|
6235
6208
|
/* Stop */
|
|
6236
|
-
, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
|
|
6209
|
+
, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
|
|
6237
6210
|
}
|
|
6238
6211
|
}
|
|
6239
6212
|
/*
|
|
@@ -7814,7 +7787,7 @@
|
|
|
7814
7787
|
hooksAreSet = true;
|
|
7815
7788
|
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
7816
7789
|
}
|
|
7817
|
-
/* version: 2.
|
|
7790
|
+
/* version: 2.6.2 */
|
|
7818
7791
|
|
|
7819
7792
|
/*
|
|
7820
7793
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8470,7 +8443,7 @@
|
|
|
8470
8443
|
});
|
|
8471
8444
|
freeze(LightningElement);
|
|
8472
8445
|
seal(LightningElement.prototype);
|
|
8473
|
-
/* version: 2.
|
|
8446
|
+
/* version: 2.6.2 */
|
|
8474
8447
|
|
|
8475
8448
|
exports.LightningElement = LightningElement;
|
|
8476
8449
|
exports.__unstable__ProfilerControl = profilerControl;
|