@momentum-ui/web-components 2.13.9 → 2.13.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (461) hide show
  1. package/dist/assets/styles/fonts.css +30 -22
  2. package/dist/chunks/md-1.js +1 -1
  3. package/dist/chunks/md-10.js +17 -5
  4. package/dist/chunks/md-100.js +1 -1
  5. package/dist/chunks/md-101.js +1 -1
  6. package/dist/chunks/md-102.js +1 -1
  7. package/dist/chunks/md-103.js +1 -1
  8. package/dist/chunks/md-104.js +1 -1
  9. package/dist/chunks/md-105.js +1 -1
  10. package/dist/chunks/md-106.js +1 -1
  11. package/dist/chunks/md-107.js +1 -1
  12. package/dist/chunks/md-108.js +1 -1
  13. package/dist/chunks/md-109.js +1 -1
  14. package/dist/chunks/md-11.js +1 -1
  15. package/dist/chunks/md-110.js +1 -1
  16. package/dist/chunks/md-111.js +1 -1
  17. package/dist/chunks/md-112.js +1 -1
  18. package/dist/chunks/md-113.js +1 -1
  19. package/dist/chunks/md-114.js +1 -1
  20. package/dist/chunks/md-115.js +1 -1
  21. package/dist/chunks/md-116.js +1 -1
  22. package/dist/chunks/md-117.js +1 -1
  23. package/dist/chunks/md-118.js +1 -1
  24. package/dist/chunks/md-119.js +1 -1
  25. package/dist/chunks/md-12.js +1 -9
  26. package/dist/chunks/md-120.js +1 -1
  27. package/dist/chunks/md-121.js +1 -1
  28. package/dist/chunks/md-122.js +1 -1
  29. package/dist/chunks/md-123.js +1 -1
  30. package/dist/chunks/md-124.js +1 -1
  31. package/dist/chunks/md-125.js +1 -1
  32. package/dist/chunks/md-126.js +1 -1
  33. package/dist/chunks/md-127.js +1 -1
  34. package/dist/chunks/md-128.js +1 -1
  35. package/dist/chunks/md-129.js +1 -1
  36. package/dist/chunks/md-13.js +10 -12
  37. package/dist/chunks/md-130.js +1 -1
  38. package/dist/chunks/md-131.js +1 -1
  39. package/dist/chunks/md-132.js +1 -1
  40. package/dist/chunks/md-133.js +1 -1
  41. package/dist/chunks/md-134.js +1 -1
  42. package/dist/chunks/md-135.js +1 -1
  43. package/dist/chunks/md-136.js +1 -1
  44. package/dist/chunks/md-137.js +1 -1
  45. package/dist/chunks/md-138.js +1 -1
  46. package/dist/chunks/md-139.js +1 -1
  47. package/dist/chunks/md-14.js +9 -1
  48. package/dist/chunks/md-140.js +1 -1
  49. package/dist/chunks/md-141.js +1 -1
  50. package/dist/chunks/md-142.js +1 -1
  51. package/dist/chunks/md-143.js +1 -1
  52. package/dist/chunks/md-144.js +1 -1
  53. package/dist/chunks/md-145.js +1 -1
  54. package/dist/chunks/md-146.js +1 -1
  55. package/dist/chunks/md-147.js +1 -1
  56. package/dist/chunks/md-148.js +1 -1
  57. package/dist/chunks/md-149.js +1 -1
  58. package/dist/chunks/md-15.js +1 -124
  59. package/dist/chunks/md-150.js +1 -1
  60. package/dist/chunks/md-151.js +1 -1
  61. package/dist/chunks/md-152.js +1 -1
  62. package/dist/chunks/md-153.js +1 -1
  63. package/dist/chunks/md-154.js +1 -1
  64. package/dist/chunks/md-155.js +1 -1
  65. package/dist/chunks/md-156.js +1 -1
  66. package/dist/chunks/md-157.js +1 -1
  67. package/dist/chunks/md-158.js +1 -1
  68. package/dist/chunks/md-159.js +1 -1
  69. package/dist/chunks/md-16.js +3 -3
  70. package/dist/chunks/md-160.js +1 -1
  71. package/dist/chunks/md-161.js +1 -1
  72. package/dist/chunks/md-162.js +1 -1
  73. package/dist/chunks/md-163.js +1 -1
  74. package/dist/chunks/md-164.js +1 -1
  75. package/dist/chunks/md-165.js +1 -1
  76. package/dist/chunks/md-166.js +1 -1
  77. package/dist/chunks/md-167.js +1 -1
  78. package/dist/chunks/md-168.js +1 -1
  79. package/dist/chunks/md-169.js +1 -1
  80. package/dist/chunks/md-17.js +122 -17
  81. package/dist/chunks/md-170.js +1 -1
  82. package/dist/chunks/md-171.js +1 -1
  83. package/dist/chunks/md-172.js +1 -1
  84. package/dist/chunks/md-173.js +1 -1
  85. package/dist/chunks/md-174.js +1 -1
  86. package/dist/chunks/md-175.js +1 -1
  87. package/dist/chunks/md-176.js +1 -1
  88. package/dist/chunks/md-177.js +1 -1
  89. package/dist/chunks/md-178.js +1 -1
  90. package/dist/chunks/md-179.js +1 -1
  91. package/dist/chunks/md-18.js +17 -12
  92. package/dist/chunks/md-180.js +1 -1
  93. package/dist/chunks/md-181.js +1 -1
  94. package/dist/chunks/md-182.js +1 -1
  95. package/dist/chunks/md-183.js +1 -1
  96. package/dist/chunks/md-184.js +1 -1
  97. package/dist/chunks/md-185.js +1 -1
  98. package/dist/chunks/md-186.js +1 -1
  99. package/dist/chunks/md-187.js +1 -1
  100. package/dist/chunks/md-188.js +1 -1
  101. package/dist/chunks/md-189.js +1 -1
  102. package/dist/chunks/md-19.js +1 -1
  103. package/dist/chunks/md-190.js +1 -1
  104. package/dist/chunks/md-191.js +1 -1
  105. package/dist/chunks/md-192.js +1 -1
  106. package/dist/chunks/md-193.js +1 -1
  107. package/dist/chunks/md-194.js +1 -1
  108. package/dist/chunks/md-195.js +1 -1
  109. package/dist/chunks/md-196.js +1 -1
  110. package/dist/chunks/md-197.js +1 -1
  111. package/dist/chunks/md-198.js +1 -1
  112. package/dist/chunks/md-199.js +1 -1
  113. package/dist/chunks/md-20.js +8 -7
  114. package/dist/chunks/md-200.js +1 -1
  115. package/dist/chunks/md-201.js +1 -1
  116. package/dist/chunks/md-202.js +1 -1
  117. package/dist/chunks/md-203.js +1 -1
  118. package/dist/chunks/md-204.js +1 -1
  119. package/dist/chunks/md-205.js +1 -1
  120. package/dist/chunks/md-206.js +1 -1
  121. package/dist/chunks/md-207.js +1 -1
  122. package/dist/chunks/md-208.js +1 -1
  123. package/dist/chunks/md-209.js +1 -1
  124. package/dist/chunks/md-21.js +21 -11
  125. package/dist/chunks/md-210.js +1 -1
  126. package/dist/chunks/md-211.js +1 -1
  127. package/dist/chunks/md-212.js +1 -1
  128. package/dist/chunks/md-213.js +1 -1
  129. package/dist/chunks/md-214.js +1 -1
  130. package/dist/chunks/md-215.js +1 -1
  131. package/dist/chunks/md-216.js +1 -1
  132. package/dist/chunks/md-217.js +1 -1
  133. package/dist/chunks/md-218.js +1 -1
  134. package/dist/chunks/md-219.js +1 -1
  135. package/dist/chunks/md-22.js +1 -1
  136. package/dist/chunks/md-220.js +1 -1
  137. package/dist/chunks/md-221.js +1 -1
  138. package/dist/chunks/md-222.js +1 -1
  139. package/dist/chunks/md-223.js +1 -1
  140. package/dist/chunks/md-224.js +1 -1
  141. package/dist/chunks/md-225.js +1 -1
  142. package/dist/chunks/md-226.js +1 -1
  143. package/dist/chunks/md-227.js +1 -1
  144. package/dist/chunks/md-228.js +1 -1
  145. package/dist/chunks/md-229.js +1 -1
  146. package/dist/chunks/md-23.js +7 -1
  147. package/dist/chunks/md-230.js +1 -1
  148. package/dist/chunks/md-231.js +1 -1
  149. package/dist/chunks/md-232.js +1 -1
  150. package/dist/chunks/md-233.js +1 -1
  151. package/dist/chunks/md-234.js +1 -1
  152. package/dist/chunks/md-235.js +1 -1
  153. package/dist/chunks/md-236.js +1 -1
  154. package/dist/chunks/md-237.js +1 -1
  155. package/dist/chunks/md-238.js +1 -1
  156. package/dist/chunks/md-239.js +1 -1
  157. package/dist/chunks/md-24.js +8 -57
  158. package/dist/chunks/md-240.js +1 -1
  159. package/dist/chunks/md-241.js +1 -1
  160. package/dist/chunks/md-242.js +1 -1
  161. package/dist/chunks/md-243.js +1 -1
  162. package/dist/chunks/md-244.js +1 -1
  163. package/dist/chunks/md-245.js +1 -1
  164. package/dist/chunks/md-246.js +1 -1
  165. package/dist/chunks/md-247.js +1 -1
  166. package/dist/chunks/md-248.js +1 -1
  167. package/dist/chunks/md-249.js +1 -1
  168. package/dist/chunks/md-25.js +1 -1
  169. package/dist/chunks/md-250.js +1 -1
  170. package/dist/chunks/md-251.js +1 -1
  171. package/dist/chunks/md-252.js +1 -1
  172. package/dist/chunks/md-253.js +1 -1
  173. package/dist/chunks/md-254.js +1 -1
  174. package/dist/chunks/md-255.js +1 -1
  175. package/dist/chunks/md-256.js +1 -1
  176. package/dist/chunks/md-257.js +1 -1
  177. package/dist/chunks/md-258.js +1 -1
  178. package/dist/chunks/md-259.js +1 -1
  179. package/dist/chunks/md-26.js +1 -1
  180. package/dist/chunks/md-260.js +1 -1
  181. package/dist/chunks/md-261.js +1 -1
  182. package/dist/chunks/md-262.js +1 -1
  183. package/dist/chunks/md-263.js +1 -1
  184. package/dist/chunks/md-264.js +1 -1
  185. package/dist/chunks/md-265.js +1 -1
  186. package/dist/chunks/md-266.js +1 -1
  187. package/dist/chunks/md-267.js +1 -1
  188. package/dist/chunks/md-268.js +1 -1
  189. package/dist/chunks/md-269.js +1 -1
  190. package/dist/chunks/md-27.js +45 -182
  191. package/dist/chunks/md-270.js +1 -1
  192. package/dist/chunks/md-271.js +1 -1
  193. package/dist/chunks/md-272.js +1 -1
  194. package/dist/chunks/md-273.js +1 -1
  195. package/dist/chunks/md-274.js +1 -1
  196. package/dist/chunks/md-275.js +1 -1
  197. package/dist/chunks/md-276.js +1 -0
  198. package/dist/chunks/md-277.js +1 -0
  199. package/dist/chunks/md-28.js +1 -61
  200. package/dist/chunks/md-29.js +192 -1
  201. package/dist/chunks/md-3.js +1 -1
  202. package/dist/chunks/md-30.js +49 -1
  203. package/dist/chunks/md-31.js +1 -33
  204. package/dist/chunks/md-32.js +1 -22
  205. package/dist/chunks/md-33.js +33 -7
  206. package/dist/chunks/md-34.js +23 -5
  207. package/dist/chunks/md-35.js +5 -1
  208. package/dist/chunks/md-36.js +5 -21
  209. package/dist/chunks/md-37.js +1 -24
  210. package/dist/chunks/md-38.js +20 -41
  211. package/dist/chunks/md-39.js +42 -1
  212. package/dist/chunks/md-4.js +1 -1
  213. package/dist/chunks/md-40.js +1 -33
  214. package/dist/chunks/md-41.js +30 -15
  215. package/dist/chunks/md-42.js +16 -1
  216. package/dist/chunks/md-43.js +1 -27
  217. package/dist/chunks/md-44.js +27 -5
  218. package/dist/chunks/md-45.js +4 -33
  219. package/dist/chunks/md-46.js +38 -13
  220. package/dist/chunks/md-47.js +13 -20
  221. package/dist/chunks/md-48.js +18 -45
  222. package/dist/chunks/md-49.js +57 -94
  223. package/dist/chunks/md-5.js +1 -1
  224. package/dist/chunks/md-50.js +98 -13
  225. package/dist/chunks/md-51.js +11 -5
  226. package/dist/chunks/md-52.js +4 -67
  227. package/dist/chunks/md-53.js +64 -20
  228. package/dist/chunks/md-54.js +22 -14
  229. package/dist/chunks/md-55.js +14 -5
  230. package/dist/chunks/md-56.js +5 -43
  231. package/dist/chunks/md-57.js +41 -28
  232. package/dist/chunks/md-58.js +21 -4
  233. package/dist/chunks/md-59.js +5 -1
  234. package/dist/chunks/md-6.js +1 -3
  235. package/dist/chunks/md-60.js +1 -23
  236. package/dist/chunks/md-61.js +23 -5
  237. package/dist/chunks/md-62.js +4 -14
  238. package/dist/chunks/md-63.js +10 -48
  239. package/dist/chunks/md-64.js +48 -29
  240. package/dist/chunks/md-65.js +29 -71
  241. package/dist/chunks/md-66.js +70 -19
  242. package/dist/chunks/md-67.js +19 -17
  243. package/dist/chunks/md-68.js +21 -38
  244. package/dist/chunks/md-69.js +17 -86
  245. package/dist/chunks/md-7.js +6 -16
  246. package/dist/chunks/md-70.js +36 -7
  247. package/dist/chunks/md-71.js +72 -72
  248. package/dist/chunks/md-72.js +6 -71
  249. package/dist/chunks/md-73.js +71 -67
  250. package/dist/chunks/md-74.js +78 -17
  251. package/dist/chunks/md-75.js +65 -4
  252. package/dist/chunks/md-76.js +16 -28
  253. package/dist/chunks/md-77.js +5 -3
  254. package/dist/chunks/md-78.js +18 -186
  255. package/dist/chunks/md-79.js +1 -39
  256. package/dist/chunks/md-8.js +1 -1
  257. package/dist/chunks/md-80.js +159 -83
  258. package/dist/chunks/md-81.js +32 -111
  259. package/dist/chunks/md-82.js +86 -11
  260. package/dist/chunks/md-83.js +79 -41
  261. package/dist/chunks/md-84.js +10 -31
  262. package/dist/chunks/md-85.js +42 -1
  263. package/dist/chunks/md-86.js +34 -1
  264. package/dist/chunks/md-87.js +1 -1
  265. package/dist/chunks/md-88.js +1 -1
  266. package/dist/chunks/md-89.js +1 -1
  267. package/dist/chunks/md-9.js +1 -1
  268. package/dist/chunks/md-90.js +1 -1
  269. package/dist/chunks/md-91.js +1 -1
  270. package/dist/chunks/md-92.js +1 -1
  271. package/dist/chunks/md-93.js +1 -1
  272. package/dist/chunks/md-94.js +1 -1
  273. package/dist/chunks/md-95.js +1 -1
  274. package/dist/chunks/md-96.js +1 -1
  275. package/dist/chunks/md-97.js +1 -1
  276. package/dist/chunks/md-98.js +1 -1
  277. package/dist/chunks/md-99.js +1 -1
  278. package/dist/comp/md-accordion-entry.js +1 -1
  279. package/dist/comp/md-accordion-item-entry.js +1 -1
  280. package/dist/comp/md-accordion-item.js +6 -2
  281. package/dist/comp/md-accordion.js +2 -2
  282. package/dist/comp/md-activity-button-entry.js +1 -1
  283. package/dist/comp/md-activity-button.js +2 -1
  284. package/dist/comp/md-alert-banner-entry.js +1 -1
  285. package/dist/comp/md-alert-banner.js +2 -1
  286. package/dist/comp/md-alert-entry.js +1 -1
  287. package/dist/comp/md-alert.js +2 -1
  288. package/dist/comp/md-audio-player-entry.js +1 -1
  289. package/dist/comp/md-audio-player.js +12 -1
  290. package/dist/comp/md-avatar-entry.js +1 -1
  291. package/dist/comp/md-avatar.js +4 -3
  292. package/dist/comp/md-badge-entry.js +1 -1
  293. package/dist/comp/md-badge.js +1 -1
  294. package/dist/comp/md-breadcrumb-entry.js +1 -1
  295. package/dist/comp/md-breadcrumb.js +1 -1
  296. package/dist/comp/md-button-entry.js +1 -1
  297. package/dist/comp/md-button-group-entry.js +1 -1
  298. package/dist/comp/md-button-group.js +1 -1
  299. package/dist/comp/md-card-entry.js +1 -1
  300. package/dist/comp/md-card.js +9 -4
  301. package/dist/comp/md-chat-message-entry.js +1 -1
  302. package/dist/comp/md-chat-message.js +5 -4
  303. package/dist/comp/md-checkbox-entry.js +1 -1
  304. package/dist/comp/md-checkbox.js +2 -2
  305. package/dist/comp/md-checkboxgroup-entry.js +1 -1
  306. package/dist/comp/md-checkboxgroup.js +2 -2
  307. package/dist/comp/md-chip-entry.js +1 -1
  308. package/dist/comp/md-chip.js +5 -4
  309. package/dist/comp/md-coachmark-entry.js +1 -1
  310. package/dist/comp/md-coachmark.js +2 -2
  311. package/dist/comp/md-combobox-entry.js +1 -1
  312. package/dist/comp/md-combobox.js +4 -3
  313. package/dist/comp/md-composite-avatar-entry.js +1 -1
  314. package/dist/comp/md-composite-avatar.js +2 -2
  315. package/dist/comp/md-date-range-picker-entry.js +1 -1
  316. package/dist/comp/md-date-range-picker.js +9 -8
  317. package/dist/comp/md-date-time-picker-entry.js +1 -1
  318. package/dist/comp/md-date-time-picker.js +4 -3
  319. package/dist/comp/md-datepicker-calendar-entry.js +1 -1
  320. package/dist/comp/md-datepicker-calendar.js +6 -5
  321. package/dist/comp/md-datepicker-day-entry.js +1 -1
  322. package/dist/comp/md-datepicker-day.js +3 -3
  323. package/dist/comp/md-datepicker-entry.js +1 -1
  324. package/dist/comp/md-datepicker-month-entry.js +1 -1
  325. package/dist/comp/md-datepicker-month.js +4 -4
  326. package/dist/comp/md-datepicker-week-entry.js +1 -1
  327. package/dist/comp/md-datepicker-week.js +3 -3
  328. package/dist/comp/md-datepicker.js +8 -7
  329. package/dist/comp/md-draggable-entry.js +1 -1
  330. package/dist/comp/md-draggable-item-entry.js +1 -1
  331. package/dist/comp/md-draggable-item.js +2 -2
  332. package/dist/comp/md-draggable.js +3 -3
  333. package/dist/comp/md-dropdown-entry.js +1 -1
  334. package/dist/comp/md-dropdown.js +2 -1
  335. package/dist/comp/md-editable-field-entry.js +1 -1
  336. package/dist/comp/md-editable-field.js +5 -4
  337. package/dist/comp/md-favorite-entry.js +1 -1
  338. package/dist/comp/md-favorite.js +2 -1
  339. package/dist/comp/md-floating-minimize-entry.js +1 -1
  340. package/dist/comp/md-floating-minimize.js +3 -2
  341. package/dist/comp/md-floating-modal-entry.js +1 -1
  342. package/dist/comp/md-floating-modal.js +4 -3
  343. package/dist/comp/md-form-entry.js +1 -1
  344. package/dist/comp/md-form.js +1 -1
  345. package/dist/comp/md-grabber-entry.js +1 -0
  346. package/dist/comp/md-grabber.js +14 -0
  347. package/dist/comp/md-help-text-entry.js +1 -1
  348. package/dist/comp/md-help-text.js +1 -1
  349. package/dist/comp/md-icon-entry.js +1 -1
  350. package/dist/comp/md-icon.js +1 -0
  351. package/dist/comp/md-inpu.js +1 -1
  352. package/dist/comp/md-input-entry.js +1 -1
  353. package/dist/comp/md-input-file.js +1 -1
  354. package/dist/comp/md-input.js +3 -2
  355. package/dist/comp/md-label-entry.js +1 -1
  356. package/dist/comp/md-label.js +1 -1
  357. package/dist/comp/md-link-entry.js +1 -1
  358. package/dist/comp/md-link.js +1 -1
  359. package/dist/comp/md-list-entry.js +1 -1
  360. package/dist/comp/md-list-item-entry.js +1 -1
  361. package/dist/comp/md-list-item.js +2 -2
  362. package/dist/comp/md-list.js +2 -2
  363. package/dist/comp/md-loading-entry.js +1 -1
  364. package/dist/comp/md-loading.js +1 -1
  365. package/dist/comp/md-meeting-alert-entry.js +1 -1
  366. package/dist/comp/md-meeting-alert.js +5 -4
  367. package/dist/comp/md-menu-entry.js +1 -1
  368. package/dist/comp/md-menu-item-entry.js +1 -1
  369. package/dist/comp/md-menu-item.js +1 -1
  370. package/dist/comp/md-menu-overlay-entry.js +1 -1
  371. package/dist/comp/md-menu-overlay.js +1 -1
  372. package/dist/comp/md-menu.js +2 -2
  373. package/dist/comp/md-modal-entry.js +1 -1
  374. package/dist/comp/md-modal.js +2 -1
  375. package/dist/comp/md-pagination-entry.js +1 -1
  376. package/dist/comp/md-pagination.js +6 -1
  377. package/dist/comp/md-phone-input-entry.js +1 -1
  378. package/dist/comp/md-phone-input.js +7 -6
  379. package/dist/comp/md-progress-bar-entry.js +1 -1
  380. package/dist/comp/md-progress-bar.js +1 -1
  381. package/dist/comp/md-radio-entry.js +1 -1
  382. package/dist/comp/md-radio.js +2 -2
  383. package/dist/comp/md-radiogroup-entry.js +1 -1
  384. package/dist/comp/md-radiogroup.js +2 -2
  385. package/dist/comp/md-slider-entry.js +1 -1
  386. package/dist/comp/md-slider.js +1 -1
  387. package/dist/comp/md-spinner-entry.js +1 -1
  388. package/dist/comp/md-tab-entry.js +1 -1
  389. package/dist/comp/md-tab-panel-entry.js +1 -1
  390. package/dist/comp/md-tab-panel.js +2 -2
  391. package/dist/comp/md-tab.js +2 -2
  392. package/dist/comp/md-table-advanced-entry.js +1 -1
  393. package/dist/comp/md-table-advanced.js +3 -2
  394. package/dist/comp/md-table-entry.js +1 -1
  395. package/dist/comp/md-table.js +1 -1
  396. package/dist/comp/md-tabs-entry.js +1 -1
  397. package/dist/comp/md-tabs.js +6 -5
  398. package/dist/comp/md-task-item-entry.js +1 -1
  399. package/dist/comp/md-task-item.js +3 -2
  400. package/dist/comp/md-theme-entry.js +1 -1
  401. package/dist/comp/md-theme.js +2 -2
  402. package/dist/comp/md-timepicker-entry.js +1 -1
  403. package/dist/comp/md-timepicker.js +7 -6
  404. package/dist/comp/md-toggle-switch-entry.js +1 -1
  405. package/dist/comp/md-toggle-switch.js +2 -2
  406. package/dist/comp/md-tooltip-entry.js +1 -1
  407. package/dist/comp/md-tooltip.js +2 -2
  408. package/dist/index-entry.js +2 -22
  409. package/dist/index.js +51 -49
  410. package/dist/types/components/accordion/AccordionItem.d.ts +8 -0
  411. package/dist/types/components/activity-button/ActivityButton.d.ts +2 -2
  412. package/dist/types/components/alert-banner/AlertBanner.d.ts +2 -2
  413. package/dist/types/components/audio-player/AudioPlayer.d.ts +3 -0
  414. package/dist/types/components/avatar/Avatar.d.ts +12 -2
  415. package/dist/types/components/avatar/CompositeAvatar.d.ts +2 -2
  416. package/dist/types/components/avatar/Presence.d.ts +1 -1
  417. package/dist/types/components/avatar/Presence.utils.d.ts +1 -1
  418. package/dist/types/components/button/Button.d.ts +8 -8
  419. package/dist/types/components/card/Card.d.ts +3 -1
  420. package/dist/types/components/chip/Chip.d.ts +3 -3
  421. package/dist/types/components/coachmark/Coachmark.d.ts +1 -1
  422. package/dist/types/components/combobox/ComboBox.d.ts +1 -1
  423. package/dist/types/components/date-time-picker/DateTimePicker.d.ts +1 -1
  424. package/dist/types/components/datepicker/DatePicker.d.ts +1 -1
  425. package/dist/types/components/datepicker/datepicker-day/DatePickerDay.d.ts +2 -2
  426. package/dist/types/components/datepicker/datepicker-month/DatePickerMonth.d.ts +1 -1
  427. package/dist/types/components/editable-textfield/EditableTextfield.d.ts +2 -2
  428. package/dist/types/components/favorite/Favorite.d.ts +2 -2
  429. package/dist/types/components/floating-modal/FloatingModal.d.ts +2 -2
  430. package/dist/types/components/grabber/Grabber.d.ts +2 -2
  431. package/dist/types/components/help-text/HelpText.d.ts +1 -1
  432. package/dist/types/components/icon/Icon.d.ts +22 -10
  433. package/dist/types/components/input/Input.d.ts +3 -3
  434. package/dist/types/components/link/Link.d.ts +3 -3
  435. package/dist/types/components/meeting-alert/MeetingAlert.d.ts +1 -1
  436. package/dist/types/components/menu-overlay/MenuOverlay.d.ts +4 -3
  437. package/dist/types/components/modal/Modal.d.ts +1 -1
  438. package/dist/types/components/pagination/Pagination.d.ts +2 -0
  439. package/dist/types/components/table/Table.d.ts +1 -1
  440. package/dist/types/components/timepicker/TimePicker.d.ts +3 -3
  441. package/dist/types/components/toggle-switch/ToggleSwitch.d.ts +1 -1
  442. package/dist/types/components/tooltip/Tooltip.d.ts +2 -2
  443. package/dist/types/utils/keyboard.d.ts +1 -0
  444. package/package.json +6 -6
  445. package/dist/assets/fonts/MomentumFontIcon.svg +0 -8634
  446. package/dist/assets/fonts/MomentumFontIcon.ttf +0 -0
  447. package/dist/assets/fonts/MomentumFontIcon.woff +0 -0
  448. package/dist/assets/fonts/MomentumFontIcon.woff2 +0 -0
  449. package/dist/assets/fonts/glyphs.json +0 -20120
  450. package/dist/assets/icons/fonts/MomentumFontIcon.svg +0 -8634
  451. package/dist/assets/icons/fonts/MomentumFontIcon.ttf +0 -0
  452. package/dist/assets/icons/fonts/MomentumFontIcon.woff +0 -0
  453. package/dist/assets/icons/fonts/MomentumFontIcon.woff2 +0 -0
  454. package/dist/assets/icons/fonts/glyphs.json +0 -20120
  455. package/dist/assets/styles/MomentumFontIcons.css +0 -11751
  456. package/dist/assets/styles/MomentumFontIcons.min.css +0 -1
  457. package/dist/assets/styles/functions.scss +0 -3
  458. package/dist/assets/styles/icons.scss +0 -2880
  459. package/dist/assets/styles/mixins.scss +0 -2915
  460. package/dist/assets/styles/placeholders.scss +0 -2901
  461. package/dist/assets/styles/variables.scss +0 -2885
@@ -1,5 +1,23 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[61],{92:function(t,e,a){"use strict";a.r(e),a.d(e,"Draggable",(function(){return o}));var o,s=a(0),r=a(30),i=a.n(r),n=a(5),l=a(63),h=a(16),p=a(7),d=function(t,e,a,o){var s,r=arguments.length,i=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,a,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(r<3?s(i):r>3?s(e,a,i):s(e,a))||i);return r>3&&i&&Object.defineProperty(e,a,i),i};!function(t){let e=class extends(Object(p.e)(s.LitElement)){constructor(){super(...arguments),this.delay=0,this.animation=0,this.handle="",this.filter="",this.easing="",this.direction="vertical",this.group=null,this.draggableItems="md-draggable-item",this.ghostClass="",this.chosenClass="",this.dragClass="",this.fallbackClass="",this.swapThreshold=1,this.touchStartThreshold=0,this.forceFallback=!1,this.sort=!1,this.disabled=!1,this.editable=!1,this.sortableInstance=null,this.handleOnChange=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-change",t)},this.handleOnClone=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-clone",t)},this.handleOnUnchoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-unchoose",t)},this.handleOnRemove=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-remove",t)},this.handleOnAdd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-add",t)},this.handleOnChoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-choose",t)},this.handleOnEnd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-end",t)},this.handleOnMove=Object(h.b)(t=>{t.stopPropagation(),this.dispatchDragEvent("drag-move",t)},100),this.handleOnStart=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-start",t)}}static get styles(){return[n.a,l.a]}get slotElement(){return this.draggableSlot}generateOptions(){return Object.assign(Object.assign({},this.group&&{group:this.group}),{disabled:this.disabled,animation:this.animation,sort:this.sort,delay:this.delay,handle:this.handle,easing:this.easing,filter:this.filter,swapThreshold:this.swapThreshold,touchStartThreshold:this.touchStartThreshold,draggable:this.draggableItems,direction:this.direction,ghostClass:this.ghostClass,chosenClass:this.chosenClass,dragClass:this.dragClass,fallbackClass:this.fallbackClass,forceFallback:this.forceFallback,onStart:this.handleOnStart,onMove:this.handleOnMove,onEnd:this.handleOnEnd,onChoose:this.handleOnChoose,onAdd:this.handleOnAdd,onRemove:this.handleOnRemove,onUnchoose:this.handleOnUnchoose,onClone:this.handleOnClone,onChange:this.handleOnChange})}initializeSortable(){this.sortableInstance||(this.sortableInstance=i.a.create(this,this.generateOptions()))}dispatchDragEvent(t,e){this.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:!0,detail:{srcEvent:e}}))}cleanupSortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}connectedCallback(){super.connectedCallback(),this.initializeSortable()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupSortable()}setSortableOption(t,e){this.sortableInstance&&void 0!==this.sortableInstance.option(t)&&this.sortableInstance.option(t,e)}updateSortableInstance(t){for(const e of t.keys()){const t=this[e];this.setSortableOption(e,t)}}updated(t){super.updated(t),this.updateSortableInstance(t)}slottedChanged(){this.initializeSortable()}render(){return s.html`
2
- <div class="md-draggable" part="draggable" aria-disabled=${this.disabled}>
3
- <slot name="draggable-item"></slot>
4
- </div>
5
- `}};d([Object(s.property)({type:Number})],e.prototype,"delay",void 0),d([Object(s.property)({type:Number})],e.prototype,"animation",void 0),d([Object(s.property)({type:String})],e.prototype,"handle",void 0),d([Object(s.property)({type:String})],e.prototype,"filter",void 0),d([Object(s.property)({type:String})],e.prototype,"easing",void 0),d([Object(s.property)({type:String})],e.prototype,"direction",void 0),d([Object(s.property)({type:Object})],e.prototype,"group",void 0),d([Object(s.property)({type:String,attribute:"draggable-items"})],e.prototype,"draggableItems",void 0),d([Object(s.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),d([Object(s.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),d([Object(s.property)({type:String,attribute:"drag-class"})],e.prototype,"dragClass",void 0),d([Object(s.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),d([Object(s.property)({type:Number,attribute:"swap-threshold"})],e.prototype,"swapThreshold",void 0),d([Object(s.property)({type:Number,attribute:"touch-start-threshold"})],e.prototype,"touchStartThreshold",void 0),d([Object(s.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),d([Object(s.property)({type:Boolean,reflect:!0})],e.prototype,"sort",void 0),d([Object(s.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),d([Object(s.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),d([Object(s.query)("slot[name='draggable-item']")],e.prototype,"draggableSlot",void 0),e=d([Object(p.f)("md-draggable")],e),t.ELEMENT=e}(o||(o={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[61],{114:function(e,t,i){"use strict";i.r(t),i.d(t,"DateTimePicker",(function(){return a}));i(28),i(30);var a,o=i(6),r=i(9),l=i(5),s=i(0),n=i(2),d=i(12),c=i(1),u=s.css`.included-timepicker-wrapper{border-top:1px solid var(--md-primary-seperator-color);display:flex;justify-content:center;padding:1rem 0;white-space:nowrap}`,h=function(e,t,i,a){var o,r=arguments.length,l=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(l=(r<3?o(l):r>3?o(t,i,l):o(t,i))||l);return r>3&&l&&Object.defineProperty(t,i,l),l},p=function(e,t,i,a){return new(i||(i=Promise))((function(o,r){function l(e){try{n(a.next(e))}catch(e){r(e)}}function s(e){try{n(a.throw(e))}catch(e){r(e)}}function n(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(l,s)}n((a=a.apply(e,t||[])).next())}))};!function(e){e.weekStartDays=["Sunday","Monday"];let t=class extends s.LitElement{constructor(){super(...arguments),this.maxDate=void 0,this.minDate=void 0,this.weekStart="Sunday",this.ariaLabel="",this.twoDigitAutoTab=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=c.c.SECOND,this.dateValue=void 0,this.timeValue="00:00:00-08:00",this.value=void 0,this.locale="en-US",this.disabled=!1,this.fullDateTime=void 0,this.selectedTimeObject=void 0,this.selectedDateObject=Object(r.n)(),this.firstCycle=!0,this.handleDateChange=e=>{var t,i;this.selectedDateObject=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.data,this.dateValue=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate(),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleTimeChange=e=>{var t,i;this.selectedTimeObject=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.data,this.timeValue=null===(i=this.selectedTimeObject)||void 0===i?void 0:i.startOf("second").toISOTime({suppressMilliseconds:!0}),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleDateTimeInputChange=e=>{var t,i;(null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.value)&&(this.value=null===(i=null==e?void 0:e.detail)||void 0===i?void 0:i.value)},this.parseValueForVisuals=e=>{e&&(this.dateValue=e.split("T")[0],this.timeValue=e.split("T")[1])},this.updateDateTimeObject=()=>{this.value&&(this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-time-change",{bubbles:!0,composed:!0,detail:{dateTimeString:this.value,dateTime:this.fullDateTime,locale:this.locale,twentyFourHourFormat:this.twentyFourHourFormat}})))},this.combineDateAndTimeValues=(e,t)=>{e&&(this.value=t?`${e}T${t}`:e)}}firstUpdated(e){const t=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});var i;return p(this,void 0,void 0,(function*(){if(t.firstUpdated.call(this,e),!this.value){const e=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate();this.combineDateAndTimeValues(e,this.timeValue)}yield new Promise(e=>setTimeout(e,0)),this.datePicker&&(this.datePicker.addEventListener("date-selection-change",this.handleDateChange),this.datePicker.addEventListener("date-input-change",this.handleDateTimeInputChange)),this.timePicker&&this.timePicker.addEventListener("time-selection-change",this.handleTimeChange)}))}updated(e){super.updated(e),this.value&&e.has("value")&&(this.parseValueForVisuals(this.value),this.firstCycle?this.firstCycle=!1:this.updateDateTimeObject()),this.dateValue&&this.timeValue&&(e.has("timeValue")||e.has("dateValue"))&&this.combineDateAndTimeValues(this.dateValue,this.timeValue),this.value&&e.has("locale")&&(this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}))}disconnectedCallback(){this.datePicker&&(this.datePicker.removeEventListener("date-selection-change",this.handleDateChange),this.datePicker.removeEventListener("date-input-change",this.handleDateTimeInputChange)),this.timePicker&&this.timePicker.removeEventListener("time-selection-change",this.handleTimeChange)}static get styles(){return[l.a,u]}render(){return s.html`
2
+ <md-datepicker
3
+ includes-time
4
+ ?disabled=${this.disabled}
5
+ ariaLabel=${Object(n.ifDefined)(this.ariaLabel||void 0)}
6
+ minDate=${Object(n.ifDefined)(this.minDate)}
7
+ maxDate=${Object(n.ifDefined)(this.maxDate)}
8
+ value=${Object(n.ifDefined)(this.value)}
9
+ weekStart=${this.weekStart}
10
+ placeholder="YYYY-MM-DDTHH:MM:SS-HH:MM"
11
+ locale=${Object(n.ifDefined)(this.locale)}>
12
+ <div slot="time-picker" class="included-timepicker-wrapper">
13
+ <md-timepicker
14
+ ?two-digit-auto-tab=${this.twoDigitAutoTab}
15
+ ?twenty-four-hour-format=${this.twentyFourHourFormat}
16
+ timeSpecificity=${this.timeSpecificity}
17
+ locale=${this.locale}
18
+ value=${this.timeValue}>
19
+ </md-timepicker>
20
+ </div>
21
+ </md-datepicker>
22
+ </div>
23
+ `}};h([Object(s.property)({type:String})],t.prototype,"maxDate",void 0),h([Object(s.property)({type:String})],t.prototype,"minDate",void 0),h([Object(s.property)({type:String})],t.prototype,"weekStart",void 0),h([Object(s.property)({type:String})],t.prototype,"ariaLabel",void 0),h([Object(s.property)({type:Boolean,attribute:"two-digit-auto-tab"})],t.prototype,"twoDigitAutoTab",void 0),h([Object(s.property)({type:Boolean,attribute:"twenty-four-hour-format"})],t.prototype,"twentyFourHourFormat",void 0),h([Object(s.property)({type:String})],t.prototype,"timeSpecificity",void 0),h([Object(s.property)({type:String,attribute:"date-value"})],t.prototype,"dateValue",void 0),h([Object(s.property)({type:String,attribute:"time-value"})],t.prototype,"timeValue",void 0),h([Object(s.property)({type:String,reflect:!0})],t.prototype,"value",void 0),h([Object(s.property)({type:String})],t.prototype,"locale",void 0),h([Object(s.property)({type:Boolean})],t.prototype,"disabled",void 0),h([Object(s.internalProperty)()],t.prototype,"fullDateTime",void 0),h([Object(s.internalProperty)()],t.prototype,"selectedTimeObject",void 0),h([Object(s.internalProperty)()],t.prototype,"selectedDateObject",void 0),h([Object(s.query)("md-datepicker")],t.prototype,"datePicker",void 0),h([Object(s.query)("md-timepicker")],t.prototype,"timePicker",void 0),t=h([Object(o.a)("md-date-time-picker")],t),e.ELEMENT=t}(a||(a={}))}}]);
@@ -1,15 +1,5 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[62],{93:function(e,t,d){"use strict";d.r(t),d.d(t,"DraggableItem",(function(){return n}));var n,o=d(0),r=d(6),a=d(7),i=d(5),l=d(63),s=d(3),c=d(4),p=function(e,t,d,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,d):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,d,n);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(a=(r<3?o(a):r>3?o(t,d,a):o(t,d))||a);return r>3&&a&&Object.defineProperty(t,d,a),a};!function(e){let t=class extends(Object(a.a)(o.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.extended=!1,this.editable=!1}static get styles(){return[i.a,l.a]}get draggableItemClassMap(){return{extended:this.extended,default:!this.extended,disabled:this.disabled}}render(){return o.html`
2
- <div
3
- class="md-draggable-item ${Object(c.classMap)(this.draggableItemClassMap)}"
4
- part="draggable-item"
5
- aria-disabled=${this.disabled}
6
- >
7
- ${this.extended&&this.editable?o.html`
8
- <md-icon name="panel-control-dragger_16"></md-icon>
9
- `:s.nothing}
10
- <slot></slot>
11
- ${this.extended?o.html`
12
- <slot name="extended"></slot>
13
- `:s.nothing}
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[62],{93:function(t,e,a){"use strict";a.r(e),a.d(e,"Draggable",(function(){return o}));var o,s=a(0),r=a(31),i=a.n(r),n=a(5),l=a(65),h=a(17),p=a(7),d=function(t,e,a,o){var s,r=arguments.length,i=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,a,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(r<3?s(i):r>3?s(e,a,i):s(e,a))||i);return r>3&&i&&Object.defineProperty(e,a,i),i};!function(t){let e=class extends(Object(p.e)(s.LitElement)){constructor(){super(...arguments),this.delay=0,this.animation=0,this.handle="",this.filter="",this.easing="",this.direction="vertical",this.group=null,this.draggableItems="md-draggable-item",this.ghostClass="",this.chosenClass="",this.dragClass="",this.fallbackClass="",this.swapThreshold=1,this.touchStartThreshold=0,this.forceFallback=!1,this.sort=!1,this.disabled=!1,this.editable=!1,this.sortableInstance=null,this.handleOnChange=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-change",t)},this.handleOnClone=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-clone",t)},this.handleOnUnchoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-unchoose",t)},this.handleOnRemove=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-remove",t)},this.handleOnAdd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-add",t)},this.handleOnChoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-choose",t)},this.handleOnEnd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-end",t)},this.handleOnMove=Object(h.b)(t=>{t.stopPropagation(),this.dispatchDragEvent("drag-move",t)},100),this.handleOnStart=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-start",t)}}static get styles(){return[n.a,l.a]}get slotElement(){return this.draggableSlot}generateOptions(){return Object.assign(Object.assign({},this.group&&{group:this.group}),{disabled:this.disabled,animation:this.animation,sort:this.sort,delay:this.delay,handle:this.handle,easing:this.easing,filter:this.filter,swapThreshold:this.swapThreshold,touchStartThreshold:this.touchStartThreshold,draggable:this.draggableItems,direction:this.direction,ghostClass:this.ghostClass,chosenClass:this.chosenClass,dragClass:this.dragClass,fallbackClass:this.fallbackClass,forceFallback:this.forceFallback,onStart:this.handleOnStart,onMove:this.handleOnMove,onEnd:this.handleOnEnd,onChoose:this.handleOnChoose,onAdd:this.handleOnAdd,onRemove:this.handleOnRemove,onUnchoose:this.handleOnUnchoose,onClone:this.handleOnClone,onChange:this.handleOnChange})}initializeSortable(){this.sortableInstance||(this.sortableInstance=i.a.create(this,this.generateOptions()))}dispatchDragEvent(t,e){this.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:!0,detail:{srcEvent:e}}))}cleanupSortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}connectedCallback(){super.connectedCallback(),this.initializeSortable()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupSortable()}setSortableOption(t,e){this.sortableInstance&&void 0!==this.sortableInstance.option(t)&&this.sortableInstance.option(t,e)}updateSortableInstance(t){for(const e of t.keys()){const t=this[e];this.setSortableOption(e,t)}}updated(t){super.updated(t),this.updateSortableInstance(t)}slottedChanged(){this.initializeSortable()}render(){return s.html`
2
+ <div class="md-draggable" part="draggable" aria-disabled=${this.disabled}>
3
+ <slot name="draggable-item"></slot>
14
4
  </div>
15
- `}};p([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),p([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"extended",void 0),p([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"editable",void 0),t=p([Object(r.a)("md-draggable-item")],t),e.ELEMENT=t}(n||(n={}))}}]);
5
+ `}};d([Object(s.property)({type:Number})],e.prototype,"delay",void 0),d([Object(s.property)({type:Number})],e.prototype,"animation",void 0),d([Object(s.property)({type:String})],e.prototype,"handle",void 0),d([Object(s.property)({type:String})],e.prototype,"filter",void 0),d([Object(s.property)({type:String})],e.prototype,"easing",void 0),d([Object(s.property)({type:String})],e.prototype,"direction",void 0),d([Object(s.property)({type:Object})],e.prototype,"group",void 0),d([Object(s.property)({type:String,attribute:"draggable-items"})],e.prototype,"draggableItems",void 0),d([Object(s.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),d([Object(s.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),d([Object(s.property)({type:String,attribute:"drag-class"})],e.prototype,"dragClass",void 0),d([Object(s.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),d([Object(s.property)({type:Number,attribute:"swap-threshold"})],e.prototype,"swapThreshold",void 0),d([Object(s.property)({type:Number,attribute:"touch-start-threshold"})],e.prototype,"touchStartThreshold",void 0),d([Object(s.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),d([Object(s.property)({type:Boolean,reflect:!0})],e.prototype,"sort",void 0),d([Object(s.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),d([Object(s.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),d([Object(s.query)("slot[name='draggable-item']")],e.prototype,"draggableSlot",void 0),e=d([Object(p.f)("md-draggable")],e),t.ELEMENT=e}(o||(o={}))}}]);
@@ -1,49 +1,11 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[63],{114:function(e,t,o){"use strict";o.r(t),o.d(t,"Dropdown",(function(){return b}));o(15);var i=o(1),s=o(7),d=o(5),n=o(0),r=o(3),l=o(13),a=o(2),p=o(36),c=n.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;display:inline-block;background-color:rgba(0,0,0,0);border:none;cursor:pointer;height:1.75rem;margin:0;margin-left:calc(.25rem*3);outline:0;padding:0;padding-top:calc(.25rem/2);position:relative;vertical-align:bottom}: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:center;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-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--pill .md-dropdown-label{border-radius:18px}:host([focus-visible]) .md-dropdown .md-dropdown-label{border-color:var(--dropdown-border-color-focus,#005e7d);box-shadow:none;outline:0}:host([disabled]) .md-dropdown .md-dropdown-label{background-color:var(--md-tertiary-bg-color)}:host([disabled]) .md-dropdown .md-dropdown-label:active,:host([disabled]) .md-dropdown .md-dropdown-label:hover{background-color:var(--md-tertiary-bg-color);pointer-events:none}:host([disabled]) .md-dropdown .md-dropdown-label:active>md-icon,:host([disabled]) .md-dropdown .md-dropdown-label:hover>md-icon{opacity:.3}:host([disabled]) .md-dropdown .md-dropdown-label:focus-visible{border-color:var(--dropdown-border-color-focus,#005e7d);outline:0}@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([disabled]) .md-dropdown .md-dropdown-label{border:1px solid GrayText;color:GrayText}}`,h=function(e,t,o,i){var s,d=arguments.length,n=d<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(n=(d<3?s(n):d>3?s(t,o,n):s(t,o))||n);return d>3&&n&&Object.defineProperty(t,o,n),n},u=function(e,t,o,i){return new(o||(o=Promise))((function(s,d){function n(e){try{l(i.next(e))}catch(e){d(e)}}function r(e){try{l(i.throw(e))}catch(e){d(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(n,r)}l((i=i.apply(e,t||[])).next())}))};var b;!function(e){let t=class extends(Object(s.a)(n.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.renderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,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 i.b.Tab:this.expanded&&(e.stopPropagation(),this.collapse());break;case i.b.Space:case i.b.Enter:this.expanded?(this.select(),this.collapse()):this.expand();break;case i.b.ArrowDown:this.expanded?this.focusNext():this.expand();break;case i.b.ArrowUp:this.expanded?this.focusPrev():this.expand();break;case i.b.Home:this.expanded?this.focusFirst():this.expand();break;case i.b.End:this.expanded?this.focusLast():this.expand();break;case i.b.Escape||i.b.Backspace:this.expanded&&(e.stopPropagation(),this.collapse())}}}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}})}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)}if("expanded"===t&&this.updateListDOM(),"focusedIndex"===t&&this.updateListDOM(),"defaultOption"===t&&this.defaultOption){const{key:e}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=e}})}updateRenderOptions(){const e=[];this.focusReset();const t=this.options.reduce((t,o)=>{const{key:i,value:s}=this.getOptionKeyValuePair(o);return-1!==e.indexOf(i)?console.error(`Dropdown already have option key: "${i}". Ignoring `):i?(e.push(i),t.push({key:i,value:s,option:o})):console.error(`Dropdown key is not defined: "${i}". (value: "${s}"). Ignoring `),t},[]);this.allowUnselected&&t.unshift({key:"",value:this.title}),this.renderOptions=t}updateListDOM(){return u(this,void 0,void 0,(function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))}))}resizeDropdownList(){return u(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||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[d.a,c]}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown)}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.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)}focusReset(){this.focusedIndex=-1}scrollToIndex(e){return u(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:i}=this.optionsList.getBoundingClientRect(),s=this.optionsListItems[e],d=this.optionsListItems[e+1]||s,n=this.optionsListItems[e-1]||s,r=d.getBoundingClientRect(),l=n.getBoundingClientRect();r.bottom>i?t=r.bottom-i+2:l.top<o&&(t=l.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}}render(){return r.html`
2
- <div class="md-dropdown ${Object(l.classMap)(this.dropDownClassMap)}" part="dropdown">
3
- <label
4
- class="md-dropdown-label"
5
- aria-expanded="${this.expanded}"
6
- aria-label="${this.title}"
7
- aria-controls="md-dropdown-list"
8
- aria-haspopup="listbox"
9
- ?disabled="${this.disabled}"
10
- @click="${()=>this.onLabelClick()}"
11
- part="dropdown-header"
12
- role="combobox"
13
- tabindex="0"
14
- >
15
- <span class="md-dropdown-label--text">${this.labelTitle}</span>
16
- <span class="md-dropdown-label--icon">
17
- <md-icon name="icon-arrow-down_16"></md-icon>
18
- </span>
19
- </label>
20
- <ul
21
- id="md-dropdown-list"
22
- class="md-dropdown-list"
23
- role="listbox"
24
- aria-label="${this.labelTitle}"
25
- aria-hidden="${!this.expanded}"
26
- part="dropdown-options"
27
- tabindex=${Object(a.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
28
- >
29
- ${Object(p.repeat)(this.renderOptions,e=>e.key,(e,t)=>r.html`
30
- <li
31
- id="combo-${t}"
32
- class="md-dropdown-option"
33
- role="option"
34
- tabindex=${Object(a.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
35
- aria-label="${e.value}"
36
- label="${e.value}"
37
- aria-selected="${t===this.focusedIndex}"
38
- part="dropdown-option"
39
- ?focused="${t===this.focusedIndex}"
40
- @click="${()=>{this.focusToIndex(t),this.select(),this.collapse()}}"
41
- >
42
- <span class="select-label" part="label">
43
- <span>${e.value}</span>
44
- </span>
45
- </li>
46
- `)}
47
- </ul>
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[63],{94:function(e,t,d){"use strict";d.r(t),d.d(t,"DraggableItem",(function(){return n}));var n,o=d(0),r=d(6),a=d(7),i=d(5),l=d(65),s=d(3),c=d(4),p=function(e,t,d,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,d):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,d,n);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(a=(r<3?o(a):r>3?o(t,d,a):o(t,d))||a);return r>3&&a&&Object.defineProperty(t,d,a),a};!function(e){let t=class extends(Object(a.a)(o.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.extended=!1,this.editable=!1}static get styles(){return[i.a,l.a]}get draggableItemClassMap(){return{extended:this.extended,default:!this.extended,disabled:this.disabled}}render(){return o.html`
2
+ <div
3
+ class="md-draggable-item ${Object(c.classMap)(this.draggableItemClassMap)}"
4
+ part="draggable-item"
5
+ aria-disabled=${this.disabled}
6
+ >
7
+ ${this.extended&&this.editable?o.html` <md-icon name="panel-control-dragger_16"></md-icon> `:s.nothing}
8
+ <slot></slot>
9
+ ${this.extended?o.html` <slot name="extended"></slot> `:s.nothing}
48
10
  </div>
49
- `}};h([Object(n.property)({type:String,attribute:"title"})],t.prototype,"title",void 0),h([Object(n.property)({type:Array})],t.prototype,"options",void 0),h([Object(n.property)({type:String,attribute:"option-id"})],t.prototype,"optionId",void 0),h([Object(n.property)({type:String,attribute:"option-value"})],t.prototype,"optionValue",void 0),h([Object(n.property)({type:Object})],t.prototype,"defaultOption",void 0),h([Object(n.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),h([Object(n.property)({type:Number,attribute:"custom-tab-index",reflect:!0})],t.prototype,"customTabIndex",void 0),h([Object(n.property)({type:Boolean,attribute:"allow-unselected",reflect:!0})],t.prototype,"allowUnselected",void 0),h([Object(n.property)({type:Number,attribute:"visible-option",reflect:!0})],t.prototype,"visibleOptions",void 0),h([Object(n.internalProperty)()],t.prototype,"renderOptions",void 0),h([Object(n.internalProperty)()],t.prototype,"selectedKey",void 0),h([Object(n.internalProperty)()],t.prototype,"expanded",void 0),h([Object(n.internalProperty)()],t.prototype,"focusedIndex",void 0),h([Object(n.query)("label")],t.prototype,"label",void 0),h([Object(n.query)("ul.md-dropdown-list")],t.prototype,"optionsList",void 0),h([Object(n.queryAll)("li.md-dropdown-option")],t.prototype,"optionsListItems",void 0),t=h([Object(s.f)("md-dropdown")],t),e.ELEMENT=t}(b||(b={}))}}]);
11
+ `}};p([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),p([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"extended",void 0),p([Object(o.property)({type:Boolean,reflect:!0})],t.prototype,"editable",void 0),t=p([Object(r.a)("md-draggable-item")],t),e.ELEMENT=t}(n||(n={}))}}]);
@@ -1,30 +1,49 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[64],{115: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(19),l=i(5),r=i(44),a=i.n(r),s=i(6),o=i(0),n=i(3),c=i(4),h=i(2),b=i(24),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)}
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[64],{115:function(e,t,o){"use strict";o.r(t),o.d(t,"Dropdown",(function(){return b}));o(13);var i=o(1),s=o(7),d=o(5),n=o(0),r=o(3),l=o(14),a=o(2),p=o(36),c=n.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:center;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-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--pill .md-dropdown-label{border-radius:18px}:host([focus-visible]) .md-dropdown .md-dropdown-label{border-color:var(--dropdown-border-color-focus,#005e7d);box-shadow:none;outline:0}:host([disabled]) .md-dropdown .md-dropdown-label{background-color:var(--md-tertiary-bg-color)}:host([disabled]) .md-dropdown .md-dropdown-label:active,:host([disabled]) .md-dropdown .md-dropdown-label:hover{background-color:var(--md-tertiary-bg-color);pointer-events:none}:host([disabled]) .md-dropdown .md-dropdown-label:active>md-icon,:host([disabled]) .md-dropdown .md-dropdown-label:hover>md-icon{opacity:.3}:host([disabled]) .md-dropdown .md-dropdown-label:focus-visible{border-color:var(--dropdown-border-color-focus,#005e7d);outline:0}@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([disabled]) .md-dropdown .md-dropdown-label{border:1px solid GrayText;color:GrayText}}`,h=function(e,t,o,i){var s,d=arguments.length,n=d<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(n=(d<3?s(n):d>3?s(t,o,n):s(t,o))||n);return d>3&&n&&Object.defineProperty(t,o,n),n},u=function(e,t,o,i){return new(o||(o=Promise))((function(s,d){function n(e){try{l(i.next(e))}catch(e){d(e)}}function r(e){try{l(i.throw(e))}catch(e){d(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(n,r)}l((i=i.apply(e,t||[])).next())}))};var b;!function(e){let t=class extends(Object(s.a)(n.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.renderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,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 i.b.Tab:this.expanded&&(e.stopPropagation(),this.collapse());break;case i.b.Space:case i.b.Enter:this.expanded?(this.select(),this.collapse()):this.expand();break;case i.b.ArrowDown:this.expanded?this.focusNext():this.expand();break;case i.b.ArrowUp:this.expanded?this.focusPrev():this.expand();break;case i.b.Home:this.expanded?this.focusFirst():this.expand();break;case i.b.End:this.expanded?this.focusLast():this.expand();break;case i.b.Escape||i.b.Backspace:this.expanded&&(e.stopPropagation(),this.collapse())}}}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}})}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)}if("expanded"===t&&this.updateListDOM(),"focusedIndex"===t&&this.updateListDOM(),"defaultOption"===t&&this.defaultOption){const{key:e}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=e}})}updateRenderOptions(){const e=[];this.focusReset();const t=this.options.reduce((t,o)=>{const{key:i,value:s}=this.getOptionKeyValuePair(o);return-1!==e.indexOf(i)?console.error(`Dropdown already have option key: "${i}". Ignoring `):i?(e.push(i),t.push({key:i,value:s,option:o})):console.error(`Dropdown key is not defined: "${i}". (value: "${s}"). Ignoring `),t},[]);this.allowUnselected&&t.unshift({key:"",value:this.title}),this.renderOptions=t}updateListDOM(){return u(this,void 0,void 0,(function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))}))}resizeDropdownList(){return u(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||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[d.a,c]}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown)}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.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)}focusReset(){this.focusedIndex=-1}scrollToIndex(e){return u(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:i}=this.optionsList.getBoundingClientRect(),s=this.optionsListItems[e],d=this.optionsListItems[e+1]||s,n=this.optionsListItems[e-1]||s,r=d.getBoundingClientRect(),l=n.getBoundingClientRect();r.bottom>i?t=r.bottom-i+2:l.top<o&&(t=l.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}}render(){return r.html`
2
+ <div class="md-dropdown ${Object(l.classMap)(this.dropDownClassMap)}" part="dropdown">
3
+ <label
4
+ class="md-dropdown-label"
5
+ aria-expanded="${this.expanded}"
6
+ aria-label="${this.title}"
7
+ aria-controls="md-dropdown-list"
8
+ aria-haspopup="listbox"
9
+ ?disabled="${this.disabled}"
10
+ @click="${()=>this.onLabelClick()}"
11
+ part="dropdown-header"
12
+ role="combobox"
13
+ tabindex="0"
14
+ >
15
+ <span class="md-dropdown-label--text">${this.labelTitle}</span>
16
+ <span class="md-dropdown-label--icon">
17
+ <md-icon name="arrow-down-bold" size="16" iconSet="momentumDesign"></md-icon>
18
+ </span>
19
+ </label>
20
+ <ul
21
+ id="md-dropdown-list"
22
+ class="md-dropdown-list"
23
+ role="listbox"
24
+ aria-label="${this.labelTitle}"
25
+ aria-hidden="${!this.expanded}"
26
+ part="dropdown-options"
27
+ tabindex=${Object(a.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
28
+ >
29
+ ${Object(p.repeat)(this.renderOptions,e=>e.key,(e,t)=>r.html`
30
+ <li
31
+ id="combo-${t}"
32
+ class="md-dropdown-option"
33
+ role="option"
34
+ tabindex=${Object(a.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
35
+ aria-label="${e.value}"
36
+ label="${e.value}"
37
+ aria-selected="${t===this.focusedIndex}"
38
+ part="dropdown-option"
39
+ ?focused="${t===this.focusedIndex}"
40
+ @click="${()=>{this.focusToIndex(t),this.select(),this.collapse()}}"
41
+ >
42
+ <span class="select-label" part="label">
43
+ <span>${e.value}</span>
44
+ </span>
45
+ </li>
46
+ `)}
47
+ </ul>
28
48
  </div>
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={}))}}]);
49
+ `}};h([Object(n.property)({type:String,attribute:"title"})],t.prototype,"title",void 0),h([Object(n.property)({type:Array})],t.prototype,"options",void 0),h([Object(n.property)({type:String,attribute:"option-id"})],t.prototype,"optionId",void 0),h([Object(n.property)({type:String,attribute:"option-value"})],t.prototype,"optionValue",void 0),h([Object(n.property)({type:Object})],t.prototype,"defaultOption",void 0),h([Object(n.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),h([Object(n.property)({type:Number,attribute:"custom-tab-index",reflect:!0})],t.prototype,"customTabIndex",void 0),h([Object(n.property)({type:Boolean,attribute:"allow-unselected",reflect:!0})],t.prototype,"allowUnselected",void 0),h([Object(n.property)({type:Number,attribute:"visible-option",reflect:!0})],t.prototype,"visibleOptions",void 0),h([Object(n.internalProperty)()],t.prototype,"renderOptions",void 0),h([Object(n.internalProperty)()],t.prototype,"selectedKey",void 0),h([Object(n.internalProperty)()],t.prototype,"expanded",void 0),h([Object(n.internalProperty)()],t.prototype,"focusedIndex",void 0),h([Object(n.query)("label")],t.prototype,"label",void 0),h([Object(n.query)("ul.md-dropdown-list")],t.prototype,"optionsList",void 0),h([Object(n.queryAll)("li.md-dropdown-option")],t.prototype,"optionsListItems",void 0),t=h([Object(s.f)("md-dropdown")],t),e.ELEMENT=t}(b||(b={}))}}]);
@@ -1,72 +1,30 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[65],{94:function(t,i,e){"use strict";e.r(i),e.d(i,"FloatingModal",(function(){return o}));e(18),e(15);var o,n=e(7),a=e(6),s=e(5),r=(e(46),e(48),e(45),e(20)),l=e.n(r),d=(e(47),e(0)),h=e(3),c=e(2),m=(e(76),e(64)),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},u=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(()=>u(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(t){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(c.ifDefined)(this.label||void 0)}
8
- aria-modal="true"
9
- style=${Object(c.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)}
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[65],{116: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(19),l=i(5),r=i(46),a=i.n(r),s=i(6),o=i(0),n=i(3),c=i(4),h=i(2),b=i(28),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)}
10
9
  >
11
- <div class="md-floating__header">
12
- <div class="md-floating__header-text">
13
- ${this.heading?d.html`
14
- ${this.heading}
15
- `:d.html`
16
- ${!this.minimize&&this.headerSlot}
17
- <slot name="header"></slot>
18
- `}
19
- </div>
20
- ${this.minimizable?d.html`
21
- <md-button
22
- color="color-none"
23
- class="md-floating__minimize"
24
- ariaLabel="${this.minimizeAriaLabel}"
25
- circle
26
- @click=${this.handleMinimize}
27
- >
28
- <md-icon name="minus_16"></md-icon>
29
- </md-button>`:h.nothing}
30
-
31
- ${this.minimize?"":d.html` <md-button
32
- color="color-none"
33
- class="md-floating__resize"
34
- ariaLabel="${this.full?this.resizeAriaLabel:this.maximizeScreenLabel}"
35
- circle
36
- @click=${this.handleToggleExpandCollapse}
37
- >
38
- <md-icon name=${this.full?"minimize_16":"maximize_16"}></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_16"></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`
56
- <div class="md-floating-min-parent" part="minimize-floating" tabindex="-1">
57
- <md-floating-modal-minimized
58
- class="float-modal-min"
59
- part="floating-minimized"
60
- heading=${this.heading}
61
- .minimize=${this.minimize}
62
- .minPosition=${this.minPosition}
63
- @floating-min-modal-minimize=${t=>this.handleMinimize(t)}
64
- @floating-modal-close=${this.handleClose}
65
- ?show=${this.show}
66
- >
67
- ${this.minimize&&this.headerSlot}
68
- </md-floating-modal-minimized>
69
- </div>`:h.nothing}
70
-
71
- `:h.nothing}
72
- `}};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={}))}}]);
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)}
28
+ </div>
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={}))}}]);