@vonage/vivid 5.21.0 → 5.22.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 (276) hide show
  1. package/accordion/index.cjs +1 -1
  2. package/accordion/index.js +2 -2
  3. package/alert/index.cjs +1 -1
  4. package/alert/index.js +1 -1
  5. package/audio-player/index.cjs +3 -5
  6. package/audio-player/index.js +30 -32
  7. package/avatar/index.cjs +1 -1
  8. package/avatar/index.js +1 -1
  9. package/banner/index.cjs +1 -1
  10. package/banner/index.js +1 -1
  11. package/bundled/affix.cjs +4 -4
  12. package/bundled/affix.js +4 -4
  13. package/bundled/base-color-picker.cjs +2 -2
  14. package/bundled/base-color-picker.js +2 -2
  15. package/bundled/button.cjs +1 -1
  16. package/bundled/button.js +1 -1
  17. package/bundled/definition10.cjs +1 -1
  18. package/bundled/definition10.js +1 -1
  19. package/bundled/definition13.cjs +1 -1
  20. package/bundled/definition13.js +1 -1
  21. package/bundled/definition15.cjs +1 -1
  22. package/bundled/definition15.js +2 -2
  23. package/bundled/definition16.cjs +2 -2
  24. package/bundled/definition16.js +2 -2
  25. package/bundled/definition17.cjs +1 -1
  26. package/bundled/definition17.js +1 -1
  27. package/bundled/definition18.cjs +2 -2
  28. package/bundled/definition18.js +14 -5
  29. package/bundled/definition19.cjs +1 -1
  30. package/bundled/definition19.js +1 -1
  31. package/bundled/definition20.cjs +1 -1
  32. package/bundled/definition20.js +1 -1
  33. package/bundled/definition21.cjs +1 -1
  34. package/bundled/definition21.js +2 -2
  35. package/bundled/definition24.cjs +1 -1
  36. package/bundled/definition24.js +1 -1
  37. package/bundled/definition3.cjs +1 -1
  38. package/bundled/definition3.js +3 -3
  39. package/bundled/definition4.cjs +1 -1
  40. package/bundled/definition4.js +1 -1
  41. package/bundled/definition5.cjs +1 -1
  42. package/bundled/definition5.js +1 -1
  43. package/bundled/definition6.cjs +1 -1
  44. package/bundled/definition6.js +1 -1
  45. package/bundled/definition8.cjs +1 -1
  46. package/bundled/definition8.js +12 -6
  47. package/bundled/definition9.cjs +1 -1
  48. package/bundled/definition9.js +1 -1
  49. package/bundled/form-associated.cjs +1 -1
  50. package/bundled/form-associated.js +2 -2
  51. package/bundled/listbox.cjs +1 -1
  52. package/bundled/listbox.js +5 -5
  53. package/bundled/numberConverter.cjs +1 -1
  54. package/bundled/numberConverter.js +1 -1
  55. package/bundled/slider.template.cjs +1 -1
  56. package/bundled/slider.template.js +1 -1
  57. package/bundled/vivid-element.cjs +1 -1
  58. package/bundled/vivid-element.js +1 -1
  59. package/bundled/with-contextual-help.cjs +1 -1
  60. package/bundled/with-contextual-help.js +1 -1
  61. package/calendar/index.cjs +1 -1
  62. package/calendar/index.js +3 -3
  63. package/color-picker/index.cjs +20 -20
  64. package/color-picker/index.js +22 -22
  65. package/combobox/index.cjs +1 -1
  66. package/combobox/index.js +6 -6
  67. package/country-group/index.cjs +1 -1
  68. package/country-group/index.js +1 -1
  69. package/custom-elements.json +2880 -2838
  70. package/data-grid/index.cjs +2 -2
  71. package/data-grid/index.js +12 -10
  72. package/dial-pad/index.cjs +1 -1
  73. package/dial-pad/index.js +2 -2
  74. package/dialog/index.cjs +1 -1
  75. package/dialog/index.js +1 -1
  76. package/header/index.cjs +1 -1
  77. package/header/index.js +1 -1
  78. package/lib/audio-player/audio-player.d.ts +0 -1
  79. package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +1 -1
  80. package/lib/checkbox/checkbox.d.ts +16 -16
  81. package/lib/color-picker/color-picker.d.ts +16 -16
  82. package/lib/combobox/combobox.d.ts +21 -21
  83. package/lib/date-picker/date-picker.d.ts +26 -26
  84. package/lib/date-range-picker/date-range-picker.d.ts +14 -14
  85. package/lib/date-time-picker/date-time-picker.d.ts +24 -24
  86. package/lib/dial-pad/dial-pad.d.ts +1 -1
  87. package/lib/file-picker/file-picker.d.ts +21 -21
  88. package/lib/menu/menu.d.ts +1 -1
  89. package/lib/number-field/number-field.d.ts +22 -22
  90. package/lib/popup/popup.d.ts +2 -1
  91. package/lib/radio/radio.d.ts +16 -16
  92. package/lib/range-slider/range-slider.d.ts +10 -10
  93. package/lib/rich-text-editor/popover.d.ts +1 -1
  94. package/lib/rich-text-editor/rte/exports.d.ts +1 -0
  95. package/lib/rich-text-editor/rte/feature.d.ts +5 -5
  96. package/lib/rich-text-editor/rte/features/drop-handler.d.ts +1 -2
  97. package/lib/rich-text-editor/rte/features/internal/core.d.ts +8 -0
  98. package/lib/rich-text-editor/rte/features/keyboard-shortcuts.d.ts +1 -1
  99. package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +1 -1
  100. package/lib/rich-text-editor/rte/instance.d.ts +1 -0
  101. package/lib/rich-text-editor/rte/public-interface.d.ts +3 -0
  102. package/lib/rich-text-editor/rte/utils/ui.d.ts +1 -1
  103. package/lib/searchable-select/searchable-select.d.ts +21 -21
  104. package/lib/select/select.d.ts +22 -22
  105. package/lib/simple-color-picker/simple-color-picker.d.ts +5 -5
  106. package/lib/slider/slider.d.ts +5 -5
  107. package/lib/switch/switch.d.ts +5 -5
  108. package/lib/table/table-body.template.d.ts +1 -2
  109. package/lib/table/table-cell.template.d.ts +1 -2
  110. package/lib/table/table-head.template.d.ts +1 -2
  111. package/lib/table/table-row.template.d.ts +1 -2
  112. package/lib/table/table.template.d.ts +1 -2
  113. package/lib/text-area/text-area.d.ts +21 -21
  114. package/lib/text-field/text-field.d.ts +22 -22
  115. package/lib/time-picker/time-picker.d.ts +12 -12
  116. package/nav-disclosure/index.cjs +1 -1
  117. package/nav-disclosure/index.js +1 -1
  118. package/nav-item/index.cjs +1 -1
  119. package/nav-item/index.js +1 -1
  120. package/package.json +8 -6
  121. package/pagination/index.cjs +1 -1
  122. package/pagination/index.js +9 -2
  123. package/popover/index.cjs +1 -1
  124. package/popover/index.js +1 -1
  125. package/progress/index.cjs +1 -1
  126. package/progress/index.js +1 -1
  127. package/radio-group/index.cjs +1 -1
  128. package/radio-group/index.js +21 -19
  129. package/range-slider/index.cjs +1 -1
  130. package/range-slider/index.js +1 -1
  131. package/rich-text-editor/index.cjs +4 -3
  132. package/rich-text-editor/index.js +55 -27
  133. package/selectable-box/index.cjs +1 -1
  134. package/selectable-box/index.js +6 -1
  135. package/shared/color-picker/base-color-picker.d.ts +5 -5
  136. package/shared/feedback/mixins.d.ts +1 -1
  137. package/shared/foundation/button/button.d.ts +5 -5
  138. package/shared/foundation/form-associated/form-associated.d.ts +10 -10
  139. package/shared/foundation/listbox/listbox.d.ts +1 -1
  140. package/shared/patterns/form-elements/form-element.d.ts +5 -5
  141. package/shared/patterns/form-elements/with-contextual-help.d.ts +5 -5
  142. package/shared/patterns/form-elements/with-error-text.d.ts +6 -6
  143. package/shared/picker-field/mixins/calendar-picker.d.ts +6 -6
  144. package/shared/picker-field/mixins/calendar-picker.template.d.ts +6 -6
  145. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +8 -8
  146. package/shared/picker-field/mixins/single-date-picker.d.ts +6 -6
  147. package/shared/picker-field/mixins/single-value-picker.d.ts +6 -6
  148. package/shared/picker-field/mixins/time-selection-picker.d.ts +6 -6
  149. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +12 -12
  150. package/shared/picker-field/picker-field.d.ts +21 -21
  151. package/shared/utils/slottable-request.d.ts +1 -1
  152. package/switch/index.cjs +1 -1
  153. package/switch/index.js +1 -1
  154. package/table/index.cjs +5 -5
  155. package/table/index.js +5 -5
  156. package/tabs/index.cjs +1 -1
  157. package/tabs/index.js +2 -2
  158. package/tag/index.cjs +1 -1
  159. package/tag/index.js +1 -1
  160. package/tree-view/index.cjs +1 -1
  161. package/tree-view/index.js +0 -2
  162. package/unbundled/affix.cjs +4 -4
  163. package/unbundled/affix.js +4 -4
  164. package/unbundled/base-color-picker.cjs +3 -3
  165. package/unbundled/base-color-picker.js +3 -3
  166. package/unbundled/button.cjs +5 -5
  167. package/unbundled/button.js +5 -5
  168. package/unbundled/definition10.cjs +15 -4
  169. package/unbundled/definition10.js +15 -4
  170. package/unbundled/definition11.cjs +3 -3
  171. package/unbundled/definition11.js +3 -3
  172. package/unbundled/definition12.cjs +1 -1
  173. package/unbundled/definition12.js +1 -1
  174. package/unbundled/definition13.cjs +2 -2
  175. package/unbundled/definition13.js +2 -2
  176. package/unbundled/definition14.cjs +73 -76
  177. package/unbundled/definition14.js +73 -76
  178. package/unbundled/definition15.cjs +1 -1
  179. package/unbundled/definition15.js +1 -1
  180. package/unbundled/definition17.cjs +1 -1
  181. package/unbundled/definition17.js +1 -1
  182. package/unbundled/definition19.cjs +2 -1
  183. package/unbundled/definition19.js +2 -1
  184. package/unbundled/definition2.cjs +1 -1
  185. package/unbundled/definition2.js +1 -1
  186. package/unbundled/definition21.cjs +3 -3
  187. package/unbundled/definition21.js +3 -3
  188. package/unbundled/definition23.cjs +2 -2
  189. package/unbundled/definition23.js +2 -2
  190. package/unbundled/definition24.cjs +1 -1
  191. package/unbundled/definition24.js +1 -1
  192. package/unbundled/definition27.cjs +1 -1
  193. package/unbundled/definition27.js +1 -1
  194. package/unbundled/definition28.cjs +23 -23
  195. package/unbundled/definition28.js +23 -23
  196. package/unbundled/definition29.cjs +1 -1
  197. package/unbundled/definition29.js +1 -1
  198. package/unbundled/definition3.cjs +2 -2
  199. package/unbundled/definition3.js +2 -2
  200. package/unbundled/definition30.cjs +7 -7
  201. package/unbundled/definition30.js +7 -7
  202. package/unbundled/definition32.cjs +1 -1
  203. package/unbundled/definition32.js +1 -1
  204. package/unbundled/definition34.cjs +9 -8
  205. package/unbundled/definition34.js +9 -8
  206. package/unbundled/definition35.cjs +1 -1
  207. package/unbundled/definition35.js +1 -1
  208. package/unbundled/definition39.cjs +2 -2
  209. package/unbundled/definition39.js +2 -2
  210. package/unbundled/definition40.cjs +1 -1
  211. package/unbundled/definition40.js +1 -1
  212. package/unbundled/definition44.cjs +1 -1
  213. package/unbundled/definition44.js +1 -1
  214. package/unbundled/definition48.cjs +1 -1
  215. package/unbundled/definition48.js +1 -1
  216. package/unbundled/definition49.cjs +1 -1
  217. package/unbundled/definition49.js +1 -1
  218. package/unbundled/definition5.cjs +1 -1
  219. package/unbundled/definition5.js +1 -1
  220. package/unbundled/definition53.cjs +10 -3
  221. package/unbundled/definition53.js +10 -3
  222. package/unbundled/definition55.cjs +1 -1
  223. package/unbundled/definition55.js +1 -1
  224. package/unbundled/definition56.cjs +1 -1
  225. package/unbundled/definition56.js +1 -1
  226. package/unbundled/definition57.cjs +4 -5
  227. package/unbundled/definition57.js +4 -5
  228. package/unbundled/definition58.cjs +20 -19
  229. package/unbundled/definition58.js +20 -19
  230. package/unbundled/definition59.cjs +1 -1
  231. package/unbundled/definition59.js +1 -1
  232. package/unbundled/definition60.cjs +47 -9
  233. package/unbundled/definition60.js +47 -9
  234. package/unbundled/definition61.cjs +12 -6
  235. package/unbundled/definition61.js +12 -6
  236. package/unbundled/definition64.cjs +4 -1
  237. package/unbundled/definition64.js +4 -1
  238. package/unbundled/definition65.cjs +2 -1
  239. package/unbundled/definition65.js +2 -1
  240. package/unbundled/definition69.cjs +3 -2
  241. package/unbundled/definition69.js +3 -2
  242. package/unbundled/definition7.cjs +1 -1
  243. package/unbundled/definition7.js +1 -1
  244. package/unbundled/definition71.cjs +1 -1
  245. package/unbundled/definition71.js +1 -1
  246. package/unbundled/definition72.cjs +5 -5
  247. package/unbundled/definition72.js +5 -5
  248. package/unbundled/definition73.cjs +2 -2
  249. package/unbundled/definition73.js +2 -2
  250. package/unbundled/definition75.cjs +1 -1
  251. package/unbundled/definition75.js +1 -1
  252. package/unbundled/definition78.cjs +1 -1
  253. package/unbundled/definition78.js +1 -1
  254. package/unbundled/definition79.cjs +0 -2
  255. package/unbundled/definition79.js +0 -2
  256. package/unbundled/definition80.cjs +1 -1
  257. package/unbundled/definition80.js +1 -1
  258. package/unbundled/definition9.cjs +1 -1
  259. package/unbundled/definition9.js +1 -1
  260. package/unbundled/form-associated.cjs +2 -2
  261. package/unbundled/form-associated.js +2 -2
  262. package/unbundled/listbox.cjs +7 -7
  263. package/unbundled/listbox.js +7 -7
  264. package/unbundled/numberConverter.cjs +1 -1
  265. package/unbundled/numberConverter.js +1 -1
  266. package/unbundled/slider.template.cjs +1 -1
  267. package/unbundled/slider.template.js +1 -1
  268. package/unbundled/slottable-request.cjs +5 -5
  269. package/unbundled/slottable-request.js +5 -5
  270. package/unbundled/vivid-element.cjs +1 -1
  271. package/unbundled/vivid-element.js +1 -1
  272. package/unbundled/with-contextual-help.cjs +4 -1
  273. package/unbundled/with-contextual-help.js +4 -1
  274. package/video-player/index.cjs +1 -1
  275. package/video-player/index.js +1 -1
  276. package/vivid.api.json +60 -18
@@ -164,7 +164,7 @@ __decorate([attr], ListboxOption.prototype, "connotation", void 0);
164
164
  __decorate([attr({ attribute: "tag-connotation" })], ListboxOption.prototype, "tagConnotation", void 0);
165
165
  //#endregion
166
166
  //#region src/lib/option/option.template.ts
167
- var getClasses = (x) => classNames("base", [`connotation-${x.connotation}`, Boolean(x.connotation)], ["disabled", x.disabled], ["selected", Boolean(x.selected)], ["hover", Boolean(x._highlighted)], ["active", Boolean(x.checked)], ["icon", Boolean(x.icon)], ["two-lines", Boolean(x.text?.length) && Boolean(x.textSecondary?.length)]);
167
+ var getClasses = (x) => classNames("base", [`connotation-${x.connotation}`, Boolean(x.connotation)], ["disabled", x.disabled], ["selected", x.selected], ["hover", x._highlighted], ["active", Boolean(x.checked)], ["icon", Boolean(x.icon)], ["two-lines", Boolean(x.text?.length) && Boolean(x.textSecondary?.length)]);
168
168
  function text() {
169
169
  return html`${when((x) => x.text || x.textSecondary, html`<span class="text">
170
170
  ${when((x) => x.text, html`<span class="text-primary">
@@ -46,7 +46,7 @@ var Accordion = class extends require_vivid_element.VividElement {
46
46
  item.addEventListener("change", this.activeItemChange);
47
47
  /* v8 ignore else -- @preserve */
48
48
  if (this.isSingleExpandMode()) if (this.findExpandedItem() === null && index === 0) item.expanded = true;
49
- else item !== this.findExpandedItem() ? item.expanded = false : item.expanded = true;
49
+ else item.expanded = item === this.findExpandedItem();
50
50
  }
51
51
  const itemId = this.accordionIds[index];
52
52
  item.setAttribute("id", typeof itemId !== "string" ? `accordion-${index + 1}` : itemId);
@@ -108,7 +108,7 @@ var Accordion = class extends require_vivid_element.VividElement {
108
108
  }
109
109
  }
110
110
  findExpandedItem() {
111
- for (let item = 0; item < this.accordionItems.length; item++) if (this.accordionItems[item].hasAttribute("expanded") === true) return this.accordionItems[item];
111
+ for (let item = 0; item < this.accordionItems.length; item++) if (this.accordionItems[item].hasAttribute("expanded")) return this.accordionItems[item];
112
112
  return null;
113
113
  }
114
114
  resetItems() {
@@ -45,7 +45,7 @@ var Accordion = class extends VividElement {
45
45
  item.addEventListener("change", this.activeItemChange);
46
46
  /* v8 ignore else -- @preserve */
47
47
  if (this.isSingleExpandMode()) if (this.findExpandedItem() === null && index === 0) item.expanded = true;
48
- else item !== this.findExpandedItem() ? item.expanded = false : item.expanded = true;
48
+ else item.expanded = item === this.findExpandedItem();
49
49
  }
50
50
  const itemId = this.accordionIds[index];
51
51
  item.setAttribute("id", typeof itemId !== "string" ? `accordion-${index + 1}` : itemId);
@@ -107,7 +107,7 @@ var Accordion = class extends VividElement {
107
107
  }
108
108
  }
109
109
  findExpandedItem() {
110
- for (let item = 0; item < this.accordionItems.length; item++) if (this.accordionItems[item].hasAttribute("expanded") === true) return this.accordionItems[item];
110
+ for (let item = 0; item < this.accordionItems.length; item++) if (this.accordionItems[item].hasAttribute("expanded")) return this.accordionItems[item];
111
111
  return null;
112
112
  }
113
113
  resetItems() {
@@ -242,31 +242,31 @@ var Combobox = class extends require_with_contextual_help.WithContextualHelp(req
242
242
  if (this.isAutocompleteInline) this.filter = this.value;
243
243
  this.open = false;
244
244
  this.clearSelectionRange();
245
- break;
245
+ return;
246
246
  case "Escape":
247
247
  /* v8 ignore else -- @preserve */
248
248
  if (!this.isAutocompleteInline) this.selectedIndex = -1;
249
249
  if (this.open) {
250
250
  this.open = false;
251
- break;
251
+ return;
252
252
  }
253
253
  this.value = "";
254
254
  this.control.value = "";
255
255
  this.filter = "";
256
256
  this.filterOptions();
257
- break;
257
+ return;
258
258
  case "Tab":
259
259
  this.setInputToSelection();
260
260
  if (!this.open) return true;
261
261
  e.preventDefault();
262
262
  this.open = false;
263
- break;
263
+ return;
264
264
  case "ArrowUp":
265
265
  case "ArrowDown":
266
266
  this.filterOptions();
267
267
  if (!this.open) {
268
268
  this.open = true;
269
- break;
269
+ return;
270
270
  }
271
271
  /* v8 ignore else -- @preserve */
272
272
  if (this.filteredOptions.length > 0) {
@@ -275,7 +275,7 @@ var Combobox = class extends require_with_contextual_help.WithContextualHelp(req
275
275
  this._isNavigatingWithKeyboard = false;
276
276
  }
277
277
  if (this.isAutocompleteInline) this.setInlineSelection();
278
- break;
278
+ return;
279
279
  default: return true;
280
280
  }
281
281
  }
@@ -488,7 +488,7 @@ var comboboxTemplate = (context) => {
488
488
  @click="${(x, c) => x.clickHandler(c.event)}"
489
489
  @focusout="${(x, c) => x.focusoutHandler(c.event)}"
490
490
  @keydown="${(x, { event }) => {
491
- x.open && require_dialog.handleEscapeKeyAndStopPropogation(event);
491
+ if (x.open) require_dialog.handleEscapeKeyAndStopPropogation(event);
492
492
  return x.keydownHandler(event);
493
493
  }}"
494
494
  >
@@ -241,31 +241,31 @@ var Combobox = class extends WithContextualHelp(WithFeedback(WithErrorText(WithS
241
241
  if (this.isAutocompleteInline) this.filter = this.value;
242
242
  this.open = false;
243
243
  this.clearSelectionRange();
244
- break;
244
+ return;
245
245
  case "Escape":
246
246
  /* v8 ignore else -- @preserve */
247
247
  if (!this.isAutocompleteInline) this.selectedIndex = -1;
248
248
  if (this.open) {
249
249
  this.open = false;
250
- break;
250
+ return;
251
251
  }
252
252
  this.value = "";
253
253
  this.control.value = "";
254
254
  this.filter = "";
255
255
  this.filterOptions();
256
- break;
256
+ return;
257
257
  case "Tab":
258
258
  this.setInputToSelection();
259
259
  if (!this.open) return true;
260
260
  e.preventDefault();
261
261
  this.open = false;
262
- break;
262
+ return;
263
263
  case "ArrowUp":
264
264
  case "ArrowDown":
265
265
  this.filterOptions();
266
266
  if (!this.open) {
267
267
  this.open = true;
268
- break;
268
+ return;
269
269
  }
270
270
  /* v8 ignore else -- @preserve */
271
271
  if (this.filteredOptions.length > 0) {
@@ -274,7 +274,7 @@ var Combobox = class extends WithContextualHelp(WithFeedback(WithErrorText(WithS
274
274
  this._isNavigatingWithKeyboard = false;
275
275
  }
276
276
  if (this.isAutocompleteInline) this.setInlineSelection();
277
- break;
277
+ return;
278
278
  default: return true;
279
279
  }
280
280
  }
@@ -487,7 +487,7 @@ var comboboxTemplate = (context) => {
487
487
  @click="${(x, c) => x.clickHandler(c.event)}"
488
488
  @focusout="${(x, c) => x.focusoutHandler(c.event)}"
489
489
  @keydown="${(x, { event }) => {
490
- x.open && handleEscapeKeyAndStopPropogation(event);
490
+ if (x.open) handleEscapeKeyAndStopPropogation(event);
491
491
  return x.keydownHandler(event);
492
492
  }}"
493
493
  >
@@ -225,7 +225,7 @@ var CountryGroupTemplate = (context) => {
225
225
  connotation="cta"
226
226
  appearance="duotone"
227
227
  shape="pill"
228
- text="${(x) => "+" + x.overflowCount}"
228
+ text="${(x) => `+${x.overflowCount}`}"
229
229
  ></${badgeTag}>
230
230
  </div>
231
231
  `)}
@@ -224,7 +224,7 @@ var CountryGroupTemplate = (context) => {
224
224
  connotation="cta"
225
225
  appearance="duotone"
226
226
  shape="pill"
227
- text="${(x) => "+" + x.overflowCount}"
227
+ text="${(x) => `+${x.overflowCount}`}"
228
228
  ></${badgeTag}>
229
229
  </div>
230
230
  `)}
@@ -1146,7 +1146,7 @@ var DataGrid = class DataGrid extends require_vivid_element.VividElement {
1146
1146
  }
1147
1147
  queueFocusUpdate() {
1148
1148
  if (this.isUpdatingFocus && this.contains(document.activeElement)) return;
1149
- if (this.pendingFocusUpdate === false) {
1149
+ if (!this.pendingFocusUpdate) {
1150
1150
  this.pendingFocusUpdate = true;
1151
1151
  _microsoft_fast_element.Updates.enqueue(() => this.updateFocus());
1152
1152
  }
@@ -1176,7 +1176,7 @@ var DataGrid = class DataGrid extends require_vivid_element.VividElement {
1176
1176
  *
1177
1177
  * @internal
1178
1178
  */
1179
- slottedRowElementsChanged(_oldValue, _newValue) {
1179
+ slottedRowElementsChanged() {
1180
1180
  this._resetSelection();
1181
1181
  }
1182
1182
  get #selectedRows() {
@@ -1534,18 +1534,19 @@ var DataGridRow = class extends require_host_semantics.HostSemantics(require_viv
1534
1534
  */
1535
1535
  handleKeydown(e) {
1536
1536
  if (e.defaultPrevented) return;
1537
- let newFocusColumnIndex = 0;
1538
1537
  switch (e.key) {
1539
- case require_key_codes.keyArrowLeft:
1540
- newFocusColumnIndex = Math.max(0, this.focusColumnIndex - 1);
1538
+ case require_key_codes.keyArrowLeft: {
1539
+ const newFocusColumnIndex = Math.max(0, this.focusColumnIndex - 1);
1541
1540
  this.cellElements[newFocusColumnIndex].focus();
1542
1541
  e.preventDefault();
1543
1542
  break;
1544
- case require_key_codes.keyArrowRight:
1545
- newFocusColumnIndex = Math.min(this.cellElements.length - 1, this.focusColumnIndex + 1);
1543
+ }
1544
+ case require_key_codes.keyArrowRight: {
1545
+ const newFocusColumnIndex = Math.min(this.cellElements.length - 1, this.focusColumnIndex + 1);
1546
1546
  this.cellElements[newFocusColumnIndex].focus();
1547
1547
  e.preventDefault();
1548
1548
  break;
1549
+ }
1549
1550
  case _microsoft_fast_web_utilities.keyHome:
1550
1551
  if (!e.ctrlKey) {
1551
1552
  this.cellElements[0].focus();
@@ -1988,7 +1989,7 @@ function handleClick(x, e) {
1988
1989
  }
1989
1990
  var DataGridCellTemplate = (context) => {
1990
1991
  const visuallyHiddenTagName = context.tagFor(require_definition$1.VisuallyHidden);
1991
- const getBaseClasses = ({ selected, _actionItemsSlottedContent }) => (0, _microsoft_fast_web_utilities.classNames)("base", ["selected", !!selected], ["has-action-items", Boolean(_actionItemsSlottedContent?.length)]);
1992
+ const getBaseClasses = ({ selected, _actionItemsSlottedContent }) => (0, _microsoft_fast_web_utilities.classNames)("base", ["selected", selected], ["has-action-items", Boolean(_actionItemsSlottedContent?.length)]);
1992
1993
  return _microsoft_fast_element.html`
1993
1994
  <template
1994
1995
  tabindex="-1"
@@ -1145,7 +1145,7 @@ var DataGrid = class DataGrid extends VividElement {
1145
1145
  }
1146
1146
  queueFocusUpdate() {
1147
1147
  if (this.isUpdatingFocus && this.contains(document.activeElement)) return;
1148
- if (this.pendingFocusUpdate === false) {
1148
+ if (!this.pendingFocusUpdate) {
1149
1149
  this.pendingFocusUpdate = true;
1150
1150
  Updates.enqueue(() => this.updateFocus());
1151
1151
  }
@@ -1175,7 +1175,7 @@ var DataGrid = class DataGrid extends VividElement {
1175
1175
  *
1176
1176
  * @internal
1177
1177
  */
1178
- slottedRowElementsChanged(_oldValue, _newValue) {
1178
+ slottedRowElementsChanged() {
1179
1179
  this._resetSelection();
1180
1180
  }
1181
1181
  get #selectedRows() {
@@ -1533,18 +1533,19 @@ var DataGridRow = class extends HostSemantics(VividElement) {
1533
1533
  */
1534
1534
  handleKeydown(e) {
1535
1535
  if (e.defaultPrevented) return;
1536
- let newFocusColumnIndex = 0;
1537
1536
  switch (e.key) {
1538
- case keyArrowLeft$1:
1539
- newFocusColumnIndex = Math.max(0, this.focusColumnIndex - 1);
1537
+ case keyArrowLeft$1: {
1538
+ const newFocusColumnIndex = Math.max(0, this.focusColumnIndex - 1);
1540
1539
  this.cellElements[newFocusColumnIndex].focus();
1541
1540
  e.preventDefault();
1542
1541
  break;
1543
- case keyArrowRight$1:
1544
- newFocusColumnIndex = Math.min(this.cellElements.length - 1, this.focusColumnIndex + 1);
1542
+ }
1543
+ case keyArrowRight$1: {
1544
+ const newFocusColumnIndex = Math.min(this.cellElements.length - 1, this.focusColumnIndex + 1);
1545
1545
  this.cellElements[newFocusColumnIndex].focus();
1546
1546
  e.preventDefault();
1547
1547
  break;
1548
+ }
1548
1549
  case keyHome:
1549
1550
  if (!e.ctrlKey) {
1550
1551
  this.cellElements[0].focus();
@@ -1987,7 +1988,7 @@ function handleClick(x, e) {
1987
1988
  }
1988
1989
  var DataGridCellTemplate = (context) => {
1989
1990
  const visuallyHiddenTagName = context.tagFor(VisuallyHidden);
1990
- const getBaseClasses = ({ selected, _actionItemsSlottedContent }) => classNames("base", ["selected", !!selected], ["has-action-items", Boolean(_actionItemsSlottedContent?.length)]);
1991
+ const getBaseClasses = ({ selected, _actionItemsSlottedContent }) => classNames("base", ["selected", selected], ["has-action-items", Boolean(_actionItemsSlottedContent?.length)]);
1991
1992
  return html`
1992
1993
  <template
1993
1994
  tabindex="-1"
@@ -8,7 +8,7 @@ let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
8
8
  var divider_default = ":host{display:block}.base{--_connotation-color-soft:var(--vvd-divider-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-dim:var(--vvd-divider-accent-dim,var(--vvd-color-neutral-200));display:block}.base:not(.vertical){block-size:1px;inline-size:100%}.base.vertical{block-size:100%;inline-size:1px}.base.appearance-ghost{background-color:var(--_connotation-color-dim)}.base.appearance-subtle{background-color:var(--_connotation-color-soft)}";
9
9
  //#endregion
10
10
  //#region src/lib/divider/divider.template.ts
11
- var getClasses = ({ orientation, appearance }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`${orientation}`, Boolean(orientation)], [`appearance-${appearance}`, Boolean(appearance)]);
11
+ var getClasses = ({ orientation, appearance }) => (0, _microsoft_fast_web_utilities.classNames)("base", [orientation, Boolean(orientation)], [`appearance-${appearance}`, Boolean(appearance)]);
12
12
  var getAriaOrientation = ({ role, orientation }) => role === require_divider.DividerRole.presentation ? null : orientation;
13
13
  var DividerTemplate = _microsoft_fast_element.html`<template
14
14
  ${require_host_semantics.applyHostSemantics({
@@ -7,7 +7,7 @@ import { classNames } from "@microsoft/fast-web-utilities";
7
7
  var divider_default = ":host{display:block}.base{--_connotation-color-soft:var(--vvd-divider-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-dim:var(--vvd-divider-accent-dim,var(--vvd-color-neutral-200));display:block}.base:not(.vertical){block-size:1px;inline-size:100%}.base.vertical{block-size:100%;inline-size:1px}.base.appearance-ghost{background-color:var(--_connotation-color-dim)}.base.appearance-subtle{background-color:var(--_connotation-color-soft)}";
8
8
  //#endregion
9
9
  //#region src/lib/divider/divider.template.ts
10
- var getClasses = ({ orientation, appearance }) => classNames("base", [`${orientation}`, Boolean(orientation)], [`appearance-${appearance}`, Boolean(appearance)]);
10
+ var getClasses = ({ orientation, appearance }) => classNames("base", [orientation, Boolean(orientation)], [`appearance-${appearance}`, Boolean(appearance)]);
11
11
  var getAriaOrientation = ({ role, orientation }) => role === DividerRole.presentation ? null : orientation;
12
12
  //#endregion
13
13
  //#region src/lib/divider/definition.ts
@@ -48,7 +48,7 @@ var DialPad = class extends require_localized.Localized(require_vivid_element.Vi
48
48
  this._onDial = () => {
49
49
  if (!this._textFieldEl.checkValidity()) this._announceValidationError(this._textFieldEl.errorValidationMessage ?? "");
50
50
  else this._clearErrorAnnouncement();
51
- this.callActive ? this.$emit("end-call") : this.$emit("dial");
51
+ this.$emit(this.callActive ? "end-call" : "dial");
52
52
  };
53
53
  this.autofocus = false;
54
54
  this._errorAnnouncement = "";
@@ -201,7 +201,7 @@ var DIAL_PAD_BUTTONS = [
201
201
  new DialPadButton("0", "+", "digitZeroLabel", "zero-solid", "btn0"),
202
202
  new DialPadButton("#", null, "digitHashtagLabel", "hashtag-solid", "btnHashtag")
203
203
  ];
204
- var getClasses = ({ noInput, size }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`size-${size}`, Boolean(size)], ["no-input", Boolean(noInput)]);
204
+ var getClasses = ({ noInput, size }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`size-${size}`, Boolean(size)], ["no-input", noInput]);
205
205
  function handleKeyDown(x, e) {
206
206
  if (e.key === _microsoft_fast_web_utilities.keyEnter && !x.pending && !x.disabled && !x.callActive && !x.noCall && x.value.length > 0 && e.target instanceof HTMLInputElement) x._onDial();
207
207
  else if (e.key === " " || e.key === "Space") {
@@ -47,7 +47,7 @@ var DialPad = class extends Localized(VividElement) {
47
47
  this._onDial = () => {
48
48
  if (!this._textFieldEl.checkValidity()) this._announceValidationError(this._textFieldEl.errorValidationMessage ?? "");
49
49
  else this._clearErrorAnnouncement();
50
- this.callActive ? this.$emit("end-call") : this.$emit("dial");
50
+ this.$emit(this.callActive ? "end-call" : "dial");
51
51
  };
52
52
  this.autofocus = false;
53
53
  this._errorAnnouncement = "";
@@ -200,7 +200,7 @@ var DIAL_PAD_BUTTONS = [
200
200
  new DialPadButton("0", "+", "digitZeroLabel", "zero-solid", "btn0"),
201
201
  new DialPadButton("#", null, "digitHashtagLabel", "hashtag-solid", "btnHashtag")
202
202
  ];
203
- var getClasses = ({ noInput, size }) => classNames("base", [`size-${size}`, Boolean(size)], ["no-input", Boolean(noInput)]);
203
+ var getClasses = ({ noInput, size }) => classNames("base", [`size-${size}`, Boolean(size)], ["no-input", noInput]);
204
204
  function handleKeyDown(x, e) {
205
205
  if (e.key === keyEnter && !x.pending && !x.disabled && !x.callActive && !x.noCall && x.value.length > 0 && e.target instanceof HTMLInputElement) x._onDial();
206
206
  else if (e.key === " " || e.key === "Space") {
@@ -196,7 +196,7 @@ require_decorate.__decorate([_microsoft_fast_element.observable], Dialog.prototy
196
196
  require_decorate.__decorate([_microsoft_fast_element.observable], Dialog.prototype, "actionItemsSlottedContent", void 0);
197
197
  //#endregion
198
198
  //#region src/lib/dialog/dialog.template.ts
199
- var getClasses = ({ iconPlacement, bodySlottedContent, footerSlottedContent, actionItemsSlottedContent, _openedAsModal, scrollableBody }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`icon-placement-${iconPlacement}`, Boolean(iconPlacement)], ["hide-body", !bodySlottedContent?.length], ["hide-footer", !(footerSlottedContent?.length || actionItemsSlottedContent?.length)], ["modal", _openedAsModal], ["scrollable-body", Boolean(scrollableBody)]);
199
+ var getClasses = ({ iconPlacement, bodySlottedContent, footerSlottedContent, actionItemsSlottedContent, _openedAsModal, scrollableBody }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`icon-placement-${iconPlacement}`, Boolean(iconPlacement)], ["hide-body", !bodySlottedContent?.length], ["hide-footer", !(footerSlottedContent?.length || actionItemsSlottedContent?.length)], ["modal", _openedAsModal], ["scrollable-body", scrollableBody]);
200
200
  function icon(iconTag) {
201
201
  return _microsoft_fast_element.html`
202
202
  <${iconTag} class="icon" name="${(x) => x.icon}"></${iconTag}>
@@ -195,7 +195,7 @@ __decorate([observable], Dialog.prototype, "footerSlottedContent", void 0);
195
195
  __decorate([observable], Dialog.prototype, "actionItemsSlottedContent", void 0);
196
196
  //#endregion
197
197
  //#region src/lib/dialog/dialog.template.ts
198
- var getClasses = ({ iconPlacement, bodySlottedContent, footerSlottedContent, actionItemsSlottedContent, _openedAsModal, scrollableBody }) => classNames("base", [`icon-placement-${iconPlacement}`, Boolean(iconPlacement)], ["hide-body", !bodySlottedContent?.length], ["hide-footer", !(footerSlottedContent?.length || actionItemsSlottedContent?.length)], ["modal", _openedAsModal], ["scrollable-body", Boolean(scrollableBody)]);
198
+ var getClasses = ({ iconPlacement, bodySlottedContent, footerSlottedContent, actionItemsSlottedContent, _openedAsModal, scrollableBody }) => classNames("base", [`icon-placement-${iconPlacement}`, Boolean(iconPlacement)], ["hide-body", !bodySlottedContent?.length], ["hide-footer", !(footerSlottedContent?.length || actionItemsSlottedContent?.length)], ["modal", _openedAsModal], ["scrollable-body", scrollableBody]);
199
199
  function icon(iconTag) {
200
200
  return html`
201
201
  <${iconTag} class="icon" name="${(x) => x.icon}"></${iconTag}>
@@ -30,7 +30,7 @@ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
30
30
  require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Header.prototype, "alternate", void 0);
31
31
  //#endregion
32
32
  //#region src/lib/header/header.template.ts
33
- var getPartAlternate = ({ alternate }) => (0, _microsoft_fast_web_utilities.classNames)(["vvd-theme-alternate", Boolean(alternate)]);
33
+ var getPartAlternate = ({ alternate }) => (0, _microsoft_fast_web_utilities.classNames)(["vvd-theme-alternate", alternate]);
34
34
  var headerTemplate = (context) => {
35
35
  const elevationTag = context.tagFor(require_definition.Elevation);
36
36
  return _microsoft_fast_element.html`
@@ -29,7 +29,7 @@ __decorate([attr({
29
29
  __decorate([attr({ mode: "boolean" })], Header.prototype, "alternate", void 0);
30
30
  //#endregion
31
31
  //#region src/lib/header/header.template.ts
32
- var getPartAlternate = ({ alternate }) => classNames(["vvd-theme-alternate", Boolean(alternate)]);
32
+ var getPartAlternate = ({ alternate }) => classNames(["vvd-theme-alternate", alternate]);
33
33
  var headerTemplate = (context) => {
34
34
  const elevationTag = context.tagFor(Elevation);
35
35
  return html`
@@ -67,7 +67,7 @@ require_decorate.__decorate([require_vivid_element.replaces({
67
67
  })], NavDisclosure.prototype, "current", void 0);
68
68
  //#endregion
69
69
  //#region src/lib/nav-disclosure/nav-disclosure.template.ts
70
- var getClasses = ({ appearance, connotation, current, open }) => (0, _microsoft_fast_web_utilities.classNames)("control", [`appearance-${appearance}`, Boolean(appearance)], [`connotation-${connotation}`, Boolean(connotation)], ["current-closed selected", Boolean(current) && !open]);
70
+ var getClasses = ({ appearance, connotation, current, open }) => (0, _microsoft_fast_web_utilities.classNames)("control", [`appearance-${appearance}`, Boolean(appearance)], [`connotation-${connotation}`, Boolean(connotation)], ["current-closed selected", current && !open]);
71
71
  var NavDisclosureTemplate = (context) => {
72
72
  const affixIconTemplate = require_affix.affixIconTemplateFactory(context);
73
73
  const iconTag = context.tagFor(require_definition.Icon);
@@ -66,7 +66,7 @@ __decorate([replaces({
66
66
  })], NavDisclosure.prototype, "current", void 0);
67
67
  //#endregion
68
68
  //#region src/lib/nav-disclosure/nav-disclosure.template.ts
69
- var getClasses = ({ appearance, connotation, current, open }) => classNames("control", [`appearance-${appearance}`, Boolean(appearance)], [`connotation-${connotation}`, Boolean(connotation)], ["current-closed selected", Boolean(current) && !open]);
69
+ var getClasses = ({ appearance, connotation, current, open }) => classNames("control", [`appearance-${appearance}`, Boolean(appearance)], [`connotation-${connotation}`, Boolean(connotation)], ["current-closed selected", current && !open]);
70
70
  var NavDisclosureTemplate = (context) => {
71
71
  const affixIconTemplate = affixIconTemplateFactory(context);
72
72
  const iconTag = context.tagFor(Icon);
@@ -43,7 +43,7 @@ require_decorate.__decorate([require_vivid_element.replaces({
43
43
  })], NavItem.prototype, "current", void 0);
44
44
  //#endregion
45
45
  //#region src/lib/nav-item/nav-item.template.ts
46
- var getClasses = ({ text, connotation, appearance, current }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["icon-only", !text], [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], ["current selected", Boolean(current)]);
46
+ var getClasses = ({ text, connotation, appearance, current }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["icon-only", !text], [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], ["current selected", current]);
47
47
  var NavItemTemplate = (context) => {
48
48
  const affixIconTemplate = require_affix.affixIconTemplateFactory(context);
49
49
  return _microsoft_fast_element.html`${(x) => x._renderLinkElement(_microsoft_fast_element.html`${(x) => affixIconTemplate(x.icon, require_affix.IconWrapper.Slot)}
@@ -42,7 +42,7 @@ __decorate([replaces({
42
42
  })], NavItem.prototype, "current", void 0);
43
43
  //#endregion
44
44
  //#region src/lib/nav-item/nav-item.template.ts
45
- var getClasses = ({ text, connotation, appearance, current }) => classNames("control", ["icon-only", !text], [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], ["current selected", Boolean(current)]);
45
+ var getClasses = ({ text, connotation, appearance, current }) => classNames("control", ["icon-only", !text], [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], ["current selected", current]);
46
46
  var NavItemTemplate = (context) => {
47
47
  const affixIconTemplate = affixIconTemplateFactory(context);
48
48
  return html`${(x) => x._renderLinkElement(html`${(x) => affixIconTemplate(x.icon, IconWrapper.Slot)}
@@ -18,7 +18,7 @@ require_decorate.__decorate([_microsoft_fast_element.attr], ProgressRing.prototy
18
18
  require_decorate.__decorate([_microsoft_fast_element.attr], ProgressRing.prototype, "size", void 0);
19
19
  //#endregion
20
20
  //#region src/lib/progress-ring/progress-ring.template.ts
21
- var getClasses = ({ connotation, size, paused }) => (0, _microsoft_fast_web_utilities.classNames)("base", ["disabled", !!paused], [`connotation-${connotation}`, !!connotation], [`size-${size}`, !!size]);
21
+ var getClasses = ({ connotation, size, paused }) => (0, _microsoft_fast_web_utilities.classNames)("base", ["disabled", paused], [`connotation-${connotation}`, !!connotation], [`size-${size}`, !!size]);
22
22
  var progressSegments = 44;
23
23
  var ProgressRingTemplate = _microsoft_fast_element.html`<template>
24
24
  <div
@@ -17,7 +17,7 @@ __decorate([attr], ProgressRing.prototype, "connotation", void 0);
17
17
  __decorate([attr], ProgressRing.prototype, "size", void 0);
18
18
  //#endregion
19
19
  //#region src/lib/progress-ring/progress-ring.template.ts
20
- var getClasses = ({ connotation, size, paused }) => classNames("base", ["disabled", !!paused], [`connotation-${connotation}`, !!connotation], [`size-${size}`, !!size]);
20
+ var getClasses = ({ connotation, size, paused }) => classNames("base", ["disabled", paused], [`connotation-${connotation}`, !!connotation], [`size-${size}`, !!size]);
21
21
  var progressSegments = 44;
22
22
  //#endregion
23
23
  //#region src/lib/progress-ring/definition.ts
@@ -61,9 +61,16 @@ var Pagination = class extends require_localized.Localized(require_vivid_element
61
61
  const index = this.paginationButtons.findIndex((button) => Number(button.label) === currentLabel);
62
62
  const focusDirection = shiftKey ? -1 : 1;
63
63
  const newIndex = index + focusDirection;
64
- if (newIndex < 0) return this.prevButton.focus();
65
- if (newIndex > this.paginationButtons.length - 1) return this.nextButton.focus();
66
- this.paginationButtons && this.paginationButtons[index + focusDirection].focus();
64
+ if (newIndex < 0) {
65
+ this.prevButton.focus();
66
+ return;
67
+ }
68
+ if (newIndex > this.paginationButtons.length - 1) {
69
+ this.nextButton.focus();
70
+ return;
71
+ }
72
+ /* v8 ignore else -- @preserve */
73
+ if (this.paginationButtons) this.paginationButtons[index + focusDirection].focus();
67
74
  });
68
75
  }
69
76
  /**
@@ -60,9 +60,16 @@ var Pagination = class extends Localized(VividElement) {
60
60
  const index = this.paginationButtons.findIndex((button) => Number(button.label) === currentLabel);
61
61
  const focusDirection = shiftKey ? -1 : 1;
62
62
  const newIndex = index + focusDirection;
63
- if (newIndex < 0) return this.prevButton.focus();
64
- if (newIndex > this.paginationButtons.length - 1) return this.nextButton.focus();
65
- this.paginationButtons && this.paginationButtons[index + focusDirection].focus();
63
+ if (newIndex < 0) {
64
+ this.prevButton.focus();
65
+ return;
66
+ }
67
+ if (newIndex > this.paginationButtons.length - 1) {
68
+ this.nextButton.focus();
69
+ return;
70
+ }
71
+ /* v8 ignore else -- @preserve */
72
+ if (this.paginationButtons) this.paginationButtons[index + focusDirection].focus();
66
73
  });
67
74
  }
68
75
  /**
@@ -262,7 +262,7 @@ require_decorate.__decorate([_microsoft_fast_element.observable], Popover.protot
262
262
  require_decorate.__decorate([_microsoft_fast_element.observable], Popover.prototype, "_slottedAnchor", void 0);
263
263
  //#endregion
264
264
  //#region src/lib/popover/popover.template.ts
265
- var getClasses = ({ open, manual, layout }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["open", Boolean(open)], ["manual", Boolean(manual)], ["condensed", layout === "condensed"]);
265
+ var getClasses = ({ open, manual, layout }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["open", open], ["manual", manual], ["condensed", layout === "condensed"]);
266
266
  /**
267
267
  * The template for the Popover component.
268
268
  *
@@ -261,7 +261,7 @@ __decorate([observable], Popover.prototype, "anchor", void 0);
261
261
  __decorate([observable], Popover.prototype, "_slottedAnchor", void 0);
262
262
  //#endregion
263
263
  //#region src/lib/popover/popover.template.ts
264
- var getClasses = ({ open, manual, layout }) => classNames("control", ["open", Boolean(open)], ["manual", Boolean(manual)], ["condensed", layout === "condensed"]);
264
+ var getClasses = ({ open, manual, layout }) => classNames("control", ["open", open], ["manual", manual], ["condensed", layout === "condensed"]);
265
265
  /**
266
266
  * The template for the Popover component.
267
267
  *
@@ -24,7 +24,7 @@ require_decorate.__decorate([(0, _microsoft_fast_element.attr)()], Progress.prot
24
24
  require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Progress.prototype, "reverse", void 0);
25
25
  //#endregion
26
26
  //#region src/lib/progress/progress.template.ts
27
- var getClasses = ({ connotation, shape, reverse, paused }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ["reverse", Boolean(reverse)], ["paused", Boolean(paused)]);
27
+ var getClasses = ({ connotation, shape, reverse, paused }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ["reverse", reverse], ["paused", paused]);
28
28
  function determinate() {
29
29
  return _microsoft_fast_element.html` <span
30
30
  class="determinate"
@@ -23,7 +23,7 @@ __decorate([attr()], Progress.prototype, "connotation", void 0);
23
23
  __decorate([attr({ mode: "boolean" })], Progress.prototype, "reverse", void 0);
24
24
  //#endregion
25
25
  //#region src/lib/progress/progress.template.ts
26
- var getClasses = ({ connotation, shape, reverse, paused }) => classNames("base", [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ["reverse", Boolean(reverse)], ["paused", Boolean(paused)]);
26
+ var getClasses = ({ connotation, shape, reverse, paused }) => classNames("base", [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ["reverse", reverse], ["paused", paused]);
27
27
  function determinate() {
28
28
  return html` <span
29
29
  class="determinate"
@@ -84,7 +84,8 @@ var Radio = class extends require_with_error_text.WithErrorText(require_form_ele
84
84
  */
85
85
  nameChanged(previous, next) {
86
86
  super.nameChanged(previous, next);
87
- next !== null ? this.proxy.setAttribute("name", this.name) : this.proxy.removeAttribute("name");
87
+ if (next !== null) this.proxy.setAttribute("name", this.name);
88
+ else this.proxy.removeAttribute("name");
88
89
  _microsoft_fast_element.Updates.enqueue(this.validate);
89
90
  }
90
91
  /**
@@ -122,9 +123,7 @@ var Radio = class extends require_with_error_text.WithErrorText(require_form_ele
122
123
  return [];
123
124
  }
124
125
  get #radioGroup() {
125
- const parentGroup = this.closest(`${this.tagName.toLocaleLowerCase()}-group[name="${this.name}"]`);
126
- if (parentGroup) return parentGroup;
127
- return null;
126
+ return this.closest(`${this.tagName.toLocaleLowerCase()}-group[name="${this.name}"]`);
128
127
  }
129
128
  #validateValueMissingWithSiblings;
130
129
  #syncSiblingsRequiredValidationStatus;
@@ -148,7 +147,7 @@ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
148
147
  require_decorate.__decorate([_microsoft_fast_element.observable], Radio.prototype, "defaultSlottedNodes", void 0);
149
148
  //#endregion
150
149
  //#region src/lib/radio/radio.template.ts
151
- var getClasses = ({ connotation, checked, readOnly, disabled }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`connotation-${connotation}`, Boolean(connotation)], ["checked", Boolean(checked)], ["readonly", Boolean(readOnly)], ["disabled", Boolean(disabled)]);
150
+ var getClasses = ({ connotation, checked, readOnly, disabled }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`connotation-${connotation}`, Boolean(connotation)], ["checked", checked], ["readonly", readOnly], ["disabled", disabled]);
152
151
  var RadioTemplate = _microsoft_fast_element.html`<template
153
152
  aria-checked="${(x) => x?.checked}"
154
153
  aria-disabled="${(x) => x?.disabled}"
@@ -83,7 +83,8 @@ var Radio = class extends WithErrorText(FormElement(CheckableFormAssociated(Vivi
83
83
  */
84
84
  nameChanged(previous, next) {
85
85
  super.nameChanged(previous, next);
86
- next !== null ? this.proxy.setAttribute("name", this.name) : this.proxy.removeAttribute("name");
86
+ if (next !== null) this.proxy.setAttribute("name", this.name);
87
+ else this.proxy.removeAttribute("name");
87
88
  Updates.enqueue(this.validate);
88
89
  }
89
90
  /**
@@ -121,9 +122,7 @@ var Radio = class extends WithErrorText(FormElement(CheckableFormAssociated(Vivi
121
122
  return [];
122
123
  }
123
124
  get #radioGroup() {
124
- const parentGroup = this.closest(`${this.tagName.toLocaleLowerCase()}-group[name="${this.name}"]`);
125
- if (parentGroup) return parentGroup;
126
- return null;
125
+ return this.closest(`${this.tagName.toLocaleLowerCase()}-group[name="${this.name}"]`);
127
126
  }
128
127
  #validateValueMissingWithSiblings;
129
128
  #syncSiblingsRequiredValidationStatus;
@@ -147,7 +146,7 @@ __decorate([attr({
147
146
  __decorate([observable], Radio.prototype, "defaultSlottedNodes", void 0);
148
147
  //#endregion
149
148
  //#region src/lib/radio/radio.template.ts
150
- var getClasses = ({ connotation, checked, readOnly, disabled }) => classNames("base", [`connotation-${connotation}`, Boolean(connotation)], ["checked", Boolean(checked)], ["readonly", Boolean(readOnly)], ["disabled", Boolean(disabled)]);
149
+ var getClasses = ({ connotation, checked, readOnly, disabled }) => classNames("base", [`connotation-${connotation}`, Boolean(connotation)], ["checked", checked], ["readonly", readOnly], ["disabled", disabled]);
151
150
  //#endregion
152
151
  //#region src/lib/radio/definition.ts
153
152
  /**