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