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