lwc 2.23.4 → 2.23.6
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 +168 -63
- package/dist/engine-dom/iife/es2017/engine-dom.js +168 -63
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +166 -61
- package/dist/engine-dom/iife/es5/engine-dom.js +405 -294
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +403 -292
- package/dist/engine-dom/umd/es2017/engine-dom.js +168 -63
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +166 -61
- package/dist/engine-dom/umd/es5/engine-dom.js +405 -294
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +403 -292
- package/dist/engine-server/commonjs/es2017/engine-server.js +67 -10
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +67 -10
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +55 -36
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +55 -36
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +52 -32
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +24 -18
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +24 -18
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +55 -36
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +52 -32
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +24 -18
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +24 -18
- 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
|
@@ -368,9 +368,9 @@
|
|
|
368
368
|
// Increment whenever the LWC template compiler changes
|
|
369
369
|
|
|
370
370
|
|
|
371
|
-
var LWC_VERSION = "2.23.
|
|
371
|
+
var LWC_VERSION = "2.23.6";
|
|
372
372
|
var LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
373
|
-
/** version: 2.23.
|
|
373
|
+
/** version: 2.23.6 */
|
|
374
374
|
|
|
375
375
|
/**
|
|
376
376
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
patch$1(propName);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
/** version: 2.23.
|
|
467
|
+
/** version: 2.23.6 */
|
|
468
468
|
|
|
469
469
|
/**
|
|
470
470
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -490,7 +490,8 @@
|
|
|
490
490
|
ENABLE_NODE_LIST_PATCH: null,
|
|
491
491
|
ENABLE_NODE_PATCH: null,
|
|
492
492
|
ENABLE_REACTIVE_SETTER: null,
|
|
493
|
-
ENABLE_WIRE_SYNC_EMIT: null
|
|
493
|
+
ENABLE_WIRE_SYNC_EMIT: null,
|
|
494
|
+
ENABLE_LIGHT_GET_ROOT_NODE_PATCH: null
|
|
494
495
|
};
|
|
495
496
|
|
|
496
497
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
@@ -556,7 +557,7 @@
|
|
|
556
557
|
setFeatureFlag(name, value);
|
|
557
558
|
}
|
|
558
559
|
}
|
|
559
|
-
/** version: 2.23.
|
|
560
|
+
/** version: 2.23.6 */
|
|
560
561
|
|
|
561
562
|
/*
|
|
562
563
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -4822,6 +4823,12 @@
|
|
|
4822
4823
|
n2.elm = n1.elm;
|
|
4823
4824
|
break;
|
|
4824
4825
|
|
|
4826
|
+
case 5
|
|
4827
|
+
/* VNodeType.Fragment */
|
|
4828
|
+
:
|
|
4829
|
+
patchFragment(n1, n2, parent, renderer);
|
|
4830
|
+
break;
|
|
4831
|
+
|
|
4825
4832
|
case 2
|
|
4826
4833
|
/* VNodeType.Element */
|
|
4827
4834
|
:
|
|
@@ -4861,6 +4868,12 @@
|
|
|
4861
4868
|
mountStatic(node, parent, anchor, renderer);
|
|
4862
4869
|
break;
|
|
4863
4870
|
|
|
4871
|
+
case 5
|
|
4872
|
+
/* VNodeType.Fragment */
|
|
4873
|
+
:
|
|
4874
|
+
mountFragment(node, parent, anchor, renderer);
|
|
4875
|
+
break;
|
|
4876
|
+
|
|
4864
4877
|
case 2
|
|
4865
4878
|
/* VNodeType.Element */
|
|
4866
4879
|
:
|
|
@@ -4910,6 +4923,27 @@
|
|
|
4910
4923
|
insertNode(commentNode, parent, anchor, renderer);
|
|
4911
4924
|
}
|
|
4912
4925
|
|
|
4926
|
+
function mountFragment(vnode, parent, anchor, renderer) {
|
|
4927
|
+
var children = vnode.children;
|
|
4928
|
+
mountVNodes(children, parent, renderer, anchor); // children of a fragment will always have at least the two delimiters.
|
|
4929
|
+
|
|
4930
|
+
vnode.elm = children[children.length - 1].elm;
|
|
4931
|
+
}
|
|
4932
|
+
|
|
4933
|
+
function patchFragment(n1, n2, parent, renderer) {
|
|
4934
|
+
var children = n2.children,
|
|
4935
|
+
stable = n2.stable;
|
|
4936
|
+
|
|
4937
|
+
if (stable) {
|
|
4938
|
+
updateStaticChildren(n1.children, children, parent, renderer);
|
|
4939
|
+
} else {
|
|
4940
|
+
updateDynamicChildren(n1.children, children, parent, renderer);
|
|
4941
|
+
} // Note: not reusing n1.elm, because during patching, it may be patched with another text node.
|
|
4942
|
+
|
|
4943
|
+
|
|
4944
|
+
n2.elm = children[children.length - 1].elm;
|
|
4945
|
+
}
|
|
4946
|
+
|
|
4913
4947
|
function mountElement(vnode, parent, anchor, renderer) {
|
|
4914
4948
|
var sel = vnode.sel,
|
|
4915
4949
|
owner = vnode.owner,
|
|
@@ -5061,9 +5095,15 @@
|
|
|
5061
5095
|
// subtree root, is the only element worth unmounting from the subtree.
|
|
5062
5096
|
|
|
5063
5097
|
if (doRemove) {
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5098
|
+
if (type === 5
|
|
5099
|
+
/* VNodeType.Fragment */
|
|
5100
|
+
) {
|
|
5101
|
+
unmountVNodes(vnode.children, parent, renderer, doRemove);
|
|
5102
|
+
} else {
|
|
5103
|
+
// The vnode might or might not have a data.renderer associated to it
|
|
5104
|
+
// but the removal used here is from the owner instead.
|
|
5105
|
+
removeNode(elm, parent, renderer);
|
|
5106
|
+
}
|
|
5067
5107
|
}
|
|
5068
5108
|
|
|
5069
5109
|
switch (type) {
|
|
@@ -5552,6 +5592,21 @@
|
|
|
5552
5592
|
fragment: fragment,
|
|
5553
5593
|
owner: getVMBeingRendered()
|
|
5554
5594
|
};
|
|
5595
|
+
} // [fr]agment node
|
|
5596
|
+
|
|
5597
|
+
|
|
5598
|
+
function fr(key, children, stable) {
|
|
5599
|
+
return {
|
|
5600
|
+
type: 5
|
|
5601
|
+
/* VNodeType.Fragment */
|
|
5602
|
+
,
|
|
5603
|
+
sel: undefined,
|
|
5604
|
+
key: key,
|
|
5605
|
+
elm: undefined,
|
|
5606
|
+
children: [t('')].concat(_toConsumableArray(children), [t('')]),
|
|
5607
|
+
stable: stable,
|
|
5608
|
+
owner: getVMBeingRendered()
|
|
5609
|
+
};
|
|
5555
5610
|
} // [h]tml node
|
|
5556
5611
|
|
|
5557
5612
|
|
|
@@ -5820,7 +5875,7 @@
|
|
|
5820
5875
|
|
|
5821
5876
|
|
|
5822
5877
|
function co(text) {
|
|
5823
|
-
var sel,
|
|
5878
|
+
var sel, elm;
|
|
5824
5879
|
return {
|
|
5825
5880
|
type: 1
|
|
5826
5881
|
/* VNodeType.Comment */
|
|
@@ -5828,7 +5883,7 @@
|
|
|
5828
5883
|
sel: sel,
|
|
5829
5884
|
text: text,
|
|
5830
5885
|
elm: elm,
|
|
5831
|
-
key:
|
|
5886
|
+
key: 'c',
|
|
5832
5887
|
owner: getVMBeingRendered()
|
|
5833
5888
|
};
|
|
5834
5889
|
} // [d]ynamic text
|
|
@@ -6017,6 +6072,7 @@
|
|
|
6017
6072
|
k: k,
|
|
6018
6073
|
co: co,
|
|
6019
6074
|
dc: dc,
|
|
6075
|
+
fr: fr,
|
|
6020
6076
|
ti: ti,
|
|
6021
6077
|
st: st,
|
|
6022
6078
|
gid: gid,
|
|
@@ -7691,6 +7747,13 @@
|
|
|
7691
7747
|
hydratedNode = hydrateStaticElement(node, vnode, renderer);
|
|
7692
7748
|
break;
|
|
7693
7749
|
|
|
7750
|
+
case 5
|
|
7751
|
+
/* VNodeType.Fragment */
|
|
7752
|
+
:
|
|
7753
|
+
// a fragment does not represent any element, therefore there is no need to use a custom renderer.
|
|
7754
|
+
hydratedNode = hydrateFragment(node, vnode, renderer);
|
|
7755
|
+
break;
|
|
7756
|
+
|
|
7694
7757
|
case 2
|
|
7695
7758
|
/* VNodeType.Element */
|
|
7696
7759
|
:
|
|
@@ -7766,6 +7829,13 @@
|
|
|
7766
7829
|
return elm;
|
|
7767
7830
|
}
|
|
7768
7831
|
|
|
7832
|
+
function hydrateFragment(elm, vnode, renderer) {
|
|
7833
|
+
var children = vnode.children,
|
|
7834
|
+
owner = vnode.owner;
|
|
7835
|
+
hydrateChildren(elm, children, renderer.getProperty(elm, 'parentNode'), owner);
|
|
7836
|
+
return vnode.elm = children[children.length - 1].elm;
|
|
7837
|
+
}
|
|
7838
|
+
|
|
7769
7839
|
function hydrateElement(elm, vnode, renderer) {
|
|
7770
7840
|
if (!hasCorrectNodeType(vnode, elm, 1
|
|
7771
7841
|
/* EnvNodeTypes.ELEMENT */
|
|
@@ -8312,7 +8382,7 @@
|
|
|
8312
8382
|
|
|
8313
8383
|
return ctor;
|
|
8314
8384
|
}
|
|
8315
|
-
/* version: 2.23.
|
|
8385
|
+
/* version: 2.23.6 */
|
|
8316
8386
|
|
|
8317
8387
|
/*
|
|
8318
8388
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8492,356 +8562,397 @@
|
|
|
8492
8562
|
|
|
8493
8563
|
|
|
8494
8564
|
function rendererFactory(baseRenderer) {
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8565
|
+
var renderer = function (exports) {
|
|
8566
|
+
/**
|
|
8567
|
+
* Copyright (C) 2018 salesforce.com, inc.
|
|
8568
|
+
*/
|
|
8569
|
+
|
|
8570
|
+
/*
|
|
8571
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
8572
|
+
* All rights reserved.
|
|
8573
|
+
* SPDX-License-Identifier: MIT
|
|
8574
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8575
|
+
*/
|
|
8576
|
+
function invariant(value, msg) {
|
|
8577
|
+
if (!value) {
|
|
8578
|
+
throw new Error("Invariant Violation: ".concat(msg));
|
|
8579
|
+
}
|
|
8499
8580
|
}
|
|
8500
|
-
}
|
|
8501
8581
|
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8582
|
+
function isTrue$1(value, msg) {
|
|
8583
|
+
if (!value) {
|
|
8584
|
+
throw new Error("Assert Violation: ".concat(msg));
|
|
8585
|
+
}
|
|
8586
|
+
}
|
|
8505
8587
|
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8588
|
+
function isFalse$1(value, msg) {
|
|
8589
|
+
if (value) {
|
|
8590
|
+
throw new Error("Assert Violation: ".concat(msg));
|
|
8591
|
+
}
|
|
8592
|
+
}
|
|
8509
8593
|
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8594
|
+
function fail(msg) {
|
|
8595
|
+
throw new Error(msg);
|
|
8596
|
+
}
|
|
8513
8597
|
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8598
|
+
var assert = /*#__PURE__*/Object.freeze({
|
|
8599
|
+
__proto__: null,
|
|
8600
|
+
invariant: invariant,
|
|
8601
|
+
isTrue: isTrue$1,
|
|
8602
|
+
isFalse: isFalse$1,
|
|
8603
|
+
fail: fail
|
|
8604
|
+
});
|
|
8605
|
+
|
|
8606
|
+
function isUndefined(obj) {
|
|
8607
|
+
return obj === undefined;
|
|
8517
8608
|
}
|
|
8518
8609
|
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
// get wrapped by babel.
|
|
8524
|
-
var HTMLElementAlias = HTMLElement; // In case we use compat mode with a modern browser, the compat mode transformation
|
|
8525
|
-
// invokes the DOM api with an .apply() or .call() to initialize any DOM api sub-classing,
|
|
8526
|
-
// which are not equipped to be initialized that way.
|
|
8610
|
+
function isNull(obj) {
|
|
8611
|
+
return obj === null;
|
|
8612
|
+
}
|
|
8613
|
+
/** version: 2.23.6 */
|
|
8527
8614
|
|
|
8528
|
-
|
|
8529
|
-
|
|
8615
|
+
/*
|
|
8616
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
8617
|
+
* All rights reserved.
|
|
8618
|
+
* SPDX-License-Identifier: MIT
|
|
8619
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8620
|
+
*/
|
|
8530
8621
|
|
|
8531
|
-
var _super7 = _createSuper(clazz);
|
|
8532
8622
|
|
|
8533
|
-
|
|
8534
|
-
|
|
8623
|
+
exports.getCustomElement = void 0;
|
|
8624
|
+
exports.defineCustomElement = void 0;
|
|
8625
|
+
var HTMLElementConstructor;
|
|
8535
8626
|
|
|
8536
|
-
|
|
8537
|
-
|
|
8627
|
+
function isCustomElementRegistryAvailable() {
|
|
8628
|
+
if (typeof customElements === 'undefined') {
|
|
8629
|
+
return false;
|
|
8630
|
+
}
|
|
8538
8631
|
|
|
8539
|
-
|
|
8540
|
-
|
|
8632
|
+
try {
|
|
8633
|
+
// dereference HTMLElement global because babel wraps globals in compat mode with a
|
|
8634
|
+
// _wrapNativeSuper()
|
|
8635
|
+
// This is a problem because LWCUpgradableElement extends renderer.HTMLElementExported which does not
|
|
8636
|
+
// get wrapped by babel.
|
|
8637
|
+
var HTMLElementAlias = HTMLElement; // In case we use compat mode with a modern browser, the compat mode transformation
|
|
8638
|
+
// invokes the DOM api with an .apply() or .call() to initialize any DOM api sub-classing,
|
|
8639
|
+
// which are not equipped to be initialized that way.
|
|
8541
8640
|
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
return true;
|
|
8545
|
-
} catch (_a) {
|
|
8546
|
-
return false;
|
|
8547
|
-
}
|
|
8548
|
-
}
|
|
8641
|
+
var clazz = /*#__PURE__*/function (_HTMLElementAlias) {
|
|
8642
|
+
_inherits(clazz, _HTMLElementAlias);
|
|
8549
8643
|
|
|
8550
|
-
|
|
8551
|
-
getCustomElement = customElements.get.bind(customElements);
|
|
8552
|
-
defineCustomElement = customElements.define.bind(customElements);
|
|
8553
|
-
HTMLElementConstructor = HTMLElement;
|
|
8554
|
-
} else {
|
|
8555
|
-
var registry = Object.create(null);
|
|
8556
|
-
var reverseRegistry = new WeakMap();
|
|
8644
|
+
var _super7 = _createSuper(clazz);
|
|
8557
8645
|
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
throw new TypeError("Invalid Registration");
|
|
8561
|
-
}
|
|
8646
|
+
function clazz() {
|
|
8647
|
+
_classCallCheck(this, clazz);
|
|
8562
8648
|
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
};
|
|
8649
|
+
return _super7.apply(this, arguments);
|
|
8650
|
+
}
|
|
8566
8651
|
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
};
|
|
8652
|
+
return _createClass(clazz);
|
|
8653
|
+
}(HTMLElementAlias);
|
|
8570
8654
|
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8655
|
+
customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
|
|
8656
|
+
new clazz();
|
|
8657
|
+
return true;
|
|
8658
|
+
} catch (_a) {
|
|
8659
|
+
return false;
|
|
8574
8660
|
}
|
|
8661
|
+
}
|
|
8575
8662
|
|
|
8576
|
-
|
|
8577
|
-
|
|
8663
|
+
if (isCustomElementRegistryAvailable()) {
|
|
8664
|
+
exports.getCustomElement = customElements.get.bind(customElements);
|
|
8665
|
+
exports.defineCustomElement = customElements.define.bind(customElements);
|
|
8666
|
+
HTMLElementConstructor = HTMLElement;
|
|
8667
|
+
} else {
|
|
8668
|
+
var registry = Object.create(null);
|
|
8669
|
+
var reverseRegistry = new WeakMap();
|
|
8578
8670
|
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8671
|
+
exports.defineCustomElement = function define(name, ctor) {
|
|
8672
|
+
if (name !== String.prototype.toLowerCase.call(name) || registry[name]) {
|
|
8673
|
+
throw new TypeError("Invalid Registration");
|
|
8674
|
+
}
|
|
8582
8675
|
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
};
|
|
8676
|
+
registry[name] = ctor;
|
|
8677
|
+
reverseRegistry.set(ctor, name);
|
|
8678
|
+
};
|
|
8587
8679
|
|
|
8588
|
-
|
|
8589
|
-
|
|
8680
|
+
exports.getCustomElement = function get(name) {
|
|
8681
|
+
return registry[name];
|
|
8682
|
+
};
|
|
8590
8683
|
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8684
|
+
HTMLElementConstructor = function HTMLElement() {
|
|
8685
|
+
if (!(this instanceof HTMLElement)) {
|
|
8686
|
+
throw new TypeError("Invalid Invocation");
|
|
8687
|
+
}
|
|
8594
8688
|
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
}
|
|
8689
|
+
var constructor = this.constructor;
|
|
8690
|
+
var name = reverseRegistry.get(constructor);
|
|
8598
8691
|
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8692
|
+
if (!name) {
|
|
8693
|
+
throw new TypeError("Invalid Construction");
|
|
8694
|
+
}
|
|
8602
8695
|
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8696
|
+
var elm = document.createElement(name);
|
|
8697
|
+
Object.setPrototypeOf(elm, constructor.prototype);
|
|
8698
|
+
return elm;
|
|
8699
|
+
};
|
|
8606
8700
|
|
|
8607
|
-
|
|
8701
|
+
HTMLElementConstructor.prototype = HTMLElement.prototype;
|
|
8702
|
+
}
|
|
8608
8703
|
|
|
8609
|
-
|
|
8704
|
+
function cloneNode(node, deep) {
|
|
8705
|
+
return node.cloneNode(deep);
|
|
8706
|
+
}
|
|
8610
8707
|
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
return
|
|
8617
|
-
}
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
//
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8708
|
+
function createElement(tagName, namespace) {
|
|
8709
|
+
return isUndefined(namespace) ? document.createElement(tagName) : document.createElementNS(namespace, tagName);
|
|
8710
|
+
}
|
|
8711
|
+
|
|
8712
|
+
function createText(content) {
|
|
8713
|
+
return document.createTextNode(content);
|
|
8714
|
+
}
|
|
8715
|
+
|
|
8716
|
+
function createComment(content) {
|
|
8717
|
+
return document.createComment(content);
|
|
8718
|
+
}
|
|
8719
|
+
|
|
8720
|
+
exports.createFragment = void 0; // IE11 lacks support for this feature
|
|
8721
|
+
|
|
8722
|
+
var SUPPORTS_TEMPLATE = typeof HTMLTemplateElement === 'function';
|
|
8723
|
+
|
|
8724
|
+
if (SUPPORTS_TEMPLATE) {
|
|
8725
|
+
// Parse the fragment HTML string into DOM
|
|
8726
|
+
exports.createFragment = function (html) {
|
|
8727
|
+
var template = document.createElement('template');
|
|
8728
|
+
template.innerHTML = html;
|
|
8729
|
+
return template.content.firstChild;
|
|
8730
|
+
};
|
|
8731
|
+
} else {
|
|
8732
|
+
// In browsers that don't support <template> (e.g. IE11), we need to be careful to wrap elements like
|
|
8733
|
+
// <td> in the proper container elements (e.g. <tbody>), because otherwise they will be parsed as null.
|
|
8734
|
+
// Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L273-L280
|
|
8735
|
+
// With other elements added from:
|
|
8736
|
+
// https://github.com/sindresorhus/html-tags/blob/95dcdd5/index.js
|
|
8737
|
+
// Using the test:
|
|
8738
|
+
// document.createRange().createContextualFragment(`<${tag}></${tag}>`).firstChild === null
|
|
8739
|
+
// And omitting <html>, <head>, and <body> as these are not practical in an LWC component.
|
|
8740
|
+
var topLevelWrappingMap = {
|
|
8741
|
+
caption: ['table'],
|
|
8742
|
+
col: ['colgroup', 'table'],
|
|
8743
|
+
colgroup: ['table'],
|
|
8744
|
+
option: ['select'],
|
|
8745
|
+
tbody: ['table'],
|
|
8746
|
+
td: ['tr', 'tbody', 'table'],
|
|
8747
|
+
th: ['tr', 'tbody', 'table'],
|
|
8748
|
+
thead: ['table'],
|
|
8749
|
+
tfoot: ['table'],
|
|
8750
|
+
tr: ['tbody', 'table']
|
|
8751
|
+
}; // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L282-L288
|
|
8752
|
+
|
|
8753
|
+
var getTagName = function getTagName(text) {
|
|
8754
|
+
return (/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(text) || ['', ''])[1].toLowerCase();
|
|
8755
|
+
}; // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L295-L320
|
|
8756
|
+
|
|
8757
|
+
|
|
8758
|
+
exports.createFragment = function (html) {
|
|
8759
|
+
var wrapperTags = topLevelWrappingMap[getTagName(html)];
|
|
8760
|
+
|
|
8761
|
+
if (!isUndefined(wrapperTags)) {
|
|
8762
|
+
var _iterator5 = _createForOfIteratorHelper(wrapperTags),
|
|
8763
|
+
_step5;
|
|
8764
|
+
|
|
8765
|
+
try {
|
|
8766
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
8767
|
+
var wrapperTag = _step5.value;
|
|
8768
|
+
html = "<".concat(wrapperTag, ">").concat(html, "</").concat(wrapperTag, ">");
|
|
8769
|
+
}
|
|
8770
|
+
} catch (err) {
|
|
8771
|
+
_iterator5.e(err);
|
|
8772
|
+
} finally {
|
|
8773
|
+
_iterator5.f();
|
|
8656
8774
|
}
|
|
8657
|
-
}
|
|
8658
|
-
|
|
8659
|
-
} finally {
|
|
8660
|
-
_iterator5.f();
|
|
8661
|
-
}
|
|
8662
|
-
} // For IE11, the document title must not be undefined, but it can be an empty string
|
|
8663
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument#browser_compatibility
|
|
8775
|
+
} // For IE11, the document title must not be undefined, but it can be an empty string
|
|
8776
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument#browser_compatibility
|
|
8664
8777
|
|
|
8665
8778
|
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8779
|
+
var doc = document.implementation.createHTMLDocument('');
|
|
8780
|
+
doc.body.innerHTML = html;
|
|
8781
|
+
var content = doc.body;
|
|
8669
8782
|
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8783
|
+
if (!isUndefined(wrapperTags)) {
|
|
8784
|
+
for (var _i32 = 0; _i32 < wrapperTags.length; _i32++) {
|
|
8785
|
+
content = content.firstChild;
|
|
8786
|
+
}
|
|
8673
8787
|
}
|
|
8674
|
-
}
|
|
8675
8788
|
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8789
|
+
return content.firstChild;
|
|
8790
|
+
};
|
|
8791
|
+
}
|
|
8679
8792
|
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8793
|
+
function insert(node, parent, anchor) {
|
|
8794
|
+
parent.insertBefore(node, anchor);
|
|
8795
|
+
}
|
|
8683
8796
|
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8797
|
+
function remove(node, parent) {
|
|
8798
|
+
parent.removeChild(node);
|
|
8799
|
+
}
|
|
8687
8800
|
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8801
|
+
function nextSibling(node) {
|
|
8802
|
+
return node.nextSibling;
|
|
8803
|
+
}
|
|
8804
|
+
|
|
8805
|
+
function attachShadow(element, options) {
|
|
8806
|
+
// `shadowRoot` will be non-null in two cases:
|
|
8807
|
+
// 1. upon initial load with an SSR-generated DOM, while in Shadow render mode
|
|
8808
|
+
// 2. when a webapp author places <c-app> in their static HTML and mounts their
|
|
8809
|
+
// root component with customElement.define('c-app', Ctor)
|
|
8810
|
+
if (!isNull(element.shadowRoot)) {
|
|
8811
|
+
return element.shadowRoot;
|
|
8812
|
+
}
|
|
8691
8813
|
|
|
8692
|
-
|
|
8693
|
-
// `shadowRoot` will be non-null in two cases:
|
|
8694
|
-
// 1. upon initial load with an SSR-generated DOM, while in Shadow render mode
|
|
8695
|
-
// 2. when a webapp author places <c-app> in their static HTML and mounts their
|
|
8696
|
-
// root component with customElement.define('c-app', Ctor)
|
|
8697
|
-
if (!isNull(element.shadowRoot)) {
|
|
8698
|
-
return element.shadowRoot;
|
|
8814
|
+
return element.attachShadow(options);
|
|
8699
8815
|
}
|
|
8700
8816
|
|
|
8701
|
-
|
|
8702
|
-
|
|
8817
|
+
function setText(node, content) {
|
|
8818
|
+
node.nodeValue = content;
|
|
8819
|
+
}
|
|
8703
8820
|
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8821
|
+
function getProperty(node, key) {
|
|
8822
|
+
return node[key];
|
|
8823
|
+
}
|
|
8707
8824
|
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8825
|
+
function setProperty(node, key, value) {
|
|
8826
|
+
node[key] = value;
|
|
8827
|
+
}
|
|
8711
8828
|
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8829
|
+
function getAttribute(element, name, namespace) {
|
|
8830
|
+
return isUndefined(namespace) ? element.getAttribute(name) : element.getAttributeNS(namespace, name);
|
|
8831
|
+
}
|
|
8715
8832
|
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8833
|
+
function setAttribute(element, name, value, namespace) {
|
|
8834
|
+
return isUndefined(namespace) ? element.setAttribute(name, value) : element.setAttributeNS(namespace, name, value);
|
|
8835
|
+
}
|
|
8719
8836
|
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8837
|
+
function removeAttribute(element, name, namespace) {
|
|
8838
|
+
if (isUndefined(namespace)) {
|
|
8839
|
+
element.removeAttribute(name);
|
|
8840
|
+
} else {
|
|
8841
|
+
element.removeAttributeNS(namespace, name);
|
|
8842
|
+
}
|
|
8843
|
+
}
|
|
8723
8844
|
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
element.removeAttribute(name);
|
|
8727
|
-
} else {
|
|
8728
|
-
element.removeAttributeNS(namespace, name);
|
|
8845
|
+
function addEventListener(target, type, callback, options) {
|
|
8846
|
+
target.addEventListener(type, callback, options);
|
|
8729
8847
|
}
|
|
8730
|
-
}
|
|
8731
8848
|
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8849
|
+
function removeEventListener(target, type, callback, options) {
|
|
8850
|
+
target.removeEventListener(type, callback, options);
|
|
8851
|
+
}
|
|
8735
8852
|
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8853
|
+
function dispatchEvent(target, event) {
|
|
8854
|
+
return target.dispatchEvent(event);
|
|
8855
|
+
}
|
|
8739
8856
|
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8857
|
+
function getClassList(element) {
|
|
8858
|
+
return element.classList;
|
|
8859
|
+
}
|
|
8743
8860
|
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8861
|
+
function setCSSStyleProperty(element, name, value, important) {
|
|
8862
|
+
// TODO [#0]: How to avoid this type casting? Shall we use a different type interface to
|
|
8863
|
+
// represent elements in the engine?
|
|
8864
|
+
element.style.setProperty(name, value, important ? 'important' : '');
|
|
8865
|
+
}
|
|
8747
8866
|
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
element.style.setProperty(name, value, important ? 'important' : '');
|
|
8752
|
-
}
|
|
8867
|
+
function getBoundingClientRect(element) {
|
|
8868
|
+
return element.getBoundingClientRect();
|
|
8869
|
+
}
|
|
8753
8870
|
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8871
|
+
function querySelector(element, selectors) {
|
|
8872
|
+
return element.querySelector(selectors);
|
|
8873
|
+
}
|
|
8757
8874
|
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8875
|
+
function querySelectorAll(element, selectors) {
|
|
8876
|
+
return element.querySelectorAll(selectors);
|
|
8877
|
+
}
|
|
8761
8878
|
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8879
|
+
function getElementsByTagName(element, tagNameOrWildCard) {
|
|
8880
|
+
return element.getElementsByTagName(tagNameOrWildCard);
|
|
8881
|
+
}
|
|
8765
8882
|
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8883
|
+
function getElementsByClassName(element, names) {
|
|
8884
|
+
return element.getElementsByClassName(names);
|
|
8885
|
+
}
|
|
8769
8886
|
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
|
|
8887
|
+
function getChildren(element) {
|
|
8888
|
+
return element.children;
|
|
8889
|
+
}
|
|
8773
8890
|
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8891
|
+
function getChildNodes(element) {
|
|
8892
|
+
return element.childNodes;
|
|
8893
|
+
}
|
|
8777
8894
|
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8895
|
+
function getFirstChild(element) {
|
|
8896
|
+
return element.firstChild;
|
|
8897
|
+
}
|
|
8781
8898
|
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8899
|
+
function getFirstElementChild(element) {
|
|
8900
|
+
return element.firstElementChild;
|
|
8901
|
+
}
|
|
8785
8902
|
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8903
|
+
function getLastChild(element) {
|
|
8904
|
+
return element.lastChild;
|
|
8905
|
+
}
|
|
8789
8906
|
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8907
|
+
function getLastElementChild(element) {
|
|
8908
|
+
return element.lastElementChild;
|
|
8909
|
+
}
|
|
8793
8910
|
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8911
|
+
function isConnected(node) {
|
|
8912
|
+
return node.isConnected;
|
|
8913
|
+
}
|
|
8797
8914
|
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8915
|
+
function assertInstanceOfHTMLElement(elm, msg) {
|
|
8916
|
+
assert.invariant(elm instanceof HTMLElement, msg);
|
|
8917
|
+
}
|
|
8801
8918
|
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8919
|
+
var HTMLElementExported = HTMLElementConstructor;
|
|
8920
|
+
exports.HTMLElementExported = HTMLElementExported;
|
|
8921
|
+
exports.addEventListener = addEventListener;
|
|
8922
|
+
exports.assertInstanceOfHTMLElement = assertInstanceOfHTMLElement;
|
|
8923
|
+
exports.attachShadow = attachShadow;
|
|
8924
|
+
exports.cloneNode = cloneNode;
|
|
8925
|
+
exports.createComment = createComment;
|
|
8926
|
+
exports.createElement = createElement;
|
|
8927
|
+
exports.createText = createText;
|
|
8928
|
+
exports.dispatchEvent = dispatchEvent;
|
|
8929
|
+
exports.getAttribute = getAttribute;
|
|
8930
|
+
exports.getBoundingClientRect = getBoundingClientRect;
|
|
8931
|
+
exports.getChildNodes = getChildNodes;
|
|
8932
|
+
exports.getChildren = getChildren;
|
|
8933
|
+
exports.getClassList = getClassList;
|
|
8934
|
+
exports.getElementsByClassName = getElementsByClassName;
|
|
8935
|
+
exports.getElementsByTagName = getElementsByTagName;
|
|
8936
|
+
exports.getFirstChild = getFirstChild;
|
|
8937
|
+
exports.getFirstElementChild = getFirstElementChild;
|
|
8938
|
+
exports.getLastChild = getLastChild;
|
|
8939
|
+
exports.getLastElementChild = getLastElementChild;
|
|
8940
|
+
exports.getProperty = getProperty;
|
|
8941
|
+
exports.insert = insert;
|
|
8942
|
+
exports.isConnected = isConnected;
|
|
8943
|
+
exports.nextSibling = nextSibling;
|
|
8944
|
+
exports.querySelector = querySelector;
|
|
8945
|
+
exports.querySelectorAll = querySelectorAll;
|
|
8946
|
+
exports.remove = remove;
|
|
8947
|
+
exports.removeAttribute = removeAttribute;
|
|
8948
|
+
exports.removeEventListener = removeEventListener;
|
|
8949
|
+
exports.setAttribute = setAttribute;
|
|
8950
|
+
exports.setCSSStyleProperty = setCSSStyleProperty;
|
|
8951
|
+
exports.setProperty = setProperty;
|
|
8952
|
+
exports.setText = setText;
|
|
8953
|
+
return exports;
|
|
8954
|
+
}({}); // Meant to inherit any properties passed via the base renderer as the argument to the factory.
|
|
8805
8955
|
|
|
8806
|
-
var HTMLElementExported = HTMLElementConstructor;
|
|
8807
|
-
var renderer = {
|
|
8808
|
-
HTMLElementExported: HTMLElementExported,
|
|
8809
|
-
insert: insert,
|
|
8810
|
-
remove: remove,
|
|
8811
|
-
cloneNode: cloneNode,
|
|
8812
|
-
createFragment: createFragment,
|
|
8813
|
-
createElement: createElement,
|
|
8814
|
-
createText: createText,
|
|
8815
|
-
createComment: createComment,
|
|
8816
|
-
nextSibling: nextSibling,
|
|
8817
|
-
attachShadow: attachShadow,
|
|
8818
|
-
getProperty: getProperty,
|
|
8819
|
-
setProperty: setProperty,
|
|
8820
|
-
setText: setText,
|
|
8821
|
-
getAttribute: getAttribute,
|
|
8822
|
-
setAttribute: setAttribute,
|
|
8823
|
-
removeAttribute: removeAttribute,
|
|
8824
|
-
addEventListener: addEventListener,
|
|
8825
|
-
removeEventListener: removeEventListener,
|
|
8826
|
-
dispatchEvent: dispatchEvent,
|
|
8827
|
-
getClassList: getClassList,
|
|
8828
|
-
setCSSStyleProperty: setCSSStyleProperty,
|
|
8829
|
-
getBoundingClientRect: getBoundingClientRect,
|
|
8830
|
-
querySelector: querySelector,
|
|
8831
|
-
querySelectorAll: querySelectorAll,
|
|
8832
|
-
getElementsByTagName: getElementsByTagName,
|
|
8833
|
-
getElementsByClassName: getElementsByClassName,
|
|
8834
|
-
getChildren: getChildren,
|
|
8835
|
-
getChildNodes: getChildNodes,
|
|
8836
|
-
getFirstChild: getFirstChild,
|
|
8837
|
-
getFirstElementChild: getFirstElementChild,
|
|
8838
|
-
getLastChild: getLastChild,
|
|
8839
|
-
getLastElementChild: getLastElementChild,
|
|
8840
|
-
isConnected: isConnected,
|
|
8841
|
-
assertInstanceOfHTMLElement: assertInstanceOfHTMLElement,
|
|
8842
|
-
defineCustomElement: defineCustomElement,
|
|
8843
|
-
getCustomElement: getCustomElement
|
|
8844
|
-
}; // Meant to inherit any properties passed via the base renderer as the argument to the factory.
|
|
8845
8956
|
|
|
8846
8957
|
Object.setPrototypeOf(renderer, baseRenderer);
|
|
8847
8958
|
return renderer;
|
|
@@ -9229,7 +9340,7 @@
|
|
|
9229
9340
|
});
|
|
9230
9341
|
freeze(LightningElement);
|
|
9231
9342
|
seal(LightningElement.prototype);
|
|
9232
|
-
/* version: 2.23.
|
|
9343
|
+
/* version: 2.23.6 */
|
|
9233
9344
|
|
|
9234
9345
|
exports.LightningElement = LightningElement;
|
|
9235
9346
|
exports.__unstable__ProfilerControl = profilerControl;
|