lwc 2.23.0 → 2.23.3
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 +1208 -877
- package/dist/engine-dom/iife/es2017/engine-dom.js +1208 -876
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +1115 -812
- package/dist/engine-dom/iife/es5/engine-dom.js +473 -386
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +424 -344
- package/dist/engine-dom/umd/es2017/engine-dom.js +1208 -876
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +1115 -812
- package/dist/engine-dom/umd/es5/engine-dom.js +473 -386
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +424 -344
- package/dist/engine-server/commonjs/es2017/engine-server.js +803 -537
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +803 -537
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +19 -19
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +19 -19
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +19 -19
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +19 -19
- 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 +17 -9
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
var KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
124
124
|
var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
125
125
|
var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
126
|
-
/** version: 2.23.
|
|
126
|
+
/** version: 2.23.3 */
|
|
127
127
|
|
|
128
128
|
/*
|
|
129
129
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1207,8 +1207,8 @@
|
|
|
1207
1207
|
});
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
|
-
var
|
|
1211
|
-
/** version: 2.23.
|
|
1210
|
+
var lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1211
|
+
/** version: 2.23.3 */
|
|
1212
1212
|
|
|
1213
1213
|
/*
|
|
1214
1214
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1450,7 +1450,7 @@
|
|
|
1450
1450
|
},
|
|
1451
1451
|
textContent: {
|
|
1452
1452
|
get: function get() {
|
|
1453
|
-
if (!
|
|
1453
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1454
1454
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1455
1455
|
return textContentGetterPatched.call(this);
|
|
1456
1456
|
}
|
|
@@ -1551,7 +1551,7 @@
|
|
|
1551
1551
|
return true;
|
|
1552
1552
|
}
|
|
1553
1553
|
|
|
1554
|
-
if (!
|
|
1554
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1555
1555
|
if (otherNode == null) {
|
|
1556
1556
|
return false;
|
|
1557
1557
|
}
|
|
@@ -1576,7 +1576,7 @@
|
|
|
1576
1576
|
},
|
|
1577
1577
|
cloneNode: {
|
|
1578
1578
|
value: function value(deep) {
|
|
1579
|
-
if (!
|
|
1579
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1580
1580
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1581
1581
|
return cloneNodePatched.call(this, deep);
|
|
1582
1582
|
}
|
|
@@ -4039,7 +4039,7 @@
|
|
|
4039
4039
|
defineProperties(Element.prototype, {
|
|
4040
4040
|
innerHTML: {
|
|
4041
4041
|
get: function get() {
|
|
4042
|
-
if (!
|
|
4042
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4043
4043
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4044
4044
|
return innerHTMLGetterPatched.call(this);
|
|
4045
4045
|
}
|
|
@@ -4062,7 +4062,7 @@
|
|
|
4062
4062
|
},
|
|
4063
4063
|
outerHTML: {
|
|
4064
4064
|
get: function get() {
|
|
4065
|
-
if (!
|
|
4065
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4066
4066
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4067
4067
|
return outerHTMLGetterPatched.call(this);
|
|
4068
4068
|
}
|
|
@@ -4188,7 +4188,7 @@
|
|
|
4188
4188
|
});
|
|
4189
4189
|
return isUndefined(elm) ? null : elm;
|
|
4190
4190
|
} else {
|
|
4191
|
-
if (!
|
|
4191
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4192
4192
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
4193
4193
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
4194
4194
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -4204,7 +4204,7 @@
|
|
|
4204
4204
|
return isUndefined(_elm) ? null : _elm;
|
|
4205
4205
|
}
|
|
4206
4206
|
} else {
|
|
4207
|
-
if (!
|
|
4207
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4208
4208
|
if (!(this instanceof HTMLBodyElement)) {
|
|
4209
4209
|
var _elm3 = nodeList[0];
|
|
4210
4210
|
return isUndefined(_elm3) ? null : _elm3;
|
|
@@ -4296,7 +4296,7 @@
|
|
|
4296
4296
|
value: function value() {
|
|
4297
4297
|
var nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4298
4298
|
|
|
4299
|
-
if (!
|
|
4299
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4300
4300
|
var filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
4301
4301
|
/* ShadowDomSemantic.Disabled */
|
|
4302
4302
|
);
|
|
@@ -4319,7 +4319,7 @@
|
|
|
4319
4319
|
value: function value() {
|
|
4320
4320
|
var elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
4321
4321
|
|
|
4322
|
-
if (!
|
|
4322
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4323
4323
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4324
4324
|
}
|
|
4325
4325
|
|
|
@@ -4336,7 +4336,7 @@
|
|
|
4336
4336
|
value: function value() {
|
|
4337
4337
|
var elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
4338
4338
|
|
|
4339
|
-
if (!
|
|
4339
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4340
4340
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4341
4341
|
}
|
|
4342
4342
|
|
|
@@ -4353,7 +4353,7 @@
|
|
|
4353
4353
|
value: function value() {
|
|
4354
4354
|
var elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
4355
4355
|
|
|
4356
|
-
if (!
|
|
4356
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4357
4357
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4358
4358
|
}
|
|
4359
4359
|
|
|
@@ -5174,11 +5174,11 @@
|
|
|
5174
5174
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
5175
5175
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
5176
5176
|
get: function get() {
|
|
5177
|
-
if (!
|
|
5177
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
5178
5178
|
return innerTextGetter.call(this);
|
|
5179
5179
|
}
|
|
5180
5180
|
|
|
5181
|
-
if (!
|
|
5181
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5182
5182
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5183
5183
|
return getInnerText(this);
|
|
5184
5184
|
}
|
|
@@ -5208,11 +5208,11 @@
|
|
|
5208
5208
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
5209
5209
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
5210
5210
|
get: function get() {
|
|
5211
|
-
if (!
|
|
5211
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
5212
5212
|
return outerTextGetter.call(this);
|
|
5213
5213
|
}
|
|
5214
5214
|
|
|
5215
|
-
if (!
|
|
5215
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5216
5216
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5217
5217
|
return getInnerText(this);
|
|
5218
5218
|
}
|
|
@@ -5442,6 +5442,6 @@
|
|
|
5442
5442
|
},
|
|
5443
5443
|
configurable: true
|
|
5444
5444
|
});
|
|
5445
|
-
/** version: 2.23.
|
|
5445
|
+
/** version: 2.23.3 */
|
|
5446
5446
|
|
|
5447
5447
|
})();
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
|
154
154
|
// we can't use typeof since it will fail when transpiling.
|
|
155
155
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
156
|
-
/** version: 2.23.
|
|
156
|
+
/** version: 2.23.3 */
|
|
157
157
|
|
|
158
158
|
/*
|
|
159
159
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1128,8 +1128,8 @@
|
|
|
1128
1128
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
1129
1129
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1130
1130
|
}
|
|
1131
|
-
const
|
|
1132
|
-
/** version: 2.23.
|
|
1131
|
+
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1132
|
+
/** version: 2.23.3 */
|
|
1133
1133
|
|
|
1134
1134
|
/*
|
|
1135
1135
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1380,7 +1380,7 @@
|
|
|
1380
1380
|
},
|
|
1381
1381
|
textContent: {
|
|
1382
1382
|
get() {
|
|
1383
|
-
if (!
|
|
1383
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1384
1384
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1385
1385
|
return textContentGetterPatched.call(this);
|
|
1386
1386
|
}
|
|
@@ -1487,7 +1487,7 @@
|
|
|
1487
1487
|
return true;
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
|
-
if (!
|
|
1490
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1491
1491
|
if (otherNode == null) {
|
|
1492
1492
|
return false;
|
|
1493
1493
|
}
|
|
@@ -1513,7 +1513,7 @@
|
|
|
1513
1513
|
},
|
|
1514
1514
|
cloneNode: {
|
|
1515
1515
|
value(deep) {
|
|
1516
|
-
if (!
|
|
1516
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1517
1517
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1518
1518
|
return cloneNodePatched.call(this, deep);
|
|
1519
1519
|
}
|
|
@@ -3813,7 +3813,7 @@
|
|
|
3813
3813
|
defineProperties(Element.prototype, {
|
|
3814
3814
|
innerHTML: {
|
|
3815
3815
|
get() {
|
|
3816
|
-
if (!
|
|
3816
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3817
3817
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3818
3818
|
return innerHTMLGetterPatched.call(this);
|
|
3819
3819
|
}
|
|
@@ -3838,7 +3838,7 @@
|
|
|
3838
3838
|
},
|
|
3839
3839
|
outerHTML: {
|
|
3840
3840
|
get() {
|
|
3841
|
-
if (!
|
|
3841
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3842
3842
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3843
3843
|
return outerHTMLGetterPatched.call(this);
|
|
3844
3844
|
}
|
|
@@ -3966,7 +3966,7 @@
|
|
|
3966
3966
|
const elm = ArrayFind.call(nodeList, elm => getNodeNearestOwnerKey(elm) === ownerKey);
|
|
3967
3967
|
return isUndefined(elm) ? null : elm;
|
|
3968
3968
|
} else {
|
|
3969
|
-
if (!
|
|
3969
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3970
3970
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
3971
3971
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
3972
3972
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -3978,7 +3978,7 @@
|
|
|
3978
3978
|
return isUndefined(elm) ? null : elm;
|
|
3979
3979
|
}
|
|
3980
3980
|
} else {
|
|
3981
|
-
if (!
|
|
3981
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3982
3982
|
if (!(this instanceof HTMLBodyElement)) {
|
|
3983
3983
|
const elm = nodeList[0];
|
|
3984
3984
|
return isUndefined(elm) ? null : elm;
|
|
@@ -4061,7 +4061,7 @@
|
|
|
4061
4061
|
value() {
|
|
4062
4062
|
const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4063
4063
|
|
|
4064
|
-
if (!
|
|
4064
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4065
4065
|
const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
4066
4066
|
/* ShadowDomSemantic.Disabled */
|
|
4067
4067
|
);
|
|
@@ -4085,7 +4085,7 @@
|
|
|
4085
4085
|
value() {
|
|
4086
4086
|
const elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
4087
4087
|
|
|
4088
|
-
if (!
|
|
4088
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4089
4089
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4090
4090
|
}
|
|
4091
4091
|
|
|
@@ -4103,7 +4103,7 @@
|
|
|
4103
4103
|
value() {
|
|
4104
4104
|
const elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
4105
4105
|
|
|
4106
|
-
if (!
|
|
4106
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4107
4107
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4108
4108
|
}
|
|
4109
4109
|
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
value() {
|
|
4122
4122
|
const elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
4123
4123
|
|
|
4124
|
-
if (!
|
|
4124
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4125
4125
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4126
4126
|
}
|
|
4127
4127
|
|
|
@@ -4853,11 +4853,11 @@
|
|
|
4853
4853
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
4854
4854
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
4855
4855
|
get() {
|
|
4856
|
-
if (!
|
|
4856
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4857
4857
|
return innerTextGetter.call(this);
|
|
4858
4858
|
}
|
|
4859
4859
|
|
|
4860
|
-
if (!
|
|
4860
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4861
4861
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4862
4862
|
return getInnerText(this);
|
|
4863
4863
|
}
|
|
@@ -4889,11 +4889,11 @@
|
|
|
4889
4889
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
4890
4890
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
4891
4891
|
get() {
|
|
4892
|
-
if (!
|
|
4892
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4893
4893
|
return outerTextGetter.call(this);
|
|
4894
4894
|
}
|
|
4895
4895
|
|
|
4896
|
-
if (!
|
|
4896
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4897
4897
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4898
4898
|
return getInnerText(this);
|
|
4899
4899
|
}
|
|
@@ -5107,7 +5107,7 @@
|
|
|
5107
5107
|
window.addEventListener('test-dummy-flag', () => {
|
|
5108
5108
|
let hasFlag = false;
|
|
5109
5109
|
|
|
5110
|
-
if (
|
|
5110
|
+
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
|
5111
5111
|
hasFlag = true;
|
|
5112
5112
|
}
|
|
5113
5113
|
|
|
@@ -5119,6 +5119,6 @@
|
|
|
5119
5119
|
}));
|
|
5120
5120
|
});
|
|
5121
5121
|
}
|
|
5122
|
-
/** version: 2.23.
|
|
5122
|
+
/** version: 2.23.3 */
|
|
5123
5123
|
|
|
5124
5124
|
}));
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
const KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
90
90
|
const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
91
91
|
const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
92
|
-
/** version: 2.23.
|
|
92
|
+
/** version: 2.23.3 */
|
|
93
93
|
|
|
94
94
|
/*
|
|
95
95
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1050,8 +1050,8 @@
|
|
|
1050
1050
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
1051
1051
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1054
|
-
/** version: 2.23.
|
|
1053
|
+
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1054
|
+
/** version: 2.23.3 */
|
|
1055
1055
|
|
|
1056
1056
|
/*
|
|
1057
1057
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1294,7 +1294,7 @@
|
|
|
1294
1294
|
},
|
|
1295
1295
|
textContent: {
|
|
1296
1296
|
get() {
|
|
1297
|
-
if (!
|
|
1297
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1298
1298
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1299
1299
|
return textContentGetterPatched.call(this);
|
|
1300
1300
|
}
|
|
@@ -1401,7 +1401,7 @@
|
|
|
1401
1401
|
return true;
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
|
-
if (!
|
|
1404
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1405
1405
|
if (otherNode == null) {
|
|
1406
1406
|
return false;
|
|
1407
1407
|
}
|
|
@@ -1427,7 +1427,7 @@
|
|
|
1427
1427
|
},
|
|
1428
1428
|
cloneNode: {
|
|
1429
1429
|
value(deep) {
|
|
1430
|
-
if (!
|
|
1430
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1431
1431
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1432
1432
|
return cloneNodePatched.call(this, deep);
|
|
1433
1433
|
}
|
|
@@ -3644,7 +3644,7 @@
|
|
|
3644
3644
|
defineProperties(Element.prototype, {
|
|
3645
3645
|
innerHTML: {
|
|
3646
3646
|
get() {
|
|
3647
|
-
if (!
|
|
3647
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3648
3648
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3649
3649
|
return innerHTMLGetterPatched.call(this);
|
|
3650
3650
|
}
|
|
@@ -3669,7 +3669,7 @@
|
|
|
3669
3669
|
},
|
|
3670
3670
|
outerHTML: {
|
|
3671
3671
|
get() {
|
|
3672
|
-
if (!
|
|
3672
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3673
3673
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3674
3674
|
return outerHTMLGetterPatched.call(this);
|
|
3675
3675
|
}
|
|
@@ -3797,7 +3797,7 @@
|
|
|
3797
3797
|
const elm = ArrayFind.call(nodeList, elm => getNodeNearestOwnerKey(elm) === ownerKey);
|
|
3798
3798
|
return isUndefined(elm) ? null : elm;
|
|
3799
3799
|
} else {
|
|
3800
|
-
if (!
|
|
3800
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3801
3801
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
3802
3802
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
3803
3803
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -3809,7 +3809,7 @@
|
|
|
3809
3809
|
return isUndefined(elm) ? null : elm;
|
|
3810
3810
|
}
|
|
3811
3811
|
} else {
|
|
3812
|
-
if (!
|
|
3812
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3813
3813
|
if (!(this instanceof HTMLBodyElement)) {
|
|
3814
3814
|
const elm = nodeList[0];
|
|
3815
3815
|
return isUndefined(elm) ? null : elm;
|
|
@@ -3892,7 +3892,7 @@
|
|
|
3892
3892
|
value() {
|
|
3893
3893
|
const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
3894
3894
|
|
|
3895
|
-
if (!
|
|
3895
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3896
3896
|
const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
3897
3897
|
/* ShadowDomSemantic.Disabled */
|
|
3898
3898
|
);
|
|
@@ -3916,7 +3916,7 @@
|
|
|
3916
3916
|
value() {
|
|
3917
3917
|
const elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
3918
3918
|
|
|
3919
|
-
if (!
|
|
3919
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
3920
3920
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
3921
3921
|
}
|
|
3922
3922
|
|
|
@@ -3934,7 +3934,7 @@
|
|
|
3934
3934
|
value() {
|
|
3935
3935
|
const elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
3936
3936
|
|
|
3937
|
-
if (!
|
|
3937
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
3938
3938
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
3939
3939
|
}
|
|
3940
3940
|
|
|
@@ -3952,7 +3952,7 @@
|
|
|
3952
3952
|
value() {
|
|
3953
3953
|
const elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
3954
3954
|
|
|
3955
|
-
if (!
|
|
3955
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
3956
3956
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
3957
3957
|
}
|
|
3958
3958
|
|
|
@@ -4675,11 +4675,11 @@
|
|
|
4675
4675
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
4676
4676
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
4677
4677
|
get() {
|
|
4678
|
-
if (!
|
|
4678
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4679
4679
|
return innerTextGetter.call(this);
|
|
4680
4680
|
}
|
|
4681
4681
|
|
|
4682
|
-
if (!
|
|
4682
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4683
4683
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4684
4684
|
return getInnerText(this);
|
|
4685
4685
|
}
|
|
@@ -4711,11 +4711,11 @@
|
|
|
4711
4711
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
4712
4712
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
4713
4713
|
get() {
|
|
4714
|
-
if (!
|
|
4714
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4715
4715
|
return outerTextGetter.call(this);
|
|
4716
4716
|
}
|
|
4717
4717
|
|
|
4718
|
-
if (!
|
|
4718
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4719
4719
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4720
4720
|
return getInnerText(this);
|
|
4721
4721
|
}
|
|
@@ -4916,6 +4916,6 @@
|
|
|
4916
4916
|
},
|
|
4917
4917
|
configurable: true,
|
|
4918
4918
|
});
|
|
4919
|
-
/** version: 2.23.
|
|
4919
|
+
/** version: 2.23.3 */
|
|
4920
4920
|
|
|
4921
4921
|
}));
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
var hasNativeSymbolSupport = /*@__PURE__*/function () {
|
|
202
202
|
return Symbol('x').toString() === 'Symbol(x)';
|
|
203
203
|
}();
|
|
204
|
-
/** version: 2.23.
|
|
204
|
+
/** version: 2.23.3 */
|
|
205
205
|
|
|
206
206
|
/*
|
|
207
207
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1300,8 +1300,8 @@
|
|
|
1300
1300
|
});
|
|
1301
1301
|
}
|
|
1302
1302
|
|
|
1303
|
-
var
|
|
1304
|
-
/** version: 2.23.
|
|
1303
|
+
var lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1304
|
+
/** version: 2.23.3 */
|
|
1305
1305
|
|
|
1306
1306
|
/*
|
|
1307
1307
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1551,7 +1551,7 @@
|
|
|
1551
1551
|
},
|
|
1552
1552
|
textContent: {
|
|
1553
1553
|
get: function get() {
|
|
1554
|
-
if (!
|
|
1554
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1555
1555
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1556
1556
|
return textContentGetterPatched.call(this);
|
|
1557
1557
|
}
|
|
@@ -1652,7 +1652,7 @@
|
|
|
1652
1652
|
return true;
|
|
1653
1653
|
}
|
|
1654
1654
|
|
|
1655
|
-
if (!
|
|
1655
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1656
1656
|
if (otherNode == null) {
|
|
1657
1657
|
return false;
|
|
1658
1658
|
}
|
|
@@ -1677,7 +1677,7 @@
|
|
|
1677
1677
|
},
|
|
1678
1678
|
cloneNode: {
|
|
1679
1679
|
value: function value(deep) {
|
|
1680
|
-
if (!
|
|
1680
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1681
1681
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1682
1682
|
return cloneNodePatched.call(this, deep);
|
|
1683
1683
|
}
|
|
@@ -4227,7 +4227,7 @@
|
|
|
4227
4227
|
defineProperties(Element.prototype, {
|
|
4228
4228
|
innerHTML: {
|
|
4229
4229
|
get: function get() {
|
|
4230
|
-
if (!
|
|
4230
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4231
4231
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4232
4232
|
return innerHTMLGetterPatched.call(this);
|
|
4233
4233
|
}
|
|
@@ -4250,7 +4250,7 @@
|
|
|
4250
4250
|
},
|
|
4251
4251
|
outerHTML: {
|
|
4252
4252
|
get: function get() {
|
|
4253
|
-
if (!
|
|
4253
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4254
4254
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4255
4255
|
return outerHTMLGetterPatched.call(this);
|
|
4256
4256
|
}
|
|
@@ -4376,7 +4376,7 @@
|
|
|
4376
4376
|
});
|
|
4377
4377
|
return isUndefined(elm) ? null : elm;
|
|
4378
4378
|
} else {
|
|
4379
|
-
if (!
|
|
4379
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4380
4380
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
4381
4381
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
4382
4382
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -4392,7 +4392,7 @@
|
|
|
4392
4392
|
return isUndefined(_elm) ? null : _elm;
|
|
4393
4393
|
}
|
|
4394
4394
|
} else {
|
|
4395
|
-
if (!
|
|
4395
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4396
4396
|
if (!(this instanceof HTMLBodyElement)) {
|
|
4397
4397
|
var _elm3 = nodeList[0];
|
|
4398
4398
|
return isUndefined(_elm3) ? null : _elm3;
|
|
@@ -4484,7 +4484,7 @@
|
|
|
4484
4484
|
value: function value() {
|
|
4485
4485
|
var nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4486
4486
|
|
|
4487
|
-
if (!
|
|
4487
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4488
4488
|
var filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
4489
4489
|
/* ShadowDomSemantic.Disabled */
|
|
4490
4490
|
);
|
|
@@ -4507,7 +4507,7 @@
|
|
|
4507
4507
|
value: function value() {
|
|
4508
4508
|
var elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
4509
4509
|
|
|
4510
|
-
if (!
|
|
4510
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4511
4511
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4512
4512
|
}
|
|
4513
4513
|
|
|
@@ -4524,7 +4524,7 @@
|
|
|
4524
4524
|
value: function value() {
|
|
4525
4525
|
var elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
4526
4526
|
|
|
4527
|
-
if (!
|
|
4527
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4528
4528
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4529
4529
|
}
|
|
4530
4530
|
|
|
@@ -4541,7 +4541,7 @@
|
|
|
4541
4541
|
value: function value() {
|
|
4542
4542
|
var elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
4543
4543
|
|
|
4544
|
-
if (!
|
|
4544
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4545
4545
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4546
4546
|
}
|
|
4547
4547
|
|
|
@@ -5372,11 +5372,11 @@
|
|
|
5372
5372
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
5373
5373
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
5374
5374
|
get: function get() {
|
|
5375
|
-
if (!
|
|
5375
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
5376
5376
|
return innerTextGetter.call(this);
|
|
5377
5377
|
}
|
|
5378
5378
|
|
|
5379
|
-
if (!
|
|
5379
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5380
5380
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5381
5381
|
return getInnerText(this);
|
|
5382
5382
|
}
|
|
@@ -5406,11 +5406,11 @@
|
|
|
5406
5406
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
5407
5407
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
5408
5408
|
get: function get() {
|
|
5409
|
-
if (!
|
|
5409
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
5410
5410
|
return outerTextGetter.call(this);
|
|
5411
5411
|
}
|
|
5412
5412
|
|
|
5413
|
-
if (!
|
|
5413
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5414
5414
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5415
5415
|
return getInnerText(this);
|
|
5416
5416
|
}
|
|
@@ -5652,7 +5652,7 @@
|
|
|
5652
5652
|
window.addEventListener('test-dummy-flag', function () {
|
|
5653
5653
|
var hasFlag = false;
|
|
5654
5654
|
|
|
5655
|
-
if (
|
|
5655
|
+
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
|
5656
5656
|
hasFlag = true;
|
|
5657
5657
|
}
|
|
5658
5658
|
|
|
@@ -5664,6 +5664,6 @@
|
|
|
5664
5664
|
}));
|
|
5665
5665
|
});
|
|
5666
5666
|
}
|
|
5667
|
-
/** version: 2.23.
|
|
5667
|
+
/** version: 2.23.3 */
|
|
5668
5668
|
|
|
5669
5669
|
}));
|