lwc 2.30.2 → 2.31.0

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.
Files changed (39) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +128 -41
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +128 -41
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +125 -38
  5. package/dist/engine-dom/iife/es5/engine-dom.js +156 -65
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +153 -62
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +128 -41
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +125 -38
  11. package/dist/engine-dom/umd/es5/engine-dom.js +156 -65
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +153 -62
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +120 -40
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +120 -40
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +7 -4
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +7 -4
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +7 -4
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +7 -4
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +7 -4
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +7 -4
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +7 -4
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +7 -4
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +7 -4
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  34. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  35. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  36. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  37. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  39. package/package.json +7 -7
@@ -86,7 +86,6 @@ var LWC = (function (exports) {
86
86
  setPrototypeOf = Object.setPrototypeOf;
87
87
  var isArray$1 = Array.isArray;
88
88
  var _Array$prototype = Array.prototype,
89
- ArrayConcat$1 = _Array$prototype.concat,
90
89
  ArrayFilter = _Array$prototype.filter,
91
90
  ArrayIndexOf = _Array$prototype.indexOf,
92
91
  ArrayJoin = _Array$prototype.join,
@@ -187,6 +186,7 @@ var LWC = (function (exports) {
187
186
  AriaPropNameToAttrNameMap: AriaPropNameToAttrNameMap
188
187
  };
189
188
  }(),
189
+ AriaAttrNameToPropNameMap = _ref.AriaAttrNameToPropNameMap,
190
190
  AriaPropNameToAttrNameMap = _ref.AriaPropNameToAttrNameMap;
191
191
 
192
192
  /*
@@ -244,15 +244,43 @@ var LWC = (function (exports) {
244
244
  var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
245
245
  var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
246
246
  var XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
247
- /**
248
- * Map composed of properties to attributes not following the HTML property to attribute mapping
249
- * convention.
247
+
248
+ /*
249
+ * Copyright (c) 2020, salesforce.com, inc.
250
+ * All rights reserved.
251
+ * SPDX-License-Identifier: MIT
252
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
250
253
  */
251
- var NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING = new Map([['accessKey', 'accesskey'], ['readOnly', 'readonly'], ['tabIndex', 'tabindex'], ['bgColor', 'bgcolor'], ['colSpan', 'colspan'], ['rowSpan', 'rowspan'], ['contentEditable', 'contenteditable'], ['crossOrigin', 'crossorigin'], ['dateTime', 'datetime'], ['formAction', 'formaction'], ['isMap', 'ismap'], ['maxLength', 'maxlength'], ['minLength', 'minlength'], ['noValidate', 'novalidate'], ['useMap', 'usemap'], ['htmlFor', 'for']]);
254
+ var CAMEL_REGEX = /-([a-z])/g;
255
+ // Convoluted map generation so that @lwc/shared remains fully tree-shakable (verify-treeshakable)
256
+ var _ref2 = /*#__PURE__*/function () {
257
+ /**
258
+ * Map composed of properties to attributes not following the HTML property to attribute mapping
259
+ * convention.
260
+ */
261
+ var NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING = new Map([['accessKey', 'accesskey'], ['readOnly', 'readonly'], ['tabIndex', 'tabindex'], ['bgColor', 'bgcolor'], ['colSpan', 'colspan'], ['rowSpan', 'rowspan'], ['contentEditable', 'contenteditable'], ['crossOrigin', 'crossorigin'], ['dateTime', 'datetime'], ['formAction', 'formaction'], ['isMap', 'ismap'], ['maxLength', 'maxlength'], ['minLength', 'minlength'], ['noValidate', 'novalidate'], ['useMap', 'usemap'], ['htmlFor', 'for']]);
262
+ /**
263
+ * Inverted map with attribute name key and property name value.
264
+ */
265
+ var NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING = new Map();
266
+ NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING.forEach(function (value, key) {
267
+ return NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING.set(value, key);
268
+ });
269
+ return {
270
+ NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING: NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING,
271
+ NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING: NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING
272
+ };
273
+ }(),
274
+ NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING = _ref2.NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING,
275
+ NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING = _ref2.NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING;
252
276
  /**
253
277
  * Map associating previously transformed HTML property into HTML attribute.
254
278
  */
255
279
  var CACHED_PROPERTY_ATTRIBUTE_MAPPING = new Map();
280
+ /**
281
+ * Map associating previously transformed HTML attribute into HTML property.
282
+ */
283
+ var CACHED_ATTRIBUTE_PROPERTY_MAPPING = new Map();
256
284
  function htmlPropertyToAttribute(propName) {
257
285
  var ariaAttributeName = AriaPropNameToAttrNameMap[propName];
258
286
  if (!isUndefined$1(ariaAttributeName)) {
@@ -281,7 +309,26 @@ var LWC = (function (exports) {
281
309
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
282
310
  return attributeName;
283
311
  }
284
- /** version: 2.30.2 */
312
+ function htmlAttributeToProperty(attrName) {
313
+ var ariaPropertyName = AriaAttrNameToPropNameMap[attrName];
314
+ if (!isUndefined$1(ariaPropertyName)) {
315
+ return ariaPropertyName;
316
+ }
317
+ var specialPropertyName = NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING.get(attrName);
318
+ if (!isUndefined$1(specialPropertyName)) {
319
+ return specialPropertyName;
320
+ }
321
+ var cachedPropertyName = CACHED_ATTRIBUTE_PROPERTY_MAPPING.get(attrName);
322
+ if (!isUndefined$1(cachedPropertyName)) {
323
+ return cachedPropertyName;
324
+ }
325
+ var propertyName = StringReplace.call(attrName, CAMEL_REGEX, function (g) {
326
+ return g[1].toUpperCase();
327
+ });
328
+ CACHED_ATTRIBUTE_PROPERTY_MAPPING.set(attrName, propertyName);
329
+ return propertyName;
330
+ }
331
+ /** version: 2.31.0 */
285
332
 
286
333
  /**
287
334
  * Copyright (C) 2018 salesforce.com, inc.
@@ -362,7 +409,7 @@ var LWC = (function (exports) {
362
409
  patch$1(propName);
363
410
  }
364
411
  }
365
- /** version: 2.30.2 */
412
+ /** version: 2.31.0 */
366
413
 
367
414
  /**
368
415
  * Copyright (C) 2018 salesforce.com, inc.
@@ -2746,7 +2793,7 @@ var LWC = (function (exports) {
2746
2793
  * SPDX-License-Identifier: MIT
2747
2794
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2748
2795
  */
2749
- var ColonCharCode = 58;
2796
+ var ColonCharCode$1 = 58;
2750
2797
  function patchAttributes(oldVnode, vnode, renderer) {
2751
2798
  var attrs = vnode.data.attrs;
2752
2799
  if (isUndefined$1(attrs)) {
@@ -2764,10 +2811,10 @@ var LWC = (function (exports) {
2764
2811
  var old = oldAttrs[key];
2765
2812
  if (old !== cur) {
2766
2813
  unlockAttribute(elm, key);
2767
- if (StringCharCodeAt.call(key, 3) === ColonCharCode) {
2814
+ if (StringCharCodeAt.call(key, 3) === ColonCharCode$1) {
2768
2815
  // Assume xml namespace
2769
2816
  setAttribute(elm, key, cur, XML_NAMESPACE);
2770
- } else if (StringCharCodeAt.call(key, 5) === ColonCharCode) {
2817
+ } else if (StringCharCodeAt.call(key, 5) === ColonCharCode$1) {
2771
2818
  // Assume xlink namespace
2772
2819
  setAttribute(elm, key, cur, XLINK_NAMESPACE);
2773
2820
  } else if (isNull(cur) || isUndefined$1(cur)) {
@@ -2780,6 +2827,45 @@ var LWC = (function (exports) {
2780
2827
  }
2781
2828
  }
2782
2829
 
2830
+ /*
2831
+ * Copyright (c) 2018, salesforce.com, inc.
2832
+ * All rights reserved.
2833
+ * SPDX-License-Identifier: MIT
2834
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2835
+ */
2836
+ var ColonCharCode = 58;
2837
+ function patchAttrUnlessProp(oldVnode, vnode, renderer) {
2838
+ var attrs = vnode.data.attrs,
2839
+ elm = vnode.elm;
2840
+ if (isUndefined$1(attrs)) {
2841
+ return;
2842
+ }
2843
+ var removeAttribute = renderer.removeAttribute,
2844
+ setAttribute = renderer.setAttribute,
2845
+ setProperty = renderer.setProperty;
2846
+ var oldAttrs = isNull(oldVnode) ? EmptyObject : oldVnode.data.attrs;
2847
+ for (var name in attrs) {
2848
+ var cur = attrs[name];
2849
+ var old = oldAttrs[name];
2850
+ if (old !== cur) {
2851
+ var _propName2 = htmlAttributeToProperty(name);
2852
+ if (_propName2 in elm) {
2853
+ setProperty(elm, name, cur);
2854
+ } else if (StringCharCodeAt.call(name, 3) === ColonCharCode) {
2855
+ // Assume xml namespace
2856
+ setAttribute(elm, name, cur, XML_NAMESPACE);
2857
+ } else if (StringCharCodeAt.call(name, 5) === ColonCharCode) {
2858
+ // Assume xlink namespace
2859
+ setAttribute(elm, name, cur, XLINK_NAMESPACE);
2860
+ } else if (isNull(cur) || isUndefined$1(cur)) {
2861
+ removeAttribute(elm, name);
2862
+ } else {
2863
+ setAttribute(elm, name, cur);
2864
+ }
2865
+ }
2866
+ }
2867
+ }
2868
+
2783
2869
  /*
2784
2870
  * Copyright (c) 2018, salesforce.com, inc.
2785
2871
  * All rights reserved.
@@ -3302,7 +3388,11 @@ var LWC = (function (exports) {
3302
3388
  // value is set before type=radio.
3303
3389
  patchClassAttribute(oldVnode, vnode, renderer);
3304
3390
  patchStyleAttribute(oldVnode, vnode, renderer);
3305
- patchAttributes(oldVnode, vnode, renderer);
3391
+ if (vnode.data.external) {
3392
+ patchAttrUnlessProp(oldVnode, vnode, renderer);
3393
+ } else {
3394
+ patchAttributes(oldVnode, vnode, renderer);
3395
+ }
3306
3396
  patchProps(oldVnode, vnode, renderer);
3307
3397
  }
3308
3398
  function applyStyleScoping(elm, owner, renderer) {
@@ -3663,38 +3753,39 @@ var LWC = (function (exports) {
3663
3753
  // [s]lot element node
3664
3754
  function s(slotName, data, children, slotset) {
3665
3755
  if (!isUndefined$1(slotset) && !isUndefined$1(slotset.slotAssignments) && !isUndefined$1(slotset.slotAssignments[slotName]) && slotset.slotAssignments[slotName].length !== 0) {
3666
- children = slotset.slotAssignments[slotName].reduce(function (accumulator, vnode) {
3667
- if (vnode) {
3756
+ var newChildren = [];
3757
+ var slotAssignments = slotset.slotAssignments[slotName];
3758
+ for (var _i19 = 0; _i19 < slotAssignments.length; _i19++) {
3759
+ var vnode = slotAssignments[_i19];
3760
+ if (!isNull(vnode)) {
3668
3761
  var assignedNodeIsScopedSlot = isVScopedSlotFragment(vnode);
3669
3762
  // The only sniff test for a scoped <slot> element is the presence of `slotData`
3670
3763
  var isScopedSlotElement = !isUndefined$1(data.slotData);
3671
3764
  // Check if slot types of parent and child are matching
3672
3765
  if (assignedNodeIsScopedSlot !== isScopedSlotElement) {
3673
3766
  // Ignore slot content from parent
3674
- return accumulator;
3767
+ continue;
3675
3768
  }
3676
3769
  // If the passed slot content is factory, evaluate it and add the produced vnodes
3677
3770
  if (assignedNodeIsScopedSlot) {
3678
3771
  var vmBeingRenderedInception = getVMBeingRendered();
3679
- var scopedSlotChildren = [];
3680
3772
  // Evaluate in the scope of the slot content's owner
3681
3773
  // if a slotset is provided, there will always be an owner. The only case where owner is
3682
3774
  // undefined is for root components, but root components cannot accept slotted content
3683
3775
  setVMBeingRendered(slotset.owner);
3684
3776
  try {
3685
- scopedSlotChildren = vnode.factory(data.slotData);
3777
+ ArrayPush$1.apply(newChildren, vnode.factory(data.slotData));
3686
3778
  } finally {
3687
3779
  setVMBeingRendered(vmBeingRenderedInception);
3688
3780
  }
3689
- return ArrayConcat$1.call(accumulator, scopedSlotChildren);
3690
3781
  } else {
3691
3782
  // If the slot content is standard type, the content is static, no additional
3692
3783
  // processing needed on the vnode
3693
- return ArrayConcat$1.call(accumulator, vnode);
3784
+ ArrayPush$1.call(newChildren, vnode);
3694
3785
  }
3695
3786
  }
3696
- return accumulator;
3697
- }, []);
3787
+ }
3788
+ children = newChildren;
3698
3789
  }
3699
3790
  var vmBeingRendered = getVMBeingRendered();
3700
3791
  var renderMode = vmBeingRendered.renderMode,
@@ -4044,23 +4135,23 @@ var LWC = (function (exports) {
4044
4135
  var classAttrToken = hasScopedStyles && hasStyleToken ? " class=\"".concat(stylesheetToken, "\"") : '';
4045
4136
  var attrToken = hasStyleToken && isSyntheticShadow ? ' ' + stylesheetToken : '';
4046
4137
  var htmlFragment = '';
4047
- for (var _i19 = 0, n = keys.length; _i19 < n; _i19++) {
4048
- switch (keys[_i19]) {
4138
+ for (var _i20 = 0, n = keys.length; _i20 < n; _i20++) {
4139
+ switch (keys[_i20]) {
4049
4140
  case 0:
4050
4141
  // styleToken in existing class attr
4051
- htmlFragment += strings[_i19] + classToken;
4142
+ htmlFragment += strings[_i20] + classToken;
4052
4143
  break;
4053
4144
  case 1:
4054
4145
  // styleToken for added class attr
4055
- htmlFragment += strings[_i19] + classAttrToken;
4146
+ htmlFragment += strings[_i20] + classAttrToken;
4056
4147
  break;
4057
4148
  case 2:
4058
4149
  // styleToken as attr
4059
- htmlFragment += strings[_i19] + attrToken;
4150
+ htmlFragment += strings[_i20] + attrToken;
4060
4151
  break;
4061
4152
  case 3:
4062
4153
  // ${1}${2}
4063
- htmlFragment += strings[_i19] + classAttrToken + attrToken;
4154
+ htmlFragment += strings[_i20] + classAttrToken + attrToken;
4064
4155
  break;
4065
4156
  }
4066
4157
  }
@@ -4151,8 +4242,8 @@ var LWC = (function (exports) {
4151
4242
  function computeHasScopedStyles(template) {
4152
4243
  var stylesheets = template.stylesheets;
4153
4244
  if (!isUndefined$1(stylesheets)) {
4154
- for (var _i20 = 0; _i20 < stylesheets.length; _i20++) {
4155
- if (isTrue(stylesheets[_i20][KEY__SCOPED_CSS])) {
4245
+ for (var _i21 = 0; _i21 < stylesheets.length; _i21++) {
4246
+ if (isTrue(stylesheets[_i21][KEY__SCOPED_CSS])) {
4156
4247
  return true;
4157
4248
  }
4158
4249
  }
@@ -4249,8 +4340,8 @@ var LWC = (function (exports) {
4249
4340
  */
4250
4341
  function registerComponent(
4251
4342
  // We typically expect a LightningElementConstructor, but technically you can call this with anything
4252
- Ctor, _ref2) {
4253
- var tmpl = _ref2.tmpl;
4343
+ Ctor, _ref3) {
4344
+ var tmpl = _ref3.tmpl;
4254
4345
  if (isFunction$1(Ctor)) {
4255
4346
  signedTemplateMap.set(Ctor, tmpl);
4256
4347
  }
@@ -4310,8 +4401,8 @@ var LWC = (function (exports) {
4310
4401
  * subject to change or being removed.
4311
4402
  */
4312
4403
  function register(service) {
4313
- for (var _i21 = 0; _i21 < hooks.length; ++_i21) {
4314
- var hookName = hooks[_i21];
4404
+ for (var _i22 = 0; _i22 < hooks.length; ++_i22) {
4405
+ var hookName = hooks[_i22];
4315
4406
  if (hookName in service) {
4316
4407
  var l = Services[hookName];
4317
4408
  if (isUndefined$1(l)) {
@@ -4325,8 +4416,8 @@ var LWC = (function (exports) {
4325
4416
  var component = vm.component,
4326
4417
  def = vm.def,
4327
4418
  context = vm.context;
4328
- for (var _i22 = 0, len = cbs.length; _i22 < len; ++_i22) {
4329
- cbs[_i22].call(undefined, component, {}, def, context);
4419
+ for (var _i23 = 0, len = cbs.length; _i23 < len; ++_i23) {
4420
+ cbs[_i23].call(undefined, component, {}, def, context);
4330
4421
  }
4331
4422
  }
4332
4423
 
@@ -4572,17 +4663,17 @@ var LWC = (function (exports) {
4572
4663
  return a.idx - b.idx;
4573
4664
  });
4574
4665
  rehydrateQueue = []; // reset to a new queue
4575
- for (var _i23 = 0, len = vms.length; _i23 < len; _i23 += 1) {
4576
- var vm = vms[_i23];
4666
+ for (var _i24 = 0, len = vms.length; _i24 < len; _i24 += 1) {
4667
+ var vm = vms[_i24];
4577
4668
  try {
4578
4669
  rehydrate(vm);
4579
4670
  } catch (error) {
4580
- if (_i23 + 1 < len) {
4671
+ if (_i24 + 1 < len) {
4581
4672
  // pieces of the queue are still pending to be rehydrated, those should have priority
4582
4673
  if (rehydrateQueue.length === 0) {
4583
4674
  addCallbackToNextTick(flushRehydrationQueue);
4584
4675
  }
4585
- ArrayUnshift.apply(rehydrateQueue, ArraySlice.call(vms, _i23 + 1));
4676
+ ArrayUnshift.apply(rehydrateQueue, ArraySlice.call(vms, _i24 + 1));
4586
4677
  }
4587
4678
  // we need to end the measure before throwing.
4588
4679
  logGlobalOperationEnd(8 /* OperationId.GlobalRehydrate */);
@@ -4648,8 +4739,8 @@ var LWC = (function (exports) {
4648
4739
  var vCustomElementCollection = vm.velements;
4649
4740
  // Reporting disconnection for every child in inverse order since they are
4650
4741
  // inserted in reserved order.
4651
- for (var _i24 = vCustomElementCollection.length - 1; _i24 >= 0; _i24 -= 1) {
4652
- var elm = vCustomElementCollection[_i24].elm;
4742
+ for (var _i25 = vCustomElementCollection.length - 1; _i25 >= 0; _i25 -= 1) {
4743
+ var elm = vCustomElementCollection[_i25].elm;
4653
4744
  // There are two cases where the element could be undefined:
4654
4745
  // * when there is an error during the construction phase, and an error
4655
4746
  // boundary picks it, there is a possibility that the VCustomElement
@@ -4680,8 +4771,8 @@ var LWC = (function (exports) {
4680
4771
  * defined on its shadow.
4681
4772
  */
4682
4773
  function recursivelyDisconnectChildren(vnodes) {
4683
- for (var _i25 = 0, len = vnodes.length; _i25 < len; _i25 += 1) {
4684
- var vnode = vnodes[_i25];
4774
+ for (var _i26 = 0, len = vnodes.length; _i26 < len; _i26 += 1) {
4775
+ var vnode = vnodes[_i26];
4685
4776
  if (!isNull(vnode) && !isUndefined$1(vnode.elm)) {
4686
4777
  switch (vnode.type) {
4687
4778
  case 2 /* VNodeType.Element */:
@@ -4705,8 +4796,8 @@ var LWC = (function (exports) {
4705
4796
  var children = vm.children,
4706
4797
  renderRoot = vm.renderRoot,
4707
4798
  remove = vm.renderer.remove;
4708
- for (var _i26 = 0, len = children.length; _i26 < len; _i26++) {
4709
- var child = children[_i26];
4799
+ for (var _i27 = 0, len = children.length; _i27 < len; _i27++) {
4800
+ var child = children[_i27];
4710
4801
  if (!isNull(child) && !isUndefined$1(child.elm)) {
4711
4802
  remove(child.elm, renderRoot);
4712
4803
  }
@@ -4772,10 +4863,10 @@ var LWC = (function (exports) {
4772
4863
  var WireContextRegistrationEvent = /*#__PURE__*/function (_CustomEvent) {
4773
4864
  _inherits(WireContextRegistrationEvent, _CustomEvent);
4774
4865
  var _super5 = _createSuper(WireContextRegistrationEvent);
4775
- function WireContextRegistrationEvent(adapterToken, _ref3) {
4866
+ function WireContextRegistrationEvent(adapterToken, _ref4) {
4776
4867
  var _this4;
4777
- var setNewContext = _ref3.setNewContext,
4778
- setDisconnectedCallback = _ref3.setDisconnectedCallback;
4868
+ var setNewContext = _ref4.setNewContext,
4869
+ setDisconnectedCallback = _ref4.setDisconnectedCallback;
4779
4870
  _classCallCheck(this, WireContextRegistrationEvent);
4780
4871
  _this4 = _super5.call(this, adapterToken, {
4781
4872
  bubbles: true,
@@ -5002,16 +5093,16 @@ var LWC = (function (exports) {
5002
5093
  }
5003
5094
  function connectWireAdapters(vm) {
5004
5095
  var wiredConnecting = vm.context.wiredConnecting;
5005
- for (var _i27 = 0, len = wiredConnecting.length; _i27 < len; _i27 += 1) {
5006
- wiredConnecting[_i27]();
5096
+ for (var _i28 = 0, len = wiredConnecting.length; _i28 < len; _i28 += 1) {
5097
+ wiredConnecting[_i28]();
5007
5098
  }
5008
5099
  }
5009
5100
  function disconnectWireAdapters(vm) {
5010
5101
  var wiredDisconnecting = vm.context.wiredDisconnecting;
5011
5102
  runWithBoundaryProtection(vm, vm, noop, function () {
5012
5103
  // job
5013
- for (var _i28 = 0, len = wiredDisconnecting.length; _i28 < len; _i28 += 1) {
5014
- wiredDisconnecting[_i28]();
5104
+ for (var _i29 = 0, len = wiredDisconnecting.length; _i29 < len; _i29 += 1) {
5105
+ wiredDisconnecting[_i29]();
5015
5106
  }
5016
5107
  }, noop);
5017
5108
  }
@@ -5221,8 +5312,8 @@ var LWC = (function (exports) {
5221
5312
  var nextNode = node;
5222
5313
  var anchor = null;
5223
5314
  var renderer = owner.renderer;
5224
- for (var _i29 = 0; _i29 < children.length; _i29++) {
5225
- var childVnode = children[_i29];
5315
+ for (var _i30 = 0; _i30 < children.length; _i30++) {
5316
+ var childVnode = children[_i30];
5226
5317
  if (!isNull(childVnode)) {
5227
5318
  if (nextNode) {
5228
5319
  nextNode = hydrateNode(nextNode, childVnode, renderer);
@@ -5283,8 +5374,8 @@ var LWC = (function (exports) {
5283
5374
  var nodesAreCompatible = true;
5284
5375
  // Validate attributes, though we could always recovery from those by running the update mods.
5285
5376
  // Note: intentionally ONLY matching vnodes.attrs to elm.attrs, in case SSR is adding extra attributes.
5286
- for (var _i30 = 0, _Object$entries = Object.entries(attrs); _i30 < _Object$entries.length; _i30++) {
5287
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i30], 2),
5377
+ for (var _i31 = 0, _Object$entries = Object.entries(attrs); _i31 < _Object$entries.length; _i31++) {
5378
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i31], 2),
5288
5379
  attrName = _Object$entries$_i[0],
5289
5380
  attrValue = _Object$entries$_i[1];
5290
5381
  vnode.owner;
@@ -5371,8 +5462,8 @@ var LWC = (function (exports) {
5371
5462
  var parsedVnodeStyle = parseStyleText(elmStyle);
5372
5463
  var expectedStyle = [];
5373
5464
  // styleMap is used when style is set to static value.
5374
- for (var _i31 = 0, n = styleDecls.length; _i31 < n; _i31++) {
5375
- var _styleDecls$_i2 = _slicedToArray(styleDecls[_i31], 3),
5465
+ for (var _i32 = 0, n = styleDecls.length; _i32 < n; _i32++) {
5466
+ var _styleDecls$_i2 = _slicedToArray(styleDecls[_i32], 3),
5376
5467
  prop = _styleDecls$_i2[0],
5377
5468
  value = _styleDecls$_i2[1],
5378
5469
  important = _styleDecls$_i2[2];
@@ -6408,7 +6499,7 @@ var LWC = (function (exports) {
6408
6499
  function isNull(obj) {
6409
6500
  return obj === null;
6410
6501
  }
6411
- /** version: 2.30.2 */
6502
+ /** version: 2.31.0 */
6412
6503
 
6413
6504
  /*
6414
6505
  * Copyright (c) 2018, salesforce.com, inc.
@@ -6486,7 +6577,7 @@ var LWC = (function (exports) {
6486
6577
  doc.body.innerHTML = html;
6487
6578
  var content = doc.body;
6488
6579
  if (!isUndefined(wrapperTags)) {
6489
- for (var _i32 = 0; _i32 < wrapperTags.length; _i32++) {
6580
+ for (var _i33 = 0; _i33 < wrapperTags.length; _i33++) {
6490
6581
  content = content.firstChild;
6491
6582
  }
6492
6583
  }
@@ -6679,8 +6770,8 @@ var LWC = (function (exports) {
6679
6770
  tagName: element.tagName.toLowerCase(),
6680
6771
  hydrated: true
6681
6772
  });
6682
- for (var _i33 = 0, _Object$entries2 = Object.entries(props); _i33 < _Object$entries2.length; _i33++) {
6683
- var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i33], 2),
6773
+ for (var _i34 = 0, _Object$entries2 = Object.entries(props); _i34 < _Object$entries2.length; _i34++) {
6774
+ var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i34], 2),
6684
6775
  key = _Object$entries2$_i[0],
6685
6776
  value = _Object$entries2$_i[1];
6686
6777
  element[key] = value;
@@ -6967,7 +7058,7 @@ var LWC = (function (exports) {
6967
7058
  });
6968
7059
  freeze(LightningElement);
6969
7060
  seal(LightningElement.prototype);
6970
- /* version: 2.30.2 */
7061
+ /* version: 2.31.0 */
6971
7062
 
6972
7063
  exports.LightningElement = LightningElement;
6973
7064
  exports.__unstable__ProfilerControl = profilerControl;