lwc 2.35.1 → 2.35.2

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 (35) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +20 -20
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +20 -20
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +18 -18
  5. package/dist/engine-dom/iife/es5/engine-dom.js +208 -215
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +182 -189
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +20 -20
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +18 -18
  11. package/dist/engine-dom/umd/es5/engine-dom.js +208 -215
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +182 -189
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +8 -8
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +8 -8
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +5 -5
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +5 -5
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
  20. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +9 -9
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +7 -7
  22. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +5 -5
  23. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
  24. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +9 -9
  25. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +7 -7
  26. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  27. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  28. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  29. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  30. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  31. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  34. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  35. package/package.json +7 -7
@@ -18,16 +18,16 @@ var LWC = (function (exports) {
18
18
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
19
19
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
20
  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."); }
21
- 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; } }
21
+ 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; } }
22
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
+ 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; } } }; }
24
+ 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); }
25
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
23
26
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24
27
  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); } }
25
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26
29
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27
30
  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); }
28
- 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; } } }; }
29
- 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); }
30
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
31
31
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
32
32
  /* proxy-compat-disable */
33
33
  /**
@@ -59,10 +59,10 @@ var LWC = (function (exports) {
59
59
  }
60
60
  var assert = /*#__PURE__*/Object.freeze({
61
61
  __proto__: null,
62
+ fail: fail,
62
63
  invariant: invariant,
63
- isTrue: isTrue$1,
64
64
  isFalse: isFalse$1,
65
- fail: fail
65
+ isTrue: isTrue$1
66
66
  });
67
67
 
68
68
  /*
@@ -327,9 +327,9 @@ var LWC = (function (exports) {
327
327
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
328
328
  */
329
329
  // Increment whenever the LWC template compiler changes
330
- var LWC_VERSION = "2.35.1";
330
+ var LWC_VERSION = "2.35.2";
331
331
  var LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
332
- /** version: 2.35.1 */
332
+ /** version: 2.35.2 */
333
333
 
334
334
  /**
335
335
  * Copyright (C) 2018 salesforce.com, inc.
@@ -410,7 +410,7 @@ var LWC = (function (exports) {
410
410
  setFeatureFlag(name, value);
411
411
  }
412
412
  }
413
- /** version: 2.35.1 */
413
+ /** version: 2.35.2 */
414
414
 
415
415
  /**
416
416
  * Copyright (C) 2018 salesforce.com, inc.
@@ -474,7 +474,7 @@ var LWC = (function (exports) {
474
474
  }
475
475
  }
476
476
  }
477
- /** version: 2.35.1 */
477
+ /** version: 2.35.2 */
478
478
 
479
479
  /*
480
480
  * Copyright (c) 2018, salesforce.com, inc.
@@ -560,23 +560,15 @@ var LWC = (function (exports) {
560
560
  attachDispatcher: function attachDispatcher(dispatcher) {
561
561
  enabled$1 = true;
562
562
  currentDispatcher$1 = dispatcher;
563
- var _iterator = _createForOfIteratorHelper(onReportingEnabledCallbacks),
564
- _step;
565
- try {
566
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
567
- var callback = _step.value;
568
- try {
569
- callback();
570
- } catch (err) {
571
- // This should never happen. But if it does, we don't want one callback to cause another to fail
572
- // eslint-disable-next-line no-console
573
- console.error('Could not invoke callback', err);
574
- }
563
+ for (var _i3 = 0, _onReportingEnabledCa = onReportingEnabledCallbacks; _i3 < _onReportingEnabledCa.length; _i3++) {
564
+ var callback = _onReportingEnabledCa[_i3];
565
+ try {
566
+ callback();
567
+ } catch (err) {
568
+ // This should never happen. But if it does, we don't want one callback to cause another to fail
569
+ // eslint-disable-next-line no-console
570
+ console.error('Could not invoke callback', err);
575
571
  }
576
- } catch (err) {
577
- _iterator.e(err);
578
- } finally {
579
- _iterator.f();
580
572
  }
581
573
  onReportingEnabledCallbacks.length = 0; // clear the array
582
574
  },
@@ -730,8 +722,8 @@ var LWC = (function (exports) {
730
722
  if (!isUndefined$1(reactiveRecord)) {
731
723
  var reactiveObservers = reactiveRecord[key];
732
724
  if (!isUndefined$1(reactiveObservers)) {
733
- for (var _i3 = 0, len = reactiveObservers.length; _i3 < len; _i3 += 1) {
734
- var ro = reactiveObservers[_i3];
725
+ for (var _i4 = 0, len = reactiveObservers.length; _i4 < len; _i4 += 1) {
726
+ var ro = reactiveObservers[_i4];
735
727
  ro.notify();
736
728
  }
737
729
  }
@@ -790,9 +782,9 @@ var LWC = (function (exports) {
790
782
  var listeners = this.listeners;
791
783
  var len = listeners.length;
792
784
  if (len > 0) {
793
- for (var _i4 = 0; _i4 < len; _i4 += 1) {
794
- var set = listeners[_i4];
795
- var pos = ArrayIndexOf.call(listeners[_i4], this);
785
+ for (var _i5 = 0; _i5 < len; _i5 += 1) {
786
+ var set = listeners[_i5];
787
+ var pos = ArrayIndexOf.call(listeners[_i5], this);
796
788
  ArraySplice.call(set, pos, 1);
797
789
  }
798
790
  listeners.length = 0;
@@ -849,8 +841,8 @@ var LWC = (function (exports) {
849
841
  }
850
842
  var callbacks = nextTickCallbackQueue;
851
843
  nextTickCallbackQueue = []; // reset to a new queue
852
- for (var _i5 = 0, len = callbacks.length; _i5 < len; _i5 += 1) {
853
- callbacks[_i5]();
844
+ for (var _i6 = 0, len = callbacks.length; _i6 < len; _i6 += 1) {
845
+ callbacks[_i6]();
854
846
  }
855
847
  }
856
848
  function addCallbackToNextTick(callback) {
@@ -877,11 +869,11 @@ var LWC = (function (exports) {
877
869
  function parseStyleText(cssText) {
878
870
  var styleMap = {};
879
871
  var declarations = cssText.split(DECLARATION_DELIMITER);
880
- var _iterator2 = _createForOfIteratorHelper(declarations),
881
- _step2;
872
+ var _iterator = _createForOfIteratorHelper(declarations),
873
+ _step;
882
874
  try {
883
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
884
- var declaration = _step2.value;
875
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
876
+ var declaration = _step.value;
885
877
  if (declaration) {
886
878
  var _declaration$split = declaration.split(PROPERTY_DELIMITER),
887
879
  _declaration$split2 = _slicedToArray(_declaration$split, 2),
@@ -893,17 +885,17 @@ var LWC = (function (exports) {
893
885
  }
894
886
  }
895
887
  } catch (err) {
896
- _iterator2.e(err);
888
+ _iterator.e(err);
897
889
  } finally {
898
- _iterator2.f();
890
+ _iterator.f();
899
891
  }
900
892
  return styleMap;
901
893
  }
902
894
  // Make a shallow copy of an object but omit the given key
903
895
  function cloneAndOmitKey(object, keyToOmit) {
904
896
  var result = {};
905
- for (var _i6 = 0, _Object$keys = Object.keys(object); _i6 < _Object$keys.length; _i6++) {
906
- var key = _Object$keys[_i6];
897
+ for (var _i7 = 0, _Object$keys = Object.keys(object); _i7 < _Object$keys.length; _i7++) {
898
+ var key = _Object$keys[_i7];
907
899
  if (key !== keyToOmit) {
908
900
  result[key] = object[key];
909
901
  }
@@ -912,11 +904,11 @@ var LWC = (function (exports) {
912
904
  }
913
905
  function flattenStylesheets(stylesheets) {
914
906
  var list = [];
915
- var _iterator3 = _createForOfIteratorHelper(stylesheets),
916
- _step3;
907
+ var _iterator2 = _createForOfIteratorHelper(stylesheets),
908
+ _step2;
917
909
  try {
918
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
919
- var stylesheet = _step3.value;
910
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
911
+ var stylesheet = _step2.value;
920
912
  if (!Array.isArray(stylesheet)) {
921
913
  list.push(stylesheet);
922
914
  } else {
@@ -924,9 +916,9 @@ var LWC = (function (exports) {
924
916
  }
925
917
  }
926
918
  } catch (err) {
927
- _iterator3.e(err);
919
+ _iterator2.e(err);
928
920
  } finally {
929
- _iterator3.f();
921
+ _iterator2.f();
930
922
  }
931
923
  return list;
932
924
  }
@@ -2405,17 +2397,17 @@ var LWC = (function (exports) {
2405
2397
  var refs = refsCache.get(refVNodes);
2406
2398
  if (isUndefined$1(refs)) {
2407
2399
  refs = create(null);
2408
- var _iterator4 = _createForOfIteratorHelper(keys(refVNodes)),
2409
- _step4;
2400
+ var _iterator3 = _createForOfIteratorHelper(keys(refVNodes)),
2401
+ _step3;
2410
2402
  try {
2411
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
2412
- var key = _step4.value;
2403
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
2404
+ var key = _step3.value;
2413
2405
  refs[key] = refVNodes[key].elm;
2414
2406
  }
2415
2407
  } catch (err) {
2416
- _iterator4.e(err);
2408
+ _iterator3.e(err);
2417
2409
  } finally {
2418
- _iterator4.f();
2410
+ _iterator3.f();
2419
2411
  }
2420
2412
  freeze(refs);
2421
2413
  refsCache.set(refVNodes, refs);
@@ -2497,7 +2489,7 @@ var LWC = (function (exports) {
2497
2489
  var queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll'];
2498
2490
  // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
2499
2491
  var _loop = function _loop() {
2500
- var queryMethod = _queryMethods[_i7];
2492
+ var queryMethod = _queryMethods[_i8];
2501
2493
  queryAndChildGetterDescriptors[queryMethod] = {
2502
2494
  value: function value(arg) {
2503
2495
  var vm = getAssociatedVM(this);
@@ -2513,7 +2505,7 @@ var LWC = (function (exports) {
2513
2505
  writable: true
2514
2506
  };
2515
2507
  };
2516
- for (var _i7 = 0, _queryMethods = queryMethods; _i7 < _queryMethods.length; _i7++) {
2508
+ for (var _i8 = 0, _queryMethods = queryMethods; _i8 < _queryMethods.length; _i8++) {
2517
2509
  _loop();
2518
2510
  }
2519
2511
  defineProperties(LightningElement.prototype, queryAndChildGetterDescriptors);
@@ -2792,49 +2784,50 @@ var LWC = (function (exports) {
2792
2784
  }
2793
2785
  var wiredConnecting = context.wiredConnecting = [];
2794
2786
  var wiredDisconnecting = context.wiredDisconnecting = [];
2795
- for (var fieldNameOrMethod in wire) {
2787
+ var _loop2 = function _loop2() {
2796
2788
  var descriptor = wire[fieldNameOrMethod];
2797
2789
  var wireDef = WireMetaMap.get(descriptor);
2798
2790
  if (process.env.NODE_ENV !== 'production') {
2799
2791
  assert.invariant(wireDef, "Internal Error: invalid wire definition found.");
2800
2792
  }
2801
2793
  if (!isUndefined$1(wireDef)) {
2802
- (function () {
2803
- var _createConnector = createConnector(vm, fieldNameOrMethod, wireDef),
2804
- connector = _createConnector.connector,
2805
- computeConfigAndUpdate = _createConnector.computeConfigAndUpdate,
2806
- resetConfigWatcher = _createConnector.resetConfigWatcher;
2807
- var hasDynamicParams = wireDef.dynamic.length > 0;
2808
- ArrayPush$1.call(wiredConnecting, function () {
2809
- connector.connect();
2810
- if (!lwcRuntimeFlags.ENABLE_WIRE_SYNC_EMIT) {
2811
- if (hasDynamicParams) {
2812
- Promise.resolve().then(computeConfigAndUpdate);
2813
- return;
2814
- }
2794
+ var _createConnector = createConnector(vm, fieldNameOrMethod, wireDef),
2795
+ connector = _createConnector.connector,
2796
+ computeConfigAndUpdate = _createConnector.computeConfigAndUpdate,
2797
+ resetConfigWatcher = _createConnector.resetConfigWatcher;
2798
+ var hasDynamicParams = wireDef.dynamic.length > 0;
2799
+ ArrayPush$1.call(wiredConnecting, function () {
2800
+ connector.connect();
2801
+ if (!lwcRuntimeFlags.ENABLE_WIRE_SYNC_EMIT) {
2802
+ if (hasDynamicParams) {
2803
+ Promise.resolve().then(computeConfigAndUpdate);
2804
+ return;
2815
2805
  }
2816
- computeConfigAndUpdate();
2817
- });
2818
- ArrayPush$1.call(wiredDisconnecting, function () {
2819
- connector.disconnect();
2820
- resetConfigWatcher();
2821
- });
2822
- })();
2806
+ }
2807
+ computeConfigAndUpdate();
2808
+ });
2809
+ ArrayPush$1.call(wiredDisconnecting, function () {
2810
+ connector.disconnect();
2811
+ resetConfigWatcher();
2812
+ });
2823
2813
  }
2814
+ };
2815
+ for (var fieldNameOrMethod in wire) {
2816
+ _loop2();
2824
2817
  }
2825
2818
  }
2826
2819
  function connectWireAdapters(vm) {
2827
2820
  var wiredConnecting = vm.context.wiredConnecting;
2828
- for (var _i8 = 0, len = wiredConnecting.length; _i8 < len; _i8 += 1) {
2829
- wiredConnecting[_i8]();
2821
+ for (var _i9 = 0, len = wiredConnecting.length; _i9 < len; _i9 += 1) {
2822
+ wiredConnecting[_i9]();
2830
2823
  }
2831
2824
  }
2832
2825
  function disconnectWireAdapters(vm) {
2833
2826
  var wiredDisconnecting = vm.context.wiredDisconnecting;
2834
2827
  runWithBoundaryProtection(vm, vm, noop, function () {
2835
2828
  // job
2836
- for (var _i9 = 0, len = wiredDisconnecting.length; _i9 < len; _i9 += 1) {
2837
- wiredDisconnecting[_i9]();
2829
+ for (var _i10 = 0, len = wiredDisconnecting.length; _i10 < len; _i10 += 1) {
2830
+ wiredDisconnecting[_i10]();
2838
2831
  }
2839
2832
  }, noop);
2840
2833
  }
@@ -3168,8 +3161,8 @@ var LWC = (function (exports) {
3168
3161
  }
3169
3162
  }
3170
3163
  if (!isUndefined$1(fields)) {
3171
- for (var _i10 = 0, n = fields.length; _i10 < n; _i10++) {
3172
- var _fieldName2 = fields[_i10];
3164
+ for (var _i11 = 0, n = fields.length; _i11 < n; _i11++) {
3165
+ var _fieldName2 = fields[_i11];
3173
3166
  descriptor = getOwnPropertyDescriptor$1(proto, _fieldName2);
3174
3167
  if (process.env.NODE_ENV !== 'production') {
3175
3168
  validateObservedField(Ctor, _fieldName2, descriptor);
@@ -3391,8 +3384,8 @@ var LWC = (function (exports) {
3391
3384
  superObservedAttributes = _SuperClass$observedA === void 0 ? [] : _SuperClass$observedA;
3392
3385
  var descriptors = create(null);
3393
3386
  // expose getters and setters for each public props on the new Element Bridge
3394
- for (var _i11 = 0, len = props.length; _i11 < len; _i11 += 1) {
3395
- var _propName = props[_i11];
3387
+ for (var _i12 = 0, len = props.length; _i12 < len; _i12 += 1) {
3388
+ var _propName = props[_i12];
3396
3389
  attributeToPropMap[htmlPropertyToAttribute(_propName)] = _propName;
3397
3390
  descriptors[_propName] = {
3398
3391
  get: createGetter(_propName),
@@ -3402,8 +3395,8 @@ var LWC = (function (exports) {
3402
3395
  };
3403
3396
  }
3404
3397
  // expose public methods as props on the new Element Bridge
3405
- for (var _i12 = 0, _len = methods.length; _i12 < _len; _i12 += 1) {
3406
- var methodName = methods[_i12];
3398
+ for (var _i13 = 0, _len = methods.length; _i13 < _len; _i13 += 1) {
3399
+ var methodName = methods[_i13];
3407
3400
  descriptors[methodName] = {
3408
3401
  value: createMethodCaller(methodName),
3409
3402
  writable: true,
@@ -3932,8 +3925,8 @@ var LWC = (function (exports) {
3932
3925
  function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
3933
3926
  var content = [];
3934
3927
  var root;
3935
- for (var _i13 = 0; _i13 < stylesheets.length; _i13++) {
3936
- var stylesheet = stylesheets[_i13];
3928
+ for (var _i14 = 0; _i14 < stylesheets.length; _i14++) {
3929
+ var stylesheet = stylesheets[_i14];
3937
3930
  if (isArray$1(stylesheet)) {
3938
3931
  ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, stylesheetToken, vm));
3939
3932
  } else {
@@ -4041,8 +4034,8 @@ var LWC = (function (exports) {
4041
4034
  shadowMode = vm.shadowMode,
4042
4035
  insertStylesheet = vm.renderer.insertStylesheet;
4043
4036
  if (renderMode === 1 /* RenderMode.Shadow */ && shadowMode === 1 /* ShadowMode.Synthetic */) {
4044
- for (var _i14 = 0; _i14 < stylesheets.length; _i14++) {
4045
- insertStylesheet(stylesheets[_i14]);
4037
+ for (var _i15 = 0; _i15 < stylesheets.length; _i15++) {
4038
+ insertStylesheet(stylesheets[_i15]);
4046
4039
  }
4047
4040
  } else if (vm.hydrated) {
4048
4041
  // Note: We need to ensure that during hydration, the stylesheets method is the same as those in ssr.
@@ -4055,8 +4048,8 @@ var LWC = (function (exports) {
4055
4048
  var root = getNearestNativeShadowComponent(vm);
4056
4049
  // null root means a global style
4057
4050
  var target = isNull(root) ? undefined : root.shadowRoot;
4058
- for (var _i15 = 0; _i15 < stylesheets.length; _i15++) {
4059
- insertStylesheet(stylesheets[_i15], target);
4051
+ for (var _i16 = 0; _i16 < stylesheets.length; _i16++) {
4052
+ insertStylesheet(stylesheets[_i16], target);
4060
4053
  }
4061
4054
  }
4062
4055
  return null;
@@ -4370,8 +4363,8 @@ var LWC = (function (exports) {
4370
4363
  return;
4371
4364
  }
4372
4365
  var setCSSStyleProperty = renderer.setCSSStyleProperty;
4373
- for (var _i16 = 0; _i16 < styleDecls.length; _i16++) {
4374
- var _styleDecls$_i = _slicedToArray(styleDecls[_i16], 3),
4366
+ for (var _i17 = 0; _i17 < styleDecls.length; _i17++) {
4367
+ var _styleDecls$_i = _slicedToArray(styleDecls[_i17], 3),
4375
4368
  prop = _styleDecls$_i[0],
4376
4369
  value = _styleDecls$_i[1],
4377
4370
  important = _styleDecls$_i[2];
@@ -4853,8 +4846,8 @@ var LWC = (function (exports) {
4853
4846
  // If no VFragment is found in children, we don't need to traverse anything or mark the children dynamic and can return early.
4854
4847
  var nodeStack = [];
4855
4848
  var fragmentFound = false;
4856
- for (var _i17 = children.length - 1; _i17 > -1; _i17 -= 1) {
4857
- var child = children[_i17];
4849
+ for (var _i18 = children.length - 1; _i18 > -1; _i18 -= 1) {
4850
+ var child = children[_i18];
4858
4851
  ArrayPush$1.call(nodeStack, child);
4859
4852
  fragmentFound = fragmentFound || !!(child && isVFragment(child));
4860
4853
  }
@@ -4866,8 +4859,8 @@ var LWC = (function (exports) {
4866
4859
  if (!isNull(currentNode) && isVFragment(currentNode)) {
4867
4860
  var fChildren = currentNode.children;
4868
4861
  // Ignore the start and end text node delimiters
4869
- for (var _i18 = fChildren.length - 2; _i18 > 0; _i18 -= 1) {
4870
- ArrayPush$1.call(nodeStack, fChildren[_i18]);
4862
+ for (var _i19 = fChildren.length - 2; _i19 > 0; _i19 -= 1) {
4863
+ ArrayPush$1.call(nodeStack, fChildren[_i19]);
4871
4864
  }
4872
4865
  } else {
4873
4866
  ArrayPush$1.call(flattenedChildren, currentNode);
@@ -4906,8 +4899,8 @@ var LWC = (function (exports) {
4906
4899
  var oldSlotsMapping = vm.cmpSlots.slotAssignments;
4907
4900
  var cmpSlotsMapping = create(null);
4908
4901
  // Collect all slots into cmpSlotsMapping
4909
- for (var _i19 = 0, len = children.length; _i19 < len; _i19 += 1) {
4910
- var vnode = children[_i19];
4902
+ for (var _i20 = 0, len = children.length; _i20 < len; _i20 += 1) {
4903
+ var vnode = children[_i20];
4911
4904
  if (isNull(vnode)) {
4912
4905
  continue;
4913
4906
  }
@@ -4932,8 +4925,8 @@ var LWC = (function (exports) {
4932
4925
  markComponentAsDirty(vm);
4933
4926
  return;
4934
4927
  }
4935
- for (var _i20 = 0, _len2 = oldKeys.length; _i20 < _len2; _i20 += 1) {
4936
- var key = oldKeys[_i20];
4928
+ for (var _i21 = 0, _len2 = oldKeys.length; _i21 < _len2; _i21 += 1) {
4929
+ var key = oldKeys[_i21];
4937
4930
  if (isUndefined$1(cmpSlotsMapping[key]) || oldSlotsMapping[key].length !== cmpSlotsMapping[key].length) {
4938
4931
  markComponentAsDirty(vm);
4939
4932
  return;
@@ -5056,11 +5049,11 @@ var LWC = (function (exports) {
5056
5049
  if (oldStartIdx > oldEndIdx) {
5057
5050
  // There's some cases in which the sub array of vnodes to be inserted is followed by null(s) and an
5058
5051
  // already processed vnode, in such cases the vnodes to be inserted should be before that processed vnode.
5059
- var _i21 = newEndIdx;
5052
+ var _i22 = newEndIdx;
5060
5053
  var n;
5061
5054
  do {
5062
- n = newCh[++_i21];
5063
- } while (!isVNode(n) && _i21 < newChEnd);
5055
+ n = newCh[++_i22];
5056
+ } while (!isVNode(n) && _i22 < newChEnd);
5064
5057
  before = isVNode(n) ? n.elm : null;
5065
5058
  mountVNodes(newCh, parent, renderer, before, newStartIdx, newEndIdx + 1);
5066
5059
  } else {
@@ -5085,9 +5078,9 @@ var LWC = (function (exports) {
5085
5078
  // if the old list is not empty, the new list MUST have the same
5086
5079
  // amount of nodes, that's why we call this static children
5087
5080
  var anchor = null;
5088
- for (var _i22 = c2Length - 1; _i22 >= 0; _i22 -= 1) {
5089
- var n1 = c1[_i22];
5090
- var n2 = c2[_i22];
5081
+ for (var _i23 = c2Length - 1; _i23 >= 0; _i23 -= 1) {
5082
+ var n1 = c1[_i23];
5083
+ var n2 = c2[_i23];
5091
5084
  if (n2 !== n1) {
5092
5085
  if (isVNode(n1)) {
5093
5086
  if (isVNode(n2)) {
@@ -5212,8 +5205,8 @@ var LWC = (function (exports) {
5212
5205
  if (!isUndefined$1(slotset) && !isUndefined$1(slotset.slotAssignments) && !isUndefined$1(slotset.slotAssignments[slotName]) && slotset.slotAssignments[slotName].length !== 0) {
5213
5206
  var newChildren = [];
5214
5207
  var slotAssignments = slotset.slotAssignments[slotName];
5215
- for (var _i23 = 0; _i23 < slotAssignments.length; _i23++) {
5216
- var vnode = slotAssignments[_i23];
5208
+ for (var _i24 = 0; _i24 < slotAssignments.length; _i24++) {
5209
+ var vnode = slotAssignments[_i24];
5217
5210
  if (!isNull(vnode)) {
5218
5211
  var assignedNodeIsScopedSlot = isVScopedSlotFragment(vnode);
5219
5212
  // The only sniff test for a scoped <slot> element is the presence of `slotData`
@@ -5735,23 +5728,23 @@ var LWC = (function (exports) {
5735
5728
  var classAttrToken = hasScopedStyles && hasStyleToken ? " class=\"".concat(stylesheetToken, "\"") : '';
5736
5729
  var attrToken = hasStyleToken && isSyntheticShadow ? ' ' + stylesheetToken : '';
5737
5730
  var htmlFragment = '';
5738
- for (var _i24 = 0, n = keys.length; _i24 < n; _i24++) {
5739
- switch (keys[_i24]) {
5731
+ for (var _i25 = 0, n = keys.length; _i25 < n; _i25++) {
5732
+ switch (keys[_i25]) {
5740
5733
  case 0:
5741
5734
  // styleToken in existing class attr
5742
- htmlFragment += strings[_i24] + classToken;
5735
+ htmlFragment += strings[_i25] + classToken;
5743
5736
  break;
5744
5737
  case 1:
5745
5738
  // styleToken for added class attr
5746
- htmlFragment += strings[_i24] + classAttrToken;
5739
+ htmlFragment += strings[_i25] + classAttrToken;
5747
5740
  break;
5748
5741
  case 2:
5749
5742
  // styleToken as attr
5750
- htmlFragment += strings[_i24] + attrToken;
5743
+ htmlFragment += strings[_i25] + attrToken;
5751
5744
  break;
5752
5745
  case 3:
5753
5746
  // ${1}${2}
5754
- htmlFragment += strings[_i24] + classAttrToken + attrToken;
5747
+ htmlFragment += strings[_i25] + classAttrToken + attrToken;
5755
5748
  break;
5756
5749
  }
5757
5750
  }
@@ -5856,8 +5849,8 @@ var LWC = (function (exports) {
5856
5849
  }
5857
5850
  function computeHasScopedStylesInStylesheets(stylesheets) {
5858
5851
  if (hasStyles(stylesheets)) {
5859
- for (var _i25 = 0; _i25 < stylesheets.length; _i25++) {
5860
- if (isTrue(stylesheets[_i25][KEY__SCOPED_CSS])) {
5852
+ for (var _i26 = 0; _i26 < stylesheets.length; _i26++) {
5853
+ if (isTrue(stylesheets[_i26][KEY__SCOPED_CSS])) {
5861
5854
  return true;
5862
5855
  }
5863
5856
  }
@@ -6053,8 +6046,8 @@ var LWC = (function (exports) {
6053
6046
  if (process.env.NODE_ENV !== 'production') {
6054
6047
  assert.isTrue(isObject(service), "Invalid service declaration, ".concat(service, ": service must be an object"));
6055
6048
  }
6056
- for (var _i26 = 0; _i26 < hooks.length; ++_i26) {
6057
- var hookName = hooks[_i26];
6049
+ for (var _i27 = 0; _i27 < hooks.length; ++_i27) {
6050
+ var hookName = hooks[_i27];
6058
6051
  if (hookName in service) {
6059
6052
  var l = Services[hookName];
6060
6053
  if (isUndefined$1(l)) {
@@ -6071,8 +6064,8 @@ var LWC = (function (exports) {
6071
6064
  var component = vm.component,
6072
6065
  def = vm.def,
6073
6066
  context = vm.context;
6074
- for (var _i27 = 0, len = cbs.length; _i27 < len; ++_i27) {
6075
- cbs[_i27].call(undefined, component, {}, def, context);
6067
+ for (var _i28 = 0, len = cbs.length; _i28 < len; ++_i28) {
6068
+ cbs[_i28].call(undefined, component, {}, def, context);
6076
6069
  }
6077
6070
  }
6078
6071
 
@@ -6226,8 +6219,8 @@ var LWC = (function (exports) {
6226
6219
  var valid = true;
6227
6220
  var validate = function validate(arrayOrStylesheet) {
6228
6221
  if (isArray$1(arrayOrStylesheet)) {
6229
- for (var _i28 = 0; _i28 < arrayOrStylesheet.length; _i28++) {
6230
- validate(arrayOrStylesheet[_i28]);
6222
+ for (var _i29 = 0; _i29 < arrayOrStylesheet.length; _i29++) {
6223
+ validate(arrayOrStylesheet[_i29]);
6231
6224
  }
6232
6225
  } else if (!isFunction$1(arrayOrStylesheet)) {
6233
6226
  // function assumed to be a stylesheet factory
@@ -6380,17 +6373,17 @@ var LWC = (function (exports) {
6380
6373
  return a.idx - b.idx;
6381
6374
  });
6382
6375
  rehydrateQueue = []; // reset to a new queue
6383
- for (var _i29 = 0, len = vms.length; _i29 < len; _i29 += 1) {
6384
- var vm = vms[_i29];
6376
+ for (var _i30 = 0, len = vms.length; _i30 < len; _i30 += 1) {
6377
+ var vm = vms[_i30];
6385
6378
  try {
6386
6379
  rehydrate(vm);
6387
6380
  } catch (error) {
6388
- if (_i29 + 1 < len) {
6381
+ if (_i30 + 1 < len) {
6389
6382
  // pieces of the queue are still pending to be rehydrated, those should have priority
6390
6383
  if (rehydrateQueue.length === 0) {
6391
6384
  addCallbackToNextTick(flushRehydrationQueue);
6392
6385
  }
6393
- ArrayUnshift.apply(rehydrateQueue, ArraySlice.call(vms, _i29 + 1));
6386
+ ArrayUnshift.apply(rehydrateQueue, ArraySlice.call(vms, _i30 + 1));
6394
6387
  }
6395
6388
  // we need to end the measure before throwing.
6396
6389
  logGlobalOperationEnd(8 /* OperationId.GlobalRehydrate */);
@@ -6459,8 +6452,8 @@ var LWC = (function (exports) {
6459
6452
  var vCustomElementCollection = vm.velements;
6460
6453
  // Reporting disconnection for every child in inverse order since they are
6461
6454
  // inserted in reserved order.
6462
- for (var _i30 = vCustomElementCollection.length - 1; _i30 >= 0; _i30 -= 1) {
6463
- var elm = vCustomElementCollection[_i30].elm;
6455
+ for (var _i31 = vCustomElementCollection.length - 1; _i31 >= 0; _i31 -= 1) {
6456
+ var elm = vCustomElementCollection[_i31].elm;
6464
6457
  // There are two cases where the element could be undefined:
6465
6458
  // * when there is an error during the construction phase, and an error
6466
6459
  // boundary picks it, there is a possibility that the VCustomElement
@@ -6491,8 +6484,8 @@ var LWC = (function (exports) {
6491
6484
  * defined on its shadow.
6492
6485
  */
6493
6486
  function recursivelyDisconnectChildren(vnodes) {
6494
- for (var _i31 = 0, len = vnodes.length; _i31 < len; _i31 += 1) {
6495
- var vnode = vnodes[_i31];
6487
+ for (var _i32 = 0, len = vnodes.length; _i32 < len; _i32 += 1) {
6488
+ var vnode = vnodes[_i32];
6496
6489
  if (!isNull(vnode) && !isUndefined$1(vnode.elm)) {
6497
6490
  switch (vnode.type) {
6498
6491
  case 2 /* VNodeType.Element */:
@@ -6516,8 +6509,8 @@ var LWC = (function (exports) {
6516
6509
  var children = vm.children,
6517
6510
  renderRoot = vm.renderRoot,
6518
6511
  remove = vm.renderer.remove;
6519
- for (var _i32 = 0, len = children.length; _i32 < len; _i32++) {
6520
- var child = children[_i32];
6512
+ for (var _i33 = 0, len = children.length; _i33 < len; _i33++) {
6513
+ var child = children[_i33];
6521
6514
  if (!isNull(child) && !isUndefined$1(child.elm)) {
6522
6515
  remove(child.elm, renderRoot);
6523
6516
  }
@@ -6639,17 +6632,17 @@ var LWC = (function (exports) {
6639
6632
  // if our id is null or empty, nobody can reference us
6640
6633
  return;
6641
6634
  }
6642
- var _iterator5 = _createForOfIteratorHelper(ID_REFERENCING_ATTRIBUTES_SET),
6643
- _step5;
6635
+ var _iterator4 = _createForOfIteratorHelper(ID_REFERENCING_ATTRIBUTES_SET),
6636
+ _step4;
6644
6637
  try {
6645
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
6646
- var idRefAttrName = _step5.value;
6638
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
6639
+ var idRefAttrName = _step4.value;
6647
6640
  // Query all global elements with this attribute. The attribute selector syntax `~=` is for values
6648
6641
  // that reference multiple IDs, separated by whitespace.
6649
6642
  var query = "[".concat(idRefAttrName, "~=\"").concat(CSS.escape(attrValue), "\"]");
6650
6643
  var sourceElements = querySelectorAll.call(document, query);
6651
- for (var _i33 = 0; _i33 < sourceElements.length; _i33++) {
6652
- var sourceElement = sourceElements[_i33];
6644
+ for (var _i34 = 0; _i34 < sourceElements.length; _i34++) {
6645
+ var sourceElement = sourceElements[_i34];
6653
6646
  var sourceRoot = sourceElement.getRootNode();
6654
6647
  if (sourceRoot !== root) {
6655
6648
  reportViolation(sourceElement, elm, idRefAttrName);
@@ -6658,18 +6651,18 @@ var LWC = (function (exports) {
6658
6651
  }
6659
6652
  }
6660
6653
  } catch (err) {
6661
- _iterator5.e(err);
6654
+ _iterator4.e(err);
6662
6655
  } finally {
6663
- _iterator5.f();
6656
+ _iterator4.f();
6664
6657
  }
6665
6658
  } else {
6666
6659
  // elm is the source, find the target
6667
6660
  var ids = parseIdRefAttributeValue(attrValue);
6668
- var _iterator6 = _createForOfIteratorHelper(ids),
6669
- _step6;
6661
+ var _iterator5 = _createForOfIteratorHelper(ids),
6662
+ _step5;
6670
6663
  try {
6671
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
6672
- var id = _step6.value;
6664
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
6665
+ var id = _step5.value;
6673
6666
  var target = getElementById.call(document, id);
6674
6667
  if (!isNull(target)) {
6675
6668
  var targetRoot = target.getRootNode();
@@ -6680,9 +6673,9 @@ var LWC = (function (exports) {
6680
6673
  }
6681
6674
  }
6682
6675
  } catch (err) {
6683
- _iterator6.e(err);
6676
+ _iterator5.e(err);
6684
6677
  } finally {
6685
- _iterator6.f();
6678
+ _iterator5.f();
6686
6679
  }
6687
6680
  }
6688
6681
  }
@@ -6984,8 +6977,8 @@ var LWC = (function (exports) {
6984
6977
  var nextNode = node;
6985
6978
  var anchor = null;
6986
6979
  var renderer = owner.renderer;
6987
- for (var _i34 = 0; _i34 < children.length; _i34++) {
6988
- var childVnode = children[_i34];
6980
+ for (var _i35 = 0; _i35 < children.length; _i35++) {
6981
+ var childVnode = children[_i35];
6989
6982
  if (!isNull(childVnode)) {
6990
6983
  if (nextNode) {
6991
6984
  nextNode = hydrateNode(nextNode, childVnode, renderer);
@@ -7063,8 +7056,8 @@ var LWC = (function (exports) {
7063
7056
  var nodesAreCompatible = true;
7064
7057
  // Validate attributes, though we could always recovery from those by running the update mods.
7065
7058
  // Note: intentionally ONLY matching vnodes.attrs to elm.attrs, in case SSR is adding extra attributes.
7066
- for (var _i35 = 0, _Object$entries = Object.entries(attrs); _i35 < _Object$entries.length; _i35++) {
7067
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i35], 2),
7059
+ for (var _i36 = 0, _Object$entries = Object.entries(attrs); _i36 < _Object$entries.length; _i36++) {
7060
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i36], 2),
7068
7061
  attrName = _Object$entries$_i[0],
7069
7062
  attrValue = _Object$entries$_i[1];
7070
7063
  var owner = vnode.owner;
@@ -7165,8 +7158,8 @@ var LWC = (function (exports) {
7165
7158
  var parsedVnodeStyle = parseStyleText(elmStyle);
7166
7159
  var expectedStyle = [];
7167
7160
  // styleMap is used when style is set to static value.
7168
- for (var _i36 = 0, n = styleDecls.length; _i36 < n; _i36++) {
7169
- var _styleDecls$_i2 = _slicedToArray(styleDecls[_i36], 3),
7161
+ for (var _i37 = 0, n = styleDecls.length; _i37 < n; _i37++) {
7162
+ var _styleDecls$_i2 = _slicedToArray(styleDecls[_i37], 3),
7170
7163
  prop = _styleDecls$_i2[0],
7171
7164
  value = _styleDecls$_i2[1],
7172
7165
  important = _styleDecls$_i2[2];
@@ -7283,11 +7276,11 @@ var LWC = (function (exports) {
7283
7276
  function warnOnArrayMutation(stylesheets) {
7284
7277
  // We can't handle users calling Array.prototype.slice.call(tmpl.stylesheets), but
7285
7278
  // we can at least warn when they use the most common mutation methods.
7286
- var _iterator7 = _createForOfIteratorHelper(ARRAY_MUTATION_METHODS),
7287
- _step7;
7279
+ var _iterator6 = _createForOfIteratorHelper(ARRAY_MUTATION_METHODS),
7280
+ _step6;
7288
7281
  try {
7289
- var _loop2 = function _loop2() {
7290
- var prop = _step7.value;
7282
+ var _loop3 = function _loop3() {
7283
+ var prop = _step6.value;
7291
7284
  var originalArrayMethod = getOriginalArrayMethod(prop);
7292
7285
  stylesheets[prop] = function arrayMutationWarningWrapper() {
7293
7286
  logError("Mutating the \"stylesheets\" array on a template function " + "is deprecated and may be removed in a future version of LWC.");
@@ -7295,24 +7288,24 @@ var LWC = (function (exports) {
7295
7288
  return originalArrayMethod.apply(this, arguments);
7296
7289
  };
7297
7290
  };
7298
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
7299
- _loop2();
7291
+ for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
7292
+ _loop3();
7300
7293
  }
7301
7294
  } catch (err) {
7302
- _iterator7.e(err);
7295
+ _iterator6.e(err);
7303
7296
  } finally {
7304
- _iterator7.f();
7297
+ _iterator6.f();
7305
7298
  }
7306
7299
  }
7307
7300
  // Warn if the user tries to mutate a stylesheet factory function, e.g.:
7308
7301
  // `stylesheet.$scoped$ = true`
7309
7302
  function warnOnStylesheetFunctionMutation(stylesheet) {
7310
7303
  // We could warn on other properties, but in practice only certain expandos are meaningful to LWC at runtime
7311
- var _iterator8 = _createForOfIteratorHelper(STYLESHEET_FUNCTION_EXPANDOS),
7312
- _step8;
7304
+ var _iterator7 = _createForOfIteratorHelper(STYLESHEET_FUNCTION_EXPANDOS),
7305
+ _step7;
7313
7306
  try {
7314
- var _loop3 = function _loop3() {
7315
- var prop = _step8.value;
7307
+ var _loop4 = function _loop4() {
7308
+ var prop = _step7.value;
7316
7309
  var value = stylesheet[prop];
7317
7310
  defineProperty(stylesheet, prop, {
7318
7311
  enumerable: true,
@@ -7326,13 +7319,13 @@ var LWC = (function (exports) {
7326
7319
  }
7327
7320
  });
7328
7321
  };
7329
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
7330
- _loop3();
7322
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
7323
+ _loop4();
7331
7324
  }
7332
7325
  } catch (err) {
7333
- _iterator8.e(err);
7326
+ _iterator7.e(err);
7334
7327
  } finally {
7335
- _iterator8.f();
7328
+ _iterator7.f();
7336
7329
  }
7337
7330
  }
7338
7331
  // Warn on either array or stylesheet (function) mutation, in a deeply-nested array
@@ -7354,8 +7347,8 @@ var LWC = (function (exports) {
7354
7347
  // Deep-traverse an array (of arrays) of stylesheet factory functions, and call the callback for every array/function
7355
7348
  function traverseStylesheets(stylesheets, callback) {
7356
7349
  callback(stylesheets);
7357
- for (var _i37 = 0; _i37 < stylesheets.length; _i37++) {
7358
- var stylesheet = stylesheets[_i37];
7350
+ for (var _i38 = 0; _i38 < stylesheets.length; _i38++) {
7351
+ var stylesheet = stylesheets[_i38];
7359
7352
  if (isArray$1(stylesheet)) {
7360
7353
  traverseStylesheets(stylesheet, callback);
7361
7354
  } else {
@@ -7401,11 +7394,11 @@ var LWC = (function (exports) {
7401
7394
  if (!isUndefined$1(tmpl.stylesheets)) {
7402
7395
  warnOnStylesheetsMutation(tmpl.stylesheets);
7403
7396
  }
7404
- var _iterator9 = _createForOfIteratorHelper(TEMPLATE_PROPS),
7405
- _step9;
7397
+ var _iterator8 = _createForOfIteratorHelper(TEMPLATE_PROPS),
7398
+ _step8;
7406
7399
  try {
7407
- var _loop4 = function _loop4() {
7408
- var prop = _step9.value;
7400
+ var _loop5 = function _loop5() {
7401
+ var prop = _step8.value;
7409
7402
  var value = tmpl[prop];
7410
7403
  defineProperty(tmpl, prop, {
7411
7404
  enumerable: true,
@@ -7421,13 +7414,13 @@ var LWC = (function (exports) {
7421
7414
  }
7422
7415
  });
7423
7416
  };
7424
- for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
7425
- _loop4();
7417
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
7418
+ _loop5();
7426
7419
  }
7427
7420
  } catch (err) {
7428
- _iterator9.e(err);
7421
+ _iterator8.e(err);
7429
7422
  } finally {
7430
- _iterator9.f();
7423
+ _iterator8.f();
7431
7424
  }
7432
7425
  var originalDescriptor = getOwnPropertyDescriptor$1(tmpl, 'stylesheetTokens');
7433
7426
  defineProperty(tmpl, 'stylesheetTokens', {
@@ -7468,7 +7461,7 @@ var LWC = (function (exports) {
7468
7461
  }
7469
7462
  return ctor;
7470
7463
  }
7471
- /* version: 2.35.1 */
7464
+ /* version: 2.35.2 */
7472
7465
 
7473
7466
  /*
7474
7467
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7744,7 +7737,7 @@ var LWC = (function (exports) {
7744
7737
  var cachedConstructors = new Map();
7745
7738
  var elementsUpgradedOutsideLWC = new WeakSet();
7746
7739
  var elementBeingUpgradedByLWC = false;
7747
- // Creates a constructor that is intended to be used as a vanilla custom element, except that the upgradeCallback is
7740
+ // Creates a constructor that is intended to be used directly as a custom element, except that the upgradeCallback is
7748
7741
  // passed in to the constructor so LWC can reuse the same custom element constructor for multiple components.
7749
7742
  // Another benefit is that only LWC can create components that actually do anything – if you do
7750
7743
  // `customElements.define('x-foo')`, then you don't have access to the upgradeCallback, so it's a dummy custom element.
@@ -7793,7 +7786,7 @@ var LWC = (function (exports) {
7793
7786
  }
7794
7787
  return UpgradableConstructor;
7795
7788
  };
7796
- var createCustomElementVanilla = function createCustomElementVanilla(tagName, upgradeCallback, connectedCallback, disconnectedCallback) {
7789
+ var createCustomElementUsingUpgradableConstructor = function createCustomElementUsingUpgradableConstructor(tagName, upgradeCallback, connectedCallback, disconnectedCallback) {
7797
7790
  // use global custom elements registry
7798
7791
  var UpgradableConstructor = cachedConstructors.get(tagName);
7799
7792
  if (isUndefined$1(UpgradableConstructor)) {
@@ -7820,7 +7813,7 @@ var LWC = (function (exports) {
7820
7813
  */
7821
7814
  /**
7822
7815
  * Create a scoped registry, i.e. a function that can create custom elements whose tag names
7823
- * do not conflict with vanilla custom elements having the same tag name.
7816
+ * do not conflict with third-party custom elements having the same tag name.
7824
7817
  */
7825
7818
  function createScopedRegistry() {
7826
7819
  if (!hasCustomElements) {
@@ -8151,17 +8144,17 @@ var LWC = (function (exports) {
8151
8144
  function flushPendingWhenDefinedCallbacks(tagName, ctor) {
8152
8145
  var resolvers = pendingWhenDefinedCallbacks.get(tagName);
8153
8146
  if (!isUndefined$1(resolvers)) {
8154
- var _iterator10 = _createForOfIteratorHelper(resolvers),
8155
- _step10;
8147
+ var _iterator9 = _createForOfIteratorHelper(resolvers),
8148
+ _step9;
8156
8149
  try {
8157
- for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
8158
- var resolver = _step10.value;
8150
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
8151
+ var resolver = _step9.value;
8159
8152
  resolver(ctor);
8160
8153
  }
8161
8154
  } catch (err) {
8162
- _iterator10.e(err);
8155
+ _iterator9.e(err);
8163
8156
  } finally {
8164
- _iterator10.f();
8157
+ _iterator9.f();
8165
8158
  }
8166
8159
  }
8167
8160
  pendingWhenDefinedCallbacks.delete(tagName);
@@ -8211,11 +8204,11 @@ var LWC = (function (exports) {
8211
8204
  var awaiting = awaitingUpgrade.get(tagName);
8212
8205
  if (!isUndefined$1(awaiting)) {
8213
8206
  awaitingUpgrade.delete(tagName);
8214
- var _iterator11 = _createForOfIteratorHelper(awaiting),
8215
- _step11;
8207
+ var _iterator10 = _createForOfIteratorHelper(awaiting),
8208
+ _step10;
8216
8209
  try {
8217
- for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
8218
- var element = _step11.value;
8210
+ for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
8211
+ var element = _step10.value;
8219
8212
  var registeredDefinition = pendingRegistryForElement.get(element);
8220
8213
  // At this point, registeredDefinition should never be undefined because awaitingUpgrade
8221
8214
  // is only populated when we haven't run internalUpgrade yet, and we only populate
@@ -8227,9 +8220,9 @@ var LWC = (function (exports) {
8227
8220
  }
8228
8221
  }
8229
8222
  } catch (err) {
8230
- _iterator11.e(err);
8223
+ _iterator10.e(err);
8231
8224
  } finally {
8232
- _iterator11.f();
8225
+ _iterator10.f();
8233
8226
  }
8234
8227
  }
8235
8228
  // If anyone called customElements.whenDefined() and is still waiting for a promise resolution, resolve now
@@ -8426,10 +8419,10 @@ var LWC = (function (exports) {
8426
8419
  * We have three modes for creating custom elements:
8427
8420
  *
8428
8421
  * 1. Compat (legacy) browser support (e.g. IE11). Totally custom, doesn't rely on native browser APIs.
8429
- * 2. "Vanilla" custom elements registry. This system actually still allows us to have two LWC components with the
8430
- * same tag name, via a simple trick: every custom element constructor we define in the registry is basically
8431
- * the same. It's essentially a dummy `class extends HTMLElement` that accepts an `upgradeCallback` in its
8432
- * constructor, which allows us to have completely customized functionality for different components.
8422
+ * 2. "Upgradable constructor" custom element. This allows us to have two LWC components with the same tag name,
8423
+ * via a trick: every custom element constructor we define in the registry is basically the same. It's essentially
8424
+ * a dummy `class extends HTMLElement` that accepts an `upgradeCallback` in its constructor ("upgradable
8425
+ * constructor"), which allows us to have completely customized functionality for different components.
8433
8426
  * 3. "Scoped" (or "pivot") custom elements. This relies on a sophisticated system that emulates the "scoped custom
8434
8427
  * elements registry" proposal, with support for avoiding conflicts in tag names both between LWC components and
8435
8428
  * between LWC components and third-party elements. This uses a similar trick to #2, but is much more complex
@@ -8440,8 +8433,8 @@ var LWC = (function (exports) {
8440
8433
  if (lwcRuntimeFlags.ENABLE_SCOPED_CUSTOM_ELEMENT_REGISTRY) {
8441
8434
  createCustomElement = createCustomElementScoped;
8442
8435
  } else {
8443
- // use global custom elements registry (vanilla)
8444
- createCustomElement = createCustomElementVanilla;
8436
+ // use the global registry, with an upgradable constructor for the defined custom element
8437
+ createCustomElement = createCustomElementUsingUpgradableConstructor;
8445
8438
  }
8446
8439
  } else {
8447
8440
  // no registry available here
@@ -8495,10 +8488,10 @@ var LWC = (function (exports) {
8495
8488
  }
8496
8489
  var assert = /*#__PURE__*/Object.freeze({
8497
8490
  __proto__: null,
8491
+ fail: fail,
8498
8492
  invariant: invariant,
8499
- isTrue: isTrue$1,
8500
8493
  isFalse: isFalse$1,
8501
- fail: fail
8494
+ isTrue: isTrue$1
8502
8495
  });
8503
8496
  function isUndefined(obj) {
8504
8497
  return obj === undefined;
@@ -8506,7 +8499,7 @@ var LWC = (function (exports) {
8506
8499
  function isNull(obj) {
8507
8500
  return obj === null;
8508
8501
  }
8509
- /** version: 2.35.1 */
8502
+ /** version: 2.35.2 */
8510
8503
 
8511
8504
  /*
8512
8505
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8565,17 +8558,17 @@ var LWC = (function (exports) {
8565
8558
  exports.createFragment = function (html) {
8566
8559
  var wrapperTags = topLevelWrappingMap[getTagName(html)];
8567
8560
  if (!isUndefined(wrapperTags)) {
8568
- var _iterator12 = _createForOfIteratorHelper(wrapperTags),
8569
- _step12;
8561
+ var _iterator11 = _createForOfIteratorHelper(wrapperTags),
8562
+ _step11;
8570
8563
  try {
8571
- for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
8572
- var wrapperTag = _step12.value;
8564
+ for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
8565
+ var wrapperTag = _step11.value;
8573
8566
  html = "<".concat(wrapperTag, ">").concat(html, "</").concat(wrapperTag, ">");
8574
8567
  }
8575
8568
  } catch (err) {
8576
- _iterator12.e(err);
8569
+ _iterator11.e(err);
8577
8570
  } finally {
8578
- _iterator12.f();
8571
+ _iterator11.f();
8579
8572
  }
8580
8573
  }
8581
8574
  // For IE11, the document title must not be undefined, but it can be an empty string
@@ -8584,7 +8577,7 @@ var LWC = (function (exports) {
8584
8577
  doc.body.innerHTML = html;
8585
8578
  var content = doc.body;
8586
8579
  if (!isUndefined(wrapperTags)) {
8587
- for (var _i38 = 0; _i38 < wrapperTags.length; _i38++) {
8580
+ for (var _i39 = 0; _i39 < wrapperTags.length; _i39++) {
8588
8581
  content = content.firstChild;
8589
8582
  }
8590
8583
  }
@@ -8777,8 +8770,8 @@ var LWC = (function (exports) {
8777
8770
  tagName: element.tagName.toLowerCase(),
8778
8771
  hydrated: true
8779
8772
  });
8780
- for (var _i39 = 0, _Object$entries2 = Object.entries(props); _i39 < _Object$entries2.length; _i39++) {
8781
- var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i39], 2),
8773
+ for (var _i40 = 0, _Object$entries2 = Object.entries(props); _i40 < _Object$entries2.length; _i40++) {
8774
+ var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i40], 2),
8782
8775
  key = _Object$entries2$_i[0],
8783
8776
  value = _Object$entries2$_i[1];
8784
8777
  element[key] = value;
@@ -9072,7 +9065,7 @@ var LWC = (function (exports) {
9072
9065
  });
9073
9066
  freeze(LightningElement);
9074
9067
  seal(LightningElement.prototype);
9075
- /* version: 2.35.1 */
9068
+ /* version: 2.35.2 */
9076
9069
 
9077
9070
  exports.LightningElement = LightningElement;
9078
9071
  exports.__unstable__ProfilerControl = profilerControl;