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.
- package/dist/engine-dom/esm/es2017/engine-dom.js +97 -58
- package/dist/engine-dom/iife/es2017/engine-dom.js +97 -58
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +95 -56
- package/dist/engine-dom/iife/es5/engine-dom.js +329 -288
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +327 -286
- package/dist/engine-dom/umd/es2017/engine-dom.js +97 -58
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +95 -56
- package/dist/engine-dom/umd/es5/engine-dom.js +329 -288
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +327 -286
- package/dist/engine-server/commonjs/es2017/engine-server.js +5 -5
- package/dist/engine-server/esm/es2017/engine-server.js +5 -5
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/package.json +7 -7
|
@@ -368,9 +368,9 @@
|
|
|
368
368
|
// Increment whenever the LWC template compiler changes
|
|
369
369
|
|
|
370
370
|
|
|
371
|
-
var LWC_VERSION = "2.23.
|
|
371
|
+
var LWC_VERSION = "2.23.6";
|
|
372
372
|
var LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
373
|
-
/** version: 2.23.
|
|
373
|
+
/** version: 2.23.6 */
|
|
374
374
|
|
|
375
375
|
/**
|
|
376
376
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
patch$1(propName);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
/** version: 2.23.
|
|
467
|
+
/** version: 2.23.6 */
|
|
468
468
|
|
|
469
469
|
/**
|
|
470
470
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
setFeatureFlag(name, value);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
/** version: 2.23.
|
|
560
|
+
/** version: 2.23.6 */
|
|
561
561
|
|
|
562
562
|
/*
|
|
563
563
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8382,7 +8382,7 @@
|
|
|
8382
8382
|
|
|
8383
8383
|
return ctor;
|
|
8384
8384
|
}
|
|
8385
|
-
/* version: 2.23.
|
|
8385
|
+
/* version: 2.23.6 */
|
|
8386
8386
|
|
|
8387
8387
|
/*
|
|
8388
8388
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8562,356 +8562,397 @@
|
|
|
8562
8562
|
|
|
8563
8563
|
|
|
8564
8564
|
function rendererFactory(baseRenderer) {
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8565
|
+
var renderer = function (exports) {
|
|
8566
|
+
/**
|
|
8567
|
+
* Copyright (C) 2018 salesforce.com, inc.
|
|
8568
|
+
*/
|
|
8569
|
+
|
|
8570
|
+
/*
|
|
8571
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
8572
|
+
* All rights reserved.
|
|
8573
|
+
* SPDX-License-Identifier: MIT
|
|
8574
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8575
|
+
*/
|
|
8576
|
+
function invariant(value, msg) {
|
|
8577
|
+
if (!value) {
|
|
8578
|
+
throw new Error("Invariant Violation: ".concat(msg));
|
|
8579
|
+
}
|
|
8569
8580
|
}
|
|
8570
|
-
}
|
|
8571
8581
|
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8582
|
+
function isTrue$1(value, msg) {
|
|
8583
|
+
if (!value) {
|
|
8584
|
+
throw new Error("Assert Violation: ".concat(msg));
|
|
8585
|
+
}
|
|
8586
|
+
}
|
|
8575
8587
|
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8588
|
+
function isFalse$1(value, msg) {
|
|
8589
|
+
if (value) {
|
|
8590
|
+
throw new Error("Assert Violation: ".concat(msg));
|
|
8591
|
+
}
|
|
8592
|
+
}
|
|
8593
|
+
|
|
8594
|
+
function fail(msg) {
|
|
8595
|
+
throw new Error(msg);
|
|
8596
|
+
}
|
|
8579
8597
|
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8598
|
+
var assert = /*#__PURE__*/Object.freeze({
|
|
8599
|
+
__proto__: null,
|
|
8600
|
+
invariant: invariant,
|
|
8601
|
+
isTrue: isTrue$1,
|
|
8602
|
+
isFalse: isFalse$1,
|
|
8603
|
+
fail: fail
|
|
8604
|
+
});
|
|
8583
8605
|
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
return false;
|
|
8606
|
+
function isUndefined(obj) {
|
|
8607
|
+
return obj === undefined;
|
|
8587
8608
|
}
|
|
8588
8609
|
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
// get wrapped by babel.
|
|
8594
|
-
var HTMLElementAlias = HTMLElement; // In case we use compat mode with a modern browser, the compat mode transformation
|
|
8595
|
-
// invokes the DOM api with an .apply() or .call() to initialize any DOM api sub-classing,
|
|
8596
|
-
// which are not equipped to be initialized that way.
|
|
8610
|
+
function isNull(obj) {
|
|
8611
|
+
return obj === null;
|
|
8612
|
+
}
|
|
8613
|
+
/** version: 2.23.6 */
|
|
8597
8614
|
|
|
8598
|
-
|
|
8599
|
-
|
|
8615
|
+
/*
|
|
8616
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
8617
|
+
* All rights reserved.
|
|
8618
|
+
* SPDX-License-Identifier: MIT
|
|
8619
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8620
|
+
*/
|
|
8600
8621
|
|
|
8601
|
-
var _super7 = _createSuper(clazz);
|
|
8602
8622
|
|
|
8603
|
-
|
|
8604
|
-
|
|
8623
|
+
exports.getCustomElement = void 0;
|
|
8624
|
+
exports.defineCustomElement = void 0;
|
|
8625
|
+
var HTMLElementConstructor;
|
|
8605
8626
|
|
|
8606
|
-
|
|
8607
|
-
|
|
8627
|
+
function isCustomElementRegistryAvailable() {
|
|
8628
|
+
if (typeof customElements === 'undefined') {
|
|
8629
|
+
return false;
|
|
8630
|
+
}
|
|
8608
8631
|
|
|
8609
|
-
|
|
8610
|
-
|
|
8632
|
+
try {
|
|
8633
|
+
// dereference HTMLElement global because babel wraps globals in compat mode with a
|
|
8634
|
+
// _wrapNativeSuper()
|
|
8635
|
+
// This is a problem because LWCUpgradableElement extends renderer.HTMLElementExported which does not
|
|
8636
|
+
// get wrapped by babel.
|
|
8637
|
+
var HTMLElementAlias = HTMLElement; // In case we use compat mode with a modern browser, the compat mode transformation
|
|
8638
|
+
// invokes the DOM api with an .apply() or .call() to initialize any DOM api sub-classing,
|
|
8639
|
+
// which are not equipped to be initialized that way.
|
|
8611
8640
|
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
return true;
|
|
8615
|
-
} catch (_a) {
|
|
8616
|
-
return false;
|
|
8617
|
-
}
|
|
8618
|
-
}
|
|
8641
|
+
var clazz = /*#__PURE__*/function (_HTMLElementAlias) {
|
|
8642
|
+
_inherits(clazz, _HTMLElementAlias);
|
|
8619
8643
|
|
|
8620
|
-
|
|
8621
|
-
getCustomElement = customElements.get.bind(customElements);
|
|
8622
|
-
defineCustomElement = customElements.define.bind(customElements);
|
|
8623
|
-
HTMLElementConstructor = HTMLElement;
|
|
8624
|
-
} else {
|
|
8625
|
-
var registry = Object.create(null);
|
|
8626
|
-
var reverseRegistry = new WeakMap();
|
|
8644
|
+
var _super7 = _createSuper(clazz);
|
|
8627
8645
|
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
throw new TypeError("Invalid Registration");
|
|
8631
|
-
}
|
|
8646
|
+
function clazz() {
|
|
8647
|
+
_classCallCheck(this, clazz);
|
|
8632
8648
|
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
};
|
|
8649
|
+
return _super7.apply(this, arguments);
|
|
8650
|
+
}
|
|
8636
8651
|
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
};
|
|
8652
|
+
return _createClass(clazz);
|
|
8653
|
+
}(HTMLElementAlias);
|
|
8640
8654
|
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8655
|
+
customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
|
|
8656
|
+
new clazz();
|
|
8657
|
+
return true;
|
|
8658
|
+
} catch (_a) {
|
|
8659
|
+
return false;
|
|
8644
8660
|
}
|
|
8661
|
+
}
|
|
8645
8662
|
|
|
8646
|
-
|
|
8647
|
-
|
|
8663
|
+
if (isCustomElementRegistryAvailable()) {
|
|
8664
|
+
exports.getCustomElement = customElements.get.bind(customElements);
|
|
8665
|
+
exports.defineCustomElement = customElements.define.bind(customElements);
|
|
8666
|
+
HTMLElementConstructor = HTMLElement;
|
|
8667
|
+
} else {
|
|
8668
|
+
var registry = Object.create(null);
|
|
8669
|
+
var reverseRegistry = new WeakMap();
|
|
8648
8670
|
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8671
|
+
exports.defineCustomElement = function define(name, ctor) {
|
|
8672
|
+
if (name !== String.prototype.toLowerCase.call(name) || registry[name]) {
|
|
8673
|
+
throw new TypeError("Invalid Registration");
|
|
8674
|
+
}
|
|
8652
8675
|
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
};
|
|
8676
|
+
registry[name] = ctor;
|
|
8677
|
+
reverseRegistry.set(ctor, name);
|
|
8678
|
+
};
|
|
8657
8679
|
|
|
8658
|
-
|
|
8659
|
-
|
|
8680
|
+
exports.getCustomElement = function get(name) {
|
|
8681
|
+
return registry[name];
|
|
8682
|
+
};
|
|
8660
8683
|
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8684
|
+
HTMLElementConstructor = function HTMLElement() {
|
|
8685
|
+
if (!(this instanceof HTMLElement)) {
|
|
8686
|
+
throw new TypeError("Invalid Invocation");
|
|
8687
|
+
}
|
|
8664
8688
|
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
}
|
|
8689
|
+
var constructor = this.constructor;
|
|
8690
|
+
var name = reverseRegistry.get(constructor);
|
|
8668
8691
|
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8692
|
+
if (!name) {
|
|
8693
|
+
throw new TypeError("Invalid Construction");
|
|
8694
|
+
}
|
|
8672
8695
|
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8696
|
+
var elm = document.createElement(name);
|
|
8697
|
+
Object.setPrototypeOf(elm, constructor.prototype);
|
|
8698
|
+
return elm;
|
|
8699
|
+
};
|
|
8676
8700
|
|
|
8677
|
-
|
|
8701
|
+
HTMLElementConstructor.prototype = HTMLElement.prototype;
|
|
8702
|
+
}
|
|
8678
8703
|
|
|
8679
|
-
|
|
8704
|
+
function cloneNode(node, deep) {
|
|
8705
|
+
return node.cloneNode(deep);
|
|
8706
|
+
}
|
|
8680
8707
|
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
return
|
|
8687
|
-
}
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
//
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8708
|
+
function createElement(tagName, namespace) {
|
|
8709
|
+
return isUndefined(namespace) ? document.createElement(tagName) : document.createElementNS(namespace, tagName);
|
|
8710
|
+
}
|
|
8711
|
+
|
|
8712
|
+
function createText(content) {
|
|
8713
|
+
return document.createTextNode(content);
|
|
8714
|
+
}
|
|
8715
|
+
|
|
8716
|
+
function createComment(content) {
|
|
8717
|
+
return document.createComment(content);
|
|
8718
|
+
}
|
|
8719
|
+
|
|
8720
|
+
exports.createFragment = void 0; // IE11 lacks support for this feature
|
|
8721
|
+
|
|
8722
|
+
var SUPPORTS_TEMPLATE = typeof HTMLTemplateElement === 'function';
|
|
8723
|
+
|
|
8724
|
+
if (SUPPORTS_TEMPLATE) {
|
|
8725
|
+
// Parse the fragment HTML string into DOM
|
|
8726
|
+
exports.createFragment = function (html) {
|
|
8727
|
+
var template = document.createElement('template');
|
|
8728
|
+
template.innerHTML = html;
|
|
8729
|
+
return template.content.firstChild;
|
|
8730
|
+
};
|
|
8731
|
+
} else {
|
|
8732
|
+
// In browsers that don't support <template> (e.g. IE11), we need to be careful to wrap elements like
|
|
8733
|
+
// <td> in the proper container elements (e.g. <tbody>), because otherwise they will be parsed as null.
|
|
8734
|
+
// Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L273-L280
|
|
8735
|
+
// With other elements added from:
|
|
8736
|
+
// https://github.com/sindresorhus/html-tags/blob/95dcdd5/index.js
|
|
8737
|
+
// Using the test:
|
|
8738
|
+
// document.createRange().createContextualFragment(`<${tag}></${tag}>`).firstChild === null
|
|
8739
|
+
// And omitting <html>, <head>, and <body> as these are not practical in an LWC component.
|
|
8740
|
+
var topLevelWrappingMap = {
|
|
8741
|
+
caption: ['table'],
|
|
8742
|
+
col: ['colgroup', 'table'],
|
|
8743
|
+
colgroup: ['table'],
|
|
8744
|
+
option: ['select'],
|
|
8745
|
+
tbody: ['table'],
|
|
8746
|
+
td: ['tr', 'tbody', 'table'],
|
|
8747
|
+
th: ['tr', 'tbody', 'table'],
|
|
8748
|
+
thead: ['table'],
|
|
8749
|
+
tfoot: ['table'],
|
|
8750
|
+
tr: ['tbody', 'table']
|
|
8751
|
+
}; // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L282-L288
|
|
8752
|
+
|
|
8753
|
+
var getTagName = function getTagName(text) {
|
|
8754
|
+
return (/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(text) || ['', ''])[1].toLowerCase();
|
|
8755
|
+
}; // Via https://github.com/webcomponents/polyfills/blob/ee1db33/packages/template/template.js#L295-L320
|
|
8756
|
+
|
|
8757
|
+
|
|
8758
|
+
exports.createFragment = function (html) {
|
|
8759
|
+
var wrapperTags = topLevelWrappingMap[getTagName(html)];
|
|
8760
|
+
|
|
8761
|
+
if (!isUndefined(wrapperTags)) {
|
|
8762
|
+
var _iterator5 = _createForOfIteratorHelper(wrapperTags),
|
|
8763
|
+
_step5;
|
|
8764
|
+
|
|
8765
|
+
try {
|
|
8766
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
8767
|
+
var wrapperTag = _step5.value;
|
|
8768
|
+
html = "<".concat(wrapperTag, ">").concat(html, "</").concat(wrapperTag, ">");
|
|
8769
|
+
}
|
|
8770
|
+
} catch (err) {
|
|
8771
|
+
_iterator5.e(err);
|
|
8772
|
+
} finally {
|
|
8773
|
+
_iterator5.f();
|
|
8726
8774
|
}
|
|
8727
|
-
}
|
|
8728
|
-
|
|
8729
|
-
} finally {
|
|
8730
|
-
_iterator5.f();
|
|
8731
|
-
}
|
|
8732
|
-
} // For IE11, the document title must not be undefined, but it can be an empty string
|
|
8733
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument#browser_compatibility
|
|
8775
|
+
} // For IE11, the document title must not be undefined, but it can be an empty string
|
|
8776
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument#browser_compatibility
|
|
8734
8777
|
|
|
8735
8778
|
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8779
|
+
var doc = document.implementation.createHTMLDocument('');
|
|
8780
|
+
doc.body.innerHTML = html;
|
|
8781
|
+
var content = doc.body;
|
|
8739
8782
|
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8783
|
+
if (!isUndefined(wrapperTags)) {
|
|
8784
|
+
for (var _i32 = 0; _i32 < wrapperTags.length; _i32++) {
|
|
8785
|
+
content = content.firstChild;
|
|
8786
|
+
}
|
|
8743
8787
|
}
|
|
8744
|
-
}
|
|
8745
8788
|
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8789
|
+
return content.firstChild;
|
|
8790
|
+
};
|
|
8791
|
+
}
|
|
8749
8792
|
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8793
|
+
function insert(node, parent, anchor) {
|
|
8794
|
+
parent.insertBefore(node, anchor);
|
|
8795
|
+
}
|
|
8753
8796
|
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8797
|
+
function remove(node, parent) {
|
|
8798
|
+
parent.removeChild(node);
|
|
8799
|
+
}
|
|
8757
8800
|
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8801
|
+
function nextSibling(node) {
|
|
8802
|
+
return node.nextSibling;
|
|
8803
|
+
}
|
|
8804
|
+
|
|
8805
|
+
function attachShadow(element, options) {
|
|
8806
|
+
// `shadowRoot` will be non-null in two cases:
|
|
8807
|
+
// 1. upon initial load with an SSR-generated DOM, while in Shadow render mode
|
|
8808
|
+
// 2. when a webapp author places <c-app> in their static HTML and mounts their
|
|
8809
|
+
// root component with customElement.define('c-app', Ctor)
|
|
8810
|
+
if (!isNull(element.shadowRoot)) {
|
|
8811
|
+
return element.shadowRoot;
|
|
8812
|
+
}
|
|
8761
8813
|
|
|
8762
|
-
|
|
8763
|
-
// `shadowRoot` will be non-null in two cases:
|
|
8764
|
-
// 1. upon initial load with an SSR-generated DOM, while in Shadow render mode
|
|
8765
|
-
// 2. when a webapp author places <c-app> in their static HTML and mounts their
|
|
8766
|
-
// root component with customElement.define('c-app', Ctor)
|
|
8767
|
-
if (!isNull(element.shadowRoot)) {
|
|
8768
|
-
return element.shadowRoot;
|
|
8814
|
+
return element.attachShadow(options);
|
|
8769
8815
|
}
|
|
8770
8816
|
|
|
8771
|
-
|
|
8772
|
-
|
|
8817
|
+
function setText(node, content) {
|
|
8818
|
+
node.nodeValue = content;
|
|
8819
|
+
}
|
|
8773
8820
|
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8821
|
+
function getProperty(node, key) {
|
|
8822
|
+
return node[key];
|
|
8823
|
+
}
|
|
8777
8824
|
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8825
|
+
function setProperty(node, key, value) {
|
|
8826
|
+
node[key] = value;
|
|
8827
|
+
}
|
|
8781
8828
|
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8829
|
+
function getAttribute(element, name, namespace) {
|
|
8830
|
+
return isUndefined(namespace) ? element.getAttribute(name) : element.getAttributeNS(namespace, name);
|
|
8831
|
+
}
|
|
8785
8832
|
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8833
|
+
function setAttribute(element, name, value, namespace) {
|
|
8834
|
+
return isUndefined(namespace) ? element.setAttribute(name, value) : element.setAttributeNS(namespace, name, value);
|
|
8835
|
+
}
|
|
8789
8836
|
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8837
|
+
function removeAttribute(element, name, namespace) {
|
|
8838
|
+
if (isUndefined(namespace)) {
|
|
8839
|
+
element.removeAttribute(name);
|
|
8840
|
+
} else {
|
|
8841
|
+
element.removeAttributeNS(namespace, name);
|
|
8842
|
+
}
|
|
8843
|
+
}
|
|
8793
8844
|
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
element.removeAttribute(name);
|
|
8797
|
-
} else {
|
|
8798
|
-
element.removeAttributeNS(namespace, name);
|
|
8845
|
+
function addEventListener(target, type, callback, options) {
|
|
8846
|
+
target.addEventListener(type, callback, options);
|
|
8799
8847
|
}
|
|
8800
|
-
}
|
|
8801
8848
|
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8849
|
+
function removeEventListener(target, type, callback, options) {
|
|
8850
|
+
target.removeEventListener(type, callback, options);
|
|
8851
|
+
}
|
|
8805
8852
|
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8853
|
+
function dispatchEvent(target, event) {
|
|
8854
|
+
return target.dispatchEvent(event);
|
|
8855
|
+
}
|
|
8809
8856
|
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8857
|
+
function getClassList(element) {
|
|
8858
|
+
return element.classList;
|
|
8859
|
+
}
|
|
8813
8860
|
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8861
|
+
function setCSSStyleProperty(element, name, value, important) {
|
|
8862
|
+
// TODO [#0]: How to avoid this type casting? Shall we use a different type interface to
|
|
8863
|
+
// represent elements in the engine?
|
|
8864
|
+
element.style.setProperty(name, value, important ? 'important' : '');
|
|
8865
|
+
}
|
|
8817
8866
|
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
element.style.setProperty(name, value, important ? 'important' : '');
|
|
8822
|
-
}
|
|
8867
|
+
function getBoundingClientRect(element) {
|
|
8868
|
+
return element.getBoundingClientRect();
|
|
8869
|
+
}
|
|
8823
8870
|
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8871
|
+
function querySelector(element, selectors) {
|
|
8872
|
+
return element.querySelector(selectors);
|
|
8873
|
+
}
|
|
8827
8874
|
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8875
|
+
function querySelectorAll(element, selectors) {
|
|
8876
|
+
return element.querySelectorAll(selectors);
|
|
8877
|
+
}
|
|
8831
8878
|
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8879
|
+
function getElementsByTagName(element, tagNameOrWildCard) {
|
|
8880
|
+
return element.getElementsByTagName(tagNameOrWildCard);
|
|
8881
|
+
}
|
|
8835
8882
|
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
8883
|
+
function getElementsByClassName(element, names) {
|
|
8884
|
+
return element.getElementsByClassName(names);
|
|
8885
|
+
}
|
|
8839
8886
|
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8887
|
+
function getChildren(element) {
|
|
8888
|
+
return element.children;
|
|
8889
|
+
}
|
|
8843
8890
|
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8891
|
+
function getChildNodes(element) {
|
|
8892
|
+
return element.childNodes;
|
|
8893
|
+
}
|
|
8847
8894
|
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8895
|
+
function getFirstChild(element) {
|
|
8896
|
+
return element.firstChild;
|
|
8897
|
+
}
|
|
8851
8898
|
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8899
|
+
function getFirstElementChild(element) {
|
|
8900
|
+
return element.firstElementChild;
|
|
8901
|
+
}
|
|
8855
8902
|
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8903
|
+
function getLastChild(element) {
|
|
8904
|
+
return element.lastChild;
|
|
8905
|
+
}
|
|
8859
8906
|
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8907
|
+
function getLastElementChild(element) {
|
|
8908
|
+
return element.lastElementChild;
|
|
8909
|
+
}
|
|
8863
8910
|
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8911
|
+
function isConnected(node) {
|
|
8912
|
+
return node.isConnected;
|
|
8913
|
+
}
|
|
8867
8914
|
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8915
|
+
function assertInstanceOfHTMLElement(elm, msg) {
|
|
8916
|
+
assert.invariant(elm instanceof HTMLElement, msg);
|
|
8917
|
+
}
|
|
8871
8918
|
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8919
|
+
var HTMLElementExported = HTMLElementConstructor;
|
|
8920
|
+
exports.HTMLElementExported = HTMLElementExported;
|
|
8921
|
+
exports.addEventListener = addEventListener;
|
|
8922
|
+
exports.assertInstanceOfHTMLElement = assertInstanceOfHTMLElement;
|
|
8923
|
+
exports.attachShadow = attachShadow;
|
|
8924
|
+
exports.cloneNode = cloneNode;
|
|
8925
|
+
exports.createComment = createComment;
|
|
8926
|
+
exports.createElement = createElement;
|
|
8927
|
+
exports.createText = createText;
|
|
8928
|
+
exports.dispatchEvent = dispatchEvent;
|
|
8929
|
+
exports.getAttribute = getAttribute;
|
|
8930
|
+
exports.getBoundingClientRect = getBoundingClientRect;
|
|
8931
|
+
exports.getChildNodes = getChildNodes;
|
|
8932
|
+
exports.getChildren = getChildren;
|
|
8933
|
+
exports.getClassList = getClassList;
|
|
8934
|
+
exports.getElementsByClassName = getElementsByClassName;
|
|
8935
|
+
exports.getElementsByTagName = getElementsByTagName;
|
|
8936
|
+
exports.getFirstChild = getFirstChild;
|
|
8937
|
+
exports.getFirstElementChild = getFirstElementChild;
|
|
8938
|
+
exports.getLastChild = getLastChild;
|
|
8939
|
+
exports.getLastElementChild = getLastElementChild;
|
|
8940
|
+
exports.getProperty = getProperty;
|
|
8941
|
+
exports.insert = insert;
|
|
8942
|
+
exports.isConnected = isConnected;
|
|
8943
|
+
exports.nextSibling = nextSibling;
|
|
8944
|
+
exports.querySelector = querySelector;
|
|
8945
|
+
exports.querySelectorAll = querySelectorAll;
|
|
8946
|
+
exports.remove = remove;
|
|
8947
|
+
exports.removeAttribute = removeAttribute;
|
|
8948
|
+
exports.removeEventListener = removeEventListener;
|
|
8949
|
+
exports.setAttribute = setAttribute;
|
|
8950
|
+
exports.setCSSStyleProperty = setCSSStyleProperty;
|
|
8951
|
+
exports.setProperty = setProperty;
|
|
8952
|
+
exports.setText = setText;
|
|
8953
|
+
return exports;
|
|
8954
|
+
}({}); // Meant to inherit any properties passed via the base renderer as the argument to the factory.
|
|
8875
8955
|
|
|
8876
|
-
var HTMLElementExported = HTMLElementConstructor;
|
|
8877
|
-
var renderer = {
|
|
8878
|
-
HTMLElementExported: HTMLElementExported,
|
|
8879
|
-
insert: insert,
|
|
8880
|
-
remove: remove,
|
|
8881
|
-
cloneNode: cloneNode,
|
|
8882
|
-
createFragment: createFragment,
|
|
8883
|
-
createElement: createElement,
|
|
8884
|
-
createText: createText,
|
|
8885
|
-
createComment: createComment,
|
|
8886
|
-
nextSibling: nextSibling,
|
|
8887
|
-
attachShadow: attachShadow,
|
|
8888
|
-
getProperty: getProperty,
|
|
8889
|
-
setProperty: setProperty,
|
|
8890
|
-
setText: setText,
|
|
8891
|
-
getAttribute: getAttribute,
|
|
8892
|
-
setAttribute: setAttribute,
|
|
8893
|
-
removeAttribute: removeAttribute,
|
|
8894
|
-
addEventListener: addEventListener,
|
|
8895
|
-
removeEventListener: removeEventListener,
|
|
8896
|
-
dispatchEvent: dispatchEvent,
|
|
8897
|
-
getClassList: getClassList,
|
|
8898
|
-
setCSSStyleProperty: setCSSStyleProperty,
|
|
8899
|
-
getBoundingClientRect: getBoundingClientRect,
|
|
8900
|
-
querySelector: querySelector,
|
|
8901
|
-
querySelectorAll: querySelectorAll,
|
|
8902
|
-
getElementsByTagName: getElementsByTagName,
|
|
8903
|
-
getElementsByClassName: getElementsByClassName,
|
|
8904
|
-
getChildren: getChildren,
|
|
8905
|
-
getChildNodes: getChildNodes,
|
|
8906
|
-
getFirstChild: getFirstChild,
|
|
8907
|
-
getFirstElementChild: getFirstElementChild,
|
|
8908
|
-
getLastChild: getLastChild,
|
|
8909
|
-
getLastElementChild: getLastElementChild,
|
|
8910
|
-
isConnected: isConnected,
|
|
8911
|
-
assertInstanceOfHTMLElement: assertInstanceOfHTMLElement,
|
|
8912
|
-
defineCustomElement: defineCustomElement,
|
|
8913
|
-
getCustomElement: getCustomElement
|
|
8914
|
-
}; // Meant to inherit any properties passed via the base renderer as the argument to the factory.
|
|
8915
8956
|
|
|
8916
8957
|
Object.setPrototypeOf(renderer, baseRenderer);
|
|
8917
8958
|
return renderer;
|
|
@@ -9299,7 +9340,7 @@
|
|
|
9299
9340
|
});
|
|
9300
9341
|
freeze(LightningElement);
|
|
9301
9342
|
seal(LightningElement.prototype);
|
|
9302
|
-
/* version: 2.23.
|
|
9343
|
+
/* version: 2.23.6 */
|
|
9303
9344
|
|
|
9304
9345
|
exports.LightningElement = LightningElement;
|
|
9305
9346
|
exports.__unstable__ProfilerControl = profilerControl;
|