lwc 2.13.0 → 2.13.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 +155 -145
- package/dist/engine-dom/iife/es2017/engine-dom.js +155 -145
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +143 -133
- package/dist/engine-dom/iife/es5/engine-dom.js +162 -142
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +144 -124
- package/dist/engine-dom/umd/es2017/engine-dom.js +155 -145
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +143 -133
- package/dist/engine-dom/umd/es5/engine-dom.js +162 -142
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +144 -124
- package/dist/engine-server/commonjs/es2017/engine-server.js +132 -124
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +132 -124
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +693 -693
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +693 -693
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +681 -681
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +686 -686
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +697 -697
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +693 -693
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +681 -681
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +686 -686
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +697 -697
- 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.min.js +1 -1
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +5 -5
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +5 -5
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +5 -5
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +5 -5
- package/package.json +7 -7
|
@@ -290,7 +290,7 @@ var LWC = (function (exports) {
|
|
|
290
290
|
const XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
|
|
291
291
|
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
292
292
|
const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
293
|
-
/** version: 2.13.
|
|
293
|
+
/** version: 2.13.3 */
|
|
294
294
|
|
|
295
295
|
/*
|
|
296
296
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -433,7 +433,7 @@ var LWC = (function (exports) {
|
|
|
433
433
|
*/
|
|
434
434
|
function setFeatureFlagForTest(name, value) {
|
|
435
435
|
}
|
|
436
|
-
/** version: 2.13.
|
|
436
|
+
/** version: 2.13.3 */
|
|
437
437
|
|
|
438
438
|
/* proxy-compat-disable */
|
|
439
439
|
|
|
@@ -837,6 +837,20 @@ var LWC = (function (exports) {
|
|
|
837
837
|
log('error', message, vm);
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
+
/*
|
|
841
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
842
|
+
* All rights reserved.
|
|
843
|
+
* SPDX-License-Identifier: MIT
|
|
844
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
845
|
+
*/
|
|
846
|
+
function resolveCircularModuleDependency(fn) {
|
|
847
|
+
const module = fn();
|
|
848
|
+
return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
|
|
849
|
+
}
|
|
850
|
+
function isCircularModuleDependency(obj) {
|
|
851
|
+
return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
|
|
852
|
+
}
|
|
853
|
+
|
|
840
854
|
/*
|
|
841
855
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
842
856
|
* All rights reserved.
|
|
@@ -1705,58 +1719,7 @@ var LWC = (function (exports) {
|
|
|
1705
1719
|
configurable: true,
|
|
1706
1720
|
});
|
|
1707
1721
|
|
|
1708
|
-
|
|
1709
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
1710
|
-
* All rights reserved.
|
|
1711
|
-
* SPDX-License-Identifier: MIT
|
|
1712
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1713
|
-
*/
|
|
1714
|
-
/**
|
|
1715
|
-
* @wire decorator to wire fields and methods to a wire adapter in
|
|
1716
|
-
* LWC Components. This function implements the internals of this
|
|
1717
|
-
* decorator.
|
|
1718
|
-
*/
|
|
1719
|
-
function wire(_adapter, _config) {
|
|
1720
|
-
throw new Error();
|
|
1721
|
-
}
|
|
1722
|
-
function internalWireFieldDecorator(key) {
|
|
1723
|
-
return {
|
|
1724
|
-
get() {
|
|
1725
|
-
const vm = getAssociatedVM(this);
|
|
1726
|
-
componentValueObserved(vm, key);
|
|
1727
|
-
return vm.cmpFields[key];
|
|
1728
|
-
},
|
|
1729
|
-
set(value) {
|
|
1730
|
-
const vm = getAssociatedVM(this);
|
|
1731
|
-
/**
|
|
1732
|
-
* Reactivity for wired fields is provided in wiring.
|
|
1733
|
-
* We intentionally add reactivity here since this is just
|
|
1734
|
-
* letting the author to do the wrong thing, but it will keep our
|
|
1735
|
-
* system to be backward compatible.
|
|
1736
|
-
*/
|
|
1737
|
-
if (value !== vm.cmpFields[key]) {
|
|
1738
|
-
vm.cmpFields[key] = value;
|
|
1739
|
-
componentValueMutated(vm, key);
|
|
1740
|
-
}
|
|
1741
|
-
},
|
|
1742
|
-
enumerable: true,
|
|
1743
|
-
configurable: true,
|
|
1744
|
-
};
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
/*
|
|
1748
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
1749
|
-
* All rights reserved.
|
|
1750
|
-
* SPDX-License-Identifier: MIT
|
|
1751
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1752
|
-
*/
|
|
1753
|
-
function track(target) {
|
|
1754
|
-
if (arguments.length === 1) {
|
|
1755
|
-
return reactiveMembrane.getProxy(target);
|
|
1756
|
-
}
|
|
1757
|
-
throw new Error();
|
|
1758
|
-
}
|
|
1759
|
-
function internalTrackDecorator(key) {
|
|
1722
|
+
function createObservedFieldPropertyDescriptor(key) {
|
|
1760
1723
|
return {
|
|
1761
1724
|
get() {
|
|
1762
1725
|
const vm = getAssociatedVM(this);
|
|
@@ -1765,9 +1728,8 @@ var LWC = (function (exports) {
|
|
|
1765
1728
|
},
|
|
1766
1729
|
set(newValue) {
|
|
1767
1730
|
const vm = getAssociatedVM(this);
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
vm.cmpFields[key] = reactiveOrAnyValue;
|
|
1731
|
+
if (newValue !== vm.cmpFields[key]) {
|
|
1732
|
+
vm.cmpFields[key] = newValue;
|
|
1771
1733
|
componentValueMutated(vm, key);
|
|
1772
1734
|
}
|
|
1773
1735
|
},
|
|
@@ -1904,7 +1866,19 @@ var LWC = (function (exports) {
|
|
|
1904
1866
|
};
|
|
1905
1867
|
}
|
|
1906
1868
|
|
|
1907
|
-
|
|
1869
|
+
/*
|
|
1870
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
1871
|
+
* All rights reserved.
|
|
1872
|
+
* SPDX-License-Identifier: MIT
|
|
1873
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1874
|
+
*/
|
|
1875
|
+
function track(target) {
|
|
1876
|
+
if (arguments.length === 1) {
|
|
1877
|
+
return reactiveMembrane.getProxy(target);
|
|
1878
|
+
}
|
|
1879
|
+
throw new Error();
|
|
1880
|
+
}
|
|
1881
|
+
function internalTrackDecorator(key) {
|
|
1908
1882
|
return {
|
|
1909
1883
|
get() {
|
|
1910
1884
|
const vm = getAssociatedVM(this);
|
|
@@ -1913,8 +1887,48 @@ var LWC = (function (exports) {
|
|
|
1913
1887
|
},
|
|
1914
1888
|
set(newValue) {
|
|
1915
1889
|
const vm = getAssociatedVM(this);
|
|
1916
|
-
|
|
1917
|
-
|
|
1890
|
+
const reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
|
|
1891
|
+
if (reactiveOrAnyValue !== vm.cmpFields[key]) {
|
|
1892
|
+
vm.cmpFields[key] = reactiveOrAnyValue;
|
|
1893
|
+
componentValueMutated(vm, key);
|
|
1894
|
+
}
|
|
1895
|
+
},
|
|
1896
|
+
enumerable: true,
|
|
1897
|
+
configurable: true,
|
|
1898
|
+
};
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
/*
|
|
1902
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
1903
|
+
* All rights reserved.
|
|
1904
|
+
* SPDX-License-Identifier: MIT
|
|
1905
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1906
|
+
*/
|
|
1907
|
+
/**
|
|
1908
|
+
* @wire decorator to wire fields and methods to a wire adapter in
|
|
1909
|
+
* LWC Components. This function implements the internals of this
|
|
1910
|
+
* decorator.
|
|
1911
|
+
*/
|
|
1912
|
+
function wire(_adapter, _config) {
|
|
1913
|
+
throw new Error();
|
|
1914
|
+
}
|
|
1915
|
+
function internalWireFieldDecorator(key) {
|
|
1916
|
+
return {
|
|
1917
|
+
get() {
|
|
1918
|
+
const vm = getAssociatedVM(this);
|
|
1919
|
+
componentValueObserved(vm, key);
|
|
1920
|
+
return vm.cmpFields[key];
|
|
1921
|
+
},
|
|
1922
|
+
set(value) {
|
|
1923
|
+
const vm = getAssociatedVM(this);
|
|
1924
|
+
/**
|
|
1925
|
+
* Reactivity for wired fields is provided in wiring.
|
|
1926
|
+
* We intentionally add reactivity here since this is just
|
|
1927
|
+
* letting the author to do the wrong thing, but it will keep our
|
|
1928
|
+
* system to be backward compatible.
|
|
1929
|
+
*/
|
|
1930
|
+
if (value !== vm.cmpFields[key]) {
|
|
1931
|
+
vm.cmpFields[key] = value;
|
|
1918
1932
|
componentValueMutated(vm, key);
|
|
1919
1933
|
}
|
|
1920
1934
|
},
|
|
@@ -2037,6 +2051,12 @@ var LWC = (function (exports) {
|
|
|
2037
2051
|
return isUndefined$1(meta) ? defaultMeta : meta;
|
|
2038
2052
|
}
|
|
2039
2053
|
|
|
2054
|
+
/*
|
|
2055
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
2056
|
+
* All rights reserved.
|
|
2057
|
+
* SPDX-License-Identifier: MIT
|
|
2058
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2059
|
+
*/
|
|
2040
2060
|
const signedTemplateSet = new Set();
|
|
2041
2061
|
function defaultEmptyTemplate() {
|
|
2042
2062
|
return [];
|
|
@@ -2051,6 +2071,30 @@ var LWC = (function (exports) {
|
|
|
2051
2071
|
*/
|
|
2052
2072
|
function registerTemplate(tpl) {
|
|
2053
2073
|
signedTemplateSet.add(tpl);
|
|
2074
|
+
// FIXME[@W-10950976]: the template object should be frozen, and it should not be possible to set
|
|
2075
|
+
// the stylesheets or stylesheetToken(s). For backwards compat, though, we shim stylesheetTokens
|
|
2076
|
+
// on top of stylesheetToken for anyone who is accessing the old internal API.
|
|
2077
|
+
// Details: https://salesforce.quip.com/v1rmAFu2cKAr
|
|
2078
|
+
defineProperty(tpl, 'stylesheetTokens', {
|
|
2079
|
+
get() {
|
|
2080
|
+
const { stylesheetToken } = this;
|
|
2081
|
+
if (isUndefined$1(stylesheetToken)) {
|
|
2082
|
+
return stylesheetToken;
|
|
2083
|
+
}
|
|
2084
|
+
// Shim for the old `stylesheetTokens` property
|
|
2085
|
+
// See https://github.com/salesforce/lwc/pull/2332/files#diff-7901555acef29969adaa6583185b3e9bce475cdc6f23e799a54e0018cb18abaa
|
|
2086
|
+
return {
|
|
2087
|
+
hostAttribute: `${stylesheetToken}-host`,
|
|
2088
|
+
shadowAttribute: stylesheetToken,
|
|
2089
|
+
};
|
|
2090
|
+
},
|
|
2091
|
+
set(value) {
|
|
2092
|
+
// If the value is null or some other exotic object, you would be broken anyway in the past
|
|
2093
|
+
// because the engine would try to access hostAttribute/shadowAttribute, which would throw an error.
|
|
2094
|
+
// However it may be undefined in newer versions of LWC, so we need to guard against that case.
|
|
2095
|
+
this.stylesheetToken = isUndefined$1(value) ? undefined : value.shadowAttribute;
|
|
2096
|
+
},
|
|
2097
|
+
});
|
|
2054
2098
|
// chaining this method as a way to wrap existing
|
|
2055
2099
|
// assignment of templates easily, without too much transformation
|
|
2056
2100
|
return tpl;
|
|
@@ -2212,20 +2256,6 @@ var LWC = (function (exports) {
|
|
|
2212
2256
|
const BaseBridgeElement = HTMLBridgeElementFactory(HTMLElementConstructor$1, getOwnPropertyNames$1(HTMLElementOriginalDescriptors), []);
|
|
2213
2257
|
freeze(BaseBridgeElement);
|
|
2214
2258
|
seal(BaseBridgeElement.prototype);
|
|
2215
|
-
|
|
2216
|
-
/*
|
|
2217
|
-
* Copyright (c) 2020, salesforce.com, inc.
|
|
2218
|
-
* All rights reserved.
|
|
2219
|
-
* SPDX-License-Identifier: MIT
|
|
2220
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2221
|
-
*/
|
|
2222
|
-
function resolveCircularModuleDependency(fn) {
|
|
2223
|
-
const module = fn();
|
|
2224
|
-
return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
|
|
2225
|
-
}
|
|
2226
|
-
function isCircularModuleDependency(obj) {
|
|
2227
|
-
return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
|
|
2228
|
-
}
|
|
2229
2259
|
function setActiveVM(vm) {
|
|
2230
2260
|
{
|
|
2231
2261
|
// this method should never leak to prod
|
|
@@ -4035,20 +4065,9 @@ var LWC = (function (exports) {
|
|
|
4035
4065
|
|
|
4036
4066
|
resetComponentStateWhenRemoved(vm);
|
|
4037
4067
|
}
|
|
4038
|
-
|
|
4039
|
-
function getNearestShadowAncestor(vm) {
|
|
4040
|
-
let ancestor = vm.owner;
|
|
4041
|
-
|
|
4042
|
-
while (!isNull(ancestor) && ancestor.renderMode === 0
|
|
4043
|
-
/* Light */
|
|
4044
|
-
) {
|
|
4045
|
-
ancestor = ancestor.owner;
|
|
4046
|
-
}
|
|
4047
|
-
|
|
4048
|
-
return ancestor;
|
|
4049
|
-
}
|
|
4050
|
-
|
|
4051
4068
|
function createVM(elm, ctor, options) {
|
|
4069
|
+
var _a;
|
|
4070
|
+
|
|
4052
4071
|
const {
|
|
4053
4072
|
mode,
|
|
4054
4073
|
owner,
|
|
@@ -4076,6 +4095,8 @@ var LWC = (function (exports) {
|
|
|
4076
4095
|
oar: create(null),
|
|
4077
4096
|
cmpTemplate: null,
|
|
4078
4097
|
renderMode: def.renderMode,
|
|
4098
|
+
shadowMode: computeShadowMode(def, owner),
|
|
4099
|
+
nearestShadowMode: (owner === null || owner === void 0 ? void 0 : owner.shadowRoot) ? owner.shadowMode : (_a = owner === null || owner === void 0 ? void 0 : owner.nearestShadowMode) !== null && _a !== void 0 ? _a : null,
|
|
4079
4100
|
context: {
|
|
4080
4101
|
stylesheetToken: undefined,
|
|
4081
4102
|
hasTokenInClass: undefined,
|
|
@@ -4088,7 +4109,6 @@ var LWC = (function (exports) {
|
|
|
4088
4109
|
},
|
|
4089
4110
|
// Properties set right after VM creation.
|
|
4090
4111
|
tro: null,
|
|
4091
|
-
shadowMode: null,
|
|
4092
4112
|
// Properties set by the LightningElement constructor.
|
|
4093
4113
|
component: null,
|
|
4094
4114
|
shadowRoot: null,
|
|
@@ -4097,7 +4117,6 @@ var LWC = (function (exports) {
|
|
|
4097
4117
|
setHook,
|
|
4098
4118
|
getHook
|
|
4099
4119
|
};
|
|
4100
|
-
vm.shadowMode = computeShadowMode(vm);
|
|
4101
4120
|
vm.tro = getTemplateReactiveObserver(vm);
|
|
4102
4121
|
|
|
4103
4122
|
|
|
@@ -4110,10 +4129,9 @@ var LWC = (function (exports) {
|
|
|
4110
4129
|
return vm;
|
|
4111
4130
|
}
|
|
4112
4131
|
|
|
4113
|
-
function computeShadowMode(
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
} = vm;
|
|
4132
|
+
function computeShadowMode(def, owner) {
|
|
4133
|
+
var _a;
|
|
4134
|
+
|
|
4117
4135
|
let shadowMode;
|
|
4118
4136
|
|
|
4119
4137
|
if (isSyntheticShadowDefined$1) {
|
|
@@ -4136,23 +4154,13 @@ var LWC = (function (exports) {
|
|
|
4136
4154
|
/* Native */
|
|
4137
4155
|
;
|
|
4138
4156
|
} else {
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
if
|
|
4142
|
-
|
|
4143
|
-
)
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
shadowMode = 0
|
|
4147
|
-
/* Native */
|
|
4148
|
-
;
|
|
4149
|
-
} else {
|
|
4150
|
-
// Synthetic if neither this component nor any of its ancestors are configured
|
|
4151
|
-
// to be native.
|
|
4152
|
-
shadowMode = 1
|
|
4153
|
-
/* Synthetic */
|
|
4154
|
-
;
|
|
4155
|
-
}
|
|
4157
|
+
// Transitive support for native Shadow DOM. A component in native mode
|
|
4158
|
+
// transitively opts all of its descendants into native.
|
|
4159
|
+
// Synthetic if neither this component nor any of its ancestors are configured
|
|
4160
|
+
// to be native.
|
|
4161
|
+
shadowMode = (_a = owner === null || owner === void 0 ? void 0 : owner.nearestShadowMode) !== null && _a !== void 0 ? _a : 1
|
|
4162
|
+
/* Synthetic */
|
|
4163
|
+
;
|
|
4156
4164
|
}
|
|
4157
4165
|
} else {
|
|
4158
4166
|
shadowMode = 1
|
|
@@ -5128,7 +5136,30 @@ var LWC = (function (exports) {
|
|
|
5128
5136
|
hooksAreSet = true;
|
|
5129
5137
|
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
5130
5138
|
}
|
|
5131
|
-
|
|
5139
|
+
|
|
5140
|
+
/*
|
|
5141
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
5142
|
+
* All rights reserved.
|
|
5143
|
+
* SPDX-License-Identifier: MIT
|
|
5144
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
5145
|
+
*/
|
|
5146
|
+
/**
|
|
5147
|
+
* EXPERIMENTAL: This function provides access to the component constructor, given an HTMLElement.
|
|
5148
|
+
* This API is subject to change or being removed.
|
|
5149
|
+
*/
|
|
5150
|
+
function getComponentConstructor(elm) {
|
|
5151
|
+
let ctor = null;
|
|
5152
|
+
// intentionally checking for undefined due to some funky libraries patching weakmap.get
|
|
5153
|
+
// to throw when undefined.
|
|
5154
|
+
if (!isUndefined$1(elm)) {
|
|
5155
|
+
const vm = getAssociatedVMIfPresent(elm);
|
|
5156
|
+
if (!isUndefined$1(vm)) {
|
|
5157
|
+
ctor = vm.def.ctor;
|
|
5158
|
+
}
|
|
5159
|
+
}
|
|
5160
|
+
return ctor;
|
|
5161
|
+
}
|
|
5162
|
+
/* version: 2.13.3 */
|
|
5132
5163
|
|
|
5133
5164
|
/*
|
|
5134
5165
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5646,27 +5677,6 @@ var LWC = (function (exports) {
|
|
|
5646
5677
|
return element;
|
|
5647
5678
|
}
|
|
5648
5679
|
|
|
5649
|
-
/*
|
|
5650
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
5651
|
-
* All rights reserved.
|
|
5652
|
-
* SPDX-License-Identifier: MIT
|
|
5653
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
5654
|
-
*/
|
|
5655
|
-
/**
|
|
5656
|
-
* EXPERIMENTAL: This function provides access to the component constructor, given an HTMLElement.
|
|
5657
|
-
* This API is subject to change or being removed.
|
|
5658
|
-
*/
|
|
5659
|
-
function getComponentConstructor(elm) {
|
|
5660
|
-
let ctor = null;
|
|
5661
|
-
if (elm instanceof HTMLElement) {
|
|
5662
|
-
const vm = getAssociatedVMIfPresent(elm);
|
|
5663
|
-
if (!isUndefined$1(vm)) {
|
|
5664
|
-
ctor = vm.def.ctor;
|
|
5665
|
-
}
|
|
5666
|
-
}
|
|
5667
|
-
return ctor;
|
|
5668
|
-
}
|
|
5669
|
-
|
|
5670
5680
|
/*
|
|
5671
5681
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
5672
5682
|
* All rights reserved.
|
|
@@ -5735,7 +5745,7 @@ var LWC = (function (exports) {
|
|
|
5735
5745
|
});
|
|
5736
5746
|
freeze(LightningElement);
|
|
5737
5747
|
seal(LightningElement.prototype);
|
|
5738
|
-
/* version: 2.13.
|
|
5748
|
+
/* version: 2.13.3 */
|
|
5739
5749
|
|
|
5740
5750
|
exports.LightningElement = LightningElement;
|
|
5741
5751
|
exports.__unstable__ProfilerControl = profilerControl;
|