lwc 2.12.0 → 2.13.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 +88 -95
- package/dist/engine-dom/iife/es2017/engine-dom.js +88 -95
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +76 -83
- package/dist/engine-dom/iife/es5/engine-dom.js +5761 -7323
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +4567 -5868
- package/dist/engine-dom/umd/es2017/engine-dom.js +88 -95
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +76 -83
- package/dist/engine-dom/umd/es5/engine-dom.js +5761 -7323
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +4567 -5868
- package/dist/engine-server/commonjs/es2017/engine-server.js +88 -95
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +88 -95
- 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 +13 -10
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +681 -681
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3725 -4699
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +1 -10
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3600 -4543
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +693 -693
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +13 -10
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +681 -681
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3725 -4699
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +1 -10
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3600 -4543
- 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 +258 -243
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +258 -243
- 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 +258 -243
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +258 -243
- package/package.json +7 -7
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
const XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
|
|
294
294
|
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
295
295
|
const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
296
|
-
/** version: 2.
|
|
296
|
+
/** version: 2.13.1 */
|
|
297
297
|
|
|
298
298
|
/*
|
|
299
299
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -436,7 +436,7 @@
|
|
|
436
436
|
*/
|
|
437
437
|
function setFeatureFlagForTest(name, value) {
|
|
438
438
|
}
|
|
439
|
-
/** version: 2.
|
|
439
|
+
/** version: 2.13.1 */
|
|
440
440
|
|
|
441
441
|
/* proxy-compat-disable */
|
|
442
442
|
|
|
@@ -840,6 +840,20 @@
|
|
|
840
840
|
log('error', message, vm);
|
|
841
841
|
}
|
|
842
842
|
|
|
843
|
+
/*
|
|
844
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
845
|
+
* All rights reserved.
|
|
846
|
+
* SPDX-License-Identifier: MIT
|
|
847
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
848
|
+
*/
|
|
849
|
+
function resolveCircularModuleDependency(fn) {
|
|
850
|
+
const module = fn();
|
|
851
|
+
return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
|
|
852
|
+
}
|
|
853
|
+
function isCircularModuleDependency(obj) {
|
|
854
|
+
return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
|
|
855
|
+
}
|
|
856
|
+
|
|
843
857
|
/*
|
|
844
858
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
845
859
|
* All rights reserved.
|
|
@@ -1708,58 +1722,7 @@
|
|
|
1708
1722
|
configurable: true,
|
|
1709
1723
|
});
|
|
1710
1724
|
|
|
1711
|
-
|
|
1712
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
1713
|
-
* All rights reserved.
|
|
1714
|
-
* SPDX-License-Identifier: MIT
|
|
1715
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1716
|
-
*/
|
|
1717
|
-
/**
|
|
1718
|
-
* @wire decorator to wire fields and methods to a wire adapter in
|
|
1719
|
-
* LWC Components. This function implements the internals of this
|
|
1720
|
-
* decorator.
|
|
1721
|
-
*/
|
|
1722
|
-
function wire(_adapter, _config) {
|
|
1723
|
-
throw new Error();
|
|
1724
|
-
}
|
|
1725
|
-
function internalWireFieldDecorator(key) {
|
|
1726
|
-
return {
|
|
1727
|
-
get() {
|
|
1728
|
-
const vm = getAssociatedVM(this);
|
|
1729
|
-
componentValueObserved(vm, key);
|
|
1730
|
-
return vm.cmpFields[key];
|
|
1731
|
-
},
|
|
1732
|
-
set(value) {
|
|
1733
|
-
const vm = getAssociatedVM(this);
|
|
1734
|
-
/**
|
|
1735
|
-
* Reactivity for wired fields is provided in wiring.
|
|
1736
|
-
* We intentionally add reactivity here since this is just
|
|
1737
|
-
* letting the author to do the wrong thing, but it will keep our
|
|
1738
|
-
* system to be backward compatible.
|
|
1739
|
-
*/
|
|
1740
|
-
if (value !== vm.cmpFields[key]) {
|
|
1741
|
-
vm.cmpFields[key] = value;
|
|
1742
|
-
componentValueMutated(vm, key);
|
|
1743
|
-
}
|
|
1744
|
-
},
|
|
1745
|
-
enumerable: true,
|
|
1746
|
-
configurable: true,
|
|
1747
|
-
};
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
/*
|
|
1751
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
1752
|
-
* All rights reserved.
|
|
1753
|
-
* SPDX-License-Identifier: MIT
|
|
1754
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1755
|
-
*/
|
|
1756
|
-
function track(target) {
|
|
1757
|
-
if (arguments.length === 1) {
|
|
1758
|
-
return reactiveMembrane.getProxy(target);
|
|
1759
|
-
}
|
|
1760
|
-
throw new Error();
|
|
1761
|
-
}
|
|
1762
|
-
function internalTrackDecorator(key) {
|
|
1725
|
+
function createObservedFieldPropertyDescriptor(key) {
|
|
1763
1726
|
return {
|
|
1764
1727
|
get() {
|
|
1765
1728
|
const vm = getAssociatedVM(this);
|
|
@@ -1768,9 +1731,8 @@
|
|
|
1768
1731
|
},
|
|
1769
1732
|
set(newValue) {
|
|
1770
1733
|
const vm = getAssociatedVM(this);
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
vm.cmpFields[key] = reactiveOrAnyValue;
|
|
1734
|
+
if (newValue !== vm.cmpFields[key]) {
|
|
1735
|
+
vm.cmpFields[key] = newValue;
|
|
1774
1736
|
componentValueMutated(vm, key);
|
|
1775
1737
|
}
|
|
1776
1738
|
},
|
|
@@ -1907,7 +1869,19 @@
|
|
|
1907
1869
|
};
|
|
1908
1870
|
}
|
|
1909
1871
|
|
|
1910
|
-
|
|
1872
|
+
/*
|
|
1873
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
1874
|
+
* All rights reserved.
|
|
1875
|
+
* SPDX-License-Identifier: MIT
|
|
1876
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1877
|
+
*/
|
|
1878
|
+
function track(target) {
|
|
1879
|
+
if (arguments.length === 1) {
|
|
1880
|
+
return reactiveMembrane.getProxy(target);
|
|
1881
|
+
}
|
|
1882
|
+
throw new Error();
|
|
1883
|
+
}
|
|
1884
|
+
function internalTrackDecorator(key) {
|
|
1911
1885
|
return {
|
|
1912
1886
|
get() {
|
|
1913
1887
|
const vm = getAssociatedVM(this);
|
|
@@ -1916,8 +1890,48 @@
|
|
|
1916
1890
|
},
|
|
1917
1891
|
set(newValue) {
|
|
1918
1892
|
const vm = getAssociatedVM(this);
|
|
1919
|
-
|
|
1920
|
-
|
|
1893
|
+
const reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
|
|
1894
|
+
if (reactiveOrAnyValue !== vm.cmpFields[key]) {
|
|
1895
|
+
vm.cmpFields[key] = reactiveOrAnyValue;
|
|
1896
|
+
componentValueMutated(vm, key);
|
|
1897
|
+
}
|
|
1898
|
+
},
|
|
1899
|
+
enumerable: true,
|
|
1900
|
+
configurable: true,
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
/*
|
|
1905
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
1906
|
+
* All rights reserved.
|
|
1907
|
+
* SPDX-License-Identifier: MIT
|
|
1908
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1909
|
+
*/
|
|
1910
|
+
/**
|
|
1911
|
+
* @wire decorator to wire fields and methods to a wire adapter in
|
|
1912
|
+
* LWC Components. This function implements the internals of this
|
|
1913
|
+
* decorator.
|
|
1914
|
+
*/
|
|
1915
|
+
function wire(_adapter, _config) {
|
|
1916
|
+
throw new Error();
|
|
1917
|
+
}
|
|
1918
|
+
function internalWireFieldDecorator(key) {
|
|
1919
|
+
return {
|
|
1920
|
+
get() {
|
|
1921
|
+
const vm = getAssociatedVM(this);
|
|
1922
|
+
componentValueObserved(vm, key);
|
|
1923
|
+
return vm.cmpFields[key];
|
|
1924
|
+
},
|
|
1925
|
+
set(value) {
|
|
1926
|
+
const vm = getAssociatedVM(this);
|
|
1927
|
+
/**
|
|
1928
|
+
* Reactivity for wired fields is provided in wiring.
|
|
1929
|
+
* We intentionally add reactivity here since this is just
|
|
1930
|
+
* letting the author to do the wrong thing, but it will keep our
|
|
1931
|
+
* system to be backward compatible.
|
|
1932
|
+
*/
|
|
1933
|
+
if (value !== vm.cmpFields[key]) {
|
|
1934
|
+
vm.cmpFields[key] = value;
|
|
1921
1935
|
componentValueMutated(vm, key);
|
|
1922
1936
|
}
|
|
1923
1937
|
},
|
|
@@ -2215,20 +2229,6 @@
|
|
|
2215
2229
|
const BaseBridgeElement = HTMLBridgeElementFactory(HTMLElementConstructor$1, getOwnPropertyNames$1(HTMLElementOriginalDescriptors), []);
|
|
2216
2230
|
freeze(BaseBridgeElement);
|
|
2217
2231
|
seal(BaseBridgeElement.prototype);
|
|
2218
|
-
|
|
2219
|
-
/*
|
|
2220
|
-
* Copyright (c) 2020, salesforce.com, inc.
|
|
2221
|
-
* All rights reserved.
|
|
2222
|
-
* SPDX-License-Identifier: MIT
|
|
2223
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2224
|
-
*/
|
|
2225
|
-
function resolveCircularModuleDependency(fn) {
|
|
2226
|
-
const module = fn();
|
|
2227
|
-
return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
|
|
2228
|
-
}
|
|
2229
|
-
function isCircularModuleDependency(obj) {
|
|
2230
|
-
return isFunction$1(obj) && hasOwnProperty$1.call(obj, '__circular__');
|
|
2231
|
-
}
|
|
2232
2232
|
function setActiveVM(vm) {
|
|
2233
2233
|
{
|
|
2234
2234
|
// this method should never leak to prod
|
|
@@ -2999,13 +2999,6 @@
|
|
|
2999
2999
|
slotName = ((_a = vnode.data.attrs) === null || _a === void 0 ? void 0 : _a.slot) || '';
|
|
3000
3000
|
}
|
|
3001
3001
|
const vnodes = (cmpSlots[slotName] = cmpSlots[slotName] || []);
|
|
3002
|
-
// re-keying the vnodes is necessary to avoid conflicts with default content for the slot
|
|
3003
|
-
// which might have similar keys. Each vnode will always have a key that
|
|
3004
|
-
// starts with a numeric character from compiler. In this case, we add a unique
|
|
3005
|
-
// notation for slotted vnodes keys, e.g.: `@foo:1:1`
|
|
3006
|
-
if (!isUndefined$1(vnode.key)) {
|
|
3007
|
-
vnode.key = `@${slotName}:${vnode.key}`;
|
|
3008
|
-
}
|
|
3009
3002
|
ArrayPush$1.call(vnodes, vnode);
|
|
3010
3003
|
}
|
|
3011
3004
|
if (isFalse(vm.isDirty)) {
|
|
@@ -5138,7 +5131,7 @@
|
|
|
5138
5131
|
hooksAreSet = true;
|
|
5139
5132
|
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
5140
5133
|
}
|
|
5141
|
-
/* version: 2.
|
|
5134
|
+
/* version: 2.13.1 */
|
|
5142
5135
|
|
|
5143
5136
|
/*
|
|
5144
5137
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5745,7 +5738,7 @@
|
|
|
5745
5738
|
});
|
|
5746
5739
|
freeze(LightningElement);
|
|
5747
5740
|
seal(LightningElement.prototype);
|
|
5748
|
-
/* version: 2.
|
|
5741
|
+
/* version: 2.13.1 */
|
|
5749
5742
|
|
|
5750
5743
|
exports.LightningElement = LightningElement;
|
|
5751
5744
|
exports.__unstable__ProfilerControl = profilerControl;
|