lwc 2.20.3 → 2.20.4
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 +5 -5
- package/dist/engine-dom/iife/es2017/engine-dom.js +5 -5
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +3 -3
- package/dist/engine-dom/iife/es5/engine-dom.js +5 -5
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +3 -3
- package/dist/engine-dom/umd/es2017/engine-dom.js +5 -5
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +3 -3
- package/dist/engine-dom/umd/es5/engine-dom.js +5 -5
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +3 -3
- package/dist/engine-server/commonjs/es2017/engine-server.js +108 -94
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +108 -94
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
- 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 +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- 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 +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/package.json +7 -7
|
@@ -415,9 +415,9 @@ function htmlEscape(str, attrMode = false) {
|
|
|
415
415
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
416
416
|
*/
|
|
417
417
|
// Increment whenever the LWC template compiler changes
|
|
418
|
-
const LWC_VERSION = "2.20.
|
|
418
|
+
const LWC_VERSION = "2.20.4";
|
|
419
419
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
420
|
-
/** version: 2.20.
|
|
420
|
+
/** version: 2.20.4 */
|
|
421
421
|
|
|
422
422
|
/*
|
|
423
423
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -526,7 +526,7 @@ function setFeatureFlagForTest(name, value) {
|
|
|
526
526
|
setFeatureFlag(name, value);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
/** version: 2.20.
|
|
529
|
+
/** version: 2.20.4 */
|
|
530
530
|
|
|
531
531
|
/* proxy-compat-disable */
|
|
532
532
|
|
|
@@ -6277,7 +6277,7 @@ function freezeTemplate(tmpl) {
|
|
|
6277
6277
|
});
|
|
6278
6278
|
}
|
|
6279
6279
|
}
|
|
6280
|
-
/* version: 2.20.
|
|
6280
|
+
/* version: 2.20.4 */
|
|
6281
6281
|
|
|
6282
6282
|
/*
|
|
6283
6283
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -6285,6 +6285,16 @@ function freezeTemplate(tmpl) {
|
|
|
6285
6285
|
* SPDX-License-Identifier: MIT
|
|
6286
6286
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
6287
6287
|
*/
|
|
6288
|
+
// We use Symbols as the keys for HostElement properties to avoid conflicting
|
|
6289
|
+
// with public component properties defined by a component author.
|
|
6290
|
+
const HostNamespaceKey = Symbol('namespace');
|
|
6291
|
+
const HostTypeKey = Symbol('type');
|
|
6292
|
+
const HostParentKey = Symbol('parent');
|
|
6293
|
+
const HostShadowRootKey = Symbol('shadow-root');
|
|
6294
|
+
const HostChildrenKey = Symbol('children');
|
|
6295
|
+
const HostAttributesKey = Symbol('attributes');
|
|
6296
|
+
const HostEventListenersKey = Symbol('event-listeners');
|
|
6297
|
+
const HostValueKey = Symbol('value');
|
|
6288
6298
|
var HostNodeType;
|
|
6289
6299
|
(function (HostNodeType) {
|
|
6290
6300
|
HostNodeType["Text"] = "text";
|
|
@@ -6319,16 +6329,16 @@ function unsupportedMethod(name) {
|
|
|
6319
6329
|
throw new TypeError(`"${name}" is not supported in this environment`);
|
|
6320
6330
|
};
|
|
6321
6331
|
}
|
|
6322
|
-
function createElement(
|
|
6332
|
+
function createElement(tagName, namespace) {
|
|
6323
6333
|
return {
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6334
|
+
[HostTypeKey]: HostNodeType.Element,
|
|
6335
|
+
tagName,
|
|
6336
|
+
[HostNamespaceKey]: namespace !== null && namespace !== void 0 ? namespace : HTML_NAMESPACE,
|
|
6337
|
+
[HostParentKey]: null,
|
|
6338
|
+
[HostShadowRootKey]: null,
|
|
6339
|
+
[HostChildrenKey]: [],
|
|
6340
|
+
[HostAttributesKey]: [],
|
|
6341
|
+
[HostEventListenersKey]: {},
|
|
6332
6342
|
};
|
|
6333
6343
|
}
|
|
6334
6344
|
const registry = create(null);
|
|
@@ -6343,11 +6353,11 @@ function registerCustomElement(name, ctor) {
|
|
|
6343
6353
|
class HTMLElementImpl {
|
|
6344
6354
|
constructor() {
|
|
6345
6355
|
const { constructor } = this;
|
|
6346
|
-
const
|
|
6347
|
-
if (!
|
|
6356
|
+
const tagName = reverseRegistry.get(constructor);
|
|
6357
|
+
if (!tagName) {
|
|
6348
6358
|
throw new TypeError(`Invalid Construction`);
|
|
6349
6359
|
}
|
|
6350
|
-
return createElement(
|
|
6360
|
+
return createElement(tagName);
|
|
6351
6361
|
}
|
|
6352
6362
|
}
|
|
6353
6363
|
const ssr = true;
|
|
@@ -6357,73 +6367,74 @@ function isHydrating() {
|
|
|
6357
6367
|
const isNativeShadowDefined = false;
|
|
6358
6368
|
const isSyntheticShadowDefined = false;
|
|
6359
6369
|
function insert(node, parent, anchor) {
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6370
|
+
const nodeParent = node[HostParentKey];
|
|
6371
|
+
if (nodeParent !== null && nodeParent !== parent) {
|
|
6372
|
+
const nodeIndex = nodeParent[HostChildrenKey].indexOf(node);
|
|
6373
|
+
nodeParent[HostChildrenKey].splice(nodeIndex, 1);
|
|
6363
6374
|
}
|
|
6364
|
-
node
|
|
6365
|
-
const anchorIndex = isNull(anchor) ? -1 : parent.
|
|
6375
|
+
node[HostParentKey] = parent;
|
|
6376
|
+
const anchorIndex = isNull(anchor) ? -1 : parent[HostChildrenKey].indexOf(anchor);
|
|
6366
6377
|
if (anchorIndex === -1) {
|
|
6367
|
-
parent.
|
|
6378
|
+
parent[HostChildrenKey].push(node);
|
|
6368
6379
|
}
|
|
6369
6380
|
else {
|
|
6370
|
-
parent.
|
|
6381
|
+
parent[HostChildrenKey].splice(anchorIndex, 0, node);
|
|
6371
6382
|
}
|
|
6372
6383
|
}
|
|
6373
6384
|
function remove(node, parent) {
|
|
6374
|
-
const nodeIndex = parent.
|
|
6375
|
-
parent.
|
|
6385
|
+
const nodeIndex = parent[HostChildrenKey].indexOf(node);
|
|
6386
|
+
parent[HostChildrenKey].splice(nodeIndex, 1);
|
|
6376
6387
|
}
|
|
6377
6388
|
function cloneNode(node) {
|
|
6378
6389
|
return node;
|
|
6379
6390
|
}
|
|
6380
6391
|
function createFragment(html) {
|
|
6381
6392
|
return {
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6393
|
+
[HostTypeKey]: HostNodeType.Raw,
|
|
6394
|
+
[HostParentKey]: null,
|
|
6395
|
+
[HostValueKey]: html,
|
|
6385
6396
|
};
|
|
6386
6397
|
}
|
|
6387
6398
|
function createText(content) {
|
|
6388
6399
|
return {
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6400
|
+
[HostTypeKey]: HostNodeType.Text,
|
|
6401
|
+
[HostValueKey]: String(content),
|
|
6402
|
+
[HostParentKey]: null,
|
|
6392
6403
|
};
|
|
6393
6404
|
}
|
|
6394
6405
|
function createComment(content) {
|
|
6395
6406
|
return {
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6407
|
+
[HostTypeKey]: HostNodeType.Comment,
|
|
6408
|
+
[HostValueKey]: content,
|
|
6409
|
+
[HostParentKey]: null,
|
|
6399
6410
|
};
|
|
6400
6411
|
}
|
|
6401
6412
|
function nextSibling(node) {
|
|
6402
|
-
const
|
|
6413
|
+
const parent = node[HostParentKey];
|
|
6403
6414
|
if (isNull(parent)) {
|
|
6404
6415
|
return null;
|
|
6405
6416
|
}
|
|
6406
|
-
const nodeIndex = parent.
|
|
6407
|
-
return parent
|
|
6417
|
+
const nodeIndex = parent[HostChildrenKey].indexOf(node);
|
|
6418
|
+
return parent[HostChildrenKey][nodeIndex + 1] || null;
|
|
6408
6419
|
}
|
|
6409
6420
|
function attachShadow(element, config) {
|
|
6410
|
-
element
|
|
6411
|
-
|
|
6412
|
-
|
|
6421
|
+
element[HostShadowRootKey] = {
|
|
6422
|
+
[HostTypeKey]: HostNodeType.ShadowRoot,
|
|
6423
|
+
[HostChildrenKey]: [],
|
|
6413
6424
|
mode: config.mode,
|
|
6414
6425
|
delegatesFocus: !!config.delegatesFocus,
|
|
6415
6426
|
};
|
|
6416
|
-
return element
|
|
6427
|
+
return element[HostShadowRootKey];
|
|
6417
6428
|
}
|
|
6418
6429
|
function getProperty(node, key) {
|
|
6419
6430
|
var _a, _b;
|
|
6420
6431
|
if (key in node) {
|
|
6421
6432
|
return node[key];
|
|
6422
6433
|
}
|
|
6423
|
-
if (node
|
|
6434
|
+
if (node[HostTypeKey] === HostNodeType.Element) {
|
|
6424
6435
|
const attrName = htmlPropertyToAttribute(key);
|
|
6425
6436
|
// Handle all the boolean properties.
|
|
6426
|
-
if (isBooleanAttribute(attrName, node.
|
|
6437
|
+
if (isBooleanAttribute(attrName, node.tagName)) {
|
|
6427
6438
|
return (_a = getAttribute(node, attrName)) !== null && _a !== void 0 ? _a : false;
|
|
6428
6439
|
}
|
|
6429
6440
|
// Handle global html attributes and AOM.
|
|
@@ -6432,7 +6443,7 @@ function getProperty(node, key) {
|
|
|
6432
6443
|
}
|
|
6433
6444
|
// Handle special elements live bindings. The checked property is already handled above
|
|
6434
6445
|
// in the boolean case.
|
|
6435
|
-
if (node.
|
|
6446
|
+
if (node.tagName === 'input' && key === 'value') {
|
|
6436
6447
|
return (_b = getAttribute(node, 'value')) !== null && _b !== void 0 ? _b : '';
|
|
6437
6448
|
}
|
|
6438
6449
|
}
|
|
@@ -6445,20 +6456,20 @@ function setProperty(node, key, value) {
|
|
|
6445
6456
|
if (key in node) {
|
|
6446
6457
|
return (node[key] = value);
|
|
6447
6458
|
}
|
|
6448
|
-
if (node
|
|
6459
|
+
if (node[HostTypeKey] === HostNodeType.Element) {
|
|
6449
6460
|
const attrName = htmlPropertyToAttribute(key);
|
|
6450
6461
|
if (key === 'innerHTML') {
|
|
6451
|
-
node
|
|
6462
|
+
node[HostChildrenKey] = [
|
|
6452
6463
|
{
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
value,
|
|
6464
|
+
[HostTypeKey]: HostNodeType.Raw,
|
|
6465
|
+
[HostParentKey]: node,
|
|
6466
|
+
[HostValueKey]: value,
|
|
6456
6467
|
},
|
|
6457
6468
|
];
|
|
6458
6469
|
return;
|
|
6459
6470
|
}
|
|
6460
6471
|
// Handle all the boolean properties.
|
|
6461
|
-
if (isBooleanAttribute(attrName, node.
|
|
6472
|
+
if (isBooleanAttribute(attrName, node.tagName)) {
|
|
6462
6473
|
return value === true
|
|
6463
6474
|
? setAttribute(node, attrName, '')
|
|
6464
6475
|
: removeAttribute(node, attrName);
|
|
@@ -6469,7 +6480,7 @@ function setProperty(node, key, value) {
|
|
|
6469
6480
|
}
|
|
6470
6481
|
// Handle special elements live bindings. The checked property is already handled above
|
|
6471
6482
|
// in the boolean case.
|
|
6472
|
-
if (node.
|
|
6483
|
+
if (node.tagName === 'input' && attrName === 'value') {
|
|
6473
6484
|
return isNull(value) || isUndefined$1(value)
|
|
6474
6485
|
? removeAttribute(node, 'value')
|
|
6475
6486
|
: setAttribute(node, 'value', value);
|
|
@@ -6481,32 +6492,32 @@ function setProperty(node, key, value) {
|
|
|
6481
6492
|
}
|
|
6482
6493
|
}
|
|
6483
6494
|
function setText(node, content) {
|
|
6484
|
-
if (node
|
|
6485
|
-
node
|
|
6495
|
+
if (node[HostTypeKey] === HostNodeType.Text) {
|
|
6496
|
+
node[HostValueKey] = content;
|
|
6486
6497
|
}
|
|
6487
|
-
else if (node
|
|
6488
|
-
node
|
|
6498
|
+
else if (node[HostTypeKey] === HostNodeType.Element) {
|
|
6499
|
+
node[HostChildrenKey] = [
|
|
6489
6500
|
{
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6501
|
+
[HostTypeKey]: HostNodeType.Text,
|
|
6502
|
+
[HostParentKey]: node,
|
|
6503
|
+
[HostValueKey]: content,
|
|
6493
6504
|
},
|
|
6494
6505
|
];
|
|
6495
6506
|
}
|
|
6496
6507
|
}
|
|
6497
6508
|
function getAttribute(element, name, namespace = null) {
|
|
6498
|
-
const attribute = element.
|
|
6509
|
+
const attribute = element[HostAttributesKey].find((attr) => attr.name === name && attr[HostNamespaceKey] === namespace);
|
|
6499
6510
|
return attribute ? attribute.value : null;
|
|
6500
6511
|
}
|
|
6501
6512
|
function setAttribute(element, name, value, namespace = null) {
|
|
6502
|
-
const attribute = element.
|
|
6513
|
+
const attribute = element[HostAttributesKey].find((attr) => attr.name === name && attr[HostNamespaceKey] === namespace);
|
|
6503
6514
|
if (isUndefined$1(namespace)) {
|
|
6504
6515
|
namespace = null;
|
|
6505
6516
|
}
|
|
6506
6517
|
if (isUndefined$1(attribute)) {
|
|
6507
|
-
element.
|
|
6518
|
+
element[HostAttributesKey].push({
|
|
6508
6519
|
name,
|
|
6509
|
-
namespace,
|
|
6520
|
+
[HostNamespaceKey]: namespace,
|
|
6510
6521
|
value: String(value),
|
|
6511
6522
|
});
|
|
6512
6523
|
}
|
|
@@ -6515,18 +6526,18 @@ function setAttribute(element, name, value, namespace = null) {
|
|
|
6515
6526
|
}
|
|
6516
6527
|
}
|
|
6517
6528
|
function removeAttribute(element, name, namespace) {
|
|
6518
|
-
element
|
|
6529
|
+
element[HostAttributesKey] = element[HostAttributesKey].filter((attr) => attr.name !== name && attr[HostNamespaceKey] !== namespace);
|
|
6519
6530
|
}
|
|
6520
6531
|
function getClassList(element) {
|
|
6521
6532
|
function getClassAttribute() {
|
|
6522
|
-
let classAttribute = element.
|
|
6533
|
+
let classAttribute = element[HostAttributesKey].find((attr) => attr.name === 'class' && isNull(attr[HostNamespaceKey]));
|
|
6523
6534
|
if (isUndefined$1(classAttribute)) {
|
|
6524
6535
|
classAttribute = {
|
|
6525
6536
|
name: 'class',
|
|
6526
|
-
|
|
6537
|
+
[HostNamespaceKey]: null,
|
|
6527
6538
|
value: '',
|
|
6528
6539
|
};
|
|
6529
|
-
element.
|
|
6540
|
+
element[HostAttributesKey].push(classAttribute);
|
|
6530
6541
|
}
|
|
6531
6542
|
return classAttribute;
|
|
6532
6543
|
}
|
|
@@ -6546,12 +6557,12 @@ function getClassList(element) {
|
|
|
6546
6557
|
};
|
|
6547
6558
|
}
|
|
6548
6559
|
function setCSSStyleProperty(element, name, value, important) {
|
|
6549
|
-
const styleAttribute = element.
|
|
6560
|
+
const styleAttribute = element[HostAttributesKey].find((attr) => attr.name === 'style' && isNull(attr[HostNamespaceKey]));
|
|
6550
6561
|
const serializedProperty = `${name}: ${value}${important ? ' !important' : ''}`;
|
|
6551
6562
|
if (isUndefined$1(styleAttribute)) {
|
|
6552
|
-
element.
|
|
6563
|
+
element[HostAttributesKey].push({
|
|
6553
6564
|
name: 'style',
|
|
6554
|
-
|
|
6565
|
+
[HostNamespaceKey]: null,
|
|
6555
6566
|
value: serializedProperty,
|
|
6556
6567
|
});
|
|
6557
6568
|
}
|
|
@@ -6560,7 +6571,7 @@ function setCSSStyleProperty(element, name, value, important) {
|
|
|
6560
6571
|
}
|
|
6561
6572
|
}
|
|
6562
6573
|
function isConnected(node) {
|
|
6563
|
-
return !isNull(node
|
|
6574
|
+
return !isNull(node[HostParentKey]);
|
|
6564
6575
|
}
|
|
6565
6576
|
// Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
|
|
6566
6577
|
// synthetic shadow.
|
|
@@ -6648,13 +6659,13 @@ function serializeAttributes(attributes) {
|
|
|
6648
6659
|
function serializeChildNodes(children) {
|
|
6649
6660
|
return children
|
|
6650
6661
|
.map((child) => {
|
|
6651
|
-
switch (child
|
|
6662
|
+
switch (child[HostTypeKey]) {
|
|
6652
6663
|
case HostNodeType.Text:
|
|
6653
|
-
return child
|
|
6664
|
+
return child[HostValueKey] === '' ? '\u200D' : htmlEscape(child[HostValueKey]);
|
|
6654
6665
|
case HostNodeType.Comment:
|
|
6655
|
-
return `<!--${htmlEscape(child
|
|
6666
|
+
return `<!--${htmlEscape(child[HostValueKey])}-->`;
|
|
6656
6667
|
case HostNodeType.Raw:
|
|
6657
|
-
return child
|
|
6668
|
+
return child[HostValueKey];
|
|
6658
6669
|
case HostNodeType.Element:
|
|
6659
6670
|
return serializeElement(child);
|
|
6660
6671
|
}
|
|
@@ -6666,27 +6677,30 @@ function serializeShadowRoot(shadowRoot) {
|
|
|
6666
6677
|
if (shadowRoot.delegatesFocus) {
|
|
6667
6678
|
attrs.push('shadowrootdelegatesfocus');
|
|
6668
6679
|
}
|
|
6669
|
-
return `<template ${attrs.join(' ')}>${serializeChildNodes(shadowRoot
|
|
6680
|
+
return `<template ${attrs.join(' ')}>${serializeChildNodes(shadowRoot[HostChildrenKey])}</template>`;
|
|
6670
6681
|
}
|
|
6671
6682
|
function serializeElement(element) {
|
|
6672
6683
|
let output = '';
|
|
6673
|
-
const
|
|
6684
|
+
const tagName = element.tagName;
|
|
6685
|
+
const namespace = element[HostNamespaceKey];
|
|
6674
6686
|
const isForeignElement = namespace !== HTML_NAMESPACE;
|
|
6675
|
-
const hasChildren = element.
|
|
6676
|
-
const attrs = element.
|
|
6677
|
-
|
|
6687
|
+
const hasChildren = element[HostChildrenKey].length > 0;
|
|
6688
|
+
const attrs = element[HostAttributesKey].length
|
|
6689
|
+
? ` ${serializeAttributes(element[HostAttributesKey])}`
|
|
6690
|
+
: '';
|
|
6691
|
+
output += `<${tagName}${attrs}`;
|
|
6678
6692
|
// Note that foreign elements can have children but not shadow roots
|
|
6679
6693
|
if (isForeignElement && !hasChildren) {
|
|
6680
6694
|
output += '/>';
|
|
6681
6695
|
return output;
|
|
6682
6696
|
}
|
|
6683
6697
|
output += '>';
|
|
6684
|
-
if (element
|
|
6685
|
-
output += serializeShadowRoot(element
|
|
6698
|
+
if (element[HostShadowRootKey]) {
|
|
6699
|
+
output += serializeShadowRoot(element[HostShadowRootKey]);
|
|
6686
6700
|
}
|
|
6687
|
-
output += serializeChildNodes(element
|
|
6688
|
-
if (!isVoidElement(
|
|
6689
|
-
output += `</${
|
|
6701
|
+
output += serializeChildNodes(element[HostChildrenKey]);
|
|
6702
|
+
if (!isVoidElement(tagName, namespace) || hasChildren) {
|
|
6703
|
+
output += `</${tagName}>`;
|
|
6690
6704
|
}
|
|
6691
6705
|
return output;
|
|
6692
6706
|
}
|
|
@@ -6698,14 +6712,14 @@ function serializeElement(element) {
|
|
|
6698
6712
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
6699
6713
|
*/
|
|
6700
6714
|
const FakeRootElement = {
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6715
|
+
[HostTypeKey]: HostNodeType.Element,
|
|
6716
|
+
tagName: 'fake-root-element',
|
|
6717
|
+
[HostNamespaceKey]: HTML_NAMESPACE,
|
|
6718
|
+
[HostParentKey]: null,
|
|
6719
|
+
[HostShadowRootKey]: null,
|
|
6720
|
+
[HostChildrenKey]: [],
|
|
6721
|
+
[HostAttributesKey]: [],
|
|
6722
|
+
[HostEventListenersKey]: {},
|
|
6709
6723
|
};
|
|
6710
6724
|
function renderComponent(tagName, Ctor, props = {}) {
|
|
6711
6725
|
if (!isString(tagName)) {
|
|
@@ -6726,7 +6740,7 @@ function renderComponent(tagName, Ctor, props = {}) {
|
|
|
6726
6740
|
for (const [key, value] of Object.entries(props)) {
|
|
6727
6741
|
element[key] = value;
|
|
6728
6742
|
}
|
|
6729
|
-
element
|
|
6743
|
+
element[HostParentKey] = FakeRootElement;
|
|
6730
6744
|
connectRootElement(element);
|
|
6731
6745
|
return serializeElement(element);
|
|
6732
6746
|
}
|
|
@@ -6739,6 +6753,6 @@ function renderComponent(tagName, Ctor, props = {}) {
|
|
|
6739
6753
|
*/
|
|
6740
6754
|
freeze(LightningElement);
|
|
6741
6755
|
seal(LightningElement.prototype);
|
|
6742
|
-
/* version: 2.20.
|
|
6756
|
+
/* version: 2.20.4 */
|
|
6743
6757
|
|
|
6744
6758
|
export { LightningElement, api$1 as api, createContextProvider, freezeTemplate, getComponentDef, isComponentConstructor, parseFragment, parseFragment as parseSVGFragment, readonly, register, registerComponent, registerDecorators, registerTemplate, renderComponent, renderer, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, track, unwrap, wire };
|
|
@@ -148,7 +148,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
|
148
148
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
|
149
149
|
// we can't use typeof since it will fail when transpiling.
|
|
150
150
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
151
|
-
/** version: 2.20.
|
|
151
|
+
/** version: 2.20.4 */
|
|
152
152
|
|
|
153
153
|
/*
|
|
154
154
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1124,7 +1124,7 @@ if (!_globalThis.lwcRuntimeFlags) {
|
|
|
1124
1124
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1125
1125
|
}
|
|
1126
1126
|
const runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1127
|
-
/** version: 2.20.
|
|
1127
|
+
/** version: 2.20.4 */
|
|
1128
1128
|
|
|
1129
1129
|
/*
|
|
1130
1130
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5111,4 +5111,4 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
|
|
|
5111
5111
|
}));
|
|
5112
5112
|
});
|
|
5113
5113
|
}
|
|
5114
|
-
/** version: 2.20.
|
|
5114
|
+
/** version: 2.20.4 */
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
|
152
152
|
// we can't use typeof since it will fail when transpiling.
|
|
153
153
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
154
|
-
/** version: 2.20.
|
|
154
|
+
/** version: 2.20.4 */
|
|
155
155
|
|
|
156
156
|
/*
|
|
157
157
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1127,7 +1127,7 @@
|
|
|
1127
1127
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1128
1128
|
}
|
|
1129
1129
|
const runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1130
|
-
/** version: 2.20.
|
|
1130
|
+
/** version: 2.20.4 */
|
|
1131
1131
|
|
|
1132
1132
|
/*
|
|
1133
1133
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5114,6 +5114,6 @@
|
|
|
5114
5114
|
}));
|
|
5115
5115
|
});
|
|
5116
5116
|
}
|
|
5117
|
-
/** version: 2.20.
|
|
5117
|
+
/** version: 2.20.4 */
|
|
5118
5118
|
|
|
5119
5119
|
})();
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
const KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
88
88
|
const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
89
89
|
const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
90
|
-
/** version: 2.20.
|
|
90
|
+
/** version: 2.20.4 */
|
|
91
91
|
|
|
92
92
|
/*
|
|
93
93
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1049,7 +1049,7 @@
|
|
|
1049
1049
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1050
1050
|
}
|
|
1051
1051
|
const runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1052
|
-
/** version: 2.20.
|
|
1052
|
+
/** version: 2.20.4 */
|
|
1053
1053
|
|
|
1054
1054
|
/*
|
|
1055
1055
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -4911,6 +4911,6 @@
|
|
|
4911
4911
|
},
|
|
4912
4912
|
configurable: true,
|
|
4913
4913
|
});
|
|
4914
|
-
/** version: 2.20.
|
|
4914
|
+
/** version: 2.20.4 */
|
|
4915
4915
|
|
|
4916
4916
|
})();
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
var hasNativeSymbolSupport = /*@__PURE__*/function () {
|
|
200
200
|
return Symbol('x').toString() === 'Symbol(x)';
|
|
201
201
|
}();
|
|
202
|
-
/** version: 2.20.
|
|
202
|
+
/** version: 2.20.4 */
|
|
203
203
|
|
|
204
204
|
/*
|
|
205
205
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1300,7 +1300,7 @@
|
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
1302
|
var runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1303
|
-
/** version: 2.20.
|
|
1303
|
+
/** version: 2.20.4 */
|
|
1304
1304
|
|
|
1305
1305
|
/*
|
|
1306
1306
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5661,6 +5661,6 @@
|
|
|
5661
5661
|
}));
|
|
5662
5662
|
});
|
|
5663
5663
|
}
|
|
5664
|
-
/** version: 2.20.
|
|
5664
|
+
/** version: 2.20.4 */
|
|
5665
5665
|
|
|
5666
5666
|
})();
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
var KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
124
124
|
var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
125
125
|
var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
126
|
-
/** version: 2.20.
|
|
126
|
+
/** version: 2.20.4 */
|
|
127
127
|
|
|
128
128
|
/*
|
|
129
129
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1209,7 +1209,7 @@
|
|
|
1209
1209
|
}
|
|
1210
1210
|
|
|
1211
1211
|
var runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1212
|
-
/** version: 2.20.
|
|
1212
|
+
/** version: 2.20.4 */
|
|
1213
1213
|
|
|
1214
1214
|
/*
|
|
1215
1215
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5441,6 +5441,6 @@
|
|
|
5441
5441
|
},
|
|
5442
5442
|
configurable: true
|
|
5443
5443
|
});
|
|
5444
|
-
/** version: 2.20.
|
|
5444
|
+
/** version: 2.20.4 */
|
|
5445
5445
|
|
|
5446
5446
|
})();
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
|
154
154
|
// we can't use typeof since it will fail when transpiling.
|
|
155
155
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
156
|
-
/** version: 2.20.
|
|
156
|
+
/** version: 2.20.4 */
|
|
157
157
|
|
|
158
158
|
/*
|
|
159
159
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1129,7 +1129,7 @@
|
|
|
1129
1129
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1130
1130
|
}
|
|
1131
1131
|
const runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1132
|
-
/** version: 2.20.
|
|
1132
|
+
/** version: 2.20.4 */
|
|
1133
1133
|
|
|
1134
1134
|
/*
|
|
1135
1135
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5116,6 +5116,6 @@
|
|
|
5116
5116
|
}));
|
|
5117
5117
|
});
|
|
5118
5118
|
}
|
|
5119
|
-
/** version: 2.20.
|
|
5119
|
+
/** version: 2.20.4 */
|
|
5120
5120
|
|
|
5121
5121
|
}));
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
const KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
90
90
|
const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
91
91
|
const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
92
|
-
/** version: 2.20.
|
|
92
|
+
/** version: 2.20.4 */
|
|
93
93
|
|
|
94
94
|
/*
|
|
95
95
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1051,7 +1051,7 @@
|
|
|
1051
1051
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1052
1052
|
}
|
|
1053
1053
|
const runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1054
|
-
/** version: 2.20.
|
|
1054
|
+
/** version: 2.20.4 */
|
|
1055
1055
|
|
|
1056
1056
|
/*
|
|
1057
1057
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -4913,6 +4913,6 @@
|
|
|
4913
4913
|
},
|
|
4914
4914
|
configurable: true,
|
|
4915
4915
|
});
|
|
4916
|
-
/** version: 2.20.
|
|
4916
|
+
/** version: 2.20.4 */
|
|
4917
4917
|
|
|
4918
4918
|
}));
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
var hasNativeSymbolSupport = /*@__PURE__*/function () {
|
|
202
202
|
return Symbol('x').toString() === 'Symbol(x)';
|
|
203
203
|
}();
|
|
204
|
-
/** version: 2.20.
|
|
204
|
+
/** version: 2.20.4 */
|
|
205
205
|
|
|
206
206
|
/*
|
|
207
207
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1302,7 +1302,7 @@
|
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
1304
|
var runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1305
|
-
/** version: 2.20.
|
|
1305
|
+
/** version: 2.20.4 */
|
|
1306
1306
|
|
|
1307
1307
|
/*
|
|
1308
1308
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5663,6 +5663,6 @@
|
|
|
5663
5663
|
}));
|
|
5664
5664
|
});
|
|
5665
5665
|
}
|
|
5666
|
-
/** version: 2.20.
|
|
5666
|
+
/** version: 2.20.4 */
|
|
5667
5667
|
|
|
5668
5668
|
}));
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
var KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
126
126
|
var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
127
127
|
var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
128
|
-
/** version: 2.20.
|
|
128
|
+
/** version: 2.20.4 */
|
|
129
129
|
|
|
130
130
|
/*
|
|
131
131
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1211,7 +1211,7 @@
|
|
|
1211
1211
|
}
|
|
1212
1212
|
|
|
1213
1213
|
var runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1214
|
-
/** version: 2.20.
|
|
1214
|
+
/** version: 2.20.4 */
|
|
1215
1215
|
|
|
1216
1216
|
/*
|
|
1217
1217
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5443,6 +5443,6 @@
|
|
|
5443
5443
|
},
|
|
5444
5444
|
configurable: true
|
|
5445
5445
|
});
|
|
5446
|
-
/** version: 2.20.
|
|
5446
|
+
/** version: 2.20.4 */
|
|
5447
5447
|
|
|
5448
5448
|
}));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
function isUndefined(obj) {
|
|
8
8
|
return obj === undefined;
|
|
9
9
|
}
|
|
10
|
-
/** version: 2.20.
|
|
10
|
+
/** version: 2.20.4 */
|
|
11
11
|
|
|
12
12
|
/*
|
|
13
13
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -181,6 +181,6 @@ class LegacyWireAdapterBridge {
|
|
|
181
181
|
forEach.call(this.disconnecting, (listener) => listener.call(undefined));
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
/** version: 2.20.
|
|
184
|
+
/** version: 2.20.4 */
|
|
185
185
|
|
|
186
186
|
export { ValueChangedEvent, register, registerWireService };
|