@momentum-ui/web-components 2.13.9 → 2.13.11

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 (461) hide show
  1. package/dist/assets/styles/fonts.css +30 -22
  2. package/dist/chunks/md-1.js +1 -1
  3. package/dist/chunks/md-10.js +17 -5
  4. package/dist/chunks/md-100.js +1 -1
  5. package/dist/chunks/md-101.js +1 -1
  6. package/dist/chunks/md-102.js +1 -1
  7. package/dist/chunks/md-103.js +1 -1
  8. package/dist/chunks/md-104.js +1 -1
  9. package/dist/chunks/md-105.js +1 -1
  10. package/dist/chunks/md-106.js +1 -1
  11. package/dist/chunks/md-107.js +1 -1
  12. package/dist/chunks/md-108.js +1 -1
  13. package/dist/chunks/md-109.js +1 -1
  14. package/dist/chunks/md-11.js +1 -1
  15. package/dist/chunks/md-110.js +1 -1
  16. package/dist/chunks/md-111.js +1 -1
  17. package/dist/chunks/md-112.js +1 -1
  18. package/dist/chunks/md-113.js +1 -1
  19. package/dist/chunks/md-114.js +1 -1
  20. package/dist/chunks/md-115.js +1 -1
  21. package/dist/chunks/md-116.js +1 -1
  22. package/dist/chunks/md-117.js +1 -1
  23. package/dist/chunks/md-118.js +1 -1
  24. package/dist/chunks/md-119.js +1 -1
  25. package/dist/chunks/md-12.js +1 -9
  26. package/dist/chunks/md-120.js +1 -1
  27. package/dist/chunks/md-121.js +1 -1
  28. package/dist/chunks/md-122.js +1 -1
  29. package/dist/chunks/md-123.js +1 -1
  30. package/dist/chunks/md-124.js +1 -1
  31. package/dist/chunks/md-125.js +1 -1
  32. package/dist/chunks/md-126.js +1 -1
  33. package/dist/chunks/md-127.js +1 -1
  34. package/dist/chunks/md-128.js +1 -1
  35. package/dist/chunks/md-129.js +1 -1
  36. package/dist/chunks/md-13.js +10 -12
  37. package/dist/chunks/md-130.js +1 -1
  38. package/dist/chunks/md-131.js +1 -1
  39. package/dist/chunks/md-132.js +1 -1
  40. package/dist/chunks/md-133.js +1 -1
  41. package/dist/chunks/md-134.js +1 -1
  42. package/dist/chunks/md-135.js +1 -1
  43. package/dist/chunks/md-136.js +1 -1
  44. package/dist/chunks/md-137.js +1 -1
  45. package/dist/chunks/md-138.js +1 -1
  46. package/dist/chunks/md-139.js +1 -1
  47. package/dist/chunks/md-14.js +9 -1
  48. package/dist/chunks/md-140.js +1 -1
  49. package/dist/chunks/md-141.js +1 -1
  50. package/dist/chunks/md-142.js +1 -1
  51. package/dist/chunks/md-143.js +1 -1
  52. package/dist/chunks/md-144.js +1 -1
  53. package/dist/chunks/md-145.js +1 -1
  54. package/dist/chunks/md-146.js +1 -1
  55. package/dist/chunks/md-147.js +1 -1
  56. package/dist/chunks/md-148.js +1 -1
  57. package/dist/chunks/md-149.js +1 -1
  58. package/dist/chunks/md-15.js +1 -124
  59. package/dist/chunks/md-150.js +1 -1
  60. package/dist/chunks/md-151.js +1 -1
  61. package/dist/chunks/md-152.js +1 -1
  62. package/dist/chunks/md-153.js +1 -1
  63. package/dist/chunks/md-154.js +1 -1
  64. package/dist/chunks/md-155.js +1 -1
  65. package/dist/chunks/md-156.js +1 -1
  66. package/dist/chunks/md-157.js +1 -1
  67. package/dist/chunks/md-158.js +1 -1
  68. package/dist/chunks/md-159.js +1 -1
  69. package/dist/chunks/md-16.js +3 -3
  70. package/dist/chunks/md-160.js +1 -1
  71. package/dist/chunks/md-161.js +1 -1
  72. package/dist/chunks/md-162.js +1 -1
  73. package/dist/chunks/md-163.js +1 -1
  74. package/dist/chunks/md-164.js +1 -1
  75. package/dist/chunks/md-165.js +1 -1
  76. package/dist/chunks/md-166.js +1 -1
  77. package/dist/chunks/md-167.js +1 -1
  78. package/dist/chunks/md-168.js +1 -1
  79. package/dist/chunks/md-169.js +1 -1
  80. package/dist/chunks/md-17.js +122 -17
  81. package/dist/chunks/md-170.js +1 -1
  82. package/dist/chunks/md-171.js +1 -1
  83. package/dist/chunks/md-172.js +1 -1
  84. package/dist/chunks/md-173.js +1 -1
  85. package/dist/chunks/md-174.js +1 -1
  86. package/dist/chunks/md-175.js +1 -1
  87. package/dist/chunks/md-176.js +1 -1
  88. package/dist/chunks/md-177.js +1 -1
  89. package/dist/chunks/md-178.js +1 -1
  90. package/dist/chunks/md-179.js +1 -1
  91. package/dist/chunks/md-18.js +17 -12
  92. package/dist/chunks/md-180.js +1 -1
  93. package/dist/chunks/md-181.js +1 -1
  94. package/dist/chunks/md-182.js +1 -1
  95. package/dist/chunks/md-183.js +1 -1
  96. package/dist/chunks/md-184.js +1 -1
  97. package/dist/chunks/md-185.js +1 -1
  98. package/dist/chunks/md-186.js +1 -1
  99. package/dist/chunks/md-187.js +1 -1
  100. package/dist/chunks/md-188.js +1 -1
  101. package/dist/chunks/md-189.js +1 -1
  102. package/dist/chunks/md-19.js +1 -1
  103. package/dist/chunks/md-190.js +1 -1
  104. package/dist/chunks/md-191.js +1 -1
  105. package/dist/chunks/md-192.js +1 -1
  106. package/dist/chunks/md-193.js +1 -1
  107. package/dist/chunks/md-194.js +1 -1
  108. package/dist/chunks/md-195.js +1 -1
  109. package/dist/chunks/md-196.js +1 -1
  110. package/dist/chunks/md-197.js +1 -1
  111. package/dist/chunks/md-198.js +1 -1
  112. package/dist/chunks/md-199.js +1 -1
  113. package/dist/chunks/md-20.js +8 -7
  114. package/dist/chunks/md-200.js +1 -1
  115. package/dist/chunks/md-201.js +1 -1
  116. package/dist/chunks/md-202.js +1 -1
  117. package/dist/chunks/md-203.js +1 -1
  118. package/dist/chunks/md-204.js +1 -1
  119. package/dist/chunks/md-205.js +1 -1
  120. package/dist/chunks/md-206.js +1 -1
  121. package/dist/chunks/md-207.js +1 -1
  122. package/dist/chunks/md-208.js +1 -1
  123. package/dist/chunks/md-209.js +1 -1
  124. package/dist/chunks/md-21.js +21 -11
  125. package/dist/chunks/md-210.js +1 -1
  126. package/dist/chunks/md-211.js +1 -1
  127. package/dist/chunks/md-212.js +1 -1
  128. package/dist/chunks/md-213.js +1 -1
  129. package/dist/chunks/md-214.js +1 -1
  130. package/dist/chunks/md-215.js +1 -1
  131. package/dist/chunks/md-216.js +1 -1
  132. package/dist/chunks/md-217.js +1 -1
  133. package/dist/chunks/md-218.js +1 -1
  134. package/dist/chunks/md-219.js +1 -1
  135. package/dist/chunks/md-22.js +1 -1
  136. package/dist/chunks/md-220.js +1 -1
  137. package/dist/chunks/md-221.js +1 -1
  138. package/dist/chunks/md-222.js +1 -1
  139. package/dist/chunks/md-223.js +1 -1
  140. package/dist/chunks/md-224.js +1 -1
  141. package/dist/chunks/md-225.js +1 -1
  142. package/dist/chunks/md-226.js +1 -1
  143. package/dist/chunks/md-227.js +1 -1
  144. package/dist/chunks/md-228.js +1 -1
  145. package/dist/chunks/md-229.js +1 -1
  146. package/dist/chunks/md-23.js +7 -1
  147. package/dist/chunks/md-230.js +1 -1
  148. package/dist/chunks/md-231.js +1 -1
  149. package/dist/chunks/md-232.js +1 -1
  150. package/dist/chunks/md-233.js +1 -1
  151. package/dist/chunks/md-234.js +1 -1
  152. package/dist/chunks/md-235.js +1 -1
  153. package/dist/chunks/md-236.js +1 -1
  154. package/dist/chunks/md-237.js +1 -1
  155. package/dist/chunks/md-238.js +1 -1
  156. package/dist/chunks/md-239.js +1 -1
  157. package/dist/chunks/md-24.js +8 -57
  158. package/dist/chunks/md-240.js +1 -1
  159. package/dist/chunks/md-241.js +1 -1
  160. package/dist/chunks/md-242.js +1 -1
  161. package/dist/chunks/md-243.js +1 -1
  162. package/dist/chunks/md-244.js +1 -1
  163. package/dist/chunks/md-245.js +1 -1
  164. package/dist/chunks/md-246.js +1 -1
  165. package/dist/chunks/md-247.js +1 -1
  166. package/dist/chunks/md-248.js +1 -1
  167. package/dist/chunks/md-249.js +1 -1
  168. package/dist/chunks/md-25.js +1 -1
  169. package/dist/chunks/md-250.js +1 -1
  170. package/dist/chunks/md-251.js +1 -1
  171. package/dist/chunks/md-252.js +1 -1
  172. package/dist/chunks/md-253.js +1 -1
  173. package/dist/chunks/md-254.js +1 -1
  174. package/dist/chunks/md-255.js +1 -1
  175. package/dist/chunks/md-256.js +1 -1
  176. package/dist/chunks/md-257.js +1 -1
  177. package/dist/chunks/md-258.js +1 -1
  178. package/dist/chunks/md-259.js +1 -1
  179. package/dist/chunks/md-26.js +1 -1
  180. package/dist/chunks/md-260.js +1 -1
  181. package/dist/chunks/md-261.js +1 -1
  182. package/dist/chunks/md-262.js +1 -1
  183. package/dist/chunks/md-263.js +1 -1
  184. package/dist/chunks/md-264.js +1 -1
  185. package/dist/chunks/md-265.js +1 -1
  186. package/dist/chunks/md-266.js +1 -1
  187. package/dist/chunks/md-267.js +1 -1
  188. package/dist/chunks/md-268.js +1 -1
  189. package/dist/chunks/md-269.js +1 -1
  190. package/dist/chunks/md-27.js +45 -182
  191. package/dist/chunks/md-270.js +1 -1
  192. package/dist/chunks/md-271.js +1 -1
  193. package/dist/chunks/md-272.js +1 -1
  194. package/dist/chunks/md-273.js +1 -1
  195. package/dist/chunks/md-274.js +1 -1
  196. package/dist/chunks/md-275.js +1 -1
  197. package/dist/chunks/md-276.js +1 -0
  198. package/dist/chunks/md-277.js +1 -0
  199. package/dist/chunks/md-28.js +1 -61
  200. package/dist/chunks/md-29.js +192 -1
  201. package/dist/chunks/md-3.js +1 -1
  202. package/dist/chunks/md-30.js +49 -1
  203. package/dist/chunks/md-31.js +1 -33
  204. package/dist/chunks/md-32.js +1 -22
  205. package/dist/chunks/md-33.js +33 -7
  206. package/dist/chunks/md-34.js +23 -5
  207. package/dist/chunks/md-35.js +5 -1
  208. package/dist/chunks/md-36.js +5 -21
  209. package/dist/chunks/md-37.js +1 -24
  210. package/dist/chunks/md-38.js +20 -41
  211. package/dist/chunks/md-39.js +42 -1
  212. package/dist/chunks/md-4.js +1 -1
  213. package/dist/chunks/md-40.js +1 -33
  214. package/dist/chunks/md-41.js +30 -15
  215. package/dist/chunks/md-42.js +16 -1
  216. package/dist/chunks/md-43.js +1 -27
  217. package/dist/chunks/md-44.js +27 -5
  218. package/dist/chunks/md-45.js +4 -33
  219. package/dist/chunks/md-46.js +38 -13
  220. package/dist/chunks/md-47.js +13 -20
  221. package/dist/chunks/md-48.js +18 -45
  222. package/dist/chunks/md-49.js +57 -94
  223. package/dist/chunks/md-5.js +1 -1
  224. package/dist/chunks/md-50.js +98 -13
  225. package/dist/chunks/md-51.js +11 -5
  226. package/dist/chunks/md-52.js +4 -67
  227. package/dist/chunks/md-53.js +64 -20
  228. package/dist/chunks/md-54.js +22 -14
  229. package/dist/chunks/md-55.js +14 -5
  230. package/dist/chunks/md-56.js +5 -43
  231. package/dist/chunks/md-57.js +41 -28
  232. package/dist/chunks/md-58.js +21 -4
  233. package/dist/chunks/md-59.js +5 -1
  234. package/dist/chunks/md-6.js +1 -3
  235. package/dist/chunks/md-60.js +1 -23
  236. package/dist/chunks/md-61.js +23 -5
  237. package/dist/chunks/md-62.js +4 -14
  238. package/dist/chunks/md-63.js +10 -48
  239. package/dist/chunks/md-64.js +48 -29
  240. package/dist/chunks/md-65.js +29 -71
  241. package/dist/chunks/md-66.js +70 -19
  242. package/dist/chunks/md-67.js +19 -17
  243. package/dist/chunks/md-68.js +21 -38
  244. package/dist/chunks/md-69.js +17 -86
  245. package/dist/chunks/md-7.js +6 -16
  246. package/dist/chunks/md-70.js +36 -7
  247. package/dist/chunks/md-71.js +72 -72
  248. package/dist/chunks/md-72.js +6 -71
  249. package/dist/chunks/md-73.js +71 -67
  250. package/dist/chunks/md-74.js +78 -17
  251. package/dist/chunks/md-75.js +65 -4
  252. package/dist/chunks/md-76.js +16 -28
  253. package/dist/chunks/md-77.js +5 -3
  254. package/dist/chunks/md-78.js +18 -186
  255. package/dist/chunks/md-79.js +1 -39
  256. package/dist/chunks/md-8.js +1 -1
  257. package/dist/chunks/md-80.js +159 -83
  258. package/dist/chunks/md-81.js +32 -111
  259. package/dist/chunks/md-82.js +86 -11
  260. package/dist/chunks/md-83.js +79 -41
  261. package/dist/chunks/md-84.js +10 -31
  262. package/dist/chunks/md-85.js +42 -1
  263. package/dist/chunks/md-86.js +34 -1
  264. package/dist/chunks/md-87.js +1 -1
  265. package/dist/chunks/md-88.js +1 -1
  266. package/dist/chunks/md-89.js +1 -1
  267. package/dist/chunks/md-9.js +1 -1
  268. package/dist/chunks/md-90.js +1 -1
  269. package/dist/chunks/md-91.js +1 -1
  270. package/dist/chunks/md-92.js +1 -1
  271. package/dist/chunks/md-93.js +1 -1
  272. package/dist/chunks/md-94.js +1 -1
  273. package/dist/chunks/md-95.js +1 -1
  274. package/dist/chunks/md-96.js +1 -1
  275. package/dist/chunks/md-97.js +1 -1
  276. package/dist/chunks/md-98.js +1 -1
  277. package/dist/chunks/md-99.js +1 -1
  278. package/dist/comp/md-accordion-entry.js +1 -1
  279. package/dist/comp/md-accordion-item-entry.js +1 -1
  280. package/dist/comp/md-accordion-item.js +6 -2
  281. package/dist/comp/md-accordion.js +2 -2
  282. package/dist/comp/md-activity-button-entry.js +1 -1
  283. package/dist/comp/md-activity-button.js +2 -1
  284. package/dist/comp/md-alert-banner-entry.js +1 -1
  285. package/dist/comp/md-alert-banner.js +2 -1
  286. package/dist/comp/md-alert-entry.js +1 -1
  287. package/dist/comp/md-alert.js +2 -1
  288. package/dist/comp/md-audio-player-entry.js +1 -1
  289. package/dist/comp/md-audio-player.js +12 -1
  290. package/dist/comp/md-avatar-entry.js +1 -1
  291. package/dist/comp/md-avatar.js +4 -3
  292. package/dist/comp/md-badge-entry.js +1 -1
  293. package/dist/comp/md-badge.js +1 -1
  294. package/dist/comp/md-breadcrumb-entry.js +1 -1
  295. package/dist/comp/md-breadcrumb.js +1 -1
  296. package/dist/comp/md-button-entry.js +1 -1
  297. package/dist/comp/md-button-group-entry.js +1 -1
  298. package/dist/comp/md-button-group.js +1 -1
  299. package/dist/comp/md-card-entry.js +1 -1
  300. package/dist/comp/md-card.js +9 -4
  301. package/dist/comp/md-chat-message-entry.js +1 -1
  302. package/dist/comp/md-chat-message.js +5 -4
  303. package/dist/comp/md-checkbox-entry.js +1 -1
  304. package/dist/comp/md-checkbox.js +2 -2
  305. package/dist/comp/md-checkboxgroup-entry.js +1 -1
  306. package/dist/comp/md-checkboxgroup.js +2 -2
  307. package/dist/comp/md-chip-entry.js +1 -1
  308. package/dist/comp/md-chip.js +5 -4
  309. package/dist/comp/md-coachmark-entry.js +1 -1
  310. package/dist/comp/md-coachmark.js +2 -2
  311. package/dist/comp/md-combobox-entry.js +1 -1
  312. package/dist/comp/md-combobox.js +4 -3
  313. package/dist/comp/md-composite-avatar-entry.js +1 -1
  314. package/dist/comp/md-composite-avatar.js +2 -2
  315. package/dist/comp/md-date-range-picker-entry.js +1 -1
  316. package/dist/comp/md-date-range-picker.js +9 -8
  317. package/dist/comp/md-date-time-picker-entry.js +1 -1
  318. package/dist/comp/md-date-time-picker.js +4 -3
  319. package/dist/comp/md-datepicker-calendar-entry.js +1 -1
  320. package/dist/comp/md-datepicker-calendar.js +6 -5
  321. package/dist/comp/md-datepicker-day-entry.js +1 -1
  322. package/dist/comp/md-datepicker-day.js +3 -3
  323. package/dist/comp/md-datepicker-entry.js +1 -1
  324. package/dist/comp/md-datepicker-month-entry.js +1 -1
  325. package/dist/comp/md-datepicker-month.js +4 -4
  326. package/dist/comp/md-datepicker-week-entry.js +1 -1
  327. package/dist/comp/md-datepicker-week.js +3 -3
  328. package/dist/comp/md-datepicker.js +8 -7
  329. package/dist/comp/md-draggable-entry.js +1 -1
  330. package/dist/comp/md-draggable-item-entry.js +1 -1
  331. package/dist/comp/md-draggable-item.js +2 -2
  332. package/dist/comp/md-draggable.js +3 -3
  333. package/dist/comp/md-dropdown-entry.js +1 -1
  334. package/dist/comp/md-dropdown.js +2 -1
  335. package/dist/comp/md-editable-field-entry.js +1 -1
  336. package/dist/comp/md-editable-field.js +5 -4
  337. package/dist/comp/md-favorite-entry.js +1 -1
  338. package/dist/comp/md-favorite.js +2 -1
  339. package/dist/comp/md-floating-minimize-entry.js +1 -1
  340. package/dist/comp/md-floating-minimize.js +3 -2
  341. package/dist/comp/md-floating-modal-entry.js +1 -1
  342. package/dist/comp/md-floating-modal.js +4 -3
  343. package/dist/comp/md-form-entry.js +1 -1
  344. package/dist/comp/md-form.js +1 -1
  345. package/dist/comp/md-grabber-entry.js +1 -0
  346. package/dist/comp/md-grabber.js +14 -0
  347. package/dist/comp/md-help-text-entry.js +1 -1
  348. package/dist/comp/md-help-text.js +1 -1
  349. package/dist/comp/md-icon-entry.js +1 -1
  350. package/dist/comp/md-icon.js +1 -0
  351. package/dist/comp/md-inpu.js +1 -1
  352. package/dist/comp/md-input-entry.js +1 -1
  353. package/dist/comp/md-input-file.js +1 -1
  354. package/dist/comp/md-input.js +3 -2
  355. package/dist/comp/md-label-entry.js +1 -1
  356. package/dist/comp/md-label.js +1 -1
  357. package/dist/comp/md-link-entry.js +1 -1
  358. package/dist/comp/md-link.js +1 -1
  359. package/dist/comp/md-list-entry.js +1 -1
  360. package/dist/comp/md-list-item-entry.js +1 -1
  361. package/dist/comp/md-list-item.js +2 -2
  362. package/dist/comp/md-list.js +2 -2
  363. package/dist/comp/md-loading-entry.js +1 -1
  364. package/dist/comp/md-loading.js +1 -1
  365. package/dist/comp/md-meeting-alert-entry.js +1 -1
  366. package/dist/comp/md-meeting-alert.js +5 -4
  367. package/dist/comp/md-menu-entry.js +1 -1
  368. package/dist/comp/md-menu-item-entry.js +1 -1
  369. package/dist/comp/md-menu-item.js +1 -1
  370. package/dist/comp/md-menu-overlay-entry.js +1 -1
  371. package/dist/comp/md-menu-overlay.js +1 -1
  372. package/dist/comp/md-menu.js +2 -2
  373. package/dist/comp/md-modal-entry.js +1 -1
  374. package/dist/comp/md-modal.js +2 -1
  375. package/dist/comp/md-pagination-entry.js +1 -1
  376. package/dist/comp/md-pagination.js +6 -1
  377. package/dist/comp/md-phone-input-entry.js +1 -1
  378. package/dist/comp/md-phone-input.js +7 -6
  379. package/dist/comp/md-progress-bar-entry.js +1 -1
  380. package/dist/comp/md-progress-bar.js +1 -1
  381. package/dist/comp/md-radio-entry.js +1 -1
  382. package/dist/comp/md-radio.js +2 -2
  383. package/dist/comp/md-radiogroup-entry.js +1 -1
  384. package/dist/comp/md-radiogroup.js +2 -2
  385. package/dist/comp/md-slider-entry.js +1 -1
  386. package/dist/comp/md-slider.js +1 -1
  387. package/dist/comp/md-spinner-entry.js +1 -1
  388. package/dist/comp/md-tab-entry.js +1 -1
  389. package/dist/comp/md-tab-panel-entry.js +1 -1
  390. package/dist/comp/md-tab-panel.js +2 -2
  391. package/dist/comp/md-tab.js +2 -2
  392. package/dist/comp/md-table-advanced-entry.js +1 -1
  393. package/dist/comp/md-table-advanced.js +3 -2
  394. package/dist/comp/md-table-entry.js +1 -1
  395. package/dist/comp/md-table.js +1 -1
  396. package/dist/comp/md-tabs-entry.js +1 -1
  397. package/dist/comp/md-tabs.js +6 -5
  398. package/dist/comp/md-task-item-entry.js +1 -1
  399. package/dist/comp/md-task-item.js +3 -2
  400. package/dist/comp/md-theme-entry.js +1 -1
  401. package/dist/comp/md-theme.js +2 -2
  402. package/dist/comp/md-timepicker-entry.js +1 -1
  403. package/dist/comp/md-timepicker.js +7 -6
  404. package/dist/comp/md-toggle-switch-entry.js +1 -1
  405. package/dist/comp/md-toggle-switch.js +2 -2
  406. package/dist/comp/md-tooltip-entry.js +1 -1
  407. package/dist/comp/md-tooltip.js +2 -2
  408. package/dist/index-entry.js +2 -22
  409. package/dist/index.js +51 -49
  410. package/dist/types/components/accordion/AccordionItem.d.ts +8 -0
  411. package/dist/types/components/activity-button/ActivityButton.d.ts +2 -2
  412. package/dist/types/components/alert-banner/AlertBanner.d.ts +2 -2
  413. package/dist/types/components/audio-player/AudioPlayer.d.ts +3 -0
  414. package/dist/types/components/avatar/Avatar.d.ts +12 -2
  415. package/dist/types/components/avatar/CompositeAvatar.d.ts +2 -2
  416. package/dist/types/components/avatar/Presence.d.ts +1 -1
  417. package/dist/types/components/avatar/Presence.utils.d.ts +1 -1
  418. package/dist/types/components/button/Button.d.ts +8 -8
  419. package/dist/types/components/card/Card.d.ts +3 -1
  420. package/dist/types/components/chip/Chip.d.ts +3 -3
  421. package/dist/types/components/coachmark/Coachmark.d.ts +1 -1
  422. package/dist/types/components/combobox/ComboBox.d.ts +1 -1
  423. package/dist/types/components/date-time-picker/DateTimePicker.d.ts +1 -1
  424. package/dist/types/components/datepicker/DatePicker.d.ts +1 -1
  425. package/dist/types/components/datepicker/datepicker-day/DatePickerDay.d.ts +2 -2
  426. package/dist/types/components/datepicker/datepicker-month/DatePickerMonth.d.ts +1 -1
  427. package/dist/types/components/editable-textfield/EditableTextfield.d.ts +2 -2
  428. package/dist/types/components/favorite/Favorite.d.ts +2 -2
  429. package/dist/types/components/floating-modal/FloatingModal.d.ts +2 -2
  430. package/dist/types/components/grabber/Grabber.d.ts +2 -2
  431. package/dist/types/components/help-text/HelpText.d.ts +1 -1
  432. package/dist/types/components/icon/Icon.d.ts +22 -10
  433. package/dist/types/components/input/Input.d.ts +3 -3
  434. package/dist/types/components/link/Link.d.ts +3 -3
  435. package/dist/types/components/meeting-alert/MeetingAlert.d.ts +1 -1
  436. package/dist/types/components/menu-overlay/MenuOverlay.d.ts +4 -3
  437. package/dist/types/components/modal/Modal.d.ts +1 -1
  438. package/dist/types/components/pagination/Pagination.d.ts +2 -0
  439. package/dist/types/components/table/Table.d.ts +1 -1
  440. package/dist/types/components/timepicker/TimePicker.d.ts +3 -3
  441. package/dist/types/components/toggle-switch/ToggleSwitch.d.ts +1 -1
  442. package/dist/types/components/tooltip/Tooltip.d.ts +2 -2
  443. package/dist/types/utils/keyboard.d.ts +1 -0
  444. package/package.json +6 -6
  445. package/dist/assets/fonts/MomentumFontIcon.svg +0 -8634
  446. package/dist/assets/fonts/MomentumFontIcon.ttf +0 -0
  447. package/dist/assets/fonts/MomentumFontIcon.woff +0 -0
  448. package/dist/assets/fonts/MomentumFontIcon.woff2 +0 -0
  449. package/dist/assets/fonts/glyphs.json +0 -20120
  450. package/dist/assets/icons/fonts/MomentumFontIcon.svg +0 -8634
  451. package/dist/assets/icons/fonts/MomentumFontIcon.ttf +0 -0
  452. package/dist/assets/icons/fonts/MomentumFontIcon.woff +0 -0
  453. package/dist/assets/icons/fonts/MomentumFontIcon.woff2 +0 -0
  454. package/dist/assets/icons/fonts/glyphs.json +0 -20120
  455. package/dist/assets/styles/MomentumFontIcons.css +0 -11751
  456. package/dist/assets/styles/MomentumFontIcons.min.css +0 -1
  457. package/dist/assets/styles/functions.scss +0 -3
  458. package/dist/assets/styles/icons.scss +0 -2880
  459. package/dist/assets/styles/mixins.scss +0 -2915
  460. package/dist/assets/styles/placeholders.scss +0 -2901
  461. package/dist/assets/styles/variables.scss +0 -2885
@@ -1,98 +1,61 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[49],{106:function(e,t,i){"use strict";i.r(t),i.d(t,"playbackSpeeds",(function(){return u})),i.d(t,"defaultLabelMap",(function(){return c})),i.d(t,"AudioPlayer",(function(){return h}));var o=i(1),a=i(6),l=i(5),n=i(0),r=i(3),s=i(4),d=n.css`:host(md-audio-player){display:block}.md-audio-player{background:var(--audio-player-background-body,#ededed);box-shadow:inset 0 0 1.25rem rgba(176,176,176,.25);border-radius:1.875rem;height:3.75rem;color:var(--audio-player-font-color,#121212);flex-direction:column;justify-content:center;display:flex;padding:0 1.25rem;font-size:14px}.inner-container{display:flex;gap:.625rem;align-items:center;justify-items:center}.timeline-container{flex:1;z-index:0}.timeline-container md-tooltip{display:unset}md-button::part(button){vertical-align:text-bottom}md-button::part(button):focus::after{outline:0;box-shadow:none}md-button::part(button):focus-visible{box-shadow:0 0 0 .125rem var(--aido-player-focus-ring-color,#007aa3)}.timeline{background:var(--audio-player-background-timeline,#ccc);cursor:pointer;height:.375rem;width:100%;border-radius:.25rem;position:relative}.progress-bar{background:var(--audio-player-background-progress-bar,#3b3b3b);height:100%;width:0;transition:.25s;border-radius:.25rem;position:absolute;z-index:2}.buffer-bar{background:var(--audio-player-background-buffer-bar,#b2b2b2);height:100%;width:0;transition:.25s;border-radius:.25rem;position:absolute;top:0;opacity:.6}.text-container{display:flex;justify-content:space-between}.play-btn{cursor:pointer}.play-btn md-icon{vertical-align:sub}.volume-container{height:1.75rem;border-radius:1.875rem;display:flex;align-items:center;justify-content:center;transition:.25s}.volume-container md-icon{cursor:pointer}.volume-container:hover{background:var(--audio-player-background-body,#ededed);box-shadow:inset 0 0 1.25rem rgba(176,176,176,.25);padding:0 .9375rem}.volume-container:hover .volume{width:5rem;margin-right:.625rem}.volume{cursor:pointer;height:.375rem;width:0;overflow:hidden;border-radius:.625rem;transition:.25s;background:var(--audio-player-background-timeline,#ccc)}.volume-slider{background:var(--audio-player-background-progress-bar,#3b3b3b);height:100%;width:24%}.speed-icon-container{position:relative}#speed-btn{cursor:pointer}.speed-popup{display:none;position:absolute;z-index:1;bottom:-.375rem;right:4.75rem;height:100%;width:100%;justify-content:center;align-items:flex-end}.speed-popup.popup-open{display:flex}.speed-popup ul{list-style:none;padding:.375rem 0;text-align:left;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--audio-player-background-speed-popup,#fff);box-shadow:0 .25rem .5rem rgba(0,0,0,.2),0 0 .0625rem rgba(0,0,0,.12);border-radius:.5rem}.speed-popup ul li{padding:.125rem .75rem .125rem .75rem;color:var(--audio-player-font-color,#121212);width:10rem;height:1.875rem;cursor:pointer;transition:background .1s ease;display:inline-flex;justify-content:space-between;align-items:center}.speed-popup ul li:hover{background:var(--audio-player-background-speed-popup-hover,#f7f7f7)}.speed-popup-selected-speed{background:var(--audio-player-background-speed-popup-hover,#f7f7f7)}@media(forced-colors:active){.md-audio-player{outline:1px solid transparent!important}.buffer-bar{forced-color-adjust:none;opacity:.3;background-color:GrayText}.progress-bar{forced-color-adjust:none;background-color:Highlight}.volume{forced-color-adjust:none;background-color:HighlightText;outline:1px solid Highlight;outline-offset:-1px}.volume-slider{forced-color-adjust:none;background-color:Highlight}.speed-popup ul{outline:1px solid Highlight}.speed-popup ul li:hover{forced-color-adjust:none;color:Canvas;background:Highlight}#speed-popup-menu>.speed-popup-selected-speed{forced-color-adjust:none;color:Canvas;background:Highlight}}`,p=function(e,t,i,o){var a,l=arguments.length,n=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(n=(l<3?a(n):l>3?a(t,i,n):a(t,i))||n);return l>3&&n&&Object.defineProperty(t,i,n),n};const u=[{value:.25,label:"0.25"},{value:.5,label:"0.50"},{value:.75,label:"0.75"},{value:1,label:"Normal"},{value:1.25,label:"1.25"},{value:1.5,label:"1.50"},{value:1.75,label:"1.75"},{value:2,label:"2"}],c={playBtn:{ariaLabel:"Play",tooltipText:"Play"},pauseBtn:{ariaLabel:"Pause",tooltipText:"Pause"},duration:{ariaLabel:"Duration:",tooltipText:"Duration"},timeline:{ariaLabel:"Audio Seekbar",tooltipText:"Audio Seekbar"},volumeBtn:{ariaLabel:"Mute / Unmute Audio",tooltipText:"Mute / Unmute"},volumeSlider:{ariaLabel:"Volume level",tooltipText:"Volume level"},playbackSpeedBtn:{ariaLabel:"Playback speed",tooltipText:"Playback speed"}};var h;!function(e){let t=class extends n.LitElement{constructor(){super(),this.src="",this.events=[],this.isPlaying=!1,this.isMuted=!1,this.duration=0,this.volume=100,this.currentTime=0,this.showSpeedPopup=!1,this.playbackSpeed=1,this.volumeExpanded=!1,this.bufferedRange=0,this.selectedPlaybackSpeed=this.playbackSpeed,this.currentlySelectingPlaybackSpeed=!1,this.onOutsideClick=e=>{let t=!1;const i=e.composedPath();i.length&&(t=!!i.find(e=>"speed-btn"===e.id),t||(this.showSpeedPopup=!1))},this.handleKeyDown=e=>{const{code:t}=e;switch(t){case o.b.ArrowLeft:this.volumeExpanded?this.setVolumeKeydown(this.volume-.01):this.setTimeKeydown(this.currentTime-1);break;case o.b.ArrowRight:this.volumeExpanded?this.setVolumeKeydown(this.volume+.01):this.setTimeKeydown(this.currentTime+1);break;case o.b.ArrowUp:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const t=u.findIndex(e=>e.value===this.selectedPlaybackSpeed),i=Math.max(0,t-1);this.selectedPlaybackSpeed=u[i].value,e.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case o.b.ArrowDown:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const t=u.findIndex(e=>e.value===this.selectedPlaybackSpeed),i=Math.min(u.length-1,t+1);this.selectedPlaybackSpeed=u[i].value,e.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case o.b.Enter:this.showSpeedPopup&&(this.setPlaybackSpeed(this.selectedPlaybackSpeed),e.preventDefault())}},this.audio=new Audio,this.setAudioEventListeners(),this.labelMap=c}firstUpdated(e){super.firstUpdated(e),e.has("src")&&(this.audio.src=this.src)}updated(e){super.updated(e),e.has("src")&&(this.audio.src=this.src)}connectedCallback(){super.connectedCallback(),this.requestUpdate("src"),document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.handleKeyDown),this.audio.pause(),this.isPlaying=!1}setAudioEventListeners(){this.audio.onloadeddata=()=>{this.duration=this.audio.duration,this.audio.volume=.75},this.audio.onerror=()=>{this.audio.src&&this.dispatchEvent(new CustomEvent("playback-error",{composed:!0,bubbles:!0}))},this.audio.onended=()=>{this.audio.currentTime=0,this.isPlaying=!1},this.audio.ontimeupdate=()=>{this.currentTime=this.audio.currentTime},this.audio.onvolumechange=()=>{this.volume=this.audio.volume},this.audio.onprogress=()=>{this.audio.buffered.length>0&&(this.bufferedRange=this.audio.buffered.end(this.audio.buffered.length-1))}}togglePlay(){this.isPlaying=!this.isPlaying,this.isPlaying?(this.audio.play(),this.dispatchEvent(new CustomEvent("play-clicked",{composed:!0,bubbles:!0}))):this.audio.pause()}toTimecode(e){const t=Math.floor(e);return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}setTime(e){const t=this.getBarPercentage(e,"timeline"),i=Math.floor(t*this.duration);this.audio.currentTime=i}setVolumeElement(e){this.volumeElement="volume"===e.target.className?e.target:e.target.parentElement}handleVolumeChange(e){let t=!1;this.setVolumeElement(e),this.setVolume(e);const i=e=>{t||(t=!0),this.volumeExpanded?this.setVolume(e):a()},o=e=>{a()},a=()=>{t=!1,window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",o)};window.addEventListener("mousemove",i),window.addEventListener("mouseup",o),e.preventDefault()}getVolumeFromSlider(e){if(null===this.volumeElement)return 0;const t=this.volumeElement.getBoundingClientRect(),i=e.clientX-t.x;return Math.max(0,Math.min(1,i/t.width))}setVolume(e){const t=this.getVolumeFromSlider(e);this.audio.volume=t}getBarPercentage(e,t){const i=(e.target.className===t?e.target:e.target.parentElement).getBoundingClientRect();return(e.clientX-i.x)/i.width}toggleSoundMute(){this.isMuted=!this.isMuted,this.audio.muted=this.isMuted}toggleSpeedPopup(){this.showSpeedPopup=!this.showSpeedPopup}setTimeKeydown(e){e>this.duration?(this.currentTime=this.duration,this.audio.currentTime=this.duration):e<0?(this.currentTime=0,this.audio.currentTime=0):(this.currentTime=e,this.audio.currentTime=e)}setVolumeKeydown(e){e>1?(this.volume=1,this.audio.volume=1):e<0?(this.isMuted||this.toggleSoundMute(),this.volume=0,this.audio.volume=0):(this.isMuted&&this.toggleSoundMute(),this.volume=e,this.audio.volume=e)}get popupClassMap(){return{"popup-open":this.showSpeedPopup}}setPlaybackSpeed(e){this.playbackSpeed=e,this.audio.playbackRate=this.playbackSpeed,this.showSpeedPopup=!1}toggleVolumeExpand(e){this.volumeExpanded=e}static get styles(){return[l.a,d]}render(){return n.html`
2
- <div class="md-audio-player">
3
- <div class="inner-container">
4
- <div class="play-container">
5
- <md-tooltip
6
- placement="top"
7
- message="${this.isPlaying?this.labelMap.pauseBtn.tooltipText:this.labelMap.playBtn.tooltipText}"
8
- >
9
- <md-button
10
- hasRemoveStyle
11
- class="play-btn"
12
- @click="${this.togglePlay}"
13
- aria-label="${this.isPlaying?this.labelMap.pauseBtn.ariaLabel:this.labelMap.playBtn.ariaLabel}"
14
- >
15
- ${this.isPlaying?n.html`
16
- <md-icon slot="icon" name="icon-pause_16"></md-icon>
17
- `:n.html`
18
- <md-icon slot="icon" name="icon-play_16"></md-icon>
19
- `}
20
- </md-button>
21
- </md-tooltip>
22
- </div>
23
- <div class="text-container">
24
- <md-tooltip placement="top" message="${this.labelMap.duration.tooltipText}">
25
- <span
26
- class="duration"
27
- aria-label="${this.labelMap.duration.ariaLabel} ${this.toTimecode(this.currentTime)}/${this.toTimecode(this.duration)}"
28
- >
29
- ${this.toTimecode(this.currentTime)} / ${this.toTimecode(this.duration)}
30
- </span>
31
- </md-tooltip>
32
- </div>
33
- <div class="timeline-container">
34
- <md-tooltip placement="top" message="${this.labelMap.timeline.tooltipText}">
35
- <div class="timeline" @click="${this.setTime}" aria-label="${this.labelMap.timeline.ariaLabel}">
36
- <div class="progress-bar" style="width: ${this.currentTime/this.duration*100}%"></div>
37
- <div class="buffer-bar" style="width: ${this.bufferedRange/this.duration*100}%"></div>
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[49],{106:function(e,t,r){"use strict";r.r(t),r.d(t,"Alert",(function(){return o}));r(16),r(13);var o,l=r(6),i=r(5),a=r(0),n=r(3),s=r(4),c=a.css`:host{--alert-icon-size:var(--alert-default-icon-size, $lm-alert-default-icon-size-light);--alert-close-btn:var(--alert-close-bg-color, $lm-alert-close-bg-color-light)}:host(md-alert){display:flex;flex:1 1 100%}.md-alert{align-content:center;align-items:flex-start;display:flex;flex-flow:row nowrap;justify-content:space-between;border-top-left-radius:.3125rem;border-top-right-radius:.3125rem;border-bottom-left-radius:.3125rem;border-bottom-right-radius:.3125rem;background-color:var(--alert-default-bg-color,#fff);border:1px solid var(--alert-default-border-color,rgba(0,0,0,.12));box-shadow:0 8px 16px 0 rgba(0,0,0,.08);flex:1 1 100%;margin-bottom:.5rem;max-height:19.25rem;max-width:23rem;min-height:4.875rem;padding:.75rem}.md-alert__icon{align-self:center}.md-alert__icon md-icon::part(icon){font-size:var(--alert-default-icon-size,24px)!important;line-height:var(--alert-default-icon-size,24px)!important}.md-alert__content{display:flex;flex-basis:0;flex-direction:column;flex-grow:2;max-width:17rem;padding-left:.75rem;padding-right:.125rem;align-self:center}.md-alert__title{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis;color:var(--alert-title-text-color,#121212);font-size:var(--alert-title-font-size,1rem);line-height:1.5rem;width:100%}.md-alert__message{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;color:var(--alert-default-text-color,#545454);font-family:var(--brand-font-light, "CiscoSansTT Light", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:var(--body-secondary-font-size,.875rem);line-height:1.35;width:100%;word-wrap:break-word}.md-alert__button{margin-left:.25rem;align-self:center}.md-alert__button md-button::part(button){align-items:center;background-color:var(--alert-close-bg-color,#fff);border-radius:50%;display:inline-flex;height:var(--alert-close-size,1rem);justify-content:center;width:var(--alert-close-size,1rem)}.md-alert__button md-icon::part(icon){color:var(--alert-close-text-color,#121212)}.md-alert.md-alert__inline{border:0;box-shadow:none;margin-bottom:0}@media(forced-colors:active){.md-alert__button md-icon::part(icon){color:ButtonText}.md-alert__icon{background:0 0}.md-alert__icon md-icon::part(icon){color:CanvasText}.md-alert .md-badge{background-color:inherit}}`,d=function(e,t,r,o){var l,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(a=(i<3?l(a):i>3?l(t,r,a):l(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.closable=!1,this.message="",this.show=!1,this.internalClose=!0,this.title="",this.btnlabel="Close",this.type="default",this.inline=!1,this.renderIconTemplate=()=>{switch(this.type){case"error":return a.html`
2
+ <md-icon
3
+ name="warning-regular"
4
+ size="32"
5
+ iconSet="momentumDesign"
6
+ color="var(--md-alert-error-text-color, red)"
7
+ ></md-icon>
8
+ `;case"info":return a.html`
9
+ <md-icon
10
+ name="info-circle-regular"
11
+ size="32"
12
+ iconSet="momentumDesign"
13
+ color="var(--md-alert-info-text-color, blue)"
14
+ ></md-icon>
15
+ `;case"success":return a.html`
16
+ <md-icon
17
+ name="check-circle-regular"
18
+ size="32"
19
+ iconSet="momentumDesign"
20
+ color="var(--md-alert-success-text-color, green)"
21
+ ></md-icon>
22
+ `;case"warn":case"warning":return a.html`
23
+ <md-icon
24
+ name="warning-regular"
25
+ size="32"
26
+ iconSet="momentumDesign"
27
+ color="var(--md-alert-warning-text-color, orange)"
28
+ ></md-icon>
29
+ `;default:return a.html` <slot name="alert-icon"></slot> `}}}close(){this.dispatchEvent(new CustomEvent("alert-close",{composed:!0,bubbles:!0})),this.internalClose&&(this.show=!1)}static get styles(){return[i.a,c]}get alertClassMap(){return{["md-alert--"+this.type]:!!this.type,"md-alert__inline":this.inline}}render(){return a.html`
30
+ ${this.show?a.html`
31
+ <div role="alert" aria-live="polite" part="alert" class="md-alert ${Object(s.classMap)(this.alertClassMap)}">
32
+ <div class="md-alert__icon aria-hidden="true">
33
+ ${this.renderIconTemplate()}
38
34
  </div>
39
- </md-tooltip>
40
- </div>
41
- <div
42
- class="volume-container"
43
- @mouseleave="${()=>this.toggleVolumeExpand(!1)}"
44
- @mouseenter="${()=>this.toggleVolumeExpand(!0)}"
45
- aria-label="${this.labelMap.volumeSlider.ariaLabel}"
46
- >
47
- <md-tooltip
48
- placement="top"
49
- message="${this.labelMap.volumeSlider.tooltipText} ${Math.trunc(100*this.volume)}%"
50
- >
51
- <div
52
- class="volume"
53
- @mousedown="${this.handleVolumeChange}"
54
- aria-label="${this.labelMap.volumeSlider.ariaLabel} ${Math.trunc(100*this.volume)}%"
55
- >
56
- <div class="volume-slider" style="width: ${this.isMuted?0:100*this.volume}%"></div>
35
+ <div part="content" class="md-alert__content">
36
+ ${this.title&&""!==this.title?a.html` <div class="md-alert__title" role="heading" aria-level="1">${this.title}</div> `:n.nothing}
37
+ <div class="md-alert__message">
38
+ ${this.message}
39
+ <slot name="alert-body"></slot>
40
+ </div>
57
41
  </div>
58
- </md-tooltip>
59
- <md-tooltip placement="top" message="${this.labelMap.volumeBtn.tooltipText}">
60
- <md-button
61
- hasRemoveStyle
62
- class="volume-btn"
63
- aria-label="${this.labelMap.volumeBtn.ariaLabel}"
64
- @click="${this.toggleSoundMute}"
65
- >
66
- ${this.isMuted?n.html`
67
- <md-icon slot="icon" name="icon-speaker-muted_16"></md-icon>
68
- `:n.html`
69
- <md-icon slot="icon" name="icon-speaker_16"></md-icon>
42
+ ${this.closable?a.html`
43
+ <div class="md-alert__button">
44
+ <md-button
45
+ arialabel="${this.btnlabel}"
46
+ hasRemoveStyle
47
+ color="color-none"
48
+ circle
49
+ @click="${()=>this.close()}"
50
+ >
51
+ <md-icon slot="icon" name="cancel-bold" size="18" iconSet="momentumDesign"></md-icon>
52
+ </md-button>
53
+ </div>
54
+ `:a.html`
55
+ <div class="md-alert__footer">
56
+ <slot name="alert-footer"></slot>
57
+ </div>
70
58
  `}
71
- </md-button>
72
- </md-tooltip>
73
- </div>
74
- <div class="speed-icon-container" aria-label="${this.labelMap.playbackSpeedBtn.ariaLabel}">
75
- <md-tooltip placement="top" message="${this.labelMap.playbackSpeedBtn.tooltipText}">
76
- <md-button hasRemoveStyle id="speed-btn" @click="${this.toggleSpeedPopup}">
77
- <md-icon slot="icon" name="icon-too-fast_16"></md-icon>
78
- </md-button>
79
- </md-tooltip>
80
- <div class="speed-popup ${Object(s.classMap)(this.popupClassMap)}">
81
- <ul id="speed-popup-menu">
82
- ${u.map(e=>{const t=this.selectedPlaybackSpeed==e.value&&!this.currentlySelectingPlaybackSpeed;return n.html`
83
- <li
84
- class=${t?"speed-popup-selected-speed":""}
85
- @click="${()=>this.setPlaybackSpeed(e.value)}"
86
- >
87
- <span>${e.label}</span>
88
- ${this.playbackSpeed==e.value?n.html`
89
- <md-icon slot="icon" color="md-blue-60" name="icon-check_16"></md-icon>
90
- `:r.nothing}
91
- </li>
92
- `})}
93
- </ul>
94
59
  </div>
95
- </div>
96
- </div>
97
- </div>
98
- `}};p([Object(n.property)({type:String})],t.prototype,"src",void 0),p([Object(n.property)({type:Object})],t.prototype,"labelMap",void 0),p([Object(n.internalProperty)()],t.prototype,"events",void 0),p([Object(n.internalProperty)()],t.prototype,"audio",void 0),p([Object(n.internalProperty)()],t.prototype,"volumeElement",void 0),p([Object(n.internalProperty)()],t.prototype,"isPlaying",void 0),p([Object(n.internalProperty)()],t.prototype,"isMuted",void 0),p([Object(n.internalProperty)()],t.prototype,"duration",void 0),p([Object(n.internalProperty)()],t.prototype,"volume",void 0),p([Object(n.internalProperty)()],t.prototype,"currentTime",void 0),p([Object(n.internalProperty)()],t.prototype,"showSpeedPopup",void 0),p([Object(n.internalProperty)()],t.prototype,"playbackSpeed",void 0),p([Object(n.internalProperty)()],t.prototype,"volumeExpanded",void 0),p([Object(n.internalProperty)()],t.prototype,"bufferedRange",void 0),p([Object(n.internalProperty)()],t.prototype,"selectedPlaybackSpeed",void 0),p([Object(n.internalProperty)()],t.prototype,"currentlySelectingPlaybackSpeed",void 0),t=p([Object(a.a)("md-audio-player")],t),e.ELEMENT=t}(h||(h={}))}}]);
60
+ `:n.nothing}
61
+ `}};d([Object(a.property)({type:Boolean})],t.prototype,"closable",void 0),d([Object(a.property)({type:String})],t.prototype,"message",void 0),d([Object(a.property)({type:Boolean})],t.prototype,"show",void 0),d([Object(a.property)({type:Boolean})],t.prototype,"internalClose",void 0),d([Object(a.property)({type:String})],t.prototype,"title",void 0),d([Object(a.property)({type:String})],t.prototype,"btnlabel",void 0),d([Object(a.property)({type:String})],t.prototype,"type",void 0),d([Object(a.property)({type:Boolean})],t.prototype,"inline",void 0),t=d([Object(l.a)("md-alert")],t),e.ELEMENT=t}(o||(o={}))}}]);
@@ -1 +1 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[5],{34:function(e,t,s){"use strict";s.d(t,"a",(function(){return r}));var i=s(1),n=s(0),o=s(17),a=s(33),c=function(e,t,s,i){var n,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(a=(o<3?n(a):o>3?n(t,s,a):n(t,s))||a);return o>3&&a&&Object.defineProperty(t,s,a),a},l=function(e,t,s,i){return new(s||(s=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function c(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(a,c)}l((i=i.apply(e,t||[])).next())}))};n.LitElement;const r=e=>{if(Object(o.b)(r,e))return e;class t extends(Object(a.a)(e)){constructor(){super(...arguments),this.focusableElements=[],this.initialFocusComplete=!1,this.focusableTimer=[],this.activeFocusTrap=!1,this.preventClickOutside=!1,this.focusTrapIndex=-1,this.preventScroll=!1,this.shouldWrapFocus=()=>!1,this.handleFocusOnClear=()=>{this.focusTrap(!0)},this.handleOutsideTrapClick=e=>{let t=!1;const s=e.composedPath();s.length&&(t=!!s.find(e=>e===this),t||this.preventClickOutside||!this.activeFocusTrap?t&&this.activeFocusTrap&&this.initialFocusComplete&&this.handleClickInsideTrap(e):this.deactivateFocusTrap())},this.updateFocusableElements=()=>{this.focusableTimer&&(clearTimeout(this.focusableTimer),this.focusableElements=[]),this.focusableTimer=setTimeout(()=>{this.setFocusableElements()},10)},this.handleChildFocusTrap=e=>{e.target!==this&&(e.stopPropagation(),this.deactivateFocusTrap(!1))},this.handleChildFocusUntrap=e=>{e.target!==this&&(e.stopPropagation(),this.activateFocusTrap(!1))}}updated(e){if(super.updated(e),e.has("focusTrapIndex")){const t=e.get("focusTrapIndex"),s=this.focusableElements[t];s&&(s.blur(),s.toggleAttribute("focus-visible",!1));const i=this.focusableElements[this.focusTrapIndex];i&&this.tryFocus(i)}}tryFocus(e){requestAnimationFrame(()=>l(this,void 0,void 0,(function*(){this.isElementFocused(e)&&e.focus({preventScroll:this.preventScroll}),void 0!==e.updateComplete&&(yield e.updateComplete),document.hasFocus()&&this.isElementFocused(e)&&e.focus({preventScroll:this.preventScroll}),this.initialFocusComplete||(this.initialFocusComplete=!0)})))}domRectCollection(e){return 0===e.getClientRects().length}viewportPosition(e){const{width:t,height:s}=e.getBoundingClientRect(),{offsetWidth:i,offsetHeight:n}=e;return i+n+s+t===0}isNotVisible(e){return"SLOT"!==e.tagName&&(this.viewportPosition(e)||this.domRectCollection(e))}isHidden(e){return e.hasAttribute("hidden")||e.hasAttribute("aria-hidden")&&"true"===e.getAttribute("aria-hidden")||"none"===e.style.display||"0"===e.style.opacity||"hidden"===e.style.visibility||"collapse"===e.style.visibility||this.isNotVisible(e)||"hidden"===getComputedStyle(e).visibility||"0"===getComputedStyle(e).height}isNotTabbable(e){return"-1"===e.getAttribute("tabindex")}isInteractiveElement(e){return e instanceof HTMLButtonElement||e instanceof HTMLDetailsElement||e instanceof HTMLEmbedElement||e instanceof HTMLIFrameElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||(!!(e instanceof HTMLAnchorElement&&e.hasAttribute("href"))||(e instanceof HTMLInputElement&&"hidden"!==e.type||(!(!(e instanceof HTMLAudioElement||e instanceof HTMLVideoElement)||!e.hasAttribute("controls"))||(!(!(e instanceof HTMLImageElement||e instanceof HTMLObjectElement)||!e.hasAttribute("usemap"))||!!(e.hasAttribute("tabindex")&&e.tabIndex>-1)))))}isFocusable(e){return!this.isHidden(e)&&!this.isNotTabbable(e)&&!!this.isInteractiveElement(e)}shouldSkipFocus(e){return!!(e.id&&e.id.split&&e.id.split(" ").indexOf("md-combobox-listbox")>-1)}findFocusable(e,t){const s=Array.from(e.children);for(const e of s)if(!this.isHidden(e)){if(this.shouldSkipFocus(e))break;if(this.isFocusable(e)&&t.add(e),e.shadowRoot)this.findFocusable(e.shadowRoot,t);else if("SLOT"===e.tagName){const s=e.assignedNodes().filter(e=>e.nodeType===e.ELEMENT_NODE);if(s.length){const e=s[0].parentElement;e&&this.findFocusable(e,t)}}else this.findFocusable(e,t)}return[...t]}isEqualFocusNode(e,t){return e.nodeType>=0&&(t.isEqualNode(e)&&t==e)}findElement(e){return this.focusableElements.findIndex(t=>this.isEqualFocusNode(e,t))}focusTrap(e){const t=this.getDeepActiveElement(),s=this.findElement(t);if(e)-1===s&&this.focusTrapIndex-1>0?this.focusTrapIndex--:this.focusTrapIndex=s>(this.shouldWrapFocus()?1:0)?s-1:this.focusableElements.length-1;else if(-1===s&&this.focusTrapIndex+1<this.focusableElements.length)this.focusTrapIndex++;else if(s===this.focusableElements.length-1&&0===this.focusTrapIndex){const e=this.focusableElements[this.focusTrapIndex];e&&this.tryFocus(e)}else this.focusTrapIndex=s+1<this.focusableElements.length?s+1:this.shouldWrapFocus()?1:0}hasAutofocus(e){return e.hasAttribute("autofocus")}setInitialFocus(e=0,t=!1){let s=-1;this.initialFocusComplete=!1,this.focusableElements.length&&!t&&(s=this.focusableElements.findIndex(this.hasAutofocus)),this.focusableElements.length&&-1===s&&("object"==typeof e?s=this.findElement(e):"number"==typeof e&&(s=e)),this.focusableElements[s]&&(this.focusTrapIndex=s)}setFocusOnTrigger(e){let t;if(t=e.shadowRoot?this.findFocusable(e.shadowRoot,new Set):this.isFocusable(e)?[e]:this.findFocusable(e,new Set),t[0]){const e=this.findElement(t[0]);this.focusTrapIndex=e}}setFocusableElements(){this.focusableElements=this.findFocusable(this.shadowRoot,new Set)}firstUpdated(e){const t=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return l(this,void 0,void 0,(function*(){t.firstUpdated.call(this,e),yield new Promise(e=>setTimeout(e,0)),this.setFocusableElements()}))}handleKeydownFocusTrap(e){e.code!==i.b.Tab||e.shiftKey&&e.code!==i.b.Tab||this.activeFocusTrap&&this.focusableElements.length&&(e.shiftKey?(e.preventDefault(),this.focusTrap(!0)):(e.preventDefault(),this.focusTrap(!1)))}activateFocusTrap(e=!0){e&&this.dispatchEvent(new CustomEvent("on-focus-trap",{bubbles:!0,composed:!0,cancelable:!0})),this.activeFocusTrap=!0}deactivateFocusTrap(e=!0){this.activeFocusTrap=!1,this.focusTrapIndex=-1,this.removeAttribute("focus-trap-index"),e&&this.dispatchEvent(new CustomEvent("on-focus-untrap",{bubbles:!0,composed:!0,cancelable:!0}))}handleClickInsideTrap(e){const t=e.composedPath(),s=t.findIndex(e=>-1!==this.findElement(e));if(-1!==s){const e=t[s],i=this.findElement(e);-1!==i&&(this.focusTrapIndex=i)}}manageNewElement(e){requestAnimationFrame(()=>{this.setFocusableElements();const t=this.findElement(e);-1!==t&&(this.focusTrapIndex=t)})}handleFocusVisible(e){const t=(e.detail?e.detail.sourceEvent:e).composedPath()[0];-1===(e.detail?this.findElement(t):-1)&&t!==this&&this.manageNewElement(t)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeydownFocusTrap),this.addEventListener("focus-visible",this.handleFocusVisible),this.addEventListener("on-focus-trap",this.handleChildFocusTrap),this.addEventListener("on-focus-untrap",this.handleChildFocusUntrap),document.addEventListener("click",this.handleOutsideTrapClick),document.addEventListener("on-widget-update",this.updateFocusableElements),this.addEventListener("input-clear",this.handleFocusOnClear)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydownFocusTrap),this.removeEventListener("focus-visible",this.handleFocusVisible),this.removeEventListener("on-focus-trap",this.handleChildFocusTrap),this.removeEventListener("on-focus-untrap",this.handleChildFocusUntrap),document.removeEventListener("click",this.handleOutsideTrapClick),document.removeEventListener("on-widget-update",this.updateFocusableElements),this.removeEventListener("input-clear",this.handleFocusOnClear),this.focusableTimer&&clearTimeout(this.focusableTimer)}}return c([Object(n.internalProperty)()],t.prototype,"focusableElements",void 0),c([Object(n.internalProperty)()],t.prototype,"initialFocusComplete",void 0),c([Object(n.internalProperty)()],t.prototype,"focusableTimer",void 0),c([Object(n.property)({type:Boolean,reflect:!0,attribute:"active-focus-trap"})],t.prototype,"activeFocusTrap",void 0),c([Object(n.property)({type:Boolean,reflect:!0,attribute:"prevent-click-outside"})],t.prototype,"preventClickOutside",void 0),c([Object(n.property)({type:Number,reflect:!0,attribute:"focus-trap-index"})],t.prototype,"focusTrapIndex",void 0),c([Object(n.property)({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],t.prototype,"preventScroll",void 0),Object(o.a)(r,t),t}}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[5],{34:function(e,t,s){"use strict";s.d(t,"a",(function(){return r}));var i=s(1),n=s(0),o=s(18),a=s(33),c=function(e,t,s,i){var n,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(a=(o<3?n(a):o>3?n(t,s,a):n(t,s))||a);return o>3&&a&&Object.defineProperty(t,s,a),a},l=function(e,t,s,i){return new(s||(s=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function c(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(a,c)}l((i=i.apply(e,t||[])).next())}))};n.LitElement;const r=e=>{if(Object(o.b)(r,e))return e;class t extends(Object(a.a)(e)){constructor(){super(...arguments),this.focusableElements=[],this.initialFocusComplete=!1,this.focusableTimer=[],this.activeFocusTrap=!1,this.preventClickOutside=!1,this.focusTrapIndex=-1,this.preventScroll=!1,this.shouldWrapFocus=()=>!1,this.handleFocusOnClear=()=>{this.focusTrap(!0)},this.handleOutsideTrapClick=e=>{let t=!1;const s=e.composedPath();s.length&&(t=!!s.find(e=>e===this),t||this.preventClickOutside||!this.activeFocusTrap?t&&this.activeFocusTrap&&this.initialFocusComplete&&this.handleClickInsideTrap(e):this.deactivateFocusTrap())},this.updateFocusableElements=()=>{this.focusableTimer&&(clearTimeout(this.focusableTimer),this.focusableElements=[]),this.focusableTimer=setTimeout(()=>{this.setFocusableElements()},10)},this.handleChildFocusTrap=e=>{e.target!==this&&(e.stopPropagation(),this.deactivateFocusTrap(!1))},this.handleChildFocusUntrap=e=>{e.target!==this&&(e.stopPropagation(),this.activateFocusTrap(!1))}}updated(e){if(super.updated(e),e.has("focusTrapIndex")){const t=e.get("focusTrapIndex"),s=this.focusableElements[t];s&&(s.blur(),s.toggleAttribute("focus-visible",!1));const i=this.focusableElements[this.focusTrapIndex];i&&this.tryFocus(i)}}tryFocus(e){requestAnimationFrame(()=>l(this,void 0,void 0,(function*(){this.isElementFocused(e)&&e.focus({preventScroll:this.preventScroll}),void 0!==e.updateComplete&&(yield e.updateComplete),document.hasFocus()&&this.isElementFocused(e)&&e.focus({preventScroll:this.preventScroll}),this.initialFocusComplete||(this.initialFocusComplete=!0)})))}domRectCollection(e){return 0===e.getClientRects().length}viewportPosition(e){const{width:t,height:s}=e.getBoundingClientRect(),{offsetWidth:i,offsetHeight:n}=e;return i+n+s+t===0}isNotVisible(e){return"SLOT"!==e.tagName&&(this.viewportPosition(e)||this.domRectCollection(e))}isHidden(e){return e.hasAttribute("hidden")||e.hasAttribute("aria-hidden")&&"true"===e.getAttribute("aria-hidden")||"none"===e.style.display||"0"===e.style.opacity||"hidden"===e.style.visibility||"collapse"===e.style.visibility||this.isNotVisible(e)||"hidden"===getComputedStyle(e).visibility||"0"===getComputedStyle(e).height}isNotTabbable(e){return"-1"===e.getAttribute("tabindex")}isInteractiveElement(e){return e instanceof HTMLButtonElement||e instanceof HTMLDetailsElement||e instanceof HTMLEmbedElement||e instanceof HTMLIFrameElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||(!!(e instanceof HTMLAnchorElement&&e.hasAttribute("href"))||(e instanceof HTMLInputElement&&"hidden"!==e.type||(!(!(e instanceof HTMLAudioElement||e instanceof HTMLVideoElement)||!e.hasAttribute("controls"))||(!(!(e instanceof HTMLImageElement||e instanceof HTMLObjectElement)||!e.hasAttribute("usemap"))||!!(e.hasAttribute("tabindex")&&e.tabIndex>-1)))))}isFocusable(e){return!this.isHidden(e)&&!this.isNotTabbable(e)&&!!this.isInteractiveElement(e)}shouldSkipFocus(e){return!!(e.id&&e.id.split&&e.id.split(" ").indexOf("md-combobox-listbox")>-1)}findFocusable(e,t){const s=Array.from(e.children);for(const e of s)if(!this.isHidden(e)){if(this.shouldSkipFocus(e))break;if(this.isFocusable(e)&&t.add(e),e.shadowRoot)this.findFocusable(e.shadowRoot,t);else if("SLOT"===e.tagName){const s=e.assignedNodes().filter(e=>e.nodeType===e.ELEMENT_NODE);if(s.length){const e=s[0].parentElement;e&&this.findFocusable(e,t)}}else this.findFocusable(e,t)}return[...t]}isEqualFocusNode(e,t){return e.nodeType>=0&&(t.isEqualNode(e)&&t==e)}findElement(e){return this.focusableElements.findIndex(t=>this.isEqualFocusNode(e,t))}focusTrap(e){const t=this.getDeepActiveElement(),s=this.findElement(t);if(e)-1===s&&this.focusTrapIndex-1>0?this.focusTrapIndex--:this.focusTrapIndex=s>(this.shouldWrapFocus()?1:0)?s-1:this.focusableElements.length-1;else if(-1===s&&this.focusTrapIndex+1<this.focusableElements.length)this.focusTrapIndex++;else if(s===this.focusableElements.length-1&&0===this.focusTrapIndex){const e=this.focusableElements[this.focusTrapIndex];e&&this.tryFocus(e)}else this.focusTrapIndex=s+1<this.focusableElements.length?s+1:this.shouldWrapFocus()?1:0}hasAutofocus(e){return e.hasAttribute("autofocus")}setInitialFocus(e=0,t=!1){let s=-1;this.initialFocusComplete=!1,this.focusableElements.length&&!t&&(s=this.focusableElements.findIndex(this.hasAutofocus)),this.focusableElements.length&&-1===s&&("object"==typeof e?s=this.findElement(e):"number"==typeof e&&(s=e)),this.focusableElements[s]&&(this.focusTrapIndex=s)}setFocusOnTrigger(e){let t;if(t=e.shadowRoot?this.findFocusable(e.shadowRoot,new Set):this.isFocusable(e)?[e]:this.findFocusable(e,new Set),t[0]){const e=this.findElement(t[0]);this.focusTrapIndex=e}}setFocusableElements(){this.focusableElements=this.findFocusable(this.shadowRoot,new Set)}firstUpdated(e){const t=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return l(this,void 0,void 0,(function*(){t.firstUpdated.call(this,e),yield new Promise(e=>setTimeout(e,0)),this.setFocusableElements()}))}handleKeydownFocusTrap(e){e.code!==i.b.Tab||e.shiftKey&&e.code!==i.b.Tab||this.activeFocusTrap&&this.focusableElements.length&&(e.shiftKey?(e.preventDefault(),this.focusTrap(!0)):(e.preventDefault(),this.focusTrap(!1)))}activateFocusTrap(e=!0){e&&this.dispatchEvent(new CustomEvent("on-focus-trap",{bubbles:!0,composed:!0,cancelable:!0})),this.activeFocusTrap=!0}deactivateFocusTrap(e=!0){this.activeFocusTrap=!1,this.focusTrapIndex=-1,this.removeAttribute("focus-trap-index"),e&&this.dispatchEvent(new CustomEvent("on-focus-untrap",{bubbles:!0,composed:!0,cancelable:!0}))}handleClickInsideTrap(e){const t=e.composedPath(),s=t.findIndex(e=>-1!==this.findElement(e));if(-1!==s){const e=t[s],i=this.findElement(e);-1!==i&&(this.focusTrapIndex=i)}}manageNewElement(e){requestAnimationFrame(()=>{this.setFocusableElements();const t=this.findElement(e);-1!==t&&(this.focusTrapIndex=t)})}handleFocusVisible(e){const t=(e.detail?e.detail.sourceEvent:e).composedPath()[0];-1===(e.detail?this.findElement(t):-1)&&t!==this&&this.manageNewElement(t)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeydownFocusTrap),this.addEventListener("focus-visible",this.handleFocusVisible),this.addEventListener("on-focus-trap",this.handleChildFocusTrap),this.addEventListener("on-focus-untrap",this.handleChildFocusUntrap),document.addEventListener("click",this.handleOutsideTrapClick),document.addEventListener("on-widget-update",this.updateFocusableElements),this.addEventListener("input-clear",this.handleFocusOnClear)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydownFocusTrap),this.removeEventListener("focus-visible",this.handleFocusVisible),this.removeEventListener("on-focus-trap",this.handleChildFocusTrap),this.removeEventListener("on-focus-untrap",this.handleChildFocusUntrap),document.removeEventListener("click",this.handleOutsideTrapClick),document.removeEventListener("on-widget-update",this.updateFocusableElements),this.removeEventListener("input-clear",this.handleFocusOnClear),this.focusableTimer&&clearTimeout(this.focusableTimer)}}return c([Object(n.internalProperty)()],t.prototype,"focusableElements",void 0),c([Object(n.internalProperty)()],t.prototype,"initialFocusComplete",void 0),c([Object(n.internalProperty)()],t.prototype,"focusableTimer",void 0),c([Object(n.property)({type:Boolean,reflect:!0,attribute:"active-focus-trap"})],t.prototype,"activeFocusTrap",void 0),c([Object(n.property)({type:Boolean,reflect:!0,attribute:"prevent-click-outside"})],t.prototype,"preventClickOutside",void 0),c([Object(n.property)({type:Number,reflect:!0,attribute:"focus-trap-index"})],t.prototype,"focusTrapIndex",void 0),c([Object(n.property)({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],t.prototype,"preventScroll",void 0),Object(o.a)(r,t),t}}}]);
@@ -1,13 +1,98 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[50],{107:function(e,r,t){"use strict";t.r(r),t.d(r,"Breadcrumb",(function(){return a}));var a,n=t(5),s=t(6),o=t(0),c=o.css`:host(:focus){box-shadow:none;outline:0!important}:host(md-breadcrumb) .md-breadcrumb ul{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:flex-start;margin:0;padding:.5625rem .875rem .5625rem;list-style:none}:host(md-breadcrumb) .md-breadcrumb li{display:flex;text-transform:capitalize;font-size:.875rem}:host(md-breadcrumb) .md-breadcrumb li:not(:first-child)::before{display:flex;margin:0 .75rem;color:var(--breadcrumb-color-slash,#949494);content:"/"}:host(md-breadcrumb) .md-breadcrumb a{color:var(--breadcrumb-color,#00a0d1)}:host(md-breadcrumb) .md-breadcrumb a[aria-current=page]{pointer-events:none;cursor:default;color:var(--breadcrumb-color-current,#292929)}`,i=t(14),l=t(2),b=function(e,r,t,a){var n,s=arguments.length,o=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,r,t,a);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(o=(s<3?n(o):s>3?n(r,t,o):n(r,t))||o);return s>3&&o&&Object.defineProperty(r,t,o),o};!function(e){let r=class extends o.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[n.a,c]}setLastAnchorCurrent(){this.anchors&&this.anchors.length&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(e){super.firstUpdated(e),this.setLastAnchorCurrent()}update(e){super.update(e),e.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(e){const r=e.target;if(this.anchors&&this.anchors.length){const e=Array.from(this.anchors).indexOf(r);-1!==e&&(this.navCrumbs=[...this.navCrumbs.splice(0,e+1)])}}render(){return o.html`
2
- <nav aria-label="${Object(l.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
3
- <ul @click=${e=>this.handleClick(e)}>
4
- ${Object(i.repeat)(this.navCrumbs,e=>e.link,e=>o.html`
5
- <li>
6
- <a href="${e.link}">
7
- ${e.label}
8
- </a>
9
- </li>
10
- `)}
11
- </ul>
12
- </nav>
13
- `}};b([Object(o.property)({type:String,attribute:"aria-label"})],r.prototype,"label",void 0),b([Object(o.property)({type:Array,attribute:"nav-crumbs",reflect:!0})],r.prototype,"navCrumbs",void 0),b([Object(o.queryAll)("a[href]")],r.prototype,"anchors",void 0),r=b([Object(s.a)("md-breadcrumb")],r),e.ELEMENT=r}(a||(a={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[50],{107:function(e,t,i){"use strict";i.r(t),i.d(t,"playbackSpeeds",(function(){return p})),i.d(t,"defaultLabelMap",(function(){return c})),i.d(t,"AudioPlayer",(function(){return m}));i(16),i(13),i(41);var o=i(1),a=i(6),l=i(5),n=i(0),s=i(3),r=i(4),d=n.css`:host(md-audio-player){display:block}.md-audio-player{background:var(--audio-player-background-body,#ededed);box-shadow:inset 0 0 1.25rem rgba(176,176,176,.25);border-radius:1.875rem;height:3.75rem;color:var(--audio-player-font-color,#121212);flex-direction:column;justify-content:center;display:flex;padding:0 1.25rem;font-size:14px}.inner-container{display:flex;gap:.625rem;align-items:center;justify-items:center}.timeline-container{flex:1;z-index:0}.timeline-container md-tooltip{display:unset}md-button::part(button){vertical-align:text-bottom}md-button::part(button):focus::after{outline:0;box-shadow:none}md-button::part(button):focus-visible{box-shadow:0 0 0 .125rem var(--aido-player-focus-ring-color,#007aa3)}.timeline{background:var(--audio-player-background-timeline,#ccc);cursor:pointer;height:.375rem;width:100%;border-radius:.25rem;position:relative}.progress-bar{background:var(--audio-player-background-progress-bar,#3b3b3b);height:100%;width:0;transition:.25s;border-radius:.25rem;position:absolute;z-index:2}.buffer-bar{background:var(--audio-player-background-buffer-bar,#b2b2b2);height:100%;width:0;transition:.25s;border-radius:.25rem;position:absolute;top:0;opacity:.6}.text-container{display:flex;justify-content:space-between}.play-btn{cursor:pointer}.play-btn md-icon{vertical-align:sub}.volume-container{height:1.75rem;border-radius:1.875rem;display:flex;align-items:center;justify-content:center;transition:.25s}.volume-container md-icon{cursor:pointer}.volume-container:hover{background:var(--audio-player-background-body,#ededed);box-shadow:inset 0 0 1.25rem rgba(176,176,176,.25);padding:0 .9375rem}.volume-container:hover .volume{width:5rem;margin-right:.625rem}.volume{cursor:pointer;height:.375rem;width:0;overflow:hidden;border-radius:.625rem;transition:.25s;background:var(--audio-player-background-timeline,#ccc)}.volume-slider{background:var(--audio-player-background-progress-bar,#3b3b3b);height:100%;width:24%}.speed-icon-container{position:relative}#speed-btn{cursor:pointer}.speed-popup{display:none;position:absolute;z-index:1;bottom:-.375rem;right:4.75rem;height:100%;width:100%;justify-content:center;align-items:flex-end}.speed-popup.popup-open{display:flex}.speed-popup ul{list-style:none;padding:.375rem 0;text-align:left;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--audio-player-background-speed-popup,#fff);box-shadow:0 .25rem .5rem rgba(0,0,0,.2),0 0 .0625rem rgba(0,0,0,.12);border-radius:.5rem}.speed-popup ul li{padding:.125rem .75rem .125rem .75rem;color:var(--audio-player-font-color,#121212);width:10rem;height:1.875rem;cursor:pointer;transition:background .1s ease;display:inline-flex;justify-content:space-between;align-items:center}.speed-popup ul li:hover{background:var(--audio-player-background-speed-popup-hover,#f7f7f7)}.speed-popup-selected-speed{background:var(--audio-player-background-speed-popup-hover,#f7f7f7)}@media(forced-colors:active){.md-audio-player{outline:1px solid transparent!important}.buffer-bar{forced-color-adjust:none;opacity:.3;background-color:GrayText}.progress-bar{forced-color-adjust:none;background-color:Highlight}.volume{forced-color-adjust:none;background-color:HighlightText;outline:1px solid Highlight;outline-offset:-1px}.volume-slider{forced-color-adjust:none;background-color:Highlight}.speed-popup ul{outline:1px solid Highlight}.speed-popup ul li:hover{forced-color-adjust:none;color:Canvas;background:Highlight}#speed-popup-menu>.speed-popup-selected-speed{forced-color-adjust:none;color:Canvas;background:Highlight}}`,u=function(e,t,i,o){var a,l=arguments.length,n=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(l<3?a(n):l>3?a(t,i,n):a(t,i))||n);return l>3&&n&&Object.defineProperty(t,i,n),n};const p=[{value:.25,label:"0.25"},{value:.5,label:"0.50"},{value:.75,label:"0.75"},{value:1,label:"Normal"},{value:1.25,label:"1.25"},{value:1.5,label:"1.50"},{value:1.75,label:"1.75"},{value:2,label:"2"}],c={playBtn:{ariaLabel:"Play",tooltipText:"Play"},pauseBtn:{ariaLabel:"Pause",tooltipText:"Pause"},duration:{ariaLabel:"Duration:",tooltipText:"Duration"},timeline:{ariaLabel:"Audio Seekbar",tooltipText:"Audio Seekbar"},volumeBtn:{ariaLabel:"Mute / Unmute Audio",tooltipText:"Mute / Unmute"},volumeSlider:{ariaLabel:"Volume level",tooltipText:"Volume level"},playbackSpeedBtn:{ariaLabel:"Playback speed",tooltipText:"Playback speed"}};var m;!function(e){let t=class extends n.LitElement{constructor(){super(),this.src="",this.events=[],this.isPlaying=!1,this.isMuted=!1,this.duration=0,this.volume=100,this.currentTime=0,this.showSpeedPopup=!1,this.playbackSpeed=1,this.volumeExpanded=!1,this.bufferedRange=0,this.selectedPlaybackSpeed=this.playbackSpeed,this.currentlySelectingPlaybackSpeed=!1,this.onOutsideClick=e=>{let t=!1;const i=e.composedPath();i.length&&(t=!!i.find(e=>"speed-btn"===e.id),t||(this.showSpeedPopup=!1))},this.handleKeyDown=e=>{const{code:t}=e;switch(t){case o.b.ArrowLeft:this.volumeExpanded?this.setVolumeKeydown(this.volume-.01):this.setTimeKeydown(this.currentTime-1);break;case o.b.ArrowRight:this.volumeExpanded?this.setVolumeKeydown(this.volume+.01):this.setTimeKeydown(this.currentTime+1);break;case o.b.ArrowUp:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const t=p.findIndex(e=>e.value===this.selectedPlaybackSpeed),i=Math.max(0,t-1);this.selectedPlaybackSpeed=p[i].value,e.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case o.b.ArrowDown:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const t=p.findIndex(e=>e.value===this.selectedPlaybackSpeed),i=Math.min(p.length-1,t+1);this.selectedPlaybackSpeed=p[i].value,e.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case o.b.Enter:this.showSpeedPopup&&(this.setPlaybackSpeed(this.selectedPlaybackSpeed),e.preventDefault())}},this.audio=new Audio,this.setAudioEventListeners(),this.labelMap=c}firstUpdated(e){super.firstUpdated(e),e.has("src")&&(this.audio.src=this.src)}updated(e){super.updated(e),e.has("src")&&(this.audio.src=this.src)}connectedCallback(){super.connectedCallback(),this.requestUpdate("src"),document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.handleKeyDown),this.audio.pause(),this.isPlaying=!1}setAudioEventListeners(){this.audio.onloadeddata=()=>{this.duration=this.audio.duration,this.audio.volume=.75},this.audio.onerror=()=>{this.audio.src&&this.dispatchEvent(new CustomEvent("playback-error",{composed:!0,bubbles:!0}))},this.audio.onended=()=>{this.audio.currentTime=0,this.isPlaying=!1},this.audio.ontimeupdate=()=>{this.currentTime=this.audio.currentTime},this.audio.onvolumechange=()=>{this.volume=this.audio.volume},this.audio.onprogress=()=>{this.audio.buffered.length>0&&(this.bufferedRange=this.audio.buffered.end(this.audio.buffered.length-1))}}togglePlay(){this.isPlaying=!this.isPlaying,this.isPlaying?(this.audio.play(),this.dispatchEvent(new CustomEvent("play-clicked",{composed:!0,bubbles:!0}))):this.audio.pause()}toTimecode(e){const t=Math.floor(e);return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}setTime(e){const t=this.getBarPercentage(e,"timeline"),i=Math.floor(t*this.duration);this.audio.currentTime=i}setVolumeElement(e){this.volumeElement="volume"===e.target.className?e.target:e.target.parentElement}handleVolumeChange(e){let t=!1;this.setVolumeElement(e),this.setVolume(e);const i=e=>{t||(t=!0),this.volumeExpanded?this.setVolume(e):a()},o=()=>{a()},a=()=>{t=!1,window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",o)};window.addEventListener("mousemove",i),window.addEventListener("mouseup",o),e.preventDefault()}getVolumeFromSlider(e){if(null===this.volumeElement)return 0;const t=this.volumeElement.getBoundingClientRect(),i=e.clientX-t.x;return Math.max(0,Math.min(1,i/t.width))}setVolume(e){const t=this.getVolumeFromSlider(e);this.audio.volume=t}getBarPercentage(e,t){const i=(e.target.className===t?e.target:e.target.parentElement).getBoundingClientRect();return(e.clientX-i.x)/i.width}toggleSoundMute(){this.isMuted=!this.isMuted,this.audio.muted=this.isMuted}toggleSpeedPopup(){this.showSpeedPopup=!this.showSpeedPopup}setTimeKeydown(e){e>this.duration?(this.currentTime=this.duration,this.audio.currentTime=this.duration):e<0?(this.currentTime=0,this.audio.currentTime=0):(this.currentTime=e,this.audio.currentTime=e)}setVolumeKeydown(e){e>1?(this.volume=1,this.audio.volume=1):e<0?(this.isMuted||this.toggleSoundMute(),this.volume=0,this.audio.volume=0):(this.isMuted&&this.toggleSoundMute(),this.volume=e,this.audio.volume=e)}get popupClassMap(){return{"popup-open":this.showSpeedPopup}}setPlaybackSpeed(e){this.playbackSpeed=e,this.audio.playbackRate=this.playbackSpeed,this.showSpeedPopup=!1}toggleVolumeExpand(e){this.volumeExpanded=e}static get styles(){return[l.a,d]}render(){return n.html`
2
+ <div class="md-audio-player">
3
+ <div class="inner-container">
4
+ <div class="play-container">
5
+ <md-tooltip
6
+ placement="top"
7
+ message="${this.isPlaying?this.labelMap.pauseBtn.tooltipText:this.labelMap.playBtn.tooltipText}"
8
+ >
9
+ <md-button
10
+ hasRemoveStyle
11
+ class="play-btn"
12
+ @click="${this.togglePlay}"
13
+ aria-label="${this.isPlaying?this.labelMap.pauseBtn.ariaLabel:this.labelMap.playBtn.ariaLabel}"
14
+ >
15
+ ${this.isPlaying?n.html` <md-icon slot="icon" name="pause-bold" size="16" iconSet="momentumDesign"></md-icon> `:n.html` <md-icon slot="icon" name="play-bold" size="16" iconSet="momentumDesign"></md-icon> `}
16
+ </md-button>
17
+ </md-tooltip>
18
+ </div>
19
+ <div class="text-container">
20
+ <md-tooltip placement="top" message="${this.labelMap.duration.tooltipText}">
21
+ <span
22
+ class="duration"
23
+ aria-label="${this.labelMap.duration.ariaLabel} ${this.toTimecode(this.currentTime)}/${this.toTimecode(this.duration)}"
24
+ >
25
+ ${this.toTimecode(this.currentTime)} / ${this.toTimecode(this.duration)}
26
+ </span>
27
+ </md-tooltip>
28
+ </div>
29
+ <div class="timeline-container">
30
+ <md-tooltip placement="top" message="${this.labelMap.timeline.tooltipText}">
31
+ <div class="timeline" @click="${this.setTime}" aria-label="${this.labelMap.timeline.ariaLabel}">
32
+ <div class="progress-bar" style="width: ${this.currentTime/this.duration*100}%"></div>
33
+ <div class="buffer-bar" style="width: ${this.bufferedRange/this.duration*100}%"></div>
34
+ </div>
35
+ </md-tooltip>
36
+ </div>
37
+ <div
38
+ class="volume-container"
39
+ @mouseleave="${()=>this.toggleVolumeExpand(!1)}"
40
+ @mouseenter="${()=>this.toggleVolumeExpand(!0)}"
41
+ aria-label="${this.labelMap.volumeSlider.ariaLabel}"
42
+ >
43
+ <md-tooltip
44
+ placement="top"
45
+ message="${this.labelMap.volumeSlider.tooltipText} ${Math.trunc(100*this.volume)}%"
46
+ >
47
+ <div
48
+ class="volume"
49
+ @mousedown="${this.handleVolumeChange}"
50
+ aria-label="${this.labelMap.volumeSlider.ariaLabel} ${Math.trunc(100*this.volume)}%"
51
+ >
52
+ <div class="volume-slider" style="width: ${this.isMuted?0:100*this.volume}%"></div>
53
+ </div>
54
+ </md-tooltip>
55
+ <md-tooltip placement="top" message="${this.labelMap.volumeBtn.tooltipText}">
56
+ <md-button
57
+ hasRemoveStyle
58
+ class="volume-btn"
59
+ aria-label="${this.labelMap.volumeBtn.ariaLabel}"
60
+ @click="${this.toggleSoundMute}"
61
+ >
62
+ ${this.isMuted?n.html`
63
+ <md-icon slot="icon" name="speaker-muted-bold" size="16" iconSet="momentumDesign"></md-icon>
64
+ `:n.html` <md-icon slot="icon" name="speaker-bold" size="16" iconSet="momentumDesign"></md-icon> `}
65
+ </md-button>
66
+ </md-tooltip>
67
+ </div>
68
+ <div class="speed-icon-container" aria-label="${this.labelMap.playbackSpeedBtn.ariaLabel}">
69
+ <md-tooltip placement="top" message="${this.labelMap.playbackSpeedBtn.tooltipText}">
70
+ <md-button hasRemoveStyle id="speed-btn" @click="${this.toggleSpeedPopup}">
71
+ <md-icon slot="icon" name="too-fast-bold" size="16" iconSet="momentumDesign"></md-icon>
72
+ </md-button>
73
+ </md-tooltip>
74
+ <div class="speed-popup ${Object(r.classMap)(this.popupClassMap)}">
75
+ <ul id="speed-popup-menu">
76
+ ${p.map(e=>{const t=this.selectedPlaybackSpeed==e.value&&!this.currentlySelectingPlaybackSpeed;return n.html`
77
+ <li
78
+ class=${t?"speed-popup-selected-speed":""}
79
+ @click="${()=>this.setPlaybackSpeed(e.value)}"
80
+ >
81
+ <span>${e.label}</span>
82
+ ${this.playbackSpeed==e.value?n.html`
83
+ <md-icon
84
+ slot="icon"
85
+ color="md-blue-60"
86
+ name="check-bold"
87
+ size="16"
88
+ iconSet="momentumDesign"
89
+ ></md-icon>
90
+ `:s.nothing}
91
+ </li>
92
+ `})}
93
+ </ul>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ `}};u([Object(n.property)({type:String})],t.prototype,"src",void 0),u([Object(n.property)({type:Object})],t.prototype,"labelMap",void 0),u([Object(n.internalProperty)()],t.prototype,"events",void 0),u([Object(n.internalProperty)()],t.prototype,"audio",void 0),u([Object(n.internalProperty)()],t.prototype,"volumeElement",void 0),u([Object(n.internalProperty)()],t.prototype,"isPlaying",void 0),u([Object(n.internalProperty)()],t.prototype,"isMuted",void 0),u([Object(n.internalProperty)()],t.prototype,"duration",void 0),u([Object(n.internalProperty)()],t.prototype,"volume",void 0),u([Object(n.internalProperty)()],t.prototype,"currentTime",void 0),u([Object(n.internalProperty)()],t.prototype,"showSpeedPopup",void 0),u([Object(n.internalProperty)()],t.prototype,"playbackSpeed",void 0),u([Object(n.internalProperty)()],t.prototype,"volumeExpanded",void 0),u([Object(n.internalProperty)()],t.prototype,"bufferedRange",void 0),u([Object(n.internalProperty)()],t.prototype,"selectedPlaybackSpeed",void 0),u([Object(n.internalProperty)()],t.prototype,"currentlySelectingPlaybackSpeed",void 0),t=u([Object(a.a)("md-audio-player")],t),e.ELEMENT=t}(m||(m={}))}}]);
@@ -1,5 +1,11 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[51],{108:function(t,e,o){"use strict";o.r(e),o.d(e,"ButtonGroup",(function(){return s}));var s,n=o(1),r=o(7),i=o(5),d=o(0),l=d.css`:host(:focus){box-shadow:none;outline:0!important}:host(md-button-group){display:flex}:host(md-button-group) .md-button-group{align-content:flex-start;align-items:center;display:inline-flex;flex-flow:row nowrap;justify-content:flex-start;background:var(--button-group-bg-color,#dedede);border-radius:var(--button-group-border-radius,.25rem);font-size:12px;padding:var(--button-group-indent,.125rem);transition:background .2s ease;border:1px solid var(--button-group-outline-border)}:host(md-button-group) .md-button-group:hover{background:var(--button-group-bg-color-hover,#ccc)}:host(md-button-group) .md-button-group:active{background:var(--button-group-bg-color-pressed,#b2b2b2)}:host(md-button-group) .md-button-group ::slotted(button){align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;background:0 0;border:0;border-radius:var(--button-group-border-radius,.25rem);color:var(--button-group-color,#545454);cursor:pointer;height:1.875rem;margin:0 var(--button-group-indent,.125rem);outline:0;padding:.25rem .75rem}:host(md-button-group) .md-button-group ::slotted(button):first-child{margin-left:0}:host(md-button-group) .md-button-group ::slotted(button):last-child{margin-right:0}:host(md-button-group) .md-button-group ::slotted(:hover){background:var(--button-group-color-hover,none);color:var(--button-group-color-active,#121212)}:host(md-button-group) .md-button-group ::slotted([selected]){background:var(--button-group-bg-color-active,#fff);box-shadow:0 2px 4px rgba(0,0,0,.1),0 0 1px rgba(0,0,0,.18);color:var(--button-group-color-active,#121212)}:host([focus-visible]:not([disabled])) .md-button-group{box-shadow:0 0 0 .125rem var(--md-default-focus-outline-color,#005e7d)}:host([disabled]) .md-button-group{opacity:.5;pointer-events:none}@media(forced-colors:active){:host(md-button-group) .md-button-group{outline:1px solid CanvasText;background:Canvas}:host(md-button-group) .md-button-group ::slotted([selected]){forced-color-adjust:none;outline:1px solid Highlight;background:Highlight;color:HighlightText}:host([focus-visible]:not([disabled])) .md-button-group{outline:2px solid Highlight}}`,u=function(t,e,o,s){var n,r=arguments.length,i=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,s);else for(var d=t.length-1;d>=0;d--)(n=t[d])&&(i=(r<3?n(i):r>3?n(e,o,i):n(e,o))||i);return r>3&&i&&Object.defineProperty(e,o,i),i};!function(t){let e=class extends(Object(r.e)(Object(r.a)(d.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",""+t),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[i.a,l]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach(t=>t.tabIndex=-1)}updated(t){super.updated(t),t.has("slotted")&&(this.setButtonTabIndex(),this.setFirstActive())}get selectedBtnValue(){return this.slotted[this.active].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("button-group-change",{detail:{selected:this.selectedBtnValue},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}setSelected(t){var e,o;const s=this.findSelectedBtnIndex();-1!==s&&s!==t&&(null===(e=this.slotted[s])||void 0===e||e.toggleAttribute("selected",!1)),null===(o=this.slotted[t])||void 0===o||o.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}findSelectedBtnIndex(){return this.slotted.findIndex(t=>t.hasAttribute("selected"))}isBtnDisabled(t){return this.slotted[t].disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}switchBtnOnArrowPress(t,e=1){const o=this.getAvailableSelectedIndex(t,e);-1!==o&&(this.active=o,this.setSelected(o),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const o=this.slotted.length;for(let s=0,n=t;s<o;s+=1,n+=e){n<0?n=o-1:n>=o&&(n=0);const t=this.slotted[n];if(this.isFocusable(t))return n}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case n.b.Enter:case n.b.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case n.b.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case n.b.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return d.html`
2
- <div role="group" class="md-button-group" part="button-group">
3
- <slot name="button"></slot>
4
- </div>
5
- `}};u([Object(d.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),u([Object(d.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),u([Object(d.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),u([Object(d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=u([Object(r.f)("md-button-group")],e),t.ELEMENT=e}(s||(s={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[51],{108:function(e,r,t){"use strict";t.r(r),t.d(r,"Breadcrumb",(function(){return a}));var a,n=t(5),s=t(6),o=t(0),c=o.css`:host(:focus){box-shadow:none;outline:0!important}:host(md-breadcrumb) .md-breadcrumb ul{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:flex-start;margin:0;padding:.5625rem .875rem .5625rem;list-style:none}:host(md-breadcrumb) .md-breadcrumb li{display:flex;text-transform:capitalize;font-size:.875rem}:host(md-breadcrumb) .md-breadcrumb li:not(:first-child)::before{display:flex;margin:0 .75rem;color:var(--breadcrumb-color-slash,#949494);content:"/"}:host(md-breadcrumb) .md-breadcrumb a{color:var(--breadcrumb-color,#00a0d1)}:host(md-breadcrumb) .md-breadcrumb a[aria-current=page]{pointer-events:none;cursor:default;color:var(--breadcrumb-color-current,#292929)}`,i=t(15),l=t(2),b=function(e,r,t,a){var n,s=arguments.length,o=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,r,t,a);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(o=(s<3?n(o):s>3?n(r,t,o):n(r,t))||o);return s>3&&o&&Object.defineProperty(r,t,o),o};!function(e){let r=class extends o.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[n.a,c]}setLastAnchorCurrent(){this.anchors&&this.anchors.length&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(e){super.firstUpdated(e),this.setLastAnchorCurrent()}update(e){super.update(e),e.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(e){const r=e.target;if(this.anchors&&this.anchors.length){const e=Array.from(this.anchors).indexOf(r);-1!==e&&(this.navCrumbs=[...this.navCrumbs.splice(0,e+1)])}}render(){return o.html`
2
+ <nav aria-label="${Object(l.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
3
+ <ul @click=${e=>this.handleClick(e)}>
4
+ ${Object(i.repeat)(this.navCrumbs,e=>e.link,e=>o.html`
5
+ <li>
6
+ <a href="${e.link}"> ${e.label} </a>
7
+ </li>
8
+ `)}
9
+ </ul>
10
+ </nav>
11
+ `}};b([Object(o.property)({type:String,attribute:"aria-label"})],r.prototype,"label",void 0),b([Object(o.property)({type:Array,attribute:"nav-crumbs",reflect:!0})],r.prototype,"navCrumbs",void 0),b([Object(o.queryAll)("a[href]")],r.prototype,"anchors",void 0),r=b([Object(s.a)("md-breadcrumb")],r),e.ELEMENT=r}(a||(a={}))}}]);
@@ -1,68 +1,5 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[52],{109:function(e,t,d){"use strict";d.r(t),d.d(t,"Card",(function(){return r}));d(18),d(78),d(15),d(69),d(70);var r,o=d(6),a=d(5),i=d(0),n=d(3),c=d(14),s=d(1),m=i.css`:host(md-card){display:inline-block}:host(md-card) .md-card{align-content:center;align-items:stretch;display:flex;flex-flow:column nowrap;justify-content:flex-start;background:var(--md-tertiary-white-bg-color);border:var(--md-quaternary-bg-color);border-radius:.5rem;box-shadow:0 .125rem .25rem rgba(0,0,0,.16),0 0 .0625rem rgba(0,0,0,.16);color:var(--md-secondary-text-color);cursor:pointer;max-width:26.5rem;padding:calc(.5rem*2);position:relative;width:100%}:host(md-card) .md-card-header{align-content:flex-start;align-items:flex-start;display:flex;flex-flow:row nowrap;justify-content:space-between;flex:1 0 100%;margin-bottom:.5rem}:host(md-card) .md-card-header md-favorite{padding-top:calc(.5rem*.5)}:host(md-card) .md-card-header-title{display:flex;flex:1 1 100%;flex-direction:column;margin:0 .5rem}:host(md-card) .md-card-header-title h1{color:var(--md-primary-text-color);font-family:var(--brand-font-medium, "CiscoSans-Medium", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:16px;line-height:calc(.5rem*3);margin:0}:host(md-card) .md-card-header-title h2{color:var(--md-secondary-text-color);font-size:12px;line-height:calc(.5rem*2.25)}:host(md-card) .md-card-header-actions{align-self:stretch;display:inline-flex;position:relative;z-index:1}:host(md-card) .md-card-header-actions .md-card-info-icon,:host(md-card) .md-card-header-actions .md-card-max-icon{padding-right:.5rem}:host(md-card) .md-card-header-actions md-menu-overlay::part(overlay-content){max-width:9rem}:host(md-card) .md-card .md-card-menu-icon{border-radius:calc(.5rem/2);display:inline-flex}:host(md-card) .md-card .md-card-menu-icon::part(button){padding:calc(.5rem*.25)}:host(md-card) .md-card .md-card-menu-icon:hover{background-color:var(--md-tertiary-bg-color)}:host(md-card) .md-card .md-card-menu-icon:active{background-color:var(--md-quaternary-bg-color)}:host(md-card) .md-card .md-card-menu-list-items{padding:calc(.5rem*.25)}:host(md-card) .md-card-content{background:var(--md-secondary-bg-color);border:var(--md-quaternary-bg-color);border-radius:calc(.5rem/2);height:14rem;margin-bottom:calc(.5rem*2);overflow:hidden}:host(md-card) .md-card.full-screen{display:inline-block;height:100%!important;left:0;max-width:100%;position:absolute;top:0;width:100%}:host(md-card) .md-card.full-screen .md-card-content{height:auto}:host(md-card) .md-card-footer{display:flex;flex-wrap:wrap;gap:.5rem}@media(forced-colors:active){:host(md-card) .md-card{box-shadow:none;outline:1px solid CanvasText}:host(md-card) .md-card:focus{outline:2px solid Highlight}:host(md-card) .md-card-header md-favorite{color:windowText}}`,l=function(e,t,d,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,d):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,d,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(i=(a<3?o(i):a>3?o(t,d,i):o(t,d))||i);return a>3&&i&&Object.defineProperty(t,d,i),i};!function(e){let t=class extends i.LitElement{constructor(){super(...arguments),this.title="title",this.subtitle="",this.id="",this.info="",this.infoAriaLabel="Card Info",this.menuAriaLabel="Card Menu",this.menuOptions=[]}static get styles(){return[a.a,m]}handleCardClick(e){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(e){e.code!==s.b.Enter&&e.code!==s.b.Space||this.dispatchEvent(new CustomEvent("card-keydown",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardMenuEvent(e,t){e.stopPropagation();const d=t.toLowerCase();this.dispatchEvent(new CustomEvent("card-menu-click",{detail:{id:this.id,type:d},bubbles:!0,composed:!0}))}handleCardMenuKeyDown(e,t){e.preventDefault(),this.dispatchEvent(new CustomEvent("card-menu-keydown",{detail:{id:this.id,type:t.toLowerCase(),keyCode:e.code},bubbles:!0,composed:!0}))}render(){return i.html`
2
- <div
3
- class="md-card"
4
- id="${this.id}"
5
- part="card"
6
- tabindex="0"
7
- @click=${e=>this.handleCardClick(e)}
8
- @keydown=${e=>this.handleCardKeyDown(e)}
9
- >
10
- <div class="md-card-header">
11
- <slot name="card-header-aside">
12
- <md-favorite value="${"card-"+this.id}"></md-favorite>
13
- </slot>
14
- <div class="md-card-header-title">
15
- <slot name="card-header-title">
16
- <h1>${this.title}</h1>
17
- <h2>${this.subtitle}</h2>
18
- </slot>
19
- </div>
20
- <div class="md-card-header-actions">
21
- ${this.info?i.html`
22
- <md-tooltip message="${this.info}" placement="bottom">
23
- <md-button
24
- ariaLabel="${this.infoAriaLabel}"
25
- class="md-card-info-icon"
26
- color="color-none"
27
- size="size-none"
28
- >
29
- <md-icon slot="icon" name="info_16"></md-icon>
30
- </md-button>
31
- </md-tooltip>
32
- `:n.nothing}
33
- ${this.menuOptions.length?i.html`
34
- <md-menu-overlay class="md-card-menu" placement="bottom-start">
35
- <md-button
36
- ariaLabel="${this.menuAriaLabel}"
37
- class="md-card-menu-icon"
38
- color="color-none"
39
- size="size-none"
40
- slot="menu-trigger"
41
- >
42
- <md-icon slot="icon" name="more-adr_16"></md-icon>
43
- </md-button>
44
- <div class="md-card-menu-list-items" style="width: 100%;">
45
- <md-list>
46
- ${Object(c.repeat)(this.menuOptions,(e,t)=>i.html`
47
- <md-list-item
48
- class="${"menu-item-"+t}"
49
- slot="list-item"
50
- @click=${t=>this.handleCardMenuEvent(t,e)}
51
- @keydown=${t=>this.handleCardMenuKeyDown(t,e)}
52
- >${e}</md-list-item
53
- >
54
- `)}
55
- </md-list>
56
- </div>
57
- </md-menu-overlay>
58
- `:n.nothing}
59
- </div>
60
- </div>
61
- <div class="md-card-content">
62
- <slot name="content"></slot>
63
- </div>
64
- <div class="md-card-footer">
65
- <slot name="footer"> </slot>
66
- </div>
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[52],{109:function(t,e,o){"use strict";o.r(e),o.d(e,"ButtonGroup",(function(){return s}));var s,n=o(1),r=o(7),i=o(5),d=o(0),l=d.css`:host(:focus){box-shadow:none;outline:0!important}:host(md-button-group){display:flex}:host(md-button-group) .md-button-group{align-content:flex-start;align-items:center;display:inline-flex;flex-flow:row nowrap;justify-content:flex-start;background:var(--button-group-bg-color,#dedede);border-radius:var(--button-group-border-radius,.25rem);font-size:12px;padding:var(--button-group-indent,.125rem);transition:background .2s ease;border:1px solid var(--button-group-outline-border)}:host(md-button-group) .md-button-group:hover{background:var(--button-group-bg-color-hover,#ccc)}:host(md-button-group) .md-button-group:active{background:var(--button-group-bg-color-pressed,#b2b2b2)}:host(md-button-group) .md-button-group ::slotted(button){align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;background:0 0;border:0;border-radius:var(--button-group-border-radius,.25rem);color:var(--button-group-color,#545454);cursor:pointer;height:1.875rem;margin:0 var(--button-group-indent,.125rem);outline:0;padding:.25rem .75rem}:host(md-button-group) .md-button-group ::slotted(button):first-child{margin-left:0}:host(md-button-group) .md-button-group ::slotted(button):last-child{margin-right:0}:host(md-button-group) .md-button-group ::slotted(:hover){background:var(--button-group-color-hover,none);color:var(--button-group-color-active,#121212)}:host(md-button-group) .md-button-group ::slotted([selected]){background:var(--button-group-bg-color-active,#fff);box-shadow:0 2px 4px rgba(0,0,0,.1),0 0 1px rgba(0,0,0,.18);color:var(--button-group-color-active,#121212)}:host([focus-visible]:not([disabled])) .md-button-group{box-shadow:0 0 0 .125rem var(--md-default-focus-outline-color,#005e7d)}:host([disabled]) .md-button-group{opacity:.5;pointer-events:none}@media(forced-colors:active){:host(md-button-group) .md-button-group{outline:1px solid CanvasText;background:Canvas}:host(md-button-group) .md-button-group ::slotted([selected]){forced-color-adjust:none;outline:1px solid Highlight;background:Highlight;color:HighlightText}:host([focus-visible]:not([disabled])) .md-button-group{outline:2px solid Highlight}}`,u=function(t,e,o,s){var n,r=arguments.length,i=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,s);else for(var d=t.length-1;d>=0;d--)(n=t[d])&&(i=(r<3?n(i):r>3?n(e,o,i):n(e,o))||i);return r>3&&i&&Object.defineProperty(e,o,i),i};!function(t){let e=class extends(Object(r.e)(Object(r.a)(d.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",""+t),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[i.a,l]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach(t=>t.tabIndex=-1)}updated(t){super.updated(t),t.has("slotted")&&(this.setButtonTabIndex(),this.setFirstActive())}get selectedBtnValue(){return this.slotted[this.active].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("button-group-change",{detail:{selected:this.selectedBtnValue},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}setSelected(t){var e,o;const s=this.findSelectedBtnIndex();-1!==s&&s!==t&&(null===(e=this.slotted[s])||void 0===e||e.toggleAttribute("selected",!1)),null===(o=this.slotted[t])||void 0===o||o.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}findSelectedBtnIndex(){return this.slotted.findIndex(t=>t.hasAttribute("selected"))}isBtnDisabled(t){return this.slotted[t].disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}switchBtnOnArrowPress(t,e=1){const o=this.getAvailableSelectedIndex(t,e);-1!==o&&(this.active=o,this.setSelected(o),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const o=this.slotted.length;for(let s=0,n=t;s<o;s+=1,n+=e){n<0?n=o-1:n>=o&&(n=0);const t=this.slotted[n];if(this.isFocusable(t))return n}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case n.b.Enter:case n.b.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case n.b.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case n.b.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return d.html`
2
+ <div role="group" class="md-button-group" part="button-group">
3
+ <slot name="button"></slot>
67
4
  </div>
68
- `}};l([Object(i.property)({type:String})],t.prototype,"title",void 0),l([Object(i.property)({type:String})],t.prototype,"subtitle",void 0),l([Object(i.property)({type:String})],t.prototype,"id",void 0),l([Object(i.property)({type:String})],t.prototype,"info",void 0),l([Object(i.property)({type:String,attribute:"info-aria-label"})],t.prototype,"infoAriaLabel",void 0),l([Object(i.property)({type:String,attribute:"menu-aria-label"})],t.prototype,"menuAriaLabel",void 0),l([Object(i.property)({type:Array})],t.prototype,"menuOptions",void 0),t=l([Object(o.a)("md-card")],t),e.ELEMENT=t}(r||(r={}))}}]);
5
+ `}};u([Object(d.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),u([Object(d.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),u([Object(d.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),u([Object(d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=u([Object(r.f)("md-button-group")],e),t.ELEMENT=e}(s||(s={}))}}]);