@momentum-ui/web-components 2.14.16 → 2.14.18

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 (439) hide show
  1. package/README.md +1 -1
  2. package/dist/chunks/md-0.js +1 -1
  3. package/dist/chunks/md-1.js +1 -1
  4. package/dist/chunks/md-10.js +1 -26
  5. package/dist/chunks/md-100.js +1 -1
  6. package/dist/chunks/md-101.js +1 -1
  7. package/dist/chunks/md-102.js +1 -1
  8. package/dist/chunks/md-103.js +1 -1
  9. package/dist/chunks/md-104.js +1 -1
  10. package/dist/chunks/md-105.js +1 -1
  11. package/dist/chunks/md-106.js +1 -1
  12. package/dist/chunks/md-107.js +1 -1
  13. package/dist/chunks/md-108.js +1 -1
  14. package/dist/chunks/md-109.js +1 -1
  15. package/dist/chunks/md-11.js +1 -1
  16. package/dist/chunks/md-110.js +1 -1
  17. package/dist/chunks/md-111.js +1 -1
  18. package/dist/chunks/md-112.js +1 -1
  19. package/dist/chunks/md-113.js +1 -1
  20. package/dist/chunks/md-114.js +1 -1
  21. package/dist/chunks/md-115.js +1 -1
  22. package/dist/chunks/md-116.js +1 -1
  23. package/dist/chunks/md-117.js +1 -1
  24. package/dist/chunks/md-118.js +1 -1
  25. package/dist/chunks/md-119.js +1 -1
  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 +1 -11
  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 +10 -8
  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 +9 -1
  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 +1 -26
  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 +23 -119
  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 +122 -17
  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 +17 -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 +1 -8
  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 +8 -23
  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 +23 -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 +1 -7
  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 +7 -8
  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 +8 -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 +1 -61
  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 -1
  198. package/dist/chunks/md-277.js +1 -1
  199. package/dist/chunks/md-278.js +1 -1
  200. package/dist/chunks/md-279.js +1 -1
  201. package/dist/chunks/md-28.js +55 -1
  202. package/dist/chunks/md-280.js +1 -0
  203. package/dist/chunks/md-281.js +1 -0
  204. package/dist/chunks/md-282.js +1 -0
  205. package/dist/chunks/md-29.js +1 -221
  206. package/dist/chunks/md-3.js +1 -1
  207. package/dist/chunks/md-30.js +213 -43
  208. package/dist/chunks/md-31.js +49 -1
  209. package/dist/chunks/md-32.js +1 -1
  210. package/dist/chunks/md-33.js +1 -36
  211. package/dist/chunks/md-34.js +36 -33
  212. package/dist/chunks/md-35.js +32 -22
  213. package/dist/chunks/md-36.js +23 -5
  214. package/dist/chunks/md-37.js +5 -5
  215. package/dist/chunks/md-38.js +5 -1
  216. package/dist/chunks/md-39.js +1 -21
  217. package/dist/chunks/md-4.js +1 -1
  218. package/dist/chunks/md-40.js +20 -41
  219. package/dist/chunks/md-41.js +26 -1
  220. package/dist/chunks/md-42.js +42 -30
  221. package/dist/chunks/md-43.js +1 -16
  222. package/dist/chunks/md-44.js +30 -1
  223. package/dist/chunks/md-45.js +12 -23
  224. package/dist/chunks/md-46.js +1 -5
  225. package/dist/chunks/md-47.js +26 -37
  226. package/dist/chunks/md-48.js +5 -13
  227. package/dist/chunks/md-49.js +37 -25
  228. package/dist/chunks/md-5.js +1 -1
  229. package/dist/chunks/md-50.js +13 -20
  230. package/dist/chunks/md-51.js +31 -119
  231. package/dist/chunks/md-52.js +17 -95
  232. package/dist/chunks/md-53.js +121 -11
  233. package/dist/chunks/md-54.js +97 -4
  234. package/dist/chunks/md-55.js +11 -77
  235. package/dist/chunks/md-56.js +4 -67
  236. package/dist/chunks/md-57.js +74 -19
  237. package/dist/chunks/md-58.js +68 -14
  238. package/dist/chunks/md-59.js +21 -4
  239. package/dist/chunks/md-6.js +3 -3
  240. package/dist/chunks/md-60.js +14 -51
  241. package/dist/chunks/md-61.js +4 -21
  242. package/dist/chunks/md-62.js +51 -5
  243. package/dist/chunks/md-63.js +22 -1
  244. package/dist/chunks/md-64.js +46 -22
  245. package/dist/chunks/md-65.js +4 -4
  246. package/dist/chunks/md-66.js +1 -11
  247. package/dist/chunks/md-67.js +22 -141
  248. package/dist/chunks/md-68.js +4 -29
  249. package/dist/chunks/md-69.js +11 -70
  250. package/dist/chunks/md-7.js +1 -1
  251. package/dist/chunks/md-70.js +141 -18
  252. package/dist/chunks/md-71.js +29 -21
  253. package/dist/chunks/md-72.js +70 -17
  254. package/dist/chunks/md-73.js +19 -76
  255. package/dist/chunks/md-74.js +22 -7
  256. package/dist/chunks/md-75.js +17 -72
  257. package/dist/chunks/md-76.js +76 -78
  258. package/dist/chunks/md-77.js +7 -66
  259. package/dist/chunks/md-78.js +72 -17
  260. package/dist/chunks/md-79.js +78 -5
  261. package/dist/chunks/md-8.js +26 -1
  262. package/dist/chunks/md-80.js +65 -18
  263. package/dist/chunks/md-81.js +17 -1
  264. package/dist/chunks/md-82.js +4 -167
  265. package/dist/chunks/md-83.js +18 -42
  266. package/dist/chunks/md-84.js +1 -101
  267. package/dist/chunks/md-85.js +166 -80
  268. package/dist/chunks/md-86.js +42 -11
  269. package/dist/chunks/md-87.js +98 -39
  270. package/dist/chunks/md-88.js +78 -30
  271. package/dist/chunks/md-89.js +12 -1
  272. package/dist/chunks/md-9.js +1 -1
  273. package/dist/chunks/md-90.js +42 -1
  274. package/dist/chunks/md-91.js +34 -1
  275. package/dist/chunks/md-92.js +1 -1
  276. package/dist/chunks/md-93.js +1 -1
  277. package/dist/chunks/md-94.js +1 -1
  278. package/dist/chunks/md-95.js +1 -1
  279. package/dist/chunks/md-96.js +1 -1
  280. package/dist/chunks/md-97.js +1 -1
  281. package/dist/chunks/md-98.js +1 -1
  282. package/dist/chunks/md-99.js +1 -1
  283. package/dist/comp/md-accordion-entry.js +1 -1
  284. package/dist/comp/md-accordion-item-entry.js +1 -1
  285. package/dist/comp/md-accordion-item.js +4 -4
  286. package/dist/comp/md-accordion.js +4 -4
  287. package/dist/comp/md-activity-button-entry.js +1 -1
  288. package/dist/comp/md-activity-button.js +3 -3
  289. package/dist/comp/md-advance-list-entry.js +1 -1
  290. package/dist/comp/md-advance-list.js +1 -1
  291. package/dist/comp/md-alert-banner-entry.js +1 -1
  292. package/dist/comp/md-alert-banner.js +3 -3
  293. package/dist/comp/md-alert-entry.js +1 -1
  294. package/dist/comp/md-alert.js +4 -4
  295. package/dist/comp/md-audio-player-entry.js +1 -1
  296. package/dist/comp/md-audio-player.js +6 -5
  297. package/dist/comp/md-avatar-entry.js +1 -1
  298. package/dist/comp/md-avatar.js +4 -4
  299. package/dist/comp/md-badge-entry.js +1 -1
  300. package/dist/comp/md-badge.js +1 -1
  301. package/dist/comp/md-breadcrumb-entry.js +1 -1
  302. package/dist/comp/md-breadcrumb.js +1 -1
  303. package/dist/comp/md-button-entry.js +1 -1
  304. package/dist/comp/md-button-group-entry.js +1 -1
  305. package/dist/comp/md-button-group.js +3 -3
  306. package/dist/comp/md-card-ai-entry.js +1 -1
  307. package/dist/comp/md-card-ai.js +3 -3
  308. package/dist/comp/md-card-entry.js +1 -1
  309. package/dist/comp/md-card.js +10 -9
  310. package/dist/comp/md-chat-message-entry.js +1 -1
  311. package/dist/comp/md-chat-message.js +5 -5
  312. package/dist/comp/md-checkbox-entry.js +1 -1
  313. package/dist/comp/md-checkbox.js +4 -4
  314. package/dist/comp/md-checkboxgroup-entry.js +1 -1
  315. package/dist/comp/md-checkboxgroup.js +4 -4
  316. package/dist/comp/md-chip-entry.js +1 -1
  317. package/dist/comp/md-chip.js +7 -6
  318. package/dist/comp/md-coachmark-entry.js +1 -1
  319. package/dist/comp/md-coachmark-popover-entry.js +1 -0
  320. package/dist/comp/md-coachmark-popover.js +15 -0
  321. package/dist/comp/md-coachmark.js +3 -3
  322. package/dist/comp/md-combobox-entry.js +1 -1
  323. package/dist/comp/md-combobox.js +5 -5
  324. package/dist/comp/md-composite-avatar-entry.js +1 -1
  325. package/dist/comp/md-composite-avatar.js +2 -2
  326. package/dist/comp/md-date-range-picker-entry.js +1 -1
  327. package/dist/comp/md-date-range-picker.js +10 -9
  328. package/dist/comp/md-date-time-picker-entry.js +1 -1
  329. package/dist/comp/md-date-time-picker.js +6 -5
  330. package/dist/comp/md-datepicker-calendar-entry.js +1 -1
  331. package/dist/comp/md-datepicker-calendar.js +7 -7
  332. package/dist/comp/md-datepicker-day-entry.js +1 -1
  333. package/dist/comp/md-datepicker-day.js +2 -2
  334. package/dist/comp/md-datepicker-entry.js +1 -1
  335. package/dist/comp/md-datepicker-month-entry.js +1 -1
  336. package/dist/comp/md-datepicker-month.js +4 -4
  337. package/dist/comp/md-datepicker-week-entry.js +1 -1
  338. package/dist/comp/md-datepicker-week.js +3 -3
  339. package/dist/comp/md-datepicker.js +9 -8
  340. package/dist/comp/md-draggable-entry.js +1 -1
  341. package/dist/comp/md-draggable-item-entry.js +1 -1
  342. package/dist/comp/md-draggable-item.js +4 -4
  343. package/dist/comp/md-draggable.js +4 -4
  344. package/dist/comp/md-dropdown-entry.js +1 -1
  345. package/dist/comp/md-dropdown.js +3 -3
  346. package/dist/comp/md-editable-field-entry.js +1 -1
  347. package/dist/comp/md-editable-field.js +6 -6
  348. package/dist/comp/md-favorite-entry.js +1 -1
  349. package/dist/comp/md-favorite.js +3 -3
  350. package/dist/comp/md-floating-minimize-entry.js +1 -1
  351. package/dist/comp/md-floating-minimize.js +3 -3
  352. package/dist/comp/md-floating-modal-entry.js +1 -1
  353. package/dist/comp/md-floating-modal.js +4 -4
  354. package/dist/comp/md-form-entry.js +1 -1
  355. package/dist/comp/md-form.js +3 -3
  356. package/dist/comp/md-grabber-entry.js +1 -1
  357. package/dist/comp/md-grabber.js +3 -3
  358. package/dist/comp/md-help-text-entry.js +1 -1
  359. package/dist/comp/md-help-text.js +1 -1
  360. package/dist/comp/md-icon-entry.js +1 -1
  361. package/dist/comp/md-icon.js +2 -2
  362. package/dist/comp/md-inpu.js +3 -3
  363. package/dist/comp/md-input-entry.js +1 -1
  364. package/dist/comp/md-input-file.js +1 -1
  365. package/dist/comp/md-input.js +4 -4
  366. package/dist/comp/md-label-entry.js +1 -1
  367. package/dist/comp/md-label.js +1 -1
  368. package/dist/comp/md-link-entry.js +1 -1
  369. package/dist/comp/md-link.js +1 -1
  370. package/dist/comp/md-list-entry.js +1 -1
  371. package/dist/comp/md-list-item-entry.js +1 -1
  372. package/dist/comp/md-list-item.js +4 -4
  373. package/dist/comp/md-list.js +4 -4
  374. package/dist/comp/md-loading-entry.js +1 -1
  375. package/dist/comp/md-loading.js +1 -1
  376. package/dist/comp/md-meeting-alert-entry.js +1 -1
  377. package/dist/comp/md-meeting-alert.js +5 -5
  378. package/dist/comp/md-menu-entry.js +1 -1
  379. package/dist/comp/md-menu-item-entry.js +1 -1
  380. package/dist/comp/md-menu-item.js +1 -1
  381. package/dist/comp/md-menu-overlay-entry.js +1 -1
  382. package/dist/comp/md-menu-overlay.js +2 -1
  383. package/dist/comp/md-menu.js +3 -3
  384. package/dist/comp/md-modal-entry.js +1 -1
  385. package/dist/comp/md-modal.js +3 -3
  386. package/dist/comp/md-pagination-entry.js +1 -1
  387. package/dist/comp/md-pagination.js +3 -3
  388. package/dist/comp/md-phone-input-entry.js +1 -1
  389. package/dist/comp/md-phone-input.js +7 -7
  390. package/dist/comp/md-popover-entry.js +1 -0
  391. package/dist/comp/md-popover.js +14 -0
  392. package/dist/comp/md-progress-bar-entry.js +1 -1
  393. package/dist/comp/md-progress-bar.js +1 -1
  394. package/dist/comp/md-radio-entry.js +1 -1
  395. package/dist/comp/md-radio.js +4 -4
  396. package/dist/comp/md-radiogroup-entry.js +1 -1
  397. package/dist/comp/md-radiogroup.js +4 -4
  398. package/dist/comp/md-slider-entry.js +1 -1
  399. package/dist/comp/md-slider.js +3 -3
  400. package/dist/comp/md-spinner-entry.js +1 -1
  401. package/dist/comp/md-tab-entry.js +1 -1
  402. package/dist/comp/md-tab-panel-entry.js +1 -1
  403. package/dist/comp/md-tab-panel.js +4 -4
  404. package/dist/comp/md-tab.js +4 -4
  405. package/dist/comp/md-table-advanced-entry.js +1 -1
  406. package/dist/comp/md-table-advanced.js +5 -4
  407. package/dist/comp/md-table-entry.js +1 -1
  408. package/dist/comp/md-table.js +3 -3
  409. package/dist/comp/md-tabs-entry.js +1 -1
  410. package/dist/comp/md-tabs.js +8 -7
  411. package/dist/comp/md-task-item-entry.js +1 -1
  412. package/dist/comp/md-task-item.js +4 -4
  413. package/dist/comp/md-theme-entry.js +1 -1
  414. package/dist/comp/md-theme.js +2 -2
  415. package/dist/comp/md-timepicker-entry.js +1 -1
  416. package/dist/comp/md-timepicker.js +9 -9
  417. package/dist/comp/md-toggle-switch-entry.js +1 -1
  418. package/dist/comp/md-toggle-switch.js +4 -4
  419. package/dist/comp/md-tooltip-entry.js +1 -1
  420. package/dist/comp/md-tooltip.js +5 -4
  421. package/dist/index-entry.js +2 -2
  422. package/dist/index.js +55 -52
  423. package/dist/types/components/advance-list/AdvanceList.d.ts +3 -0
  424. package/dist/types/components/alert/Alert.d.ts +7 -5
  425. package/dist/types/components/avatar/Avatar.d.ts +1 -1
  426. package/dist/types/components/avatar/Presence.d.ts +1 -2
  427. package/dist/types/components/avatar/Presence.utils.d.ts +0 -1
  428. package/dist/types/components/button/Button.d.ts +3 -1
  429. package/dist/types/components/chip/Chip.d.ts +2 -2
  430. package/dist/types/components/coachmark-popover/CoachmarkPopover.d.ts +211 -0
  431. package/dist/types/components/combobox/ComboBox.d.ts +25 -11
  432. package/dist/types/components/input/Input.d.ts +1 -0
  433. package/dist/types/components/menu-overlay/MenuOverlay.d.ts +1 -1
  434. package/dist/types/components/popover/Popover.d.ts +184 -0
  435. package/dist/types/components/popover/Popover.types.d.ts +8 -0
  436. package/dist/types/components/timepicker/TimePicker.d.ts +1 -1
  437. package/dist/types/components/tooltip/Tooltip.d.ts +3 -2
  438. package/dist/types/index.d.ts +3 -1
  439. package/package.json +1 -1
@@ -1,19 +1,142 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[70],{97:function(t,e,i){"use strict";i.r(e),i.d(e,"Form",(function(){return o}));var o,r=i(7),n=i(0),s=i(3),a=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends(Object(r.e)(n.LitElement)){constructor(){super(...arguments),this.rel="",this.name="",this.action="",this.label="",this.method="get",this.target="_self",this.enctype="application/x-www-form-urlencoded",this.novalidate=!1,this.charset="UTF-8",this.isvalid=!1,this.token="on",this.allowRedirect=!1,this.autofillname="input-name",this.formElement=[],this.handleSubmit=t=>{t.preventDefault(),this.validated()&&this.submitForm()},this.handleFormSubmit=t=>{this.allowRedirect||t.preventDefault(),this.dispatchEvent(new CustomEvent("form-submitted",{composed:!0,bubbles:!0}))}}get formMethod(){return"GET"===this.method?"get":"POST"===this.method?"post":this.method}isSubmittable(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement}isDisabled(t){return t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")}findSubmittable(t,e){const i=Array.from(t.children);for(const t of i)if(!this.isDisabled(t))if(this.isSubmittable(t)&&e.add(t),t.shadowRoot)this.findSubmittable(t.shadowRoot,e);else if("SLOT"===t.tagName){const i=t.assignedElements();if(i.length){const{parentElement:t}=i[0];t&&this.findSubmittable(t,e)}}else this.findSubmittable(t,e);return[...e]}validated(){return!!this.novalidate||this.isvalid}submitForm(){const{form:t}=this;t.requestSubmit?t.requestSubmit():t.submit()}get submitButton(){return this.querySelector("button[type='submit']")||this.querySelector("input[type='submit']")||this.querySelector("md-button[type='submit']")}disconnectedCallback(){super.disconnectedCallback(),this.cleanupWrappedForms(),this.teardownEvents()}deleteWrappedForm(t){t.removeEventListener("submit",this.handleFormSubmit)}cleanupWrappedForms(){const{formElement:t}=this;if(t.length)for(const e of t)this.deleteWrappedForm(e);this.formElement=[]}createWrappedForm(t){const e=document.createElement("form");e.addEventListener("submit",this.handleFormSubmit);const{parentNode:i}=t;t.autocomplete=this.token,t.id||(t.id=this.autofillname),t.name||(t.name=this.autofillname),i&&(this.formElement.push(e),i.insertBefore(e,t),e.append(t))}teardownEvents(){this.submitButton&&this.submitButton.removeEventListener("click",this.handleSubmit)}setupEvents(){this.submitButton&&this.submitButton.addEventListener("click",this.handleSubmit)}setupSubmittable(){const t=this.findSubmittable(this.form,new Set);if(t.length)for(const e of t)this.createWrappedForm(e)}slottedChanged(){this.setupSubmittable(),this.setupEvents()}render(){return n.html`
2
- <form
3
- class="md-form"
4
- role="form"
5
- name=${Object(s.ifDefined)(this.name||void 0)}
6
- rel=${Object(s.ifDefined)(this.rel||void 0)}
7
- action=${Object(s.ifDefined)(this.action||void 0)}
8
- accept-charset=${this.charset}
9
- enctype=${this.enctype}
10
- aria-label=${Object(s.ifDefined)(this.label||void 0)}
11
- ?novalidate=${this.novalidate}
12
- method=${this.formMethod}
13
- target=${this.target}
14
- part="form"
15
- @submit=${this.handleFormSubmit}
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[70],{122:function(e,t,o){"use strict";o.r(t),o.d(t,"Dropdown",(function(){return g}));o(14);var r=o(1),i=o(7),s=o(6),d=o(0),n=o(2),a=o(12),l=o(3),p=o(13),c=o(16),h=o(8),u=d.css`:host(:focus){box-shadow:none!important;outline:0!important}:host .md-dropdown{display:flex;flex-direction:column;position:relative}:host .md-dropdown-select{display:none}:host .md-dropdown-label{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;background-color:var(--md-primary-bg-color);border:1px solid var(--md-secondary-seperator-color);border-radius:var(--dropdown-group-radius,.25rem);min-height:2rem;padding:0 .75rem}:host .md-dropdown-label--text{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:flex-start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--md-secondary-text-color);line-height:2rem;outline:0;width:6.25rem;flex:1 0 auto}:host .md-dropdown-label--icon{transition:all .15s linear;align-self:center;background:rgba(0,0,0,0);border:0;cursor:pointer;margin:0;margin-left:calc(.25rem*2);outline:0;padding:0;padding-top:calc(.25rem/2);position:relative;vertical-align:bottom;height:inherit;display:flex}:host .md-dropdown-label--icon md-icon{color:var(--md-primary-text-color,#f7f7f7)}:host .md-dropdown-label:hover{background-color:var(--dropdown-bg-color-hover,#dedede)}:host .md-dropdown-label:active{background-color:var(--dropdown-bg-color-active,#ccc)}:host .md-dropdown-list{list-style:none;margin:0;padding:0;display:none;background-color:var(--md-primary-bg-color);border:1px solid var(--dropdown-list-border-color);border-radius:.5rem;box-shadow:0 4px 8px rgba(0,0,0,.16),0 0 1px rgba(0,0,0,.16);left:0;overflow:auto;overflow-x:hidden;position:absolute;top:calc(100% + .25rem);width:100%;z-index:99;padding:calc(var(--dropdown-list-padding)/16*1rem);font-size:var(--body-primary-font-size,inherit)}:host .md-dropdown-option{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:flex-start;color:var(--md-primary-text-color,#f7f7f7);padding:.4375rem .75rem .5rem;border-radius:calc(var(--dropdown-list-item-border-radius)/16*1rem);height:calc(var(--dropdown-list-item-height)/16*1rem)}:host .md-dropdown-option .select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:default;width:calc(100% - 1rem);display:block}:host .md-dropdown-option:hover{background-color:var(--dropdown-list-item-bg-color-hover,#91ebff)}:host .md-dropdown-option[focused]{background-color:var(--dropdown-list-item-bg-color-hover,#91ebff);box-shadow:none;outline:0;box-shadow:0 0 0 .09375rem var(--dropdown-list-item-border-focus)}:host .md-dropdown-option[selected]{background-color:var(--dropdown-list-item-bg-color-focus,#00a0d1);box-shadow:none;outline:0;box-shadow:0 0 0 .09375rem var(--dropdown-list-item-border-focus)}:host .md-dropdown__expanded .md-dropdown-list{display:block}:host .md-dropdown__expanded .md-dropdown-label--icon{transform:rotate(180deg)}:host .md-dropdown__expanded .md-dropdown-button.arrow-down{transform:rotate(180deg)}:host .md-dropdown--pill .group,:host .md-dropdown--pill .md-dropdown-label{border-radius:18px}:host .md-dropdown .group{align-items:start;background-color:var(--md-primary-bg-color);border:1px solid var(--md-secondary-seperator-color);border-radius:var(--dropdown-group-radius,.25rem);display:flex;min-height:2rem;padding:0 .75rem;height:2.125rem}:host .md-dropdown .group md-icon{color:var(--md-primary-text-color,#545454);cursor:pointer;fill:var(--md-secondary-text-color,#545454);height:100%}:host .md-dropdown .group md-icon:focus{box-shadow:none;outline:0;box-shadow:0 0 0 .125rem var(--md-focus-border-color,#545454)}:host .md-dropdown .group:hover{background-color:var(--dropdown-bg-color-hover,#dedede)}:host .md-dropdown .group:active{background-color:var(--dropdown-bg-color-active,#ccc)}:host .md-dropdown .group input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgba(0,0,0,0);border:0;color:var(--md-primary-text-color);display:inline-block;flex:1 1 auto;height:2rem;outline:0}:host .md-dropdown .group ::input-placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;width:100%}:host .md-dropdown .group .md-dropdown-left-icon{margin-right:.25rem}:host .md-dropdown .md-dropdown-button[disabled] md-icon{color:var(--md-disabled-text-color,#b2b2b2)}:host .md-dropdown .md-dropdown-input[readonly]{pointer-events:none}:host .md-dropdown.md-error .group,:host .md-dropdown.md-error .group:active{border-color:var(--input-error-border-color)!important}:host .md-dropdown.md-warning .group,:host .md-dropdown.md-warning .group:active{border-color:var(--input-warning-border-color)!important}:host .md-dropdown.md-success .group,:host .md-dropdown.md-success .group:active{border-color:var(--input-success-border-color)!important}:host .help-text,:host .md-dropbox__messages{padding-top:.375rem}:host .group[readonly]{border-color:var(--dropdown-bg-color-disabled)!important}:host .group[readonly] md-icon{color:var(--dropdown-bg-color-disabled)!important}:host .md-dropdown-button{transition:all .15s linear;align-self:center;background:rgba(0,0,0,0);border:0;cursor:pointer;margin:0;margin-left:calc(.25rem*2);outline:0;padding:0;padding-top:calc(.25rem*1.5);position:relative;vertical-align:bottom;height:inherit;display:flex;align-items:center}:host .md-dropdown-button.clear{align-items:center;padding-top:.25rem;display:flex}:host .md-dropdown-button md-icon{color:var(--combobox-dropdown-item-icon-color)}:host .md-combobox-button.clear{height:auto;padding:.115rem}:host .md-combobox-button.arrow-down:focus,:host .md-combobox-button.clear:focus{outline:2px solid var(--button-focus-ring-color,#007aa3)}:host .md-new-dropdown-label{background-color:rgba(0,0,0,0);border-radius:8px}:host .md-new-dropdown-label--text{color:var(--md-primary-text-color)}:host .md-new-dropdown-label:hover{background-color:var(--dropdown-bg-color-hover,#dedede)}:host .md-new-dropdown-label:active{background-color:var(--dropdown-bg-color-active,#ccc)}:host .md-new-dropdown .group{border-radius:8px;background-color:rgba(0,0,0,0)}:host(:active) .md-new-dropdown .group,:host(:active) .md-new-dropdown-label{outline:2px solid var(--input-default-outline-color);outline-offset:.125rem;box-shadow:none;border:1px solid var(--md-secondary-seperator-color)!important}:host([focus-visible]) .md-dropdown-label{border-color:var(--dropdown-border-color-focus,#005e7d);box-shadow:none;outline:0}:host([focus-visible]) .group{border-color:var(--dropdown-border-color-focus,#005e7d)}:host([focus-visible]) .md-new-dropdown .group,:host([focus-visible]) .md-new-dropdown-label{outline:2px solid var(--dropdown-border-color-focus)!important;outline-offset:.125rem!important;box-shadow:none;border-color:var(--combobox-focus-new-border-color)}:host([disabled]) .md-dropdown-label{background-color:var(--md-tertiary-bg-color)}:host([disabled]) .md-dropdown-label:active,:host([disabled]) .md-dropdown-label:hover{background-color:var(--md-tertiary-bg-color);pointer-events:none}:host([disabled]) .md-dropdown-label:active>md-icon,:host([disabled]) .md-dropdown-label:hover>md-icon{opacity:.3}:host([disabled]) .md-dropdown-label:focus-visible{border-color:var(--dropdown-border-color-focus,#005e7d);outline:0}:host([disabled]) .group{background-color:var(--md-tertiary-bg-color)}:host([disabled]) .group md-icon{opacity:.3}:host([disabled]) .group:active,:host([disabled]) .group:hover{background-color:var(--md-tertiary-bg-color);pointer-events:none}:host([disabled]) .group:focus-visible{border-color:var(--dropdown-border-color-focus,#005e7d);outline:0}:host([disabled]) md-help-text{color:var(--dropdown-bg-color-disabled,#b2b2b2)}:host([disabled]) .md-new-dropdown-label{background-color:rgba(0,0,0,0);border-color:var(--dropdown-bg-color-disabled,#b2b2b2)!important;outline:0!important;box-shadow:none}:host([disabled]) .md-new-dropdown-label--text{color:var(--dropdown-bg-color-disabled,#b2b2b2)}:host([disabled]) .md-new-dropdown-label .md-dropdown-label--icon md-icon{color:var(--dropdown-bg-color-disabled,#b2b2b2)}:host([disabled]) .md-new-dropdown-label:active,:host([disabled]) .md-new-dropdown-label:hover{background-color:rgba(0,0,0,0);pointer-events:none;outline:0!important;box-shadow:none;border-color:var(--dropdown-bg-color-disabled,#b2b2b2)!important}:host([disabled]) .md-new-dropdown-label:focus-visible{border-color:var(--dropdown-bg-color-disabled,#b2b2b2)!important;outline:0!important;box-shadow:none}:host([disabled]) .md-new-dropdown .group{background:rgba(0,0,0,0);border-color:var(--dropdown-bg-color-disabled,#b2b2b2)!important;pointer-events:none;outline:0!important}:host([disabled]) .md-new-dropdown .group input{color:var(--dropdown-bg-color-disabled,#b2b2b2)}:host([disabled]) .md-new-dropdown .group:active,:host([disabled]) .md-new-dropdown .group:hover{border-color:var(--dropdown-bg-color-disabled,#b2b2b2)!important}:host([disabled]) .md-new-dropdown .group:focus-visible{border-color:var(--dropdown-bg-color-disabled,#b2b2b2)!important}@media(forced-colors:active){:host([focus-visible]) .md-dropdown .md-dropdown-label{border:2px solid Highlight}:host([focus-visible]) .md-dropdown .md-dropdown-label--text{forced-color-adjust:none;background-color:Canvas;color:CanvasText}:host([focus-visible]) .md-dropdown-list{border:1px solid CanvasText}:host .md-dropdown-option[focused]{forced-color-adjust:none;background-color:Highlight;color:HighlightText}:host .group input{color:HighlightText}:host .group ::input-placeholder{color:GrayText}:host([disabled]) .md-dropdown .md-dropdown-label{border:1px solid GrayText!important}:host([disabled]) .group,:host([disabled]) .group:active{border:1px solid GrayText!important;outline:0!important}:host([disabled]) .group input,:host([disabled]) .group:active input{color:GrayText}:host([disabled]) .group ::input-placeholder,:host([disabled]) .group:active ::input-placeholder{color:HighlightText!important}}`,b=function(e,t,o,r){var i,s=arguments.length,d=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(d=(s<3?i(d):s>3?i(t,o,d):i(t,o))||d);return s>3&&d&&Object.defineProperty(t,o,d),d},m=function(e,t,o,r){return new(o||(o=Promise))((function(i,s){function d(e){try{a(r.next(e))}catch(e){s(e)}}function n(e){try{a(r.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(d,n)}a((r=r.apply(e,t||[])).next())}))};var g;!function(e){class t{determineMessageType(e){return e.reduce((e,t)=>"error"===t?e:t.type,"")}filterMessagesByType(e,t){return e.reduce((e,o)=>o.type===t?e.concat(o.message):e,[])}}e.MessageController=t;let o=class extends(Object(i.a)(d.LitElement)){constructor(){super(...arguments),this.title="Select...",this.options=[],this.optionId="",this.optionValue="",this.defaultOption="",this.disabled=!1,this.customTabIndex=0,this.allowUnselected=!1,this.visibleOptions=8,this.newMomentum=!1,this.compact=!1,this.searchable=!1,this.searchItem=!1,this.inputValue="",this.placeholder="Select...",this.readOnly=!1,this.autofocus=!1,this.leftIcon="",this.trimSpace=!1,this.resultsTextLocalization="No Results",this.helpText="",this.messageArr=[],this.htmlId="",this.clearAriaLabel="Clear",this.clearIconHeight="auto",this.arrowAriaLabel="Expand",this.popupChevronAriaHidden="true",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForDropdown="",this.renderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,this.messageController=new t,this.lastMaxHeight="",this.onOutsideClick=e=>{let t=!1;const o=e.composedPath();o.length&&(t=!!o.find(e=>e===this),t||this.expanded&&this.collapse())},this.onKeyDown=e=>{switch(e.code){case r.b.Tab:this.expanded&&(e.stopPropagation(),this.collapse());break;case r.b.Space:case r.b.Enter:this.expanded?(this.select(),this.collapse()):this.expand();break;case r.b.ArrowDown:this.expanded?this.focusNext():this.expand();break;case r.b.ArrowUp:this.expanded?this.focusPrev():this.expand();break;case r.b.Home:this.expanded?this.focusFirst():this.expand();break;case r.b.End:this.expanded?this.focusLast():this.expand();break;case r.b.Escape||r.b.Backspace:this.expanded&&(e.stopPropagation(),this.collapse())}},this.notifyInputValueChanged=Object(c.b)(e=>{this.dispatchEvent(new CustomEvent("dropdown-input",{composed:!0,bubbles:!0,detail:{value:e}})),this.notifySearchResultCount(),requestAnimationFrame(()=>{this.input.focus()})},250)}connectedCallback(){super.connectedCallback(),this.setupEvents()}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(e){super.firstUpdated(e),e.forEach((e,t)=>{if("defaultOption"===t&&this.defaultOption){const{key:e}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=e}}),this.searchable&&this.setInitialValue()}updated(e){super.updated(e),e.forEach((e,t)=>{if("options"===t&&this.updateRenderOptions(),"selectedKey"===t){const e=this.renderOptions.findIndex(e=>e.key===this.selectedKey);-1!==e&&(this.focusToIndex(e),this.searchable&&this.setInitialValue())}if("expanded"===t&&this.updateListDOM(),"focusedIndex"===t&&this.updateListDOM(),"defaultOption"===t&&this.defaultOption){const{key:e}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=e}})}notifySearchResultCount(){if(this.searchResultAriaLabel){const e=/{{.*?}}/g;this.ariaLabelForDropdown=this.searchResultAriaLabel.replace(e,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForDropdown=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForDropdown=`Dropdown Element, ${this.filteredOptions.length} results found.`}setInitialValue(){var e;if(this.options.length){const t=this.renderOptions.find(e=>e.key===this.selectedKey),o=null==t?void 0:t.option;o&&(this.setInputValue(this.getOptionValue(o)),null===(e=this.input)||void 0===e||e.setAttribute(r.a.AriaActivedescendant,this.getOptionId(o)),this.notifyInputValueChanged(this.getOptionValue(o)),this.requestUpdate())}}getOptionValue(e){return this.isOptionObject(e)&&!this.optionValue?Object.values(e)[0]:this.isOptionObject(e)?e[this.optionValue]:e}getOptionId(e){return this.isOptionObject(e)?e[this.optionId]:e}isOptionObject(e){return"object"==typeof e&&null!==e}updateRenderOptions(){const e=[];this.focusReset();const t=this.options.reduce((t,o)=>{const{key:r,value:i}=this.getOptionKeyValuePair(o);return-1!==e.indexOf(r)?console.error(`Dropdown already have option key: "${r}". Ignoring `):r?(e.push(r),t.push({key:r,value:i,option:o})):console.error(`Dropdown key is not defined: "${r}". (value: "${i}"). Ignoring `),t},[]);this.allowUnselected&&t.unshift({key:"",value:this.title}),this.renderOptions=t}updateListDOM(){return m(this,void 0,void 0,(function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))}))}resizeDropdownList(){return m(this,void 0,void 0,(function*(){yield new Promise(e=>requestAnimationFrame(()=>{if(this.optionsListItems)if(this.optionsListItems.length>this.visibleOptions){const e=[...this.optionsListItems].slice(0,this.visibleOptions).reduce((e,t)=>e+t.offsetHeight,0)+"px";this.lastMaxHeight!==e&&(this.optionsList.style.maxHeight=e,this.lastMaxHeight=e)}else{const e="auto";this.lastMaxHeight!==e&&(this.optionsList.style.maxHeight=e,this.lastMaxHeight=e)}e()}))}))}handleFocusIn(e){this.disabled&&this.readOnly||super.handleFocusIn&&super.handleFocusIn(e),this.dispatchEvent(new CustomEvent("dropdown-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(e){super.handleFocusOut&&super.handleFocusOut(e),this.dispatchEvent(new CustomEvent("dropdown-focus-out",{composed:!0,bubbles:!0}))}static get styles(){return[s.a,u]}get filteredOptions(){const e=this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue;if(!e.trim())return this.renderOptions;const t=this.renderOptions.filter(t=>t.value.toLowerCase().includes(e.toLowerCase()));return 0===t.length?[{key:"no-result",value:"No Result",disabled:!0}]:t}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}setVisualListbox(e){this.expanded=e}updateOnNextFrame(e){requestAnimationFrame(e)}setInputValue(e=""){this.input.value=e}shouldChangeButton(){const e=this.input&&this.input.value.length>0;return e&&document.dispatchEvent(new CustomEvent("on-widget-update")),e}toggleVisualListBox(e){var t,o;if(!this.readOnly){if(e.target.classList.contains("md-dropdown-input"))e.target.focus();else if("md-icon"===e.target.localName){const r=null===(o=null===(t=e.target.parentElement)||void 0===t?void 0:t.parentElement)||void 0===o?void 0:o.parentElement;if(r){const e=r.querySelector(".md-dropdown-input");setTimeout(()=>{e.focus()},10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus()}}handleRemoveAll(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}removeAllSelected(){var e;this.focusReset(),this.selectedKey="",this.inputValue="",this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(r.a.AriaActivedescendant,""),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus()}),this.dispatchEvent(new CustomEvent("dropdown-selection-removed",{composed:!0,bubbles:!0,detail:{}}))}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("remove-all-selected",this.removeAllSelected)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown),this.removeEventListener("remove-all-selected",this.removeAllSelected)}expand(){this.expanded=!0;const e=-1!==this.focusedIndex?"combo-"+this.focusedIndex:"";document.dispatchEvent(new CustomEvent("on-widget-update")),this.label.setAttribute("aria-activedescendant",e),this.optionsList&&this.optionsList.focus(),-1===this.focusedIndex&&this.focusNext()}collapse(){this.expanded=!1,this.searchable||this.label.setAttribute("aria-activedescendant","")}toggle(){this.expanded?this.collapse():this.expand()}select(){if(-1!==this.focusedIndex){const e=this.renderOptions[this.focusedIndex],t=e.key;t!==this.selectedKey&&(this.selectedKey=t,this.dispatchEvent(new CustomEvent("dropdown-selected",{composed:!0,bubbles:!0,detail:{option:e.option?e.option:e.key}})))}}onLabelClick(){this.label.focus(),this.toggle()}focusFirst(){this.renderOptions.length&&(this.focusedIndex=0)}focusLast(){this.renderOptions.length&&(this.focusedIndex=this.renderOptions.length-1)}focusNext(){this.renderOptions.length&&(-1!==this.focusedIndex&&this.focusedIndex<this.renderOptions.length-1?this.focusedIndex++:this.focusFirst())}focusPrev(){this.renderOptions.length&&(this.focusedIndex>0?this.focusedIndex--:this.focusLast())}focusToIndex(e){this.renderOptions.length&&e>=0&&e<=this.renderOptions.length-1&&(this.focusedIndex=e)}focusToIndexWithOption(e){const t=this.renderOptions.findIndex(t=>t.key===e.key);this.renderOptions.length&&t>=0&&t<=this.renderOptions.length-1&&(this.focusedIndex=t)}focusReset(){this.focusedIndex=-1}scrollToIndex(e){return m(this,void 0,void 0,(function*(){yield new Promise(t=>{requestAnimationFrame(()=>{if(this.optionsListItems&&this.optionsListItems.length>this.visibleOptions&&e>=0&&this.optionsListItems.length>e){let t=0;const{top:o,bottom:r}=this.optionsList.getBoundingClientRect(),i=this.optionsListItems[e],s=this.optionsListItems[e+1]||i,d=this.optionsListItems[e-1]||i,n=s.getBoundingClientRect(),a=d.getBoundingClientRect();n.bottom>r?t=n.bottom-r+2:a.top<o&&(t=a.top-o-2),this.optionsList.scrollTop+=t}t()})})}))}getOptionKeyValuePair(e){if("string"==typeof e)return{key:e.trim(),value:e};if(e&&"object"==typeof e){const t=Object.keys(e),o=Object.values(e);if(t.length){if(1===t.length||!this.optionId)return{key:t[0],value:o[0]};if(this.optionId)return{key:e[this.optionId],value:e[this.optionValue||this.optionId]}}}return{key:"undefined",value:"undefined"}}get labelTitle(){if(this.selectedKey){const e=this.renderOptions.find(e=>e.key===this.selectedKey);if(e)return e.value}return this.title}get dropDownClassMap(){return{"md-dropdown__expanded":this.expanded,["md-"+this.messageType]:!!this.messageType,"md-new-dropdown":this.newMomentum}}handleInput(e){const t=e.target.value;this.inputValue=t.trim(),this.notifyInputValueChanged(t.trim())}helpTextTemplate(){return this.helpText?n.html`
2
+ <md-help-text
3
+ class="help-text ${Object(a.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
4
+ .message=${this.helpText}
5
+ style=${Object(h.styleMap)({width:"100%"})}
6
+ ></md-help-text>
7
+ `:n.nothing}messagesTemplate(){return this.messages&&this.messages.length?n.html`
8
+ <div id="${this.htmlId}-message" part="message" class="md-dropbox__messages">
9
+ ${Object(p.repeat)(this.messages,(e,t)=>n.html`
10
+ <md-help-text
11
+ .message=${e}
12
+ .id=${this.messageArr[t].id||""}
13
+ .ariaLive=${this.messageArr[t].ariaLive||"polite"}
14
+ .messageType=${this.messageType}
15
+ ></md-help-text>
16
+ `)}
17
+ </div>
18
+ `:n.nothing}iconTemplate(){return n.html`
19
+ <md-icon
20
+ class="md-dropdown-left-icon"
21
+ name="${this.leftIcon}"
22
+ size="16"
23
+ iconSet="momentumDesign"
24
+ @click=${this.toggleVisualListBox}
25
+ ></md-icon>
26
+ `}clearButtonTemplate(){return n.html`
27
+ <button
28
+ type="button"
29
+ class="md-dropdown-button clear"
30
+ aria-label=${this.clearAriaLabel}
31
+ aria-controls="md-dropdown-input"
32
+ tabindex="0"
33
+ ?readonly=${this.readOnly}
34
+ ?disabled=${this.disabled}
35
+ @click=${this.handleRemoveAll}
16
36
  >
17
- <slot></slot>
18
- </form>
19
- `}};a([Object(n.property)({type:String})],e.prototype,"rel",void 0),a([Object(n.property)({type:String})],e.prototype,"name",void 0),a([Object(n.property)({type:String})],e.prototype,"action",void 0),a([Object(n.property)({type:String})],e.prototype,"label",void 0),a([Object(n.property)({type:String})],e.prototype,"method",void 0),a([Object(n.property)({type:String})],e.prototype,"target",void 0),a([Object(n.property)({type:String})],e.prototype,"enctype",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([Object(n.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([Object(n.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([Object(n.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([Object(n.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([Object(n.query)(".md-form")],e.prototype,"form",void 0),e=a([Object(r.f)("md-form")],e),t.ELEMENT=e}(o||(o={}))}}]);
37
+ <span>
38
+ <md-icon
39
+ class="md-input__icon-clear"
40
+ name="cancel-bold"
41
+ size="14"
42
+ iconSet="momentumDesign"
43
+ style="height: ${this.clearIconHeight};"
44
+ ></md-icon
45
+ ></span>
46
+ </button>
47
+ `}arrowButtonTemplate(){return n.html`
48
+ <button
49
+ type="button"
50
+ class="md-dropdown-button arrow-down"
51
+ aria-expanded=${this.expanded}
52
+ aria-label=${Object(l.ifDefined)("true"===this.popupChevronAriaHidden?void 0:this.arrowAriaLabel)}
53
+ aria-controls="md-dropdown-input"
54
+ tabindex="-1"
55
+ aria-hidden=${this.popupChevronAriaHidden}
56
+ ?readonly=${this.readOnly}
57
+ ?disabled=${this.disabled}
58
+ @click=${this.toggleVisualListBox}
59
+ >
60
+ <span>
61
+ <md-icon name="arrow-down-bold" size="16" iconSet="momentumDesign"></md-icon>
62
+ </span>
63
+ </button>
64
+ `}render(){return n.html`
65
+ <div class="md-dropdown ${Object(a.classMap)(this.dropDownClassMap)}" part="dropdown">
66
+ ${this.searchable?n.html`
67
+ <div part="group" class="group" ?readonly=${this.readOnly}>
68
+ ${this.leftIcon?this.iconTemplate():n.nothing}
69
+ <input
70
+ class="md-dropdown-input"
71
+ type="text"
72
+ role="combobox"
73
+ aria-autocomplete="both"
74
+ aria-label=${this.title}
75
+ part="dropdown-input"
76
+ aria-expanded=${this.expanded}
77
+ placeholder=${this.placeholder}
78
+ aria-controls="md-dropdown-list"
79
+ ?readonly=${this.readOnly}
80
+ ?disabled=${this.disabled}
81
+ ?autofocus=${this.autofocus}
82
+ title=${this.title}
83
+ tabindex="0"
84
+ .value=${this.inputValue}
85
+ @click=${this.toggleVisualListBox}
86
+ @input=${this.handleInput}
87
+ />
88
+ ${this.compact||!this.searchable?n.nothing:this.shouldChangeButton()?this.clearButtonTemplate():this.arrowButtonTemplate()}
89
+ </div>
90
+ `:n.html`
91
+ <label
92
+ class="md-dropdown-label ${Object(a.classMap)({"md-new-dropdown-label":this.newMomentum})}"
93
+ aria-expanded="${this.expanded}"
94
+ aria-label="${this.title}"
95
+ aria-controls="md-dropdown-list"
96
+ aria-haspopup="listbox"
97
+ ?disabled="${this.disabled}"
98
+ @click="${()=>this.onLabelClick()}"
99
+ part="dropdown-header"
100
+ role="combobox"
101
+ tabindex="0"
102
+ >
103
+ <span class="md-dropdown-label--text ${Object(a.classMap)({"md-new-dropdown-label--text":this.newMomentum})}"
104
+ >${this.labelTitle}</span
105
+ >
106
+ <span class="md-dropdown-label--icon">
107
+ <md-icon name="arrow-down-bold" size="16" iconSet="momentumDesign"></md-icon>
108
+ </span>
109
+ </label>
110
+ `}
111
+ <ul
112
+ id="md-dropdown-list"
113
+ class="md-dropdown-list"
114
+ role="listbox"
115
+ aria-label="${this.labelTitle}"
116
+ aria-hidden="${!this.expanded}"
117
+ part="dropdown-options"
118
+ tabindex=${Object(l.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
119
+ >
120
+ ${this.filteredOptions.map((e,t)=>n.html`
121
+ <li
122
+ id="combo-${t}"
123
+ class="md-dropdown-option"
124
+ role="option"
125
+ tabindex=${Object(l.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
126
+ aria-label="${e.value}"
127
+ label="${e.value}"
128
+ aria-selected="${e.key===this.selectedKey}"
129
+ part="dropdown-option"
130
+ ?focused="${t===this.focusedIndex}"
131
+ ?selected="${e.key===this.selectedKey}"
132
+ @click="${()=>{this.focusToIndexWithOption(e),this.select(),this.collapse()}}"
133
+ >
134
+ <span class="select-label" part="label">
135
+ <span>${e.value}</span>
136
+ </span>
137
+ </li>
138
+ `)}
139
+ </ul>
140
+ </div>
141
+ ${this.messagesTemplate()} ${this.helpTextTemplate()}
142
+ `}};b([Object(d.property)({type:String,attribute:"title"})],o.prototype,"title",void 0),b([Object(d.property)({type:Array})],o.prototype,"options",void 0),b([Object(d.property)({type:String,attribute:"option-id"})],o.prototype,"optionId",void 0),b([Object(d.property)({type:String,attribute:"option-value"})],o.prototype,"optionValue",void 0),b([Object(d.property)({type:Object})],o.prototype,"defaultOption",void 0),b([Object(d.property)({type:Boolean,reflect:!0})],o.prototype,"disabled",void 0),b([Object(d.property)({type:Number,attribute:"custom-tab-index",reflect:!0})],o.prototype,"customTabIndex",void 0),b([Object(d.property)({type:Boolean,attribute:"allow-unselected",reflect:!0})],o.prototype,"allowUnselected",void 0),b([Object(d.property)({type:Number,attribute:"visible-option",reflect:!0})],o.prototype,"visibleOptions",void 0),b([Object(d.property)({type:Boolean})],o.prototype,"newMomentum",void 0),b([Object(d.property)({type:Boolean,reflect:!0})],o.prototype,"compact",void 0),b([Object(d.property)({type:Boolean,reflect:!0})],o.prototype,"searchable",void 0),b([Object(d.property)({type:Boolean,reflect:!0})],o.prototype,"searchItem",void 0),b([Object(d.property)({type:String,attribute:"input-value",reflect:!0})],o.prototype,"inputValue",void 0),b([Object(d.property)({type:String})],o.prototype,"placeholder",void 0),b([Object(d.property)({type:Boolean,reflect:!0})],o.prototype,"readOnly",void 0),b([Object(d.property)({type:Boolean,reflect:!0})],o.prototype,"autofocus",void 0),b([Object(d.property)({type:String,attribute:"left-icon",reflect:!0})],o.prototype,"leftIcon",void 0),b([Object(d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],o.prototype,"trimSpace",void 0),b([Object(d.property)({type:String,attribute:"no-results-i18n"})],o.prototype,"resultsTextLocalization",void 0),b([Object(d.property)({type:String})],o.prototype,"helpText",void 0),b([Object(d.property)({type:Array})],o.prototype,"messageArr",void 0),b([Object(d.property)({type:String})],o.prototype,"htmlId",void 0),b([Object(d.property)({type:String,attribute:"clear-aria-label"})],o.prototype,"clearAriaLabel",void 0),b([Object(d.property)({type:String,attribute:"clear-icon-height"})],o.prototype,"clearIconHeight",void 0),b([Object(d.property)({type:String,attribute:"arrow-aria-label"})],o.prototype,"arrowAriaLabel",void 0),b([Object(d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],o.prototype,"popupChevronAriaHidden",void 0),b([Object(d.property)({type:String,reflect:!0})],o.prototype,"ariaLabel",void 0),b([Object(d.property)({type:String,attribute:"search-result-aria-label"})],o.prototype,"searchResultAriaLabel",void 0),b([Object(d.internalProperty)()],o.prototype,"ariaLabelForDropdown",void 0),b([Object(d.internalProperty)()],o.prototype,"renderOptions",void 0),b([Object(d.internalProperty)()],o.prototype,"selectedKey",void 0),b([Object(d.internalProperty)()],o.prototype,"expanded",void 0),b([Object(d.internalProperty)()],o.prototype,"focusedIndex",void 0),b([Object(d.query)("label")],o.prototype,"label",void 0),b([Object(d.query)(".md-dropdown-input")],o.prototype,"input",void 0),b([Object(d.query)("ul.md-dropdown-list")],o.prototype,"optionsList",void 0),b([Object(d.queryAll)("li.md-dropdown-option")],o.prototype,"optionsListItems",void 0),o=b([Object(i.f)("md-dropdown")],o),e.ELEMENT=o}(g||(g={}))}}]);
@@ -1,22 +1,30 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[71],{120:function(e,r,t){"use strict";t.r(r),t.d(r,"Grabber",(function(){return o}));t(15);var o,a=t(7),i=t(6),b=t(31),d=t(5),n=t(0),l=t(4),s=t(3),c=n.css`:host{align-content:center;align-items:center;display:inline-flex;flex-flow:row nowrap;justify-content:center}.md-grabber__container{align-content:center;align-items:center;display:inline-flex;flex-flow:row nowrap;justify-content:center;overflow:hidden}.md-grabber__container:focus-within{box-shadow:0 0 0 2px var(--md-default-focus-outline-color)}.md-grabber{align-content:center;align-items:center;display:inline-flex;flex-flow:row nowrap;justify-content:center;position:relative;gap:2px;background-color:var(--grabber-bg-color);border-color:var(--grabber-border-color);justify-content:center;align-items:center;cursor:pointer;transition:transform 150ms ease-in-out}.md-grabber.visible{transform:translate3d(0,0,0)}.md-grabber:hover{background-color:var(--grabber-hover-bg-color)}.md-grabber:active{background-color:var(--grabber-pressed-bg-color)}.md-grabber:focus{outline:0}.md-grabber--leading,.md-grabber--trailing{width:var(--grabber-width,20px);height:40px;border-radius:0 var(--grabber-border-radius) var(--grabber-border-radius) 0;border:1px solid var(--grabber-border-color);border-left-width:0}.md-grabber--leading.md-grabber--dragger,.md-grabber--trailing.md-grabber--dragger{cursor:ew-resize}.md-grabber--leading:not(.visible),.md-grabber--trailing:not(.visible){transform:translate3d(-100%,0,0)}.md-grabber--trailing{rotate:180deg}.md-grabber--bottom,.md-grabber--top{width:40px;height:var(--grabber-width,20px);border-radius:0 0 var(--grabber-border-radius) var(--grabber-border-radius);border:1px solid var(--grabber-border-color);border-top-width:0}.md-grabber--bottom.md-grabber--dragger,.md-grabber--top.md-grabber--dragger{cursor:ns-resize}.md-grabber--bottom:not(.visible),.md-grabber--top:not(.visible){transform:translate3d(0,-100%,0)}.md-grabber--bottom{rotate:180deg}.md-grabber md-icon,.md-grabber md-icon::part(icon){color:var(--grabber-text-color);width:fit-content;height:fit-content}.md-grabber--disabled{background-color:rgba(0,0,0,0)}.md-grabber--disabled:active,.md-grabber--disabled:hover{background-color:rgba(0,0,0,0)}.md-grabber--disabled md-icon::part(icon){color:var(--button-disabled-text-color)}@media(forced-colors:active){.md-grabber__container:focus-within{outline:2px solid ButtonText;outline-offset:1px}.md-grabber{background-color:Highlight}.md-grabber:hover{background-color:Highlight}.md-grabber:active{background-color:Highlight}.md-grabber md-icon,.md-grabber md-icon::part(icon){forced-color-adjust:none;color:HighlightText}}`,g=function(e,r,t,o){var a,i=arguments.length,b=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)b=Reflect.decorate(e,r,t,o);else for(var d=e.length-1;d>=0;d--)(a=e[d])&&(b=(i<3?a(b):i>3?a(r,t,b):a(r,t))||b);return i>3&&b&&Object.defineProperty(r,t,b),b};!function(e){let r=class extends(Object(a.a)(n.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[d.a,c]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(e){this.disableClickToggle||Object(b.a)(e.code)&&(e.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,["md-grabber--"+this.alignment]:this.alignment,visible:this.visible||this.focused}}get iconName(){return this.dragger?"list-menu-bold":"leading"===this.alignment||"trailing"===this.alignment?this.checked?"arrow-left-bold":"arrow-right-bold":this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger?"10":"12"}render(){return n.html`
2
- <div class="md-grabber__container">
3
- <button
4
- class="md-grabber ${Object(l.classMap)(this.grabberClassMap)}"
5
- part="grabber"
6
- aria-pressed=${this.checked}
7
- ?disabled=${this.disabled}
8
- tabindex="0"
9
- aria-label=${Object(s.ifDefined)(this.label.length?this.label:void 0)}
10
- type="button"
11
- role="button"
12
- @click="${()=>this.handleMouseDown()}"
13
- @keydown="${e=>this.handleKeyDown(e)}"
14
- @mouseenter="${()=>this.handleMouseEnter()}"
15
- @mouseleave="${()=>this.handleMouseLeave()}"
16
- @focus="${()=>this.handleFocus()}"
17
- @blur="${()=>this.handleBlur()}"
18
- >
19
- <md-icon name="${this.iconName}" size="${this.iconSize}" iconSet="momentumDesign"></md-icon>
20
- </button>
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[71],{123:function(e,t,i){"use strict";i.r(t),i.d(t,"alignment",(function(){return f})),i.d(t,"EditableTextfield",(function(){return g}));var d=i(20),l=i(6),r=i(47),a=i.n(r),s=i(5),o=i(0),n=i(2),c=i(4),h=i(3),b=i(29),p=o.css`:focus{outline:0}.md-editable-textfield{border-radius:.25rem;line-height:1.3571428571 rem;min-height:2rem;overflow-y:auto;padding:0 .375rem 0 .375rem}.md-editable-textfield:hover{background-color:var(--editable-textfield-default-hover-bg-color,#ededed)}.md-editable-textfield:active{background-color:var(--editable-textfield-default-pressed-bg-color,#dedede)}.md-editable-textfield:focus{box-shadow:0 0 0 .0625rem var(--md-default-focus-outline-color,#007aa3)}.md-editable-textfield--left .md-input{text-align:left}.md-editable-textfield--center .md-input{text-align:center}.md-editable-textfield--center ::slotted(*){text-align:center}.md-editable-textfield--right .md-input{text-align:right}.md-editable-textfield--right ::slotted(*){text-align:right}.md-editable-textfield--disabled{background-color:rgba(0,0,0,0);color:var(--md-secondary-text-color,#545454);cursor:default}.md-editable-textfield--disabled:hover{background-color:rgba(0,0,0,0)}.md-editable-textfield--disabled:focus{box-shadow:none;outline:0}.md-editable-textfield--error{background-color:var(--md-alert-error-bg-color,#ffe8e3);border:1px solid var(--editable-textfield-error-border-color,#a12512);color:var(--md-alert-error-text-color,#a12512)}.md-editable-textfield--error:focus{box-shadow:none;outline:0}.md-editable-textfield--warning{background-color:var(--md-alert-warning-bg-color,#ffecc2);border:1px solid var(--editable-textfield-warning-border-color,#d97f00);color:var(--md-alert-warning-text-color,#7d4705)}.md-editable-textfield--warning:focus{box-shadow:none;outline:0}.md-editable-textfield--success{background-color:var(--md-alert-success-bg-color,#befade);border:1px solid var(--editable-textfield-success-border-color,#00ab50);color:var(--md-alert-success-text-color,#03612c)}.md-editable-textfield--success:focus{box-shadow:none;outline:0}.md-editable-textfield--textoverflow{-webkit-box-orient:vertical;display:-webkit-box;overflow-y:hidden;text-overflow:ellipsis}.md-editable-textfield__messages{padding:.375rem 0 0 1rem}@media(forced-colors:active){.md-editable-textfield:focus{outline:1px solid Highlight;box-shadow:none}.md-editable-textfield--disabled{color:GrayText;cursor:default}.md-editable-textfield--disabled:focus{box-shadow:none;outline:0}}`,m=function(e,t,i,d){var l,r=arguments.length,a=r<3?t:null===d?d=Object.getOwnPropertyDescriptor(t,i):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,d);else for(var s=e.length-1;s>=0;s--)(l=e[s])&&(a=(r<3?l(a):r>3?l(t,i,a):l(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};const f=["left","right","center"];var g;!function(e){let t=class extends o.LitElement{constructor(){super(...arguments),this.alignment="left",this.disabled=!1,this.isEditing=!1,this.maxLines="",this.content="Click to edit text",this.message={type:"error",message:"That is not a valid input."},this.alert=!1,this.hideMessage=!1,this.pattern="",this.type=null,this.ariaLabel="editable field",this.ariaDescribedBy="",this.messageController=new b.Input.MessageController,this.reportValidity=()=>{this.dispatchEvent(new Event("invalid",{bubbles:!1,cancelable:!0,composed:!0}))},this.checkValidity=e=>{let t=!0;const i=i=>{null===e.match(i)&&(t=!1)};if(this.pattern){i(new RegExp(this.pattern))}else if(e&&this.type)switch(this.type){case"integer":i(new RegExp(d.a.integerString));break;case"decimal":i(new RegExp(d.a.decimalString))}return t},this.handleFocus=()=>{this.disabled||(this.isEditing=!0,this.setRange())},this.handleKeydown=e=>{var t;const{key:i,code:d}=e;if(["Tab","Meta","Shift","Delete","Backspace","Arrow"].some(e=>d.includes(e)))return;("integer"===this.type&&i.includes(".")||("integer"===this.type||"decimal"===this.type)&&d.match("Space"))&&e.preventDefault();const l=(null===(t=this.editableField)||void 0===t?void 0:t.innerText.trim())+i;if(this.type)if(isNaN(Number(l)))e.preventDefault();else{if("integer"!==this.type||Number.isInteger(Number(l)))return;e.preventDefault()}},this.handleBlur=()=>{var e;this.isEditing=!1,this.maxLines.length>0&&this.editableField&&this.editableField.scrollTo(0,0),this.content=(null===(e=this.editableField)||void 0===e?void 0:e.innerText.trim())||"",this.alert=!1,this.handleValidation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleFocus)}firstUpdated(e){super.firstUpdated(e),this.innerText&&this.innerText.length>0?this.content=this.innerText.trim():this.innerText=a.a.sanitize(this.content)}updated(e){super.updated(e),e.has("content")&&this.editableField&&(this.editableField.innerText=a.a.sanitize(this.content))}setRange(){var e;if(this.editableField){const t=document.createRange(),i=window.getSelection(),d=null===(e=this.editableField.childNodes[0].nodeValue)||void 0===e?void 0:e.length;if(t.setStart(this.editableField.childNodes[0],d||0),t.collapse(!0),!i||0!==i.toString().length)return;i.removeAllRanges(),i.addRange(t),this.maxLines.length>0&&(this.editableField.scrollTop=this.editableField.scrollHeight)}}handleValidation(){if(this.type||this.pattern){this.checkValidity&&this.checkValidity(this.content)||(this.reportValidity(),this.showAlert())}}showAlert(){this.alert=!0}static get styles(){return[l.a,p]}get overflowStyles(){return this.maxLines.length&&this.maxLines.length>0&&`max-height: ${2*parseInt(this.maxLines)}rem; -webkit-line-clamp: ${this.maxLines}; word-break: break-all;`}messagesTemplate(){var e,t,i;return this.alert?o.html`
2
+ <div class="md-editable-textfield__messages" style="display: ${this.hideMessage?"none":"block"}">
3
+ <md-help-text
4
+ id="alert-message"
5
+ role="alert"
6
+ aria-live="assertive"
7
+ .messageType=${null===(e=this.message)||void 0===e?void 0:e.type}
8
+ aria-errormessage=${Object(h.ifDefined)(null===(t=this.message)||void 0===t?void 0:t.message)}
9
+ >
10
+ ${null===(i=this.message)||void 0===i?void 0:i.message}
11
+ </md-help-text>
12
+ </div>
13
+ `:n.nothing}render(){var e;const t={["md-editable-textfield--"+this.alignment]:this.alignment,"md-editable-textfield--disabled":this.disabled,["md-editable-textfield--"+(null===(e=this.message)||void 0===e?void 0:e.type)]:this.alert&&!!this.message,"md-editable-textfield--textoverflow":this.maxLines.length>0&&!this.isEditing};return o.html`
14
+ <div
15
+ style="${this.overflowStyles}"
16
+ class="md-editable-textfield ${Object(c.classMap)(t)}"
17
+ role=${Object(h.ifDefined)(this.disabled?void 0:"textbox")}
18
+ tabindex=${this.disabled?"-1":"0"}
19
+ ?contenteditable=${this.isEditing}
20
+ @focus=${this.handleFocus}
21
+ @blur=${this.handleBlur}
22
+ @keydown=${e=>{this.handleKeydown(e)}}
23
+ aria-invalid=${Object(h.ifDefined)(this.disabled?void 0:this.alert?"true":"false")}
24
+ aria-label=${Object(h.ifDefined)(this.disabled?void 0:this.ariaLabel)}
25
+ aria-describedby=${Object(h.ifDefined)(this.disabled?void 0:this.ariaDescribedBy)}
26
+ >
27
+ ${a.a.sanitize(this.content)}
21
28
  </div>
22
- `}};g([Object(n.property)({type:String})],r.prototype,"label",void 0),g([Object(n.property)({type:String})],r.prototype,"checkedLabel",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"hovered",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"disabled",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"checked",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"visible",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"focused",void 0),g([Object(n.property)({type:Boolean,attribute:"disable-click-toggle"})],r.prototype,"disableClickToggle",void 0),g([Object(n.property)({type:String,reflect:!0})],r.prototype,"alignment",void 0),g([Object(n.property)({type:Boolean})],r.prototype,"dragger",void 0),r=g([Object(i.a)("md-grabber")],r),e.ELEMENT=r}(o||(o={}))}}]);
29
+ ${this.messagesTemplate()}
30
+ `}};m([Object(o.property)({type:String})],t.prototype,"alignment",void 0),m([Object(o.property)({type:Boolean})],t.prototype,"disabled",void 0),m([Object(o.property)({type:Boolean})],t.prototype,"isEditing",void 0),m([Object(o.property)({type:String,attribute:"max-lines",reflect:!0})],t.prototype,"maxLines",void 0),m([Object(o.property)({type:String,reflect:!0})],t.prototype,"content",void 0),m([Object(o.property)({type:Object})],t.prototype,"message",void 0),m([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"alert",void 0),m([Object(o.property)({type:Boolean})],t.prototype,"hideMessage",void 0),m([Object(o.property)({type:String})],t.prototype,"pattern",void 0),m([Object(o.property)({type:String})],t.prototype,"type",void 0),m([Object(o.property)({type:String})],t.prototype,"ariaLabel",void 0),m([Object(o.property)({type:String,attribute:"aria-described-by"})],t.prototype,"ariaDescribedBy",void 0),m([Object(o.query)(".md-editable-textfield")],t.prototype,"editableField",void 0),t=m([Object(s.a)("md-editable-field")],t),e.ELEMENT=t}(g||(g={}))}}]);
@@ -1,17 +1,70 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[72],{121:function(s,e,t){"use strict";t.r(e),t.d(e,"InputFile",(function(){return a}));t(17);var a,i=t(7),r=t(5),l=t(23),n=t.n(l),o=t(0),j=t(2),c=t(3),p=o.css`:host(md-input-file) md-button{margin:.25rem}:host(md-input-file) input[type=file]{display:none}`,u=function(s,e,t,a){var i,r=arguments.length,l=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(s,e,t,a);else for(var n=s.length-1;n>=0;n--)(i=s[n])&&(l=(r<3?i(l):r>3?i(e,t,l):i(e,t))||l);return r>3&&l&&Object.defineProperty(e,t,l),l},m=function(s,e,t,a){return new(t||(t=Promise))((function(i,r){function l(s){try{o(a.next(s))}catch(s){r(s)}}function n(s){try{o(a.throw(s))}catch(s){r(s)}}function o(s){var e;s.done?i(s.value):(e=s.value,e instanceof t?e:new t((function(s){s(e)}))).then(l,n)}o((a=a.apply(s,e||[])).next())}))};!function(s){let e=class extends o.LitElement{constructor(){super(...arguments),this.acceptLanguage="javascript",this.getLocalization="Input File",this.acceptTypes="",this.fileName=""}static get styles(){return[r.a,p]}triggerFileLoad(s){s.preventDefault(),this.input.click()}handleFile(s){return m(this,void 0,void 0,(function*(){s.preventDefault();const e=this.input.files;if(e&&0!==e.length)for(const s of e){this.fileName=s.name;try{yield this.readFile(s)}catch(s){console.error("Error reading file",s)}}}))}readFile(s){return new Promise((e,t)=>{const a=new FileReader;a.onload=s=>{e(s.target.result)},a.onerror=s=>t(s),a.readAsText(s)})}importLanguage(s){return m(this,void 0,void 0,(function*(){try{const{default:e}=yield t(91)("./"+s);n.a.registerLanguage(""+s,e),this.setAcceptTypes()}catch(s){console.warn("Please set correct language name")}}))}getAllAcceptTypes(){const s=n.a.listLanguages();return s.length?s.map(s=>n.a.getLanguage(""+s).aliases).map(s=>s.map(s=>"."+s)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(s){super.updated(s),s.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage)}render(){return o.html`
2
- <div class="md-input-file">
3
- <label for="file-input">
4
- <md-button color="blue" class="md-input-file-btn" @click=${this.triggerFileLoad}>
5
- ${this.getLocalization.trim()}
6
- </md-button>
7
- ${this.fileName.length?this.fileName:j.nothing}
8
- </label>
9
- <input
10
- type="file"
11
- id="file-input"
12
- name="file-input"
13
- accept=${Object(c.ifDefined)(this.acceptTypes||void 0)}
14
- @change=${s=>this.handleFile(s)}
15
- />
16
- </div>
17
- `}};u([Object(o.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),u([Object(o.property)({type:String})],e.prototype,"getLocalization",void 0),u([Object(o.query)("input[type='file']")],e.prototype,"input",void 0),u([Object(o.internalProperty)()],e.prototype,"acceptTypes",void 0),u([Object(o.internalProperty)()],e.prototype,"fileName",void 0),e=u([Object(i.f)("md-input-file")],e),s.ELEMENT=e}(a||(a={}))},91:function(s,e,t){var a={"./1c":[131,89],"./1c.js":[131,89],"./abnf":[132,90],"./abnf.js":[132,90],"./accesslog":[133,91],"./accesslog.js":[133,91],"./actionscript":[134,92],"./actionscript.js":[134,92],"./ada":[135,93],"./ada.js":[135,93],"./angelscript":[136,94],"./angelscript.js":[136,94],"./apache":[137,95],"./apache.js":[137,95],"./applescript":[138,96],"./applescript.js":[138,96],"./arcade":[139,97],"./arcade.js":[139,97],"./arduino":[140,98],"./arduino.js":[140,98],"./armasm":[141,99],"./armasm.js":[141,99],"./asciidoc":[142,100],"./asciidoc.js":[142,100],"./aspectj":[143,101],"./aspectj.js":[143,101],"./autohotkey":[144,102],"./autohotkey.js":[144,102],"./autoit":[145,103],"./autoit.js":[145,103],"./avrasm":[146,104],"./avrasm.js":[146,104],"./awk":[147,105],"./awk.js":[147,105],"./axapta":[148,106],"./axapta.js":[148,106],"./bash":[149,107],"./bash.js":[149,107],"./basic":[150,108],"./basic.js":[150,108],"./bnf":[151,109],"./bnf.js":[151,109],"./brainfuck":[152,110],"./brainfuck.js":[152,110],"./c":[154,112],"./c-like":[153,111],"./c-like.js":[153,111],"./c.js":[154,112],"./cal":[155,113],"./cal.js":[155,113],"./capnproto":[156,114],"./capnproto.js":[156,114],"./ceylon":[157,115],"./ceylon.js":[157,115],"./clean":[158,116],"./clean.js":[158,116],"./clojure":[160,118],"./clojure-repl":[159,117],"./clojure-repl.js":[159,117],"./clojure.js":[160,118],"./cmake":[161,119],"./cmake.js":[161,119],"./coffeescript":[162,120],"./coffeescript.js":[162,120],"./coq":[163,121],"./coq.js":[163,121],"./cos":[164,122],"./cos.js":[164,122],"./cpp":[165,123],"./cpp.js":[165,123],"./crmsh":[166,124],"./crmsh.js":[166,124],"./crystal":[167,125],"./crystal.js":[167,125],"./csharp":[168,126],"./csharp.js":[168,126],"./csp":[169,127],"./csp.js":[169,127],"./css":[170,128],"./css.js":[170,128],"./d":[171,129],"./d.js":[171,129],"./dart":[172,130],"./dart.js":[172,130],"./delphi":[173,131],"./delphi.js":[173,131],"./diff":[174,132],"./diff.js":[174,132],"./django":[175,133],"./django.js":[175,133],"./dns":[176,134],"./dns.js":[176,134],"./dockerfile":[177,135],"./dockerfile.js":[177,135],"./dos":[178,136],"./dos.js":[178,136],"./dsconfig":[179,137],"./dsconfig.js":[179,137],"./dts":[180,138],"./dts.js":[180,138],"./dust":[181,139],"./dust.js":[181,139],"./ebnf":[182,140],"./ebnf.js":[182,140],"./elixir":[183,141],"./elixir.js":[183,141],"./elm":[184,142],"./elm.js":[184,142],"./erb":[185,143],"./erb.js":[185,143],"./erlang":[187,145],"./erlang-repl":[186,144],"./erlang-repl.js":[186,144],"./erlang.js":[187,145],"./excel":[188,146],"./excel.js":[188,146],"./fix":[189,147],"./fix.js":[189,147],"./flix":[190,148],"./flix.js":[190,148],"./fortran":[191,149],"./fortran.js":[191,149],"./fsharp":[192,150],"./fsharp.js":[192,150],"./gams":[193,151],"./gams.js":[193,151],"./gauss":[194,152],"./gauss.js":[194,152],"./gcode":[195,153],"./gcode.js":[195,153],"./gherkin":[196,154],"./gherkin.js":[196,154],"./glsl":[197,155],"./glsl.js":[197,155],"./gml":[198,156],"./gml.js":[198,156],"./go":[199,157],"./go.js":[199,157],"./golo":[200,158],"./golo.js":[200,158],"./gradle":[201,159],"./gradle.js":[201,159],"./groovy":[202,160],"./groovy.js":[202,160],"./haml":[203,161],"./haml.js":[203,161],"./handlebars":[204,162],"./handlebars.js":[204,162],"./haskell":[205,163],"./haskell.js":[205,163],"./haxe":[206,164],"./haxe.js":[206,164],"./hsp":[207,165],"./hsp.js":[207,165],"./htmlbars":[208,166],"./htmlbars.js":[208,166],"./http":[209,167],"./http.js":[209,167],"./hy":[210,168],"./hy.js":[210,168],"./inform7":[211,169],"./inform7.js":[211,169],"./ini":[212,170],"./ini.js":[212,170],"./irpf90":[213,171],"./irpf90.js":[213,171],"./isbl":[214,172],"./isbl.js":[214,172],"./java":[215,173],"./java.js":[215,173],"./javascript":[216,174],"./javascript.js":[216,174],"./jboss-cli":[217,175],"./jboss-cli.js":[217,175],"./json":[218,176],"./json.js":[218,176],"./julia":[220,178],"./julia-repl":[219,177],"./julia-repl.js":[219,177],"./julia.js":[220,178],"./kotlin":[221,179],"./kotlin.js":[221,179],"./lasso":[222,180],"./lasso.js":[222,180],"./latex":[223,181],"./latex.js":[223,181],"./ldif":[224,182],"./ldif.js":[224,182],"./leaf":[225,183],"./leaf.js":[225,183],"./less":[226,184],"./less.js":[226,184],"./lisp":[227,185],"./lisp.js":[227,185],"./livecodeserver":[228,186],"./livecodeserver.js":[228,186],"./livescript":[229,187],"./livescript.js":[229,187],"./llvm":[230,188],"./llvm.js":[230,188],"./lsl":[231,189],"./lsl.js":[231,189],"./lua":[232,190],"./lua.js":[232,190],"./makefile":[233,191],"./makefile.js":[233,191],"./markdown":[234,192],"./markdown.js":[234,192],"./mathematica":[235,193],"./mathematica.js":[235,193],"./matlab":[236,194],"./matlab.js":[236,194],"./maxima":[237,195],"./maxima.js":[237,195],"./mel":[238,196],"./mel.js":[238,196],"./mercury":[239,197],"./mercury.js":[239,197],"./mipsasm":[240,198],"./mipsasm.js":[240,198],"./mizar":[241,199],"./mizar.js":[241,199],"./mojolicious":[242,200],"./mojolicious.js":[242,200],"./monkey":[243,201],"./monkey.js":[243,201],"./moonscript":[244,202],"./moonscript.js":[244,202],"./n1ql":[245,203],"./n1ql.js":[245,203],"./nginx":[246,204],"./nginx.js":[246,204],"./nim":[247,205],"./nim.js":[247,205],"./nix":[248,206],"./nix.js":[248,206],"./node-repl":[249,207],"./node-repl.js":[249,207],"./nsis":[250,208],"./nsis.js":[250,208],"./objectivec":[251,209],"./objectivec.js":[251,209],"./ocaml":[252,210],"./ocaml.js":[252,210],"./openscad":[253,211],"./openscad.js":[253,211],"./oxygene":[254,212],"./oxygene.js":[254,212],"./parser3":[255,213],"./parser3.js":[255,213],"./perl":[256,214],"./perl.js":[256,214],"./pf":[257,215],"./pf.js":[257,215],"./pgsql":[258,216],"./pgsql.js":[258,216],"./php":[260,218],"./php-template":[259,217],"./php-template.js":[259,217],"./php.js":[260,218],"./plaintext":[261,219],"./plaintext.js":[261,219],"./pony":[262,220],"./pony.js":[262,220],"./powershell":[263,221],"./powershell.js":[263,221],"./processing":[264,222],"./processing.js":[264,222],"./profile":[265,223],"./profile.js":[265,223],"./prolog":[266,224],"./prolog.js":[266,224],"./properties":[267,225],"./properties.js":[267,225],"./protobuf":[268,226],"./protobuf.js":[268,226],"./puppet":[269,227],"./puppet.js":[269,227],"./purebasic":[270,228],"./purebasic.js":[270,228],"./python":[272,230],"./python-repl":[271,229],"./python-repl.js":[271,229],"./python.js":[272,230],"./q":[273,231],"./q.js":[273,231],"./qml":[274,232],"./qml.js":[274,232],"./r":[275,233],"./r.js":[275,233],"./reasonml":[276,234],"./reasonml.js":[276,234],"./rib":[277,235],"./rib.js":[277,235],"./roboconf":[278,236],"./roboconf.js":[278,236],"./routeros":[279,237],"./routeros.js":[279,237],"./rsl":[280,238],"./rsl.js":[280,238],"./ruby":[281,239],"./ruby.js":[281,239],"./ruleslanguage":[282,240],"./ruleslanguage.js":[282,240],"./rust":[283,241],"./rust.js":[283,241],"./sas":[284,242],"./sas.js":[284,242],"./scala":[285,243],"./scala.js":[285,243],"./scheme":[286,244],"./scheme.js":[286,244],"./scilab":[287,245],"./scilab.js":[287,245],"./scss":[288,246],"./scss.js":[288,246],"./shell":[289,247],"./shell.js":[289,247],"./smali":[290,248],"./smali.js":[290,248],"./smalltalk":[291,249],"./smalltalk.js":[291,249],"./sml":[292,250],"./sml.js":[292,250],"./sqf":[293,251],"./sqf.js":[293,251],"./sql":[294,252],"./sql.js":[294,252],"./sql_more":[295,253],"./sql_more.js":[295,253],"./stan":[296,254],"./stan.js":[296,254],"./stata":[297,255],"./stata.js":[297,255],"./step21":[298,256],"./step21.js":[298,256],"./stylus":[299,257],"./stylus.js":[299,257],"./subunit":[300,258],"./subunit.js":[300,258],"./swift":[301,259],"./swift.js":[301,259],"./taggerscript":[302,260],"./taggerscript.js":[302,260],"./tap":[303,261],"./tap.js":[303,261],"./tcl":[304,262],"./tcl.js":[304,262],"./thrift":[305,263],"./thrift.js":[305,263],"./tp":[306,264],"./tp.js":[306,264],"./twig":[307,265],"./twig.js":[307,265],"./typescript":[308,266],"./typescript.js":[308,266],"./vala":[309,267],"./vala.js":[309,267],"./vbnet":[310,268],"./vbnet.js":[310,268],"./vbscript":[312,270],"./vbscript-html":[311,269],"./vbscript-html.js":[311,269],"./vbscript.js":[312,270],"./verilog":[313,271],"./verilog.js":[313,271],"./vhdl":[314,272],"./vhdl.js":[314,272],"./vim":[315,273],"./vim.js":[315,273],"./x86asm":[316,274],"./x86asm.js":[316,274],"./xl":[317,275],"./xl.js":[317,275],"./xml":[318,276],"./xml.js":[318,276],"./xquery":[319,277],"./xquery.js":[319,277],"./yaml":[320,278],"./yaml.js":[320,278],"./zephir":[321,279],"./zephir.js":[321,279]};function i(s){if(!t.o(a,s))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+s+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=a[s],i=e[0];return t.e(e[1]).then((function(){return t.t(i,7)}))}i.keys=function(){return Object.keys(a)},i.id=91,s.exports=i}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[72],{99:function(t,i,e){"use strict";e.r(i),e.d(i,"FloatingModal",(function(){return o}));e(17),e(14);var o,n=e(7),a=e(5),s=e(6),r=(e(48),e(49),e(50),e(25)),l=e.n(r),d=(e(51),e(0)),c=e(2),h=e(3),m=(e(78),e(67)),p=function(t,i,e,o){var n,a=arguments.length,s=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,o);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(a<3?n(s):a>3?n(i,e,s):n(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s},b=function(t,i,e,o){return new(e||(e=Promise))((function(n,a){function s(t){try{l(o.next(t))}catch(t){a(t)}}function r(t){try{l(o.throw(t))}catch(t){a(t)}}function l(t){var i;t.done?n(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(s,r)}l((o=o.apply(t,i||[])).next())}))};!function(t){let i=class extends(Object(n.a)(Object(n.e)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.maximizeScreenLabel="Maximize Modal",this.minimizeAriaLabel="Minimize Modal",this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.resizeMoveListener=t=>{const{target:i}=t;let e=parseFloat(i.getAttribute("data-x"))||0,o=parseFloat(i.getAttribute("data-y"))||0;i.style.setProperty("width",t.rect.width+"px","important"),i.style.setProperty("height",t.rect.height+"px","important");const{initialX:n,initialY:a}=this.getInitialPosition();e+=t.deltaRect.left+n,o+=t.deltaRect.top+a,this.setTargetPosition(i,e,o),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,i;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(i=this.position)||void 0===i?void 0:i.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:i}=t,{x:e,y:o}=this.getTransformValues(t);this.setTargetPosition(i,e,o),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[s.a,m.a]}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("position")&&!t.has("show")&&this.setInitialTargetPosition()}isNewPositionNotSame(){var t,i,e,o;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(i=this.position)||void 0===i?void 0:i.x)||Number(null===(e=this.container)||void 0===e?void 0:e.getAttribute("data-y"))!==(null===(o=this.position)||void 0===o?void 0:o.y)}setInitialTargetPosition(){var t,i;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(i=this.position)||void 0===i?void 0:i.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),i=this.container.getAttribute("data-y");return t&&i?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:i}}})),`translate(${t}px, ${i}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>b(this,void 0,void 0,(function*(){yield this.updateComplete,this.containerRect=this.container.getBoundingClientRect(),this.dispatchEvent(new CustomEvent("floating-modal-resize",{composed:!0,bubbles:!0,detail:{size:this.containerRect}})),this.containerTransform=this.getContainerTransform()})))}setInteractInstance(){requestAnimationFrame(()=>{this.container&&l()(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l.a.modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l.a.modifiers.restrictSize({max:"parent"})]})]:void 0}).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}})})}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(){this.minimizable&&(this.dragOccured||(this.minimize=!this.minimize,this.dispatchEvent(new CustomEvent("floating-modal-minimize",{composed:!0,bubbles:!0,detail:{minimize:this.minimize}}))),this.dragOccured=!1)}handleToggleExpandCollapse(){this.full=!this.full}getTransformValues(t){const{target:i,dx:e,dy:o}=t,{initialX:n,initialY:a}=this.getInitialPosition();return{x:(parseFloat(i.getAttribute("data-x"))||0)+e+n,y:(parseFloat(i.getAttribute("data-y"))||0)+o+a}}setTargetPosition(t,i,e){t.style.transform=`translate(${i}px, ${e}px)`,t.setAttribute("data-x",""+i),t.setAttribute("data-y",""+e)}destroyInteractInstance(){this.container&&l.a.isSet(this.container)&&l()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance()}renderedCallback(){this.containerTransform=this.position?`translate(${this.position.x}px, ${this.position.y}px)`:""}render(){return d.html`
2
+ ${this.show?d.html`
3
+ <div
4
+ class="md-floating ${this.fixed?"fixed":""} ${this.minimize?"hide":""}"
5
+ part="floating"
6
+ role="dialog"
7
+ aria-label=${Object(h.ifDefined)(this.label||void 0)}
8
+ aria-modal="true"
9
+ style=${Object(h.ifDefined)(this.containerRect?`width: ${this.full?"100% !important":this.containerRect.width+"px !important"};\n height: ${this.full?"100% !important":this.containerRect.height+"px !important"};\n top: ${this.full?"0 !important":""};\n left: ${this.full?"0 !important":""};\n bottom: ${this.full?"0 !important":""};\n right: ${this.full?"0 !important":""};\n ${this.full?"transform: none !important":""};\n ${this.full?"":`transform: ${this.position?`translate(${this.position.x}px, ${this.position.y}px)`:this.containerTransform} !important`};`:void 0)}
10
+ >
11
+ <div class="md-floating__header">
12
+ <div class="md-floating__header-text">
13
+ ${this.heading?d.html` ${this.heading} `:d.html`
14
+ ${!this.minimize&&this.headerSlot}
15
+ <slot name="header"></slot>
16
+ `}
17
+ </div>
18
+ ${this.minimizable?d.html` <md-button
19
+ color="color-none"
20
+ class="md-floating__minimize"
21
+ ariaLabel="${this.minimizeAriaLabel}"
22
+ circle
23
+ @click=${this.handleMinimize}
24
+ >
25
+ <md-icon name="minus-bold" size="16" iconSet="momentumDesign"></md-icon>
26
+ </md-button>`:c.nothing}
27
+ ${this.minimize?"":d.html` <md-button
28
+ color="color-none"
29
+ class="md-floating__resize"
30
+ ariaLabel="${this.full?this.resizeAriaLabel:this.maximizeScreenLabel}"
31
+ circle
32
+ @click=${this.handleToggleExpandCollapse}
33
+ >
34
+ <md-icon
35
+ name=${this.full?"minimize-bold":"maximize-bold"}
36
+ size="16"
37
+ iconSet="momentumDesign"
38
+ ></md-icon>
39
+ </md-button>`}
40
+
41
+ <md-button
42
+ color="color-none"
43
+ class="md-floating__close"
44
+ ariaLabel="${this.closeAriaLabel}"
45
+ circle
46
+ @click=${this.handleClose}
47
+ >
48
+ <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
49
+ </md-button>
50
+ </div>
51
+ <div class="md-floating__body" part="floating-body">
52
+ <slot></slot>
53
+ </div>
54
+ </div>
55
+ ${this.minimizable?d.html` <div class="md-floating-min-parent" part="minimize-floating" tabindex="-1">
56
+ <md-floating-modal-minimized
57
+ class="float-modal-min"
58
+ part="floating-minimized"
59
+ heading=${this.heading}
60
+ .minimize=${this.minimize}
61
+ .minPosition=${this.minPosition}
62
+ @floating-min-modal-minimize=${()=>this.handleMinimize()}
63
+ @floating-modal-close=${this.handleClose}
64
+ ?show=${this.show}
65
+ >
66
+ ${this.minimize&&this.headerSlot}
67
+ </md-floating-modal-minimized>
68
+ </div>`:c.nothing}
69
+ `:c.nothing}
70
+ `}};p([Object(d.property)({type:String})],i.prototype,"heading",void 0),p([Object(d.property)({type:String})],i.prototype,"label",void 0),p([Object(d.property)({type:Boolean,reflect:!0})],i.prototype,"show",void 0),p([Object(d.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],i.prototype,"aspectRatio",void 0),p([Object(d.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],i.prototype,"fixed",void 0),p([Object(d.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],i.prototype,"full",void 0),p([Object(d.property)({type:String,attribute:"close-aria-label"})],i.prototype,"closeAriaLabel",void 0),p([Object(d.property)({type:String,attribute:"resize-aria-label"})],i.prototype,"resizeAriaLabel",void 0),p([Object(d.property)({type:String,attribute:"maximize-aria-label"})],i.prototype,"maximizeScreenLabel",void 0),p([Object(d.property)({type:String,attribute:"minimize-aria-label"})],i.prototype,"minimizeAriaLabel",void 0),p([Object(d.property)({type:Boolean,reflect:!0})],i.prototype,"minimize",void 0),p([Object(d.property)({type:Object})],i.prototype,"position",void 0),p([Object(d.property)({type:Object})],i.prototype,"minPosition",void 0),p([Object(d.property)({type:Boolean,reflect:!0})],i.prototype,"minimizable",void 0),p([Object(d.property)({type:Object})],i.prototype,"containerRect",void 0),p([Object(d.internalProperty)()],i.prototype,"dragOccured",void 0),p([Object(d.query)(".md-floating")],i.prototype,"container",void 0),p([Object(d.query)(".md-floating__body")],i.prototype,"body",void 0),p([Object(d.query)(".md-floating__header")],i.prototype,"header",void 0),p([Object(d.query)(".md-floating-min-parent")],i.prototype,"minimizedHeader",void 0),p([Object(d.query)('slot[name="header"]')],i.prototype,"headerSlot",void 0),i=p([Object(a.a)("md-floating-modal")],i),t.ELEMENT=i}(o||(o={}))}}]);
@@ -1,76 +1,19 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[73],{105:function(e,t,r){"use strict";r.r(t),r.d(t,"MeetingAlertRole",(function(){return c})),r.d(t,"MeetingAlert",(function(){return p}));r(50),r(17),r(15);var o=r(1),l=r(6),a=r(5),i=r(0),n=r(2),m=r(3);var s=i.css`.md-alert__container{position:fixed;z-index:9999}.md-alert__container--top-left{left:1em;top:1em}.md-alert__container--top-center{left:50%;top:1em;transform:translate(-50%)}.md-alert__container--top-right{right:1em;top:1em}.md-alert__container--bottom-left{bottom:1em;left:1em}.md-alert__container--bottom-center{bottom:1em;left:50%;transform:translate(-50%)}.md-alert__container--bottom-right{bottom:1em;right:1em}.md-alert__container--call{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;left:50%;top:50%;transform:translate(-50%,-50%)}.md-alert{align-content:space-between;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-left-radius:5px;border-bottom-right-radius:5px;background-color:var(--meeting-alert-bg-color,#fff);border:1px solid var(--meeting-alert-border-color,rgba(0,0,0,.12));box-shadow:0 8px 16px 0 rgba(0,0,0,.08);justify-content:space-between;margin-bottom:.5rem;max-height:19.25rem;min-height:4.875rem;padding:.5rem .8125rem .5rem 1.0625rem;width:21.375rem}.md-alert__icon{font-family:momentum-ui-icons;font-size:2.75rem;line-height:0}.md-alert__icon::before{content:"\\f6e8";color:var(--meeting-alert-info-text-color,#00a0d1)}.md-alert__content{display:flex;flex-basis:0%;flex-direction:column;flex-grow:2;padding-left:1rem;padding-right:.125rem}.md-alert__title{color:var(--meeting-alert-info-text-color,#00a0d1);font-size:var(--body-primary-font-size,1rem);line-height:1.5rem}.md-alert__message,.md-alert__status{font-size:var(--body-secondary-font-size,.875rem);font-family:var(--brand-font-medium, var(--brand-font-light, "CiscoSansTT Light", "Helvetica Neue", Helvetica, Arial, sans-serif));line-height:1.125rem}.md-alert__status{color:var(--meeting-alert-success-text-color,#03612c)}.md-alert__message{color:var(--meeting-alert-text-color,#292929)}.md-alert__message,.md-alert__title{max-width:10rem;word-wrap:break-word}.md-alert__button{margin-left:.5rem}.md-alert.md-alert--success .md-alert__icon::before{content:"\\f381";color:var(--meeting-alert-success-text-color,#00ab50)}.md-alert.md-alert--success .md-alert__title{color:var(--meeting-alert-success-text-color,#00ab50)}.md-alert.md-alert--warning .md-alert__icon::before{content:"\\fca3";color:var(--meeting-alert-warning-text-color,#d97f00)}.md-alert.md-alert--warning .md-alert__title{color:var(--meeting-alert-warning-text-color,#d97f00)}.md-alert.md-alert--error .md-alert__icon::before{content:"\\fca3";color:var(--meeting-alert-error-text-color,#f7644a)}.md-alert.md-alert--error .md-alert__title{color:var(--meeting-alert-error-text-color,#f7644a)}.md-alert.md-alert--meeting .md-alert__content{width:10rem}.md-alert.md-alert--meeting .md-alert__content--wide{width:13rem}.md-alert.md-alert--meeting .md-alert__message,.md-alert.md-alert--meeting .md-alert__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.md-alert.md-alert--meeting .md-alert__title{color:var(--meeting-alert-title-text-color,#000)}.md-alert.md-alert--call{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;margin-right:.9375rem;max-height:31.25rem;min-height:17.625rem;padding:.75rem 1.0625rem 1.5625rem 1.0625rem;width:17.375rem}.md-alert.md-alert--call .md-alert__title{color:var(--meeting-alert-title-text-color,#000);font-size:.875rem;font-weight:700;line-height:1.375rem;padding-bottom:1.5rem}.md-alert.md-alert--call .md-alert__caller{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center}.md-alert.md-alert--call .md-alert__caller-title{font-size:1rem;font-weight:700;line-height:1.5rem;padding-top:.5rem}.md-alert.md-alert--call .md-alert__caller-subtitle{font-size:.875rem;line-height:1.375rem}.md-alert.md-alert--call .md-alert--call--buttons{padding-top:1.5rem}.md-alert.md-alert--call .md-alert--call--buttons .md-icon{fill:#fff}.md-alert.md-alert--call .md-list{padding-top:.75rem}.md-alert.md-alert--call .md-list .md-list-item{background-color:rgba(0,0,0,.04)}.md-alert.md-alert--call .md-list .md-list-item:hover{background-color:rgba(0,0,0,.04)}.md-alert.md-alert--call .md-list .md-list-item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.md-alert.md-alert--call .md-list .md-list-item-header{border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:1px solid rgba(0,0,0,.08)}`,d=function(e,t,r,o){var l,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(i=(a<3?l(i):a>3?l(t,r,i):l(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i};const c=["alert","alertdialog","button","checkbox","dialog","link","option","status"];var p;!function(e){let t=class extends i.LitElement{constructor(){super(...arguments),this.attendees=[{title:"Attendee",src:null,alt:"Attendee"}],this.closeAriaLabel="close",this.onKeyDown=null,this.onSnooze=null,this.message="",this.snoozeAriaLabel="snooze",this.role="button",this.show=!1,this.src="",this.status="",this.userStyles="",this.title="",this._onSnooze=e=>{this.dispatchEvent(new CustomEvent("snooze",{composed:!0,detail:{srcEvent:e}}))},this._onClose=e=>{this.dispatchEvent(new CustomEvent("close",{composed:!0,detail:{srcEvent:e}}))},this.handleSnooze=e=>{this.onSnooze?this.onSnooze(e):this._onSnooze(e),e.stopPropagation()},this.handleClose=e=>{this._onClose(e),e.stopPropagation()},this.handleKeyDown=e=>{if(e.code===o.b.Escape&&this.handleClose(e),e.code===o.b.Enter||e.code===o.b.Space){switch(e.target.attributes.getNamedItem("aria-label").value){case"close":this.handleClose(e);break;case"snooze":this.handleSnooze(e)}e.preventDefault()}this.onKeyDown&&this.onKeyDown(e)}}getStyles(){return i.html`
2
- <style>
3
- ::slotted(img) {
4
- display: inline-block;
5
- vertical-align: middle;
6
- -ms-interpolation-mode: bicubic;
7
- height: auto;
8
- max-width: 100%;
9
- border-style: none;
10
- }
11
- ${this.userStyles}
12
- </style>
13
- `}static get styles(){return[a.a,s]}render(){const{attendees:e,message:t,onSnooze:r,role:o,src:l,status:a,title:s,closeAriaLabel:d,show:c,snoozeAriaLabel:p}=this;return i.html`
14
- ${this.getStyles()}
15
- ${c?i.html`
16
- <div
17
- aria-label="Meeting Alert"
18
- class=${"md-alert md-alert--meeting"}
19
- @keydown=${e=>this.handleKeyDown(e)}
20
- role=${o}
21
- >
22
- <slot name="custom-avatar"> ${e.length>=2?(e=>{const t="display: flex;width: 1.625rem;height: 1.625rem;font-size: .56875rem;line-height: .8125rem;";return i.html`
23
- <div class="md-composite-avatar md-composite-avatar--wc-override" style=${"position: relative; display: block;\n width: 2.5rem;\n height: 2.5rem;\n font-size: 0.875rem;\n line-height: 1.25rem;"}>
24
- <md-avatar
25
- slot="avatar"
26
- class="md-avatar"
27
- alt=${e[0].alt||e[0].title}
28
- src=${Object(m.ifDefined)(e[0].src?e[0].src:void 0)}
29
- title=${e[0].title}
30
- size="24"
31
- style=${t+"position: absolute;left: 0px;top: 0px;"}
32
- ></md-avatar>
33
- <md-avatar
34
- slot="avatar"
35
- class="md-avatar"
36
- alt=${e[1].alt||e[1].title}
37
- src=${Object(m.ifDefined)(e[1].src?e[1].src:void 0)}
38
- title=${e[1].title}
39
- size="24"
40
- style=${t+"position: absolute;right: 0px;bottom: 0px;"}
41
- ></md-avatar>
42
- </div>
43
- `})(e):i.html` <md-avatar title=${s} label="avatar" src=${l} tabindex="-1"></md-avatar> `} </slot>
44
- <div class=${"md-alert__content "+(r?"":" md-alert__content--wide")}>
45
- <div class="md-alert__title" title=${s}>${s}</div>
46
- <div class="md-alert__status" title=${a}>${a}</div>
47
- <div class="md-alert__message" title=${t}>${t}</div>
48
- </div>
49
- ${r?i.html`
50
- <div class="md-alert__button">
51
- <md-button
52
- variant="secondary"
53
- aria-label=${p}
54
- circle
55
- @click=${e=>{this.handleSnooze(e)}}
56
- .size=${40}
57
- >
58
- <md-icon name="alarm-bold" size="16" iconSet="momentumDesign"></md-icon>
59
- </md-button>
60
- </div>
61
- `:n.nothing}
62
- <slot name="custom-action">
63
- <md-button
64
- class="md-alert__button"
65
- variant="ghost"
66
- ariaLabel=${d}
67
- circle
68
- @click=${e=>{this.handleClose(e)}}
69
- .size=${40}
70
- >
71
- <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
72
- </md-button>
73
- </slot>
74
- </div>
75
- `:n.nothing}
76
- `}};d([Object(i.property)({type:Array})],t.prototype,"attendees",void 0),d([Object(i.property)({type:String})],t.prototype,"closeAriaLabel",void 0),d([Object(i.property)({attribute:!1})],t.prototype,"onKeyDown",void 0),d([Object(i.property)({attribute:!1})],t.prototype,"onSnooze",void 0),d([Object(i.property)({type:String})],t.prototype,"message",void 0),d([Object(i.property)({type:String})],t.prototype,"snoozeAriaLabel",void 0),d([Object(i.property)({type:String})],t.prototype,"role",void 0),d([Object(i.property)({type:Boolean})],t.prototype,"show",void 0),d([Object(i.property)({type:String})],t.prototype,"src",void 0),d([Object(i.property)({type:String})],t.prototype,"status",void 0),d([Object(i.property)({type:String})],t.prototype,"userStyles",void 0),d([Object(i.property)({type:String})],t.prototype,"title",void 0),t=d([Object(l.a)("md-meeting-alert")],t),e.ELEMENT=t}(p||(p={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[73],{100:function(t,e,i){"use strict";i.r(e),i.d(e,"Form",(function(){return o}));var o,r=i(7),n=i(0),s=i(3),a=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends(Object(r.e)(n.LitElement)){constructor(){super(...arguments),this.rel="",this.name="",this.action="",this.label="",this.method="get",this.target="_self",this.enctype="application/x-www-form-urlencoded",this.novalidate=!1,this.charset="UTF-8",this.isvalid=!1,this.token="on",this.allowRedirect=!1,this.autofillname="input-name",this.formElement=[],this.handleSubmit=t=>{t.preventDefault(),this.validated()&&this.submitForm()},this.handleFormSubmit=t=>{this.allowRedirect||t.preventDefault(),this.dispatchEvent(new CustomEvent("form-submitted",{composed:!0,bubbles:!0}))}}get formMethod(){return"GET"===this.method?"get":"POST"===this.method?"post":this.method}isSubmittable(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement}isDisabled(t){return t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")}findSubmittable(t,e){const i=Array.from(t.children);for(const t of i)if(!this.isDisabled(t))if(this.isSubmittable(t)&&e.add(t),t.shadowRoot)this.findSubmittable(t.shadowRoot,e);else if("SLOT"===t.tagName){const i=t.assignedElements();if(i.length){const{parentElement:t}=i[0];t&&this.findSubmittable(t,e)}}else this.findSubmittable(t,e);return[...e]}validated(){return!!this.novalidate||this.isvalid}submitForm(){const{form:t}=this;t.requestSubmit?t.requestSubmit():t.submit()}get submitButton(){return this.querySelector("button[type='submit']")||this.querySelector("input[type='submit']")||this.querySelector("md-button[type='submit']")}disconnectedCallback(){super.disconnectedCallback(),this.cleanupWrappedForms(),this.teardownEvents()}deleteWrappedForm(t){t.removeEventListener("submit",this.handleFormSubmit)}cleanupWrappedForms(){const{formElement:t}=this;if(t.length)for(const e of t)this.deleteWrappedForm(e);this.formElement=[]}createWrappedForm(t){const e=document.createElement("form");e.addEventListener("submit",this.handleFormSubmit);const{parentNode:i}=t;t.autocomplete=this.token,t.id||(t.id=this.autofillname),t.name||(t.name=this.autofillname),i&&(this.formElement.push(e),i.insertBefore(e,t),e.append(t))}teardownEvents(){this.submitButton&&this.submitButton.removeEventListener("click",this.handleSubmit)}setupEvents(){this.submitButton&&this.submitButton.addEventListener("click",this.handleSubmit)}setupSubmittable(){const t=this.findSubmittable(this.form,new Set);if(t.length)for(const e of t)this.createWrappedForm(e)}slottedChanged(){this.setupSubmittable(),this.setupEvents()}render(){return n.html`
2
+ <form
3
+ class="md-form"
4
+ role="form"
5
+ name=${Object(s.ifDefined)(this.name||void 0)}
6
+ rel=${Object(s.ifDefined)(this.rel||void 0)}
7
+ action=${Object(s.ifDefined)(this.action||void 0)}
8
+ accept-charset=${this.charset}
9
+ enctype=${this.enctype}
10
+ aria-label=${Object(s.ifDefined)(this.label||void 0)}
11
+ ?novalidate=${this.novalidate}
12
+ method=${this.formMethod}
13
+ target=${this.target}
14
+ part="form"
15
+ @submit=${this.handleFormSubmit}
16
+ >
17
+ <slot></slot>
18
+ </form>
19
+ `}};a([Object(n.property)({type:String})],e.prototype,"rel",void 0),a([Object(n.property)({type:String})],e.prototype,"name",void 0),a([Object(n.property)({type:String})],e.prototype,"action",void 0),a([Object(n.property)({type:String})],e.prototype,"label",void 0),a([Object(n.property)({type:String})],e.prototype,"method",void 0),a([Object(n.property)({type:String})],e.prototype,"target",void 0),a([Object(n.property)({type:String})],e.prototype,"enctype",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([Object(n.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([Object(n.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([Object(n.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([Object(n.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([Object(n.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([Object(n.query)(".md-form")],e.prototype,"form",void 0),e=a([Object(r.f)("md-form")],e),t.ELEMENT=e}(o||(o={}))}}]);