@vonage/vivid 4.2.0 → 4.3.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 (138) hide show
  1. package/appearance-ui/index.cjs +1 -2
  2. package/appearance-ui/index.js +1 -2
  3. package/custom-elements.json +43 -0
  4. package/lib/button/button.d.ts +1 -0
  5. package/lib/switch/switch.d.ts +1 -1
  6. package/package.json +1 -1
  7. package/shared/affix.cjs +1 -2
  8. package/shared/affix.js +1 -2
  9. package/shared/anchored.cjs +1 -2
  10. package/shared/anchored.js +1 -2
  11. package/shared/calendar-event.cjs +1 -2
  12. package/shared/calendar-event.js +1 -2
  13. package/shared/definition.cjs +1 -2
  14. package/shared/definition.js +1 -2
  15. package/shared/definition11.cjs +29 -13
  16. package/shared/definition11.js +29 -14
  17. package/shared/definition12.cjs +1 -1
  18. package/shared/definition12.js +1 -1
  19. package/shared/definition13.cjs +1 -2
  20. package/shared/definition13.js +1 -2
  21. package/shared/definition14.cjs +1 -2
  22. package/shared/definition14.js +1 -2
  23. package/shared/definition15.cjs +1 -2
  24. package/shared/definition15.js +1 -2
  25. package/shared/definition16.cjs +1 -2
  26. package/shared/definition16.js +1 -2
  27. package/shared/definition17.cjs +4 -8
  28. package/shared/definition17.js +4 -8
  29. package/shared/definition18.cjs +14 -22
  30. package/shared/definition18.js +14 -22
  31. package/shared/definition19.cjs +29 -50
  32. package/shared/definition19.js +29 -50
  33. package/shared/definition20.cjs +1 -2
  34. package/shared/definition20.js +1 -2
  35. package/shared/definition21.cjs +1 -2
  36. package/shared/definition21.js +1 -2
  37. package/shared/definition23.cjs +1 -2
  38. package/shared/definition23.js +1 -2
  39. package/shared/definition24.cjs +2 -3
  40. package/shared/definition24.js +2 -3
  41. package/shared/definition25.cjs +22 -47
  42. package/shared/definition25.js +22 -47
  43. package/shared/definition26.cjs +1 -2
  44. package/shared/definition26.js +1 -2
  45. package/shared/definition28.cjs +1 -2
  46. package/shared/definition28.js +1 -2
  47. package/shared/definition29.cjs +19 -39
  48. package/shared/definition29.js +19 -39
  49. package/shared/definition3.cjs +1 -2
  50. package/shared/definition3.js +1 -2
  51. package/shared/definition31.cjs +1 -2
  52. package/shared/definition31.js +1 -2
  53. package/shared/definition34.cjs +1 -2
  54. package/shared/definition34.js +1 -2
  55. package/shared/definition35.cjs +14 -26
  56. package/shared/definition35.js +14 -26
  57. package/shared/definition36.cjs +1 -2
  58. package/shared/definition36.js +1 -2
  59. package/shared/definition37.cjs +8 -16
  60. package/shared/definition37.js +8 -16
  61. package/shared/definition38.cjs +1 -2
  62. package/shared/definition38.js +1 -2
  63. package/shared/definition39.cjs +1 -2
  64. package/shared/definition39.js +1 -2
  65. package/shared/definition4.cjs +7 -13
  66. package/shared/definition4.js +7 -13
  67. package/shared/definition40.cjs +1 -2
  68. package/shared/definition40.js +1 -2
  69. package/shared/definition42.cjs +52 -91
  70. package/shared/definition42.js +52 -91
  71. package/shared/definition43.cjs +7 -6
  72. package/shared/definition43.js +5 -4
  73. package/shared/definition44.cjs +4 -8
  74. package/shared/definition44.js +4 -8
  75. package/shared/definition45.cjs +1 -2
  76. package/shared/definition45.js +1 -2
  77. package/shared/definition46.cjs +1 -2
  78. package/shared/definition46.js +1 -2
  79. package/shared/definition47.cjs +1 -2
  80. package/shared/definition47.js +1 -2
  81. package/shared/definition48.cjs +2 -3
  82. package/shared/definition48.js +2 -3
  83. package/shared/definition5.cjs +1 -2
  84. package/shared/definition5.js +1 -2
  85. package/shared/definition50.cjs +1 -2
  86. package/shared/definition50.js +1 -2
  87. package/shared/definition51.cjs +5 -10
  88. package/shared/definition51.js +5 -10
  89. package/shared/definition52.cjs +1 -2
  90. package/shared/definition52.js +1 -2
  91. package/shared/definition53.cjs +1 -2
  92. package/shared/definition53.js +1 -2
  93. package/shared/definition54.cjs +9 -21
  94. package/shared/definition54.js +9 -21
  95. package/shared/definition55.cjs +24 -43
  96. package/shared/definition55.js +24 -43
  97. package/shared/definition56.cjs +23 -38
  98. package/shared/definition56.js +23 -38
  99. package/shared/definition57.cjs +22 -45
  100. package/shared/definition57.js +22 -45
  101. package/shared/definition58.cjs +18 -37
  102. package/shared/definition58.js +18 -37
  103. package/shared/definition59.cjs +1 -2
  104. package/shared/definition59.js +1 -2
  105. package/shared/definition6.cjs +1 -2
  106. package/shared/definition6.js +1 -2
  107. package/shared/definition62.cjs +1 -2
  108. package/shared/definition62.js +1 -2
  109. package/shared/definition63.cjs +1 -2
  110. package/shared/definition63.js +1 -2
  111. package/shared/definition7.cjs +1 -2
  112. package/shared/definition7.js +1 -2
  113. package/shared/definition8.cjs +1 -2
  114. package/shared/definition8.js +1 -2
  115. package/shared/definition9.cjs +1 -2
  116. package/shared/definition9.js +1 -2
  117. package/shared/icon.cjs +2 -3
  118. package/shared/icon.js +2 -3
  119. package/shared/index2.cjs +3 -6
  120. package/shared/index2.js +3 -6
  121. package/shared/listbox.cjs +1 -2
  122. package/shared/listbox.js +1 -2
  123. package/shared/patterns/chevron.d.ts +2 -0
  124. package/shared/presentationDate.cjs +1 -2
  125. package/shared/presentationDate.js +1 -2
  126. package/shared/radio.cjs +1 -2
  127. package/shared/radio.js +1 -2
  128. package/shared/text-anchor.cjs +1 -2
  129. package/shared/text-anchor.js +1 -2
  130. package/shared/video-player.cjs +4 -8
  131. package/shared/video-player.js +4 -8
  132. package/styles/core/all.css +1 -1
  133. package/styles/core/theme.css +1 -1
  134. package/styles/core/typography.css +1 -1
  135. package/styles/tokens/theme-dark.css +4 -4
  136. package/styles/tokens/theme-light.css +4 -4
  137. package/styles/tokens/vivid-2-compat.css +1 -1
  138. package/vivid.api.json +3021 -1112
@@ -8,109 +8,86 @@ const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-ancho
8
8
 
9
9
  var __defProp = Object.defineProperty;
10
10
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
+ var __typeError = (msg) => {
12
+ throw TypeError(msg);
13
+ };
11
14
  var __decorateClass = (decorators, target, key, kind) => {
12
15
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
13
16
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
17
  if (decorator = decorators[i])
15
18
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
16
- if (kind && result)
17
- __defProp(target, key, result);
19
+ if (kind && result) __defProp(target, key, result);
18
20
  return result;
19
21
  };
20
- var __accessCheck = (obj, member, msg) => {
21
- if (!member.has(obj))
22
- throw TypeError("Cannot " + msg);
23
- };
24
- var __privateGet = (obj, member, getter) => {
25
- __accessCheck(obj, member, "read from private field");
26
- return getter ? getter.call(obj) : member.get(obj);
27
- };
28
- var __privateAdd = (obj, member, value) => {
29
- if (member.has(obj))
30
- throw TypeError("Cannot add the same private member more than once");
31
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
32
- };
33
- var __privateMethod = (obj, member, method) => {
34
- __accessCheck(obj, member, "access private method");
35
- return method;
36
- };
37
- var _ANCHOR_ARIA_LABEL_SUFFIX, _setupAnchor, setupAnchor_fn, _updateAnchor, updateAnchor_fn, _cleanupAnchor, cleanupAnchor_fn, _openIfClosed, _updateListeners, updateListeners_fn, _closeOnClickOutside, _closeOnEscape;
22
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
23
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
24
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
25
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
26
+ var _ANCHOR_ARIA_LABEL_SUFFIX, _Toggletip_instances, setupAnchor_fn, updateAnchor_fn, cleanupAnchor_fn, _openIfClosed, updateListeners_fn, _closeOnClickOutside, _closeOnEscape;
38
27
  let Toggletip = class extends FoundationElement {
39
28
  constructor() {
40
29
  super(...arguments);
41
- __privateAdd(this, _setupAnchor);
42
- __privateAdd(this, _updateAnchor);
43
- __privateAdd(this, _cleanupAnchor);
44
- __privateAdd(this, _updateListeners);
30
+ __privateAdd(this, _Toggletip_instances);
45
31
  __privateAdd(this, _ANCHOR_ARIA_LABEL_SUFFIX, " ; Show more information");
46
32
  this.alternate = false;
47
33
  this.placement = "right";
48
34
  this.open = false;
49
35
  __privateAdd(this, _openIfClosed, () => {
50
- if (!this.open)
51
- DOM.queueUpdate(() => this.open = true);
36
+ if (!this.open) DOM.queueUpdate(() => this.open = true);
52
37
  });
53
38
  __privateAdd(this, _closeOnClickOutside, (e) => {
54
39
  const clickedOutside = !this.contains(e.target);
55
40
  const clickedOnAnchor = this._anchorEl?.contains(e.target);
56
- if (clickedOutside || clickedOnAnchor)
57
- this.open = false;
41
+ if (clickedOutside || clickedOnAnchor) this.open = false;
58
42
  });
59
43
  __privateAdd(this, _closeOnEscape, (e) => {
60
- if (e.key === "Escape")
61
- this.open = false;
44
+ if (e.key === "Escape") this.open = false;
62
45
  });
63
46
  }
64
47
  openChanged(oldValue, newValue) {
65
- if (oldValue === void 0)
66
- return;
48
+ if (oldValue === void 0) return;
67
49
  if (newValue) {
68
50
  this.setAttribute("role", "status");
69
51
  } else {
70
52
  this.removeAttribute("role");
71
53
  }
72
- __privateMethod(this, _updateListeners, updateListeners_fn).call(this);
54
+ __privateMethod(this, _Toggletip_instances, updateListeners_fn).call(this);
73
55
  if (this._anchorEl) {
74
- __privateMethod(this, _updateAnchor, updateAnchor_fn).call(this, this._anchorEl);
56
+ __privateMethod(this, _Toggletip_instances, updateAnchor_fn).call(this, this._anchorEl);
75
57
  }
76
58
  }
77
59
  connectedCallback() {
78
60
  super.connectedCallback();
79
- __privateMethod(this, _updateListeners, updateListeners_fn).call(this);
61
+ __privateMethod(this, _Toggletip_instances, updateListeners_fn).call(this);
80
62
  }
81
63
  disconnectedCallback() {
82
64
  super.disconnectedCallback();
83
- __privateMethod(this, _updateListeners, updateListeners_fn).call(this);
65
+ __privateMethod(this, _Toggletip_instances, updateListeners_fn).call(this);
84
66
  }
85
67
  /**
86
68
  * @internal
87
69
  */
88
70
  _anchorElChanged(oldValue, newValue) {
89
- if (oldValue)
90
- __privateMethod(this, _cleanupAnchor, cleanupAnchor_fn).call(this, oldValue);
91
- if (newValue)
92
- __privateMethod(this, _setupAnchor, setupAnchor_fn).call(this, newValue);
71
+ if (oldValue) __privateMethod(this, _Toggletip_instances, cleanupAnchor_fn).call(this, oldValue);
72
+ if (newValue) __privateMethod(this, _Toggletip_instances, setupAnchor_fn).call(this, newValue);
93
73
  }
94
74
  };
95
75
  _ANCHOR_ARIA_LABEL_SUFFIX = new WeakMap();
96
- _setupAnchor = new WeakSet();
76
+ _Toggletip_instances = new WeakSet();
97
77
  setupAnchor_fn = function(a) {
98
78
  a.addEventListener("click", __privateGet(this, _openIfClosed), true);
99
79
  a.ariaLabel = (a.ariaLabel ?? "") + __privateGet(this, _ANCHOR_ARIA_LABEL_SUFFIX);
100
- __privateMethod(this, _updateAnchor, updateAnchor_fn).call(this, a);
80
+ __privateMethod(this, _Toggletip_instances, updateAnchor_fn).call(this, a);
101
81
  };
102
- _updateAnchor = new WeakSet();
103
82
  updateAnchor_fn = function(a) {
104
83
  a.setAttribute("aria-expanded", this.open.toString());
105
84
  };
106
- _cleanupAnchor = new WeakSet();
107
85
  cleanupAnchor_fn = function(a) {
108
86
  a.removeEventListener("click", __privateGet(this, _openIfClosed), true);
109
87
  if (a.ariaLabel)
110
88
  a.ariaLabel = a.ariaLabel.replace(__privateGet(this, _ANCHOR_ARIA_LABEL_SUFFIX), "");
111
89
  };
112
90
  _openIfClosed = new WeakMap();
113
- _updateListeners = new WeakSet();
114
91
  updateListeners_fn = function() {
115
92
  document.removeEventListener("click", __privateGet(this, _closeOnClickOutside));
116
93
  document.removeEventListener("keydown", __privateGet(this, _closeOnEscape));
@@ -9,39 +9,26 @@ const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-ancho
9
9
 
10
10
  var __defProp = Object.defineProperty;
11
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __typeError = (msg) => {
13
+ throw TypeError(msg);
14
+ };
12
15
  var __decorateClass = (decorators, target, key, kind) => {
13
16
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
14
17
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
18
  if (decorator = decorators[i])
16
19
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
17
- if (kind && result)
18
- __defProp(target, key, result);
20
+ if (kind && result) __defProp(target, key, result);
19
21
  return result;
20
22
  };
21
- var __accessCheck = (obj, member, msg) => {
22
- if (!member.has(obj))
23
- throw TypeError("Cannot " + msg);
24
- };
25
- var __privateGet = (obj, member, getter) => {
26
- __accessCheck(obj, member, "read from private field");
27
- return getter ? getter.call(obj) : member.get(obj);
28
- };
29
- var __privateAdd = (obj, member, value) => {
30
- if (member.has(obj))
31
- throw TypeError("Cannot add the same private member more than once");
32
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
33
- };
34
- var __privateMethod = (obj, member, method) => {
35
- __accessCheck(obj, member, "access private method");
36
- return method;
37
- };
38
- var _setupAnchor, setupAnchor_fn, _cleanupAnchor, cleanupAnchor_fn, _show, _hide, _updateListeners, updateListeners_fn, _closeOnEscape;
23
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
24
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
25
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
26
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
27
+ var _Tooltip_instances, setupAnchor_fn, cleanupAnchor_fn, _show, _hide, updateListeners_fn, _closeOnEscape;
39
28
  let Tooltip = class extends index.FoundationElement {
40
29
  constructor() {
41
30
  super(...arguments);
42
- __privateAdd(this, _setupAnchor);
43
- __privateAdd(this, _cleanupAnchor);
44
- __privateAdd(this, _updateListeners);
31
+ __privateAdd(this, _Tooltip_instances);
45
32
  this.open = false;
46
33
  __privateAdd(this, _show, () => {
47
34
  this.open = true;
@@ -50,44 +37,39 @@ let Tooltip = class extends index.FoundationElement {
50
37
  this.open = false;
51
38
  });
52
39
  __privateAdd(this, _closeOnEscape, (e) => {
53
- if (e.key === "Escape")
54
- __privateGet(this, _hide).call(this);
40
+ if (e.key === "Escape") __privateGet(this, _hide).call(this);
55
41
  });
56
42
  }
57
43
  connectedCallback() {
58
44
  super.connectedCallback();
59
- __privateMethod(this, _updateListeners, updateListeners_fn).call(this);
45
+ __privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
60
46
  }
61
47
  disconnectedCallback() {
62
48
  super.disconnectedCallback();
63
- __privateMethod(this, _updateListeners, updateListeners_fn).call(this);
49
+ __privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
64
50
  }
65
51
  /**
66
52
  * @internal
67
53
  */
68
54
  _anchorElChanged(oldValue, newValue) {
69
- if (oldValue)
70
- __privateMethod(this, _cleanupAnchor, cleanupAnchor_fn).call(this, oldValue);
71
- if (newValue)
72
- __privateMethod(this, _setupAnchor, setupAnchor_fn).call(this, newValue);
55
+ if (oldValue) __privateMethod(this, _Tooltip_instances, cleanupAnchor_fn).call(this, oldValue);
56
+ if (newValue) __privateMethod(this, _Tooltip_instances, setupAnchor_fn).call(this, newValue);
73
57
  }
74
58
  /**
75
59
  * @internal
76
60
  */
77
61
  openChanged(oldValue) {
78
- if (oldValue === void 0)
79
- return;
80
- __privateMethod(this, _updateListeners, updateListeners_fn).call(this);
62
+ if (oldValue === void 0) return;
63
+ __privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
81
64
  }
82
65
  };
83
- _setupAnchor = new WeakSet();
66
+ _Tooltip_instances = new WeakSet();
84
67
  setupAnchor_fn = function(a) {
85
68
  a.addEventListener("mouseover", __privateGet(this, _show));
86
69
  a.addEventListener("mouseout", __privateGet(this, _hide));
87
70
  a.addEventListener("focusin", __privateGet(this, _show));
88
71
  a.addEventListener("focusout", __privateGet(this, _hide));
89
72
  };
90
- _cleanupAnchor = new WeakSet();
91
73
  cleanupAnchor_fn = function(a) {
92
74
  a.removeEventListener("mouseover", __privateGet(this, _show));
93
75
  a.removeEventListener("mouseout", __privateGet(this, _hide));
@@ -96,7 +78,6 @@ cleanupAnchor_fn = function(a) {
96
78
  };
97
79
  _show = new WeakMap();
98
80
  _hide = new WeakMap();
99
- _updateListeners = new WeakSet();
100
81
  updateListeners_fn = function() {
101
82
  document.removeEventListener("keydown", __privateGet(this, _closeOnEscape));
102
83
  if (this.open && this.isConnected) {
@@ -7,39 +7,26 @@ const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-ancho
7
7
 
8
8
  var __defProp = Object.defineProperty;
9
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
+ var __typeError = (msg) => {
11
+ throw TypeError(msg);
12
+ };
10
13
  var __decorateClass = (decorators, target, key, kind) => {
11
14
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
12
15
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
13
16
  if (decorator = decorators[i])
14
17
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
15
- if (kind && result)
16
- __defProp(target, key, result);
18
+ if (kind && result) __defProp(target, key, result);
17
19
  return result;
18
20
  };
19
- var __accessCheck = (obj, member, msg) => {
20
- if (!member.has(obj))
21
- throw TypeError("Cannot " + msg);
22
- };
23
- var __privateGet = (obj, member, getter) => {
24
- __accessCheck(obj, member, "read from private field");
25
- return getter ? getter.call(obj) : member.get(obj);
26
- };
27
- var __privateAdd = (obj, member, value) => {
28
- if (member.has(obj))
29
- throw TypeError("Cannot add the same private member more than once");
30
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
31
- };
32
- var __privateMethod = (obj, member, method) => {
33
- __accessCheck(obj, member, "access private method");
34
- return method;
35
- };
36
- var _setupAnchor, setupAnchor_fn, _cleanupAnchor, cleanupAnchor_fn, _show, _hide, _updateListeners, updateListeners_fn, _closeOnEscape;
21
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
22
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
23
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
24
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
25
+ var _Tooltip_instances, setupAnchor_fn, cleanupAnchor_fn, _show, _hide, updateListeners_fn, _closeOnEscape;
37
26
  let Tooltip = class extends FoundationElement {
38
27
  constructor() {
39
28
  super(...arguments);
40
- __privateAdd(this, _setupAnchor);
41
- __privateAdd(this, _cleanupAnchor);
42
- __privateAdd(this, _updateListeners);
29
+ __privateAdd(this, _Tooltip_instances);
43
30
  this.open = false;
44
31
  __privateAdd(this, _show, () => {
45
32
  this.open = true;
@@ -48,44 +35,39 @@ let Tooltip = class extends FoundationElement {
48
35
  this.open = false;
49
36
  });
50
37
  __privateAdd(this, _closeOnEscape, (e) => {
51
- if (e.key === "Escape")
52
- __privateGet(this, _hide).call(this);
38
+ if (e.key === "Escape") __privateGet(this, _hide).call(this);
53
39
  });
54
40
  }
55
41
  connectedCallback() {
56
42
  super.connectedCallback();
57
- __privateMethod(this, _updateListeners, updateListeners_fn).call(this);
43
+ __privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
58
44
  }
59
45
  disconnectedCallback() {
60
46
  super.disconnectedCallback();
61
- __privateMethod(this, _updateListeners, updateListeners_fn).call(this);
47
+ __privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
62
48
  }
63
49
  /**
64
50
  * @internal
65
51
  */
66
52
  _anchorElChanged(oldValue, newValue) {
67
- if (oldValue)
68
- __privateMethod(this, _cleanupAnchor, cleanupAnchor_fn).call(this, oldValue);
69
- if (newValue)
70
- __privateMethod(this, _setupAnchor, setupAnchor_fn).call(this, newValue);
53
+ if (oldValue) __privateMethod(this, _Tooltip_instances, cleanupAnchor_fn).call(this, oldValue);
54
+ if (newValue) __privateMethod(this, _Tooltip_instances, setupAnchor_fn).call(this, newValue);
71
55
  }
72
56
  /**
73
57
  * @internal
74
58
  */
75
59
  openChanged(oldValue) {
76
- if (oldValue === void 0)
77
- return;
78
- __privateMethod(this, _updateListeners, updateListeners_fn).call(this);
60
+ if (oldValue === void 0) return;
61
+ __privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
79
62
  }
80
63
  };
81
- _setupAnchor = new WeakSet();
64
+ _Tooltip_instances = new WeakSet();
82
65
  setupAnchor_fn = function(a) {
83
66
  a.addEventListener("mouseover", __privateGet(this, _show));
84
67
  a.addEventListener("mouseout", __privateGet(this, _hide));
85
68
  a.addEventListener("focusin", __privateGet(this, _show));
86
69
  a.addEventListener("focusout", __privateGet(this, _hide));
87
70
  };
88
- _cleanupAnchor = new WeakSet();
89
71
  cleanupAnchor_fn = function(a) {
90
72
  a.removeEventListener("mouseover", __privateGet(this, _show));
91
73
  a.removeEventListener("mouseout", __privateGet(this, _hide));
@@ -94,7 +76,6 @@ cleanupAnchor_fn = function(a) {
94
76
  };
95
77
  _show = new WeakMap();
96
78
  _hide = new WeakMap();
97
- _updateListeners = new WeakSet();
98
79
  updateListeners_fn = function() {
99
80
  document.removeEventListener("keydown", __privateGet(this, _closeOnEscape));
100
81
  if (this.open && this.isConnected) {
@@ -20,8 +20,7 @@ var __decorateClass = (decorators, target, key, kind) => {
20
20
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
21
21
  if (decorator = decorators[i])
22
22
  result = (decorator(target, key, result) ) || result;
23
- if (result)
24
- __defProp(target, key, result);
23
+ if (result) __defProp(target, key, result);
25
24
  return result;
26
25
  };
27
26
  class TreeItem extends treeItem.TreeItem {
@@ -18,8 +18,7 @@ var __decorateClass = (decorators, target, key, kind) => {
18
18
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
19
19
  if (decorator = decorators[i])
20
20
  result = (decorator(target, key, result) ) || result;
21
- if (result)
22
- __defProp(target, key, result);
21
+ if (result) __defProp(target, key, result);
23
22
  return result;
24
23
  };
25
24
  class TreeItem extends TreeItem$1 {
@@ -14,8 +14,7 @@ var __decorateClass = (decorators, target, key, kind) => {
14
14
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
15
  if (decorator = decorators[i])
16
16
  result = (decorator(target, key, result) ) || result;
17
- if (result)
18
- __defProp(target, key, result);
17
+ if (result) __defProp(target, key, result);
19
18
  return result;
20
19
  };
21
20
  class Avatar extends index.FoundationElement {
@@ -12,8 +12,7 @@ var __decorateClass = (decorators, target, key, kind) => {
12
12
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
13
13
  if (decorator = decorators[i])
14
14
  result = (decorator(target, key, result) ) || result;
15
- if (result)
16
- __defProp(target, key, result);
15
+ if (result) __defProp(target, key, result);
17
16
  return result;
18
17
  };
19
18
  class Avatar extends FoundationElement {
@@ -9,8 +9,7 @@ var __decorateClass = (decorators, target, key, kind) => {
9
9
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10
10
  if (decorator = decorators[i])
11
11
  result = (decorator(target, key, result) ) || result;
12
- if (result)
13
- __defProp(target, key, result);
12
+ if (result) __defProp(target, key, result);
14
13
  return result;
15
14
  };
16
15
  class Elevation extends index.FoundationElement {
@@ -7,8 +7,7 @@ var __decorateClass = (decorators, target, key, kind) => {
7
7
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
8
8
  if (decorator = decorators[i])
9
9
  result = (decorator(target, key, result) ) || result;
10
- if (result)
11
- __defProp(target, key, result);
10
+ if (result) __defProp(target, key, result);
12
11
  return result;
13
12
  };
14
13
  class Elevation extends FoundationElement {
@@ -1625,8 +1625,7 @@ var __decorateClass = (decorators, target, key, kind) => {
1625
1625
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1626
1626
  if (decorator = decorators[i])
1627
1627
  result = (decorator(target, key, result) ) || result;
1628
- if (result)
1629
- __defProp(target, key, result);
1628
+ if (result) __defProp(target, key, result);
1630
1629
  return result;
1631
1630
  };
1632
1631
  class Popup extends index.FoundationElement {
@@ -1623,8 +1623,7 @@ var __decorateClass = (decorators, target, key, kind) => {
1623
1623
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1624
1624
  if (decorator = decorators[i])
1625
1625
  result = (decorator(target, key, result) ) || result;
1626
- if (result)
1627
- __defProp(target, key, result);
1626
+ if (result) __defProp(target, key, result);
1628
1627
  return result;
1629
1628
  };
1630
1629
  class Popup extends FoundationElement {
@@ -13,8 +13,7 @@ var __decorateClass = (decorators, target, key, kind) => {
13
13
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
14
  if (decorator = decorators[i])
15
15
  result = (decorator(target, key, result) ) || result;
16
- if (result)
17
- __defProp(target, key, result);
16
+ if (result) __defProp(target, key, result);
18
17
  return result;
19
18
  };
20
19
  class Badge extends index.FoundationElement {
@@ -11,8 +11,7 @@ var __decorateClass = (decorators, target, key, kind) => {
11
11
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
12
12
  if (decorator = decorators[i])
13
13
  result = (decorator(target, key, result) ) || result;
14
- if (result)
15
- __defProp(target, key, result);
14
+ if (result) __defProp(target, key, result);
16
15
  return result;
17
16
  };
18
17
  class Badge extends FoundationElement {
@@ -20,8 +20,7 @@ var __decorateClass = (decorators, target, key, kind) => {
20
20
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
21
21
  if (decorator = decorators[i])
22
22
  result = (decorator(target, key, result) ) || result;
23
- if (result)
24
- __defProp(target, key, result);
23
+ if (result) __defProp(target, key, result);
25
24
  return result;
26
25
  };
27
26
  const connotationIconMap = /* @__PURE__ */ new Map([
@@ -18,8 +18,7 @@ var __decorateClass = (decorators, target, key, kind) => {
18
18
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
19
19
  if (decorator = decorators[i])
20
20
  result = (decorator(target, key, result) ) || result;
21
- if (result)
22
- __defProp(target, key, result);
21
+ if (result) __defProp(target, key, result);
23
22
  return result;
24
23
  };
25
24
  const connotationIconMap = /* @__PURE__ */ new Map([
@@ -16,8 +16,7 @@ var __decorateClass = (decorators, target, key, kind) => {
16
16
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
17
17
  if (decorator = decorators[i])
18
18
  result = (decorator(target, key, result) ) || result;
19
- if (result)
20
- __defProp(target, key, result);
19
+ if (result) __defProp(target, key, result);
21
20
  return result;
22
21
  };
23
22
  class BreadcrumbItem extends breadcrumbItem.BreadcrumbItem {
@@ -14,8 +14,7 @@ var __decorateClass = (decorators, target, key, kind) => {
14
14
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
15
  if (decorator = decorators[i])
16
16
  result = (decorator(target, key, result) ) || result;
17
- if (result)
18
- __defProp(target, key, result);
17
+ if (result) __defProp(target, key, result);
19
18
  return result;
20
19
  };
21
20
  class BreadcrumbItem extends BreadcrumbItem$1 {
package/shared/icon.cjs CHANGED
@@ -141,7 +141,7 @@ _has._curry2(function memoizeWith(mFn, fn) {
141
141
  });
142
142
 
143
143
  const ICONS_BASE_URL = "https://icon.resources.vonage.com";
144
- const ICONS_VERSION = "4.5.9";
144
+ const ICONS_VERSION = "4.6.0";
145
145
 
146
146
  const numberConverter = {
147
147
  toView(value) {
@@ -181,8 +181,7 @@ var __decorateClass = (decorators, target, key, kind) => {
181
181
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
182
182
  if (decorator = decorators[i])
183
183
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
184
- if (kind && result)
185
- __defProp(target, key, result);
184
+ if (kind && result) __defProp(target, key, result);
186
185
  return result;
187
186
  };
188
187
  const PLACEHOLDER_DELAY = 500;
package/shared/icon.js CHANGED
@@ -139,7 +139,7 @@ _curry2(function memoizeWith(mFn, fn) {
139
139
  });
140
140
 
141
141
  const ICONS_BASE_URL = "https://icon.resources.vonage.com";
142
- const ICONS_VERSION = "4.5.9";
142
+ const ICONS_VERSION = "4.6.0";
143
143
 
144
144
  const numberConverter = {
145
145
  toView(value) {
@@ -179,8 +179,7 @@ var __decorateClass = (decorators, target, key, kind) => {
179
179
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
180
180
  if (decorator = decorators[i])
181
181
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
182
- if (kind && result)
183
- __defProp(target, key, result);
182
+ if (kind && result) __defProp(target, key, result);
184
183
  return result;
185
184
  };
186
185
  const PLACEHOLDER_DELAY = 500;
package/shared/index2.cjs CHANGED
@@ -15,8 +15,7 @@ var __decorateClass$1 = (decorators, target, key, kind) => {
15
15
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
16
16
  if (decorator = decorators[i])
17
17
  result = (decorator(target, key, result) ) || result;
18
- if (result)
19
- __defProp$1(target, key, result);
18
+ if (result) __defProp$1(target, key, result);
20
19
  return result;
21
20
  };
22
21
  class FormElementHelperText {
@@ -203,8 +202,7 @@ function errorText(constructor) {
203
202
  super(...args);
204
203
  this._validate = this.validate;
205
204
  this.validate = () => {
206
- if (!this.#blockValidateCalls)
207
- this._validate();
205
+ if (!this.#blockValidateCalls) this._validate();
208
206
  };
209
207
  }
210
208
  errorTextChanged(_, newErrorText) {
@@ -237,8 +235,7 @@ var __decorateClass = (decorators, target, key, kind) => {
237
235
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
238
236
  if (decorator = decorators[i])
239
237
  result = (decorator(target, key, result) ) || result;
240
- if (result)
241
- __defProp(target, key, result);
238
+ if (result) __defProp(target, key, result);
242
239
  return result;
243
240
  };
244
241
  class CurrentLocale {
package/shared/index2.js CHANGED
@@ -13,8 +13,7 @@ var __decorateClass$1 = (decorators, target, key, kind) => {
13
13
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
14
  if (decorator = decorators[i])
15
15
  result = (decorator(target, key, result) ) || result;
16
- if (result)
17
- __defProp$1(target, key, result);
16
+ if (result) __defProp$1(target, key, result);
18
17
  return result;
19
18
  };
20
19
  class FormElementHelperText {
@@ -201,8 +200,7 @@ function errorText(constructor) {
201
200
  super(...args);
202
201
  this._validate = this.validate;
203
202
  this.validate = () => {
204
- if (!this.#blockValidateCalls)
205
- this._validate();
203
+ if (!this.#blockValidateCalls) this._validate();
206
204
  };
207
205
  }
208
206
  errorTextChanged(_, newErrorText) {
@@ -235,8 +233,7 @@ var __decorateClass = (decorators, target, key, kind) => {
235
233
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
236
234
  if (decorator = decorators[i])
237
235
  result = (decorator(target, key, result) ) || result;
238
- if (result)
239
- __defProp(target, key, result);
236
+ if (result) __defProp(target, key, result);
240
237
  return result;
241
238
  };
242
239
  class CurrentLocale {
@@ -998,8 +998,7 @@ var __decorateClass = (decorators, target, key, kind) => {
998
998
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
999
999
  if (decorator = decorators[i])
1000
1000
  result = (decorator(target, key, result) ) || result;
1001
- if (result)
1002
- __defProp(target, key, result);
1001
+ if (result) __defProp(target, key, result);
1003
1002
  return result;
1004
1003
  };
1005
1004
  class Listbox extends ListboxElement {
package/shared/listbox.js CHANGED
@@ -996,8 +996,7 @@ var __decorateClass = (decorators, target, key, kind) => {
996
996
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
997
997
  if (decorator = decorators[i])
998
998
  result = (decorator(target, key, result) ) || result;
999
- if (result)
1000
- __defProp(target, key, result);
999
+ if (result) __defProp(target, key, result);
1001
1000
  return result;
1002
1001
  };
1003
1002
  class Listbox extends ListboxElement {
@@ -0,0 +1,2 @@
1
+ import type { ElementDefinitionContext } from '@microsoft/fast-foundation';
2
+ export declare const chevronTemplateFactory: (context: ElementDefinitionContext) => import("@microsoft/fast-element").ViewTemplate<any, any>;
@@ -5669,8 +5669,7 @@ var __decorateClass = (decorators, target, key, kind) => {
5669
5669
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5670
5670
  if (decorator = decorators[i])
5671
5671
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5672
- if (kind && result)
5673
- __defProp(target, key, result);
5672
+ if (kind && result) __defProp(target, key, result);
5674
5673
  return result;
5675
5674
  };
5676
5675
  const ValidDateFilter = {