lwc 2.5.9 → 2.5.10-alpha1
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/esm/es2017/engine.js +7981 -0
- package/dist/engine/iife/es2017/engine.js +8013 -0
- package/dist/engine/iife/es2017/engine.min.js +9 -0
- package/dist/engine/iife/es2017/engine_debug.js +6541 -0
- package/dist/engine/iife/es5/engine.js +6060 -0
- package/dist/engine/iife/es5/engine.min.js +23 -0
- package/dist/engine/iife/es5/engine_debug.js +4856 -0
- package/dist/engine/umd/es2017/engine.js +8014 -0
- package/dist/engine/umd/es2017/engine.min.js +9 -0
- package/dist/engine/umd/es2017/engine_debug.js +6542 -0
- package/dist/engine/umd/es5/engine.js +6061 -0
- package/dist/engine/umd/es5/engine.min.js +23 -0
- package/dist/engine/umd/es5/engine_debug.js +4857 -0
- package/dist/engine-dom/esm/es2017/engine-dom.js +75 -136
- package/dist/engine-dom/iife/es2017/engine-dom.js +76 -137
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +74 -122
- package/dist/engine-dom/iife/es5/engine-dom.js +75 -142
- package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +73 -127
- package/dist/engine-dom/umd/es2017/engine-dom.js +77 -138
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +75 -123
- package/dist/engine-dom/umd/es5/engine-dom.js +76 -143
- package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +74 -128
- package/dist/engine-server/commonjs/es2017/engine-server.js +75 -136
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
- package/dist/engine-server/esm/es2017/engine-server.js +75 -136
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +4 -4
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +4 -4
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +4 -4
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +4 -4
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +5 -5
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +5 -5
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +5 -5
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +5 -5
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +3 -3
- package/dist/wire-service/iife/es2017/wire-service_debug.js +3 -3
- package/dist/wire-service/iife/es5/wire-service.js +3 -3
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +3 -3
- package/dist/wire-service/umd/es2017/wire-service.js +4 -4
- package/dist/wire-service/umd/es2017/wire-service_debug.js +4 -4
- package/dist/wire-service/umd/es5/wire-service.js +4 -4
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +4 -4
- package/package.json +8 -8
|
@@ -72,7 +72,7 @@ var LWC = (function (exports) {
|
|
|
72
72
|
find: ArrayFind,
|
|
73
73
|
indexOf: ArrayIndexOf,
|
|
74
74
|
join: ArrayJoin,
|
|
75
|
-
map: ArrayMap,
|
|
75
|
+
map: ArrayMap$1,
|
|
76
76
|
push: ArrayPush$1,
|
|
77
77
|
reduce: ArrayReduce,
|
|
78
78
|
reverse: ArrayReverse,
|
|
@@ -135,7 +135,7 @@ var LWC = (function (exports) {
|
|
|
135
135
|
// Array.prototype.toString directly will cause an error Iterate through
|
|
136
136
|
// all the items and handle individually.
|
|
137
137
|
if (isArray$1(obj)) {
|
|
138
|
-
return ArrayJoin.call(ArrayMap.call(obj, toString$1), ',');
|
|
138
|
+
return ArrayJoin.call(ArrayMap$1.call(obj, toString$1), ',');
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
return obj.toString();
|
|
@@ -298,7 +298,7 @@ var LWC = (function (exports) {
|
|
|
298
298
|
CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
|
|
299
299
|
return attributeName;
|
|
300
300
|
}
|
|
301
|
-
/** version: 2.5.
|
|
301
|
+
/** version: 2.5.10-alpha1 */
|
|
302
302
|
|
|
303
303
|
/*
|
|
304
304
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -470,7 +470,7 @@ var LWC = (function (exports) {
|
|
|
470
470
|
|
|
471
471
|
function setFeatureFlagForTest(name, value) {
|
|
472
472
|
}
|
|
473
|
-
/** version: 2.5.
|
|
473
|
+
/** version: 2.5.10-alpha1 */
|
|
474
474
|
|
|
475
475
|
/* proxy-compat-disable */
|
|
476
476
|
|
|
@@ -1496,6 +1496,7 @@ var LWC = (function (exports) {
|
|
|
1496
1496
|
getPrototypeOf,
|
|
1497
1497
|
create: ObjectCreate,
|
|
1498
1498
|
defineProperty: ObjectDefineProperty,
|
|
1499
|
+
defineProperties: ObjectDefineProperties,
|
|
1499
1500
|
isExtensible,
|
|
1500
1501
|
getOwnPropertyDescriptor,
|
|
1501
1502
|
getOwnPropertyNames,
|
|
@@ -1505,7 +1506,8 @@ var LWC = (function (exports) {
|
|
|
1505
1506
|
} = Object;
|
|
1506
1507
|
const {
|
|
1507
1508
|
push: ArrayPush,
|
|
1508
|
-
concat: ArrayConcat
|
|
1509
|
+
concat: ArrayConcat,
|
|
1510
|
+
map: ArrayMap
|
|
1509
1511
|
} = Array.prototype;
|
|
1510
1512
|
|
|
1511
1513
|
function isUndefined(obj) {
|
|
@@ -1559,9 +1561,7 @@ var LWC = (function (exports) {
|
|
|
1559
1561
|
// but it will always be compatible with the previous descriptor
|
|
1560
1562
|
// to preserve the object invariants, which makes these lines safe.
|
|
1561
1563
|
|
|
1562
|
-
const originalDescriptor = getOwnPropertyDescriptor(originalTarget, key);
|
|
1563
|
-
|
|
1564
|
-
/* istanbul ignore else */
|
|
1564
|
+
const originalDescriptor = getOwnPropertyDescriptor(originalTarget, key);
|
|
1565
1565
|
|
|
1566
1566
|
if (!isUndefined(originalDescriptor)) {
|
|
1567
1567
|
const wrappedDesc = this.wrapDescriptor(originalDescriptor);
|
|
@@ -1589,17 +1589,11 @@ var LWC = (function (exports) {
|
|
|
1589
1589
|
|
|
1590
1590
|
preventExtensions(shadowTarget);
|
|
1591
1591
|
} // Shared Traps
|
|
1592
|
-
// TODO: apply() is never called
|
|
1593
|
-
|
|
1594
|
-
/* istanbul ignore next */
|
|
1595
1592
|
|
|
1596
1593
|
|
|
1597
1594
|
apply(shadowTarget, thisArg, argArray) {
|
|
1598
1595
|
/* No op */
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
/* istanbul ignore next */
|
|
1602
|
-
|
|
1596
|
+
}
|
|
1603
1597
|
|
|
1604
1598
|
construct(shadowTarget, argArray, newTarget) {
|
|
1605
1599
|
/* No op */
|
|
@@ -1712,8 +1706,8 @@ var LWC = (function (exports) {
|
|
|
1712
1706
|
|
|
1713
1707
|
}
|
|
1714
1708
|
|
|
1715
|
-
const getterMap
|
|
1716
|
-
const setterMap
|
|
1709
|
+
const getterMap = new WeakMap();
|
|
1710
|
+
const setterMap = new WeakMap();
|
|
1717
1711
|
const reverseGetterMap = new WeakMap();
|
|
1718
1712
|
const reverseSetterMap = new WeakMap();
|
|
1719
1713
|
|
|
@@ -1723,7 +1717,7 @@ var LWC = (function (exports) {
|
|
|
1723
1717
|
}
|
|
1724
1718
|
|
|
1725
1719
|
wrapGetter(originalGet) {
|
|
1726
|
-
const wrappedGetter = getterMap
|
|
1720
|
+
const wrappedGetter = getterMap.get(originalGet);
|
|
1727
1721
|
|
|
1728
1722
|
if (!isUndefined(wrappedGetter)) {
|
|
1729
1723
|
return wrappedGetter;
|
|
@@ -1736,13 +1730,13 @@ var LWC = (function (exports) {
|
|
|
1736
1730
|
return handler.wrapValue(originalGet.call(unwrap$1(this)));
|
|
1737
1731
|
};
|
|
1738
1732
|
|
|
1739
|
-
getterMap
|
|
1733
|
+
getterMap.set(originalGet, get);
|
|
1740
1734
|
reverseGetterMap.set(get, originalGet);
|
|
1741
1735
|
return get;
|
|
1742
1736
|
}
|
|
1743
1737
|
|
|
1744
1738
|
wrapSetter(originalSet) {
|
|
1745
|
-
const wrappedSetter = setterMap
|
|
1739
|
+
const wrappedSetter = setterMap.get(originalSet);
|
|
1746
1740
|
|
|
1747
1741
|
if (!isUndefined(wrappedSetter)) {
|
|
1748
1742
|
return wrappedSetter;
|
|
@@ -1753,7 +1747,7 @@ var LWC = (function (exports) {
|
|
|
1753
1747
|
originalSet.call(unwrap$1(this), unwrap$1(v));
|
|
1754
1748
|
};
|
|
1755
1749
|
|
|
1756
|
-
setterMap
|
|
1750
|
+
setterMap.set(originalSet, set);
|
|
1757
1751
|
reverseSetterMap.set(set, originalSet);
|
|
1758
1752
|
return set;
|
|
1759
1753
|
}
|
|
@@ -1794,7 +1788,7 @@ var LWC = (function (exports) {
|
|
|
1794
1788
|
return unwrap$1(redGet.call(handler.wrapValue(this)));
|
|
1795
1789
|
};
|
|
1796
1790
|
|
|
1797
|
-
getterMap
|
|
1791
|
+
getterMap.set(get, redGet);
|
|
1798
1792
|
reverseGetterMap.set(redGet, get);
|
|
1799
1793
|
return get;
|
|
1800
1794
|
}
|
|
@@ -1813,7 +1807,7 @@ var LWC = (function (exports) {
|
|
|
1813
1807
|
redSet.call(handler.wrapValue(this), handler.wrapValue(v));
|
|
1814
1808
|
};
|
|
1815
1809
|
|
|
1816
|
-
setterMap
|
|
1810
|
+
setterMap.set(set, redSet);
|
|
1817
1811
|
reverseSetterMap.set(redSet, set);
|
|
1818
1812
|
return set;
|
|
1819
1813
|
}
|
|
@@ -1864,11 +1858,6 @@ var LWC = (function (exports) {
|
|
|
1864
1858
|
preventExtensions(originalTarget); // if the originalTarget is a proxy itself, it might reject
|
|
1865
1859
|
// the preventExtension call, in which case we should not attempt to lock down
|
|
1866
1860
|
// the shadow target.
|
|
1867
|
-
// TODO: It should not actually be possible to reach this `if` statement.
|
|
1868
|
-
// If a proxy rejects extensions, then calling preventExtensions will throw an error:
|
|
1869
|
-
// https://codepen.io/nolanlawson-the-selector/pen/QWMOjbY
|
|
1870
|
-
|
|
1871
|
-
/* istanbul ignore if */
|
|
1872
1861
|
|
|
1873
1862
|
if (isExtensible(originalTarget)) {
|
|
1874
1863
|
return false;
|
|
@@ -1910,8 +1899,8 @@ var LWC = (function (exports) {
|
|
|
1910
1899
|
|
|
1911
1900
|
}
|
|
1912
1901
|
|
|
1913
|
-
const getterMap = new WeakMap();
|
|
1914
|
-
const setterMap = new WeakMap();
|
|
1902
|
+
const getterMap$1 = new WeakMap();
|
|
1903
|
+
const setterMap$1 = new WeakMap();
|
|
1915
1904
|
|
|
1916
1905
|
class ReadOnlyHandler extends BaseProxyHandler {
|
|
1917
1906
|
wrapValue(value) {
|
|
@@ -1919,7 +1908,7 @@ var LWC = (function (exports) {
|
|
|
1919
1908
|
}
|
|
1920
1909
|
|
|
1921
1910
|
wrapGetter(originalGet) {
|
|
1922
|
-
const wrappedGetter = getterMap.get(originalGet);
|
|
1911
|
+
const wrappedGetter = getterMap$1.get(originalGet);
|
|
1923
1912
|
|
|
1924
1913
|
if (!isUndefined(wrappedGetter)) {
|
|
1925
1914
|
return wrappedGetter;
|
|
@@ -1932,12 +1921,12 @@ var LWC = (function (exports) {
|
|
|
1932
1921
|
return handler.wrapValue(originalGet.call(unwrap$1(this)));
|
|
1933
1922
|
};
|
|
1934
1923
|
|
|
1935
|
-
getterMap.set(originalGet, get);
|
|
1924
|
+
getterMap$1.set(originalGet, get);
|
|
1936
1925
|
return get;
|
|
1937
1926
|
}
|
|
1938
1927
|
|
|
1939
1928
|
wrapSetter(originalSet) {
|
|
1940
|
-
const wrappedSetter = setterMap.get(originalSet);
|
|
1929
|
+
const wrappedSetter = setterMap$1.get(originalSet);
|
|
1941
1930
|
|
|
1942
1931
|
if (!isUndefined(wrappedSetter)) {
|
|
1943
1932
|
return wrappedSetter;
|
|
@@ -1946,20 +1935,16 @@ var LWC = (function (exports) {
|
|
|
1946
1935
|
const set = function (v) {
|
|
1947
1936
|
};
|
|
1948
1937
|
|
|
1949
|
-
setterMap.set(originalSet, set);
|
|
1938
|
+
setterMap$1.set(originalSet, set);
|
|
1950
1939
|
return set;
|
|
1951
1940
|
}
|
|
1952
1941
|
|
|
1953
1942
|
set(shadowTarget, key, value) {
|
|
1954
|
-
/* istanbul ignore next */
|
|
1955
|
-
|
|
1956
1943
|
|
|
1957
1944
|
return false;
|
|
1958
1945
|
}
|
|
1959
1946
|
|
|
1960
1947
|
deleteProperty(shadowTarget, key) {
|
|
1961
|
-
/* istanbul ignore next */
|
|
1962
|
-
|
|
1963
1948
|
|
|
1964
1949
|
return false;
|
|
1965
1950
|
}
|
|
@@ -1968,15 +1953,11 @@ var LWC = (function (exports) {
|
|
|
1968
1953
|
}
|
|
1969
1954
|
|
|
1970
1955
|
preventExtensions(shadowTarget) {
|
|
1971
|
-
/* istanbul ignore next */
|
|
1972
|
-
|
|
1973
1956
|
|
|
1974
1957
|
return false;
|
|
1975
1958
|
}
|
|
1976
1959
|
|
|
1977
1960
|
defineProperty(shadowTarget, key, descriptor) {
|
|
1978
|
-
/* istanbul ignore next */
|
|
1979
|
-
|
|
1980
1961
|
|
|
1981
1962
|
return false;
|
|
1982
1963
|
}
|
|
@@ -2024,8 +2005,7 @@ var LWC = (function (exports) {
|
|
|
2024
2005
|
this.valueMutated = defaultValueMutated;
|
|
2025
2006
|
this.valueObserved = defaultValueObserved;
|
|
2026
2007
|
this.valueIsObservable = defaultValueIsObservable;
|
|
2027
|
-
this.
|
|
2028
|
-
this.reactiveObjectGraph = new WeakMap();
|
|
2008
|
+
this.objectGraph = new WeakMap();
|
|
2029
2009
|
|
|
2030
2010
|
if (!isUndefined(options)) {
|
|
2031
2011
|
const {
|
|
@@ -2048,13 +2028,10 @@ var LWC = (function (exports) {
|
|
|
2048
2028
|
const distorted = this.valueDistortion(unwrappedValue);
|
|
2049
2029
|
|
|
2050
2030
|
if (this.valueIsObservable(distorted)) {
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
// we return the readonly.
|
|
2054
|
-
return value;
|
|
2055
|
-
}
|
|
2031
|
+
const o = this.getReactiveState(unwrappedValue, distorted); // when trying to extract the writable version of a readonly
|
|
2032
|
+
// we return the readonly.
|
|
2056
2033
|
|
|
2057
|
-
return
|
|
2034
|
+
return o.readOnly === value ? value : o.reactive;
|
|
2058
2035
|
}
|
|
2059
2036
|
|
|
2060
2037
|
return distorted;
|
|
@@ -2065,7 +2042,7 @@ var LWC = (function (exports) {
|
|
|
2065
2042
|
const distorted = this.valueDistortion(value);
|
|
2066
2043
|
|
|
2067
2044
|
if (this.valueIsObservable(distorted)) {
|
|
2068
|
-
return this.
|
|
2045
|
+
return this.getReactiveState(value, distorted).readOnly;
|
|
2069
2046
|
}
|
|
2070
2047
|
|
|
2071
2048
|
return distorted;
|
|
@@ -2075,36 +2052,47 @@ var LWC = (function (exports) {
|
|
|
2075
2052
|
return unwrap$1(p);
|
|
2076
2053
|
}
|
|
2077
2054
|
|
|
2078
|
-
|
|
2079
|
-
|
|
2055
|
+
getReactiveState(value, distortedValue) {
|
|
2056
|
+
const {
|
|
2057
|
+
objectGraph
|
|
2058
|
+
} = this;
|
|
2059
|
+
let reactiveState = objectGraph.get(distortedValue);
|
|
2080
2060
|
|
|
2081
|
-
if (
|
|
2082
|
-
|
|
2083
|
-
const handler = new ReactiveProxyHandler(this, distortedValue);
|
|
2084
|
-
proxy = new Proxy(createShadowTarget(distortedValue), handler);
|
|
2085
|
-
registerProxy(proxy, value);
|
|
2086
|
-
this.reactiveObjectGraph.set(distortedValue, proxy);
|
|
2061
|
+
if (reactiveState) {
|
|
2062
|
+
return reactiveState;
|
|
2087
2063
|
}
|
|
2088
2064
|
|
|
2089
|
-
|
|
2090
|
-
|
|
2065
|
+
const membrane = this;
|
|
2066
|
+
reactiveState = {
|
|
2067
|
+
get reactive() {
|
|
2068
|
+
const reactiveHandler = new ReactiveProxyHandler(membrane, distortedValue); // caching the reactive proxy after the first time it is accessed
|
|
2069
|
+
|
|
2070
|
+
const proxy = new Proxy(createShadowTarget(distortedValue), reactiveHandler);
|
|
2071
|
+
registerProxy(proxy, value);
|
|
2072
|
+
ObjectDefineProperty(this, 'reactive', {
|
|
2073
|
+
value: proxy
|
|
2074
|
+
});
|
|
2075
|
+
return proxy;
|
|
2076
|
+
},
|
|
2091
2077
|
|
|
2092
|
-
|
|
2093
|
-
|
|
2078
|
+
get readOnly() {
|
|
2079
|
+
const readOnlyHandler = new ReadOnlyHandler(membrane, distortedValue); // caching the readOnly proxy after the first time it is accessed
|
|
2094
2080
|
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2081
|
+
const proxy = new Proxy(createShadowTarget(distortedValue), readOnlyHandler);
|
|
2082
|
+
registerProxy(proxy, value);
|
|
2083
|
+
ObjectDefineProperty(this, 'readOnly', {
|
|
2084
|
+
value: proxy
|
|
2085
|
+
});
|
|
2086
|
+
return proxy;
|
|
2087
|
+
}
|
|
2102
2088
|
|
|
2103
|
-
|
|
2089
|
+
};
|
|
2090
|
+
objectGraph.set(distortedValue, reactiveState);
|
|
2091
|
+
return reactiveState;
|
|
2104
2092
|
}
|
|
2105
2093
|
|
|
2106
2094
|
}
|
|
2107
|
-
/** version: 1.
|
|
2095
|
+
/** version: 1.0.0 */
|
|
2108
2096
|
|
|
2109
2097
|
/*
|
|
2110
2098
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -4458,7 +4446,6 @@ var LWC = (function (exports) {
|
|
|
4458
4446
|
|
|
4459
4447
|
function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
|
|
4460
4448
|
const content = [];
|
|
4461
|
-
let root;
|
|
4462
4449
|
|
|
4463
4450
|
for (let i = 0; i < stylesheets.length; i++) {
|
|
4464
4451
|
let stylesheet = stylesheets[i];
|
|
@@ -4466,45 +4453,22 @@ var LWC = (function (exports) {
|
|
|
4466
4453
|
if (isArray$1(stylesheet)) {
|
|
4467
4454
|
ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, stylesheetToken, vm));
|
|
4468
4455
|
} else {
|
|
4469
|
-
|
|
4470
|
-
const isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
|
|
4471
|
-
|
|
4472
|
-
const scopeToken = isScopedCss || vm.shadowMode === 1
|
|
4473
|
-
/* Synthetic */
|
|
4474
|
-
&& vm.renderMode === 1
|
|
4475
|
-
/* Shadow */
|
|
4476
|
-
? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
|
|
4477
4456
|
// native shadow DOM. Synthetic shadow DOM never uses `:host`.
|
|
4478
4457
|
|
|
4458
|
+
|
|
4459
|
+
const isScopedCss = stylesheet[KEY__SCOPED_CSS];
|
|
4479
4460
|
const useActualHostSelector = vm.renderMode === 0
|
|
4480
4461
|
/* Light */
|
|
4481
4462
|
? !isScopedCss : vm.shadowMode === 0
|
|
4482
4463
|
/* Native */
|
|
4483
|
-
; //
|
|
4484
|
-
// we use an attribute selector on the host to simulate :dir().
|
|
4464
|
+
; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
|
|
4485
4465
|
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4466
|
+
const scopeToken = isScopedCss || vm.shadowMode === 1
|
|
4467
|
+
/* Synthetic */
|
|
4468
|
+
&& vm.renderMode === 1
|
|
4489
4469
|
/* Shadow */
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
/* Native */
|
|
4493
|
-
;
|
|
4494
|
-
} else {
|
|
4495
|
-
// Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
|
|
4496
|
-
// At the top level (root is null) or inside of a native shadow root, they should use `:dir()`.
|
|
4497
|
-
if (isUndefined$1(root)) {
|
|
4498
|
-
// Only calculate the root once as necessary
|
|
4499
|
-
root = getNearestShadowComponent(vm);
|
|
4500
|
-
}
|
|
4501
|
-
|
|
4502
|
-
useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
|
|
4503
|
-
/* Native */
|
|
4504
|
-
;
|
|
4505
|
-
}
|
|
4506
|
-
|
|
4507
|
-
ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
|
|
4470
|
+
? stylesheetToken : undefined;
|
|
4471
|
+
ArrayPush$1.call(content, stylesheet(useActualHostSelector, scopeToken));
|
|
4508
4472
|
}
|
|
4509
4473
|
}
|
|
4510
4474
|
|
|
@@ -4528,12 +4492,14 @@ var LWC = (function (exports) {
|
|
|
4528
4492
|
// https://github.com/salesforce/lwc/pull/2460#discussion_r691208892
|
|
4529
4493
|
|
|
4530
4494
|
|
|
4531
|
-
function
|
|
4495
|
+
function getNearestNativeShadowComponent(vm) {
|
|
4532
4496
|
let owner = vm;
|
|
4533
4497
|
|
|
4534
4498
|
while (!isNull(owner)) {
|
|
4535
4499
|
if (owner.renderMode === 1
|
|
4536
4500
|
/* Shadow */
|
|
4501
|
+
&& owner.shadowMode === 0
|
|
4502
|
+
/* Native */
|
|
4537
4503
|
) {
|
|
4538
4504
|
return owner;
|
|
4539
4505
|
}
|
|
@@ -4544,20 +4510,6 @@ var LWC = (function (exports) {
|
|
|
4544
4510
|
return owner;
|
|
4545
4511
|
}
|
|
4546
4512
|
|
|
4547
|
-
function getNearestNativeShadowComponent(vm) {
|
|
4548
|
-
const owner = getNearestShadowComponent(vm);
|
|
4549
|
-
|
|
4550
|
-
if (!isNull(owner) && owner.shadowMode === 1
|
|
4551
|
-
/* Synthetic */
|
|
4552
|
-
) {
|
|
4553
|
-
// Synthetic-within-native is impossible. So if the nearest shadow component is
|
|
4554
|
-
// synthetic, we know we won't find a native component if we go any further.
|
|
4555
|
-
return null;
|
|
4556
|
-
}
|
|
4557
|
-
|
|
4558
|
-
return owner;
|
|
4559
|
-
}
|
|
4560
|
-
|
|
4561
4513
|
function createStylesheet(vm, stylesheets) {
|
|
4562
4514
|
const {
|
|
4563
4515
|
renderer,
|
|
@@ -6096,7 +6048,7 @@ var LWC = (function (exports) {
|
|
|
6096
6048
|
hooksAreSet = true;
|
|
6097
6049
|
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
6098
6050
|
}
|
|
6099
|
-
/* version: 2.5.
|
|
6051
|
+
/* version: 2.5.10-alpha1 */
|
|
6100
6052
|
|
|
6101
6053
|
/*
|
|
6102
6054
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -6730,7 +6682,7 @@ var LWC = (function (exports) {
|
|
|
6730
6682
|
});
|
|
6731
6683
|
freeze(LightningElement);
|
|
6732
6684
|
seal(LightningElement.prototype);
|
|
6733
|
-
/* version: 2.5.
|
|
6685
|
+
/* version: 2.5.10-alpha1 */
|
|
6734
6686
|
|
|
6735
6687
|
exports.LightningElement = LightningElement;
|
|
6736
6688
|
exports.__unstable__ProfilerControl = profilerControl;
|
|
@@ -6763,4 +6715,4 @@ var LWC = (function (exports) {
|
|
|
6763
6715
|
|
|
6764
6716
|
return exports;
|
|
6765
6717
|
|
|
6766
|
-
}
|
|
6718
|
+
}({}));
|