@vonage/vivid 5.4.0 → 5.6.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 (351) hide show
  1. package/LICENSE.md +201 -0
  2. package/accordion/definition.cjs +5 -0
  3. package/accordion/definition.js +5 -0
  4. package/accordion/index.cjs +1 -1
  5. package/accordion/index.js +14 -3
  6. package/alert/definition.cjs +4 -12
  7. package/alert/definition.js +5 -13
  8. package/alert/index.cjs +11 -11
  9. package/alert/index.js +33 -37
  10. package/audio-player/definition.cjs +4 -0
  11. package/audio-player/definition.js +4 -0
  12. package/audio-player/index.cjs +1 -1
  13. package/audio-player/index.js +8 -2
  14. package/banner/definition.cjs +2 -4
  15. package/banner/definition.js +2 -4
  16. package/banner/index.cjs +2 -2
  17. package/banner/index.js +1 -1
  18. package/breadcrumb/definition.cjs +1 -0
  19. package/breadcrumb/definition.js +1 -0
  20. package/breadcrumb/index.cjs +1 -1
  21. package/breadcrumb/index.js +1 -0
  22. package/bundled/affix.js +1 -1
  23. package/bundled/anchored.cjs +1 -1
  24. package/bundled/anchored.js +6 -6
  25. package/bundled/attribute-binding-behaviour.cjs +1 -1
  26. package/bundled/attribute-binding-behaviour.js +3 -1
  27. package/bundled/base-color-picker.cjs +18 -13
  28. package/bundled/base-color-picker.js +107 -84
  29. package/bundled/base-progress.cjs +1 -1
  30. package/bundled/base-progress.js +3 -0
  31. package/bundled/button.cjs +1 -1
  32. package/bundled/button.js +14 -10
  33. package/bundled/calendar-picker.template.cjs +1 -1
  34. package/bundled/calendar-picker.template.js +4 -2
  35. package/bundled/char-count.cjs +1 -1
  36. package/bundled/char-count.js +1 -1
  37. package/bundled/definition10.cjs +7 -7
  38. package/bundled/definition10.js +29 -19
  39. package/bundled/definition11.cjs +12 -19
  40. package/bundled/definition11.js +73 -204
  41. package/bundled/definition12.cjs +19 -10
  42. package/bundled/definition12.js +218 -36
  43. package/bundled/definition13.cjs +10 -1
  44. package/bundled/definition13.js +38 -14
  45. package/bundled/definition14.cjs +1 -5
  46. package/bundled/definition14.js +15 -24
  47. package/bundled/definition15.cjs +5 -30
  48. package/bundled/definition15.js +22 -73
  49. package/bundled/definition16.cjs +30 -19
  50. package/bundled/definition16.js +74 -97
  51. package/bundled/definition17.cjs +19 -13
  52. package/bundled/definition17.js +86 -117
  53. package/bundled/definition18.cjs +13 -12
  54. package/bundled/definition18.js +125 -71
  55. package/bundled/definition19.cjs +16 -16
  56. package/bundled/definition19.js +132 -94
  57. package/bundled/definition2.cjs +8 -9
  58. package/bundled/definition2.js +89 -142
  59. package/bundled/definition22.cjs +1 -1
  60. package/bundled/definition22.js +1 -0
  61. package/bundled/definition3.cjs +1 -1
  62. package/bundled/definition3.js +2 -1
  63. package/bundled/definition5.cjs +1 -1
  64. package/bundled/definition5.js +9 -3
  65. package/bundled/definition6.cjs +1 -1
  66. package/bundled/definition6.js +1 -0
  67. package/bundled/definition7.cjs +1 -1
  68. package/bundled/definition7.js +7 -4
  69. package/bundled/definition8.cjs +1 -1
  70. package/bundled/definition8.js +1 -0
  71. package/bundled/definition9.cjs +6 -6
  72. package/bundled/definition9.js +545 -488
  73. package/bundled/delegates-aria.cjs +1 -1
  74. package/bundled/delegates-aria.js +3 -1
  75. package/bundled/form-associated.cjs +1 -1
  76. package/bundled/form-associated.js +11 -3
  77. package/bundled/host-semantics.js +4 -4
  78. package/bundled/listbox.cjs +1 -1
  79. package/bundled/listbox.js +22 -4
  80. package/bundled/localized.cjs +1 -1
  81. package/bundled/localized.js +149 -66
  82. package/bundled/mixins.cjs +4 -4
  83. package/bundled/mixins.js +11 -8
  84. package/bundled/picker-field.template.cjs +14 -14
  85. package/bundled/picker-field.template.js +36 -56
  86. package/bundled/scrollIntoView.cjs +1 -1
  87. package/bundled/scrollIntoView.js +4 -1
  88. package/bundled/text-field.cjs +1 -1
  89. package/bundled/text-field.js +1 -1
  90. package/bundled/time-selection-picker.template.cjs +12 -12
  91. package/bundled/time-selection-picker.template.js +16 -12
  92. package/bundled/trapped-focus.cjs +1 -0
  93. package/bundled/trapped-focus.js +26 -0
  94. package/bundled/vivid-element.cjs +4 -4
  95. package/bundled/vivid-element.js +529 -492
  96. package/calendar/definition.cjs +2 -0
  97. package/calendar/definition.js +2 -0
  98. package/calendar/index.cjs +13 -13
  99. package/calendar/index.js +174 -144
  100. package/checkbox/definition.cjs +1 -0
  101. package/checkbox/definition.js +1 -0
  102. package/color-picker/definition.cjs +213 -112
  103. package/color-picker/definition.js +213 -112
  104. package/color-picker/index.cjs +104 -75
  105. package/color-picker/index.js +417 -326
  106. package/combobox/definition.cjs +17 -6
  107. package/combobox/definition.js +17 -6
  108. package/combobox/index.cjs +14 -9
  109. package/combobox/index.js +54 -42
  110. package/contextual-help/index.cjs +1 -1
  111. package/contextual-help/index.js +1 -1
  112. package/custom-elements.json +6976 -484
  113. package/data-grid/definition.cjs +105 -7
  114. package/data-grid/definition.js +105 -7
  115. package/data-grid/index.cjs +52 -38
  116. package/data-grid/index.js +313 -242
  117. package/date-picker/index.cjs +1 -1
  118. package/date-picker/index.js +2 -2
  119. package/date-range-picker/definition.cjs +2 -0
  120. package/date-range-picker/definition.js +2 -0
  121. package/date-range-picker/index.cjs +1 -1
  122. package/date-range-picker/index.js +7 -3
  123. package/date-time-picker/index.cjs +1 -1
  124. package/date-time-picker/index.js +2 -2
  125. package/dial-pad/definition.cjs +148 -0
  126. package/dial-pad/definition.js +148 -0
  127. package/dial-pad/index.cjs +27 -20
  128. package/dial-pad/index.js +202 -101
  129. package/dialog/definition.cjs +1 -0
  130. package/dialog/definition.js +1 -0
  131. package/dialog/index.cjs +1 -1
  132. package/dialog/index.js +1 -0
  133. package/divider/index.cjs +1 -1
  134. package/divider/index.js +1 -1
  135. package/fab/definition.cjs +1 -0
  136. package/fab/definition.js +1 -0
  137. package/fab/index.cjs +1 -1
  138. package/fab/index.js +1 -0
  139. package/file-picker/definition.cjs +7 -2
  140. package/file-picker/definition.js +7 -2
  141. package/file-picker/index.cjs +6 -6
  142. package/file-picker/index.js +82 -73
  143. package/icon/definition.cjs +66 -41
  144. package/icon/definition.js +67 -42
  145. package/index.cjs +21 -0
  146. package/index.js +1 -1
  147. package/lib/color-picker/color-picker.d.ts +390 -12
  148. package/lib/color-picker/locale.d.ts +4 -0
  149. package/lib/data-grid/locale.d.ts +5 -0
  150. package/lib/date-picker/date-picker.d.ts +38 -38
  151. package/lib/date-range-picker/date-range-picker.d.ts +20 -20
  152. package/lib/date-time-picker/date-time-picker.d.ts +40 -40
  153. package/lib/dial-pad/dial-pad.d.ts +1 -0
  154. package/lib/icon/icon.d.ts +1 -1
  155. package/lib/menu/menu.d.ts +4 -4
  156. package/lib/rich-text-editor/definition.d.ts +3 -2
  157. package/lib/rich-text-editor/locale.d.ts +29 -3
  158. package/lib/rich-text-editor/popover.d.ts +19 -0
  159. package/lib/rich-text-editor/rich-text-editor.d.ts +16 -45
  160. package/lib/rich-text-editor/rich-text-editor.template.d.ts +2 -2
  161. package/lib/rich-text-editor/rte/config.d.ts +18 -0
  162. package/lib/rich-text-editor/rte/document.d.ts +28 -0
  163. package/lib/rich-text-editor/rte/exports.d.ts +23 -0
  164. package/lib/rich-text-editor/rte/feature.d.ts +46 -0
  165. package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +33 -0
  166. package/lib/rich-text-editor/rte/features/internal/foreign-html.d.ts +11 -0
  167. package/lib/rich-text-editor/rte/features/internal/history.d.ts +10 -0
  168. package/lib/rich-text-editor/rte/features/internal/text-style.d.ts +18 -0
  169. package/lib/rich-text-editor/rte/html-parser.d.ts +24 -0
  170. package/lib/rich-text-editor/rte/html-serializer.d.ts +30 -0
  171. package/lib/rich-text-editor/rte/instance.d.ts +57 -0
  172. package/lib/rich-text-editor/rte/utils/default-textblock.d.ts +2 -0
  173. package/lib/rich-text-editor/rte/utils/impl.d.ts +1 -0
  174. package/lib/rich-text-editor/rte/utils/textblock-attrs.d.ts +29 -0
  175. package/lib/rich-text-editor/rte/utils/textblock-marks.d.ts +10 -0
  176. package/lib/rich-text-editor/rte/utils/ui.d.ts +109 -0
  177. package/lib/simple-color-picker/simple-color-picker.d.ts +6 -5
  178. package/lib/text-area/text-area.d.ts +1 -1
  179. package/lib/text-field/text-field.d.ts +1 -1
  180. package/lib/time-picker/time-picker.d.ts +20 -20
  181. package/lib/toggletip/toggletip.d.ts +4 -4
  182. package/lib/tooltip/tooltip.d.ts +4 -4
  183. package/locales/de-DE.cjs +58 -7
  184. package/locales/de-DE.js +58 -7
  185. package/locales/en-GB.cjs +60 -9
  186. package/locales/en-GB.js +60 -9
  187. package/locales/en-US.cjs +60 -9
  188. package/locales/en-US.js +60 -9
  189. package/locales/ja-JP.cjs +59 -8
  190. package/locales/ja-JP.js +59 -8
  191. package/locales/zh-CN.cjs +58 -7
  192. package/locales/zh-CN.js +58 -7
  193. package/menu/definition.cjs +1 -0
  194. package/menu/definition.js +1 -0
  195. package/number-field/definition.cjs +5 -3
  196. package/number-field/definition.js +5 -3
  197. package/number-field/index.cjs +5 -3
  198. package/number-field/index.js +34 -32
  199. package/option/index.cjs +1 -1
  200. package/option/index.js +1 -1
  201. package/package.json +76 -62
  202. package/pagination/definition.cjs +2 -0
  203. package/pagination/definition.js +2 -0
  204. package/pagination/index.cjs +1 -1
  205. package/pagination/index.js +2 -0
  206. package/progress-ring/index.cjs +1 -1
  207. package/progress-ring/index.js +1 -1
  208. package/radio/definition.cjs +4 -0
  209. package/radio/definition.js +4 -0
  210. package/radio/index.cjs +1 -1
  211. package/radio/index.js +1 -1
  212. package/radio-group/index.cjs +1 -1
  213. package/radio-group/index.js +1 -1
  214. package/range-slider/definition.cjs +2 -1
  215. package/range-slider/definition.js +2 -1
  216. package/range-slider/index.cjs +1 -1
  217. package/range-slider/index.js +3 -1
  218. package/rich-text-editor/definition.cjs +17942 -1074
  219. package/rich-text-editor/definition.js +17926 -1079
  220. package/rich-text-editor/index.cjs +29 -130
  221. package/rich-text-editor/index.js +5565 -2474
  222. package/searchable-select/definition.cjs +6 -2
  223. package/searchable-select/definition.js +6 -2
  224. package/searchable-select/index.cjs +1 -1
  225. package/searchable-select/index.js +14 -10
  226. package/select/definition.cjs +22 -4
  227. package/select/definition.js +22 -4
  228. package/selectable-box/index.cjs +1 -1
  229. package/selectable-box/index.js +1 -1
  230. package/shared/color-picker/base-color-picker.d.ts +2 -1
  231. package/shared/patterns/anchored.d.ts +8 -8
  232. package/shared/patterns/char-count/char-count.d.ts +1 -1
  233. package/shared/patterns/localized.d.ts +386 -0
  234. package/shared/picker-field/mixins/calendar-picker.d.ts +10 -10
  235. package/shared/picker-field/mixins/calendar-picker.template.d.ts +10 -10
  236. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +20 -20
  237. package/shared/picker-field/mixins/single-date-picker.d.ts +28 -28
  238. package/shared/picker-field/mixins/single-value-picker.d.ts +8 -8
  239. package/shared/picker-field/mixins/time-selection-picker.d.ts +20 -20
  240. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +20 -20
  241. package/shared/utils/promise.d.ts +7 -0
  242. package/simple-color-picker/definition.cjs +11 -6
  243. package/simple-color-picker/definition.js +11 -6
  244. package/simple-color-picker/index.cjs +6 -6
  245. package/simple-color-picker/index.js +44 -39
  246. package/slider/definition.cjs +7 -1
  247. package/slider/definition.js +7 -1
  248. package/styles/core/all.css +5 -1
  249. package/styles/core/theme.css +5 -1
  250. package/styles/core/typography.css +1 -1
  251. package/styles/tokens/theme-dark.css +4 -4
  252. package/styles/tokens/theme-light.css +4 -4
  253. package/styles/tokens/vivid-2-compat.css +1 -1
  254. package/switch/definition.cjs +1 -0
  255. package/switch/definition.js +1 -0
  256. package/switch/index.cjs +1 -1
  257. package/switch/index.js +1 -0
  258. package/tabs/definition.cjs +2 -0
  259. package/tabs/definition.js +2 -0
  260. package/tabs/index.cjs +1 -1
  261. package/tabs/index.js +2 -0
  262. package/tag/definition.cjs +34 -14
  263. package/tag/definition.js +34 -14
  264. package/tag/index.cjs +25 -12
  265. package/tag/index.js +64 -47
  266. package/tag-group/definition.cjs +1 -2
  267. package/tag-group/definition.js +1 -2
  268. package/tag-group/index.cjs +1 -1
  269. package/tag-group/index.js +11 -12
  270. package/text-area/definition.cjs +13 -7
  271. package/text-area/definition.js +13 -7
  272. package/text-area/index.cjs +6 -6
  273. package/text-area/index.js +20 -14
  274. package/text-field/definition.cjs +16 -6
  275. package/text-field/definition.js +16 -6
  276. package/time-picker/index.cjs +1 -1
  277. package/time-picker/index.js +1 -1
  278. package/toggletip/definition.cjs +5 -1
  279. package/toggletip/definition.js +5 -1
  280. package/toggletip/index.cjs +1 -1
  281. package/toggletip/index.js +1 -1
  282. package/tooltip/definition.cjs +6 -3
  283. package/tooltip/definition.js +6 -3
  284. package/tooltip/index.cjs +1 -1
  285. package/tooltip/index.js +1 -1
  286. package/tree-view/definition.cjs +28 -6
  287. package/tree-view/definition.js +28 -6
  288. package/tree-view/index.cjs +1 -1
  289. package/tree-view/index.js +28 -6
  290. package/unbundled/_commonjsHelpers.cjs +0 -26
  291. package/unbundled/_commonjsHelpers.js +1 -26
  292. package/unbundled/attribute-binding-behaviour.cjs +1 -0
  293. package/unbundled/attribute-binding-behaviour.js +1 -0
  294. package/unbundled/base-color-picker.cjs +45 -21
  295. package/unbundled/base-color-picker.js +45 -21
  296. package/unbundled/base-progress.cjs +3 -0
  297. package/unbundled/base-progress.js +3 -0
  298. package/unbundled/button.cjs +14 -10
  299. package/unbundled/button.js +14 -10
  300. package/unbundled/calendar-picker.template.cjs +3 -1
  301. package/unbundled/calendar-picker.template.js +3 -1
  302. package/unbundled/definition.cjs +1 -0
  303. package/unbundled/definition.js +1 -0
  304. package/unbundled/definition2.cjs +4 -1
  305. package/unbundled/definition2.js +4 -1
  306. package/unbundled/definition3.cjs +1 -0
  307. package/unbundled/definition3.js +1 -0
  308. package/unbundled/definition4.cjs +1 -0
  309. package/unbundled/definition4.js +1 -0
  310. package/unbundled/definition5.cjs +3 -2
  311. package/unbundled/definition5.js +4 -3
  312. package/unbundled/delegates-aria.cjs +1 -0
  313. package/unbundled/delegates-aria.js +1 -0
  314. package/unbundled/form-associated.cjs +4 -0
  315. package/unbundled/form-associated.js +4 -0
  316. package/unbundled/listbox.cjs +16 -1
  317. package/unbundled/listbox.js +16 -1
  318. package/unbundled/localized.cjs +36 -0
  319. package/unbundled/localized.js +37 -2
  320. package/unbundled/mixins.cjs +2 -0
  321. package/unbundled/mixins.js +2 -0
  322. package/unbundled/picker-field.template.cjs +3 -35
  323. package/unbundled/picker-field.template.js +3 -34
  324. package/unbundled/scrollIntoView.cjs +1 -0
  325. package/unbundled/scrollIntoView.js +1 -0
  326. package/unbundled/text-field.cjs +1 -1
  327. package/unbundled/text-field.js +1 -1
  328. package/unbundled/time-selection-picker.template.cjs +5 -1
  329. package/unbundled/time-selection-picker.template.js +5 -1
  330. package/unbundled/trapped-focus.cjs +37 -0
  331. package/unbundled/trapped-focus.js +34 -0
  332. package/unbundled/vivid-element.cjs +1 -1
  333. package/unbundled/vivid-element.js +1 -1
  334. package/video-player/definition.cjs +54 -44
  335. package/video-player/definition.js +50 -40
  336. package/video-player/index.cjs +28 -28
  337. package/video-player/index.js +1448 -1442
  338. package/visually-hidden/index.cjs +1 -1
  339. package/visually-hidden/index.js +1 -1
  340. package/vivid.api.json +6463 -6099
  341. package/bundled/_has.cjs +0 -1
  342. package/bundled/_has.js +0 -34
  343. package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +0 -4
  344. package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +0 -18
  345. package/lib/rich-text-editor/image-placeholder/definition.d.ts +0 -2
  346. package/lib/rich-text-editor/image-placeholder/image-placeholder.d.ts +0 -7
  347. package/lib/rich-text-editor/image-placeholder/image-placeholder.template.d.ts +0 -4
  348. package/lib/rich-text-editor/menubar/consts.d.ts +0 -18
  349. package/lib/rich-text-editor/menubar/definition.d.ts +0 -2
  350. package/lib/rich-text-editor/menubar/menubar.d.ts +0 -386
  351. package/lib/rich-text-editor/menubar/menubar.template.d.ts +0 -4
@@ -6,6 +6,7 @@ const pickerField_template = require('./picker-field.template.cjs');
6
6
  const singleValuePicker = require('./single-value-picker.cjs');
7
7
  const fastWebUtilities = require('@microsoft/fast-web-utilities');
8
8
  const scrollIntoView = require('./scrollIntoView.cjs');
9
+ const trappedFocus = require('./trapped-focus.cjs');
9
10
  const localized = require('./localized.cjs');
10
11
 
11
12
  const isValidTimeStr = (timeStr) => {
@@ -194,6 +195,7 @@ const MeridiesColumn = {
194
195
  if (x.value) {
195
196
  const { hours, minuteStr, secondStr } = parseTimeStr(x.value);
196
197
  let adjustedHours = hours;
198
+ /* v8 ignore else -- @preserve */
197
199
  if (optionValue === "AM" && hours >= 12) {
198
200
  adjustedHours -= 12;
199
201
  } else if (optionValue === "PM" && hours < 12) {
@@ -261,7 +263,7 @@ const onBaseKeyDown = (x, event) => {
261
263
  const focusableElements = x.shadowRoot.querySelectorAll(".picker");
262
264
  const terminalElement = event.shiftKey ? focusableElements[0] : focusableElements[focusableElements.length - 1];
263
265
  if (x.shadowRoot.activeElement !== terminalElement) {
264
- pickerField_template.ignoreEventInFocusTraps(event);
266
+ trappedFocus.ignoreEventInFocusTraps(event);
265
267
  }
266
268
  x._applyFocusedClass();
267
269
  }
@@ -703,6 +705,7 @@ class TimePicker extends TimeSelectionPicker(
703
705
  * @internal
704
706
  */
705
707
  minChanged(_, newMin) {
708
+ /* v8 ignore if -- @preserve */
706
709
  if (this.proxy instanceof HTMLInputElement) {
707
710
  this.proxy.min = newMin;
708
711
  this.validate();
@@ -712,6 +715,7 @@ class TimePicker extends TimeSelectionPicker(
712
715
  * @internal
713
716
  */
714
717
  maxChanged(_, newMax) {
718
+ /* v8 ignore if -- @preserve */
715
719
  if (this.proxy instanceof HTMLInputElement) {
716
720
  this.proxy.max = newMax;
717
721
  this.validate();
@@ -1,9 +1,10 @@
1
1
  import { V as VividElement, d as defineVividComponent } from './vivid-element.js';
2
2
  import { when, html, repeat, observable, attr, nullableNumberConverter, Observable, ExecutionContext, Updates, volatile, ref } from '@microsoft/fast-element';
3
- import { i as ignoreEventInFocusTraps, a as PickerField } from './picker-field.template.js';
3
+ import { a as PickerField } from './picker-field.template.js';
4
4
  import { S as SingleValuePicker } from './single-value-picker.js';
5
5
  import { classNames } from '@microsoft/fast-web-utilities';
6
6
  import { s as scrollIntoView } from './scrollIntoView.js';
7
+ import { i as ignoreEventInFocusTraps } from './trapped-focus.js';
7
8
  import { L as Localized } from './localized.js';
8
9
 
9
10
  const isValidTimeStr = (timeStr) => {
@@ -192,6 +193,7 @@ const MeridiesColumn = {
192
193
  if (x.value) {
193
194
  const { hours, minuteStr, secondStr } = parseTimeStr(x.value);
194
195
  let adjustedHours = hours;
196
+ /* v8 ignore else -- @preserve */
195
197
  if (optionValue === "AM" && hours >= 12) {
196
198
  adjustedHours -= 12;
197
199
  } else if (optionValue === "PM" && hours < 12) {
@@ -701,6 +703,7 @@ class TimePicker extends TimeSelectionPicker(
701
703
  * @internal
702
704
  */
703
705
  minChanged(_, newMin) {
706
+ /* v8 ignore if -- @preserve */
704
707
  if (this.proxy instanceof HTMLInputElement) {
705
708
  this.proxy.min = newMin;
706
709
  this.validate();
@@ -710,6 +713,7 @@ class TimePicker extends TimeSelectionPicker(
710
713
  * @internal
711
714
  */
712
715
  maxChanged(_, newMax) {
716
+ /* v8 ignore if -- @preserve */
713
717
  if (this.proxy instanceof HTMLInputElement) {
714
718
  this.proxy.max = newMax;
715
719
  this.validate();
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ const ignoredEvents = /* @__PURE__ */ new WeakSet();
4
+ const ignoreEventInFocusTraps = (event) => {
5
+ ignoredEvents.add(event);
6
+ };
7
+ const TrappedFocus = (Base) => {
8
+ class TrappedFocusElement extends Base {
9
+ /**
10
+ * @returns Whether focus was trapped.
11
+ * @internal
12
+ */
13
+ _trappedFocus(event, getFocusableEls) {
14
+ if (!ignoredEvents.has(event) && event.key === "Tab") {
15
+ const focusableEls = getFocusableEls();
16
+ const firstFocusableEl = focusableEls[0];
17
+ const lastFocusableEl = focusableEls[focusableEls.length - 1];
18
+ if (event.shiftKey) {
19
+ if (this.shadowRoot.activeElement === firstFocusableEl) {
20
+ lastFocusableEl.focus();
21
+ return true;
22
+ }
23
+ } else {
24
+ if (this.shadowRoot.activeElement === lastFocusableEl) {
25
+ firstFocusableEl.focus();
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ }
33
+ return TrappedFocusElement;
34
+ };
35
+
36
+ exports.TrappedFocus = TrappedFocus;
37
+ exports.ignoreEventInFocusTraps = ignoreEventInFocusTraps;
@@ -0,0 +1,34 @@
1
+ const ignoredEvents = /* @__PURE__ */ new WeakSet();
2
+ const ignoreEventInFocusTraps = (event) => {
3
+ ignoredEvents.add(event);
4
+ };
5
+ const TrappedFocus = (Base) => {
6
+ class TrappedFocusElement extends Base {
7
+ /**
8
+ * @returns Whether focus was trapped.
9
+ * @internal
10
+ */
11
+ _trappedFocus(event, getFocusableEls) {
12
+ if (!ignoredEvents.has(event) && event.key === "Tab") {
13
+ const focusableEls = getFocusableEls();
14
+ const firstFocusableEl = focusableEls[0];
15
+ const lastFocusableEl = focusableEls[focusableEls.length - 1];
16
+ if (event.shiftKey) {
17
+ if (this.shadowRoot.activeElement === firstFocusableEl) {
18
+ lastFocusableEl.focus();
19
+ return true;
20
+ }
21
+ } else {
22
+ if (this.shadowRoot.activeElement === lastFocusableEl) {
23
+ firstFocusableEl.focus();
24
+ return true;
25
+ }
26
+ }
27
+ }
28
+ return false;
29
+ }
30
+ }
31
+ return TrappedFocusElement;
32
+ };
33
+
34
+ export { TrappedFocus as T, ignoreEventInFocusTraps as i };
@@ -268,7 +268,7 @@ const ReplacedPropHandling = (Base) => {
268
268
 
269
269
  class VividElement extends AriaMixin(ReplacedPropHandling(fastElement.FASTElement)) {
270
270
  static {
271
- this.VIVID_VERSION = "5.4.0";
271
+ this.VIVID_VERSION = "5.6.0";
272
272
  }
273
273
  /**
274
274
  * Add data-vvd-component attribute with component name globally,
@@ -266,7 +266,7 @@ const ReplacedPropHandling = (Base) => {
266
266
 
267
267
  class VividElement extends AriaMixin(ReplacedPropHandling(FASTElement)) {
268
268
  static {
269
- this.VIVID_VERSION = "5.4.0";
269
+ this.VIVID_VERSION = "5.6.0";
270
270
  }
271
271
  /**
272
272
  * Add data-vvd-component attribute with component name globally,
@@ -49,22 +49,22 @@ const document$1$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(docum
49
49
 
50
50
  var lib = {exports: {}};
51
51
 
52
- function _extends$2() {
53
- return _extends$2 = Object.assign ? Object.assign.bind() : function (n) {
54
- for (var e = 1; e < arguments.length; e++) {
55
- var t = arguments[e];
56
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
57
- }
58
- return n;
59
- }, _extends$2.apply(null, arguments);
60
- }
61
-
62
- const _extends$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
63
- __proto__: null,
64
- get default () { return _extends$2; }
65
- }, Symbol.toStringTag, { value: 'Module' }));
52
+ var _extends$3 = {exports: {}};
53
+
54
+ (function (module) {
55
+ function _extends() {
56
+ return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
57
+ for (var e = 1; e < arguments.length; e++) {
58
+ var t = arguments[e];
59
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
60
+ }
61
+ return n;
62
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
63
+ }
64
+ module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
65
+ } (_extends$3));
66
66
 
67
- const require$$1 = /*@__PURE__*/_commonjsHelpers.getAugmentedNamespace(_extends$3);
67
+ var _extendsExports = _extends$3.exports;
68
68
 
69
69
  var isFunction_1 = isFunction$1;
70
70
 
@@ -383,7 +383,7 @@ var httpHandler = httpResponseHandler;
383
383
 
384
384
  var window$2 = window_1;
385
385
 
386
- var _extends$1 = require$$1;
386
+ var _extends$2 = _extendsExports;
387
387
 
388
388
  var isFunction = isFunction_1;
389
389
 
@@ -465,7 +465,7 @@ function initParams(uri, options, callback) {
465
465
  };
466
466
  }
467
467
  } else {
468
- params = _extends$1({}, options, {
468
+ params = _extends$2({}, options, {
469
469
  uri: uri
470
470
  });
471
471
  }
@@ -2582,6 +2582,16 @@ if (!window$1.VTTCue) {
2582
2582
  var browserIndexExports = browserIndex.exports;
2583
2583
  const vtt = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(browserIndexExports);
2584
2584
 
2585
+ function _extends$1() {
2586
+ return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
2587
+ for (var e = 1; e < arguments.length; e++) {
2588
+ var t = arguments[e];
2589
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2590
+ }
2591
+ return n;
2592
+ }, _extends$1.apply(null, arguments);
2593
+ }
2594
+
2585
2595
  var DEFAULT_LOCATION = 'https://example.com';
2586
2596
 
2587
2597
  var resolveUrl$1 = function resolveUrl(baseUrl, relativeUrl) {
@@ -3082,7 +3092,7 @@ class ParseStream extends Stream {
3082
3092
  match = /^#EXT-X-BYTERANGE:(.*)?$/.exec(newLine);
3083
3093
 
3084
3094
  if (match) {
3085
- event = _extends$2(parseByterange(match[1]), {
3095
+ event = _extends$1(parseByterange(match[1]), {
3086
3096
  type: 'tag',
3087
3097
  tagType: 'byterange'
3088
3098
  });
@@ -4071,7 +4081,7 @@ class Parser extends Stream {
4071
4081
  currentUri.attributes = {};
4072
4082
  }
4073
4083
 
4074
- _extends$2(currentUri.attributes, entry.attributes);
4084
+ _extends$1(currentUri.attributes, entry.attributes);
4075
4085
  },
4076
4086
 
4077
4087
  media() {
@@ -4376,8 +4386,8 @@ class Parser extends Stream {
4376
4386
 
4377
4387
 
4378
4388
  const dateRangeWithSameId = this.manifest.dateRanges.findIndex(dateRangeToFind => dateRangeToFind.id === dateRange.id);
4379
- this.manifest.dateRanges[dateRangeWithSameId] = _extends$2(this.manifest.dateRanges[dateRangeWithSameId], dateRange);
4380
- dateRangeTags[dateRange.id] = _extends$2(dateRangeTags[dateRange.id], dateRange); // after merging, delete the duplicate dateRange that was added last
4389
+ this.manifest.dateRanges[dateRangeWithSameId] = _extends$1(this.manifest.dateRanges[dateRangeWithSameId], dateRange);
4390
+ dateRangeTags[dateRange.id] = _extends$1(dateRangeTags[dateRange.id], dateRange); // after merging, delete the duplicate dateRange that was added last
4381
4391
 
4382
4392
  this.manifest.dateRanges.pop();
4383
4393
  }
@@ -7202,7 +7212,7 @@ var domParser = {};
7202
7212
 
7203
7213
  var entities$1 = {};
7204
7214
 
7205
- (function (exports) {
7215
+ (function (exports$1) {
7206
7216
 
7207
7217
  var freeze = conventions$2.freeze;
7208
7218
 
@@ -7213,7 +7223,7 @@ var entities$1 = {};
7213
7223
  * @see https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent W3C XML 1.0
7214
7224
  * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML Wikipedia
7215
7225
  */
7216
- exports.XML_ENTITIES = freeze({
7226
+ exports$1.XML_ENTITIES = freeze({
7217
7227
  amp: '&',
7218
7228
  apos: "'",
7219
7229
  gt: '>',
@@ -7235,7 +7245,7 @@ var entities$1 = {};
7235
7245
  * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML Wikipedia (HTML)
7236
7246
  * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Entities_representing_special_characters_in_XHTML Wikpedia (XHTML)
7237
7247
  */
7238
- exports.HTML_ENTITIES = freeze({
7248
+ exports$1.HTML_ENTITIES = freeze({
7239
7249
  Aacute: '\u00C1',
7240
7250
  aacute: '\u00E1',
7241
7251
  Abreve: '\u0102',
@@ -9367,7 +9377,7 @@ var entities$1 = {};
9367
9377
  * @deprecated use `HTML_ENTITIES` instead
9368
9378
  * @see HTML_ENTITIES
9369
9379
  */
9370
- exports.entityMap = exports.HTML_ENTITIES;
9380
+ exports$1.entityMap = exports$1.HTML_ENTITIES;
9371
9381
  } (entities$1));
9372
9382
 
9373
9383
  var sax$1 = {};
@@ -13105,7 +13115,7 @@ var numbers = {
13105
13115
 
13106
13116
  var getUint64 = numbers.getUint64;
13107
13117
 
13108
- var parseSidx = function(data) {
13118
+ var parseSidx$1 = function(data) {
13109
13119
  var view = new DataView(data.buffer, data.byteOffset, data.byteLength),
13110
13120
  result = {
13111
13121
  version: data[0],
@@ -13148,9 +13158,9 @@ var parseSidx = function(data) {
13148
13158
  };
13149
13159
 
13150
13160
 
13151
- var parseSidx_1 = parseSidx;
13161
+ var parseSidx_1 = parseSidx$1;
13152
13162
 
13153
- const parseSidx$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(parseSidx_1);
13163
+ const parseSidx = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(parseSidx_1);
13154
13164
 
13155
13165
  var ID3 = toUint8([0x49, 0x44, 0x33]);
13156
13166
  var getId3Size = function getId3Size(bytes, offset) {
@@ -43371,7 +43381,7 @@ const addPropertiesToMain = (main, uri, createGroupID = groupID) => {
43371
43381
  }
43372
43382
  }
43373
43383
  }
43374
- properties.playlists = [_extends$2({}, properties)];
43384
+ properties.playlists = [_extends$1({}, properties)];
43375
43385
  }
43376
43386
  properties.playlists.forEach(function (p, i) {
43377
43387
  const groupId = createGroupID(mediaType, groupKey, labelKey, p);
@@ -43504,7 +43514,7 @@ const getStreamingNetworkErrorMetadata = ({
43504
43514
  const isBadStatusOrParseFailure = isBadStatus && !isFailure || parseFailure;
43505
43515
  if (error && isFailure) {
43506
43516
  // copy original error and add to the metadata.
43507
- errorMetadata.error = _extends$2({}, error);
43517
+ errorMetadata.error = _extends$1({}, error);
43508
43518
  errorMetadata.errorType = videojs.Error.NetworkRequestFailed;
43509
43519
  } else if (request.aborted) {
43510
43520
  errorMetadata.errorType = videojs.Error.NetworkRequestAborted;
@@ -44682,7 +44692,7 @@ class PlaylistLoader extends EventTarget$1 {
44682
44692
  }
44683
44693
  for (const labelKey in main.mediaGroups[mediaType][groupKey]) {
44684
44694
  const oldMedia = main.mediaGroups[mediaType][groupKey][labelKey];
44685
- main.mediaGroups[mediaType][id][labelKey] = _extends$2({}, oldMedia);
44695
+ main.mediaGroups[mediaType][id][labelKey] = _extends$1({}, oldMedia);
44686
44696
  const newMedia = main.mediaGroups[mediaType][id][labelKey]; // update URIs on the media
44687
44697
 
44688
44698
  const newUri = this.createCloneURI_(oldMedia.resolvedUri, clone);
@@ -45793,7 +45803,7 @@ class DashPlaylistLoader extends EventTarget {
45793
45803
  } = request;
45794
45804
  let sidx;
45795
45805
  try {
45796
- sidx = parseSidx$1(toUint8(request.response).subarray(8));
45806
+ sidx = parseSidx(toUint8(request.response).subarray(8));
45797
45807
  } catch (e) {
45798
45808
  e.metadata = getStreamingNetworkErrorMetadata({
45799
45809
  requestType,
@@ -55387,7 +55397,7 @@ const workerCallback = function (options) {
55387
55397
  const transmuxer = options.transmuxer;
55388
55398
  const endAction = options.endAction || options.action;
55389
55399
  const callback = options.callback;
55390
- const message = _extends$2({}, options, {
55400
+ const message = _extends$1({}, options, {
55391
55401
  endAction: null,
55392
55402
  transmuxer: null,
55393
55403
  callback: null
@@ -58216,7 +58226,7 @@ class SegmentLoader extends videojs.EventTarget {
58216
58226
  }
58217
58227
  });
58218
58228
  this.sourceUpdater_.on('codecschange', metadata => {
58219
- this.trigger(_extends$2({
58229
+ this.trigger(_extends$1({
58220
58230
  type: 'codecschange'
58221
58231
  }, metadata));
58222
58232
  }); // Only the main loader needs to listen for pending timeline changes, as the main
@@ -58238,7 +58248,7 @@ class SegmentLoader extends videojs.EventTarget {
58238
58248
 
58239
58249
  if (this.loaderType_ === 'audio') {
58240
58250
  this.timelineChangeController_.on('timelinechange', metadata => {
58241
- this.trigger(_extends$2({
58251
+ this.trigger(_extends$1({
58242
58252
  type: 'timelinechange'
58243
58253
  }, metadata));
58244
58254
  if (this.hasEnoughInfoToLoad_()) {
@@ -59920,10 +59930,10 @@ Fetch At Buffer: ${this.fetchAtBuffer_}
59920
59930
  this.loadQueue_.push(() => {
59921
59931
  // regenerate the audioAppendStart, timestampOffset, etc as they
59922
59932
  // may have changed since this function was added to the queue.
59923
- const options = _extends$2({}, segmentInfo, {
59933
+ const options = _extends$1({}, segmentInfo, {
59924
59934
  forceTimestampOffset: true
59925
59935
  });
59926
- _extends$2(segmentInfo, this.generateSegmentInfo_(options));
59936
+ _extends$1(segmentInfo, this.generateSegmentInfo_(options));
59927
59937
  this.isPendingTimestampOffset_ = false;
59928
59938
  this.updateTransmuxerAndRequestSegment_(segmentInfo);
59929
59939
  });
@@ -65480,7 +65490,7 @@ class PlaylistController extends videojs.EventTarget {
65480
65490
  playlistLoaderEvents.forEach(eventName => {
65481
65491
  this.mainPlaylistLoader_.on(eventName, metadata => {
65482
65492
  // trigger directly on the player to ensure early events are fired.
65483
- this.player_.trigger(_extends$2({}, metadata));
65493
+ this.player_.trigger(_extends$1({}, metadata));
65484
65494
  });
65485
65495
  });
65486
65496
  }
@@ -65729,13 +65739,13 @@ class PlaylistController extends videojs.EventTarget {
65729
65739
  const segmentLoaderEvents = ['segmentselected', 'segmentloadstart', 'segmentloaded', 'segmentkeyloadstart', 'segmentkeyloadcomplete', 'segmentdecryptionstart', 'segmentdecryptioncomplete', 'segmenttransmuxingstart', 'segmenttransmuxingcomplete', 'segmenttransmuxingtrackinfoavailable', 'segmenttransmuxingtiminginfoavailable', 'segmentappendstart', 'appendsdone', 'bandwidthupdated', 'timelinechange', 'codecschange'];
65730
65740
  segmentLoaderEvents.forEach(eventName => {
65731
65741
  this.mainSegmentLoader_.on(eventName, metadata => {
65732
- this.player_.trigger(_extends$2({}, metadata));
65742
+ this.player_.trigger(_extends$1({}, metadata));
65733
65743
  });
65734
65744
  this.audioSegmentLoader_.on(eventName, metadata => {
65735
- this.player_.trigger(_extends$2({}, metadata));
65745
+ this.player_.trigger(_extends$1({}, metadata));
65736
65746
  });
65737
65747
  this.subtitleSegmentLoader_.on(eventName, metadata => {
65738
- this.player_.trigger(_extends$2({}, metadata));
65748
+ this.player_.trigger(_extends$1({}, metadata));
65739
65749
  });
65740
65750
  });
65741
65751
  }
@@ -66797,7 +66807,7 @@ class PlaylistController extends videojs.EventTarget {
66797
66807
  const contentSteeringEvents = ['contentsteeringloadstart', 'contentsteeringloadcomplete', 'contentsteeringparsed'];
66798
66808
  contentSteeringEvents.forEach(eventName => {
66799
66809
  this.contentSteeringController_.on(eventName, metadata => {
66800
- this.trigger(_extends$2({}, metadata));
66810
+ this.trigger(_extends$1({}, metadata));
66801
66811
  });
66802
66812
  });
66803
66813
  if (this.sourceType_ === 'dash') {
@@ -68974,12 +68984,12 @@ class VhsHandler extends Component {
68974
68984
 
68975
68985
  playlistControllerEvents.forEach(eventName => {
68976
68986
  this.playlistController_.on(eventName, metadata => {
68977
- this.player_.trigger(_extends$2({}, metadata));
68987
+ this.player_.trigger(_extends$1({}, metadata));
68978
68988
  });
68979
68989
  });
68980
68990
  playbackWatcher.forEach(eventName => {
68981
68991
  this.playbackWatcher_.on(eventName, metadata => {
68982
- this.player_.trigger(_extends$2({}, metadata));
68992
+ this.player_.trigger(_extends$1({}, metadata));
68983
68993
  });
68984
68994
  });
68985
68995
  }