lwc 2.12.1 → 2.13.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 +125 -152
- package/dist/engine-dom/iife/es2017/engine-dom.js +125 -152
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +113 -140
- package/dist/engine-dom/iife/es5/engine-dom.js +5757 -7328
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +4568 -5878
- package/dist/engine-dom/umd/es2017/engine-dom.js +125 -152
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +113 -140
- package/dist/engine-dom/umd/es5/engine-dom.js +5757 -7328
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +4568 -5878
- package/dist/engine-server/commonjs/es2017/engine-server.js +102 -131
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +102 -131
- 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 +13 -10
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +681 -681
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3725 -4699
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +1 -10
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3600 -4543
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +693 -693
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +13 -10
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +681 -681
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3725 -4699
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +1 -10
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3600 -4543
- 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.min.js +1 -1
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +258 -243
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +258 -243
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +258 -243
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +258 -243
- package/package.json +7 -7
|
@@ -298,9 +298,9 @@ const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
|
298
298
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
299
299
|
*/
|
|
300
300
|
// Increment whenever the LWC template compiler changes
|
|
301
|
-
const LWC_VERSION = "2.
|
|
301
|
+
const LWC_VERSION = "2.13.2";
|
|
302
302
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
303
|
-
/** version: 2.
|
|
303
|
+
/** version: 2.13.2 */
|
|
304
304
|
|
|
305
305
|
/*
|
|
306
306
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -453,7 +453,7 @@ function setFeatureFlagForTest(name, value) {
|
|
|
453
453
|
setFeatureFlag(name, value);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
/** version: 2.
|
|
456
|
+
/** version: 2.13.2 */
|
|
457
457
|
|
|
458
458
|
/* proxy-compat-disable */
|
|
459
459
|
|
|
@@ -891,6 +891,20 @@ function logWarn(message, vm) {
|
|
|
891
891
|
log('warn', message, vm);
|
|
892
892
|
}
|
|
893
893
|
|
|
894
|
+
/*
|
|
895
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
896
|
+
* All rights reserved.
|
|
897
|
+
* SPDX-License-Identifier: MIT
|
|
898
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
899
|
+
*/
|
|
900
|
+
function resolveCircularModuleDependency(fn) {
|
|
901
|
+
const module = fn();
|
|
902
|
+
return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
|
|
903
|
+
}
|
|
904
|
+
function isCircularModuleDependency(obj) {
|
|
905
|
+
return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
|
|
906
|
+
}
|
|
907
|
+
|
|
894
908
|
/*
|
|
895
909
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
896
910
|
* All rights reserved.
|
|
@@ -2256,64 +2270,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
2256
2270
|
patchLightningElementPrototypeWithRestrictions(LightningElement.prototype);
|
|
2257
2271
|
}
|
|
2258
2272
|
|
|
2259
|
-
|
|
2260
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
2261
|
-
* All rights reserved.
|
|
2262
|
-
* SPDX-License-Identifier: MIT
|
|
2263
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2264
|
-
*/
|
|
2265
|
-
/**
|
|
2266
|
-
* @wire decorator to wire fields and methods to a wire adapter in
|
|
2267
|
-
* LWC Components. This function implements the internals of this
|
|
2268
|
-
* decorator.
|
|
2269
|
-
*/
|
|
2270
|
-
function wire(_adapter, _config) {
|
|
2271
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2272
|
-
assert.fail('@wire(adapter, config?) may only be used as a decorator.');
|
|
2273
|
-
}
|
|
2274
|
-
throw new Error();
|
|
2275
|
-
}
|
|
2276
|
-
function internalWireFieldDecorator(key) {
|
|
2277
|
-
return {
|
|
2278
|
-
get() {
|
|
2279
|
-
const vm = getAssociatedVM(this);
|
|
2280
|
-
componentValueObserved(vm, key);
|
|
2281
|
-
return vm.cmpFields[key];
|
|
2282
|
-
},
|
|
2283
|
-
set(value) {
|
|
2284
|
-
const vm = getAssociatedVM(this);
|
|
2285
|
-
/**
|
|
2286
|
-
* Reactivity for wired fields is provided in wiring.
|
|
2287
|
-
* We intentionally add reactivity here since this is just
|
|
2288
|
-
* letting the author to do the wrong thing, but it will keep our
|
|
2289
|
-
* system to be backward compatible.
|
|
2290
|
-
*/
|
|
2291
|
-
if (value !== vm.cmpFields[key]) {
|
|
2292
|
-
vm.cmpFields[key] = value;
|
|
2293
|
-
componentValueMutated(vm, key);
|
|
2294
|
-
}
|
|
2295
|
-
},
|
|
2296
|
-
enumerable: true,
|
|
2297
|
-
configurable: true,
|
|
2298
|
-
};
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
/*
|
|
2302
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
2303
|
-
* All rights reserved.
|
|
2304
|
-
* SPDX-License-Identifier: MIT
|
|
2305
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2306
|
-
*/
|
|
2307
|
-
function track(target) {
|
|
2308
|
-
if (arguments.length === 1) {
|
|
2309
|
-
return reactiveMembrane.getProxy(target);
|
|
2310
|
-
}
|
|
2311
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2312
|
-
assert.fail(`@track decorator can only be used with one argument to return a trackable object, or as a decorator function.`);
|
|
2313
|
-
}
|
|
2314
|
-
throw new Error();
|
|
2315
|
-
}
|
|
2316
|
-
function internalTrackDecorator(key) {
|
|
2273
|
+
function createObservedFieldPropertyDescriptor(key) {
|
|
2317
2274
|
return {
|
|
2318
2275
|
get() {
|
|
2319
2276
|
const vm = getAssociatedVM(this);
|
|
@@ -2322,14 +2279,8 @@ function internalTrackDecorator(key) {
|
|
|
2322
2279
|
},
|
|
2323
2280
|
set(newValue) {
|
|
2324
2281
|
const vm = getAssociatedVM(this);
|
|
2325
|
-
if (
|
|
2326
|
-
|
|
2327
|
-
assert.invariant(!isInvokingRender, `${vmBeingRendered}.render() method has side effects on the state of ${vm}.${toString$1(key)}`);
|
|
2328
|
-
assert.invariant(!isUpdatingTemplate, `Updating the template of ${vmBeingRendered} has side effects on the state of ${vm}.${toString$1(key)}`);
|
|
2329
|
-
}
|
|
2330
|
-
const reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
|
|
2331
|
-
if (reactiveOrAnyValue !== vm.cmpFields[key]) {
|
|
2332
|
-
vm.cmpFields[key] = reactiveOrAnyValue;
|
|
2282
|
+
if (newValue !== vm.cmpFields[key]) {
|
|
2283
|
+
vm.cmpFields[key] = newValue;
|
|
2333
2284
|
componentValueMutated(vm, key);
|
|
2334
2285
|
}
|
|
2335
2286
|
},
|
|
@@ -2493,7 +2444,22 @@ function createPublicAccessorDescriptor(key, descriptor) {
|
|
|
2493
2444
|
};
|
|
2494
2445
|
}
|
|
2495
2446
|
|
|
2496
|
-
|
|
2447
|
+
/*
|
|
2448
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
2449
|
+
* All rights reserved.
|
|
2450
|
+
* SPDX-License-Identifier: MIT
|
|
2451
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2452
|
+
*/
|
|
2453
|
+
function track(target) {
|
|
2454
|
+
if (arguments.length === 1) {
|
|
2455
|
+
return reactiveMembrane.getProxy(target);
|
|
2456
|
+
}
|
|
2457
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2458
|
+
assert.fail(`@track decorator can only be used with one argument to return a trackable object, or as a decorator function.`);
|
|
2459
|
+
}
|
|
2460
|
+
throw new Error();
|
|
2461
|
+
}
|
|
2462
|
+
function internalTrackDecorator(key) {
|
|
2497
2463
|
return {
|
|
2498
2464
|
get() {
|
|
2499
2465
|
const vm = getAssociatedVM(this);
|
|
@@ -2502,8 +2468,56 @@ function createObservedFieldPropertyDescriptor(key) {
|
|
|
2502
2468
|
},
|
|
2503
2469
|
set(newValue) {
|
|
2504
2470
|
const vm = getAssociatedVM(this);
|
|
2505
|
-
if (
|
|
2506
|
-
|
|
2471
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2472
|
+
const vmBeingRendered = getVMBeingRendered();
|
|
2473
|
+
assert.invariant(!isInvokingRender, `${vmBeingRendered}.render() method has side effects on the state of ${vm}.${toString$1(key)}`);
|
|
2474
|
+
assert.invariant(!isUpdatingTemplate, `Updating the template of ${vmBeingRendered} has side effects on the state of ${vm}.${toString$1(key)}`);
|
|
2475
|
+
}
|
|
2476
|
+
const reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
|
|
2477
|
+
if (reactiveOrAnyValue !== vm.cmpFields[key]) {
|
|
2478
|
+
vm.cmpFields[key] = reactiveOrAnyValue;
|
|
2479
|
+
componentValueMutated(vm, key);
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2482
|
+
enumerable: true,
|
|
2483
|
+
configurable: true,
|
|
2484
|
+
};
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
/*
|
|
2488
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
2489
|
+
* All rights reserved.
|
|
2490
|
+
* SPDX-License-Identifier: MIT
|
|
2491
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2492
|
+
*/
|
|
2493
|
+
/**
|
|
2494
|
+
* @wire decorator to wire fields and methods to a wire adapter in
|
|
2495
|
+
* LWC Components. This function implements the internals of this
|
|
2496
|
+
* decorator.
|
|
2497
|
+
*/
|
|
2498
|
+
function wire(_adapter, _config) {
|
|
2499
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2500
|
+
assert.fail('@wire(adapter, config?) may only be used as a decorator.');
|
|
2501
|
+
}
|
|
2502
|
+
throw new Error();
|
|
2503
|
+
}
|
|
2504
|
+
function internalWireFieldDecorator(key) {
|
|
2505
|
+
return {
|
|
2506
|
+
get() {
|
|
2507
|
+
const vm = getAssociatedVM(this);
|
|
2508
|
+
componentValueObserved(vm, key);
|
|
2509
|
+
return vm.cmpFields[key];
|
|
2510
|
+
},
|
|
2511
|
+
set(value) {
|
|
2512
|
+
const vm = getAssociatedVM(this);
|
|
2513
|
+
/**
|
|
2514
|
+
* Reactivity for wired fields is provided in wiring.
|
|
2515
|
+
* We intentionally add reactivity here since this is just
|
|
2516
|
+
* letting the author to do the wrong thing, but it will keep our
|
|
2517
|
+
* system to be backward compatible.
|
|
2518
|
+
*/
|
|
2519
|
+
if (value !== vm.cmpFields[key]) {
|
|
2520
|
+
vm.cmpFields[key] = value;
|
|
2507
2521
|
componentValueMutated(vm, key);
|
|
2508
2522
|
}
|
|
2509
2523
|
},
|
|
@@ -2937,20 +2951,6 @@ const BaseBridgeElement = HTMLBridgeElementFactory(HTMLElementConstructor$1, get
|
|
|
2937
2951
|
freeze(BaseBridgeElement);
|
|
2938
2952
|
seal(BaseBridgeElement.prototype);
|
|
2939
2953
|
|
|
2940
|
-
/*
|
|
2941
|
-
* Copyright (c) 2020, salesforce.com, inc.
|
|
2942
|
-
* All rights reserved.
|
|
2943
|
-
* SPDX-License-Identifier: MIT
|
|
2944
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2945
|
-
*/
|
|
2946
|
-
function resolveCircularModuleDependency(fn) {
|
|
2947
|
-
const module = fn();
|
|
2948
|
-
return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
|
|
2949
|
-
}
|
|
2950
|
-
function isCircularModuleDependency(obj) {
|
|
2951
|
-
return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
|
|
2952
|
-
}
|
|
2953
|
-
|
|
2954
2954
|
/*
|
|
2955
2955
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
2956
2956
|
* All rights reserved.
|
|
@@ -4040,13 +4040,6 @@ function allocateInSlot(vm, children) {
|
|
|
4040
4040
|
slotName = ((_a = vnode.data.attrs) === null || _a === void 0 ? void 0 : _a.slot) || '';
|
|
4041
4041
|
}
|
|
4042
4042
|
const vnodes = (cmpSlots[slotName] = cmpSlots[slotName] || []);
|
|
4043
|
-
// re-keying the vnodes is necessary to avoid conflicts with default content for the slot
|
|
4044
|
-
// which might have similar keys. Each vnode will always have a key that
|
|
4045
|
-
// starts with a numeric character from compiler. In this case, we add a unique
|
|
4046
|
-
// notation for slotted vnodes keys, e.g.: `@foo:1:1`
|
|
4047
|
-
if (!isUndefined$1(vnode.key)) {
|
|
4048
|
-
vnode.key = `@${slotName}:${vnode.key}`;
|
|
4049
|
-
}
|
|
4050
4043
|
ArrayPush$1.call(vnodes, vnode);
|
|
4051
4044
|
}
|
|
4052
4045
|
if (isFalse(vm.isDirty)) {
|
|
@@ -5350,20 +5343,9 @@ function removeVM(vm) {
|
|
|
5350
5343
|
|
|
5351
5344
|
resetComponentStateWhenRemoved(vm);
|
|
5352
5345
|
}
|
|
5353
|
-
|
|
5354
|
-
function getNearestShadowAncestor(vm) {
|
|
5355
|
-
let ancestor = vm.owner;
|
|
5356
|
-
|
|
5357
|
-
while (!isNull(ancestor) && ancestor.renderMode === 0
|
|
5358
|
-
/* Light */
|
|
5359
|
-
) {
|
|
5360
|
-
ancestor = ancestor.owner;
|
|
5361
|
-
}
|
|
5362
|
-
|
|
5363
|
-
return ancestor;
|
|
5364
|
-
}
|
|
5365
|
-
|
|
5366
5346
|
function createVM(elm, ctor, options) {
|
|
5347
|
+
var _a;
|
|
5348
|
+
|
|
5367
5349
|
const {
|
|
5368
5350
|
mode,
|
|
5369
5351
|
owner,
|
|
@@ -5391,6 +5373,8 @@ function createVM(elm, ctor, options) {
|
|
|
5391
5373
|
oar: create(null),
|
|
5392
5374
|
cmpTemplate: null,
|
|
5393
5375
|
renderMode: def.renderMode,
|
|
5376
|
+
shadowMode: computeShadowMode(def, owner),
|
|
5377
|
+
nearestShadowMode: (owner === null || owner === void 0 ? void 0 : owner.shadowRoot) ? owner.shadowMode : (_a = owner === null || owner === void 0 ? void 0 : owner.nearestShadowMode) !== null && _a !== void 0 ? _a : null,
|
|
5394
5378
|
context: {
|
|
5395
5379
|
stylesheetToken: undefined,
|
|
5396
5380
|
hasTokenInClass: undefined,
|
|
@@ -5403,7 +5387,6 @@ function createVM(elm, ctor, options) {
|
|
|
5403
5387
|
},
|
|
5404
5388
|
// Properties set right after VM creation.
|
|
5405
5389
|
tro: null,
|
|
5406
|
-
shadowMode: null,
|
|
5407
5390
|
// Properties set by the LightningElement constructor.
|
|
5408
5391
|
component: null,
|
|
5409
5392
|
shadowRoot: null,
|
|
@@ -5412,7 +5395,6 @@ function createVM(elm, ctor, options) {
|
|
|
5412
5395
|
setHook,
|
|
5413
5396
|
getHook
|
|
5414
5397
|
};
|
|
5415
|
-
vm.shadowMode = computeShadowMode(vm);
|
|
5416
5398
|
vm.tro = getTemplateReactiveObserver(vm);
|
|
5417
5399
|
|
|
5418
5400
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5437,10 +5419,9 @@ function createVM(elm, ctor, options) {
|
|
|
5437
5419
|
return vm;
|
|
5438
5420
|
}
|
|
5439
5421
|
|
|
5440
|
-
function computeShadowMode(
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
} = vm;
|
|
5422
|
+
function computeShadowMode(def, owner) {
|
|
5423
|
+
var _a;
|
|
5424
|
+
|
|
5444
5425
|
let shadowMode;
|
|
5445
5426
|
|
|
5446
5427
|
if (isSyntheticShadowDefined$1) {
|
|
@@ -5463,23 +5444,13 @@ function computeShadowMode(vm) {
|
|
|
5463
5444
|
/* Native */
|
|
5464
5445
|
;
|
|
5465
5446
|
} else {
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
if
|
|
5469
|
-
|
|
5470
|
-
)
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
shadowMode = 0
|
|
5474
|
-
/* Native */
|
|
5475
|
-
;
|
|
5476
|
-
} else {
|
|
5477
|
-
// Synthetic if neither this component nor any of its ancestors are configured
|
|
5478
|
-
// to be native.
|
|
5479
|
-
shadowMode = 1
|
|
5480
|
-
/* Synthetic */
|
|
5481
|
-
;
|
|
5482
|
-
}
|
|
5447
|
+
// Transitive support for native Shadow DOM. A component in native mode
|
|
5448
|
+
// transitively opts all of its descendants into native.
|
|
5449
|
+
// Synthetic if neither this component nor any of its ancestors are configured
|
|
5450
|
+
// to be native.
|
|
5451
|
+
shadowMode = (_a = owner === null || owner === void 0 ? void 0 : owner.nearestShadowMode) !== null && _a !== void 0 ? _a : 1
|
|
5452
|
+
/* Synthetic */
|
|
5453
|
+
;
|
|
5483
5454
|
}
|
|
5484
5455
|
} else {
|
|
5485
5456
|
shadowMode = 1
|
|
@@ -6568,7 +6539,30 @@ function setHooks(hooks) {
|
|
|
6568
6539
|
hooksAreSet = true;
|
|
6569
6540
|
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
6570
6541
|
}
|
|
6571
|
-
|
|
6542
|
+
|
|
6543
|
+
/*
|
|
6544
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
6545
|
+
* All rights reserved.
|
|
6546
|
+
* SPDX-License-Identifier: MIT
|
|
6547
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
6548
|
+
*/
|
|
6549
|
+
/**
|
|
6550
|
+
* EXPERIMENTAL: This function provides access to the component constructor, given an HTMLElement.
|
|
6551
|
+
* This API is subject to change or being removed.
|
|
6552
|
+
*/
|
|
6553
|
+
function getComponentConstructor(elm) {
|
|
6554
|
+
let ctor = null;
|
|
6555
|
+
// intentionally checking for undefined due to some funky libraries patching weakmap.get
|
|
6556
|
+
// to throw when undefined.
|
|
6557
|
+
if (!isUndefined$1(elm)) {
|
|
6558
|
+
const vm = getAssociatedVMIfPresent(elm);
|
|
6559
|
+
if (!isUndefined$1(vm)) {
|
|
6560
|
+
ctor = vm.def.ctor;
|
|
6561
|
+
}
|
|
6562
|
+
}
|
|
6563
|
+
return ctor;
|
|
6564
|
+
}
|
|
6565
|
+
/* version: 2.13.2 */
|
|
6572
6566
|
|
|
6573
6567
|
/*
|
|
6574
6568
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7119,27 +7113,6 @@ function createElement(sel, options) {
|
|
|
7119
7113
|
return element;
|
|
7120
7114
|
}
|
|
7121
7115
|
|
|
7122
|
-
/*
|
|
7123
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
7124
|
-
* All rights reserved.
|
|
7125
|
-
* SPDX-License-Identifier: MIT
|
|
7126
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
7127
|
-
*/
|
|
7128
|
-
/**
|
|
7129
|
-
* EXPERIMENTAL: This function provides access to the component constructor, given an HTMLElement.
|
|
7130
|
-
* This API is subject to change or being removed.
|
|
7131
|
-
*/
|
|
7132
|
-
function getComponentConstructor(elm) {
|
|
7133
|
-
let ctor = null;
|
|
7134
|
-
if (elm instanceof HTMLElement) {
|
|
7135
|
-
const vm = getAssociatedVMIfPresent(elm);
|
|
7136
|
-
if (!isUndefined$1(vm)) {
|
|
7137
|
-
ctor = vm.def.ctor;
|
|
7138
|
-
}
|
|
7139
|
-
}
|
|
7140
|
-
return ctor;
|
|
7141
|
-
}
|
|
7142
|
-
|
|
7143
7116
|
/*
|
|
7144
7117
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
7145
7118
|
* All rights reserved.
|
|
@@ -7208,6 +7181,6 @@ defineProperty(LightningElement, 'CustomElementConstructor', {
|
|
|
7208
7181
|
});
|
|
7209
7182
|
freeze(LightningElement);
|
|
7210
7183
|
seal(LightningElement.prototype);
|
|
7211
|
-
/* version: 2.
|
|
7184
|
+
/* version: 2.13.2 */
|
|
7212
7185
|
|
|
7213
7186
|
export { LightningElement, profilerControl as __unstable__ProfilerControl, api$1 as api, deprecatedBuildCustomElementConstructor as buildCustomElementConstructor, createContextProvider, createElement, getComponentConstructor, getComponentDef, hydrateComponent, isComponentConstructor, isNodeShadowed as isNodeFromTemplate, readonly, register, registerComponent, registerDecorators, registerTemplate, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
|