@momentum-ui/web-components 2.6.7 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (344) hide show
  1. package/dist/chunks/md-100.js +1 -1
  2. package/dist/chunks/md-101.js +1 -1
  3. package/dist/chunks/md-102.js +1 -1
  4. package/dist/chunks/md-103.js +1 -1
  5. package/dist/chunks/md-104.js +1 -1
  6. package/dist/chunks/md-105.js +1 -1
  7. package/dist/chunks/md-106.js +1 -1
  8. package/dist/chunks/md-107.js +1 -1
  9. package/dist/chunks/md-108.js +1 -1
  10. package/dist/chunks/md-109.js +1 -1
  11. package/dist/chunks/md-110.js +1 -1
  12. package/dist/chunks/md-111.js +1 -1
  13. package/dist/chunks/md-112.js +1 -1
  14. package/dist/chunks/md-113.js +1 -1
  15. package/dist/chunks/md-114.js +1 -1
  16. package/dist/chunks/md-115.js +1 -1
  17. package/dist/chunks/md-116.js +1 -1
  18. package/dist/chunks/md-117.js +1 -1
  19. package/dist/chunks/md-118.js +1 -1
  20. package/dist/chunks/md-119.js +1 -1
  21. package/dist/chunks/md-120.js +1 -1
  22. package/dist/chunks/md-121.js +1 -1
  23. package/dist/chunks/md-122.js +1 -1
  24. package/dist/chunks/md-123.js +1 -1
  25. package/dist/chunks/md-124.js +1 -1
  26. package/dist/chunks/md-125.js +1 -1
  27. package/dist/chunks/md-126.js +1 -1
  28. package/dist/chunks/md-127.js +1 -1
  29. package/dist/chunks/md-128.js +1 -1
  30. package/dist/chunks/md-129.js +1 -1
  31. package/dist/chunks/md-130.js +1 -1
  32. package/dist/chunks/md-131.js +1 -1
  33. package/dist/chunks/md-132.js +1 -1
  34. package/dist/chunks/md-133.js +1 -1
  35. package/dist/chunks/md-134.js +1 -1
  36. package/dist/chunks/md-135.js +1 -1
  37. package/dist/chunks/md-136.js +1 -1
  38. package/dist/chunks/md-137.js +1 -1
  39. package/dist/chunks/md-138.js +1 -1
  40. package/dist/chunks/md-139.js +1 -1
  41. package/dist/chunks/md-140.js +1 -1
  42. package/dist/chunks/md-141.js +1 -1
  43. package/dist/chunks/md-142.js +1 -1
  44. package/dist/chunks/md-143.js +1 -1
  45. package/dist/chunks/md-144.js +1 -1
  46. package/dist/chunks/md-145.js +1 -1
  47. package/dist/chunks/md-146.js +1 -1
  48. package/dist/chunks/md-147.js +1 -1
  49. package/dist/chunks/md-148.js +1 -1
  50. package/dist/chunks/md-149.js +1 -1
  51. package/dist/chunks/md-150.js +1 -1
  52. package/dist/chunks/md-151.js +1 -1
  53. package/dist/chunks/md-152.js +1 -1
  54. package/dist/chunks/md-153.js +1 -1
  55. package/dist/chunks/md-154.js +1 -1
  56. package/dist/chunks/md-155.js +1 -1
  57. package/dist/chunks/md-156.js +1 -1
  58. package/dist/chunks/md-157.js +1 -1
  59. package/dist/chunks/md-158.js +1 -1
  60. package/dist/chunks/md-159.js +1 -1
  61. package/dist/chunks/md-160.js +1 -1
  62. package/dist/chunks/md-161.js +1 -1
  63. package/dist/chunks/md-162.js +1 -1
  64. package/dist/chunks/md-163.js +1 -1
  65. package/dist/chunks/md-164.js +1 -1
  66. package/dist/chunks/md-165.js +1 -1
  67. package/dist/chunks/md-166.js +1 -1
  68. package/dist/chunks/md-167.js +1 -1
  69. package/dist/chunks/md-168.js +1 -1
  70. package/dist/chunks/md-169.js +1 -1
  71. package/dist/chunks/md-170.js +1 -1
  72. package/dist/chunks/md-171.js +1 -1
  73. package/dist/chunks/md-172.js +1 -1
  74. package/dist/chunks/md-173.js +1 -1
  75. package/dist/chunks/md-174.js +1 -1
  76. package/dist/chunks/md-175.js +1 -1
  77. package/dist/chunks/md-176.js +1 -1
  78. package/dist/chunks/md-177.js +1 -1
  79. package/dist/chunks/md-178.js +1 -1
  80. package/dist/chunks/md-179.js +1 -1
  81. package/dist/chunks/md-180.js +1 -1
  82. package/dist/chunks/md-181.js +1 -1
  83. package/dist/chunks/md-182.js +1 -1
  84. package/dist/chunks/md-183.js +1 -1
  85. package/dist/chunks/md-184.js +1 -1
  86. package/dist/chunks/md-185.js +1 -1
  87. package/dist/chunks/md-186.js +1 -1
  88. package/dist/chunks/md-187.js +1 -1
  89. package/dist/chunks/md-188.js +1 -1
  90. package/dist/chunks/md-189.js +1 -1
  91. package/dist/chunks/md-190.js +1 -1
  92. package/dist/chunks/md-191.js +1 -1
  93. package/dist/chunks/md-192.js +1 -1
  94. package/dist/chunks/md-193.js +1 -1
  95. package/dist/chunks/md-194.js +1 -1
  96. package/dist/chunks/md-195.js +1 -1
  97. package/dist/chunks/md-196.js +1 -1
  98. package/dist/chunks/md-197.js +1 -1
  99. package/dist/chunks/md-198.js +1 -1
  100. package/dist/chunks/md-199.js +1 -1
  101. package/dist/chunks/md-200.js +1 -1
  102. package/dist/chunks/md-201.js +1 -1
  103. package/dist/chunks/md-202.js +1 -1
  104. package/dist/chunks/md-203.js +1 -1
  105. package/dist/chunks/md-204.js +1 -1
  106. package/dist/chunks/md-205.js +1 -1
  107. package/dist/chunks/md-206.js +1 -1
  108. package/dist/chunks/md-207.js +1 -1
  109. package/dist/chunks/md-208.js +1 -1
  110. package/dist/chunks/md-209.js +1 -1
  111. package/dist/chunks/md-210.js +1 -1
  112. package/dist/chunks/md-211.js +1 -1
  113. package/dist/chunks/md-212.js +1 -1
  114. package/dist/chunks/md-213.js +1 -1
  115. package/dist/chunks/md-214.js +1 -1
  116. package/dist/chunks/md-215.js +1 -1
  117. package/dist/chunks/md-216.js +1 -1
  118. package/dist/chunks/md-217.js +1 -1
  119. package/dist/chunks/md-218.js +1 -1
  120. package/dist/chunks/md-219.js +1 -1
  121. package/dist/chunks/md-220.js +1 -1
  122. package/dist/chunks/md-221.js +1 -1
  123. package/dist/chunks/md-222.js +1 -1
  124. package/dist/chunks/md-223.js +1 -1
  125. package/dist/chunks/md-224.js +1 -1
  126. package/dist/chunks/md-225.js +1 -1
  127. package/dist/chunks/md-226.js +1 -1
  128. package/dist/chunks/md-227.js +1 -1
  129. package/dist/chunks/md-228.js +1 -1
  130. package/dist/chunks/md-229.js +1 -1
  131. package/dist/chunks/md-230.js +1 -1
  132. package/dist/chunks/md-231.js +1 -1
  133. package/dist/chunks/md-232.js +1 -1
  134. package/dist/chunks/md-233.js +1 -1
  135. package/dist/chunks/md-234.js +1 -1
  136. package/dist/chunks/md-235.js +1 -1
  137. package/dist/chunks/md-236.js +1 -1
  138. package/dist/chunks/md-237.js +1 -1
  139. package/dist/chunks/md-238.js +1 -1
  140. package/dist/chunks/md-239.js +1 -1
  141. package/dist/chunks/md-240.js +1 -1
  142. package/dist/chunks/md-241.js +1 -1
  143. package/dist/chunks/md-242.js +1 -1
  144. package/dist/chunks/md-243.js +1 -1
  145. package/dist/chunks/md-244.js +1 -1
  146. package/dist/chunks/md-245.js +1 -1
  147. package/dist/chunks/md-246.js +1 -1
  148. package/dist/chunks/md-247.js +1 -1
  149. package/dist/chunks/md-248.js +1 -1
  150. package/dist/chunks/md-249.js +1 -1
  151. package/dist/chunks/md-250.js +1 -1
  152. package/dist/chunks/md-251.js +1 -1
  153. package/dist/chunks/md-252.js +1 -1
  154. package/dist/chunks/md-253.js +1 -1
  155. package/dist/chunks/md-254.js +1 -1
  156. package/dist/chunks/md-255.js +1 -1
  157. package/dist/chunks/md-256.js +1 -1
  158. package/dist/chunks/md-257.js +1 -1
  159. package/dist/chunks/md-258.js +1 -1
  160. package/dist/chunks/md-259.js +1 -1
  161. package/dist/chunks/md-260.js +1 -1
  162. package/dist/chunks/md-261.js +1 -1
  163. package/dist/chunks/md-262.js +1 -1
  164. package/dist/chunks/md-263.js +1 -1
  165. package/dist/chunks/md-264.js +1 -1
  166. package/dist/chunks/md-265.js +1 -1
  167. package/dist/chunks/md-266.js +1 -1
  168. package/dist/chunks/md-267.js +1 -1
  169. package/dist/chunks/md-268.js +1 -1
  170. package/dist/chunks/md-269.js +1 -1
  171. package/dist/chunks/md-270.js +1 -1
  172. package/dist/chunks/md-271.js +1 -1
  173. package/dist/chunks/md-272.js +1 -1
  174. package/dist/chunks/md-273.js +1 -1
  175. package/dist/chunks/md-274.js +1 -0
  176. package/dist/chunks/md-36.js +4 -4
  177. package/dist/chunks/md-43.js +1 -5
  178. package/dist/chunks/md-44.js +4 -33
  179. package/dist/chunks/md-45.js +34 -13
  180. package/dist/chunks/md-46.js +13 -20
  181. package/dist/chunks/md-47.js +18 -44
  182. package/dist/chunks/md-48.js +46 -13
  183. package/dist/chunks/md-49.js +13 -5
  184. package/dist/chunks/md-5.js +1 -1
  185. package/dist/chunks/md-50.js +4 -67
  186. package/dist/chunks/md-51.js +64 -20
  187. package/dist/chunks/md-52.js +24 -14
  188. package/dist/chunks/md-53.js +14 -5
  189. package/dist/chunks/md-54.js +5 -39
  190. package/dist/chunks/md-55.js +38 -21
  191. package/dist/chunks/md-56.js +21 -4
  192. package/dist/chunks/md-57.js +5 -1
  193. package/dist/chunks/md-58.js +1 -22
  194. package/dist/chunks/md-59.js +22 -5
  195. package/dist/chunks/md-60.js +4 -14
  196. package/dist/chunks/md-61.js +14 -41
  197. package/dist/chunks/md-62.js +41 -29
  198. package/dist/chunks/md-63.js +29 -71
  199. package/dist/chunks/md-64.js +72 -19
  200. package/dist/chunks/md-65.js +19 -17
  201. package/dist/chunks/md-66.js +17 -22
  202. package/dist/chunks/md-67.js +21 -83
  203. package/dist/chunks/md-68.js +84 -7
  204. package/dist/chunks/md-69.js +7 -77
  205. package/dist/chunks/md-70.js +76 -71
  206. package/dist/chunks/md-71.js +72 -61
  207. package/dist/chunks/md-72.js +59 -14
  208. package/dist/chunks/md-73.js +15 -4
  209. package/dist/chunks/md-74.js +4 -29
  210. package/dist/chunks/md-75.js +30 -3
  211. package/dist/chunks/md-76.js +3 -179
  212. package/dist/chunks/md-77.js +177 -37
  213. package/dist/chunks/md-78.js +37 -83
  214. package/dist/chunks/md-79.js +78 -97
  215. package/dist/chunks/md-80.js +103 -11
  216. package/dist/chunks/md-81.js +11 -42
  217. package/dist/chunks/md-82.js +42 -20
  218. package/dist/chunks/md-83.js +21 -1
  219. package/dist/chunks/md-84.js +1 -1
  220. package/dist/chunks/md-85.js +1 -1
  221. package/dist/chunks/md-86.js +1 -1
  222. package/dist/chunks/md-87.js +1 -1
  223. package/dist/chunks/md-88.js +1 -1
  224. package/dist/chunks/md-89.js +1 -1
  225. package/dist/chunks/md-90.js +1 -1
  226. package/dist/chunks/md-91.js +1 -1
  227. package/dist/chunks/md-92.js +1 -1
  228. package/dist/chunks/md-93.js +1 -1
  229. package/dist/chunks/md-94.js +1 -1
  230. package/dist/chunks/md-95.js +1 -1
  231. package/dist/chunks/md-96.js +1 -1
  232. package/dist/chunks/md-97.js +1 -1
  233. package/dist/chunks/md-98.js +1 -1
  234. package/dist/chunks/md-99.js +1 -1
  235. package/dist/comp/md-accordion-entry.js +1 -1
  236. package/dist/comp/md-accordion-item-entry.js +1 -1
  237. package/dist/comp/md-accordion-item.js +1 -1
  238. package/dist/comp/md-accordion.js +1 -1
  239. package/dist/comp/md-activity-button-entry.js +1 -1
  240. package/dist/comp/md-activity-button.js +1 -1
  241. package/dist/comp/md-alert-banner-entry.js +1 -1
  242. package/dist/comp/md-alert-banner.js +1 -1
  243. package/dist/comp/md-alert-entry.js +1 -1
  244. package/dist/comp/md-alert.js +1 -1
  245. package/dist/comp/md-avatar-entry.js +1 -1
  246. package/dist/comp/md-badge-entry.js +1 -1
  247. package/dist/comp/md-breadcrumb-entry.js +1 -1
  248. package/dist/comp/md-breadcrumb.js +1 -1
  249. package/dist/comp/md-button-entry.js +1 -1
  250. package/dist/comp/md-button-group-entry.js +1 -1
  251. package/dist/comp/md-button-group.js +1 -1
  252. package/dist/comp/md-card-entry.js +1 -1
  253. package/dist/comp/md-card.js +1 -1
  254. package/dist/comp/md-chat-message-entry.js +1 -1
  255. package/dist/comp/md-chat-message.js +1 -1
  256. package/dist/comp/md-checkbox-entry.js +1 -1
  257. package/dist/comp/md-checkbox.js +1 -1
  258. package/dist/comp/md-checkboxgroup-entry.js +1 -1
  259. package/dist/comp/md-checkboxgroup.js +1 -1
  260. package/dist/comp/md-chip-entry.js +1 -1
  261. package/dist/comp/md-chip.js +1 -1
  262. package/dist/comp/md-coachmark-entry.js +1 -1
  263. package/dist/comp/md-coachmark.js +1 -1
  264. package/dist/comp/md-combobox-entry.js +1 -1
  265. package/dist/comp/md-combobox.js +1 -0
  266. package/dist/comp/md-composite-avatar-entry.js +1 -1
  267. package/dist/comp/md-composite-avatar.js +1 -1
  268. package/dist/comp/md-date-range-picker-entry.js +1 -1
  269. package/dist/comp/md-date-range-picker.js +1 -1
  270. package/dist/comp/md-date-time-picker-entry.js +1 -1
  271. package/dist/comp/md-date-time-picker.js +1 -1
  272. package/dist/comp/md-datepicker-calendar-entry.js +1 -1
  273. package/dist/comp/md-datepicker-day-entry.js +1 -1
  274. package/dist/comp/md-datepicker-entry.js +1 -1
  275. package/dist/comp/md-datepicker-month-entry.js +1 -1
  276. package/dist/comp/md-datepicker-week-entry.js +1 -1
  277. package/dist/comp/md-draggable-entry.js +1 -1
  278. package/dist/comp/md-draggable-item-entry.js +1 -1
  279. package/dist/comp/md-draggable-item.js +1 -1
  280. package/dist/comp/md-draggable.js +1 -1
  281. package/dist/comp/md-dropdown-entry.js +1 -1
  282. package/dist/comp/md-dropdown.js +1 -1
  283. package/dist/comp/md-editable-field-entry.js +1 -1
  284. package/dist/comp/md-editable-field.js +1 -1
  285. package/dist/comp/md-favorite-entry.js +1 -1
  286. package/dist/comp/md-floating-minimize-entry.js +1 -1
  287. package/dist/comp/md-floating-modal-entry.js +1 -1
  288. package/dist/comp/md-floating-modal.js +1 -1
  289. package/dist/comp/md-form-entry.js +1 -1
  290. package/dist/comp/md-form.js +1 -1
  291. package/dist/comp/md-help-text-entry.js +1 -1
  292. package/dist/comp/md-icon-entry.js +1 -1
  293. package/dist/comp/md-inpu.js +1 -1
  294. package/dist/comp/md-input-entry.js +1 -1
  295. package/dist/comp/md-input-file.js +1 -1
  296. package/dist/comp/md-label-entry.js +1 -1
  297. package/dist/comp/md-link-entry.js +1 -1
  298. package/dist/comp/md-link.js +1 -1
  299. package/dist/comp/md-list-entry.js +1 -1
  300. package/dist/comp/md-list-item-entry.js +1 -1
  301. package/dist/comp/md-loading-entry.js +1 -1
  302. package/dist/comp/md-meeting-alert-entry.js +1 -1
  303. package/dist/comp/md-meeting-alert.js +1 -1
  304. package/dist/comp/md-menu-entry.js +1 -1
  305. package/dist/comp/md-menu-item-entry.js +1 -1
  306. package/dist/comp/md-menu-overlay-entry.js +1 -1
  307. package/dist/comp/md-menu.js +1 -1
  308. package/dist/comp/md-modal-entry.js +1 -1
  309. package/dist/comp/md-modal.js +1 -1
  310. package/dist/comp/md-pagination-entry.js +1 -1
  311. package/dist/comp/md-pagination.js +1 -1
  312. package/dist/comp/md-phone-input-entry.js +1 -1
  313. package/dist/comp/md-phone-input.js +2 -1
  314. package/dist/comp/md-progress-bar-entry.js +1 -1
  315. package/dist/comp/md-radio-entry.js +1 -1
  316. package/dist/comp/md-radio.js +1 -1
  317. package/dist/comp/md-radiogroup-entry.js +1 -1
  318. package/dist/comp/md-radiogroup.js +1 -1
  319. package/dist/comp/md-slider-entry.js +1 -1
  320. package/dist/comp/md-slider.js +1 -1
  321. package/dist/comp/md-spinner-entry.js +1 -1
  322. package/dist/comp/md-tab-entry.js +1 -1
  323. package/dist/comp/md-tab-panel-entry.js +1 -1
  324. package/dist/comp/md-tab-panel.js +1 -1
  325. package/dist/comp/md-table-advanced-entry.js +1 -1
  326. package/dist/comp/md-table-advanced.js +1 -1
  327. package/dist/comp/md-table-entry.js +1 -1
  328. package/dist/comp/md-table.js +1 -1
  329. package/dist/comp/md-tabs-entry.js +1 -1
  330. package/dist/comp/md-tabs.js +1 -1
  331. package/dist/comp/md-task-item-entry.js +1 -1
  332. package/dist/comp/md-task-item.js +1 -1
  333. package/dist/comp/md-theme-entry.js +1 -1
  334. package/dist/comp/md-theme.js +1 -1
  335. package/dist/comp/md-timepicker-entry.js +1 -1
  336. package/dist/comp/md-timepicker.js +1 -1
  337. package/dist/comp/md-toggle-switch-entry.js +1 -1
  338. package/dist/comp/md-toggle-switch.js +1 -1
  339. package/dist/comp/md-tooltip-entry.js +1 -1
  340. package/dist/index-entry.js +2 -2
  341. package/dist/index.js +29 -28
  342. package/dist/types/components/combobox/ComboBox.d.ts +2 -2
  343. package/dist/types/components/timepicker/TimePicker.d.ts +1 -1
  344. package/package.json +1 -1
@@ -1,5 +1,13 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[49],{104:function(t,e,o){"use strict";o.r(e),o.d(e,"ButtonGroup",(function(){return s}));var s,n=o(1),i=o(7),r=o(4),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:.25rem;font-size:12px;padding:.125rem;transition:background .2s ease}: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:.25rem;color:var(--button-group-color,#545454);cursor:pointer;height:1.875rem;margin:0 .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([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}`,c=function(t,e,o,s){var n,i=arguments.length,r=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,s);else for(var d=t.length-1;d>=0;d--)(n=t[d])&&(r=(i<3?n(r):i>3?n(e,o,r):n(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r};!function(t){let e=class extends(Object(i.e)(Object(i.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[r.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){const e=this.findSelectedBtnIndex();-1!==e&&e!==t&&this.slotted[e].toggleAttribute("selected",!1),this.slotted[t].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.a.Enter:case n.a.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case n.a.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case n.a.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
- `}};c([Object(d.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),c([Object(d.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([Object(d.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),c([Object(d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=c([Object(i.f)("md-button-group")],e),t.ELEMENT=e}(s||(s={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[49],{104:function(e,r,t){"use strict";t.r(r),t.d(r,"Breadcrumb",(function(){return a}));var a,n=t(4),s=t(5),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(6),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 +1 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[5],{34:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i(1),n=i(0),o=i(16),c=i(33),a=function(e,t,i,s){var n,o=arguments.length,c=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(c=(o<3?n(c):o>3?n(t,i,c):n(t,i))||c);return o>3&&c&&Object.defineProperty(t,i,c),c},l=function(e,t,i,s){return new(i||(i=Promise))((function(n,o){function c(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(c,a)}l((s=s.apply(e,t||[])).next())}))};n.LitElement;const r=e=>{if(Object(o.b)(r,e))return e;class t extends(Object(c.a)(e)){constructor(){super(...arguments),this.focusableElements=[],this.initialFocusComplete=!1,this.activeFocusTrap=!1,this.preventClickOutside=!1,this.focusTrapIndex=-1,this.preventScroll=!1,this.handleOutsideTrapClick=e=>{let t=!1;const i=e.composedPath();i.length&&(t=!!i.find(e=>e===this),t||this.preventClickOutside||!this.activeFocusTrap?t&&this.activeFocusTrap&&this.initialFocusComplete&&this.handleClickInsideTrap(e):this.deactivateFocusTrap())}}updated(e){if(super.updated(e),e.has("focusTrapIndex")){const t=e.get("focusTrapIndex"),i=this.focusableElements[t];i&&(i.blur(),i.toggleAttribute("focus-visible",!1));const s=this.focusableElements[this.focusTrapIndex];s&&this.tryFocus(s)}}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:i}=e.getBoundingClientRect(),{offsetWidth:s,offsetHeight:n}=e;return s+n+i+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)}isDisabled(e){return e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}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.isDisabled(e)||this.isHidden(e)||this.isNotTabbable(e))&&!!this.isInteractiveElement(e)}shouldSkipFocus(e){if(e.className.split(" ").indexOf("md-combobox")>-1)return!0}findFocusable(e,t){const i=Array.from(e.children);for(const e of i)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 i=e.assignedNodes().filter(e=>e.nodeType===e.ELEMENT_NODE);if(i.length){const e=i[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(),i=this.findElement(t);e?-1===i&&this.focusTrapIndex-1>0?this.focusTrapIndex--:this.focusTrapIndex=i>0?i-1:this.focusableElements.length-1:-1===i&&this.focusTrapIndex+1<this.focusableElements.length?this.focusTrapIndex++:this.focusTrapIndex=i+1<this.focusableElements.length?i+1:0}hasAutofocus(e){return e.hasAttribute("autofocus")}setInitialFocus(e=0,t=!1){let i=-1;this.initialFocusComplete=!1,this.focusableElements.length&&!t&&(i=this.focusableElements.findIndex(this.hasAutofocus)),this.focusableElements.length&&-1===i&&("object"==typeof e?i=this.findElement(e):"number"==typeof e&&(i=e)),this.focusableElements[i]&&(this.focusTrapIndex=i)}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!==s.a.Tab||e.shiftKey&&e.code!==s.a.Tab||this.activeFocusTrap&&this.focusableElements.length&&(e.shiftKey?(e.preventDefault(),this.focusTrap(!0)):(e.preventDefault(),this.focusTrap(!1)))}activateFocusTrap(){this.activeFocusTrap=!0}deactivateFocusTrap(){this.activeFocusTrap=!1,this.focusTrapIndex=-1,this.removeAttribute("focus-trap-index")}handleClickInsideTrap(e){const t=e.composedPath(),i=t.findIndex(e=>-1!==this.findElement(e));if(-1!==i){const e=t[i],s=this.findElement(e);-1!==s&&(this.focusTrapIndex=s)}}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),document.addEventListener("click",this.handleOutsideTrapClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydownFocusTrap),this.removeEventListener("focus-visible",this.handleFocusVisible),document.removeEventListener("click",this.handleOutsideTrapClick)}}return a([Object(n.internalProperty)()],t.prototype,"focusableElements",void 0),a([Object(n.internalProperty)()],t.prototype,"initialFocusComplete",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"active-focus-trap"})],t.prototype,"activeFocusTrap",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"prevent-click-outside"})],t.prototype,"preventClickOutside",void 0),a([Object(n.property)({type:Number,reflect:!0,attribute:"focus-trap-index"})],t.prototype,"focusTrapIndex",void 0),a([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(16),c=s(33),a=function(e,t,s,i){var n,o=arguments.length,c=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(c=(o<3?n(c):o>3?n(t,s,c):n(t,s))||c);return o>3&&c&&Object.defineProperty(t,s,c),c},l=function(e,t,s,i){return new(s||(s=Promise))((function(n,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(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(c,a)}l((i=i.apply(e,t||[])).next())}))};n.LitElement;const r=e=>{if(Object(o.b)(r,e))return e;class t extends(Object(c.a)(e)){constructor(){super(...arguments),this.focusableElements=[],this.initialFocusComplete=!1,this.activeFocusTrap=!1,this.preventClickOutside=!1,this.focusTrapIndex=-1,this.preventScroll=!1,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())}}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)}isDisabled(e){return e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}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.isDisabled(e)||this.isHidden(e)||this.isNotTabbable(e))&&!!this.isInteractiveElement(e)}shouldSkipFocus(e){return!!(e.className&&e.className.split&&e.className.split(" ").indexOf("md-combobox")>-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);e?-1===s&&this.focusTrapIndex-1>0?this.focusTrapIndex--:this.focusTrapIndex=s>0?s-1:this.focusableElements.length-1:-1===s&&this.focusTrapIndex+1<this.focusableElements.length?this.focusTrapIndex++:this.focusTrapIndex=s+1<this.focusableElements.length?s+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)}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.a.Tab||e.shiftKey&&e.code!==i.a.Tab||this.activeFocusTrap&&this.focusableElements.length&&(e.shiftKey?(e.preventDefault(),this.focusTrap(!0)):(e.preventDefault(),this.focusTrap(!1)))}activateFocusTrap(){this.activeFocusTrap=!0}deactivateFocusTrap(){this.activeFocusTrap=!1,this.focusTrapIndex=-1,this.removeAttribute("focus-trap-index")}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);const e=this;document.addEventListener("on-component-update",()=>{setTimeout(()=>{e.setFocusableElements()},10)}),document.addEventListener("click",this.handleOutsideTrapClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydownFocusTrap),this.removeEventListener("focus-visible",this.handleFocusVisible),document.removeEventListener("click",this.handleOutsideTrapClick)}}return a([Object(n.internalProperty)()],t.prototype,"focusableElements",void 0),a([Object(n.internalProperty)()],t.prototype,"initialFocusComplete",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"active-focus-trap"})],t.prototype,"activeFocusTrap",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"prevent-click-outside"})],t.prototype,"preventClickOutside",void 0),a([Object(n.property)({type:Number,reflect:!0,attribute:"focus-trap-index"})],t.prototype,"focusTrapIndex",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],t.prototype,"preventScroll",void 0),Object(o.a)(r,t),t}}}]);
@@ -1,68 +1,5 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[50],{105:function(e,t,d){"use strict";d.r(t),d.d(t,"Card",(function(){return r}));var r,a=d(4),o=d(5),i=d(0),n=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: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}`,c=(d(15),d(17),d(66),d(67),d(75),d(1)),s=d(14),m=d(2),l=function(e,t,d,r){var a,o=arguments.length,i=o<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--)(a=e[n])&&(i=(o<3?a(i):o>3?a(t,d,i):a(t,d))||i);return o>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,n]}handleCardClick(e){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(e){e.code!==c.a.Enter&&e.code!==c.a.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()},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
- `:m.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(s.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
- `:m.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([[50],{105:function(t,e,o){"use strict";o.r(e),o.d(e,"ButtonGroup",(function(){return s}));var s,n=o(1),i=o(7),r=o(4),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:.25rem;font-size:12px;padding:.125rem;transition:background .2s ease}: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:.25rem;color:var(--button-group-color,#545454);cursor:pointer;height:1.875rem;margin:0 .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([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}`,c=function(t,e,o,s){var n,i=arguments.length,r=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,s);else for(var d=t.length-1;d>=0;d--)(n=t[d])&&(r=(i<3?n(r):i>3?n(e,o,r):n(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r};!function(t){let e=class extends(Object(i.e)(Object(i.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[r.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){const e=this.findSelectedBtnIndex();-1!==e&&e!==t&&this.slotted[e].toggleAttribute("selected",!1),this.slotted[t].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.a.Enter:case n.a.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case n.a.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case n.a.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
+ `}};c([Object(d.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),c([Object(d.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([Object(d.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),c([Object(d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=c([Object(i.f)("md-button-group")],e),t.ELEMENT=e}(s||(s={}))}}]);
@@ -1,24 +1,68 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[51],{106:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatMessage",(function(){return a}));var a,i=s(4),o=s(5),c=s(0),l=c.css`:host(:focus){box-shadow:none;outline:0!important}:host(md-chat-message) .md-chat-message{color:var(--chat-message-color,#1c1c1c);display:flex;font-size:.875rem;line-height:1.375rem;margin:.75rem 0}:host(md-chat-message) .md-chat-message_content{display:flex;flex-direction:column;padding-left:.75rem}:host(md-chat-message) .md-chat-message_heading{color:var(--chat-message-color-heading,#3b3b3b);display:flex;flex:0 1 auto;font-size:.75rem;line-height:.75rem;margin-bottom:calc(.75rem * .5)}:host(md-chat-message) .md-chat-message_title{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;flex:0 1 auto}:host(md-chat-message) .md-chat-message_title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100%);display:block}:host(md-chat-message) .md-chat-message_time{margin-left:calc(.75rem * 1.5)}`,r=(s(43),s(6)),n=function(e,t,s,a){var i,o=arguments.length,c=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,s,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(c=(o<3?i(c):o>3?i(t,s,c):i(t,s))||c);return o>3&&c&&Object.defineProperty(t,s,c),c};!function(e){let t=class extends c.LitElement{constructor(){super(...arguments),this.title="",this.src="",this.time="",this.label="Avatar",this.self=!1}static get styles(){return[i.a,l]}render(){return c.html`
2
- <div class="md-chat-message">
3
- <md-avatar
4
- type=${Object(r.ifDefined)(this.self?"self":void 0)}
5
- title=${this.self?"self":this.title}
6
- label="${this.label}"
7
- src=${Object(r.ifDefined)(this.self?void 0:this.src)}
8
- ></md-avatar>
9
-
10
- <div class="md-chat-message_content">
11
- <div class="md-chat-message_heading">
12
- <div class="md-chat-message_title">
13
- <span>${this.self?"You":this.title}</span>
14
- </div>
15
- <div class="md-chat-message_time">
16
- ${this.time}
17
- </div>
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[51],{106:function(e,t,d){"use strict";d.r(t),d.d(t,"Card",(function(){return r}));var r,a=d(4),o=d(5),i=d(0),n=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: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}`,c=(d(15),d(17),d(66),d(67),d(75),d(1)),s=d(14),m=d(2),l=function(e,t,d,r){var a,o=arguments.length,i=o<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--)(a=e[n])&&(i=(o<3?a(i):o>3?a(t,d,i):a(t,d))||i);return o>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,n]}handleCardClick(e){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(e){e.code!==c.a.Enter&&e.code!==c.a.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()},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>
18
19
  </div>
19
- <div class="md-chat-message_text">
20
- <slot name="message"></slot>
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
+ `:m.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(s.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
+ `:m.nothing}
21
59
  </div>
22
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>
23
67
  </div>
24
- `}};n([Object(c.property)({type:String})],t.prototype,"title",void 0),n([Object(c.property)({type:String})],t.prototype,"src",void 0),n([Object(c.property)({type:String})],t.prototype,"time",void 0),n([Object(c.property)({type:String})],t.prototype,"label",void 0),n([Object(c.property)({type:Boolean})],t.prototype,"self",void 0),t=n([Object(o.a)("md-chat-message")],t),e.ELEMENT=t}(a||(a={}))}}]);
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={}))}}]);
@@ -1,14 +1,24 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[52],{85:function(e,t,i){"use strict";i.r(t),i.d(t,"Checkbox",(function(){return s}));var s,c=i(1),n=i(7),a=i(4),d=i(5),o=i(0),r=i(58),h=function(e,t,i,s){var c,n=arguments.length,a=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(a=(n<3?c(a):n>3?c(t,i,a):c(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends(Object(n.a)(o.LitElement)){constructor(){super(...arguments),this.autofocus=!1,this._checked=!1,this._indeterminate=!1,this._disabled=!1,this.label="",this.tabIndex=0}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this.indeterminate||this.setAttribute("aria-checked",""+e),this.requestUpdate("checked",t)}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=this._indeterminate;this._indeterminate=e,this.setAttribute("aria-checked","mixed"),this.requestUpdate("indeterminate",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",""+e),this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}static get styles(){return[a.a,r.a]}toggleCheckbox(){this.checked=!this.checked}isCheckboxActive(){return this.disabled||this.indeterminate}handleClick(e){this.isCheckboxActive()?e.stopPropagation():(this.toggleCheckbox(),this.handleChange(e))}handleKeyDown(e){const{code:t}=e;t!==c.a.Space&&t!==c.a.Enter||(e.preventDefault(),this.isCheckboxActive()?e.stopPropagation():(this.toggleCheckbox(),this.handleChange(e)))}handleChange(e){this.dispatchEvent(new CustomEvent("checkbox-change",{bubbles:!0,composed:!0,detail:{sourceEvent:e}}))}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","checkbox"),this.label&&this.setAttribute("aria-label",this.label)}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)}update(e){super.update(e),e.has("indeterminate")&&(this.checked=!1)}updated(e){super.updated(e),e.has("indeterminate")&&(this.input.indeterminate=this.indeterminate)}render(){return o.html`
2
- <input
3
- class="checkbox-input"
4
- type="checkbox"
5
- part="checkbox-input"
6
- ?checked=${this.checked}
7
- ?disabled=${this.disabled}
8
- ?autofocus=${this.autofocus}
9
- aria-hidden="true"
10
- />
11
- <label part="checkbox-label" class="checkbox-label">
12
- <slot></slot>
13
- </label>
14
- `}};h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"autofocus",void 0),h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"checked",null),h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"indeterminate",null),h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),h([Object(o.property)({type:String})],t.prototype,"label",void 0),h([Object(o.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),h([Object(o.query)(".checkbox-input")],t.prototype,"input",void 0),t=h([Object(d.a)("md-checkbox")],t),e.ELEMENT=t}(s||(s={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[52],{107:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatMessage",(function(){return a}));var a,i=s(4),o=s(5),c=s(0),l=c.css`:host(:focus){box-shadow:none;outline:0!important}:host(md-chat-message) .md-chat-message{color:var(--chat-message-color,#1c1c1c);display:flex;font-size:.875rem;line-height:1.375rem;margin:.75rem 0}:host(md-chat-message) .md-chat-message_content{display:flex;flex-direction:column;padding-left:.75rem}:host(md-chat-message) .md-chat-message_heading{color:var(--chat-message-color-heading,#3b3b3b);display:flex;flex:0 1 auto;font-size:.75rem;line-height:.75rem;margin-bottom:calc(.75rem * .5)}:host(md-chat-message) .md-chat-message_title{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;flex:0 1 auto}:host(md-chat-message) .md-chat-message_title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100%);display:block}:host(md-chat-message) .md-chat-message_time{margin-left:calc(.75rem * 1.5)}`,r=(s(43),s(6)),n=function(e,t,s,a){var i,o=arguments.length,c=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,s,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(c=(o<3?i(c):o>3?i(t,s,c):i(t,s))||c);return o>3&&c&&Object.defineProperty(t,s,c),c};!function(e){let t=class extends c.LitElement{constructor(){super(...arguments),this.title="",this.src="",this.time="",this.label="Avatar",this.self=!1}static get styles(){return[i.a,l]}render(){return c.html`
2
+ <div class="md-chat-message">
3
+ <md-avatar
4
+ type=${Object(r.ifDefined)(this.self?"self":void 0)}
5
+ title=${this.self?"self":this.title}
6
+ label="${this.label}"
7
+ src=${Object(r.ifDefined)(this.self?void 0:this.src)}
8
+ ></md-avatar>
9
+
10
+ <div class="md-chat-message_content">
11
+ <div class="md-chat-message_heading">
12
+ <div class="md-chat-message_title">
13
+ <span>${this.self?"You":this.title}</span>
14
+ </div>
15
+ <div class="md-chat-message_time">
16
+ ${this.time}
17
+ </div>
18
+ </div>
19
+ <div class="md-chat-message_text">
20
+ <slot name="message"></slot>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ `}};n([Object(c.property)({type:String})],t.prototype,"title",void 0),n([Object(c.property)({type:String})],t.prototype,"src",void 0),n([Object(c.property)({type:String})],t.prototype,"time",void 0),n([Object(c.property)({type:String})],t.prototype,"label",void 0),n([Object(c.property)({type:Boolean})],t.prototype,"self",void 0),t=n([Object(o.a)("md-chat-message")],t),e.ELEMENT=t}(a||(a={}))}}]);
@@ -1,5 +1,14 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[53],{86:function(e,t,o){"use strict";o.r(t),o.d(t,"CheckboxGroup",(function(){return r}));var r,c=o(1),s=o(7),n=o(4),l=o(5),i=o(0),a=o(58),h=function(e,t,o,r){var c,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(n=(s<3?c(n):s>3?c(t,o,n):c(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};!function(e){let t=class extends(Object(s.d)(i.LitElement)){constructor(){super(...arguments),this.label="group",this.alignment="vertical"}static get styles(){return[n.a,a.a]}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}switchCheckboxOnArrowPress(e,t=1){const o=super.getAvailableSelectedIndex(e,t);-1!==o&&(this.selected=o)}handleKeyDown(e){const{code:t}=e;switch(t){case c.a.ArrowUp:case c.a.ArrowLeft:0===this.selected?this.switchCheckboxOnArrowPress(this.slotted.length-1,-1):this.switchCheckboxOnArrowPress(this.selected-1,-1);break;case c.a.ArrowDown:case c.a.ArrowRight:this.selected===this.slotted.length-1?this.switchCheckboxOnArrowPress(0):this.switchCheckboxOnArrowPress(this.selected+1)}}get slotElement(){return this.checkboxSlot}render(){return i.html`
2
- <div role="group" aria-labelledby="id-group-label">
3
- <slot name="checkbox"></slot>
4
- </div>
5
- `}};h([Object(i.property)({type:String,attribute:"group-label"})],t.prototype,"label",void 0),h([Object(i.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),h([Object(i.query)("slot[name='checkbox']")],t.prototype,"checkboxSlot",void 0),t=h([Object(l.a)("md-checkboxgroup")],t),e.ELEMENT=t}(r||(r={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[53],{85:function(e,t,i){"use strict";i.r(t),i.d(t,"Checkbox",(function(){return s}));var s,c=i(1),n=i(7),a=i(4),d=i(5),o=i(0),r=i(58),h=function(e,t,i,s){var c,n=arguments.length,a=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(a=(n<3?c(a):n>3?c(t,i,a):c(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends(Object(n.a)(o.LitElement)){constructor(){super(...arguments),this.autofocus=!1,this._checked=!1,this._indeterminate=!1,this._disabled=!1,this.label="",this.tabIndex=0}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this.indeterminate||this.setAttribute("aria-checked",""+e),this.requestUpdate("checked",t)}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=this._indeterminate;this._indeterminate=e,this.setAttribute("aria-checked","mixed"),this.requestUpdate("indeterminate",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",""+e),this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}static get styles(){return[a.a,r.a]}toggleCheckbox(){this.checked=!this.checked}isCheckboxActive(){return this.disabled||this.indeterminate}handleClick(e){this.isCheckboxActive()?e.stopPropagation():(this.toggleCheckbox(),this.handleChange(e))}handleKeyDown(e){const{code:t}=e;t!==c.a.Space&&t!==c.a.Enter||(e.preventDefault(),this.isCheckboxActive()?e.stopPropagation():(this.toggleCheckbox(),this.handleChange(e)))}handleChange(e){this.dispatchEvent(new CustomEvent("checkbox-change",{bubbles:!0,composed:!0,detail:{sourceEvent:e}}))}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","checkbox"),this.label&&this.setAttribute("aria-label",this.label)}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)}update(e){super.update(e),e.has("indeterminate")&&(this.checked=!1)}updated(e){super.updated(e),e.has("indeterminate")&&(this.input.indeterminate=this.indeterminate)}render(){return o.html`
2
+ <input
3
+ class="checkbox-input"
4
+ type="checkbox"
5
+ part="checkbox-input"
6
+ ?checked=${this.checked}
7
+ ?disabled=${this.disabled}
8
+ ?autofocus=${this.autofocus}
9
+ aria-hidden="true"
10
+ />
11
+ <label part="checkbox-label" class="checkbox-label">
12
+ <slot></slot>
13
+ </label>
14
+ `}};h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"autofocus",void 0),h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"checked",null),h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"indeterminate",null),h([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),h([Object(o.property)({type:String})],t.prototype,"label",void 0),h([Object(o.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),h([Object(o.query)(".checkbox-input")],t.prototype,"input",void 0),t=h([Object(d.a)("md-checkbox")],t),e.ELEMENT=t}(s||(s={}))}}]);
@@ -1,39 +1,5 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[54],{107:function(o,e,r){"use strict";r.r(e),r.d(e,"Chip",(function(){return c}));var c,a=r(1),t=r(4),l=r(5),d=r(0),i=r(2),g=r(3),b=(r(15),r(76),r(68),d.css`:focus{outline:0}.md-chip{border-radius:1.125rem;align-items:center;background-color:var(--md-secondary-bg-color,#f7f7f7);color:var(--md-primary-text-color,#121212);cursor:pointer;display:inline-flex;font-family:"CiscoSansTT Regular","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;height:2rem;justify-content:space-between;line-height:1rem;margin-bottom:auto;max-width:12.5rem;overflow:auto;position:relative;text-align:center;text-decoration:none;white-space:nowrap;width:auto;padding:.25rem 1rem;font-size:.75rem}.md-chip--small{padding:.1875rem .75rem;font-size:.75rem;height:1.5rem;min-width:auto}.md-chip:focus{box-shadow:0 0 0 .0625rem var(--md-default-focus-outline-color,#005e7d)}.md-chip:hover{background-color:var(--md-tertiary-bg-color,#ededed)}.md-chip:active,.md-chip[aria-selected=true]{background-color:var(--md-quaternary-bg-color,#dedede)}.md-chip--blue,.md-chip--cobalt{background-color:var(--badge-blue-bg-color,#c7eeff);color:var(--badge-blue-text-color,#08599c)}.md-chip--blue:hover,.md-chip--cobalt:hover{background-color:var(--badge-blue-bg-color,#c7eeff);color:var(--badge-blue-text-color,#08599c)}.md-chip--blue:active,.md-chip--cobalt:active{background-color:var(--badge-blue-bg-color,#c7eeff);color:var(--badge-blue-text-color,#08599c)}.md-chip--blue:hover,.md-chip--cobalt:hover{background-color:var(--badge-blue-hover-bg-color,#9df);color:var(--badge-blue-text-color,#08599c)}.md-chip--blue:hover:hover,.md-chip--cobalt:hover:hover{background-color:var(--badge-blue-hover-bg-color,#9df);color:var(--badge-blue-text-color,#08599c)}.md-chip--blue:hover:active,.md-chip--cobalt:hover:active{background-color:var(--badge-blue-hover-bg-color,#9df);color:var(--badge-blue-text-color,#08599c)}.md-chip--blue:active,.md-chip--cobalt:active{background-color:var(--badge-blue-active-bg-color,#5ebff6);color:var(--badge-blue-text-color,#08599c)}.md-chip--blue:active:hover,.md-chip--cobalt:active:hover{background-color:var(--badge-blue-active-bg-color,#5ebff6);color:var(--badge-blue-text-color,#08599c)}.md-chip--blue:active:active,.md-chip--cobalt:active:active{background-color:var(--badge-blue-active-bg-color,#5ebff6);color:var(--badge-blue-text-color,#08599c)}.md-chip--gray{background-color:var(--badge-gray-bg-color,#dedede);color:var(--badge-gray-text-color,#121212)}.md-chip--gray:hover{background-color:var(--badge-gray-bg-color,#dedede);color:var(--badge-gray-text-color,#121212)}.md-chip--gray:active{background-color:var(--badge-gray-bg-color,#dedede);color:var(--badge-gray-text-color,#121212)}.md-chip--gray:hover{background-color:var(--badge-gray-hover-bg-color,#ccc);color:var(--badge-gray-text-color,#121212)}.md-chip--gray:hover:hover{background-color:var(--badge-gray-hover-bg-color,#ccc);color:var(--badge-gray-text-color,#121212)}.md-chip--gray:hover:active{background-color:var(--badge-gray-hover-bg-color,#ccc);color:var(--badge-gray-text-color,#121212)}.md-chip--gray:active{background-color:var(--badge-gray-active-bg-color,#ccc);color:var(--badge-gray-text-color,#121212)}.md-chip--gray:active:hover{background-color:var(--badge-gray-active-bg-color,#ccc);color:var(--badge-gray-text-color,#121212)}.md-chip--gray:active:active{background-color:var(--badge-gray-active-bg-color,#ccc);color:var(--badge-gray-text-color,#121212)}.md-chip--mint{background-color:var(--badge-mint-bg-color,#baf5e7);color:var(--badge-mint-text-color,#12615a)}.md-chip--mint:hover{background-color:var(--badge-mint-bg-color,#baf5e7);color:var(--badge-mint-text-color,#12615a)}.md-chip--mint:active{background-color:var(--badge-mint-bg-color,#baf5e7);color:var(--badge-mint-text-color,#12615a)}.md-chip--mint:hover{background-color:var(--badge-mint-hover-bg-color,#74e8d1);color:var(--badge-mint-text-color,#12615a)}.md-chip--mint:hover:hover{background-color:var(--badge-mint-hover-bg-color,#74e8d1);color:var(--badge-mint-text-color,#12615a)}.md-chip--mint:hover:active{background-color:var(--badge-mint-hover-bg-color,#74e8d1);color:var(--badge-mint-text-color,#12615a)}.md-chip--mint:active{background-color:var(--badge-mint-active-bg-color,#30c9b0);color:var(--badge-mint-text-color,#12615a)}.md-chip--mint:active:hover{background-color:var(--badge-mint-active-bg-color,#30c9b0);color:var(--badge-mint-text-color,#12615a)}.md-chip--mint:active:active{background-color:var(--badge-mint-active-bg-color,#30c9b0);color:var(--badge-mint-text-color,#12615a)}.md-chip--darkmint{background-color:var(--badge-darkmint-bg-color,#16a693);color:var(--badge-darkmint-text-color,#f7f7f7)}.md-chip--darkmint:hover{background-color:var(--badge-darkmint-bg-color,#16a693);color:var(--badge-darkmint-text-color,#f7f7f7)}.md-chip--darkmint:active{background-color:var(--badge-darkmint-bg-color,#16a693);color:var(--badge-darkmint-text-color,#f7f7f7)}.md-chip--green{background-color:var(--badge-green-bg-color,#78f5b8);color:var(--badge-green-text-color,#03612c)}.md-chip--green:hover{background-color:var(--badge-green-bg-color,#78f5b8);color:var(--badge-green-text-color,#03612c)}.md-chip--green:active{background-color:var(--badge-green-bg-color,#78f5b8);color:var(--badge-green-text-color,#03612c)}.md-chip--yellow{background-color:var(--badge-yellow-bg-color,#ffd98c);color:var(--badge-yellow-text-color,#7d4705)}.md-chip--yellow:hover{background-color:var(--badge-yellow-bg-color,#ffd98c);color:var(--badge-yellow-text-color,#7d4705)}.md-chip--yellow:active{background-color:var(--badge-yellow-bg-color,#ffd98c);color:var(--badge-yellow-text-color,#7d4705)}.md-chip--red{background-color:var(--badge-red-bg-color,#ffd5cc);color:var(--badge-red-text-color,#a12512)}.md-chip--red:hover{background-color:var(--badge-red-bg-color,#ffd5cc);color:var(--badge-red-text-color,#a12512)}.md-chip--red:active{background-color:var(--badge-red-bg-color,#ffd5cc);color:var(--badge-red-text-color,#a12512)}.md-chip--orange{background-color:var(--badge-orange-bg-color,#fce4c7);color:var(--badge-orange-text-color,#914017)}.md-chip--orange:hover{background-color:var(--badge-orange-bg-color,#fce4c7);color:var(--badge-orange-text-color,#914017)}.md-chip--orange:active{background-color:var(--badge-orange-bg-color,#fce4c7);color:var(--badge-orange-text-color,#914017)}.md-chip--orange:hover{background-color:var(--badge-orange-hover-bg-color,#ffca99);color:var(--badge-orange-text-color,#914017)}.md-chip--orange:hover:hover{background-color:var(--badge-orange-hover-bg-color,#ffca99);color:var(--badge-orange-text-color,#914017)}.md-chip--orange:hover:active{background-color:var(--badge-orange-hover-bg-color,#ffca99);color:var(--badge-orange-text-color,#914017)}.md-chip--orange:active{background-color:var(--badge-orange-active-bg-color,#ff9d52);color:var(--badge-orange-text-color,#914017)}.md-chip--orange:active:hover{background-color:var(--badge-orange-active-bg-color,#ff9d52);color:var(--badge-orange-text-color,#914017)}.md-chip--orange:active:active{background-color:var(--badge-orange-active-bg-color,#ff9d52);color:var(--badge-orange-text-color,#914017)}.md-chip--gold{background-color:var(--badge-gold-bg-color,#f5eaa2);color:var(--badge-gold-text-color,#735107)}.md-chip--gold:hover{background-color:var(--badge-gold-bg-color,#f5eaa2);color:var(--badge-gold-text-color,#735107)}.md-chip--gold:active{background-color:var(--badge-gold-bg-color,#f5eaa2);color:var(--badge-gold-text-color,#735107)}.md-chip--gold:hover{background-color:var(--badge-gold-hover-bg-color,#ebd460);color:var(--badge-gold-text-color,#735107)}.md-chip--gold:hover:hover{background-color:var(--badge-gold-hover-bg-color,#ebd460);color:var(--badge-gold-text-color,#735107)}.md-chip--gold:hover:active{background-color:var(--badge-gold-hover-bg-color,#ebd460);color:var(--badge-gold-text-color,#735107)}.md-chip--gold:active{background-color:var(--badge-gold-active-bg-color,#d6b220);color:var(--badge-gold-text-color,#735107)}.md-chip--gold:active:hover{background-color:var(--badge-gold-active-bg-color,#d6b220);color:var(--badge-gold-text-color,#735107)}.md-chip--gold:active:active{background-color:var(--badge-gold-active-bg-color,#d6b220);color:var(--badge-gold-text-color,#735107)}.md-chip--lime{background-color:var(--badge-lime-bg-color,#ddf2ae);color:var(--badge-lime-text-color,#416116)}.md-chip--lime:hover{background-color:var(--badge-lime-bg-color,#ddf2ae);color:var(--badge-lime-text-color,#416116)}.md-chip--lime:active{background-color:var(--badge-lime-bg-color,#ddf2ae);color:var(--badge-lime-text-color,#416116)}.md-chip--lime:hover{background-color:var(--badge-lime-hover-bg-color,#bce36f);color:var(--badge-lime-text-color,#416116)}.md-chip--lime:hover:hover{background-color:var(--badge-lime-hover-bg-color,#bce36f);color:var(--badge-lime-text-color,#416116)}.md-chip--lime:hover:active{background-color:var(--badge-lime-hover-bg-color,#bce36f);color:var(--badge-lime-text-color,#416116)}.md-chip--lime:active{background-color:var(--badge-lime-active-bg-color,#93c437);color:var(--badge-lime-text-color,#416116)}.md-chip--lime:active:hover{background-color:var(--badge-lime-active-bg-color,#93c437);color:var(--badge-lime-text-color,#416116)}.md-chip--lime:active:active{background-color:var(--badge-lime-active-bg-color,#93c437);color:var(--badge-lime-text-color,#416116)}.md-chip--pink{background-color:var(--badge-pink-bg-color,#ffe0e7);color:var(--badge-pink-text-color,#a12a3a)}.md-chip--pink:hover{background-color:var(--badge-pink-bg-color,#ffe0e7);color:var(--badge-pink-text-color,#a12a3a)}.md-chip--pink:active{background-color:var(--badge-pink-bg-color,#ffe0e7);color:var(--badge-pink-text-color,#a12a3a)}.md-chip--pink:hover{background-color:var(--badge-pink-hover-bg-color,#ffc7d2);color:var(--badge-pink-text-color,#a12a3a)}.md-chip--pink:hover:hover{background-color:var(--badge-pink-hover-bg-color,#ffc7d2);color:var(--badge-pink-text-color,#a12a3a)}.md-chip--pink:hover:active{background-color:var(--badge-pink-hover-bg-color,#ffc7d2);color:var(--badge-pink-text-color,#a12a3a)}.md-chip--pink:active{background-color:var(--badge-pink-active-bg-color,#fc97aa);color:var(--badge-pink-text-color,#a12a3a)}.md-chip--pink:active:hover{background-color:var(--badge-pink-active-bg-color,#fc97aa);color:var(--badge-pink-text-color,#a12a3a)}.md-chip--pink:active:active{background-color:var(--badge-pink-active-bg-color,#fc97aa);color:var(--badge-pink-text-color,#a12a3a)}.md-chip--purple{background-color:var(--badge-purple-bg-color,#fce1fc);color:var(--badge-purple-text-color,#932099)}.md-chip--purple:hover{background-color:var(--badge-purple-bg-color,#fce1fc);color:var(--badge-purple-text-color,#932099)}.md-chip--purple:active{background-color:var(--badge-purple-bg-color,#fce1fc);color:var(--badge-purple-text-color,#932099)}.md-chip--violet{background-color:var(--badge-violet-bg-color,#f0e3fc);color:var(--badge-violet-text-color,#643abd)}.md-chip--violet:hover{background-color:var(--badge-violet-bg-color,#f0e3fc);color:var(--badge-violet-text-color,#643abd)}.md-chip--violet:active{background-color:var(--badge-violet-bg-color,#f0e3fc);color:var(--badge-violet-text-color,#643abd)}.md-chip--violet:hover{background-color:var(--badge-violet-hover-bg-color,#e2cafc);color:var(--badge-violet-text-color,#643abd)}.md-chip--violet:hover:hover{background-color:var(--badge-violet-hover-bg-color,#e2cafc);color:var(--badge-violet-text-color,#643abd)}.md-chip--violet:hover:active{background-color:var(--badge-violet-hover-bg-color,#e2cafc);color:var(--badge-violet-text-color,#643abd)}.md-chip--violet:active{background-color:var(--badge-violet-active-bg-color,#c7a5fa);color:var(--badge-violet-text-color,#643abd)}.md-chip--violet:active:hover{background-color:var(--badge-violet-active-bg-color,#c7a5fa);color:var(--badge-violet-text-color,#643abd)}.md-chip--violet:active:active{background-color:var(--badge-violet-active-bg-color,#c7a5fa);color:var(--badge-violet-text-color,#643abd)}.md-chip--cyan{background-color:var(--badge-cyan-bg-color,#b2f4f7);color:var(--badge-cyan-text-color,#066070)}.md-chip--cyan:hover{background-color:var(--badge-cyan-bg-color,#b2f4f7);color:var(--badge-cyan-text-color,#066070)}.md-chip--cyan:active{background-color:var(--badge-cyan-bg-color,#b2f4f7);color:var(--badge-cyan-text-color,#066070)}.md-chip .md-chip--clear{height:.875rem;right:.75rem;top:.75rem;width:.875rem;display:flow-root;margin-left:.625rem;margin-right:0}.md-chip .md-chip--clear::before{font-size:.875rem}.md-chip .md-chip--loading{left:0;overflow:hidden;position:absolute;top:-.125rem;width:100%}.md-chip .md-chip--textcontent{max-width:9.375rem}.md-chip md-icon{display:flex;margin-right:.625rem}.md-chip.md-chip--disabled{border-radius:1.125rem;align-items:center;background-color:var(--md-secondary-bg-color,#f7f7f7);color:var(--md-primary-text-color,#121212);cursor:pointer;display:inline-flex;font-family:"CiscoSansTT Regular","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;height:2rem;justify-content:space-between;line-height:1rem;margin-bottom:auto;max-width:12.5rem;overflow:auto;position:relative;text-align:center;text-decoration:none;white-space:nowrap;width:auto;color:var(--md-disabled-text-color,#b2b2b2);cursor:default}.md-chip.md-chip--disabled md-icon{color:var(--md-disabled-text-color,#b2b2b2)}::slotted(*){line-height:normal}::slotted([slot=custom-left-content]){margin-right:.625rem}::slotted([slot=custom-right-content]){margin-left:.625rem}`),n=function(o,e,r,c){var a,t=arguments.length,l=t<3?e:null===c?c=Object.getOwnPropertyDescriptor(e,r):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(o,e,r,c);else for(var d=o.length-1;d>=0;d--)(a=o[d])&&(l=(t<3?a(l):t>3?a(e,r,l):a(e,r))||l);return t>3&&l&&Object.defineProperty(e,r,l),l};!function(o){let e=class extends d.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.value="",this.textOverflow=!1,this.renderedText="",this.MAX_LENGTH=18,this.PRE_TRUNC_CHARS=6,this.POST_TRUNC_CHARS=9,this.DOT_COUNT=3,this.selectionChange=o=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:o}}))},this.handleClear=o=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:o}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:i.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:i.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:i.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?d.html`
2
- <style>
3
- :host .md-chip {
4
- ${this.renderBgColor()};
5
- ${this.renderTextColor()};
6
- ${this.renderHeight()};
7
- }
8
- </style>
9
- `:i.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(o){super.updated(o),this.truncStringPortion(this.value)}truncStringPortion(o,e=this.PRE_TRUNC_CHARS,r=this.POST_TRUNC_CHARS,c=this.DOT_COUNT){if(this.value.length>this.MAX_LENGTH){let a="";a+=o.substring(0,e),a+=".".repeat(c),a+=o.substring(o.length-r,o.length),this.renderedText=a,this.textOverflow=!0}else this.renderedText=this.value}handleClick(o){this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(o){switch(o.code){case a.a.Space:case a.a.Enter:this.handleSelect(),this.handleClick(o)}}static get styles(){return[t.a,b]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?d.html`
10
- <md-progress-bar
11
- class="md-chip--loading"
12
- type="determinate"
13
- value="${this.determinateProgress}"
14
- displayFormat="none"
15
- >
16
- </md-progress-bar>
17
- `:d.html`
18
- <md-progress-bar class="md-chip--loading" type="indeterminate" displayFormat="none"></md-progress-bar>
19
- `:i.nothing}iconTemplate(){const o=this.disabled?"":this.iconColor;return this.icon?d.html`
20
- <md-icon class="md-chip--icon" part="chip-icon" name="${this.icon}" color="${o}"></md-icon>
21
- `:i.nothing}render(){const o={"md-chip--small":this.small,"md-chip--disabled":this.disabled,["md-chip--"+this.color]:this.color};return d.html`
22
- ${this.getStyles()}
23
- <md-tooltip ?disabled=${!this.textOverflow} message="${this.value}">
24
- <span
25
- tabindex="0"
26
- class="md-chip ${Object(g.classMap)(o)}"
27
- part="chip"
28
- aria-selected=${this.selected}
29
- aria-readonly=${this.readonly}
30
- @click=${o=>{this.handleClick(o)}}
31
- @keydown=${o=>{this.handleKeydown(o)}}
32
- >
33
- ${this.loadingTemplate()} ${this.iconTemplate()}
34
- <slot name="custom-left-content" part="chip-left"> </slot>
35
- <span class="md-chip--textcontent"> ${this.renderedText}</span>
36
- <slot name="custom-right-content" part="chip-right"> </slot>
37
- </span>
38
- </md-tooltip>
39
- `}};n([Object(d.property)({type:String})],e.prototype,"color",void 0),n([Object(d.property)({type:String})],e.prototype,"bgColor",void 0),n([Object(d.property)({type:String})],e.prototype,"textColor",void 0),n([Object(d.property)({type:String})],e.prototype,"height",void 0),n([Object(d.property)({type:String})],e.prototype,"icon",void 0),n([Object(d.property)({type:String})],e.prototype,"iconColor",void 0),n([Object(d.property)({type:String})],e.prototype,"role",void 0),n([Object(d.property)({type:String,reflect:!0})],e.prototype,"id",void 0),n([Object(d.property)({type:Boolean})],e.prototype,"small",void 0),n([Object(d.property)({type:Boolean})],e.prototype,"readonly",void 0),n([Object(d.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),n([Object(d.property)({type:Boolean})],e.prototype,"disabled",void 0),n([Object(d.property)({type:Number})],e.prototype,"determinateProgress",void 0),n([Object(d.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),n([Object(d.property)({type:String,hasChanged:(o,e)=>o!==e})],e.prototype,"value",void 0),n([Object(d.internalProperty)({hasChanged:(o,e)=>o!==e})],e.prototype,"textOverflow",void 0),n([Object(d.internalProperty)()],e.prototype,"renderedText",void 0),e=n([Object(l.a)("md-chip")],e),o.ELEMENT=e}(c||(c={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[54],{86:function(e,t,o){"use strict";o.r(t),o.d(t,"CheckboxGroup",(function(){return r}));var r,c=o(1),s=o(7),n=o(4),l=o(5),i=o(0),a=o(58),h=function(e,t,o,r){var c,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(n=(s<3?c(n):s>3?c(t,o,n):c(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};!function(e){let t=class extends(Object(s.d)(i.LitElement)){constructor(){super(...arguments),this.label="group",this.alignment="vertical"}static get styles(){return[n.a,a.a]}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}switchCheckboxOnArrowPress(e,t=1){const o=super.getAvailableSelectedIndex(e,t);-1!==o&&(this.selected=o)}handleKeyDown(e){const{code:t}=e;switch(t){case c.a.ArrowUp:case c.a.ArrowLeft:0===this.selected?this.switchCheckboxOnArrowPress(this.slotted.length-1,-1):this.switchCheckboxOnArrowPress(this.selected-1,-1);break;case c.a.ArrowDown:case c.a.ArrowRight:this.selected===this.slotted.length-1?this.switchCheckboxOnArrowPress(0):this.switchCheckboxOnArrowPress(this.selected+1)}}get slotElement(){return this.checkboxSlot}render(){return i.html`
2
+ <div role="group" aria-labelledby="id-group-label">
3
+ <slot name="checkbox"></slot>
4
+ </div>
5
+ `}};h([Object(i.property)({type:String,attribute:"group-label"})],t.prototype,"label",void 0),h([Object(i.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),h([Object(i.query)("slot[name='checkbox']")],t.prototype,"checkboxSlot",void 0),t=h([Object(l.a)("md-checkboxgroup")],t),e.ELEMENT=t}(r||(r={}))}}]);