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.
Files changed (39) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +168 -63
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +168 -63
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +166 -61
  5. package/dist/engine-dom/iife/es5/engine-dom.js +405 -294
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +403 -292
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +168 -63
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +166 -61
  11. package/dist/engine-dom/umd/es5/engine-dom.js +405 -294
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +403 -292
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +67 -10
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +67 -10
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +55 -36
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +55 -36
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +52 -32
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +24 -18
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +24 -18
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +55 -36
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +52 -32
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +24 -18
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +24 -18
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  34. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  35. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  36. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  37. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  39. package/package.json +7 -7
@@ -346,7 +346,7 @@ var LWC = (function (exports) {
346
346
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
347
347
  return attributeName;
348
348
  }
349
- /** version: 2.23.4 */
349
+ /** version: 2.23.6 */
350
350
 
351
351
  /**
352
352
  * Copyright (C) 2018 salesforce.com, inc.
@@ -440,7 +440,7 @@ var LWC = (function (exports) {
440
440
  patch$1(propName);
441
441
  }
442
442
  }
443
- /** version: 2.23.4 */
443
+ /** version: 2.23.6 */
444
444
 
445
445
  /**
446
446
  * Copyright (C) 2018 salesforce.com, inc.
@@ -466,7 +466,8 @@ var LWC = (function (exports) {
466
466
  ENABLE_NODE_LIST_PATCH: null,
467
467
  ENABLE_NODE_PATCH: null,
468
468
  ENABLE_REACTIVE_SETTER: null,
469
- ENABLE_WIRE_SYNC_EMIT: null
469
+ ENABLE_WIRE_SYNC_EMIT: null,
470
+ ENABLE_LIGHT_GET_ROOT_NODE_PATCH: null
470
471
  };
471
472
 
472
473
  if (!_globalThis.lwcRuntimeFlags) {
@@ -3575,6 +3576,12 @@ var LWC = (function (exports) {
3575
3576
  n2.elm = n1.elm;
3576
3577
  break;
3577
3578
 
3579
+ case 5
3580
+ /* VNodeType.Fragment */
3581
+ :
3582
+ patchFragment(n1, n2, parent, renderer);
3583
+ break;
3584
+
3578
3585
  case 2
3579
3586
  /* VNodeType.Element */
3580
3587
  :
@@ -3614,6 +3621,12 @@ var LWC = (function (exports) {
3614
3621
  mountStatic(node, parent, anchor, renderer);
3615
3622
  break;
3616
3623
 
3624
+ case 5
3625
+ /* VNodeType.Fragment */
3626
+ :
3627
+ mountFragment(node, parent, anchor, renderer);
3628
+ break;
3629
+
3617
3630
  case 2
3618
3631
  /* VNodeType.Element */
3619
3632
  :
@@ -3663,6 +3676,27 @@ var LWC = (function (exports) {
3663
3676
  insertNode(commentNode, parent, anchor, renderer);
3664
3677
  }
3665
3678
 
3679
+ function mountFragment(vnode, parent, anchor, renderer) {
3680
+ var children = vnode.children;
3681
+ mountVNodes(children, parent, renderer, anchor); // children of a fragment will always have at least the two delimiters.
3682
+
3683
+ vnode.elm = children[children.length - 1].elm;
3684
+ }
3685
+
3686
+ function patchFragment(n1, n2, parent, renderer) {
3687
+ var children = n2.children,
3688
+ stable = n2.stable;
3689
+
3690
+ if (stable) {
3691
+ updateStaticChildren(n1.children, children, parent, renderer);
3692
+ } else {
3693
+ updateDynamicChildren(n1.children, children, parent, renderer);
3694
+ } // Note: not reusing n1.elm, because during patching, it may be patched with another text node.
3695
+
3696
+
3697
+ n2.elm = children[children.length - 1].elm;
3698
+ }
3699
+
3666
3700
  function mountElement(vnode, parent, anchor, renderer) {
3667
3701
  var sel = vnode.sel,
3668
3702
  owner = vnode.owner,
@@ -3805,9 +3839,15 @@ var LWC = (function (exports) {
3805
3839
  // subtree root, is the only element worth unmounting from the subtree.
3806
3840
 
3807
3841
  if (doRemove) {
3808
- // The vnode might or might not have a data.renderer associated to it
3809
- // but the removal used here is from the owner instead.
3810
- removeNode(elm, parent, renderer);
3842
+ if (type === 5
3843
+ /* VNodeType.Fragment */
3844
+ ) {
3845
+ unmountVNodes(vnode.children, parent, renderer, doRemove);
3846
+ } else {
3847
+ // The vnode might or might not have a data.renderer associated to it
3848
+ // but the removal used here is from the owner instead.
3849
+ removeNode(elm, parent, renderer);
3850
+ }
3811
3851
  }
3812
3852
 
3813
3853
  switch (type) {
@@ -4251,6 +4291,21 @@ var LWC = (function (exports) {
4251
4291
  fragment: fragment,
4252
4292
  owner: getVMBeingRendered()
4253
4293
  };
4294
+ } // [fr]agment node
4295
+
4296
+
4297
+ function fr(key, children, stable) {
4298
+ return {
4299
+ type: 5
4300
+ /* VNodeType.Fragment */
4301
+ ,
4302
+ sel: undefined,
4303
+ key: key,
4304
+ elm: undefined,
4305
+ children: [t('')].concat(_toConsumableArray(children), [t('')]),
4306
+ stable: stable,
4307
+ owner: getVMBeingRendered()
4308
+ };
4254
4309
  } // [h]tml node
4255
4310
 
4256
4311
 
@@ -4418,7 +4473,7 @@ var LWC = (function (exports) {
4418
4473
 
4419
4474
 
4420
4475
  function co(text) {
4421
- var sel, key, elm;
4476
+ var sel, elm;
4422
4477
  return {
4423
4478
  type: 1
4424
4479
  /* VNodeType.Comment */
@@ -4426,7 +4481,7 @@ var LWC = (function (exports) {
4426
4481
  sel: sel,
4427
4482
  text: text,
4428
4483
  elm: elm,
4429
- key: key,
4484
+ key: 'c',
4430
4485
  owner: getVMBeingRendered()
4431
4486
  };
4432
4487
  } // [d]ynamic text
@@ -4593,6 +4648,7 @@ var LWC = (function (exports) {
4593
4648
  k: k,
4594
4649
  co: co,
4595
4650
  dc: dc,
4651
+ fr: fr,
4596
4652
  ti: ti,
4597
4653
  st: st,
4598
4654
  gid: gid,
@@ -6063,6 +6119,13 @@ var LWC = (function (exports) {
6063
6119
  hydratedNode = hydrateStaticElement(node, vnode, renderer);
6064
6120
  break;
6065
6121
 
6122
+ case 5
6123
+ /* VNodeType.Fragment */
6124
+ :
6125
+ // a fragment does not represent any element, therefore there is no need to use a custom renderer.
6126
+ hydratedNode = hydrateFragment(node, vnode, renderer);
6127
+ break;
6128
+
6066
6129
  case 2
6067
6130
  /* VNodeType.Element */
6068
6131
  :
@@ -6120,6 +6183,13 @@ var LWC = (function (exports) {
6120
6183
  return elm;
6121
6184
  }
6122
6185
 
6186
+ function hydrateFragment(elm, vnode, renderer) {
6187
+ var children = vnode.children,
6188
+ owner = vnode.owner;
6189
+ hydrateChildren(elm, children, renderer.getProperty(elm, 'parentNode'), owner);
6190
+ return vnode.elm = children[children.length - 1].elm;
6191
+ }
6192
+
6123
6193
  function hydrateElement(elm, vnode, renderer) {
6124
6194
  if (!hasCorrectNodeType(vnode, elm, 1
6125
6195
  /* EnvNodeTypes.ELEMENT */
@@ -6487,7 +6557,7 @@ var LWC = (function (exports) {
6487
6557
 
6488
6558
  return ctor;
6489
6559
  }
6490
- /* version: 2.23.4 */
6560
+ /* version: 2.23.6 */
6491
6561
 
6492
6562
  /*
6493
6563
  * Copyright (c) 2018, salesforce.com, inc.
@@ -6658,356 +6728,397 @@ var LWC = (function (exports) {
6658
6728
 
6659
6729
 
6660
6730
  function rendererFactory(baseRenderer) {
6661
- // Util functions
6662
- function assertInvariant(value, msg) {
6663
- if (!value) {
6664
- throw new Error("Invariant Violation: ".concat(msg));
6731
+ var renderer = function (exports) {
6732
+ /**
6733
+ * Copyright (C) 2018 salesforce.com, inc.
6734
+ */
6735
+
6736
+ /*
6737
+ * Copyright (c) 2018, salesforce.com, inc.
6738
+ * All rights reserved.
6739
+ * SPDX-License-Identifier: MIT
6740
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6741
+ */
6742
+ function invariant(value, msg) {
6743
+ if (!value) {
6744
+ throw new Error("Invariant Violation: ".concat(msg));
6745
+ }
6665
6746
  }
6666
- }
6667
6747
 
6668
- function isNull(obj) {
6669
- return obj === null;
6670
- }
6748
+ function isTrue$1(value, msg) {
6749
+ if (!value) {
6750
+ throw new Error("Assert Violation: ".concat(msg));
6751
+ }
6752
+ }
6671
6753
 
6672
- function isUndefined(obj) {
6673
- return obj === undefined;
6674
- }
6754
+ function isFalse$1(value, msg) {
6755
+ if (value) {
6756
+ throw new Error("Assert Violation: ".concat(msg));
6757
+ }
6758
+ }
6675
6759
 
6676
- var getCustomElement;
6677
- var defineCustomElement;
6678
- var HTMLElementConstructor;
6760
+ function fail(msg) {
6761
+ throw new Error(msg);
6762
+ }
6679
6763
 
6680
- function isCustomElementRegistryAvailable() {
6681
- if (typeof customElements === 'undefined') {
6682
- return false;
6764
+ var assert = /*#__PURE__*/Object.freeze({
6765
+ __proto__: null,
6766
+ invariant: invariant,
6767
+ isTrue: isTrue$1,
6768
+ isFalse: isFalse$1,
6769
+ fail: fail
6770
+ });
6771
+
6772
+ function isUndefined(obj) {
6773
+ return obj === undefined;
6683
6774
  }
6684
6775
 
6685
- try {
6686
- // dereference HTMLElement global because babel wraps globals in compat mode with a
6687
- // _wrapNativeSuper()
6688
- // This is a problem because LWCUpgradableElement extends renderer.HTMLElementExported which does not
6689
- // get wrapped by babel.
6690
- var HTMLElementAlias = HTMLElement; // In case we use compat mode with a modern browser, the compat mode transformation
6691
- // invokes the DOM api with an .apply() or .call() to initialize any DOM api sub-classing,
6692
- // which are not equipped to be initialized that way.
6776
+ function isNull(obj) {
6777
+ return obj === null;
6778
+ }
6779
+ /** version: 2.23.6 */
6693
6780
 
6694
- var clazz = /*#__PURE__*/function (_HTMLElementAlias) {
6695
- _inherits(clazz, _HTMLElementAlias);
6781
+ /*
6782
+ * Copyright (c) 2018, salesforce.com, inc.
6783
+ * All rights reserved.
6784
+ * SPDX-License-Identifier: MIT
6785
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6786
+ */
6696
6787
 
6697
- var _super7 = _createSuper(clazz);
6698
6788
 
6699
- function clazz() {
6700
- _classCallCheck(this, clazz);
6789
+ exports.getCustomElement = void 0;
6790
+ exports.defineCustomElement = void 0;
6791
+ var HTMLElementConstructor;
6701
6792
 
6702
- return _super7.apply(this, arguments);
6703
- }
6793
+ function isCustomElementRegistryAvailable() {
6794
+ if (typeof customElements === 'undefined') {
6795
+ return false;
6796
+ }
6704
6797
 
6705
- return _createClass(clazz);
6706
- }(HTMLElementAlias);
6798
+ try {
6799
+ // dereference HTMLElement global because babel wraps globals in compat mode with a
6800
+ // _wrapNativeSuper()
6801
+ // This is a problem because LWCUpgradableElement extends renderer.HTMLElementExported which does not
6802
+ // get wrapped by babel.
6803
+ var HTMLElementAlias = HTMLElement; // In case we use compat mode with a modern browser, the compat mode transformation
6804
+ // invokes the DOM api with an .apply() or .call() to initialize any DOM api sub-classing,
6805
+ // which are not equipped to be initialized that way.
6707
6806
 
6708
- customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
6709
- new clazz();
6710
- return true;
6711
- } catch (_a) {
6712
- return false;
6713
- }
6714
- }
6807
+ var clazz = /*#__PURE__*/function (_HTMLElementAlias) {
6808
+ _inherits(clazz, _HTMLElementAlias);
6715
6809
 
6716
- if (isCustomElementRegistryAvailable()) {
6717
- getCustomElement = customElements.get.bind(customElements);
6718
- defineCustomElement = customElements.define.bind(customElements);
6719
- HTMLElementConstructor = HTMLElement;
6720
- } else {
6721
- var registry = Object.create(null);
6722
- var reverseRegistry = new WeakMap();
6810
+ var _super7 = _createSuper(clazz);
6723
6811
 
6724
- defineCustomElement = function define(name, ctor) {
6725
- if (name !== String.prototype.toLowerCase.call(name) || registry[name]) {
6726
- throw new TypeError("Invalid Registration");
6727
- }
6812
+ function clazz() {
6813
+ _classCallCheck(this, clazz);
6728
6814
 
6729
- registry[name] = ctor;
6730
- reverseRegistry.set(ctor, name);
6731
- };
6815
+ return _super7.apply(this, arguments);
6816
+ }
6732
6817
 
6733
- getCustomElement = function get(name) {
6734
- return registry[name];
6735
- };
6818
+ return _createClass(clazz);
6819
+ }(HTMLElementAlias);
6736
6820
 
6737
- HTMLElementConstructor = function HTMLElement() {
6738
- if (!(this instanceof HTMLElement)) {
6739
- throw new TypeError("Invalid Invocation");
6821
+ customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
6822
+ new clazz();
6823
+ return true;
6824
+ } catch (_a) {
6825
+ return false;
6740
6826
  }
6827
+ }
6741
6828
 
6742
- var constructor = this.constructor;
6743
- var name = reverseRegistry.get(constructor);
6829
+ if (isCustomElementRegistryAvailable()) {
6830
+ exports.getCustomElement = customElements.get.bind(customElements);
6831
+ exports.defineCustomElement = customElements.define.bind(customElements);
6832
+ HTMLElementConstructor = HTMLElement;
6833
+ } else {
6834
+ var registry = Object.create(null);
6835
+ var reverseRegistry = new WeakMap();
6744
6836
 
6745
- if (!name) {
6746
- throw new TypeError("Invalid Construction");
6747
- }
6837
+ exports.defineCustomElement = function define(name, ctor) {
6838
+ if (name !== String.prototype.toLowerCase.call(name) || registry[name]) {
6839
+ throw new TypeError("Invalid Registration");
6840
+ }
6748
6841
 
6749
- var elm = document.createElement(name);
6750
- Object.setPrototypeOf(elm, constructor.prototype);
6751
- return elm;
6752
- };
6842
+ registry[name] = ctor;
6843
+ reverseRegistry.set(ctor, name);
6844
+ };
6753
6845
 
6754
- HTMLElementConstructor.prototype = HTMLElement.prototype;
6755
- }
6846
+ exports.getCustomElement = function get(name) {
6847
+ return registry[name];
6848
+ };
6756
6849
 
6757
- function cloneNode(node, deep) {
6758
- return node.cloneNode(deep);
6759
- }
6850
+ HTMLElementConstructor = function HTMLElement() {
6851
+ if (!(this instanceof HTMLElement)) {
6852
+ throw new TypeError("Invalid Invocation");
6853
+ }
6760
6854
 
6761
- function createElement(tagName, namespace) {
6762
- return isUndefined(namespace) ? document.createElement(tagName) : document.createElementNS(namespace, tagName);
6763
- }
6855
+ var constructor = this.constructor;
6856
+ var name = reverseRegistry.get(constructor);
6764
6857
 
6765
- function createText(content) {
6766
- return document.createTextNode(content);
6767
- }
6858
+ if (!name) {
6859
+ throw new TypeError("Invalid Construction");
6860
+ }
6768
6861
 
6769
- function createComment(content) {
6770
- return document.createComment(content);
6771
- }
6862
+ var elm = document.createElement(name);
6863
+ Object.setPrototypeOf(elm, constructor.prototype);
6864
+ return elm;
6865
+ };
6772
6866
 
6773
- var createFragment; // IE11 lacks support for this feature
6867
+ HTMLElementConstructor.prototype = HTMLElement.prototype;
6868
+ }
6774
6869
 
6775
- var SUPPORTS_TEMPLATE = typeof HTMLTemplateElement === 'function';
6870
+ function cloneNode(node, deep) {
6871
+ return node.cloneNode(deep);
6872
+ }
6776
6873
 
6777
- if (SUPPORTS_TEMPLATE) {
6778
- // Parse the fragment HTML string into DOM
6779
- createFragment = function createFragment(html) {
6780
- var template = document.createElement('template');
6781
- template.innerHTML = html;
6782
- return template.content.firstChild;
6783
- };
6784
- } else {
6785
- // In browsers that don't support <template> (e.g. IE11), we need to be careful to wrap elements like
6786
- // <td> in the proper container elements (e.g. <tbody>), because otherwise they will be parsed as null.
6787
- // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L273-L280
6788
- // With other elements added from:
6789
- // https://github.com/sindresorhus/html-tags/blob/95dcdd5/index.js
6790
- // Using the test:
6791
- // document.createRange().createContextualFragment(`<${tag}></${tag}>`).firstChild === null
6792
- // And omitting <html>, <head>, and <body> as these are not practical in an LWC component.
6793
- var topLevelWrappingMap = {
6794
- caption: ['table'],
6795
- col: ['colgroup', 'table'],
6796
- colgroup: ['table'],
6797
- option: ['select'],
6798
- tbody: ['table'],
6799
- td: ['tr', 'tbody', 'table'],
6800
- th: ['tr', 'tbody', 'table'],
6801
- thead: ['table'],
6802
- tfoot: ['table'],
6803
- tr: ['tbody', 'table']
6804
- }; // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L282-L288
6805
-
6806
- var getTagName = function getTagName(text) {
6807
- return (/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(text) || ['', ''])[1].toLowerCase();
6808
- }; // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L295-L320
6809
-
6810
-
6811
- createFragment = function createFragment(html) {
6812
- var wrapperTags = topLevelWrappingMap[getTagName(html)];
6813
-
6814
- if (!isUndefined(wrapperTags)) {
6815
- var _iterator5 = _createForOfIteratorHelper(wrapperTags),
6816
- _step5;
6817
-
6818
- try {
6819
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
6820
- var wrapperTag = _step5.value;
6821
- html = "<".concat(wrapperTag, ">").concat(html, "</").concat(wrapperTag, ">");
6874
+ function createElement(tagName, namespace) {
6875
+ return isUndefined(namespace) ? document.createElement(tagName) : document.createElementNS(namespace, tagName);
6876
+ }
6877
+
6878
+ function createText(content) {
6879
+ return document.createTextNode(content);
6880
+ }
6881
+
6882
+ function createComment(content) {
6883
+ return document.createComment(content);
6884
+ }
6885
+
6886
+ exports.createFragment = void 0; // IE11 lacks support for this feature
6887
+
6888
+ var SUPPORTS_TEMPLATE = typeof HTMLTemplateElement === 'function';
6889
+
6890
+ if (SUPPORTS_TEMPLATE) {
6891
+ // Parse the fragment HTML string into DOM
6892
+ exports.createFragment = function (html) {
6893
+ var template = document.createElement('template');
6894
+ template.innerHTML = html;
6895
+ return template.content.firstChild;
6896
+ };
6897
+ } else {
6898
+ // In browsers that don't support <template> (e.g. IE11), we need to be careful to wrap elements like
6899
+ // <td> in the proper container elements (e.g. <tbody>), because otherwise they will be parsed as null.
6900
+ // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L273-L280
6901
+ // With other elements added from:
6902
+ // https://github.com/sindresorhus/html-tags/blob/95dcdd5/index.js
6903
+ // Using the test:
6904
+ // document.createRange().createContextualFragment(`<${tag}></${tag}>`).firstChild === null
6905
+ // And omitting <html>, <head>, and <body> as these are not practical in an LWC component.
6906
+ var topLevelWrappingMap = {
6907
+ caption: ['table'],
6908
+ col: ['colgroup', 'table'],
6909
+ colgroup: ['table'],
6910
+ option: ['select'],
6911
+ tbody: ['table'],
6912
+ td: ['tr', 'tbody', 'table'],
6913
+ th: ['tr', 'tbody', 'table'],
6914
+ thead: ['table'],
6915
+ tfoot: ['table'],
6916
+ tr: ['tbody', 'table']
6917
+ }; // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L282-L288
6918
+
6919
+ var getTagName = function getTagName(text) {
6920
+ return (/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(text) || ['', ''])[1].toLowerCase();
6921
+ }; // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L295-L320
6922
+
6923
+
6924
+ exports.createFragment = function (html) {
6925
+ var wrapperTags = topLevelWrappingMap[getTagName(html)];
6926
+
6927
+ if (!isUndefined(wrapperTags)) {
6928
+ var _iterator5 = _createForOfIteratorHelper(wrapperTags),
6929
+ _step5;
6930
+
6931
+ try {
6932
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
6933
+ var wrapperTag = _step5.value;
6934
+ html = "<".concat(wrapperTag, ">").concat(html, "</").concat(wrapperTag, ">");
6935
+ }
6936
+ } catch (err) {
6937
+ _iterator5.e(err);
6938
+ } finally {
6939
+ _iterator5.f();
6822
6940
  }
6823
- } catch (err) {
6824
- _iterator5.e(err);
6825
- } finally {
6826
- _iterator5.f();
6827
- }
6828
- } // For IE11, the document title must not be undefined, but it can be an empty string
6829
- // https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument#browser_compatibility
6941
+ } // For IE11, the document title must not be undefined, but it can be an empty string
6942
+ // https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument#browser_compatibility
6830
6943
 
6831
6944
 
6832
- var doc = document.implementation.createHTMLDocument('');
6833
- doc.body.innerHTML = html;
6834
- var content = doc.body;
6945
+ var doc = document.implementation.createHTMLDocument('');
6946
+ doc.body.innerHTML = html;
6947
+ var content = doc.body;
6835
6948
 
6836
- if (!isUndefined(wrapperTags)) {
6837
- for (var _i32 = 0; _i32 < wrapperTags.length; _i32++) {
6838
- content = content.firstChild;
6949
+ if (!isUndefined(wrapperTags)) {
6950
+ for (var _i32 = 0; _i32 < wrapperTags.length; _i32++) {
6951
+ content = content.firstChild;
6952
+ }
6839
6953
  }
6840
- }
6841
6954
 
6842
- return content.firstChild;
6843
- };
6844
- }
6955
+ return content.firstChild;
6956
+ };
6957
+ }
6845
6958
 
6846
- function insert(node, parent, anchor) {
6847
- parent.insertBefore(node, anchor);
6848
- }
6959
+ function insert(node, parent, anchor) {
6960
+ parent.insertBefore(node, anchor);
6961
+ }
6849
6962
 
6850
- function remove(node, parent) {
6851
- parent.removeChild(node);
6852
- }
6963
+ function remove(node, parent) {
6964
+ parent.removeChild(node);
6965
+ }
6853
6966
 
6854
- function nextSibling(node) {
6855
- return node.nextSibling;
6856
- }
6967
+ function nextSibling(node) {
6968
+ return node.nextSibling;
6969
+ }
6970
+
6971
+ function attachShadow(element, options) {
6972
+ // `shadowRoot` will be non-null in two cases:
6973
+ // 1. upon initial load with an SSR-generated DOM, while in Shadow render mode
6974
+ // 2. when a webapp author places <c-app> in their static HTML and mounts their
6975
+ // root component with customElement.define('c-app', Ctor)
6976
+ if (!isNull(element.shadowRoot)) {
6977
+ return element.shadowRoot;
6978
+ }
6857
6979
 
6858
- function attachShadow(element, options) {
6859
- // `shadowRoot` will be non-null in two cases:
6860
- // 1. upon initial load with an SSR-generated DOM, while in Shadow render mode
6861
- // 2. when a webapp author places <c-app> in their static HTML and mounts their
6862
- // root component with customElement.define('c-app', Ctor)
6863
- if (!isNull(element.shadowRoot)) {
6864
- return element.shadowRoot;
6980
+ return element.attachShadow(options);
6865
6981
  }
6866
6982
 
6867
- return element.attachShadow(options);
6868
- }
6983
+ function setText(node, content) {
6984
+ node.nodeValue = content;
6985
+ }
6869
6986
 
6870
- function setText(node, content) {
6871
- node.nodeValue = content;
6872
- }
6987
+ function getProperty(node, key) {
6988
+ return node[key];
6989
+ }
6873
6990
 
6874
- function getProperty(node, key) {
6875
- return node[key];
6876
- }
6991
+ function setProperty(node, key, value) {
6992
+ node[key] = value;
6993
+ }
6877
6994
 
6878
- function setProperty(node, key, value) {
6879
- node[key] = value;
6880
- }
6995
+ function getAttribute(element, name, namespace) {
6996
+ return isUndefined(namespace) ? element.getAttribute(name) : element.getAttributeNS(namespace, name);
6997
+ }
6881
6998
 
6882
- function getAttribute(element, name, namespace) {
6883
- return isUndefined(namespace) ? element.getAttribute(name) : element.getAttributeNS(namespace, name);
6884
- }
6999
+ function setAttribute(element, name, value, namespace) {
7000
+ return isUndefined(namespace) ? element.setAttribute(name, value) : element.setAttributeNS(namespace, name, value);
7001
+ }
6885
7002
 
6886
- function setAttribute(element, name, value, namespace) {
6887
- return isUndefined(namespace) ? element.setAttribute(name, value) : element.setAttributeNS(namespace, name, value);
6888
- }
7003
+ function removeAttribute(element, name, namespace) {
7004
+ if (isUndefined(namespace)) {
7005
+ element.removeAttribute(name);
7006
+ } else {
7007
+ element.removeAttributeNS(namespace, name);
7008
+ }
7009
+ }
6889
7010
 
6890
- function removeAttribute(element, name, namespace) {
6891
- if (isUndefined(namespace)) {
6892
- element.removeAttribute(name);
6893
- } else {
6894
- element.removeAttributeNS(namespace, name);
7011
+ function addEventListener(target, type, callback, options) {
7012
+ target.addEventListener(type, callback, options);
6895
7013
  }
6896
- }
6897
7014
 
6898
- function addEventListener(target, type, callback, options) {
6899
- target.addEventListener(type, callback, options);
6900
- }
7015
+ function removeEventListener(target, type, callback, options) {
7016
+ target.removeEventListener(type, callback, options);
7017
+ }
6901
7018
 
6902
- function removeEventListener(target, type, callback, options) {
6903
- target.removeEventListener(type, callback, options);
6904
- }
7019
+ function dispatchEvent(target, event) {
7020
+ return target.dispatchEvent(event);
7021
+ }
6905
7022
 
6906
- function dispatchEvent(target, event) {
6907
- return target.dispatchEvent(event);
6908
- }
7023
+ function getClassList(element) {
7024
+ return element.classList;
7025
+ }
6909
7026
 
6910
- function getClassList(element) {
6911
- return element.classList;
6912
- }
7027
+ function setCSSStyleProperty(element, name, value, important) {
7028
+ // TODO [#0]: How to avoid this type casting? Shall we use a different type interface to
7029
+ // represent elements in the engine?
7030
+ element.style.setProperty(name, value, important ? 'important' : '');
7031
+ }
6913
7032
 
6914
- function setCSSStyleProperty(element, name, value, important) {
6915
- // TODO [#0]: How to avoid this type casting? Shall we use a different type interface to
6916
- // represent elements in the engine?
6917
- element.style.setProperty(name, value, important ? 'important' : '');
6918
- }
7033
+ function getBoundingClientRect(element) {
7034
+ return element.getBoundingClientRect();
7035
+ }
6919
7036
 
6920
- function getBoundingClientRect(element) {
6921
- return element.getBoundingClientRect();
6922
- }
7037
+ function querySelector(element, selectors) {
7038
+ return element.querySelector(selectors);
7039
+ }
6923
7040
 
6924
- function querySelector(element, selectors) {
6925
- return element.querySelector(selectors);
6926
- }
7041
+ function querySelectorAll(element, selectors) {
7042
+ return element.querySelectorAll(selectors);
7043
+ }
6927
7044
 
6928
- function querySelectorAll(element, selectors) {
6929
- return element.querySelectorAll(selectors);
6930
- }
7045
+ function getElementsByTagName(element, tagNameOrWildCard) {
7046
+ return element.getElementsByTagName(tagNameOrWildCard);
7047
+ }
6931
7048
 
6932
- function getElementsByTagName(element, tagNameOrWildCard) {
6933
- return element.getElementsByTagName(tagNameOrWildCard);
6934
- }
7049
+ function getElementsByClassName(element, names) {
7050
+ return element.getElementsByClassName(names);
7051
+ }
6935
7052
 
6936
- function getElementsByClassName(element, names) {
6937
- return element.getElementsByClassName(names);
6938
- }
7053
+ function getChildren(element) {
7054
+ return element.children;
7055
+ }
6939
7056
 
6940
- function getChildren(element) {
6941
- return element.children;
6942
- }
7057
+ function getChildNodes(element) {
7058
+ return element.childNodes;
7059
+ }
6943
7060
 
6944
- function getChildNodes(element) {
6945
- return element.childNodes;
6946
- }
7061
+ function getFirstChild(element) {
7062
+ return element.firstChild;
7063
+ }
6947
7064
 
6948
- function getFirstChild(element) {
6949
- return element.firstChild;
6950
- }
7065
+ function getFirstElementChild(element) {
7066
+ return element.firstElementChild;
7067
+ }
6951
7068
 
6952
- function getFirstElementChild(element) {
6953
- return element.firstElementChild;
6954
- }
7069
+ function getLastChild(element) {
7070
+ return element.lastChild;
7071
+ }
6955
7072
 
6956
- function getLastChild(element) {
6957
- return element.lastChild;
6958
- }
7073
+ function getLastElementChild(element) {
7074
+ return element.lastElementChild;
7075
+ }
6959
7076
 
6960
- function getLastElementChild(element) {
6961
- return element.lastElementChild;
6962
- }
7077
+ function isConnected(node) {
7078
+ return node.isConnected;
7079
+ }
6963
7080
 
6964
- function isConnected(node) {
6965
- return node.isConnected;
6966
- }
7081
+ function assertInstanceOfHTMLElement(elm, msg) {
7082
+ assert.invariant(elm instanceof HTMLElement, msg);
7083
+ }
6967
7084
 
6968
- function assertInstanceOfHTMLElement(elm, msg) {
6969
- assertInvariant(elm instanceof HTMLElement, msg);
6970
- }
7085
+ var HTMLElementExported = HTMLElementConstructor;
7086
+ exports.HTMLElementExported = HTMLElementExported;
7087
+ exports.addEventListener = addEventListener;
7088
+ exports.assertInstanceOfHTMLElement = assertInstanceOfHTMLElement;
7089
+ exports.attachShadow = attachShadow;
7090
+ exports.cloneNode = cloneNode;
7091
+ exports.createComment = createComment;
7092
+ exports.createElement = createElement;
7093
+ exports.createText = createText;
7094
+ exports.dispatchEvent = dispatchEvent;
7095
+ exports.getAttribute = getAttribute;
7096
+ exports.getBoundingClientRect = getBoundingClientRect;
7097
+ exports.getChildNodes = getChildNodes;
7098
+ exports.getChildren = getChildren;
7099
+ exports.getClassList = getClassList;
7100
+ exports.getElementsByClassName = getElementsByClassName;
7101
+ exports.getElementsByTagName = getElementsByTagName;
7102
+ exports.getFirstChild = getFirstChild;
7103
+ exports.getFirstElementChild = getFirstElementChild;
7104
+ exports.getLastChild = getLastChild;
7105
+ exports.getLastElementChild = getLastElementChild;
7106
+ exports.getProperty = getProperty;
7107
+ exports.insert = insert;
7108
+ exports.isConnected = isConnected;
7109
+ exports.nextSibling = nextSibling;
7110
+ exports.querySelector = querySelector;
7111
+ exports.querySelectorAll = querySelectorAll;
7112
+ exports.remove = remove;
7113
+ exports.removeAttribute = removeAttribute;
7114
+ exports.removeEventListener = removeEventListener;
7115
+ exports.setAttribute = setAttribute;
7116
+ exports.setCSSStyleProperty = setCSSStyleProperty;
7117
+ exports.setProperty = setProperty;
7118
+ exports.setText = setText;
7119
+ return exports;
7120
+ }({}); // Meant to inherit any properties passed via the base renderer as the argument to the factory.
6971
7121
 
6972
- var HTMLElementExported = HTMLElementConstructor;
6973
- var renderer = {
6974
- HTMLElementExported: HTMLElementExported,
6975
- insert: insert,
6976
- remove: remove,
6977
- cloneNode: cloneNode,
6978
- createFragment: createFragment,
6979
- createElement: createElement,
6980
- createText: createText,
6981
- createComment: createComment,
6982
- nextSibling: nextSibling,
6983
- attachShadow: attachShadow,
6984
- getProperty: getProperty,
6985
- setProperty: setProperty,
6986
- setText: setText,
6987
- getAttribute: getAttribute,
6988
- setAttribute: setAttribute,
6989
- removeAttribute: removeAttribute,
6990
- addEventListener: addEventListener,
6991
- removeEventListener: removeEventListener,
6992
- dispatchEvent: dispatchEvent,
6993
- getClassList: getClassList,
6994
- setCSSStyleProperty: setCSSStyleProperty,
6995
- getBoundingClientRect: getBoundingClientRect,
6996
- querySelector: querySelector,
6997
- querySelectorAll: querySelectorAll,
6998
- getElementsByTagName: getElementsByTagName,
6999
- getElementsByClassName: getElementsByClassName,
7000
- getChildren: getChildren,
7001
- getChildNodes: getChildNodes,
7002
- getFirstChild: getFirstChild,
7003
- getFirstElementChild: getFirstElementChild,
7004
- getLastChild: getLastChild,
7005
- getLastElementChild: getLastElementChild,
7006
- isConnected: isConnected,
7007
- assertInstanceOfHTMLElement: assertInstanceOfHTMLElement,
7008
- defineCustomElement: defineCustomElement,
7009
- getCustomElement: getCustomElement
7010
- }; // Meant to inherit any properties passed via the base renderer as the argument to the factory.
7011
7122
 
7012
7123
  Object.setPrototypeOf(renderer, baseRenderer);
7013
7124
  return renderer;
@@ -7388,7 +7499,7 @@ var LWC = (function (exports) {
7388
7499
  });
7389
7500
  freeze(LightningElement);
7390
7501
  seal(LightningElement.prototype);
7391
- /* version: 2.23.4 */
7502
+ /* version: 2.23.6 */
7392
7503
 
7393
7504
  exports.LightningElement = LightningElement;
7394
7505
  exports.__unstable__ProfilerControl = profilerControl;