lwc 2.44.0 → 2.45.1
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 +104 -98
- package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom.js +103 -98
- package/dist/engine-dom/iife/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +16 -29
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/iife/es5/engine-dom.js +100 -96
- package/dist/engine-dom/iife/es5/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +17 -29
- package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom.js +103 -98
- package/dist/engine-dom/umd/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +16 -29
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/umd/es5/engine-dom.js +100 -96
- package/dist/engine-dom/umd/es5/engine-dom.js.map +1 -1
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +17 -29
- package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -1
- package/dist/engine-server/commonjs/es2017/engine-server.js +101 -103
- package/dist/engine-server/commonjs/es2017/engine-server.js.map +1 -1
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +102 -103
- package/dist/engine-server/esm/es2017/engine-server.js.map +1 -1
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -1
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/esm/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -1
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -1
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -1
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js.map +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -1
- package/package.json +7 -7
|
@@ -327,9 +327,9 @@ var LWC = (function (exports) {
|
|
|
327
327
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
328
328
|
*/
|
|
329
329
|
// Increment whenever the LWC template compiler changes
|
|
330
|
-
var LWC_VERSION = "2.
|
|
330
|
+
var LWC_VERSION = "2.45.1";
|
|
331
331
|
var LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
332
|
-
/** version: 2.
|
|
332
|
+
/** version: 2.45.1 */
|
|
333
333
|
|
|
334
334
|
/**
|
|
335
335
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -409,7 +409,7 @@ var LWC = (function (exports) {
|
|
|
409
409
|
setFeatureFlag(name, value);
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
/** version: 2.
|
|
412
|
+
/** version: 2.45.1 */
|
|
413
413
|
|
|
414
414
|
/**
|
|
415
415
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -473,7 +473,7 @@ var LWC = (function (exports) {
|
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
/** version: 2.
|
|
476
|
+
/** version: 2.45.1 */
|
|
477
477
|
|
|
478
478
|
/*
|
|
479
479
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1024,8 +1024,9 @@ var LWC = (function (exports) {
|
|
|
1024
1024
|
get: function get() {
|
|
1025
1025
|
return originalOuterHTMLDescriptor.get.call(this);
|
|
1026
1026
|
},
|
|
1027
|
-
set: function set(
|
|
1028
|
-
|
|
1027
|
+
set: function set(value) {
|
|
1028
|
+
logError("Invalid attempt to set outerHTML on Element.");
|
|
1029
|
+
return originalOuterHTMLDescriptor.set.call(this, value);
|
|
1029
1030
|
}
|
|
1030
1031
|
})
|
|
1031
1032
|
};
|
|
@@ -1113,16 +1114,18 @@ var LWC = (function (exports) {
|
|
|
1113
1114
|
get: function get() {
|
|
1114
1115
|
return originalInnerHTMLDescriptor.get.call(this);
|
|
1115
1116
|
},
|
|
1116
|
-
set: function set(
|
|
1117
|
-
|
|
1117
|
+
set: function set(value) {
|
|
1118
|
+
logError("Invalid attempt to set innerHTML on ShadowRoot.");
|
|
1119
|
+
return originalInnerHTMLDescriptor.set.call(this, value);
|
|
1118
1120
|
}
|
|
1119
1121
|
}),
|
|
1120
1122
|
textContent: generateAccessorDescriptor({
|
|
1121
1123
|
get: function get() {
|
|
1122
1124
|
return originalTextContentDescriptor.get.call(this);
|
|
1123
1125
|
},
|
|
1124
|
-
set: function set(
|
|
1125
|
-
|
|
1126
|
+
set: function set(value) {
|
|
1127
|
+
logError("Invalid attempt to set textContent on ShadowRoot.");
|
|
1128
|
+
return originalTextContentDescriptor.set.call(this, value);
|
|
1126
1129
|
}
|
|
1127
1130
|
}),
|
|
1128
1131
|
addEventListener: generateDataDescriptor({
|
|
@@ -1151,24 +1154,27 @@ var LWC = (function (exports) {
|
|
|
1151
1154
|
get: function get() {
|
|
1152
1155
|
return originalInnerHTMLDescriptor.get.call(this);
|
|
1153
1156
|
},
|
|
1154
|
-
set: function set(
|
|
1155
|
-
|
|
1157
|
+
set: function set(value) {
|
|
1158
|
+
logError("Invalid attempt to set innerHTML on HTMLElement.");
|
|
1159
|
+
return originalInnerHTMLDescriptor.set.call(this, value);
|
|
1156
1160
|
}
|
|
1157
1161
|
}),
|
|
1158
1162
|
outerHTML: generateAccessorDescriptor({
|
|
1159
1163
|
get: function get() {
|
|
1160
1164
|
return originalOuterHTMLDescriptor.get.call(this);
|
|
1161
1165
|
},
|
|
1162
|
-
set: function set(
|
|
1163
|
-
|
|
1166
|
+
set: function set(value) {
|
|
1167
|
+
logError("Invalid attempt to set outerHTML on HTMLElement.");
|
|
1168
|
+
return originalOuterHTMLDescriptor.set.call(this, value);
|
|
1164
1169
|
}
|
|
1165
1170
|
}),
|
|
1166
1171
|
textContent: generateAccessorDescriptor({
|
|
1167
1172
|
get: function get() {
|
|
1168
1173
|
return originalTextContentDescriptor.get.call(this);
|
|
1169
1174
|
},
|
|
1170
|
-
set: function set(
|
|
1171
|
-
|
|
1175
|
+
set: function set(value) {
|
|
1176
|
+
logError("Invalid attempt to set textContent on HTMLElement.");
|
|
1177
|
+
return originalTextContentDescriptor.set.call(this, value);
|
|
1172
1178
|
}
|
|
1173
1179
|
}),
|
|
1174
1180
|
addEventListener: generateDataDescriptor({
|
|
@@ -1184,19 +1190,6 @@ var LWC = (function (exports) {
|
|
|
1184
1190
|
})
|
|
1185
1191
|
};
|
|
1186
1192
|
}
|
|
1187
|
-
function getComponentRestrictionsDescriptors() {
|
|
1188
|
-
assertNotProd(); // this method should never leak to prod
|
|
1189
|
-
return {
|
|
1190
|
-
tagName: generateAccessorDescriptor({
|
|
1191
|
-
get: function get() {
|
|
1192
|
-
throw new Error("Usage of property `tagName` is disallowed because the component itself does" + " not know which tagName will be used to create the element, therefore writing" + " code that check for that value is error prone.");
|
|
1193
|
-
},
|
|
1194
|
-
configurable: true,
|
|
1195
|
-
enumerable: false // no enumerable properties on component
|
|
1196
|
-
})
|
|
1197
|
-
};
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
1193
|
function getLightningElementPrototypeRestrictionsDescriptors(proto) {
|
|
1201
1194
|
assertNotProd(); // this method should never leak to prod
|
|
1202
1195
|
var originalDispatchEvent = proto.dispatchEvent;
|
|
@@ -1227,9 +1220,6 @@ var LWC = (function (exports) {
|
|
|
1227
1220
|
var elmProto = getPrototypeOf$1(elm);
|
|
1228
1221
|
setPrototypeOf(elm, create(elmProto, restrictionsDescriptors));
|
|
1229
1222
|
}
|
|
1230
|
-
function patchComponentWithRestrictions(cmp) {
|
|
1231
|
-
defineProperties(cmp, getComponentRestrictionsDescriptors());
|
|
1232
|
-
}
|
|
1233
1223
|
function patchLightningElementPrototypeWithRestrictions(proto) {
|
|
1234
1224
|
defineProperties(proto, getLightningElementPrototypeRestrictionsDescriptors(proto));
|
|
1235
1225
|
}
|
|
@@ -1958,16 +1948,10 @@ var LWC = (function (exports) {
|
|
|
1958
1948
|
enumerable = descriptor.enumerable,
|
|
1959
1949
|
configurable = descriptor.configurable;
|
|
1960
1950
|
if (!isFunction$1(_get)) {
|
|
1961
|
-
|
|
1962
|
-
assert.fail("Detected invalid public property descriptor for HTMLElement.prototype.".concat(propName, " definition. Missing the standard getter."));
|
|
1963
|
-
}
|
|
1964
|
-
throw new TypeError();
|
|
1951
|
+
throw new TypeError("Detected invalid public property descriptor for HTMLElement.prototype.".concat(propName, " definition. Missing the standard getter."));
|
|
1965
1952
|
}
|
|
1966
1953
|
if (!isFunction$1(_set)) {
|
|
1967
|
-
|
|
1968
|
-
assert.fail("Detected invalid public property descriptor for HTMLElement.prototype.".concat(propName, " definition. Missing the standard setter."));
|
|
1969
|
-
}
|
|
1970
|
-
throw new TypeError();
|
|
1954
|
+
throw new TypeError("Detected invalid public property descriptor for HTMLElement.prototype.".concat(propName, " definition. Missing the standard setter."));
|
|
1971
1955
|
}
|
|
1972
1956
|
return {
|
|
1973
1957
|
enumerable: enumerable,
|
|
@@ -1987,10 +1971,18 @@ var LWC = (function (exports) {
|
|
|
1987
1971
|
var vm = getAssociatedVM(this);
|
|
1988
1972
|
if (process.env.NODE_ENV !== 'production') {
|
|
1989
1973
|
var _vmBeingRendered = getVMBeingRendered();
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1974
|
+
if (isInvokingRender) {
|
|
1975
|
+
logError("".concat(_vmBeingRendered, ".render() method has side effects on the state of ").concat(vm, ".").concat(propName));
|
|
1976
|
+
}
|
|
1977
|
+
if (isUpdatingTemplate) {
|
|
1978
|
+
logError("When updating the template of ".concat(_vmBeingRendered, ", one of the accessors used by the template has side effects on the state of ").concat(vm, ".").concat(propName));
|
|
1979
|
+
}
|
|
1980
|
+
if (isBeingConstructed(vm)) {
|
|
1981
|
+
logError("Failed to construct '".concat(getComponentTag(vm), "': The result must not have attributes."));
|
|
1982
|
+
}
|
|
1983
|
+
if (isObject(newValue) && !isNull(newValue)) {
|
|
1984
|
+
logError("Invalid value \"".concat(newValue, "\" for \"").concat(propName, "\" of ").concat(vm, ". Value cannot be an object, must be a primitive value."));
|
|
1985
|
+
}
|
|
1994
1986
|
}
|
|
1995
1987
|
updateComponentValue(vm, propName, newValue);
|
|
1996
1988
|
return _set.call(vm.elm, newValue);
|
|
@@ -2046,7 +2038,6 @@ var LWC = (function (exports) {
|
|
|
2046
2038
|
// Adding extra guard rails in DEV mode.
|
|
2047
2039
|
if (process.env.NODE_ENV !== 'production') {
|
|
2048
2040
|
patchCustomElementWithRestrictions(elm);
|
|
2049
|
-
patchComponentWithRestrictions(component);
|
|
2050
2041
|
}
|
|
2051
2042
|
return this;
|
|
2052
2043
|
};
|
|
@@ -2085,9 +2076,15 @@ var LWC = (function (exports) {
|
|
|
2085
2076
|
addEventListener = vm.renderer.addEventListener;
|
|
2086
2077
|
if (process.env.NODE_ENV !== 'production') {
|
|
2087
2078
|
var _vmBeingRendered2 = getVMBeingRendered();
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2079
|
+
if (isInvokingRender) {
|
|
2080
|
+
logError("".concat(_vmBeingRendered2, ".render() method has side effects on the state of ").concat(vm, " by adding an event listener for \"").concat(type, "\"."));
|
|
2081
|
+
}
|
|
2082
|
+
if (isUpdatingTemplate) {
|
|
2083
|
+
logError("Updating the template of ".concat(_vmBeingRendered2, " has side effects on the state of ").concat(vm, " by adding an event listener for \"").concat(type, "\"."));
|
|
2084
|
+
}
|
|
2085
|
+
if (!isFunction$1(listener)) {
|
|
2086
|
+
logError("Invalid second argument for this.addEventListener() in ".concat(vm, " for event \"").concat(type, "\". Expected an EventListener but received ").concat(listener, "."));
|
|
2087
|
+
}
|
|
2091
2088
|
}
|
|
2092
2089
|
var wrappedListener = getWrappedComponentsListener(vm, listener);
|
|
2093
2090
|
addEventListener(elm, type, wrappedListener, options);
|
|
@@ -2144,7 +2141,9 @@ var LWC = (function (exports) {
|
|
|
2144
2141
|
var elm = vm.elm,
|
|
2145
2142
|
setAttribute = vm.renderer.setAttribute;
|
|
2146
2143
|
if (process.env.NODE_ENV !== 'production') {
|
|
2147
|
-
|
|
2144
|
+
if (isBeingConstructed(vm)) {
|
|
2145
|
+
logError("Failed to construct '".concat(getComponentTag(vm), "': The result must not have attributes."));
|
|
2146
|
+
}
|
|
2148
2147
|
}
|
|
2149
2148
|
unlockAttribute(elm, name);
|
|
2150
2149
|
setAttribute(elm, name, value);
|
|
@@ -2155,7 +2154,9 @@ var LWC = (function (exports) {
|
|
|
2155
2154
|
var elm = vm.elm,
|
|
2156
2155
|
setAttribute = vm.renderer.setAttribute;
|
|
2157
2156
|
if (process.env.NODE_ENV !== 'production') {
|
|
2158
|
-
|
|
2157
|
+
if (isBeingConstructed(vm)) {
|
|
2158
|
+
logError("Failed to construct '".concat(getComponentTag(vm), "': The result must not have attributes."));
|
|
2159
|
+
}
|
|
2159
2160
|
}
|
|
2160
2161
|
unlockAttribute(elm, name);
|
|
2161
2162
|
setAttribute(elm, name, value, namespace);
|
|
@@ -2181,9 +2182,9 @@ var LWC = (function (exports) {
|
|
|
2181
2182
|
var elm = vm.elm,
|
|
2182
2183
|
getClassList = vm.renderer.getClassList;
|
|
2183
2184
|
if (process.env.NODE_ENV !== 'production') {
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2185
|
+
if (isBeingConstructed(vm)) {
|
|
2186
|
+
logError("Failed to construct ".concat(vm, ": The result must not have attributes. Adding or tampering with classname in constructor is not allowed in a web component, use connectedCallback() instead."));
|
|
2187
|
+
}
|
|
2187
2188
|
}
|
|
2188
2189
|
return getClassList(elm);
|
|
2189
2190
|
},
|
|
@@ -2715,8 +2716,12 @@ var LWC = (function (exports) {
|
|
|
2715
2716
|
var vm = getAssociatedVM(this);
|
|
2716
2717
|
if (process.env.NODE_ENV !== 'production') {
|
|
2717
2718
|
var _vmBeingRendered3 = getVMBeingRendered();
|
|
2718
|
-
|
|
2719
|
-
|
|
2719
|
+
if (isInvokingRender) {
|
|
2720
|
+
logError("render() method has side effects on the state of property \"".concat(toString$1(key), "\""), isNull(_vmBeingRendered3) ? vm : _vmBeingRendered3);
|
|
2721
|
+
}
|
|
2722
|
+
if (isUpdatingTemplate) {
|
|
2723
|
+
logError("Updating the template has side effects on the state of property \"".concat(toString$1(key), "\""), isNull(_vmBeingRendered3) ? vm : _vmBeingRendered3);
|
|
2724
|
+
}
|
|
2720
2725
|
}
|
|
2721
2726
|
vm.cmpProps[key] = newValue;
|
|
2722
2727
|
componentValueMutated(vm, key);
|
|
@@ -2743,13 +2748,17 @@ var LWC = (function (exports) {
|
|
|
2743
2748
|
var vm = getAssociatedVM(this);
|
|
2744
2749
|
if (process.env.NODE_ENV !== 'production') {
|
|
2745
2750
|
var _vmBeingRendered4 = getVMBeingRendered();
|
|
2746
|
-
|
|
2747
|
-
|
|
2751
|
+
if (isInvokingRender) {
|
|
2752
|
+
logError("render() method has side effects on the state of property \"".concat(toString$1(key), "\""), isNull(_vmBeingRendered4) ? vm : _vmBeingRendered4);
|
|
2753
|
+
}
|
|
2754
|
+
if (isUpdatingTemplate) {
|
|
2755
|
+
logError("Updating the template has side effects on the state of property \"".concat(toString$1(key), "\""), isNull(_vmBeingRendered4) ? vm : _vmBeingRendered4);
|
|
2756
|
+
}
|
|
2748
2757
|
}
|
|
2749
2758
|
if (_set2) {
|
|
2750
2759
|
_set2.call(this, newValue);
|
|
2751
2760
|
} else if (process.env.NODE_ENV !== 'production') {
|
|
2752
|
-
|
|
2761
|
+
logError("Invalid attempt to set a new value for property \"".concat(toString$1(key), "\" that does not has a setter decorated with @api."), vm);
|
|
2753
2762
|
}
|
|
2754
2763
|
},
|
|
2755
2764
|
enumerable: enumerable,
|
|
@@ -2783,8 +2792,12 @@ var LWC = (function (exports) {
|
|
|
2783
2792
|
var vm = getAssociatedVM(this);
|
|
2784
2793
|
if (process.env.NODE_ENV !== 'production') {
|
|
2785
2794
|
var _vmBeingRendered5 = getVMBeingRendered();
|
|
2786
|
-
|
|
2787
|
-
|
|
2795
|
+
if (isInvokingRender) {
|
|
2796
|
+
logError("".concat(_vmBeingRendered5, ".render() method has side effects on the state of ").concat(vm, ".").concat(toString$1(key)));
|
|
2797
|
+
}
|
|
2798
|
+
if (isUpdatingTemplate) {
|
|
2799
|
+
logError("Updating the template of ".concat(_vmBeingRendered5, " has side effects on the state of ").concat(vm, ".").concat(toString$1(key)));
|
|
2800
|
+
}
|
|
2788
2801
|
}
|
|
2789
2802
|
var reactiveOrAnyValue = getReactiveProxy(newValue);
|
|
2790
2803
|
updateComponentValue(vm, key, reactiveOrAnyValue);
|
|
@@ -3642,12 +3655,16 @@ var LWC = (function (exports) {
|
|
|
3642
3655
|
var ctorName = Ctor.name;
|
|
3643
3656
|
// Removing the following assert until https://bugs.webkit.org/show_bug.cgi?id=190140 is fixed.
|
|
3644
3657
|
// assert.isTrue(ctorName && isString(ctorName), `${toString(Ctor)} should have a "name" property with string value, but found ${ctorName}.`);
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3658
|
+
if (!Ctor.constructor) {
|
|
3659
|
+
// This error seems impossible to hit, due to an earlier check in `isComponentConstructor()`.
|
|
3660
|
+
// But we keep it here just in case.
|
|
3661
|
+
logError("Missing ".concat(ctorName, ".constructor, ").concat(ctorName, " should have a \"constructor\" property."));
|
|
3662
|
+
}
|
|
3663
|
+
if (!isUndefined$1(ctorShadowSupportMode) && ctorShadowSupportMode !== "any" /* ShadowSupportMode.Any */ && ctorShadowSupportMode !== "reset" /* ShadowSupportMode.Default */) {
|
|
3664
|
+
logError("Invalid value for static property shadowSupportMode: '".concat(ctorShadowSupportMode, "'"));
|
|
3648
3665
|
}
|
|
3649
|
-
if (!isUndefined$1(ctorRenderMode)) {
|
|
3650
|
-
|
|
3666
|
+
if (!isUndefined$1(ctorRenderMode) && ctorRenderMode !== 'light' && ctorRenderMode !== 'shadow') {
|
|
3667
|
+
logError("Invalid value for static property renderMode: '".concat(ctorRenderMode, "'. renderMode must be either 'light' or 'shadow'."));
|
|
3651
3668
|
}
|
|
3652
3669
|
}
|
|
3653
3670
|
var decoratorsMeta = getDecoratorsMeta(Ctor);
|
|
@@ -3904,15 +3921,6 @@ var LWC = (function (exports) {
|
|
|
3904
3921
|
// the stylesheet, while internally, we have a replacement for it.
|
|
3905
3922
|
stylesheet = getStyleOrSwappedStyle(stylesheet);
|
|
3906
3923
|
}
|
|
3907
|
-
// Check that this stylesheet was generated by our compiler
|
|
3908
|
-
if (!isStylesheetRegistered(stylesheet)) {
|
|
3909
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3910
|
-
logWarnOnce("TypeError: Unexpected LWC stylesheet content found for component <".concat(vm.tagName.toLowerCase(), ">."));
|
|
3911
|
-
}
|
|
3912
|
-
report("UnexpectedStylesheetContent" /* ReportingEventId.UnexpectedStylesheetContent */, {
|
|
3913
|
-
tagName: vm.tagName.toLowerCase()
|
|
3914
|
-
});
|
|
3915
|
-
}
|
|
3916
3924
|
var isScopedCss = stylesheet[KEY__SCOPED_CSS];
|
|
3917
3925
|
if (lwcRuntimeFlags.DISABLE_LIGHT_DOM_UNSCOPED_CSS && !isScopedCss && vm.renderMode === 0 /* RenderMode.Light */) {
|
|
3918
3926
|
logError('Unscoped CSS is not supported in Light DOM. Please use scoped CSS (*.scoped.css) instead of unscoped CSS (*.css).');
|
|
@@ -4027,18 +4035,6 @@ var LWC = (function (exports) {
|
|
|
4027
4035
|
}
|
|
4028
4036
|
return null;
|
|
4029
4037
|
}
|
|
4030
|
-
var signedStylesheetSet = new Set();
|
|
4031
|
-
/**
|
|
4032
|
-
* INTERNAL: This function can only be invoked by compiled code. The compiler
|
|
4033
|
-
* will prevent this function from being imported by userland code.
|
|
4034
|
-
*/
|
|
4035
|
-
function registerStylesheet(stylesheet) {
|
|
4036
|
-
signedStylesheetSet.add(stylesheet);
|
|
4037
|
-
return stylesheet;
|
|
4038
|
-
}
|
|
4039
|
-
function isStylesheetRegistered(stylesheet) {
|
|
4040
|
-
return signedStylesheetSet.has(stylesheet);
|
|
4041
|
-
}
|
|
4042
4038
|
|
|
4043
4039
|
/*
|
|
4044
4040
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5468,7 +5464,7 @@ var LWC = (function (exports) {
|
|
|
5468
5464
|
return compilerKey + ':' + obj;
|
|
5469
5465
|
case 'object':
|
|
5470
5466
|
if (process.env.NODE_ENV !== 'production') {
|
|
5471
|
-
|
|
5467
|
+
logError("Invalid key value \"".concat(obj, "\" in ").concat(getVMBeingRendered(), ". Key must be a string or number."));
|
|
5472
5468
|
}
|
|
5473
5469
|
}
|
|
5474
5470
|
}
|
|
@@ -5746,11 +5742,18 @@ var LWC = (function (exports) {
|
|
|
5746
5742
|
}
|
|
5747
5743
|
}
|
|
5748
5744
|
function validateLightDomTemplate(template, vm) {
|
|
5749
|
-
|
|
5745
|
+
assertNotProd(); // should never leak to prod mode
|
|
5746
|
+
if (template === defaultEmptyTemplate) {
|
|
5747
|
+
return;
|
|
5748
|
+
}
|
|
5750
5749
|
if (vm.renderMode === 0 /* RenderMode.Light */) {
|
|
5751
|
-
|
|
5750
|
+
if (template.renderMode !== 'light') {
|
|
5751
|
+
logError("Light DOM components can't render shadow DOM templates. Add an 'lwc:render-mode=\"light\"' directive to the root template tag of ".concat(getComponentTag(vm), "."));
|
|
5752
|
+
}
|
|
5752
5753
|
} else {
|
|
5753
|
-
|
|
5754
|
+
if (!isUndefined$1(template.renderMode)) {
|
|
5755
|
+
logError("Shadow DOM components template can't render light DOM templates. Either remove the 'lwc:render-mode' directive from ".concat(getComponentTag(vm), " or set it to 'lwc:render-mode=\"shadow\""));
|
|
5756
|
+
}
|
|
5754
5757
|
}
|
|
5755
5758
|
}
|
|
5756
5759
|
function buildParseFragmentFn(createFragmentFn) {
|
|
@@ -5899,7 +5902,9 @@ var LWC = (function (exports) {
|
|
|
5899
5902
|
logOperationEnd(1 /* OperationId.Render */, vm);
|
|
5900
5903
|
});
|
|
5901
5904
|
if (process.env.NODE_ENV !== 'production') {
|
|
5902
|
-
|
|
5905
|
+
if (!isArray$1(vnodes)) {
|
|
5906
|
+
logError("Compiler should produce html functions that always return an array.");
|
|
5907
|
+
}
|
|
5903
5908
|
}
|
|
5904
5909
|
return vnodes;
|
|
5905
5910
|
}
|
|
@@ -6878,7 +6883,7 @@ var LWC = (function (exports) {
|
|
|
6878
6883
|
if (!isLightningElement(elm)) {
|
|
6879
6884
|
var vm = findVM(elm);
|
|
6880
6885
|
if (process.env.NODE_ENV !== 'production') {
|
|
6881
|
-
logWarnOnce("Element <".concat(elm.tagName.toLowerCase(), "> ") + (isUndefined$1(vm) ? '' : "owned by <".concat(vm.tagName.toLowerCase(), "> ")) + "uses non-standard property \"".concat(prop, "\". This will be removed in a future version of LWC. ") + "See https://sfdc.co/deprecated-aria");
|
|
6886
|
+
logWarnOnce("Element <".concat(elm.tagName.toLowerCase(), "> ") + (isUndefined$1(vm) ? '' : "owned by <".concat(vm.elm.tagName.toLowerCase(), "> ")) + "uses non-standard property \"".concat(prop, "\". This will be removed in a future version of LWC. ") + "See https://sfdc.co/deprecated-aria");
|
|
6882
6887
|
}
|
|
6883
6888
|
var setValueType;
|
|
6884
6889
|
if (isSetter) {
|
|
@@ -7680,7 +7685,7 @@ var LWC = (function (exports) {
|
|
|
7680
7685
|
}
|
|
7681
7686
|
return getReadOnlyProxy(obj);
|
|
7682
7687
|
}
|
|
7683
|
-
/* version: 2.
|
|
7688
|
+
/* version: 2.45.1 */
|
|
7684
7689
|
|
|
7685
7690
|
/*
|
|
7686
7691
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8106,7 +8111,7 @@ var LWC = (function (exports) {
|
|
|
8106
8111
|
function isNull(obj) {
|
|
8107
8112
|
return obj === null;
|
|
8108
8113
|
}
|
|
8109
|
-
/** version: 2.
|
|
8114
|
+
/** version: 2.45.1 */
|
|
8110
8115
|
|
|
8111
8116
|
/*
|
|
8112
8117
|
* Copyright (c) 2023, salesforce.com, inc.
|
|
@@ -8748,7 +8753,7 @@ var LWC = (function (exports) {
|
|
|
8748
8753
|
});
|
|
8749
8754
|
});
|
|
8750
8755
|
}
|
|
8751
|
-
/* version: 2.
|
|
8756
|
+
/* version: 2.45.1 */
|
|
8752
8757
|
|
|
8753
8758
|
exports.LightningElement = LightningElement;
|
|
8754
8759
|
exports.__unstable__ProfilerControl = profilerControl;
|
|
@@ -8769,7 +8774,6 @@ var LWC = (function (exports) {
|
|
|
8769
8774
|
exports.register = register;
|
|
8770
8775
|
exports.registerComponent = registerComponent;
|
|
8771
8776
|
exports.registerDecorators = registerDecorators;
|
|
8772
|
-
exports.registerStylesheet = registerStylesheet;
|
|
8773
8777
|
exports.registerTemplate = registerTemplate;
|
|
8774
8778
|
exports.renderer = renderer;
|
|
8775
8779
|
exports.rendererFactory = rendererFactory;
|