lwc 2.13.0 → 2.13.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/dist/engine-dom/esm/es2017/engine-dom.js +88 -88
- package/dist/engine-dom/iife/es2017/engine-dom.js +88 -88
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +76 -76
- package/dist/engine-dom/iife/es5/engine-dom.js +87 -87
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +69 -69
- package/dist/engine-dom/umd/es2017/engine-dom.js +88 -88
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +76 -76
- package/dist/engine-dom/umd/es5/engine-dom.js +87 -87
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +69 -69
- package/dist/engine-server/commonjs/es2017/engine-server.js +88 -88
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +88 -88
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +693 -693
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +693 -693
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +681 -681
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +686 -686
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +697 -697
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +693 -693
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +681 -681
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +686 -686
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +697 -697
- 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 +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +1 -1
- 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 +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +1 -1
- package/package.json +7 -7
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
var XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
|
|
568
568
|
var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
569
569
|
var XLINK_NAMESPACE = "http://www.w3.org/1999/xlink";
|
|
570
|
-
/** version: 2.13.
|
|
570
|
+
/** version: 2.13.1 */ /*
|
|
571
571
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
572
572
|
* All rights reserved.
|
|
573
573
|
* SPDX-License-Identifier: MIT
|
|
@@ -700,7 +700,7 @@
|
|
|
700
700
|
* purposes. It is a no-op when invoked in production mode.
|
|
701
701
|
*/ function setFeatureFlagForTest(name, value) {
|
|
702
702
|
}
|
|
703
|
-
/** version: 2.13.
|
|
703
|
+
/** version: 2.13.1 */ /* proxy-compat-disable */ /*
|
|
704
704
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
705
705
|
* All rights reserved.
|
|
706
706
|
* SPDX-License-Identifier: MIT
|
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
}
|
|
725
725
|
function guid() {
|
|
726
726
|
var s4 = function s4() {
|
|
727
|
-
return Math.floor((1 + Math.random()) *
|
|
727
|
+
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
|
|
728
728
|
};
|
|
729
729
|
return s4() + s4() + "-" + s4() + "-" + s4() + "-" + s4() + "-" + s4() + s4() + s4();
|
|
730
730
|
}
|
|
@@ -1129,6 +1129,18 @@
|
|
|
1129
1129
|
function logError(message, vm9) {
|
|
1130
1130
|
log("error", message, vm9);
|
|
1131
1131
|
}
|
|
1132
|
+
/*
|
|
1133
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
1134
|
+
* All rights reserved.
|
|
1135
|
+
* SPDX-License-Identifier: MIT
|
|
1136
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1137
|
+
*/ function resolveCircularModuleDependency(fn) {
|
|
1138
|
+
var module = fn();
|
|
1139
|
+
return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
|
|
1140
|
+
}
|
|
1141
|
+
function isCircularModuleDependency(obj) {
|
|
1142
|
+
return isFunction$1(obj) && hasOwnProperty$1.call(obj, "__circular__");
|
|
1143
|
+
}
|
|
1132
1144
|
/*
|
|
1133
1145
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
1134
1146
|
* All rights reserved.
|
|
@@ -2139,53 +2151,7 @@
|
|
|
2139
2151
|
},
|
|
2140
2152
|
configurable: true
|
|
2141
2153
|
});
|
|
2142
|
-
|
|
2143
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
2144
|
-
* All rights reserved.
|
|
2145
|
-
* SPDX-License-Identifier: MIT
|
|
2146
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2147
|
-
*/ /**
|
|
2148
|
-
* @wire decorator to wire fields and methods to a wire adapter in
|
|
2149
|
-
* LWC Components. This function implements the internals of this
|
|
2150
|
-
* decorator.
|
|
2151
|
-
*/ function wire(_adapter, _config) {
|
|
2152
|
-
throw new Error();
|
|
2153
|
-
}
|
|
2154
|
-
function internalWireFieldDecorator(key) {
|
|
2155
|
-
return {
|
|
2156
|
-
get: function get1() {
|
|
2157
|
-
var vm = getAssociatedVM(this);
|
|
2158
|
-
componentValueObserved(vm, key);
|
|
2159
|
-
return vm.cmpFields[key];
|
|
2160
|
-
},
|
|
2161
|
-
set: function set1(value) {
|
|
2162
|
-
var vm = getAssociatedVM(this);
|
|
2163
|
-
/**
|
|
2164
|
-
* Reactivity for wired fields is provided in wiring.
|
|
2165
|
-
* We intentionally add reactivity here since this is just
|
|
2166
|
-
* letting the author to do the wrong thing, but it will keep our
|
|
2167
|
-
* system to be backward compatible.
|
|
2168
|
-
*/ if (value !== vm.cmpFields[key]) {
|
|
2169
|
-
vm.cmpFields[key] = value;
|
|
2170
|
-
componentValueMutated(vm, key);
|
|
2171
|
-
}
|
|
2172
|
-
},
|
|
2173
|
-
enumerable: true,
|
|
2174
|
-
configurable: true
|
|
2175
|
-
};
|
|
2176
|
-
}
|
|
2177
|
-
/*
|
|
2178
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
2179
|
-
* All rights reserved.
|
|
2180
|
-
* SPDX-License-Identifier: MIT
|
|
2181
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2182
|
-
*/ function track(target) {
|
|
2183
|
-
if (arguments.length === 1) {
|
|
2184
|
-
return reactiveMembrane.getProxy(target);
|
|
2185
|
-
}
|
|
2186
|
-
throw new Error();
|
|
2187
|
-
}
|
|
2188
|
-
function internalTrackDecorator(key) {
|
|
2154
|
+
function createObservedFieldPropertyDescriptor(key) {
|
|
2189
2155
|
return {
|
|
2190
2156
|
get: function get1() {
|
|
2191
2157
|
var vm = getAssociatedVM(this);
|
|
@@ -2194,9 +2160,8 @@
|
|
|
2194
2160
|
},
|
|
2195
2161
|
set: function set1(newValue) {
|
|
2196
2162
|
var vm = getAssociatedVM(this);
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
vm.cmpFields[key] = reactiveOrAnyValue;
|
|
2163
|
+
if (newValue !== vm.cmpFields[key]) {
|
|
2164
|
+
vm.cmpFields[key] = newValue;
|
|
2200
2165
|
componentValueMutated(vm, key);
|
|
2201
2166
|
}
|
|
2202
2167
|
},
|
|
@@ -2309,7 +2274,18 @@
|
|
|
2309
2274
|
configurable: configurable
|
|
2310
2275
|
};
|
|
2311
2276
|
}
|
|
2312
|
-
|
|
2277
|
+
/*
|
|
2278
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
2279
|
+
* All rights reserved.
|
|
2280
|
+
* SPDX-License-Identifier: MIT
|
|
2281
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2282
|
+
*/ function track(target) {
|
|
2283
|
+
if (arguments.length === 1) {
|
|
2284
|
+
return reactiveMembrane.getProxy(target);
|
|
2285
|
+
}
|
|
2286
|
+
throw new Error();
|
|
2287
|
+
}
|
|
2288
|
+
function internalTrackDecorator(key) {
|
|
2313
2289
|
return {
|
|
2314
2290
|
get: function get1() {
|
|
2315
2291
|
var vm = getAssociatedVM(this);
|
|
@@ -2318,8 +2294,44 @@
|
|
|
2318
2294
|
},
|
|
2319
2295
|
set: function set1(newValue) {
|
|
2320
2296
|
var vm = getAssociatedVM(this);
|
|
2321
|
-
|
|
2322
|
-
|
|
2297
|
+
var reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
|
|
2298
|
+
if (reactiveOrAnyValue !== vm.cmpFields[key]) {
|
|
2299
|
+
vm.cmpFields[key] = reactiveOrAnyValue;
|
|
2300
|
+
componentValueMutated(vm, key);
|
|
2301
|
+
}
|
|
2302
|
+
},
|
|
2303
|
+
enumerable: true,
|
|
2304
|
+
configurable: true
|
|
2305
|
+
};
|
|
2306
|
+
}
|
|
2307
|
+
/*
|
|
2308
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
2309
|
+
* All rights reserved.
|
|
2310
|
+
* SPDX-License-Identifier: MIT
|
|
2311
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2312
|
+
*/ /**
|
|
2313
|
+
* @wire decorator to wire fields and methods to a wire adapter in
|
|
2314
|
+
* LWC Components. This function implements the internals of this
|
|
2315
|
+
* decorator.
|
|
2316
|
+
*/ function wire(_adapter, _config) {
|
|
2317
|
+
throw new Error();
|
|
2318
|
+
}
|
|
2319
|
+
function internalWireFieldDecorator(key) {
|
|
2320
|
+
return {
|
|
2321
|
+
get: function get1() {
|
|
2322
|
+
var vm = getAssociatedVM(this);
|
|
2323
|
+
componentValueObserved(vm, key);
|
|
2324
|
+
return vm.cmpFields[key];
|
|
2325
|
+
},
|
|
2326
|
+
set: function set1(value) {
|
|
2327
|
+
var vm = getAssociatedVM(this);
|
|
2328
|
+
/**
|
|
2329
|
+
* Reactivity for wired fields is provided in wiring.
|
|
2330
|
+
* We intentionally add reactivity here since this is just
|
|
2331
|
+
* letting the author to do the wrong thing, but it will keep our
|
|
2332
|
+
* system to be backward compatible.
|
|
2333
|
+
*/ if (value !== vm.cmpFields[key]) {
|
|
2334
|
+
vm.cmpFields[key] = value;
|
|
2323
2335
|
componentValueMutated(vm, key);
|
|
2324
2336
|
}
|
|
2325
2337
|
},
|
|
@@ -2613,18 +2625,6 @@
|
|
|
2613
2625
|
var BaseBridgeElement = HTMLBridgeElementFactory(HTMLElementConstructor$1, getOwnPropertyNames$1(HTMLElementOriginalDescriptors), []);
|
|
2614
2626
|
freeze(BaseBridgeElement);
|
|
2615
2627
|
seal(BaseBridgeElement.prototype);
|
|
2616
|
-
/*
|
|
2617
|
-
* Copyright (c) 2020, salesforce.com, inc.
|
|
2618
|
-
* All rights reserved.
|
|
2619
|
-
* SPDX-License-Identifier: MIT
|
|
2620
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2621
|
-
*/ function resolveCircularModuleDependency(fn) {
|
|
2622
|
-
var module = fn();
|
|
2623
|
-
return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
|
|
2624
|
-
}
|
|
2625
|
-
function isCircularModuleDependency(obj) {
|
|
2626
|
-
return isFunction$1(obj) && hasOwnProperty$1.call(obj, "__circular__");
|
|
2627
|
-
}
|
|
2628
2628
|
function setActiveVM(vm) {
|
|
2629
2629
|
{
|
|
2630
2630
|
// this method should never leak to prod
|
|
@@ -5200,7 +5200,7 @@
|
|
|
5200
5200
|
hooksAreSet = true;
|
|
5201
5201
|
setSanitizeHtmlContentHook(hooks1.sanitizeHtmlContent);
|
|
5202
5202
|
}
|
|
5203
|
-
/* version: 2.13.
|
|
5203
|
+
/* version: 2.13.1 */ /*
|
|
5204
5204
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
5205
5205
|
* All rights reserved.
|
|
5206
5206
|
* SPDX-License-Identifier: MIT
|
|
@@ -421,9 +421,9 @@ const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
|
421
421
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
422
422
|
*/
|
|
423
423
|
// Increment whenever the LWC template compiler changes
|
|
424
|
-
const LWC_VERSION = "2.13.
|
|
424
|
+
const LWC_VERSION = "2.13.1";
|
|
425
425
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
426
|
-
/** version: 2.13.
|
|
426
|
+
/** version: 2.13.1 */
|
|
427
427
|
|
|
428
428
|
/*
|
|
429
429
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -531,7 +531,7 @@ function setFeatureFlagForTest(name, value) {
|
|
|
531
531
|
setFeatureFlag(name, value);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
/** version: 2.13.
|
|
534
|
+
/** version: 2.13.1 */
|
|
535
535
|
|
|
536
536
|
/* proxy-compat-disable */
|
|
537
537
|
|
|
@@ -939,6 +939,20 @@ function logError(message, vm) {
|
|
|
939
939
|
log('error', message, vm);
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
+
/*
|
|
943
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
944
|
+
* All rights reserved.
|
|
945
|
+
* SPDX-License-Identifier: MIT
|
|
946
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
947
|
+
*/
|
|
948
|
+
function resolveCircularModuleDependency(fn) {
|
|
949
|
+
const module = fn();
|
|
950
|
+
return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
|
|
951
|
+
}
|
|
952
|
+
function isCircularModuleDependency(obj) {
|
|
953
|
+
return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
|
|
954
|
+
}
|
|
955
|
+
|
|
942
956
|
/*
|
|
943
957
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
944
958
|
* All rights reserved.
|
|
@@ -2304,64 +2318,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
2304
2318
|
patchLightningElementPrototypeWithRestrictions(LightningElement.prototype);
|
|
2305
2319
|
}
|
|
2306
2320
|
|
|
2307
|
-
|
|
2308
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
2309
|
-
* All rights reserved.
|
|
2310
|
-
* SPDX-License-Identifier: MIT
|
|
2311
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2312
|
-
*/
|
|
2313
|
-
/**
|
|
2314
|
-
* @wire decorator to wire fields and methods to a wire adapter in
|
|
2315
|
-
* LWC Components. This function implements the internals of this
|
|
2316
|
-
* decorator.
|
|
2317
|
-
*/
|
|
2318
|
-
function wire(_adapter, _config) {
|
|
2319
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2320
|
-
assert.fail('@wire(adapter, config?) may only be used as a decorator.');
|
|
2321
|
-
}
|
|
2322
|
-
throw new Error();
|
|
2323
|
-
}
|
|
2324
|
-
function internalWireFieldDecorator(key) {
|
|
2325
|
-
return {
|
|
2326
|
-
get() {
|
|
2327
|
-
const vm = getAssociatedVM(this);
|
|
2328
|
-
componentValueObserved(vm, key);
|
|
2329
|
-
return vm.cmpFields[key];
|
|
2330
|
-
},
|
|
2331
|
-
set(value) {
|
|
2332
|
-
const vm = getAssociatedVM(this);
|
|
2333
|
-
/**
|
|
2334
|
-
* Reactivity for wired fields is provided in wiring.
|
|
2335
|
-
* We intentionally add reactivity here since this is just
|
|
2336
|
-
* letting the author to do the wrong thing, but it will keep our
|
|
2337
|
-
* system to be backward compatible.
|
|
2338
|
-
*/
|
|
2339
|
-
if (value !== vm.cmpFields[key]) {
|
|
2340
|
-
vm.cmpFields[key] = value;
|
|
2341
|
-
componentValueMutated(vm, key);
|
|
2342
|
-
}
|
|
2343
|
-
},
|
|
2344
|
-
enumerable: true,
|
|
2345
|
-
configurable: true,
|
|
2346
|
-
};
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
/*
|
|
2350
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
2351
|
-
* All rights reserved.
|
|
2352
|
-
* SPDX-License-Identifier: MIT
|
|
2353
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2354
|
-
*/
|
|
2355
|
-
function track(target) {
|
|
2356
|
-
if (arguments.length === 1) {
|
|
2357
|
-
return reactiveMembrane.getProxy(target);
|
|
2358
|
-
}
|
|
2359
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2360
|
-
assert.fail(`@track decorator can only be used with one argument to return a trackable object, or as a decorator function.`);
|
|
2361
|
-
}
|
|
2362
|
-
throw new Error();
|
|
2363
|
-
}
|
|
2364
|
-
function internalTrackDecorator(key) {
|
|
2321
|
+
function createObservedFieldPropertyDescriptor(key) {
|
|
2365
2322
|
return {
|
|
2366
2323
|
get() {
|
|
2367
2324
|
const vm = getAssociatedVM(this);
|
|
@@ -2370,14 +2327,8 @@ function internalTrackDecorator(key) {
|
|
|
2370
2327
|
},
|
|
2371
2328
|
set(newValue) {
|
|
2372
2329
|
const vm = getAssociatedVM(this);
|
|
2373
|
-
if (
|
|
2374
|
-
|
|
2375
|
-
assert.invariant(!isInvokingRender, `${vmBeingRendered}.render() method has side effects on the state of ${vm}.${toString$1(key)}`);
|
|
2376
|
-
assert.invariant(!isUpdatingTemplate, `Updating the template of ${vmBeingRendered} has side effects on the state of ${vm}.${toString$1(key)}`);
|
|
2377
|
-
}
|
|
2378
|
-
const reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
|
|
2379
|
-
if (reactiveOrAnyValue !== vm.cmpFields[key]) {
|
|
2380
|
-
vm.cmpFields[key] = reactiveOrAnyValue;
|
|
2330
|
+
if (newValue !== vm.cmpFields[key]) {
|
|
2331
|
+
vm.cmpFields[key] = newValue;
|
|
2381
2332
|
componentValueMutated(vm, key);
|
|
2382
2333
|
}
|
|
2383
2334
|
},
|
|
@@ -2541,7 +2492,22 @@ function createPublicAccessorDescriptor(key, descriptor) {
|
|
|
2541
2492
|
};
|
|
2542
2493
|
}
|
|
2543
2494
|
|
|
2544
|
-
|
|
2495
|
+
/*
|
|
2496
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
2497
|
+
* All rights reserved.
|
|
2498
|
+
* SPDX-License-Identifier: MIT
|
|
2499
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2500
|
+
*/
|
|
2501
|
+
function track(target) {
|
|
2502
|
+
if (arguments.length === 1) {
|
|
2503
|
+
return reactiveMembrane.getProxy(target);
|
|
2504
|
+
}
|
|
2505
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2506
|
+
assert.fail(`@track decorator can only be used with one argument to return a trackable object, or as a decorator function.`);
|
|
2507
|
+
}
|
|
2508
|
+
throw new Error();
|
|
2509
|
+
}
|
|
2510
|
+
function internalTrackDecorator(key) {
|
|
2545
2511
|
return {
|
|
2546
2512
|
get() {
|
|
2547
2513
|
const vm = getAssociatedVM(this);
|
|
@@ -2550,8 +2516,56 @@ function createObservedFieldPropertyDescriptor(key) {
|
|
|
2550
2516
|
},
|
|
2551
2517
|
set(newValue) {
|
|
2552
2518
|
const vm = getAssociatedVM(this);
|
|
2553
|
-
if (
|
|
2554
|
-
|
|
2519
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2520
|
+
const vmBeingRendered = getVMBeingRendered();
|
|
2521
|
+
assert.invariant(!isInvokingRender, `${vmBeingRendered}.render() method has side effects on the state of ${vm}.${toString$1(key)}`);
|
|
2522
|
+
assert.invariant(!isUpdatingTemplate, `Updating the template of ${vmBeingRendered} has side effects on the state of ${vm}.${toString$1(key)}`);
|
|
2523
|
+
}
|
|
2524
|
+
const reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
|
|
2525
|
+
if (reactiveOrAnyValue !== vm.cmpFields[key]) {
|
|
2526
|
+
vm.cmpFields[key] = reactiveOrAnyValue;
|
|
2527
|
+
componentValueMutated(vm, key);
|
|
2528
|
+
}
|
|
2529
|
+
},
|
|
2530
|
+
enumerable: true,
|
|
2531
|
+
configurable: true,
|
|
2532
|
+
};
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
/*
|
|
2536
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
2537
|
+
* All rights reserved.
|
|
2538
|
+
* SPDX-License-Identifier: MIT
|
|
2539
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2540
|
+
*/
|
|
2541
|
+
/**
|
|
2542
|
+
* @wire decorator to wire fields and methods to a wire adapter in
|
|
2543
|
+
* LWC Components. This function implements the internals of this
|
|
2544
|
+
* decorator.
|
|
2545
|
+
*/
|
|
2546
|
+
function wire(_adapter, _config) {
|
|
2547
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2548
|
+
assert.fail('@wire(adapter, config?) may only be used as a decorator.');
|
|
2549
|
+
}
|
|
2550
|
+
throw new Error();
|
|
2551
|
+
}
|
|
2552
|
+
function internalWireFieldDecorator(key) {
|
|
2553
|
+
return {
|
|
2554
|
+
get() {
|
|
2555
|
+
const vm = getAssociatedVM(this);
|
|
2556
|
+
componentValueObserved(vm, key);
|
|
2557
|
+
return vm.cmpFields[key];
|
|
2558
|
+
},
|
|
2559
|
+
set(value) {
|
|
2560
|
+
const vm = getAssociatedVM(this);
|
|
2561
|
+
/**
|
|
2562
|
+
* Reactivity for wired fields is provided in wiring.
|
|
2563
|
+
* We intentionally add reactivity here since this is just
|
|
2564
|
+
* letting the author to do the wrong thing, but it will keep our
|
|
2565
|
+
* system to be backward compatible.
|
|
2566
|
+
*/
|
|
2567
|
+
if (value !== vm.cmpFields[key]) {
|
|
2568
|
+
vm.cmpFields[key] = value;
|
|
2555
2569
|
componentValueMutated(vm, key);
|
|
2556
2570
|
}
|
|
2557
2571
|
},
|
|
@@ -2985,20 +2999,6 @@ const BaseBridgeElement = HTMLBridgeElementFactory(HTMLElementConstructor, getOw
|
|
|
2985
2999
|
freeze(BaseBridgeElement);
|
|
2986
3000
|
seal(BaseBridgeElement.prototype);
|
|
2987
3001
|
|
|
2988
|
-
/*
|
|
2989
|
-
* Copyright (c) 2020, salesforce.com, inc.
|
|
2990
|
-
* All rights reserved.
|
|
2991
|
-
* SPDX-License-Identifier: MIT
|
|
2992
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2993
|
-
*/
|
|
2994
|
-
function resolveCircularModuleDependency(fn) {
|
|
2995
|
-
const module = fn();
|
|
2996
|
-
return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
|
|
2997
|
-
}
|
|
2998
|
-
function isCircularModuleDependency(obj) {
|
|
2999
|
-
return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
|
|
3000
|
-
}
|
|
3001
|
-
|
|
3002
3002
|
/*
|
|
3003
3003
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
3004
3004
|
* All rights reserved.
|
|
@@ -6145,7 +6145,7 @@ function setHooks(hooks) {
|
|
|
6145
6145
|
hooksAreSet = true;
|
|
6146
6146
|
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
6147
6147
|
}
|
|
6148
|
-
/* version: 2.13.
|
|
6148
|
+
/* version: 2.13.1 */
|
|
6149
6149
|
|
|
6150
6150
|
/*
|
|
6151
6151
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -6612,7 +6612,7 @@ function renderComponent(tagName, Ctor, props = {}) {
|
|
|
6612
6612
|
*/
|
|
6613
6613
|
freeze(LightningElement);
|
|
6614
6614
|
seal(LightningElement.prototype);
|
|
6615
|
-
/* version: 2.13.
|
|
6615
|
+
/* version: 2.13.1 */
|
|
6616
6616
|
|
|
6617
6617
|
exports.LightningElement = LightningElement;
|
|
6618
6618
|
exports.api = api$1;
|