lwc 2.5.2 → 2.5.6
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 +181 -101
- package/dist/engine-dom/iife/es2017/engine-dom.js +183 -101
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +163 -82
- package/dist/engine-dom/iife/es5/engine-dom.js +211 -108
- package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +189 -87
- package/dist/engine-dom/umd/es2017/engine-dom.js +184 -102
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +164 -83
- package/dist/engine-dom/umd/es5/engine-dom.js +212 -109
- package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +190 -88
- package/dist/engine-server/commonjs/es2017/engine-server.js +174 -99
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
- package/dist/engine-server/esm/es2017/engine-server.js +173 -100
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +46 -40
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +47 -41
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +46 -40
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +47 -41
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +46 -40
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +48 -42
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +47 -41
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +48 -42
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +47 -41
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
3
3
|
factory();
|
|
4
|
-
}((function () { 'use strict';
|
|
4
|
+
})((function () { 'use strict';
|
|
5
5
|
|
|
6
6
|
var _create, _create2;
|
|
7
7
|
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
var KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
120
120
|
var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
121
121
|
var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
122
|
-
/** version: 2.5.
|
|
122
|
+
/** version: 2.5.6 */
|
|
123
123
|
|
|
124
124
|
/*
|
|
125
125
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
var runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
453
|
-
/** version: 2.5.
|
|
453
|
+
/** version: 2.5.6 */
|
|
454
454
|
|
|
455
455
|
/*
|
|
456
456
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -548,9 +548,9 @@
|
|
|
548
548
|
};
|
|
549
549
|
|
|
550
550
|
function getRootNodeHost(node, options) {
|
|
551
|
-
var rootNode = node.getRootNode(options);
|
|
551
|
+
var rootNode = node.getRootNode(options);
|
|
552
552
|
|
|
553
|
-
if (
|
|
553
|
+
if (isSyntheticShadowRoot(rootNode)) {
|
|
554
554
|
rootNode = getHost(rootNode);
|
|
555
555
|
}
|
|
556
556
|
|
|
@@ -1113,13 +1113,13 @@
|
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
1115
|
function getFilteredChildNodes(node) {
|
|
1116
|
-
if (!
|
|
1116
|
+
if (!isSyntheticShadowHost(node) && !isSlotElement(node)) {
|
|
1117
1117
|
// regular element - fast path
|
|
1118
1118
|
var children = childNodesGetter.call(node);
|
|
1119
1119
|
return arrayFromCollection(children);
|
|
1120
1120
|
}
|
|
1121
1121
|
|
|
1122
|
-
if (
|
|
1122
|
+
if (isSyntheticShadowHost(node)) {
|
|
1123
1123
|
// we need to get only the nodes that were slotted
|
|
1124
1124
|
var slots = arrayFromCollection(querySelectorAll$1.call(node, 'slot'));
|
|
1125
1125
|
var resolver = getShadowRootResolver(getShadowRoot(node)); // Typescript is inferring the wrong function type for this particular
|
|
@@ -1531,7 +1531,7 @@
|
|
|
1531
1531
|
|
|
1532
1532
|
|
|
1533
1533
|
function hasMountedChildren(node) {
|
|
1534
|
-
return isSyntheticSlotElement(node) ||
|
|
1534
|
+
return isSyntheticSlotElement(node) || isSyntheticShadowHost(node);
|
|
1535
1535
|
}
|
|
1536
1536
|
|
|
1537
1537
|
function getShadowParent(node, value) {
|
|
@@ -1652,7 +1652,7 @@
|
|
|
1652
1652
|
|
|
1653
1653
|
|
|
1654
1654
|
function childNodesGetterPatched() {
|
|
1655
|
-
if (
|
|
1655
|
+
if (isSyntheticShadowHost(this)) {
|
|
1656
1656
|
var owner = getNodeOwner(this);
|
|
1657
1657
|
var childNodes = isNull(owner) ? [] : getAllMatches(owner, getFilteredChildNodes(this));
|
|
1658
1658
|
|
|
@@ -1755,7 +1755,7 @@
|
|
|
1755
1755
|
textContent: {
|
|
1756
1756
|
get: function get() {
|
|
1757
1757
|
if (!runtimeFlags.ENABLE_NODE_PATCH) {
|
|
1758
|
-
if (isNodeShadowed(this) ||
|
|
1758
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1759
1759
|
return textContentGetterPatched.call(this);
|
|
1760
1760
|
}
|
|
1761
1761
|
|
|
@@ -1860,7 +1860,7 @@
|
|
|
1860
1860
|
return false;
|
|
1861
1861
|
}
|
|
1862
1862
|
|
|
1863
|
-
if (isNodeShadowed(this) ||
|
|
1863
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1864
1864
|
return containsPatched.call(this, otherNode);
|
|
1865
1865
|
}
|
|
1866
1866
|
|
|
@@ -1881,7 +1881,7 @@
|
|
|
1881
1881
|
cloneNode: {
|
|
1882
1882
|
value: function value(deep) {
|
|
1883
1883
|
if (!runtimeFlags.ENABLE_NODE_PATCH) {
|
|
1884
|
-
if (isNodeShadowed(this) ||
|
|
1884
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1885
1885
|
return cloneNodePatched.call(this, deep);
|
|
1886
1886
|
}
|
|
1887
1887
|
|
|
@@ -1984,7 +1984,7 @@
|
|
|
1984
1984
|
createDocumentFragment = _document.createDocumentFragment;
|
|
1985
1985
|
|
|
1986
1986
|
function hasInternalSlot(root) {
|
|
1987
|
-
return
|
|
1987
|
+
return InternalSlot.has(root);
|
|
1988
1988
|
}
|
|
1989
1989
|
|
|
1990
1990
|
function getInternalSlot(root) {
|
|
@@ -2036,14 +2036,20 @@
|
|
|
2036
2036
|
// and we can avoid having to cast the type before calling this method in a few places.
|
|
2037
2037
|
|
|
2038
2038
|
|
|
2039
|
-
function
|
|
2040
|
-
|
|
2039
|
+
function isSyntheticShadowHost(node) {
|
|
2040
|
+
var shadowRootRecord = InternalSlot.get(node);
|
|
2041
|
+
return !isUndefined(shadowRootRecord) && node === shadowRootRecord.host;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
function isSyntheticShadowRoot(node) {
|
|
2045
|
+
var shadowRootRecord = InternalSlot.get(node);
|
|
2046
|
+
return !isUndefined(shadowRootRecord) && node === shadowRootRecord.shadowRoot;
|
|
2041
2047
|
}
|
|
2042
2048
|
|
|
2043
2049
|
var uid = 0;
|
|
2044
2050
|
|
|
2045
2051
|
function attachShadow(elm, options) {
|
|
2046
|
-
if (
|
|
2052
|
+
if (InternalSlot.has(elm)) {
|
|
2047
2053
|
throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");
|
|
2048
2054
|
}
|
|
2049
2055
|
|
|
@@ -2547,7 +2553,7 @@
|
|
|
2547
2553
|
} else {
|
|
2548
2554
|
current = current.parentNode;
|
|
2549
2555
|
}
|
|
2550
|
-
} else if ((current
|
|
2556
|
+
} else if ((isSyntheticShadowRoot(current) || isInstanceOfNativeShadowRoot(current)) && (composed || current !== startRoot)) {
|
|
2551
2557
|
current = current.host;
|
|
2552
2558
|
} else if (current instanceof _Node) {
|
|
2553
2559
|
current = current.parentNode;
|
|
@@ -2609,7 +2615,7 @@
|
|
|
2609
2615
|
lastRoot = root;
|
|
2610
2616
|
}
|
|
2611
2617
|
|
|
2612
|
-
if (!(root
|
|
2618
|
+
if (!isSyntheticShadowRoot(root) || !isUndefined(rootIdx) && rootIdx > -1) {
|
|
2613
2619
|
return ancestor;
|
|
2614
2620
|
}
|
|
2615
2621
|
}
|
|
@@ -3402,10 +3408,10 @@
|
|
|
3402
3408
|
if (ArrayIndexOf.call(targetObservers, this) === -1) {
|
|
3403
3409
|
ArrayPush.call(targetObservers, this);
|
|
3404
3410
|
} // else There is more bookkeeping to do here https://dom.spec.whatwg.org/#dom-mutationobserver-observe Step #7
|
|
3405
|
-
//
|
|
3411
|
+
// SyntheticShadowRoot instances are not actually a part of the DOM so observe the host instead.
|
|
3406
3412
|
|
|
3407
3413
|
|
|
3408
|
-
if (target
|
|
3414
|
+
if (isSyntheticShadowRoot(target)) {
|
|
3409
3415
|
target = target.host;
|
|
3410
3416
|
} // maintain a list of all nodes observed by this observer
|
|
3411
3417
|
|
|
@@ -3448,7 +3454,7 @@
|
|
|
3448
3454
|
*/
|
|
3449
3455
|
|
|
3450
3456
|
function patchedAddEventListener$1(type, listener, optionsOrCapture) {
|
|
3451
|
-
if (
|
|
3457
|
+
if (isSyntheticShadowHost(this)) {
|
|
3452
3458
|
// Typescript does not like it when you treat the `arguments` object as an array
|
|
3453
3459
|
// @ts-ignore type-mismatch
|
|
3454
3460
|
return addCustomElementEventListener.apply(this, arguments);
|
|
@@ -3476,7 +3482,7 @@
|
|
|
3476
3482
|
}
|
|
3477
3483
|
|
|
3478
3484
|
function patchedRemoveEventListener$1(_type, _listener, _optionsOrCapture) {
|
|
3479
|
-
if (
|
|
3485
|
+
if (isSyntheticShadowHost(this)) {
|
|
3480
3486
|
// Typescript does not like it when you treat the `arguments` object as an array
|
|
3481
3487
|
// @ts-ignore type-mismatch
|
|
3482
3488
|
return removeCustomElementEventListener.apply(this, arguments);
|
|
@@ -3642,7 +3648,7 @@
|
|
|
3642
3648
|
var actualCurrentTarget = originalCurrentTarget;
|
|
3643
3649
|
var actualPath = composedPath; // Address the possibility that `currentTarget` is a shadow root
|
|
3644
3650
|
|
|
3645
|
-
if (
|
|
3651
|
+
if (isSyntheticShadowHost(originalCurrentTarget)) {
|
|
3646
3652
|
var context = eventToContextMap.get(this);
|
|
3647
3653
|
|
|
3648
3654
|
if (context === 1
|
|
@@ -3653,7 +3659,7 @@
|
|
|
3653
3659
|
} // Address the possibility that `target` is a shadow root
|
|
3654
3660
|
|
|
3655
3661
|
|
|
3656
|
-
if (
|
|
3662
|
+
if (isSyntheticShadowHost(originalTarget) && eventToShadowRootMap.has(this)) {
|
|
3657
3663
|
actualPath = pathComposer(getShadowRoot(originalTarget), this.composed);
|
|
3658
3664
|
}
|
|
3659
3665
|
|
|
@@ -3690,7 +3696,7 @@
|
|
|
3690
3696
|
|
|
3691
3697
|
var actualTarget = originalTarget;
|
|
3692
3698
|
|
|
3693
|
-
if (
|
|
3699
|
+
if (isSyntheticShadowHost(originalTarget) && eventToShadowRootMap.has(this)) {
|
|
3694
3700
|
actualTarget = getShadowRoot(originalTarget);
|
|
3695
3701
|
}
|
|
3696
3702
|
|
|
@@ -3951,7 +3957,7 @@
|
|
|
3951
3957
|
var ownerKey = getNodeOwnerKey(context); // a node inside a shadow.
|
|
3952
3958
|
|
|
3953
3959
|
if (!isUndefined(ownerKey)) {
|
|
3954
|
-
if (
|
|
3960
|
+
if (isSyntheticShadowHost(context)) {
|
|
3955
3961
|
// element with shadowRoot attached
|
|
3956
3962
|
var owner = getNodeOwner(context);
|
|
3957
3963
|
|
|
@@ -4016,7 +4022,7 @@
|
|
|
4016
4022
|
}
|
|
4017
4023
|
|
|
4018
4024
|
function shadowRootGetterPatched() {
|
|
4019
|
-
if (
|
|
4025
|
+
if (isSyntheticShadowHost(this)) {
|
|
4020
4026
|
var shadow = getShadowRoot(this);
|
|
4021
4027
|
|
|
4022
4028
|
if (shadow.mode === 'open') {
|
|
@@ -4054,7 +4060,7 @@
|
|
|
4054
4060
|
innerHTML: {
|
|
4055
4061
|
get: function get() {
|
|
4056
4062
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4057
|
-
if (isNodeShadowed(this) ||
|
|
4063
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4058
4064
|
return innerHTMLGetterPatched.call(this);
|
|
4059
4065
|
}
|
|
4060
4066
|
|
|
@@ -4077,7 +4083,7 @@
|
|
|
4077
4083
|
outerHTML: {
|
|
4078
4084
|
get: function get() {
|
|
4079
4085
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4080
|
-
if (isNodeShadowed(this) ||
|
|
4086
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4081
4087
|
return outerHTMLGetterPatched.call(this);
|
|
4082
4088
|
}
|
|
4083
4089
|
|
|
@@ -4178,7 +4184,7 @@
|
|
|
4178
4184
|
|
|
4179
4185
|
var nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4180
4186
|
|
|
4181
|
-
if (
|
|
4187
|
+
if (isSyntheticShadowHost(this)) {
|
|
4182
4188
|
// element with shadowRoot attached
|
|
4183
4189
|
var owner = getNodeOwner(this);
|
|
4184
4190
|
|
|
@@ -4238,7 +4244,7 @@
|
|
|
4238
4244
|
function getFilteredArrayOfNodes(context, unfilteredNodes, shadowDomSemantic) {
|
|
4239
4245
|
var filtered;
|
|
4240
4246
|
|
|
4241
|
-
if (
|
|
4247
|
+
if (isSyntheticShadowHost(context)) {
|
|
4242
4248
|
// element with shadowRoot attached
|
|
4243
4249
|
var owner = getNodeOwner(context);
|
|
4244
4250
|
|
|
@@ -4437,7 +4443,7 @@
|
|
|
4437
4443
|
|
|
4438
4444
|
|
|
4439
4445
|
function isTabbable(element) {
|
|
4440
|
-
if (
|
|
4446
|
+
if (isSyntheticShadowHost(element) && isDelegatingFocus(element)) {
|
|
4441
4447
|
return false;
|
|
4442
4448
|
}
|
|
4443
4449
|
|
|
@@ -5126,7 +5132,7 @@
|
|
|
5126
5132
|
disableKeyboardFocusNavigationRoutines();
|
|
5127
5133
|
}
|
|
5128
5134
|
|
|
5129
|
-
if (
|
|
5135
|
+
if (isSyntheticShadowHost(this) && isDelegatingFocus(this)) {
|
|
5130
5136
|
hostElementFocus.call(this);
|
|
5131
5137
|
return;
|
|
5132
5138
|
} // Typescript does not like it when you treat the `arguments` object as an array
|
|
@@ -5145,14 +5151,14 @@
|
|
|
5145
5151
|
defineProperties(HTMLElement.prototype, {
|
|
5146
5152
|
tabIndex: {
|
|
5147
5153
|
get: function get() {
|
|
5148
|
-
if (
|
|
5154
|
+
if (isSyntheticShadowHost(this)) {
|
|
5149
5155
|
return tabIndexGetterPatched.call(this);
|
|
5150
5156
|
}
|
|
5151
5157
|
|
|
5152
5158
|
return tabIndexGetter.call(this);
|
|
5153
5159
|
},
|
|
5154
5160
|
set: function set(v) {
|
|
5155
|
-
if (
|
|
5161
|
+
if (isSyntheticShadowHost(this)) {
|
|
5156
5162
|
return tabIndexSetterPatched.call(this, v);
|
|
5157
5163
|
}
|
|
5158
5164
|
|
|
@@ -5163,7 +5169,7 @@
|
|
|
5163
5169
|
},
|
|
5164
5170
|
blur: {
|
|
5165
5171
|
value: function value() {
|
|
5166
|
-
if (
|
|
5172
|
+
if (isSyntheticShadowHost(this)) {
|
|
5167
5173
|
return blurPatched.call(this);
|
|
5168
5174
|
}
|
|
5169
5175
|
|
|
@@ -5193,7 +5199,7 @@
|
|
|
5193
5199
|
}
|
|
5194
5200
|
|
|
5195
5201
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5196
|
-
if (isNodeShadowed(this) ||
|
|
5202
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5197
5203
|
return getInnerText(this);
|
|
5198
5204
|
}
|
|
5199
5205
|
|
|
@@ -5227,7 +5233,7 @@
|
|
|
5227
5233
|
}
|
|
5228
5234
|
|
|
5229
5235
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5230
|
-
if (isNodeShadowed(this) ||
|
|
5236
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5231
5237
|
return getInnerText(this);
|
|
5232
5238
|
}
|
|
5233
5239
|
|
|
@@ -5328,7 +5334,7 @@
|
|
|
5328
5334
|
if (node instanceof Element) {
|
|
5329
5335
|
setShadowToken(node, shadowToken);
|
|
5330
5336
|
|
|
5331
|
-
if (
|
|
5337
|
+
if (isSyntheticShadowHost(node)) {
|
|
5332
5338
|
// Root LWC elements can't get content slotted into them, therefore we don't observe their children.
|
|
5333
5339
|
return;
|
|
5334
5340
|
}
|
|
@@ -5431,6 +5437,6 @@
|
|
|
5431
5437
|
},
|
|
5432
5438
|
configurable: true
|
|
5433
5439
|
});
|
|
5434
|
-
/** version: 2.5.
|
|
5440
|
+
/** version: 2.5.6 */
|
|
5435
5441
|
|
|
5436
|
-
}))
|
|
5442
|
+
}));
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
function isUndefined(obj) {
|
|
9
9
|
return obj === undefined;
|
|
10
10
|
}
|
|
11
|
-
/** version: 2.5.
|
|
11
|
+
/** version: 2.5.6 */
|
|
12
12
|
|
|
13
13
|
/*
|
|
14
14
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -227,6 +227,6 @@ class LegacyWireAdapterBridge {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
}
|
|
230
|
-
/** version: 2.5.
|
|
230
|
+
/** version: 2.5.6 */
|
|
231
231
|
|
|
232
232
|
export { ValueChangedEvent, register, registerWireService };
|
|
@@ -11,7 +11,7 @@ var WireService = (function (exports) {
|
|
|
11
11
|
function isUndefined(obj) {
|
|
12
12
|
return obj === undefined;
|
|
13
13
|
}
|
|
14
|
-
/** version: 2.5.
|
|
14
|
+
/** version: 2.5.6 */
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
17
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -230,7 +230,7 @@ var WireService = (function (exports) {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
}
|
|
233
|
-
/** version: 2.5.
|
|
233
|
+
/** version: 2.5.6 */
|
|
234
234
|
|
|
235
235
|
exports.ValueChangedEvent = ValueChangedEvent;
|
|
236
236
|
exports.register = register;
|
|
@@ -240,4 +240,4 @@ var WireService = (function (exports) {
|
|
|
240
240
|
|
|
241
241
|
return exports;
|
|
242
242
|
|
|
243
|
-
}({})
|
|
243
|
+
})({});
|
|
@@ -11,7 +11,7 @@ var WireService = (function (exports) {
|
|
|
11
11
|
function isUndefined(obj) {
|
|
12
12
|
return obj === undefined;
|
|
13
13
|
}
|
|
14
|
-
/** version: 2.5.
|
|
14
|
+
/** version: 2.5.6 */
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
17
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -230,7 +230,7 @@ var WireService = (function (exports) {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
}
|
|
233
|
-
/** version: 2.5.
|
|
233
|
+
/** version: 2.5.6 */
|
|
234
234
|
|
|
235
235
|
exports.ValueChangedEvent = ValueChangedEvent;
|
|
236
236
|
exports.register = register;
|
|
@@ -240,4 +240,4 @@ var WireService = (function (exports) {
|
|
|
240
240
|
|
|
241
241
|
return exports;
|
|
242
242
|
|
|
243
|
-
}({})
|
|
243
|
+
})({});
|
|
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
|
|
|
33
33
|
function isUndefined(obj) {
|
|
34
34
|
return obj === undefined;
|
|
35
35
|
}
|
|
36
|
-
/** version: 2.5.
|
|
36
|
+
/** version: 2.5.6 */
|
|
37
37
|
|
|
38
38
|
/*
|
|
39
39
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -280,7 +280,7 @@ var WireService = (function (exports) {
|
|
|
280
280
|
|
|
281
281
|
return LegacyWireAdapterBridge;
|
|
282
282
|
}();
|
|
283
|
-
/** version: 2.5.
|
|
283
|
+
/** version: 2.5.6 */
|
|
284
284
|
|
|
285
285
|
exports.ValueChangedEvent = ValueChangedEvent;
|
|
286
286
|
exports.register = register;
|
|
@@ -290,4 +290,4 @@ var WireService = (function (exports) {
|
|
|
290
290
|
|
|
291
291
|
return exports;
|
|
292
292
|
|
|
293
|
-
}({})
|
|
293
|
+
})({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var WireService=function(e){"use strict";function t(e){return
|
|
1
|
+
var WireService=function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var y=Array.prototype,d=y.forEach,h=y.splice,v=y.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,d.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){d.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){d.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();return e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
|
|
|
33
33
|
function isUndefined(obj) {
|
|
34
34
|
return obj === undefined;
|
|
35
35
|
}
|
|
36
|
-
/** version: 2.5.
|
|
36
|
+
/** version: 2.5.6 */
|
|
37
37
|
|
|
38
38
|
/*
|
|
39
39
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -280,7 +280,7 @@ var WireService = (function (exports) {
|
|
|
280
280
|
|
|
281
281
|
return LegacyWireAdapterBridge;
|
|
282
282
|
}();
|
|
283
|
-
/** version: 2.5.
|
|
283
|
+
/** version: 2.5.6 */
|
|
284
284
|
|
|
285
285
|
exports.ValueChangedEvent = ValueChangedEvent;
|
|
286
286
|
exports.register = register;
|
|
@@ -290,4 +290,4 @@ var WireService = (function (exports) {
|
|
|
290
290
|
|
|
291
291
|
return exports;
|
|
292
292
|
|
|
293
|
-
}({})
|
|
293
|
+
})({});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WireService = {}));
|
|
5
|
-
}(this, (function (exports) { 'use strict';
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
function isUndefined(obj) {
|
|
15
15
|
return obj === undefined;
|
|
16
16
|
}
|
|
17
|
-
/** version: 2.5.
|
|
17
|
+
/** version: 2.5.6 */
|
|
18
18
|
|
|
19
19
|
/*
|
|
20
20
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
}
|
|
236
|
-
/** version: 2.5.
|
|
236
|
+
/** version: 2.5.6 */
|
|
237
237
|
|
|
238
238
|
exports.ValueChangedEvent = ValueChangedEvent;
|
|
239
239
|
exports.register = register;
|
|
@@ -241,4 +241,4 @@
|
|
|
241
241
|
|
|
242
242
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
243
243
|
|
|
244
|
-
}))
|
|
244
|
+
}));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WireService = {}));
|
|
5
|
-
}(this, (function (exports) { 'use strict';
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
function isUndefined(obj) {
|
|
15
15
|
return obj === undefined;
|
|
16
16
|
}
|
|
17
|
-
/** version: 2.5.
|
|
17
|
+
/** version: 2.5.6 */
|
|
18
18
|
|
|
19
19
|
/*
|
|
20
20
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
}
|
|
236
|
-
/** version: 2.5.
|
|
236
|
+
/** version: 2.5.6 */
|
|
237
237
|
|
|
238
238
|
exports.ValueChangedEvent = ValueChangedEvent;
|
|
239
239
|
exports.register = register;
|
|
@@ -241,4 +241,4 @@
|
|
|
241
241
|
|
|
242
242
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
243
243
|
|
|
244
|
-
}))
|
|
244
|
+
}));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WireService = {}));
|
|
5
|
-
}(this, (function (exports) { 'use strict';
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
8
8
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
function isUndefined(obj) {
|
|
37
37
|
return obj === undefined;
|
|
38
38
|
}
|
|
39
|
-
/** version: 2.5.
|
|
39
|
+
/** version: 2.5.6 */
|
|
40
40
|
|
|
41
41
|
/*
|
|
42
42
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
|
|
284
284
|
return LegacyWireAdapterBridge;
|
|
285
285
|
}();
|
|
286
|
-
/** version: 2.5.
|
|
286
|
+
/** version: 2.5.6 */
|
|
287
287
|
|
|
288
288
|
exports.ValueChangedEvent = ValueChangedEvent;
|
|
289
289
|
exports.register = register;
|
|
@@ -291,4 +291,4 @@
|
|
|
291
291
|
|
|
292
292
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
293
293
|
|
|
294
|
-
}))
|
|
294
|
+
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WireService={})}(this,(function(e){"use strict";function t(e){return
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WireService={})}(this,(function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var d=Array.prototype,y=d.forEach,h=d.splice,v=d.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,y.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){y.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){y.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WireService = {}));
|
|
5
|
-
}(this, (function (exports) { 'use strict';
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
8
8
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
function isUndefined(obj) {
|
|
37
37
|
return obj === undefined;
|
|
38
38
|
}
|
|
39
|
-
/** version: 2.5.
|
|
39
|
+
/** version: 2.5.6 */
|
|
40
40
|
|
|
41
41
|
/*
|
|
42
42
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
|
|
284
284
|
return LegacyWireAdapterBridge;
|
|
285
285
|
}();
|
|
286
|
-
/** version: 2.5.
|
|
286
|
+
/** version: 2.5.6 */
|
|
287
287
|
|
|
288
288
|
exports.ValueChangedEvent = ValueChangedEvent;
|
|
289
289
|
exports.register = register;
|
|
@@ -291,4 +291,4 @@
|
|
|
291
291
|
|
|
292
292
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
293
293
|
|
|
294
|
-
}))
|
|
294
|
+
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lwc",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.6",
|
|
4
4
|
"description": "Lightning Web Components (LWC)",
|
|
5
5
|
"homepage": "https://lwc.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@lwc/compiler": "2.5.
|
|
45
|
-
"@lwc/engine-dom": "2.5.
|
|
46
|
-
"@lwc/engine-server": "2.5.
|
|
47
|
-
"@lwc/features": "2.5.
|
|
48
|
-
"@lwc/synthetic-shadow": "2.5.
|
|
49
|
-
"@lwc/wire-service": "2.5.
|
|
44
|
+
"@lwc/compiler": "2.5.6",
|
|
45
|
+
"@lwc/engine-dom": "2.5.6",
|
|
46
|
+
"@lwc/engine-server": "2.5.6",
|
|
47
|
+
"@lwc/features": "2.5.6",
|
|
48
|
+
"@lwc/synthetic-shadow": "2.5.6",
|
|
49
|
+
"@lwc/wire-service": "2.5.6"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "34c0e425387f7322c233ee4de15f23a1c0336f52"
|
|
52
52
|
}
|