lwc 2.23.5 → 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 (34) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +97 -58
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +97 -58
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +95 -56
  5. package/dist/engine-dom/iife/es5/engine-dom.js +329 -288
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +327 -286
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +97 -58
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +95 -56
  11. package/dist/engine-dom/umd/es5/engine-dom.js +329 -288
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +327 -286
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +5 -5
  15. package/dist/engine-server/esm/es2017/engine-server.js +5 -5
  16. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
  17. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
  19. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
  20. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
  21. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +3 -3
  22. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
  23. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
  24. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
  25. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  26. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  27. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  28. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  29. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  30. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  32. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  33. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  34. 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.5 */
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.5 */
443
+ /** version: 2.23.6 */
444
444
 
445
445
  /**
446
446
  * Copyright (C) 2018 salesforce.com, inc.
@@ -6557,7 +6557,7 @@ var LWC = (function (exports) {
6557
6557
 
6558
6558
  return ctor;
6559
6559
  }
6560
- /* version: 2.23.5 */
6560
+ /* version: 2.23.6 */
6561
6561
 
6562
6562
  /*
6563
6563
  * Copyright (c) 2018, salesforce.com, inc.
@@ -6728,356 +6728,397 @@ var LWC = (function (exports) {
6728
6728
 
6729
6729
 
6730
6730
  function rendererFactory(baseRenderer) {
6731
- // Util functions
6732
- function assertInvariant(value, msg) {
6733
- if (!value) {
6734
- 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
+ }
6735
6746
  }
6736
- }
6737
6747
 
6738
- function isNull(obj) {
6739
- return obj === null;
6740
- }
6748
+ function isTrue$1(value, msg) {
6749
+ if (!value) {
6750
+ throw new Error("Assert Violation: ".concat(msg));
6751
+ }
6752
+ }
6741
6753
 
6742
- function isUndefined(obj) {
6743
- return obj === undefined;
6744
- }
6754
+ function isFalse$1(value, msg) {
6755
+ if (value) {
6756
+ throw new Error("Assert Violation: ".concat(msg));
6757
+ }
6758
+ }
6759
+
6760
+ function fail(msg) {
6761
+ throw new Error(msg);
6762
+ }
6745
6763
 
6746
- var getCustomElement;
6747
- var defineCustomElement;
6748
- var HTMLElementConstructor;
6764
+ var assert = /*#__PURE__*/Object.freeze({
6765
+ __proto__: null,
6766
+ invariant: invariant,
6767
+ isTrue: isTrue$1,
6768
+ isFalse: isFalse$1,
6769
+ fail: fail
6770
+ });
6749
6771
 
6750
- function isCustomElementRegistryAvailable() {
6751
- if (typeof customElements === 'undefined') {
6752
- return false;
6772
+ function isUndefined(obj) {
6773
+ return obj === undefined;
6753
6774
  }
6754
6775
 
6755
- try {
6756
- // dereference HTMLElement global because babel wraps globals in compat mode with a
6757
- // _wrapNativeSuper()
6758
- // This is a problem because LWCUpgradableElement extends renderer.HTMLElementExported which does not
6759
- // get wrapped by babel.
6760
- var HTMLElementAlias = HTMLElement; // In case we use compat mode with a modern browser, the compat mode transformation
6761
- // invokes the DOM api with an .apply() or .call() to initialize any DOM api sub-classing,
6762
- // which are not equipped to be initialized that way.
6776
+ function isNull(obj) {
6777
+ return obj === null;
6778
+ }
6779
+ /** version: 2.23.6 */
6763
6780
 
6764
- var clazz = /*#__PURE__*/function (_HTMLElementAlias) {
6765
- _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
+ */
6766
6787
 
6767
- var _super7 = _createSuper(clazz);
6768
6788
 
6769
- function clazz() {
6770
- _classCallCheck(this, clazz);
6789
+ exports.getCustomElement = void 0;
6790
+ exports.defineCustomElement = void 0;
6791
+ var HTMLElementConstructor;
6771
6792
 
6772
- return _super7.apply(this, arguments);
6773
- }
6793
+ function isCustomElementRegistryAvailable() {
6794
+ if (typeof customElements === 'undefined') {
6795
+ return false;
6796
+ }
6774
6797
 
6775
- return _createClass(clazz);
6776
- }(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.
6777
6806
 
6778
- customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
6779
- new clazz();
6780
- return true;
6781
- } catch (_a) {
6782
- return false;
6783
- }
6784
- }
6807
+ var clazz = /*#__PURE__*/function (_HTMLElementAlias) {
6808
+ _inherits(clazz, _HTMLElementAlias);
6785
6809
 
6786
- if (isCustomElementRegistryAvailable()) {
6787
- getCustomElement = customElements.get.bind(customElements);
6788
- defineCustomElement = customElements.define.bind(customElements);
6789
- HTMLElementConstructor = HTMLElement;
6790
- } else {
6791
- var registry = Object.create(null);
6792
- var reverseRegistry = new WeakMap();
6810
+ var _super7 = _createSuper(clazz);
6793
6811
 
6794
- defineCustomElement = function define(name, ctor) {
6795
- if (name !== String.prototype.toLowerCase.call(name) || registry[name]) {
6796
- throw new TypeError("Invalid Registration");
6797
- }
6812
+ function clazz() {
6813
+ _classCallCheck(this, clazz);
6798
6814
 
6799
- registry[name] = ctor;
6800
- reverseRegistry.set(ctor, name);
6801
- };
6815
+ return _super7.apply(this, arguments);
6816
+ }
6802
6817
 
6803
- getCustomElement = function get(name) {
6804
- return registry[name];
6805
- };
6818
+ return _createClass(clazz);
6819
+ }(HTMLElementAlias);
6806
6820
 
6807
- HTMLElementConstructor = function HTMLElement() {
6808
- if (!(this instanceof HTMLElement)) {
6809
- 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;
6810
6826
  }
6827
+ }
6811
6828
 
6812
- var constructor = this.constructor;
6813
- 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();
6814
6836
 
6815
- if (!name) {
6816
- throw new TypeError("Invalid Construction");
6817
- }
6837
+ exports.defineCustomElement = function define(name, ctor) {
6838
+ if (name !== String.prototype.toLowerCase.call(name) || registry[name]) {
6839
+ throw new TypeError("Invalid Registration");
6840
+ }
6818
6841
 
6819
- var elm = document.createElement(name);
6820
- Object.setPrototypeOf(elm, constructor.prototype);
6821
- return elm;
6822
- };
6842
+ registry[name] = ctor;
6843
+ reverseRegistry.set(ctor, name);
6844
+ };
6823
6845
 
6824
- HTMLElementConstructor.prototype = HTMLElement.prototype;
6825
- }
6846
+ exports.getCustomElement = function get(name) {
6847
+ return registry[name];
6848
+ };
6826
6849
 
6827
- function cloneNode(node, deep) {
6828
- return node.cloneNode(deep);
6829
- }
6850
+ HTMLElementConstructor = function HTMLElement() {
6851
+ if (!(this instanceof HTMLElement)) {
6852
+ throw new TypeError("Invalid Invocation");
6853
+ }
6830
6854
 
6831
- function createElement(tagName, namespace) {
6832
- return isUndefined(namespace) ? document.createElement(tagName) : document.createElementNS(namespace, tagName);
6833
- }
6855
+ var constructor = this.constructor;
6856
+ var name = reverseRegistry.get(constructor);
6834
6857
 
6835
- function createText(content) {
6836
- return document.createTextNode(content);
6837
- }
6858
+ if (!name) {
6859
+ throw new TypeError("Invalid Construction");
6860
+ }
6838
6861
 
6839
- function createComment(content) {
6840
- return document.createComment(content);
6841
- }
6862
+ var elm = document.createElement(name);
6863
+ Object.setPrototypeOf(elm, constructor.prototype);
6864
+ return elm;
6865
+ };
6842
6866
 
6843
- var createFragment; // IE11 lacks support for this feature
6867
+ HTMLElementConstructor.prototype = HTMLElement.prototype;
6868
+ }
6844
6869
 
6845
- var SUPPORTS_TEMPLATE = typeof HTMLTemplateElement === 'function';
6870
+ function cloneNode(node, deep) {
6871
+ return node.cloneNode(deep);
6872
+ }
6846
6873
 
6847
- if (SUPPORTS_TEMPLATE) {
6848
- // Parse the fragment HTML string into DOM
6849
- createFragment = function createFragment(html) {
6850
- var template = document.createElement('template');
6851
- template.innerHTML = html;
6852
- return template.content.firstChild;
6853
- };
6854
- } else {
6855
- // In browsers that don't support <template> (e.g. IE11), we need to be careful to wrap elements like
6856
- // <td> in the proper container elements (e.g. <tbody>), because otherwise they will be parsed as null.
6857
- // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L273-L280
6858
- // With other elements added from:
6859
- // https://github.com/sindresorhus/html-tags/blob/95dcdd5/index.js
6860
- // Using the test:
6861
- // document.createRange().createContextualFragment(`<${tag}></${tag}>`).firstChild === null
6862
- // And omitting <html>, <head>, and <body> as these are not practical in an LWC component.
6863
- var topLevelWrappingMap = {
6864
- caption: ['table'],
6865
- col: ['colgroup', 'table'],
6866
- colgroup: ['table'],
6867
- option: ['select'],
6868
- tbody: ['table'],
6869
- td: ['tr', 'tbody', 'table'],
6870
- th: ['tr', 'tbody', 'table'],
6871
- thead: ['table'],
6872
- tfoot: ['table'],
6873
- tr: ['tbody', 'table']
6874
- }; // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L282-L288
6875
-
6876
- var getTagName = function getTagName(text) {
6877
- return (/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(text) || ['', ''])[1].toLowerCase();
6878
- }; // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L295-L320
6879
-
6880
-
6881
- createFragment = function createFragment(html) {
6882
- var wrapperTags = topLevelWrappingMap[getTagName(html)];
6883
-
6884
- if (!isUndefined(wrapperTags)) {
6885
- var _iterator5 = _createForOfIteratorHelper(wrapperTags),
6886
- _step5;
6887
-
6888
- try {
6889
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
6890
- var wrapperTag = _step5.value;
6891
- 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();
6892
6940
  }
6893
- } catch (err) {
6894
- _iterator5.e(err);
6895
- } finally {
6896
- _iterator5.f();
6897
- }
6898
- } // For IE11, the document title must not be undefined, but it can be an empty string
6899
- // 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
6900
6943
 
6901
6944
 
6902
- var doc = document.implementation.createHTMLDocument('');
6903
- doc.body.innerHTML = html;
6904
- var content = doc.body;
6945
+ var doc = document.implementation.createHTMLDocument('');
6946
+ doc.body.innerHTML = html;
6947
+ var content = doc.body;
6905
6948
 
6906
- if (!isUndefined(wrapperTags)) {
6907
- for (var _i32 = 0; _i32 < wrapperTags.length; _i32++) {
6908
- content = content.firstChild;
6949
+ if (!isUndefined(wrapperTags)) {
6950
+ for (var _i32 = 0; _i32 < wrapperTags.length; _i32++) {
6951
+ content = content.firstChild;
6952
+ }
6909
6953
  }
6910
- }
6911
6954
 
6912
- return content.firstChild;
6913
- };
6914
- }
6955
+ return content.firstChild;
6956
+ };
6957
+ }
6915
6958
 
6916
- function insert(node, parent, anchor) {
6917
- parent.insertBefore(node, anchor);
6918
- }
6959
+ function insert(node, parent, anchor) {
6960
+ parent.insertBefore(node, anchor);
6961
+ }
6919
6962
 
6920
- function remove(node, parent) {
6921
- parent.removeChild(node);
6922
- }
6963
+ function remove(node, parent) {
6964
+ parent.removeChild(node);
6965
+ }
6923
6966
 
6924
- function nextSibling(node) {
6925
- return node.nextSibling;
6926
- }
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
+ }
6927
6979
 
6928
- function attachShadow(element, options) {
6929
- // `shadowRoot` will be non-null in two cases:
6930
- // 1. upon initial load with an SSR-generated DOM, while in Shadow render mode
6931
- // 2. when a webapp author places <c-app> in their static HTML and mounts their
6932
- // root component with customElement.define('c-app', Ctor)
6933
- if (!isNull(element.shadowRoot)) {
6934
- return element.shadowRoot;
6980
+ return element.attachShadow(options);
6935
6981
  }
6936
6982
 
6937
- return element.attachShadow(options);
6938
- }
6983
+ function setText(node, content) {
6984
+ node.nodeValue = content;
6985
+ }
6939
6986
 
6940
- function setText(node, content) {
6941
- node.nodeValue = content;
6942
- }
6987
+ function getProperty(node, key) {
6988
+ return node[key];
6989
+ }
6943
6990
 
6944
- function getProperty(node, key) {
6945
- return node[key];
6946
- }
6991
+ function setProperty(node, key, value) {
6992
+ node[key] = value;
6993
+ }
6947
6994
 
6948
- function setProperty(node, key, value) {
6949
- node[key] = value;
6950
- }
6995
+ function getAttribute(element, name, namespace) {
6996
+ return isUndefined(namespace) ? element.getAttribute(name) : element.getAttributeNS(namespace, name);
6997
+ }
6951
6998
 
6952
- function getAttribute(element, name, namespace) {
6953
- return isUndefined(namespace) ? element.getAttribute(name) : element.getAttributeNS(namespace, name);
6954
- }
6999
+ function setAttribute(element, name, value, namespace) {
7000
+ return isUndefined(namespace) ? element.setAttribute(name, value) : element.setAttributeNS(namespace, name, value);
7001
+ }
6955
7002
 
6956
- function setAttribute(element, name, value, namespace) {
6957
- return isUndefined(namespace) ? element.setAttribute(name, value) : element.setAttributeNS(namespace, name, value);
6958
- }
7003
+ function removeAttribute(element, name, namespace) {
7004
+ if (isUndefined(namespace)) {
7005
+ element.removeAttribute(name);
7006
+ } else {
7007
+ element.removeAttributeNS(namespace, name);
7008
+ }
7009
+ }
6959
7010
 
6960
- function removeAttribute(element, name, namespace) {
6961
- if (isUndefined(namespace)) {
6962
- element.removeAttribute(name);
6963
- } else {
6964
- element.removeAttributeNS(namespace, name);
7011
+ function addEventListener(target, type, callback, options) {
7012
+ target.addEventListener(type, callback, options);
6965
7013
  }
6966
- }
6967
7014
 
6968
- function addEventListener(target, type, callback, options) {
6969
- target.addEventListener(type, callback, options);
6970
- }
7015
+ function removeEventListener(target, type, callback, options) {
7016
+ target.removeEventListener(type, callback, options);
7017
+ }
6971
7018
 
6972
- function removeEventListener(target, type, callback, options) {
6973
- target.removeEventListener(type, callback, options);
6974
- }
7019
+ function dispatchEvent(target, event) {
7020
+ return target.dispatchEvent(event);
7021
+ }
6975
7022
 
6976
- function dispatchEvent(target, event) {
6977
- return target.dispatchEvent(event);
6978
- }
7023
+ function getClassList(element) {
7024
+ return element.classList;
7025
+ }
6979
7026
 
6980
- function getClassList(element) {
6981
- return element.classList;
6982
- }
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
+ }
6983
7032
 
6984
- function setCSSStyleProperty(element, name, value, important) {
6985
- // TODO [#0]: How to avoid this type casting? Shall we use a different type interface to
6986
- // represent elements in the engine?
6987
- element.style.setProperty(name, value, important ? 'important' : '');
6988
- }
7033
+ function getBoundingClientRect(element) {
7034
+ return element.getBoundingClientRect();
7035
+ }
6989
7036
 
6990
- function getBoundingClientRect(element) {
6991
- return element.getBoundingClientRect();
6992
- }
7037
+ function querySelector(element, selectors) {
7038
+ return element.querySelector(selectors);
7039
+ }
6993
7040
 
6994
- function querySelector(element, selectors) {
6995
- return element.querySelector(selectors);
6996
- }
7041
+ function querySelectorAll(element, selectors) {
7042
+ return element.querySelectorAll(selectors);
7043
+ }
6997
7044
 
6998
- function querySelectorAll(element, selectors) {
6999
- return element.querySelectorAll(selectors);
7000
- }
7045
+ function getElementsByTagName(element, tagNameOrWildCard) {
7046
+ return element.getElementsByTagName(tagNameOrWildCard);
7047
+ }
7001
7048
 
7002
- function getElementsByTagName(element, tagNameOrWildCard) {
7003
- return element.getElementsByTagName(tagNameOrWildCard);
7004
- }
7049
+ function getElementsByClassName(element, names) {
7050
+ return element.getElementsByClassName(names);
7051
+ }
7005
7052
 
7006
- function getElementsByClassName(element, names) {
7007
- return element.getElementsByClassName(names);
7008
- }
7053
+ function getChildren(element) {
7054
+ return element.children;
7055
+ }
7009
7056
 
7010
- function getChildren(element) {
7011
- return element.children;
7012
- }
7057
+ function getChildNodes(element) {
7058
+ return element.childNodes;
7059
+ }
7013
7060
 
7014
- function getChildNodes(element) {
7015
- return element.childNodes;
7016
- }
7061
+ function getFirstChild(element) {
7062
+ return element.firstChild;
7063
+ }
7017
7064
 
7018
- function getFirstChild(element) {
7019
- return element.firstChild;
7020
- }
7065
+ function getFirstElementChild(element) {
7066
+ return element.firstElementChild;
7067
+ }
7021
7068
 
7022
- function getFirstElementChild(element) {
7023
- return element.firstElementChild;
7024
- }
7069
+ function getLastChild(element) {
7070
+ return element.lastChild;
7071
+ }
7025
7072
 
7026
- function getLastChild(element) {
7027
- return element.lastChild;
7028
- }
7073
+ function getLastElementChild(element) {
7074
+ return element.lastElementChild;
7075
+ }
7029
7076
 
7030
- function getLastElementChild(element) {
7031
- return element.lastElementChild;
7032
- }
7077
+ function isConnected(node) {
7078
+ return node.isConnected;
7079
+ }
7033
7080
 
7034
- function isConnected(node) {
7035
- return node.isConnected;
7036
- }
7081
+ function assertInstanceOfHTMLElement(elm, msg) {
7082
+ assert.invariant(elm instanceof HTMLElement, msg);
7083
+ }
7037
7084
 
7038
- function assertInstanceOfHTMLElement(elm, msg) {
7039
- assertInvariant(elm instanceof HTMLElement, msg);
7040
- }
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.
7041
7121
 
7042
- var HTMLElementExported = HTMLElementConstructor;
7043
- var renderer = {
7044
- HTMLElementExported: HTMLElementExported,
7045
- insert: insert,
7046
- remove: remove,
7047
- cloneNode: cloneNode,
7048
- createFragment: createFragment,
7049
- createElement: createElement,
7050
- createText: createText,
7051
- createComment: createComment,
7052
- nextSibling: nextSibling,
7053
- attachShadow: attachShadow,
7054
- getProperty: getProperty,
7055
- setProperty: setProperty,
7056
- setText: setText,
7057
- getAttribute: getAttribute,
7058
- setAttribute: setAttribute,
7059
- removeAttribute: removeAttribute,
7060
- addEventListener: addEventListener,
7061
- removeEventListener: removeEventListener,
7062
- dispatchEvent: dispatchEvent,
7063
- getClassList: getClassList,
7064
- setCSSStyleProperty: setCSSStyleProperty,
7065
- getBoundingClientRect: getBoundingClientRect,
7066
- querySelector: querySelector,
7067
- querySelectorAll: querySelectorAll,
7068
- getElementsByTagName: getElementsByTagName,
7069
- getElementsByClassName: getElementsByClassName,
7070
- getChildren: getChildren,
7071
- getChildNodes: getChildNodes,
7072
- getFirstChild: getFirstChild,
7073
- getFirstElementChild: getFirstElementChild,
7074
- getLastChild: getLastChild,
7075
- getLastElementChild: getLastElementChild,
7076
- isConnected: isConnected,
7077
- assertInstanceOfHTMLElement: assertInstanceOfHTMLElement,
7078
- defineCustomElement: defineCustomElement,
7079
- getCustomElement: getCustomElement
7080
- }; // Meant to inherit any properties passed via the base renderer as the argument to the factory.
7081
7122
 
7082
7123
  Object.setPrototypeOf(renderer, baseRenderer);
7083
7124
  return renderer;
@@ -7458,7 +7499,7 @@ var LWC = (function (exports) {
7458
7499
  });
7459
7500
  freeze(LightningElement);
7460
7501
  seal(LightningElement.prototype);
7461
- /* version: 2.23.5 */
7502
+ /* version: 2.23.6 */
7462
7503
 
7463
7504
  exports.LightningElement = LightningElement;
7464
7505
  exports.__unstable__ProfilerControl = profilerControl;