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