lwc 2.32.0 → 2.33.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 (41) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +898 -802
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +898 -802
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +683 -608
  5. package/dist/engine-dom/iife/es5/engine-dom.js +324 -313
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +234 -270
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +898 -802
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +683 -608
  11. package/dist/engine-dom/umd/es5/engine-dom.js +324 -313
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +234 -270
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +871 -696
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +871 -696
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +676 -909
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +676 -909
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +644 -882
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +89 -347
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +89 -347
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +676 -909
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +644 -882
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +89 -347
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +89 -347
  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 +5 -3
  34. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  35. package/dist/wire-service/iife/es5/wire-service_debug.js +5 -3
  36. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  37. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service.js +5 -3
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +5 -3
  41. package/package.json +7 -7
@@ -7,9 +7,7 @@
7
7
  function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf2(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
8
8
  function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
9
9
  function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
10
- function _get2() { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get.bind(); } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get2.apply(this, arguments); }
11
- function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf2(object); if (object === null) break; } return object; }
12
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
11
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
14
12
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -18,15 +16,17 @@
18
16
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
19
17
  function _getPrototypeOf2(o) { _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf2(o); }
20
18
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
19
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
22
20
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
22
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23
23
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
24
24
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25
25
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
26
26
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
27
27
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
28
28
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
29
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
29
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
30
30
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
31
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
32
32
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -171,6 +171,9 @@
171
171
  * The above list of 46 aria attributes is consistent with the following resources:
172
172
  * https://github.com/w3c/aria/pull/708/files#diff-eacf331f0ffc35d4b482f1d15a887d3bR11060
173
173
  * https://wicg.github.io/aom/spec/aria-reflection.html
174
+ *
175
+ * NOTE: If you update this list, please update test files that implicitly reference this list!
176
+ * Searching the codebase for `aria-flowto` and `ariaFlowTo` should be good enough to find all usages.
174
177
  */
175
178
  var AriaPropertyNames = ['ariaActiveDescendant', 'ariaAtomic', 'ariaAutoComplete', 'ariaBusy', 'ariaChecked', 'ariaColCount', 'ariaColIndex', 'ariaColSpan', 'ariaControls', 'ariaCurrent', 'ariaDescribedBy', 'ariaDetails', 'ariaDisabled', 'ariaErrorMessage', 'ariaExpanded', 'ariaFlowTo', 'ariaHasPopup', 'ariaHidden', 'ariaInvalid', 'ariaKeyShortcuts', 'ariaLabel', 'ariaLabelledBy', 'ariaLevel', 'ariaLive', 'ariaModal', 'ariaMultiLine', 'ariaMultiSelectable', 'ariaOrientation', 'ariaOwns', 'ariaPlaceholder', 'ariaPosInSet', 'ariaPressed', 'ariaReadOnly', 'ariaRelevant', 'ariaRequired', 'ariaRoleDescription', 'ariaRowCount', 'ariaRowIndex', 'ariaRowSpan', 'ariaSelected', 'ariaSetSize', 'ariaSort', 'ariaValueMax', 'ariaValueMin', 'ariaValueNow', 'ariaValueText', 'role'];
176
179
  var _ref = /*@__PURE__*/function () {
@@ -331,88 +334,7 @@
331
334
  CACHED_ATTRIBUTE_PROPERTY_MAPPING.set(attrName, propertyName);
332
335
  return propertyName;
333
336
  }
334
- /** version: 2.32.0 */
335
-
336
- /**
337
- * Copyright (C) 2018 salesforce.com, inc.
338
- */
339
-
340
- /*
341
- * Copyright (c) 2018, salesforce.com, inc.
342
- * All rights reserved.
343
- * SPDX-License-Identifier: MIT
344
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
345
- */
346
- function detect(propName) {
347
- return getOwnPropertyDescriptor$1(Element.prototype, propName) === undefined;
348
- }
349
-
350
- /*
351
- * Copyright (c) 2018, salesforce.com, inc.
352
- * All rights reserved.
353
- * SPDX-License-Identifier: MIT
354
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
355
- */
356
- var nodeToAriaPropertyValuesMap = new WeakMap();
357
- function getAriaPropertyMap(elm) {
358
- var map = nodeToAriaPropertyValuesMap.get(elm);
359
- if (map === undefined) {
360
- map = {};
361
- nodeToAriaPropertyValuesMap.set(elm, map);
362
- }
363
- return map;
364
- }
365
- function getNormalizedAriaPropertyValue(value) {
366
- return value == null ? null : String(value);
367
- }
368
- function createAriaPropertyPropertyDescriptor(propName, attrName) {
369
- return {
370
- get: function get() {
371
- var map = getAriaPropertyMap(this);
372
- if (hasOwnProperty$1.call(map, propName)) {
373
- return map[propName];
374
- }
375
- // otherwise just reflect what's in the attribute
376
- return this.hasAttribute(attrName) ? this.getAttribute(attrName) : null;
377
- },
378
- set: function set(newValue) {
379
- var normalizedValue = getNormalizedAriaPropertyValue(newValue);
380
- var map = getAriaPropertyMap(this);
381
- map[propName] = normalizedValue;
382
- // reflect into the corresponding attribute
383
- if (newValue === null) {
384
- this.removeAttribute(attrName);
385
- } else {
386
- this.setAttribute(attrName, newValue);
387
- }
388
- },
389
- configurable: true,
390
- enumerable: true
391
- };
392
- }
393
- function patch$1(propName) {
394
- // Typescript is inferring the wrong function type for this particular
395
- // overloaded method: https://github.com/Microsoft/TypeScript/issues/27972
396
- // @ts-ignore type-mismatch
397
- var attrName = AriaPropNameToAttrNameMap[propName];
398
- var descriptor = createAriaPropertyPropertyDescriptor(propName, attrName);
399
- Object.defineProperty(Element.prototype, propName, descriptor);
400
- }
401
-
402
- /*
403
- * Copyright (c) 2018, salesforce.com, inc.
404
- * All rights reserved.
405
- * SPDX-License-Identifier: MIT
406
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
407
- */
408
- var ElementPrototypeAriaPropertyNames = keys(AriaPropNameToAttrNameMap);
409
- for (var _i2 = 0, len = ElementPrototypeAriaPropertyNames.length; _i2 < len; _i2 += 1) {
410
- var propName = ElementPrototypeAriaPropertyNames[_i2];
411
- if (detect(propName)) {
412
- patch$1(propName);
413
- }
414
- }
415
- /** version: 2.32.0 */
337
+ /** version: 2.33.0 */
416
338
 
417
339
  /**
418
340
  * Copyright (C) 2018 salesforce.com, inc.
@@ -426,19 +348,15 @@
426
348
  */
427
349
  var features = {
428
350
  DUMMY_TEST_FLAG: null,
429
- ENABLE_ELEMENT_PATCH: null,
430
351
  ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST: null,
431
- ENABLE_HTML_COLLECTIONS_PATCH: null,
432
- ENABLE_INNER_OUTER_TEXT_PATCH: null,
433
352
  ENABLE_MIXED_SHADOW_MODE: null,
434
353
  ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE: null,
435
- ENABLE_NODE_LIST_PATCH: null,
436
- ENABLE_NODE_PATCH: null,
437
- ENABLE_REACTIVE_SETTER: null,
438
354
  ENABLE_WIRE_SYNC_EMIT: null,
439
355
  ENABLE_LIGHT_GET_ROOT_NODE_PATCH: null,
440
356
  DISABLE_LIGHT_DOM_UNSCOPED_CSS: null,
441
- ENABLE_SCOPED_CUSTOM_ELEMENT_REGISTRY: null
357
+ ENABLE_SCOPED_CUSTOM_ELEMENT_REGISTRY: null,
358
+ ENABLE_FROZEN_TEMPLATE: null,
359
+ DISABLE_ARIA_REFLECTION_POLYFILL: null
442
360
  };
443
361
  if (!_globalThis.lwcRuntimeFlags) {
444
362
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', {
@@ -486,6 +404,83 @@
486
404
  */
487
405
  function setFeatureFlagForTest(name, value) {
488
406
  }
407
+ /** version: 2.33.0 */
408
+
409
+ /**
410
+ * Copyright (C) 2018 salesforce.com, inc.
411
+ */
412
+
413
+ /*
414
+ * Copyright (c) 2018, salesforce.com, inc.
415
+ * All rights reserved.
416
+ * SPDX-License-Identifier: MIT
417
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
418
+ */
419
+ function detect(propName, prototype) {
420
+ return isUndefined$1(getOwnPropertyDescriptor$1(prototype, propName));
421
+ }
422
+
423
+ /*
424
+ * Copyright (c) 2018, salesforce.com, inc.
425
+ * All rights reserved.
426
+ * SPDX-License-Identifier: MIT
427
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
428
+ */
429
+ function createAriaPropertyPropertyDescriptor(attrName) {
430
+ // Note that we need to call this.{get,set,has,remove}Attribute rather than dereferencing
431
+ // from Element.prototype, because these methods are overridden in LightningElement.
432
+ return {
433
+ get: function get() {
434
+ // reflect what's in the attribute
435
+ return this.hasAttribute(attrName) ? this.getAttribute(attrName) : null;
436
+ },
437
+ set: function set(newValue) {
438
+ // reflect into the corresponding attribute
439
+ if (isNull(newValue)) {
440
+ this.removeAttribute(attrName);
441
+ } else {
442
+ this.setAttribute(attrName, newValue);
443
+ }
444
+ },
445
+ configurable: true,
446
+ enumerable: true
447
+ };
448
+ }
449
+ function patch$1(propName, prototype) {
450
+ var attrName = AriaPropNameToAttrNameMap[propName];
451
+ var descriptor = createAriaPropertyPropertyDescriptor(attrName);
452
+ defineProperty(prototype, propName, descriptor);
453
+ }
454
+
455
+ /*
456
+ * Copyright (c) 2018, salesforce.com, inc.
457
+ * All rights reserved.
458
+ * SPDX-License-Identifier: MIT
459
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
460
+ */
461
+ function applyAriaReflection() {
462
+ var prototype = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Element.prototype;
463
+ var ElementPrototypeAriaPropertyNames = keys(AriaPropNameToAttrNameMap);
464
+ for (var _i2 = 0, len = ElementPrototypeAriaPropertyNames.length; _i2 < len; _i2 += 1) {
465
+ var propName = ElementPrototypeAriaPropertyNames[_i2];
466
+ if (detect(propName, prototype)) {
467
+ patch$1(propName, prototype);
468
+ }
469
+ }
470
+ }
471
+ /** version: 2.33.0 */
472
+
473
+ /*
474
+ * Copyright (c) 2018, salesforce.com, inc.
475
+ * All rights reserved.
476
+ * SPDX-License-Identifier: MIT
477
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
478
+ */
479
+ if (!lwcRuntimeFlags.DISABLE_ARIA_REFLECTION_POLYFILL) {
480
+ // If DISABLE_ARIA_REFLECTION_POLYFILL is false, then we need to apply the ARIA reflection polyfill globally,
481
+ // i.e. to the global Element.prototype
482
+ applyAriaReflection();
483
+ }
489
484
 
490
485
  /*
491
486
  * Copyright (c) 2018, salesforce.com, inc.
@@ -500,7 +495,7 @@
500
495
  function flushCallbackQueue() {
501
496
  var callbacks = nextTickCallbackQueue;
502
497
  nextTickCallbackQueue = []; // reset to a new queue
503
- for (var _i3 = 0, _len = callbacks.length; _i3 < _len; _i3 += 1) {
498
+ for (var _i3 = 0, len = callbacks.length; _i3 < len; _i3 += 1) {
504
499
  callbacks[_i3]();
505
500
  }
506
501
  }
@@ -590,7 +585,7 @@
590
585
  if (!isUndefined$1(reactiveRecord)) {
591
586
  var reactiveObservers = reactiveRecord[key];
592
587
  if (!isUndefined$1(reactiveObservers)) {
593
- for (var _i5 = 0, _len2 = reactiveObservers.length; _i5 < _len2; _i5 += 1) {
588
+ for (var _i5 = 0, len = reactiveObservers.length; _i5 < len; _i5 += 1) {
594
589
  var ro = reactiveObservers[_i5];
595
590
  ro.notify();
596
591
  }
@@ -1834,6 +1829,17 @@
1834
1829
  lightningBasedDescriptors[propName] = createBridgeToElementDescriptor(propName, HTMLElementOriginalDescriptors[propName]);
1835
1830
  }
1836
1831
  defineProperties(LightningElement.prototype, lightningBasedDescriptors);
1832
+ function applyAriaReflectionToLightningElement() {
1833
+ // If ARIA reflection is not applied globally to Element.prototype, or if we are running server-side,
1834
+ // apply it to LightningElement.prototype.
1835
+ // This allows `this.aria*` property accessors to work from inside a component, and to reflect `aria-*` attrs.
1836
+ applyAriaReflection(LightningElement.prototype);
1837
+ }
1838
+ // The reason for this odd if/else branching is limitations in @lwc/features:
1839
+ // https://github.com/salesforce/lwc/blob/master/packages/%40lwc/features/README.md#only-works-with-if-statements
1840
+ if (lwcRuntimeFlags.DISABLE_ARIA_REFLECTION_POLYFILL) {
1841
+ applyAriaReflectionToLightningElement();
1842
+ }
1837
1843
  defineProperty(LightningElement, 'CustomElementConstructor', {
1838
1844
  get: function get() {
1839
1845
  // If required, a runtime-specific implementation must be defined.
@@ -1856,56 +1862,6 @@
1856
1862
  configurable: true
1857
1863
  };
1858
1864
  }
1859
- var AccessorReactiveObserver = /*#__PURE__*/function (_ReactiveObserver) {
1860
- _inherits(AccessorReactiveObserver, _ReactiveObserver);
1861
- var _super3 = _createSuper(AccessorReactiveObserver);
1862
- function AccessorReactiveObserver(vm, set) {
1863
- var _this2;
1864
- _classCallCheck(this, AccessorReactiveObserver);
1865
- _this2 = _super3.call(this, function () {
1866
- if (isFalse(_this2.debouncing)) {
1867
- _this2.debouncing = true;
1868
- addCallbackToNextTick(function () {
1869
- if (isTrue(_this2.debouncing)) {
1870
- var _assertThisInitialize = _assertThisInitialized(_this2),
1871
- value = _assertThisInitialize.value;
1872
- var dirtyStateBeforeSetterCall = vm.isDirty,
1873
- component = vm.component,
1874
- _idx = vm.idx;
1875
- set.call(component, value);
1876
- // de-bouncing after the call to the original setter to prevent
1877
- // infinity loop if the setter itself is mutating things that
1878
- // were accessed during the previous invocation.
1879
- _this2.debouncing = false;
1880
- if (isTrue(vm.isDirty) && isFalse(dirtyStateBeforeSetterCall) && _idx > 0) {
1881
- // immediate rehydration due to a setter driven mutation, otherwise
1882
- // the component will get rendered on the second tick, which it is not
1883
- // desirable.
1884
- rerenderVM(vm);
1885
- }
1886
- }
1887
- });
1888
- }
1889
- });
1890
- _this2.debouncing = false;
1891
- return _this2;
1892
- }
1893
- _createClass(AccessorReactiveObserver, [{
1894
- key: "reset",
1895
- value: function reset(value) {
1896
- _get2(_getPrototypeOf2(AccessorReactiveObserver.prototype), "reset", this).call(this);
1897
- this.debouncing = false;
1898
- if (arguments.length > 0) {
1899
- this.value = value;
1900
- }
1901
- }
1902
- }]);
1903
- return AccessorReactiveObserver;
1904
- }(ReactiveObserver);
1905
- function createAccessorReactiveObserver(vm, set) {
1906
- // On the server side, we don't need mutation tracking. Skipping it improves performance.
1907
- return new AccessorReactiveObserver(vm, set);
1908
- }
1909
1865
 
1910
1866
  /*
1911
1867
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1936,37 +1892,21 @@
1936
1892
  };
1937
1893
  }
1938
1894
  function createPublicAccessorDescriptor(key, descriptor) {
1939
- var _get3 = descriptor.get,
1895
+ var _get2 = descriptor.get,
1940
1896
  _set2 = descriptor.set,
1941
1897
  enumerable = descriptor.enumerable,
1942
1898
  configurable = descriptor.configurable;
1943
- if (!isFunction$1(_get3)) {
1899
+ if (!isFunction$1(_get2)) {
1944
1900
  throw new Error();
1945
1901
  }
1946
1902
  return {
1947
1903
  get: function get() {
1948
- return _get3.call(this);
1904
+ return _get2.call(this);
1949
1905
  },
1950
1906
  set: function set(newValue) {
1951
- var _this3 = this;
1952
- var vm = getAssociatedVM(this);
1907
+ getAssociatedVM(this);
1953
1908
  if (_set2) {
1954
- if (lwcRuntimeFlags.ENABLE_REACTIVE_SETTER) {
1955
- var ro = vm.oar[key];
1956
- if (isUndefined$1(ro)) {
1957
- ro = vm.oar[key] = createAccessorReactiveObserver(vm, _set2);
1958
- }
1959
- // every time we invoke this setter from outside (through this wrapper setter)
1960
- // we should reset the value and then debounce just in case there is a pending
1961
- // invocation the next tick that is not longer relevant since the value is changing
1962
- // from outside.
1963
- ro.reset(newValue);
1964
- ro.observe(function () {
1965
- _set2.call(_this3, newValue);
1966
- });
1967
- } else {
1968
- _set2.call(this, newValue);
1969
- }
1909
+ _set2.call(this, newValue);
1970
1910
  }
1971
1911
  },
1972
1912
  enumerable: enumerable,
@@ -2158,13 +2098,6 @@
2158
2098
  var meta = signedDecoratorToMetaMap.get(Ctor);
2159
2099
  return isUndefined$1(meta) ? defaultMeta : meta;
2160
2100
  }
2161
-
2162
- /*
2163
- * Copyright (c) 2018, salesforce.com, inc.
2164
- * All rights reserved.
2165
- * SPDX-License-Identifier: MIT
2166
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2167
- */
2168
2101
  var signedTemplateSet = new Set();
2169
2102
  function defaultEmptyTemplate() {
2170
2103
  return [];
@@ -2179,32 +2112,6 @@
2179
2112
  */
2180
2113
  function registerTemplate(tpl) {
2181
2114
  signedTemplateSet.add(tpl);
2182
- // FIXME[@W-10950976]: the template object should be frozen, and it should not be possible to set
2183
- // the stylesheets or stylesheetToken(s). For backwards compat, though, we shim stylesheetTokens
2184
- // on top of stylesheetToken for anyone who is accessing the old internal API.
2185
- // Details: https://salesforce.quip.com/v1rmAFu2cKAr
2186
- defineProperty(tpl, 'stylesheetTokens', {
2187
- enumerable: true,
2188
- configurable: true,
2189
- get: function get() {
2190
- var stylesheetToken = this.stylesheetToken;
2191
- if (isUndefined$1(stylesheetToken)) {
2192
- return stylesheetToken;
2193
- }
2194
- // Shim for the old `stylesheetTokens` property
2195
- // See https://github.com/salesforce/lwc/pull/2332/files#diff-7901555acef29969adaa6583185b3e9bce475cdc6f23e799a54e0018cb18abaa
2196
- return {
2197
- hostAttribute: "".concat(stylesheetToken, "-host"),
2198
- shadowAttribute: stylesheetToken
2199
- };
2200
- },
2201
- set: function set(value) {
2202
- // If the value is null or some other exotic object, you would be broken anyway in the past
2203
- // because the engine would try to access hostAttribute/shadowAttribute, which would throw an error.
2204
- // However it may be undefined in newer versions of LWC, so we need to guard against that case.
2205
- this.stylesheetToken = isUndefined$1(value) ? undefined : value.shadowAttribute;
2206
- }
2207
- });
2208
2115
  // chaining this method as a way to wrap existing
2209
2116
  // assignment of templates easily, without too much transformation
2210
2117
  return tpl;
@@ -2305,10 +2212,10 @@
2305
2212
  if (isFunction$1(SuperClass)) {
2306
2213
  HTMLBridgeElement = /*#__PURE__*/function (_SuperClass) {
2307
2214
  _inherits(HTMLBridgeElement, _SuperClass);
2308
- var _super4 = _createSuper(HTMLBridgeElement);
2215
+ var _super3 = _createSuper(HTMLBridgeElement);
2309
2216
  function HTMLBridgeElement() {
2310
2217
  _classCallCheck(this, HTMLBridgeElement);
2311
- return _super4.apply(this, arguments);
2218
+ return _super3.apply(this, arguments);
2312
2219
  }
2313
2220
  return _createClass(HTMLBridgeElement);
2314
2221
  }(SuperClass);
@@ -2346,7 +2253,7 @@
2346
2253
  };
2347
2254
  }
2348
2255
  // expose public methods as props on the new Element Bridge
2349
- for (var _i10 = 0, _len3 = methods.length; _i10 < _len3; _i10 += 1) {
2256
+ for (var _i10 = 0, _len = methods.length; _i10 < _len; _i10 += 1) {
2350
2257
  var methodName = methods[_i10];
2351
2258
  descriptors[methodName] = {
2352
2259
  value: createMethodCaller(methodName),
@@ -2372,6 +2279,20 @@
2372
2279
  return HTMLBridgeElement;
2373
2280
  }
2374
2281
  var BaseBridgeElement = HTMLBridgeElementFactory(HTMLElementConstructor, getOwnPropertyNames$1(HTMLElementOriginalDescriptors), []);
2282
+ {
2283
+ // This ARIA reflection only really makes sense in the browser. On the server, there is no `renderedCallback()`,
2284
+ // so you cannot do e.g. `this.template.querySelector('x-child').ariaBusy = 'true'`. So we don't need to expose
2285
+ // ARIA props outside the LightningElement
2286
+ if (lwcRuntimeFlags.DISABLE_ARIA_REFLECTION_POLYFILL) {
2287
+ // If ARIA reflection is not applied globally to Element.prototype, apply it to HTMLBridgeElement.prototype.
2288
+ // This allows `elm.aria*` property accessors to work from outside a component, and to reflect `aria-*` attrs.
2289
+ // This is especially important because the template compiler compiles aria-* attrs on components to aria* props
2290
+ //
2291
+ // Also note that we apply this to BaseBridgeElement.prototype to avoid excessively redefining property
2292
+ // accessors inside the HTMLBridgeElementFactory.
2293
+ applyAriaReflection(BaseBridgeElement.prototype);
2294
+ }
2295
+ }
2375
2296
  freeze(BaseBridgeElement);
2376
2297
  seal(BaseBridgeElement.prototype);
2377
2298
  function setActiveVM(vm) {
@@ -3777,7 +3698,7 @@
3777
3698
  // undefined is for root components, but root components cannot accept slotted content
3778
3699
  setVMBeingRendered(slotset.owner);
3779
3700
  try {
3780
- ArrayPush$1.apply(newChildren, vnode.factory(data.slotData));
3701
+ ArrayPush$1.call(newChildren, vnode.factory(data.slotData, data.key));
3781
3702
  } finally {
3782
3703
  setVMBeingRendered(vmBeingRenderedInception);
3783
3704
  }
@@ -4109,7 +4030,7 @@
4109
4030
  }
4110
4031
  function buildParseFragmentFn(createFragmentFn) {
4111
4032
  return function (strings) {
4112
- for (var _len4 = arguments.length, keys = new Array(_len4 > 1 ? _len4 - 1 : 0), _key3 = 1; _key3 < _len4; _key3++) {
4033
+ for (var _len2 = arguments.length, keys = new Array(_len2 > 1 ? _len2 - 1 : 0), _key3 = 1; _key3 < _len2; _key3++) {
4113
4034
  keys[_key3 - 1] = arguments[_key3];
4114
4035
  }
4115
4036
  var cache = create(null);
@@ -4470,14 +4391,9 @@
4470
4391
  function resetComponentStateWhenRemoved(vm) {
4471
4392
  var state = vm.state;
4472
4393
  if (state !== 2 /* VMState.disconnected */) {
4473
- var oar = vm.oar,
4474
- tro = vm.tro;
4394
+ var tro = vm.tro;
4475
4395
  // Making sure that any observing record will not trigger the rehydrated on this vm
4476
4396
  tro.reset();
4477
- // Making sure that any observing accessor record will not trigger the setter to be reinvoked
4478
- for (var key in oar) {
4479
- oar[key].reset();
4480
- }
4481
4397
  runDisconnectedCallback(vm);
4482
4398
  // Spec: https://dom.spec.whatwg.org/#concept-node-remove (step 14-15)
4483
4399
  runChildNodesDisconnectedCallback(vm);
@@ -4522,7 +4438,6 @@
4522
4438
  cmpSlots: {
4523
4439
  slotAssignments: create(null)
4524
4440
  },
4525
- oar: create(null),
4526
4441
  cmpTemplate: null,
4527
4442
  hydrated: Boolean(hydrated),
4528
4443
  renderMode: def.renderMode,
@@ -4865,17 +4780,17 @@
4865
4780
  var WireMetaMap = new Map();
4866
4781
  var WireContextRegistrationEvent = /*#__PURE__*/function (_CustomEvent) {
4867
4782
  _inherits(WireContextRegistrationEvent, _CustomEvent);
4868
- var _super5 = _createSuper(WireContextRegistrationEvent);
4783
+ var _super4 = _createSuper(WireContextRegistrationEvent);
4869
4784
  function WireContextRegistrationEvent(adapterToken, _ref4) {
4870
- var _this4;
4785
+ var _this2;
4871
4786
  var setNewContext = _ref4.setNewContext,
4872
4787
  setDisconnectedCallback = _ref4.setDisconnectedCallback;
4873
4788
  _classCallCheck(this, WireContextRegistrationEvent);
4874
- _this4 = _super5.call(this, adapterToken, {
4789
+ _this2 = _super4.call(this, adapterToken, {
4875
4790
  bubbles: true,
4876
4791
  composed: true
4877
4792
  });
4878
- defineProperties(_assertThisInitialized(_this4), {
4793
+ defineProperties(_assertThisInitialized(_this2), {
4879
4794
  setNewContext: {
4880
4795
  value: setNewContext
4881
4796
  },
@@ -4883,7 +4798,7 @@
4883
4798
  value: setDisconnectedCallback
4884
4799
  }
4885
4800
  });
4886
- return _this4;
4801
+ return _this2;
4887
4802
  }
4888
4803
  return _createClass(WireContextRegistrationEvent);
4889
4804
  }( /*#__PURE__*/_wrapNativeSuper(CustomEvent));
@@ -5531,9 +5446,58 @@
5531
5446
  hooksAreSet = true;
5532
5447
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
5533
5448
  }
5534
- // TODO [#2782]: eventually freezeTemplate() will _actually_ freeze the tmpl object. Today it
5535
- // just warns on mutation.
5449
+ // Deeply freeze the entire array (of arrays) of stylesheet factory functions
5450
+ function deepFreeze(stylesheets) {
5451
+ traverseStylesheets(stylesheets, function (subStylesheets) {
5452
+ freeze(subStylesheets);
5453
+ });
5454
+ }
5455
+ // Deep-traverse an array (of arrays) of stylesheet factory functions, and call the callback for every array/function
5456
+ function traverseStylesheets(stylesheets, callback) {
5457
+ callback(stylesheets);
5458
+ for (var _i33 = 0; _i33 < stylesheets.length; _i33++) {
5459
+ var stylesheet = stylesheets[_i33];
5460
+ if (isArray$1(stylesheet)) {
5461
+ traverseStylesheets(stylesheet, callback);
5462
+ } else {
5463
+ callback(stylesheet);
5464
+ }
5465
+ }
5466
+ }
5536
5467
  function freezeTemplate(tmpl) {
5468
+ if (lwcRuntimeFlags.ENABLE_FROZEN_TEMPLATE) {
5469
+ // Deep freeze the template
5470
+ freeze(tmpl);
5471
+ if (!isUndefined$1(tmpl.stylesheets)) {
5472
+ deepFreeze(tmpl.stylesheets);
5473
+ }
5474
+ } else {
5475
+ // TODO [#2782]: remove this flag and delete the legacy behavior
5476
+ // When ENABLE_FROZEN_TEMPLATE is false, then we shim stylesheetTokens on top of stylesheetToken for anyone who
5477
+ // is accessing the old internal API (backwards compat). Details: https://salesforce.quip.com/v1rmAFu2cKAr
5478
+ defineProperty(tmpl, 'stylesheetTokens', {
5479
+ enumerable: true,
5480
+ configurable: true,
5481
+ get: function get() {
5482
+ var stylesheetToken = this.stylesheetToken;
5483
+ if (isUndefined$1(stylesheetToken)) {
5484
+ return stylesheetToken;
5485
+ }
5486
+ // Shim for the old `stylesheetTokens` property
5487
+ // See https://github.com/salesforce/lwc/pull/2332/files#diff-7901555acef29969adaa6583185b3e9bce475cdc6f23e799a54e0018cb18abaa
5488
+ return {
5489
+ hostAttribute: "".concat(stylesheetToken, "-host"),
5490
+ shadowAttribute: stylesheetToken
5491
+ };
5492
+ },
5493
+ set: function set(value) {
5494
+ // If the value is null or some other exotic object, you would be broken anyway in the past
5495
+ // because the engine would try to access hostAttribute/shadowAttribute, which would throw an error.
5496
+ // However it may be undefined in newer versions of LWC, so we need to guard against that case.
5497
+ this.stylesheetToken = isUndefined$1(value) ? undefined : value.shadowAttribute;
5498
+ }
5499
+ });
5500
+ }
5537
5501
  }
5538
5502
 
5539
5503
  /*
@@ -5708,10 +5672,10 @@
5708
5672
  // which are not equipped to be initialized that way.
5709
5673
  var clazz = /*#__PURE__*/function (_HTMLElementAlias) {
5710
5674
  _inherits(clazz, _HTMLElementAlias);
5711
- var _super6 = _createSuper(clazz);
5675
+ var _super5 = _createSuper(clazz);
5712
5676
  function clazz() {
5713
5677
  _classCallCheck(this, clazz);
5714
- return _super6.apply(this, arguments);
5678
+ return _super5.apply(this, arguments);
5715
5679
  }
5716
5680
  return _createClass(clazz);
5717
5681
  }(HTMLElementAlias);
@@ -5757,24 +5721,24 @@
5757
5721
  // TODO [#2972]: this class should expose observedAttributes as necessary
5758
5722
  var UpgradableConstructor = /*#__PURE__*/function (_HTMLElement) {
5759
5723
  _inherits(UpgradableConstructor, _HTMLElement);
5760
- var _super7 = _createSuper(UpgradableConstructor);
5724
+ var _super6 = _createSuper(UpgradableConstructor);
5761
5725
  function UpgradableConstructor(upgradeCallback) {
5762
- var _this5;
5726
+ var _this3;
5763
5727
  _classCallCheck(this, UpgradableConstructor);
5764
- _this5 = _super7.call(this);
5728
+ _this3 = _super6.call(this);
5765
5729
  // If the element is not created using lwc.createElement(), e.g. `document.createElement('x-foo')`,
5766
5730
  // then elementBeingUpgraded will be false
5767
5731
  if (elementBeingUpgradedByLWC) {
5768
- upgradeCallback(_assertThisInitialized(_this5));
5732
+ upgradeCallback(_assertThisInitialized(_this3));
5769
5733
  } else if (hasConnectedCallback || hasDisconnectedCallback) {
5770
5734
  // If this element has connected or disconnected callbacks, then we need to keep track of
5771
5735
  // instances that were created outside LWC (i.e. not created by `lwc.createElement()`).
5772
5736
  // If the element has no connected or disconnected callbacks, then we don't need to track this.
5773
- elementsUpgradedOutsideLWC.add(_assertThisInitialized(_this5));
5737
+ elementsUpgradedOutsideLWC.add(_assertThisInitialized(_this3));
5774
5738
  // TODO [#2970]: LWC elements cannot be upgraded via new Ctor()
5775
5739
  // Do we want to support this? Throw an error? Currently for backwards compat it's a no-op.
5776
5740
  }
5777
- return _this5;
5741
+ return _this3;
5778
5742
  }
5779
5743
  return _createClass(UpgradableConstructor);
5780
5744
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement)); // Do not unnecessarily add a connectedCallback/disconnectedCallback, as it introduces perf overhead
@@ -5883,9 +5847,9 @@
5883
5847
  function createPivotingClass(tagName, registeredDefinition) {
5884
5848
  var PivotCtor = /*#__PURE__*/function (_NativeHTMLElement) {
5885
5849
  _inherits(PivotCtor, _NativeHTMLElement);
5886
- var _super8 = _createSuper(PivotCtor);
5850
+ var _super7 = _createSuper(PivotCtor);
5887
5851
  function PivotCtor(UserCtor) {
5888
- var _this6;
5852
+ var _this4;
5889
5853
  _classCallCheck(this, PivotCtor);
5890
5854
  // This constructor can only be invoked by:
5891
5855
  // a) the browser instantiating an element from parsing or via document.createElement.
@@ -5895,7 +5859,7 @@
5895
5859
  // If the caller signals via UserCtor that this is in fact a controlled
5896
5860
  // definition, we use that one, otherwise fallback to the global
5897
5861
  // internal registry.
5898
- _this6 = _super8.call(this);
5862
+ _this4 = _super7.call(this);
5899
5863
  var userCtorIsDefined = !isUndefined$1(UserCtor);
5900
5864
  if (userCtorIsDefined) {
5901
5865
  if (!isConstructor(UserCtor)) {
@@ -5907,15 +5871,15 @@
5907
5871
  }
5908
5872
  var definition = userCtorIsDefined ? getOrCreateDefinitionForConstructor(UserCtor) : globalDefinitionsByTag.get(tagName);
5909
5873
  if (!isUndefined$1(definition)) {
5910
- internalUpgrade(_assertThisInitialized(_this6), registeredDefinition, definition);
5874
+ internalUpgrade(_assertThisInitialized(_this4), registeredDefinition, definition);
5911
5875
  } else {
5912
5876
  // This is the case in which there is no global definition, and
5913
5877
  // it is not handled by LWC (otherwise it will have a valid UserCtor)
5914
5878
  // so we need to add it to the pending queue just in case it eventually
5915
5879
  // gets defined in the global registry.
5916
- pendingRegistryForElement.set(_assertThisInitialized(_this6), registeredDefinition);
5880
+ pendingRegistryForElement.set(_assertThisInitialized(_this4), registeredDefinition);
5917
5881
  }
5918
- return _this6;
5882
+ return _this4;
5919
5883
  }
5920
5884
  _createClass(PivotCtor, [{
5921
5885
  key: "connectedCallback",
@@ -6153,17 +6117,17 @@
6153
6117
  function flushPendingWhenDefinedCallbacks(tagName, ctor) {
6154
6118
  var resolvers = pendingWhenDefinedCallbacks.get(tagName);
6155
6119
  if (!isUndefined$1(resolvers)) {
6156
- var _iterator6 = _createForOfIteratorHelper(resolvers),
6157
- _step6;
6120
+ var _iterator7 = _createForOfIteratorHelper(resolvers),
6121
+ _step7;
6158
6122
  try {
6159
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
6160
- var resolver = _step6.value;
6123
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
6124
+ var resolver = _step7.value;
6161
6125
  resolver(ctor);
6162
6126
  }
6163
6127
  } catch (err) {
6164
- _iterator6.e(err);
6128
+ _iterator7.e(err);
6165
6129
  } finally {
6166
- _iterator6.f();
6130
+ _iterator7.f();
6167
6131
  }
6168
6132
  }
6169
6133
  pendingWhenDefinedCallbacks.delete(tagName);
@@ -6213,11 +6177,11 @@
6213
6177
  var awaiting = awaitingUpgrade.get(tagName);
6214
6178
  if (!isUndefined$1(awaiting)) {
6215
6179
  awaitingUpgrade.delete(tagName);
6216
- var _iterator7 = _createForOfIteratorHelper(awaiting),
6217
- _step7;
6180
+ var _iterator8 = _createForOfIteratorHelper(awaiting),
6181
+ _step8;
6218
6182
  try {
6219
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
6220
- var element = _step7.value;
6183
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
6184
+ var element = _step8.value;
6221
6185
  var registeredDefinition = pendingRegistryForElement.get(element);
6222
6186
  // At this point, registeredDefinition should never be undefined because awaitingUpgrade
6223
6187
  // is only populated when we haven't run internalUpgrade yet, and we only populate
@@ -6229,9 +6193,9 @@
6229
6193
  }
6230
6194
  }
6231
6195
  } catch (err) {
6232
- _iterator7.e(err);
6196
+ _iterator8.e(err);
6233
6197
  } finally {
6234
- _iterator7.f();
6198
+ _iterator8.f();
6235
6199
  }
6236
6200
  }
6237
6201
  // If anyone called customElements.whenDefined() and is still waiting for a promise resolution, resolve now
@@ -6379,13 +6343,13 @@
6379
6343
  // TODO [#2972]: this class should expose observedAttributes as necessary
6380
6344
  return /*#__PURE__*/function (_HTMLElementToExtend) {
6381
6345
  _inherits(UserConstructor, _HTMLElementToExtend);
6382
- var _super9 = _createSuper(UserConstructor);
6346
+ var _super8 = _createSuper(UserConstructor);
6383
6347
  function UserConstructor() {
6384
- var _this7;
6348
+ var _this5;
6385
6349
  _classCallCheck(this, UserConstructor);
6386
- _this7 = _super9.call(this);
6387
- upgradeCallback(_assertThisInitialized(_this7));
6388
- return _this7;
6350
+ _this5 = _super8.call(this);
6351
+ upgradeCallback(_assertThisInitialized(_this5));
6352
+ return _this5;
6389
6353
  }
6390
6354
  // Note that there is no need to do the "avoid defining connectedCallback/disconnectedCallback" optimization
6391
6355
  // here, because in create-scoped-registry.ts, the registered class will always have these callbacks anyway.
@@ -6508,7 +6472,7 @@
6508
6472
  function isNull(obj) {
6509
6473
  return obj === null;
6510
6474
  }
6511
- /** version: 2.32.0 */
6475
+ /** version: 2.33.0 */
6512
6476
 
6513
6477
  /*
6514
6478
  * Copyright (c) 2018, salesforce.com, inc.
@@ -6567,17 +6531,17 @@
6567
6531
  exports.createFragment = function (html) {
6568
6532
  var wrapperTags = topLevelWrappingMap[getTagName(html)];
6569
6533
  if (!isUndefined(wrapperTags)) {
6570
- var _iterator8 = _createForOfIteratorHelper(wrapperTags),
6571
- _step8;
6534
+ var _iterator9 = _createForOfIteratorHelper(wrapperTags),
6535
+ _step9;
6572
6536
  try {
6573
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
6574
- var wrapperTag = _step8.value;
6537
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
6538
+ var wrapperTag = _step9.value;
6575
6539
  html = "<".concat(wrapperTag, ">").concat(html, "</").concat(wrapperTag, ">");
6576
6540
  }
6577
6541
  } catch (err) {
6578
- _iterator8.e(err);
6542
+ _iterator9.e(err);
6579
6543
  } finally {
6580
- _iterator8.f();
6544
+ _iterator9.f();
6581
6545
  }
6582
6546
  }
6583
6547
  // For IE11, the document title must not be undefined, but it can be an empty string
@@ -6586,7 +6550,7 @@
6586
6550
  doc.body.innerHTML = html;
6587
6551
  var content = doc.body;
6588
6552
  if (!isUndefined(wrapperTags)) {
6589
- for (var _i33 = 0; _i33 < wrapperTags.length; _i33++) {
6553
+ for (var _i34 = 0; _i34 < wrapperTags.length; _i34++) {
6590
6554
  content = content.firstChild;
6591
6555
  }
6592
6556
  }
@@ -6779,8 +6743,8 @@
6779
6743
  tagName: element.tagName.toLowerCase(),
6780
6744
  hydrated: true
6781
6745
  });
6782
- for (var _i34 = 0, _Object$entries2 = Object.entries(props); _i34 < _Object$entries2.length; _i34++) {
6783
- var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i34], 2),
6746
+ for (var _i35 = 0, _Object$entries2 = Object.entries(props); _i35 < _Object$entries2.length; _i35++) {
6747
+ var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i35], 2),
6784
6748
  key = _Object$entries2$_i[0],
6785
6749
  value = _Object$entries2$_i[1];
6786
6750
  element[key] = value;
@@ -6853,23 +6817,23 @@
6853
6817
  var _attributeChangedCallback = HtmlPrototype.prototype.attributeChangedCallback;
6854
6818
  return _a = /*#__PURE__*/function (_HTMLElement2) {
6855
6819
  _inherits(_a, _HTMLElement2);
6856
- var _super10 = _createSuper(_a);
6820
+ var _super9 = _createSuper(_a);
6857
6821
  function _a() {
6858
- var _this8;
6822
+ var _this6;
6859
6823
  _classCallCheck(this, _a);
6860
- _this8 = _super10.call(this);
6861
- if (_this8.isConnected) {
6824
+ _this6 = _super9.call(this);
6825
+ if (_this6.isConnected) {
6862
6826
  // this if block is hit when there's already an un-upgraded element in the DOM with the same tag name.
6863
- hydrateComponent(_assertThisInitialized(_this8), Ctor, {});
6864
- hydratedCustomElements.add(_assertThisInitialized(_this8));
6827
+ hydrateComponent(_assertThisInitialized(_this6), Ctor, {});
6828
+ hydratedCustomElements.add(_assertThisInitialized(_this6));
6865
6829
  } else {
6866
- createVM(_assertThisInitialized(_this8), Ctor, renderer, {
6830
+ createVM(_assertThisInitialized(_this6), Ctor, renderer, {
6867
6831
  mode: 'open',
6868
6832
  owner: null,
6869
- tagName: _this8.tagName
6833
+ tagName: _this6.tagName
6870
6834
  });
6871
6835
  }
6872
- return _this8;
6836
+ return _this6;
6873
6837
  }
6874
6838
  _createClass(_a, [{
6875
6839
  key: "connectedCallback",
@@ -7067,7 +7031,7 @@
7067
7031
  });
7068
7032
  freeze(LightningElement);
7069
7033
  seal(LightningElement.prototype);
7070
- /* version: 2.32.0 */
7034
+ /* version: 2.33.0 */
7071
7035
 
7072
7036
  exports.LightningElement = LightningElement;
7073
7037
  exports.__unstable__ProfilerControl = profilerControl;