@momentum-ui/web-components 2.14.13 → 2.14.14

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 (1355) hide show
  1. package/dist/assets/fonts/CiscoSansTT-Medium.woff +0 -0
  2. package/dist/assets/fonts/CiscoSansTT-Medium.woff2 +0 -0
  3. package/dist/assets/fonts/CiscoSansTT-MediumOblique.woff +0 -0
  4. package/dist/assets/fonts/CiscoSansTT-MediumOblique.woff2 +0 -0
  5. package/dist/assets/fonts/CiscoSansTTBold.woff +0 -0
  6. package/dist/assets/fonts/CiscoSansTTBold.woff2 +0 -0
  7. package/dist/assets/fonts/CiscoSansTTBoldOblique.woff +0 -0
  8. package/dist/assets/fonts/CiscoSansTTBoldOblique.woff2 +0 -0
  9. package/dist/assets/fonts/CiscoSansTTCondBold.woff +0 -0
  10. package/dist/assets/fonts/CiscoSansTTCondBold.woff2 +0 -0
  11. package/dist/assets/fonts/CiscoSansTTCondRegular.woff +0 -0
  12. package/dist/assets/fonts/CiscoSansTTCondRegular.woff2 +0 -0
  13. package/dist/assets/fonts/CiscoSansTTExtraLight.woff +0 -0
  14. package/dist/assets/fonts/CiscoSansTTExtraLight.woff2 +0 -0
  15. package/dist/assets/fonts/CiscoSansTTExtraLightOblique.woff +0 -0
  16. package/dist/assets/fonts/CiscoSansTTExtraLightOblique.woff2 +0 -0
  17. package/dist/assets/fonts/CiscoSansTTHeavy.woff +0 -0
  18. package/dist/assets/fonts/CiscoSansTTHeavy.woff2 +0 -0
  19. package/dist/assets/fonts/CiscoSansTTHeavyOblique.woff +0 -0
  20. package/dist/assets/fonts/CiscoSansTTHeavyOblique.woff2 +0 -0
  21. package/dist/assets/fonts/CiscoSansTTLight.woff +0 -0
  22. package/dist/assets/fonts/CiscoSansTTLight.woff2 +0 -0
  23. package/dist/assets/fonts/CiscoSansTTLightOblique.woff +0 -0
  24. package/dist/assets/fonts/CiscoSansTTLightOblique.woff2 +0 -0
  25. package/dist/assets/fonts/CiscoSansTTRegular.woff +0 -0
  26. package/dist/assets/fonts/CiscoSansTTRegular.woff2 +0 -0
  27. package/dist/assets/fonts/CiscoSansTTRegularOblique.woff +0 -0
  28. package/dist/assets/fonts/CiscoSansTTRegularOblique.woff2 +0 -0
  29. package/dist/assets/fonts/CiscoSansTTThin.woff +0 -0
  30. package/dist/assets/fonts/CiscoSansTTThin.woff2 +0 -0
  31. package/dist/assets/fonts/CiscoSansTTThinOblique.woff +0 -0
  32. package/dist/assets/fonts/CiscoSansTTThinOblique.woff2 +0 -0
  33. package/dist/assets/fonts/Inter.var.woff2 +0 -0
  34. package/dist/assets/fonts/index.html +18578 -0
  35. package/dist/assets/fonts/momentum-ui-icons.svg +9270 -0
  36. package/dist/assets/fonts/momentum-ui-icons.ttf +0 -0
  37. package/dist/assets/fonts/momentum-ui-icons.woff +0 -0
  38. package/dist/assets/fonts/momentum-ui-icons.woff2 +0 -0
  39. package/dist/assets/icons/fonts/index.html +18578 -0
  40. package/dist/assets/icons/fonts/momentum-ui-icons.svg +9270 -0
  41. package/dist/assets/icons/fonts/momentum-ui-icons.ttf +0 -0
  42. package/dist/assets/icons/fonts/momentum-ui-icons.woff +0 -0
  43. package/dist/assets/icons/fonts/momentum-ui-icons.woff2 +0 -0
  44. package/dist/assets/images/avatar-images/barbara.png +0 -0
  45. package/dist/assets/images/avatar-images/brandon.png +0 -0
  46. package/dist/assets/images/avatar-images/brenda.png +0 -0
  47. package/dist/assets/images/avatar-images/giacomo.png +0 -0
  48. package/dist/assets/images/avatar-images/maria.png +0 -0
  49. package/dist/assets/images/avatar-images/simon.png +0 -0
  50. package/dist/assets/images/cisco/cisco-logo-black.png +0 -0
  51. package/dist/assets/images/cisco/cisco-logo-black.svg +21 -0
  52. package/dist/assets/images/cisco/cisco-logo-blue.png +0 -0
  53. package/dist/assets/images/cisco/cisco-logo-blue.svg +21 -0
  54. package/dist/assets/images/cisco/cisco-logo-white.png +0 -0
  55. package/dist/assets/images/cisco/cisco-logo-white.svg +21 -0
  56. package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-black.png +0 -0
  57. package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-black.svg +30 -0
  58. package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-blue.png +0 -0
  59. package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-blue.svg +30 -0
  60. package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-white.png +0 -0
  61. package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-white.svg +30 -0
  62. package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-black.png +0 -0
  63. package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-black.svg +13 -0
  64. package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-blue.png +0 -0
  65. package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-blue.svg +13 -0
  66. package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-white.png +0 -0
  67. package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-white.svg +13 -0
  68. package/dist/assets/images/flags.png +0 -0
  69. package/dist/assets/images/flags@2x.png +0 -0
  70. package/dist/assets/images/momentum/momentum-color-icon.png +0 -0
  71. package/dist/assets/images/momentum/momentum-color-icon.svg +1 -0
  72. package/dist/assets/images/momentum/momentum-horiz-color-white.png +0 -0
  73. package/dist/assets/images/momentum/momentum-horiz-color.png +0 -0
  74. package/dist/assets/images/momentum/momentum-horiz-color.svg +1 -0
  75. package/dist/assets/images/momentum/momentum-horiz-outline.png +0 -0
  76. package/dist/assets/images/momentum/momentum-horiz-outline.svg +1 -0
  77. package/dist/assets/images/momentum/momentum-outline-icon.png +0 -0
  78. package/dist/assets/images/momentum/momentum-outline-icon.svg +1 -0
  79. package/dist/assets/images/momentum/momentum-vert-color.png +0 -0
  80. package/dist/assets/images/momentum/momentum-vert-color.svg +1 -0
  81. package/dist/assets/images/momentum/momentum-vert-outline.png +0 -0
  82. package/dist/assets/images/momentum/momentum-vert-outline.svg +1 -0
  83. package/dist/assets/images/momentum/momentum.jpg +0 -0
  84. package/dist/assets/images/opacity-bkgd.jpg +0 -0
  85. package/dist/assets/images/webex-calling/calling-icon-color.png +0 -0
  86. package/dist/assets/images/webex-calling/calling-icon-color.svg +14 -0
  87. package/dist/assets/images/webex-calling/calling-icon-white.png +0 -0
  88. package/dist/assets/images/webex-calling/calling-icon-white.svg +13 -0
  89. package/dist/assets/images/webex-calling/calling-with-container-and-label-color.png +0 -0
  90. package/dist/assets/images/webex-calling/calling-with-container-and-label-color.svg +46 -0
  91. package/dist/assets/images/webex-calling/calling-with-container-color.png +0 -0
  92. package/dist/assets/images/webex-calling/calling-with-container-color.svg +19 -0
  93. package/dist/assets/images/webex-calling/calling-with-label-color.png +0 -0
  94. package/dist/assets/images/webex-calling/calling-with-label-color.svg +39 -0
  95. package/dist/assets/images/webex-meetings/meetings-icon-color.png +0 -0
  96. package/dist/assets/images/webex-meetings/meetings-icon-color.svg +15 -0
  97. package/dist/assets/images/webex-meetings/meetings-icon-white.png +0 -0
  98. package/dist/assets/images/webex-meetings/meetings-icon-white.svg +12 -0
  99. package/dist/assets/images/webex-meetings/meetings-with-container-and-label-color.png +0 -0
  100. package/dist/assets/images/webex-meetings/meetings-with-container-and-label-color.svg +29 -0
  101. package/dist/assets/images/webex-meetings/meetings-with-container-color.png +0 -0
  102. package/dist/assets/images/webex-meetings/meetings-with-container-color.svg +16 -0
  103. package/dist/assets/images/webex-meetings/meetings-with-label-color.png +0 -0
  104. package/dist/assets/images/webex-meetings/meetings-with-label-color.svg +28 -0
  105. package/dist/assets/images/webex-teams/teams-icon-color.png +0 -0
  106. package/dist/assets/images/webex-teams/teams-icon-color.svg +18 -0
  107. package/dist/assets/images/webex-teams/teams-icon-white.png +0 -0
  108. package/dist/assets/images/webex-teams/teams-icon-white.svg +12 -0
  109. package/dist/assets/images/webex-teams/teams-with-container-and-label-color.png +0 -0
  110. package/dist/assets/images/webex-teams/teams-with-container-and-label-color.svg +29 -0
  111. package/dist/assets/images/webex-teams/teams-with-container-color.png +0 -0
  112. package/dist/assets/images/webex-teams/teams-with-container-color.svg +19 -0
  113. package/dist/assets/images/webex-teams/teams-with-label-color.png +0 -0
  114. package/dist/assets/images/webex-teams/teams-with-label-color.svg +30 -0
  115. package/dist/assets/styles/momentum-ui-icons.min.css +1 -0
  116. package/dist/assets/styles/momentum-ui.min.css +7 -0
  117. package/dist/assets/styles/momentum-ui.min.css.map +1 -0
  118. package/dist/chunks/md-0.js +1 -0
  119. package/dist/chunks/md-1.js +1 -0
  120. package/dist/chunks/md-10.js +26 -0
  121. package/dist/chunks/md-100.js +1 -0
  122. package/dist/chunks/md-101.js +1 -0
  123. package/dist/chunks/md-102.js +1 -0
  124. package/dist/chunks/md-103.js +1 -0
  125. package/dist/chunks/md-104.js +1 -0
  126. package/dist/chunks/md-105.js +1 -0
  127. package/dist/chunks/md-106.js +1 -0
  128. package/dist/chunks/md-107.js +1 -0
  129. package/dist/chunks/md-108.js +1 -0
  130. package/dist/chunks/md-109.js +1 -0
  131. package/dist/chunks/md-11.js +1 -0
  132. package/dist/chunks/md-110.js +1 -0
  133. package/dist/chunks/md-111.js +1 -0
  134. package/dist/chunks/md-112.js +1 -0
  135. package/dist/chunks/md-113.js +1 -0
  136. package/dist/chunks/md-114.js +1 -0
  137. package/dist/chunks/md-115.js +1 -0
  138. package/dist/chunks/md-116.js +1 -0
  139. package/dist/chunks/md-117.js +1 -0
  140. package/dist/chunks/md-118.js +1 -0
  141. package/dist/chunks/md-119.js +1 -0
  142. package/dist/chunks/md-12.js +1 -0
  143. package/dist/chunks/md-120.js +1 -0
  144. package/dist/chunks/md-121.js +1 -0
  145. package/dist/chunks/md-122.js +1 -0
  146. package/dist/chunks/md-123.js +1 -0
  147. package/dist/chunks/md-124.js +1 -0
  148. package/dist/chunks/md-125.js +1 -0
  149. package/dist/chunks/md-126.js +1 -0
  150. package/dist/chunks/md-127.js +1 -0
  151. package/dist/chunks/md-128.js +1 -0
  152. package/dist/chunks/md-129.js +1 -0
  153. package/dist/chunks/md-13.js +11 -0
  154. package/dist/chunks/md-130.js +1 -0
  155. package/dist/chunks/md-131.js +1 -0
  156. package/dist/chunks/md-132.js +1 -0
  157. package/dist/chunks/md-133.js +1 -0
  158. package/dist/chunks/md-134.js +1 -0
  159. package/dist/chunks/md-135.js +1 -0
  160. package/dist/chunks/md-136.js +1 -0
  161. package/dist/chunks/md-137.js +1 -0
  162. package/dist/chunks/md-138.js +1 -0
  163. package/dist/chunks/md-139.js +1 -0
  164. package/dist/chunks/md-14.js +9 -0
  165. package/dist/chunks/md-140.js +1 -0
  166. package/dist/chunks/md-141.js +1 -0
  167. package/dist/chunks/md-142.js +1 -0
  168. package/dist/chunks/md-143.js +1 -0
  169. package/dist/chunks/md-144.js +1 -0
  170. package/dist/chunks/md-145.js +1 -0
  171. package/dist/chunks/md-146.js +1 -0
  172. package/dist/chunks/md-147.js +1 -0
  173. package/dist/chunks/md-148.js +1 -0
  174. package/dist/chunks/md-149.js +1 -0
  175. package/dist/chunks/md-15.js +1 -0
  176. package/dist/chunks/md-150.js +1 -0
  177. package/dist/chunks/md-151.js +1 -0
  178. package/dist/chunks/md-152.js +1 -0
  179. package/dist/chunks/md-153.js +1 -0
  180. package/dist/chunks/md-154.js +1 -0
  181. package/dist/chunks/md-155.js +1 -0
  182. package/dist/chunks/md-156.js +1 -0
  183. package/dist/chunks/md-157.js +1 -0
  184. package/dist/chunks/md-158.js +1 -0
  185. package/dist/chunks/md-159.js +1 -0
  186. package/dist/chunks/md-16.js +26 -0
  187. package/dist/chunks/md-160.js +1 -0
  188. package/dist/chunks/md-161.js +1 -0
  189. package/dist/chunks/md-162.js +1 -0
  190. package/dist/chunks/md-163.js +1 -0
  191. package/dist/chunks/md-164.js +1 -0
  192. package/dist/chunks/md-165.js +1 -0
  193. package/dist/chunks/md-166.js +1 -0
  194. package/dist/chunks/md-167.js +1 -0
  195. package/dist/chunks/md-168.js +1 -0
  196. package/dist/chunks/md-169.js +1 -0
  197. package/dist/chunks/md-17.js +122 -0
  198. package/dist/chunks/md-170.js +1 -0
  199. package/dist/chunks/md-171.js +1 -0
  200. package/dist/chunks/md-172.js +1 -0
  201. package/dist/chunks/md-173.js +1 -0
  202. package/dist/chunks/md-174.js +1 -0
  203. package/dist/chunks/md-175.js +1 -0
  204. package/dist/chunks/md-176.js +1 -0
  205. package/dist/chunks/md-177.js +1 -0
  206. package/dist/chunks/md-178.js +1 -0
  207. package/dist/chunks/md-179.js +1 -0
  208. package/dist/chunks/md-18.js +17 -0
  209. package/dist/chunks/md-180.js +1 -0
  210. package/dist/chunks/md-181.js +1 -0
  211. package/dist/chunks/md-182.js +1 -0
  212. package/dist/chunks/md-183.js +1 -0
  213. package/dist/chunks/md-184.js +1 -0
  214. package/dist/chunks/md-185.js +1 -0
  215. package/dist/chunks/md-186.js +1 -0
  216. package/dist/chunks/md-187.js +1 -0
  217. package/dist/chunks/md-188.js +1 -0
  218. package/dist/chunks/md-189.js +1 -0
  219. package/dist/chunks/md-19.js +1 -0
  220. package/dist/chunks/md-190.js +1 -0
  221. package/dist/chunks/md-191.js +1 -0
  222. package/dist/chunks/md-192.js +1 -0
  223. package/dist/chunks/md-193.js +1 -0
  224. package/dist/chunks/md-194.js +1 -0
  225. package/dist/chunks/md-195.js +1 -0
  226. package/dist/chunks/md-196.js +1 -0
  227. package/dist/chunks/md-197.js +1 -0
  228. package/dist/chunks/md-198.js +1 -0
  229. package/dist/chunks/md-199.js +1 -0
  230. package/dist/chunks/md-2.js +1 -0
  231. package/dist/chunks/md-20.js +8 -0
  232. package/dist/chunks/md-200.js +1 -0
  233. package/dist/chunks/md-201.js +1 -0
  234. package/dist/chunks/md-202.js +1 -0
  235. package/dist/chunks/md-203.js +1 -0
  236. package/dist/chunks/md-204.js +1 -0
  237. package/dist/chunks/md-205.js +1 -0
  238. package/dist/chunks/md-206.js +1 -0
  239. package/dist/chunks/md-207.js +1 -0
  240. package/dist/chunks/md-208.js +1 -0
  241. package/dist/chunks/md-209.js +1 -0
  242. package/dist/chunks/md-21.js +23 -0
  243. package/dist/chunks/md-210.js +1 -0
  244. package/dist/chunks/md-211.js +1 -0
  245. package/dist/chunks/md-212.js +1 -0
  246. package/dist/chunks/md-213.js +1 -0
  247. package/dist/chunks/md-214.js +1 -0
  248. package/dist/chunks/md-215.js +1 -0
  249. package/dist/chunks/md-216.js +1 -0
  250. package/dist/chunks/md-217.js +1 -0
  251. package/dist/chunks/md-218.js +1 -0
  252. package/dist/chunks/md-219.js +1 -0
  253. package/dist/chunks/md-22.js +1 -0
  254. package/dist/chunks/md-220.js +1 -0
  255. package/dist/chunks/md-221.js +1 -0
  256. package/dist/chunks/md-222.js +1 -0
  257. package/dist/chunks/md-223.js +1 -0
  258. package/dist/chunks/md-224.js +1 -0
  259. package/dist/chunks/md-225.js +1 -0
  260. package/dist/chunks/md-226.js +1 -0
  261. package/dist/chunks/md-227.js +1 -0
  262. package/dist/chunks/md-228.js +1 -0
  263. package/dist/chunks/md-229.js +1 -0
  264. package/dist/chunks/md-23.js +7 -0
  265. package/dist/chunks/md-230.js +1 -0
  266. package/dist/chunks/md-231.js +1 -0
  267. package/dist/chunks/md-232.js +1 -0
  268. package/dist/chunks/md-233.js +1 -0
  269. package/dist/chunks/md-234.js +1 -0
  270. package/dist/chunks/md-235.js +1 -0
  271. package/dist/chunks/md-236.js +1 -0
  272. package/dist/chunks/md-237.js +1 -0
  273. package/dist/chunks/md-238.js +1 -0
  274. package/dist/chunks/md-239.js +1 -0
  275. package/dist/chunks/md-24.js +8 -0
  276. package/dist/chunks/md-240.js +1 -0
  277. package/dist/chunks/md-241.js +1 -0
  278. package/dist/chunks/md-242.js +1 -0
  279. package/dist/chunks/md-243.js +1 -0
  280. package/dist/chunks/md-244.js +1 -0
  281. package/dist/chunks/md-245.js +1 -0
  282. package/dist/chunks/md-246.js +1 -0
  283. package/dist/chunks/md-247.js +1 -0
  284. package/dist/chunks/md-248.js +1 -0
  285. package/dist/chunks/md-249.js +1 -0
  286. package/dist/chunks/md-25.js +1 -0
  287. package/dist/chunks/md-250.js +1 -0
  288. package/dist/chunks/md-251.js +1 -0
  289. package/dist/chunks/md-252.js +1 -0
  290. package/dist/chunks/md-253.js +1 -0
  291. package/dist/chunks/md-254.js +1 -0
  292. package/dist/chunks/md-255.js +1 -0
  293. package/dist/chunks/md-256.js +1 -0
  294. package/dist/chunks/md-257.js +1 -0
  295. package/dist/chunks/md-258.js +1 -0
  296. package/dist/chunks/md-259.js +1 -0
  297. package/dist/chunks/md-26.js +1 -0
  298. package/dist/chunks/md-260.js +1 -0
  299. package/dist/chunks/md-261.js +1 -0
  300. package/dist/chunks/md-262.js +1 -0
  301. package/dist/chunks/md-263.js +1 -0
  302. package/dist/chunks/md-264.js +1 -0
  303. package/dist/chunks/md-265.js +1 -0
  304. package/dist/chunks/md-266.js +1 -0
  305. package/dist/chunks/md-267.js +1 -0
  306. package/dist/chunks/md-268.js +1 -0
  307. package/dist/chunks/md-269.js +1 -0
  308. package/dist/chunks/md-27.js +61 -0
  309. package/dist/chunks/md-270.js +1 -0
  310. package/dist/chunks/md-271.js +1 -0
  311. package/dist/chunks/md-272.js +1 -0
  312. package/dist/chunks/md-273.js +1 -0
  313. package/dist/chunks/md-274.js +1 -0
  314. package/dist/chunks/md-275.js +1 -0
  315. package/dist/chunks/md-276.js +1 -0
  316. package/dist/chunks/md-277.js +1 -0
  317. package/dist/chunks/md-278.js +1 -0
  318. package/dist/chunks/md-279.js +1 -0
  319. package/dist/chunks/md-28.js +1 -0
  320. package/dist/chunks/md-29.js +221 -0
  321. package/dist/chunks/md-3.js +1 -0
  322. package/dist/chunks/md-30.js +49 -0
  323. package/dist/chunks/md-31.js +1 -0
  324. package/dist/chunks/md-32.js +1 -0
  325. package/dist/chunks/md-33.js +36 -0
  326. package/dist/chunks/md-34.js +33 -0
  327. package/dist/chunks/md-35.js +23 -0
  328. package/dist/chunks/md-36.js +5 -0
  329. package/dist/chunks/md-37.js +5 -0
  330. package/dist/chunks/md-38.js +1 -0
  331. package/dist/chunks/md-39.js +21 -0
  332. package/dist/chunks/md-4.js +1 -0
  333. package/dist/chunks/md-40.js +42 -0
  334. package/dist/chunks/md-41.js +1 -0
  335. package/dist/chunks/md-42.js +30 -0
  336. package/dist/chunks/md-43.js +16 -0
  337. package/dist/chunks/md-44.js +1 -0
  338. package/dist/chunks/md-45.js +27 -0
  339. package/dist/chunks/md-46.js +5 -0
  340. package/dist/chunks/md-47.js +38 -0
  341. package/dist/chunks/md-48.js +13 -0
  342. package/dist/chunks/md-49.js +26 -0
  343. package/dist/chunks/md-5.js +1 -0
  344. package/dist/chunks/md-50.js +20 -0
  345. package/dist/chunks/md-51.js +121 -0
  346. package/dist/chunks/md-52.js +98 -0
  347. package/dist/chunks/md-53.js +11 -0
  348. package/dist/chunks/md-54.js +5 -0
  349. package/dist/chunks/md-55.js +77 -0
  350. package/dist/chunks/md-56.js +68 -0
  351. package/dist/chunks/md-57.js +22 -0
  352. package/dist/chunks/md-58.js +14 -0
  353. package/dist/chunks/md-59.js +5 -0
  354. package/dist/chunks/md-6.js +77 -0
  355. package/dist/chunks/md-60.js +51 -0
  356. package/dist/chunks/md-61.js +22 -0
  357. package/dist/chunks/md-62.js +5 -0
  358. package/dist/chunks/md-63.js +1 -0
  359. package/dist/chunks/md-64.js +23 -0
  360. package/dist/chunks/md-65.js +5 -0
  361. package/dist/chunks/md-66.js +11 -0
  362. package/dist/chunks/md-67.js +142 -0
  363. package/dist/chunks/md-68.js +30 -0
  364. package/dist/chunks/md-69.js +70 -0
  365. package/dist/chunks/md-7.js +1 -0
  366. package/dist/chunks/md-70.js +19 -0
  367. package/dist/chunks/md-71.js +21 -0
  368. package/dist/chunks/md-72.js +17 -0
  369. package/dist/chunks/md-73.js +76 -0
  370. package/dist/chunks/md-74.js +7 -0
  371. package/dist/chunks/md-75.js +72 -0
  372. package/dist/chunks/md-76.js +78 -0
  373. package/dist/chunks/md-77.js +66 -0
  374. package/dist/chunks/md-78.js +17 -0
  375. package/dist/chunks/md-79.js +5 -0
  376. package/dist/chunks/md-8.js +1 -0
  377. package/dist/chunks/md-80.js +19 -0
  378. package/dist/chunks/md-81.js +1 -0
  379. package/dist/chunks/md-82.js +168 -0
  380. package/dist/chunks/md-83.js +43 -0
  381. package/dist/chunks/md-84.js +100 -0
  382. package/dist/chunks/md-85.js +82 -0
  383. package/dist/chunks/md-86.js +12 -0
  384. package/dist/chunks/md-87.js +42 -0
  385. package/dist/chunks/md-88.js +34 -0
  386. package/dist/chunks/md-89.js +1 -0
  387. package/dist/chunks/md-9.js +1 -0
  388. package/dist/chunks/md-90.js +1 -0
  389. package/dist/chunks/md-91.js +1 -0
  390. package/dist/chunks/md-92.js +1 -0
  391. package/dist/chunks/md-93.js +1 -0
  392. package/dist/chunks/md-94.js +1 -0
  393. package/dist/chunks/md-95.js +1 -0
  394. package/dist/chunks/md-96.js +1 -0
  395. package/dist/chunks/md-97.js +1 -0
  396. package/dist/chunks/md-98.js +1 -0
  397. package/dist/chunks/md-99.js +1 -0
  398. package/dist/comp/md-accordion-entry.js +1 -0
  399. package/dist/comp/md-accordion-item-entry.js +1 -0
  400. package/dist/comp/md-accordion-item.js +15 -0
  401. package/dist/comp/md-accordion.js +11 -0
  402. package/dist/comp/md-activity-button-entry.js +1 -0
  403. package/dist/comp/md-activity-button.js +9 -0
  404. package/dist/comp/md-advance-list-entry.js +1 -0
  405. package/dist/comp/md-advance-list.js +7 -0
  406. package/dist/comp/md-alert-banner-entry.js +1 -0
  407. package/dist/comp/md-alert-banner.js +9 -0
  408. package/dist/comp/md-alert-entry.js +1 -0
  409. package/dist/comp/md-alert.js +10 -0
  410. package/dist/comp/md-audio-player-entry.js +1 -0
  411. package/dist/comp/md-audio-player.js +16 -0
  412. package/dist/comp/md-avatar-entry.js +1 -0
  413. package/dist/comp/md-avatar.js +11 -0
  414. package/dist/comp/md-badge-entry.js +1 -0
  415. package/dist/comp/md-badge.js +4 -0
  416. package/dist/comp/md-breadcrumb-entry.js +1 -0
  417. package/dist/comp/md-breadcrumb.js +4 -0
  418. package/dist/comp/md-button-entry.js +1 -0
  419. package/dist/comp/md-button-group-entry.js +1 -0
  420. package/dist/comp/md-button-group.js +10 -0
  421. package/dist/comp/md-button.js +6 -0
  422. package/dist/comp/md-card-ai-entry.js +1 -0
  423. package/dist/comp/md-card-ai.js +9 -0
  424. package/dist/comp/md-card-entry.js +1 -0
  425. package/dist/comp/md-card.js +22 -0
  426. package/dist/comp/md-chat-message-entry.js +1 -0
  427. package/dist/comp/md-chat-message.js +12 -0
  428. package/dist/comp/md-checkbox-entry.js +1 -0
  429. package/dist/comp/md-checkbox.js +11 -0
  430. package/dist/comp/md-checkboxgroup-entry.js +1 -0
  431. package/dist/comp/md-checkboxgroup.js +11 -0
  432. package/dist/comp/md-chip-entry.js +1 -0
  433. package/dist/comp/md-chip.js +17 -0
  434. package/dist/comp/md-coachmark-entry.js +1 -0
  435. package/dist/comp/md-coachmark.js +13 -0
  436. package/dist/comp/md-combobox-entry.js +1 -0
  437. package/dist/comp/md-combobox.js +17 -0
  438. package/dist/comp/md-composite-avatar-entry.js +1 -0
  439. package/dist/comp/md-composite-avatar.js +5 -0
  440. package/dist/comp/md-date-range-picker-entry.js +1 -0
  441. package/dist/comp/md-date-range-picker.js +24 -0
  442. package/dist/comp/md-date-time-picker-entry.js +1 -0
  443. package/dist/comp/md-date-time-picker.js +18 -0
  444. package/dist/comp/md-datepicker-calendar-entry.js +1 -0
  445. package/dist/comp/md-datepicker-calendar.js +14 -0
  446. package/dist/comp/md-datepicker-day-entry.js +1 -0
  447. package/dist/comp/md-datepicker-day.js +9 -0
  448. package/dist/comp/md-datepicker-entry.js +1 -0
  449. package/dist/comp/md-datepicker-month-entry.js +1 -0
  450. package/dist/comp/md-datepicker-month.js +11 -0
  451. package/dist/comp/md-datepicker-week-entry.js +1 -0
  452. package/dist/comp/md-datepicker-week.js +10 -0
  453. package/dist/comp/md-datepicker.js +23 -0
  454. package/dist/comp/md-draggable-entry.js +1 -0
  455. package/dist/comp/md-draggable-item-entry.js +1 -0
  456. package/dist/comp/md-draggable-item.js +11 -0
  457. package/dist/comp/md-draggable.js +12 -0
  458. package/dist/comp/md-dropdown-entry.js +1 -0
  459. package/dist/comp/md-dropdown.js +15 -0
  460. package/dist/comp/md-editable-field-entry.js +1 -0
  461. package/dist/comp/md-editable-field.js +15 -0
  462. package/dist/comp/md-favorite-entry.js +1 -0
  463. package/dist/comp/md-favorite.js +14 -0
  464. package/dist/comp/md-floating-minimize-entry.js +1 -0
  465. package/dist/comp/md-floating-minimize.js +15 -0
  466. package/dist/comp/md-floating-modal-entry.js +1 -0
  467. package/dist/comp/md-floating-modal.js +16 -0
  468. package/dist/comp/md-form-entry.js +1 -0
  469. package/dist/comp/md-form.js +9 -0
  470. package/dist/comp/md-grabber-entry.js +1 -0
  471. package/dist/comp/md-grabber.js +14 -0
  472. package/dist/comp/md-help-text-entry.js +1 -0
  473. package/dist/comp/md-help-text.js +4 -0
  474. package/dist/comp/md-icon-entry.js +1 -0
  475. package/dist/comp/md-icon.js +8 -0
  476. package/dist/comp/md-inpu.js +12 -0
  477. package/dist/comp/md-input-entry.js +1 -0
  478. package/dist/comp/md-input-file.js +1 -0
  479. package/dist/comp/md-input.js +13 -0
  480. package/dist/comp/md-label-entry.js +1 -0
  481. package/dist/comp/md-label.js +4 -0
  482. package/dist/comp/md-link-entry.js +1 -0
  483. package/dist/comp/md-link.js +4 -0
  484. package/dist/comp/md-list-entry.js +1 -0
  485. package/dist/comp/md-list-item-entry.js +1 -0
  486. package/dist/comp/md-list-item.js +11 -0
  487. package/dist/comp/md-list.js +11 -0
  488. package/dist/comp/md-loading-entry.js +1 -0
  489. package/dist/comp/md-loading.js +4 -0
  490. package/dist/comp/md-meeting-alert-entry.js +1 -0
  491. package/dist/comp/md-meeting-alert.js +12 -0
  492. package/dist/comp/md-menu-entry.js +1 -0
  493. package/dist/comp/md-menu-item-entry.js +1 -0
  494. package/dist/comp/md-menu-item.js +4 -0
  495. package/dist/comp/md-menu-overlay-entry.js +1 -0
  496. package/dist/comp/md-menu-overlay.js +8 -0
  497. package/dist/comp/md-menu.js +8 -0
  498. package/dist/comp/md-modal-entry.js +1 -0
  499. package/dist/comp/md-modal.js +14 -0
  500. package/dist/comp/md-pagination-entry.js +1 -0
  501. package/dist/comp/md-pagination.js +9 -0
  502. package/dist/comp/md-phone-input-entry.js +1 -0
  503. package/dist/comp/md-phone-input.js +20 -0
  504. package/dist/comp/md-progress-bar-entry.js +1 -0
  505. package/dist/comp/md-progress-bar.js +4 -0
  506. package/dist/comp/md-radio-entry.js +1 -0
  507. package/dist/comp/md-radio.js +11 -0
  508. package/dist/comp/md-radiogroup-entry.js +1 -0
  509. package/dist/comp/md-radiogroup.js +11 -0
  510. package/dist/comp/md-slider-entry.js +1 -0
  511. package/dist/comp/md-slider.js +10 -0
  512. package/dist/comp/md-spinner-entry.js +1 -0
  513. package/dist/comp/md-spinner.js +4 -0
  514. package/dist/comp/md-tab-entry.js +1 -0
  515. package/dist/comp/md-tab-panel-entry.js +1 -0
  516. package/dist/comp/md-tab-panel.js +11 -0
  517. package/dist/comp/md-tab.js +11 -0
  518. package/dist/comp/md-table-advanced-entry.js +1 -0
  519. package/dist/comp/md-table-advanced.js +14 -0
  520. package/dist/comp/md-table-entry.js +1 -0
  521. package/dist/comp/md-table.js +9 -0
  522. package/dist/comp/md-tabs-entry.js +1 -0
  523. package/dist/comp/md-tabs.js +19 -0
  524. package/dist/comp/md-task-item-entry.js +1 -0
  525. package/dist/comp/md-task-item.js +10 -0
  526. package/dist/comp/md-theme-entry.js +1 -0
  527. package/dist/comp/md-theme.js +4 -0
  528. package/dist/comp/md-timepicker-entry.js +1 -0
  529. package/dist/comp/md-timepicker.js +22 -0
  530. package/dist/comp/md-toggle-switch-entry.js +1 -0
  531. package/dist/comp/md-toggle-switch.js +11 -0
  532. package/dist/comp/md-tooltip-entry.js +1 -0
  533. package/dist/comp/md-tooltip.js +11 -0
  534. package/dist/index-entry.js +34 -0
  535. package/dist/index.js +90 -0
  536. package/dist/types/components/accordion/Accordion.d.ts +32 -0
  537. package/dist/types/components/accordion/AccordionItem.d.ts +41 -0
  538. package/dist/types/components/activity-button/ActivityButton.d.ts +41 -0
  539. package/dist/types/components/advance-list/AdvanceList.d.ts +43 -0
  540. package/dist/types/components/alert/Alert.d.ts +57 -0
  541. package/dist/types/components/alert-banner/AlertBanner.d.ts +29 -0
  542. package/dist/types/components/audio-player/AudioPlayer.d.ts +112 -0
  543. package/dist/types/components/avatar/Avatar.constants.d.ts +4 -0
  544. package/dist/types/components/avatar/Avatar.d.ts +69 -0
  545. package/dist/types/components/avatar/CompositeAvatar.d.ts +25 -0
  546. package/dist/types/components/avatar/Presence.d.ts +20 -0
  547. package/dist/types/components/avatar/Presence.utils.d.ts +8 -0
  548. package/dist/types/components/badge/Badge.d.ts +38 -0
  549. package/dist/types/components/breadcrumb/Breadcrumb.d.ts +24 -0
  550. package/dist/types/components/button/Button.d.ts +111 -0
  551. package/dist/types/components/button-group/ButtonGroup.d.ts +45 -0
  552. package/dist/types/components/card/Card.d.ts +37 -0
  553. package/dist/types/components/card-ai/CardAi.d.ts +45 -0
  554. package/dist/types/components/chat-message/ChatMessage.d.ts +18 -0
  555. package/dist/types/components/checkbox/Checkbox.d.ts +44 -0
  556. package/dist/types/components/checkbox/CheckboxGroup.d.ts +29 -0
  557. package/dist/types/components/chip/Chip.d.ts +67 -0
  558. package/dist/types/components/coachmark/Coachmark.d.ts +46 -0
  559. package/dist/types/components/code-editor/CodeEditor.d.ts +40 -0
  560. package/dist/types/components/combobox/ComboBox.d.ts +208 -0
  561. package/dist/types/components/date-range-picker/DateRangePicker.d.ts +27 -0
  562. package/dist/types/components/date-time-picker/DateTimePicker.d.ts +45 -0
  563. package/dist/types/components/datepicker/DatePicker.d.ts +58 -0
  564. package/dist/types/components/datepicker/datepicker-calendar/DatePickerCalendar.d.ts +39 -0
  565. package/dist/types/components/datepicker/datepicker-day/DatePickerDay.d.ts +56 -0
  566. package/dist/types/components/datepicker/datepicker-month/DatePickerMonth.d.ts +26 -0
  567. package/dist/types/components/datepicker/datepicker-week/DatePickerWeek.d.ts +27 -0
  568. package/dist/types/components/draggable/Draggable.d.ts +62 -0
  569. package/dist/types/components/draggable/DraggableItem.d.ts +29 -0
  570. package/dist/types/components/dropdown/Dropdown.d.ts +152 -0
  571. package/dist/types/components/editable-textfield/EditableTextfield.d.ts +53 -0
  572. package/dist/types/components/favorite/Favorite.d.ts +36 -0
  573. package/dist/types/components/floating-modal/FloatingMinimizedModal.d.ts +53 -0
  574. package/dist/types/components/floating-modal/FloatingModal.d.ts +70 -0
  575. package/dist/types/components/form/Form.d.ts +49 -0
  576. package/dist/types/components/grabber/Grabber.d.ts +74 -0
  577. package/dist/types/components/help-text/HelpText.d.ts +28 -0
  578. package/dist/types/components/icon/Icon.d.ts +196 -0
  579. package/dist/types/components/input/Input.d.ts +138 -0
  580. package/dist/types/components/input-file/InputFile.d.ts +25 -0
  581. package/dist/types/components/label/Label.d.ts +43 -0
  582. package/dist/types/components/link/Link.d.ts +36 -0
  583. package/dist/types/components/list/List.d.ts +47 -0
  584. package/dist/types/components/list/ListItem.d.ts +26 -0
  585. package/dist/types/components/loading/Loading.d.ts +24 -0
  586. package/dist/types/components/meeting-alert/CompositeAvatar.d.ts +1 -0
  587. package/dist/types/components/meeting-alert/MeetingAlert.d.ts +46 -0
  588. package/dist/types/components/menu/Menu.d.ts +46 -0
  589. package/dist/types/components/menu/MenuItem.d.ts +46 -0
  590. package/dist/types/components/menu-overlay/MenuOverlay.d.ts +81 -0
  591. package/dist/types/components/modal/Modal.d.ts +74 -0
  592. package/dist/types/components/pagination/Pagination.d.ts +33 -0
  593. package/dist/types/components/phone-input/PhoneInput.d.ts +68 -0
  594. package/dist/types/components/progress-bar/ProgressBar.d.ts +35 -0
  595. package/dist/types/components/radio/Radio.d.ts +33 -0
  596. package/dist/types/components/radio/RadioGroup.d.ts +43 -0
  597. package/dist/types/components/sass-stats/SassStats.d.ts +29 -0
  598. package/dist/types/components/slider/Slider.d.ts +47 -0
  599. package/dist/types/components/spinner/Spinner.d.ts +24 -0
  600. package/dist/types/components/table/Table.d.ts +57 -0
  601. package/dist/types/components/table-advanced/TableAdvanced.d.ts +169 -0
  602. package/dist/types/components/table-advanced/src/decorators.d.ts +32 -0
  603. package/dist/types/components/table-advanced/src/filter.d.ts +25 -0
  604. package/dist/types/components/tabs/Tab.d.ts +64 -0
  605. package/dist/types/components/tabs/TabPanel.d.ts +25 -0
  606. package/dist/types/components/tabs/Tabs.d.ts +125 -0
  607. package/dist/types/components/taskitem/TaskItem.d.ts +40 -0
  608. package/dist/types/components/theme/Theme.d.ts +89 -0
  609. package/dist/types/components/theme/index.d.ts +7 -0
  610. package/dist/types/components/timepicker/TimePicker.d.ts +50 -0
  611. package/dist/types/components/toggle-switch/ToggleSwitch.d.ts +39 -0
  612. package/dist/types/components/tooltip/Tooltip.d.ts +54 -0
  613. package/dist/types/constants.d.ts +39 -0
  614. package/dist/types/index.d.ts +76 -0
  615. package/dist/types/internal-components/color-table/ColorTable.d.ts +9 -0
  616. package/dist/types/internal-components/color-table/data.d.ts +551 -0
  617. package/dist/types/internal-components/color-table/utils.d.ts +1 -0
  618. package/dist/types/mixins/CustomElementCheck.d.ts +1 -0
  619. package/dist/types/mixins/DedupeMixin.d.ts +28 -0
  620. package/dist/types/mixins/FocusMixin.d.ts +44 -0
  621. package/dist/types/mixins/FocusTrapMixin.d.ts +19 -0
  622. package/dist/types/mixins/ResizeMixin.d.ts +52 -0
  623. package/dist/types/mixins/RovingTabIndexMixin.d.ts +31 -0
  624. package/dist/types/mixins/SlottedMixin.d.ts +43 -0
  625. package/dist/types/mixins/index.d.ts +14 -0
  626. package/dist/types/utils/dateUtils.d.ts +31 -0
  627. package/dist/types/utils/enums.d.ts +18 -0
  628. package/dist/types/utils/helpers.d.ts +17 -0
  629. package/dist/types/utils/keyboard.d.ts +1 -0
  630. package/dist/types/utils/validations.d.ts +25 -0
  631. package/dist/types/wc_scss/colors/vars/color-table-data-string.d.ts +1 -0
  632. package/package.json +6 -130
  633. package/.eslintignore +0 -6
  634. package/.eslintrc.js +0 -22
  635. package/.github/CODEOWNERS +0 -5
  636. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  637. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  638. package/.github/pull_request_template.md +0 -191
  639. package/.prettierignore +0 -6
  640. package/.prettierrc +0 -6
  641. package/.storybook/main.ts +0 -66
  642. package/.storybook/manager.ts +0 -16
  643. package/.storybook/preview-body.html +0 -43
  644. package/.storybook/preview-head.html +0 -3
  645. package/.storybook/preview.ts +0 -38
  646. package/.stylelintignore +0 -6
  647. package/.stylelintrc.js +0 -18
  648. package/.vscode/extensions.json +0 -13
  649. package/.vscode/launch.json +0 -13
  650. package/.vscode/settings.json +0 -33
  651. package/ANGULAR_USAGE.md +0 -102
  652. package/APPLYING_STYLES.md +0 -44
  653. package/CHANGELOG.md +0 -23
  654. package/CONTRIBUTING.md +0 -56
  655. package/REACT_USAGE.md +0 -145
  656. package/VERSIONING.md +0 -28
  657. package/WEB_COMPONENTS_CRASH_COURSE.md +0 -255
  658. package/babel.config.js +0 -4
  659. package/codecov.yml +0 -10
  660. package/jest/cssTransform.js +0 -9
  661. package/jest/imgTransform.js +0 -9
  662. package/jest/svgTransform.js +0 -9
  663. package/jest.config.js +0 -37
  664. package/publish-conf.js +0 -64
  665. package/sonar-project.properties +0 -22
  666. package/sonar.config.js +0 -22
  667. package/src/[sandbox]/examples/AdvanceList/components/ErrorLoader/ErrorLoader.scss +0 -22
  668. package/src/[sandbox]/examples/AdvanceList/components/ErrorLoader/ErrorLoader.ts +0 -77
  669. package/src/[sandbox]/examples/AdvanceList/components/ParentComponentError.ts +0 -116
  670. package/src/[sandbox]/examples/AdvanceList/components/ParentComponentGeneric.ts +0 -95
  671. package/src/[sandbox]/examples/AdvanceList/components/ParentComponentPreSelect.ts +0 -90
  672. package/src/[sandbox]/examples/accordion.ts +0 -67
  673. package/src/[sandbox]/examples/advance-list.ts +0 -14
  674. package/src/[sandbox]/examples/alert-banner.ts +0 -100
  675. package/src/[sandbox]/examples/alert.ts +0 -130
  676. package/src/[sandbox]/examples/audio-player.ts +0 -9
  677. package/src/[sandbox]/examples/avatar.ts +0 -119
  678. package/src/[sandbox]/examples/badge.ts +0 -170
  679. package/src/[sandbox]/examples/breadcrumb.ts +0 -5
  680. package/src/[sandbox]/examples/button-group.ts +0 -66
  681. package/src/[sandbox]/examples/button.ts +0 -407
  682. package/src/[sandbox]/examples/card-ai.ts +0 -105
  683. package/src/[sandbox]/examples/card.ts +0 -76
  684. package/src/[sandbox]/examples/chat-message.ts +0 -33
  685. package/src/[sandbox]/examples/checkbox.ts +0 -64
  686. package/src/[sandbox]/examples/chip.ts +0 -121
  687. package/src/[sandbox]/examples/coachmark.ts +0 -90
  688. package/src/[sandbox]/examples/code-editor.ts +0 -13
  689. package/src/[sandbox]/examples/colorTable.ts +0 -12
  690. package/src/[sandbox]/examples/combobox.ts +0 -402
  691. package/src/[sandbox]/examples/date-range-picker.ts +0 -26
  692. package/src/[sandbox]/examples/date-time-picker.ts +0 -25
  693. package/src/[sandbox]/examples/datepicker.ts +0 -41
  694. package/src/[sandbox]/examples/draggable.ts +0 -70
  695. package/src/[sandbox]/examples/dropdown.ts +0 -263
  696. package/src/[sandbox]/examples/editable-field.ts +0 -115
  697. package/src/[sandbox]/examples/favorite.ts +0 -49
  698. package/src/[sandbox]/examples/floating-modal.ts +0 -101
  699. package/src/[sandbox]/examples/form.ts +0 -101
  700. package/src/[sandbox]/examples/grabber.ts +0 -165
  701. package/src/[sandbox]/examples/icon.ts +0 -66
  702. package/src/[sandbox]/examples/index.ts +0 -54
  703. package/src/[sandbox]/examples/input-file.ts +0 -7
  704. package/src/[sandbox]/examples/input.ts +0 -440
  705. package/src/[sandbox]/examples/label.ts +0 -13
  706. package/src/[sandbox]/examples/link.ts +0 -46
  707. package/src/[sandbox]/examples/list.ts +0 -55
  708. package/src/[sandbox]/examples/loading.ts +0 -8
  709. package/src/[sandbox]/examples/meeting-alert.ts +0 -108
  710. package/src/[sandbox]/examples/menu-item.ts +0 -33
  711. package/src/[sandbox]/examples/menu-overlay.ts +0 -580
  712. package/src/[sandbox]/examples/modal.ts +0 -451
  713. package/src/[sandbox]/examples/pagination.ts +0 -13
  714. package/src/[sandbox]/examples/phone-input.ts +0 -90
  715. package/src/[sandbox]/examples/progress-bar.ts +0 -6
  716. package/src/[sandbox]/examples/radio-group.ts +0 -52
  717. package/src/[sandbox]/examples/slider.ts +0 -17
  718. package/src/[sandbox]/examples/spinner.ts +0 -4
  719. package/src/[sandbox]/examples/table-advanced.ts +0 -120
  720. package/src/[sandbox]/examples/table.ts +0 -106
  721. package/src/[sandbox]/examples/tabs.ts +0 -843
  722. package/src/[sandbox]/examples/task-item.ts +0 -99
  723. package/src/[sandbox]/examples/timepicker.ts +0 -26
  724. package/src/[sandbox]/examples/toggle-switch.ts +0 -20
  725. package/src/[sandbox]/examples/tooltip.ts +0 -138
  726. package/src/[sandbox]/favicon.ico +0 -0
  727. package/src/[sandbox]/index.html +0 -15
  728. package/src/[sandbox]/sandbox.mock.ts +0 -636
  729. package/src/[sandbox]/sandbox.scss +0 -66
  730. package/src/[sandbox]/sandbox.ts +0 -737
  731. package/src/assets/images/profile.svg +0 -47
  732. package/src/assets/images/whatsapp.svg +0 -1104
  733. package/src/assets/images/wxm.svg +0 -8
  734. package/src/components/accordion/Accordion.mdx +0 -74
  735. package/src/components/accordion/Accordion.stories.ts +0 -50
  736. package/src/components/accordion/Accordion.test.ts +0 -151
  737. package/src/components/accordion/Accordion.ts +0 -188
  738. package/src/components/accordion/AccordionItem.test.ts +0 -124
  739. package/src/components/accordion/AccordionItem.ts +0 -180
  740. package/src/components/accordion/scss/accordion-item.scss +0 -87
  741. package/src/components/accordion/scss/accordion.scss +0 -30
  742. package/src/components/accordion/scss/mixins.scss +0 -16
  743. package/src/components/accordion/scss/module.scss +0 -17
  744. package/src/components/accordion/scss/settings.scss +0 -10
  745. package/src/components/accordion/tokens/lm-accordion-tokens.js +0 -26
  746. package/src/components/accordion/tokens/md-accordion-tokens.js +0 -26
  747. package/src/components/accordion/tokens/mdv2-accordion-tokens.js +0 -21
  748. package/src/components/activity-button/ActivityButton.test.ts +0 -52
  749. package/src/components/activity-button/ActivityButton.ts +0 -92
  750. package/src/components/activity-button/scss/activity-button.scss +0 -160
  751. package/src/components/activity-button/scss/module.scss +0 -63
  752. package/src/components/advance-list/AdvanceList.test.ts +0 -367
  753. package/src/components/advance-list/AdvanceList.ts +0 -267
  754. package/src/components/advance-list/scss/AdvanceList.scss +0 -69
  755. package/src/components/advance-list/scss/module.scss +0 -11
  756. package/src/components/advance-list/tokens/lm-advance-list-tokens.js +0 -46
  757. package/src/components/advance-list/tokens/md-advance-list-tokens.js +0 -46
  758. package/src/components/advance-list/tokens/mdv2-adavance-list-tokens.js +0 -49
  759. package/src/components/alert/Alert.mdx +0 -72
  760. package/src/components/alert/Alert.stories.ts +0 -123
  761. package/src/components/alert/Alert.test.ts +0 -276
  762. package/src/components/alert/Alert.ts +0 -265
  763. package/src/components/alert/scss/alert.scss +0 -215
  764. package/src/components/alert/scss/mixins.scss +0 -27
  765. package/src/components/alert/scss/module.scss +0 -21
  766. package/src/components/alert/scss/settings.scss +0 -41
  767. package/src/components/alert/tokens/lm-alert-tokens.js +0 -52
  768. package/src/components/alert/tokens/md-alert-tokens.js +0 -52
  769. package/src/components/alert/tokens/mdv2-alert-tokens.js +0 -48
  770. package/src/components/alert-banner/AlertBanner.mdx +0 -38
  771. package/src/components/alert-banner/AlertBanner.stories.ts +0 -63
  772. package/src/components/alert-banner/AlertBanner.test.ts +0 -79
  773. package/src/components/alert-banner/AlertBanner.ts +0 -89
  774. package/src/components/alert-banner/scss/alert-banner.scss +0 -68
  775. package/src/components/alert-banner/scss/mixins.scss +0 -8
  776. package/src/components/alert-banner/scss/module.scss +0 -10
  777. package/src/components/alert-banner/scss/settings.scss +0 -15
  778. package/src/components/alert-banner/tokens/lm-alertbanner-tokens.js +0 -50
  779. package/src/components/alert-banner/tokens/md-alertbanner-tokens.js +0 -50
  780. package/src/components/alert-banner/tokens/mdv2-alertbanner-tokens.js +0 -44
  781. package/src/components/audio-player/AudioPlayer.stories.ts +0 -42
  782. package/src/components/audio-player/AudioPlayer.test.ts +0 -208
  783. package/src/components/audio-player/AudioPlayer.ts +0 -539
  784. package/src/components/audio-player/scss/audio-player.scss +0 -236
  785. package/src/components/audio-player/scss/mixins.scss +0 -0
  786. package/src/components/audio-player/scss/module.scss +0 -16
  787. package/src/components/audio-player/scss/settings.scss +0 -15
  788. package/src/components/audio-player/tokens/lm-audio-player-token.js +0 -46
  789. package/src/components/audio-player/tokens/md-audio-player-token.js +0 -46
  790. package/src/components/audio-player/tokens/mdv2-audio-player-token.js +0 -37
  791. package/src/components/avatar/Avatar.constants.ts +0 -31
  792. package/src/components/avatar/Avatar.mdx +0 -153
  793. package/src/components/avatar/Avatar.stories.ts +0 -97
  794. package/src/components/avatar/Avatar.test.ts +0 -202
  795. package/src/components/avatar/Avatar.ts +0 -294
  796. package/src/components/avatar/CompositeAvatar.ts +0 -47
  797. package/src/components/avatar/Presence.test.ts +0 -239
  798. package/src/components/avatar/Presence.ts +0 -52
  799. package/src/components/avatar/Presence.utils.ts +0 -132
  800. package/src/components/avatar/scss/avatar.scss +0 -331
  801. package/src/components/avatar/scss/composite-avatar.scss +0 -89
  802. package/src/components/avatar/scss/mixins.scss +0 -33
  803. package/src/components/avatar/scss/module.scss +0 -20
  804. package/src/components/avatar/scss/presence.scss +0 -47
  805. package/src/components/avatar/scss/settings.scss +0 -249
  806. package/src/components/avatar/tokens/lm-avatar-tokens.js +0 -193
  807. package/src/components/avatar/tokens/md-avatar-tokens.js +0 -183
  808. package/src/components/avatar/tokens/mdv2-avatar-tokens.js +0 -179
  809. package/src/components/badge/Badge.stories.ts +0 -62
  810. package/src/components/badge/Badge.test.ts +0 -100
  811. package/src/components/badge/Badge.ts +0 -114
  812. package/src/components/badge/scss/badge.scss +0 -244
  813. package/src/components/badge/scss/mixins.scss +0 -82
  814. package/src/components/badge/scss/module.scss +0 -12
  815. package/src/components/badge/scss/settings.scss +0 -69
  816. package/src/components/badge/tokens/lm-badge-tokens.js +0 -369
  817. package/src/components/badge/tokens/md-badge-tokens.js +0 -359
  818. package/src/components/badge/tokens/mdv2-badge-tokens.js +0 -392
  819. package/src/components/breadcrumb/Breadcrumb.stories.ts +0 -61
  820. package/src/components/breadcrumb/Breadcrumb.test.ts +0 -38
  821. package/src/components/breadcrumb/Breadcrumb.ts +0 -79
  822. package/src/components/breadcrumb/scss/breadcrumb.scss +0 -39
  823. package/src/components/breadcrumb/scss/mixins.scss +0 -5
  824. package/src/components/breadcrumb/scss/module.scss +0 -15
  825. package/src/components/breadcrumb/scss/settings.scss +0 -6
  826. package/src/components/breadcrumb/tokens/lm-breadcrumb-token.js +0 -23
  827. package/src/components/breadcrumb/tokens/md-breadcrumb-token.js +0 -23
  828. package/src/components/breadcrumb/tokens/mdv2-breadcrumb-token.js +0 -18
  829. package/src/components/button/Button.mdx +0 -77
  830. package/src/components/button/Button.stories.ts +0 -97
  831. package/src/components/button/Button.test.ts +0 -278
  832. package/src/components/button/Button.ts +0 -377
  833. package/src/components/button/README.md +0 -72
  834. package/src/components/button/scss/button.scss +0 -1002
  835. package/src/components/button/scss/mixins.scss +0 -281
  836. package/src/components/button/scss/module.scss +0 -18
  837. package/src/components/button/scss/settings.scss +0 -242
  838. package/src/components/button/tokens/lm-button-tokens.js +0 -352
  839. package/src/components/button/tokens/mdv2-button-tokens.js +0 -465
  840. package/src/components/button-group/ButtonGroup.stories.ts +0 -53
  841. package/src/components/button-group/ButtonGroup.test.ts +0 -146
  842. package/src/components/button-group/ButtonGroup.ts +0 -219
  843. package/src/components/button-group/scss/button-group.scss +0 -95
  844. package/src/components/button-group/scss/module.scss +0 -16
  845. package/src/components/button-group/scss/settings.scss +0 -5
  846. package/src/components/button-group/tokens/lm-button-group-tokens.js +0 -38
  847. package/src/components/button-group/tokens/md-button-group-tokens.js +0 -38
  848. package/src/components/button-group/tokens/mdv2-button-group-tokens.js +0 -40
  849. package/src/components/card/Card.stories.ts +0 -89
  850. package/src/components/card/Card.test.ts +0 -83
  851. package/src/components/card/Card.ts +0 -179
  852. package/src/components/card/scss/card.scss +0 -131
  853. package/src/components/card/scss/module.scss +0 -13
  854. package/src/components/card/scss/settings.scss +0 -11
  855. package/src/components/card-ai/CardAi.stories.ts +0 -62
  856. package/src/components/card-ai/CardAi.test.ts +0 -203
  857. package/src/components/card-ai/CardAi.ts +0 -232
  858. package/src/components/card-ai/scss/card-ai.scss +0 -107
  859. package/src/components/card-ai/scss/module.scss +0 -13
  860. package/src/components/card-ai/scss/settings.scss +0 -17
  861. package/src/components/card-ai/tokens/lm-card-ai-tokens.js +0 -16
  862. package/src/components/card-ai/tokens/md-card-ai-tokens.js +0 -16
  863. package/src/components/card-ai/tokens/mdv2-card-ai-tokens.js +0 -16
  864. package/src/components/chat-message/ChatMessage.stories.ts +0 -39
  865. package/src/components/chat-message/ChatMessage.test.ts +0 -53
  866. package/src/components/chat-message/ChatMessage.ts +0 -52
  867. package/src/components/chat-message/scss/chat-message.scss +0 -49
  868. package/src/components/chat-message/scss/mixins.scss +0 -6
  869. package/src/components/chat-message/scss/module.scss +0 -16
  870. package/src/components/chat-message/scss/settings.scss +0 -7
  871. package/src/components/chat-message/tokens/lm-chat-message-tokens.js +0 -18
  872. package/src/components/chat-message/tokens/md-chat-message-tokens.js +0 -18
  873. package/src/components/chat-message/tokens/mdv2-chat-message-tokens.js +0 -15
  874. package/src/components/checkbox/Checkbox.stories.ts +0 -68
  875. package/src/components/checkbox/Checkbox.test.ts +0 -124
  876. package/src/components/checkbox/Checkbox.ts +0 -172
  877. package/src/components/checkbox/CheckboxGroup.test.ts +0 -43
  878. package/src/components/checkbox/CheckboxGroup.ts +0 -91
  879. package/src/components/checkbox/scss/checkbox.scss +0 -152
  880. package/src/components/checkbox/scss/checkboxgroup.scss +0 -17
  881. package/src/components/checkbox/scss/mixins.scss +0 -0
  882. package/src/components/checkbox/scss/module.scss +0 -13
  883. package/src/components/checkbox/scss/settings.scss +0 -15
  884. package/src/components/checkbox/tokens/lm-checkbox-tokens.js +0 -82
  885. package/src/components/checkbox/tokens/md-checkbox-tokens.js +0 -83
  886. package/src/components/checkbox/tokens/mdv2-checkbox-tokens.js +0 -65
  887. package/src/components/chip/Chip.stories.ts +0 -89
  888. package/src/components/chip/Chip.test.ts +0 -137
  889. package/src/components/chip/Chip.ts +0 -299
  890. package/src/components/chip/scss/chip.scss +0 -469
  891. package/src/components/chip/scss/mixins.scss +0 -54
  892. package/src/components/chip/scss/module.scss +0 -17
  893. package/src/components/chip/scss/settings.scss +0 -5
  894. package/src/components/coachmark/Coachmark.stories.ts +0 -46
  895. package/src/components/coachmark/Coachmark.test.ts +0 -143
  896. package/src/components/coachmark/Coachmark.ts +0 -155
  897. package/src/components/coachmark/scss/coachmarks.scss +0 -569
  898. package/src/components/coachmark/scss/module.scss +0 -14
  899. package/src/components/coachmark/scss/settings.scss +0 -4
  900. package/src/components/coachmark/tokens/lm-coachmark-tokens.js +0 -140
  901. package/src/components/coachmark/tokens/md-coachmark-tokens.js +0 -130
  902. package/src/components/coachmark/tokens/mdv2-coachmark-tokens.js +0 -117
  903. package/src/components/code-editor/CodeEditor.stories.ts +0 -31
  904. package/src/components/code-editor/CodeEditor.test.ts +0 -46
  905. package/src/components/code-editor/CodeEditor.ts +0 -183
  906. package/src/components/code-editor/scss/code-editor.scss +0 -157
  907. package/src/components/code-editor/scss/module.scss +0 -12
  908. package/src/components/code-editor/scss/settings.scss +0 -10
  909. package/src/components/combobox/ComboBox.stories.ts +0 -185
  910. package/src/components/combobox/ComboBox.test.ts +0 -1517
  911. package/src/components/combobox/ComboBox.ts +0 -1824
  912. package/src/components/combobox/scss/combobox.scss +0 -572
  913. package/src/components/combobox/scss/mixins.scss +0 -9
  914. package/src/components/combobox/scss/module.scss +0 -17
  915. package/src/components/combobox/scss/settings.scss +0 -35
  916. package/src/components/combobox/tokens/lm-combobox-tokens.js +0 -152
  917. package/src/components/combobox/tokens/md-combobox-tokens.js +0 -156
  918. package/src/components/combobox/tokens/mdv2-combobox-tokens.js +0 -132
  919. package/src/components/date-range-picker/DateRangePicker.stories.ts +0 -49
  920. package/src/components/date-range-picker/DateRangePicker.test.ts +0 -173
  921. package/src/components/date-range-picker/DateRangePicker.ts +0 -92
  922. package/src/components/date-range-picker/scss/daterangepicker.scss +0 -0
  923. package/src/components/date-range-picker/tokens/lm-date-range-picker-tokens.js +0 -26
  924. package/src/components/date-range-picker/tokens/md-date-range-picker-tokens.js +0 -26
  925. package/src/components/date-range-picker/tokens/mdv2-date-range-picker-tokens.js +0 -26
  926. package/src/components/date-time-picker/DateTimePicker.stories.ts +0 -50
  927. package/src/components/date-time-picker/DateTimePicker.test.ts +0 -37
  928. package/src/components/date-time-picker/DateTimePicker.ts +0 -187
  929. package/src/components/date-time-picker/scss/date-time-picker.scss +0 -7
  930. package/src/components/date-time-picker/scss/module.scss +0 -9
  931. package/src/components/date-time-picker/scss/settings.scss +0 -1
  932. package/src/components/datepicker/DatePicker.stories.ts +0 -42
  933. package/src/components/datepicker/DatePicker.test.ts +0 -97
  934. package/src/components/datepicker/DatePicker.ts +0 -290
  935. package/src/components/datepicker/datepicker-calendar/DatePickerCalendar.test.ts +0 -70
  936. package/src/components/datepicker/datepicker-calendar/DatePickerCalendar.ts +0 -179
  937. package/src/components/datepicker/datepicker-day/DatePickerDay.test.ts +0 -48
  938. package/src/components/datepicker/datepicker-day/DatePickerDay.ts +0 -173
  939. package/src/components/datepicker/datepicker-month/DatePickerMonth.test.ts +0 -13
  940. package/src/components/datepicker/datepicker-month/DatePickerMonth.ts +0 -60
  941. package/src/components/datepicker/datepicker-week/DatePickerWeek.test.ts +0 -13
  942. package/src/components/datepicker/datepicker-week/DatePickerWeek.ts +0 -56
  943. package/src/components/datepicker/scss/datepicker.scss +0 -240
  944. package/src/components/datepicker/scss/module.scss +0 -9
  945. package/src/components/datepicker/scss/settings.scss +0 -9
  946. package/src/components/datepicker/tokens/lm-datepicker-tokens.js +0 -72
  947. package/src/components/datepicker/tokens/md-datepicker-tokens.js +0 -72
  948. package/src/components/datepicker/tokens/mdv2-datepicker-tokens.js +0 -80
  949. package/src/components/draggable/Draggable.mdx +0 -258
  950. package/src/components/draggable/Draggable.stories.ts +0 -171
  951. package/src/components/draggable/Draggable.test.ts +0 -116
  952. package/src/components/draggable/Draggable.ts +0 -203
  953. package/src/components/draggable/DraggableItem.test.ts +0 -45
  954. package/src/components/draggable/DraggableItem.ts +0 -58
  955. package/src/components/draggable/scss/draggable-item.scss +0 -70
  956. package/src/components/draggable/scss/module.scss +0 -12
  957. package/src/components/draggable/scss/settings.scss +0 -6
  958. package/src/components/dropdown/Dropdown.stories.ts +0 -121
  959. package/src/components/dropdown/Dropdown.test.ts +0 -461
  960. package/src/components/dropdown/Dropdown.ts +0 -901
  961. package/src/components/dropdown/scss/dropdown.scss +0 -488
  962. package/src/components/dropdown/scss/mixins.scss +0 -23
  963. package/src/components/dropdown/scss/module.scss +0 -25
  964. package/src/components/dropdown/scss/settings.scss +0 -24
  965. package/src/components/dropdown/tokens/lm-dropdown-tokens.js +0 -58
  966. package/src/components/dropdown/tokens/md-dropdown-tokens.js +0 -58
  967. package/src/components/dropdown/tokens/mdv2-dropdown-tokens.js +0 -67
  968. package/src/components/editable-textfield/EditableTextfield.stories.ts +0 -106
  969. package/src/components/editable-textfield/EditableTextfield.test.ts +0 -219
  970. package/src/components/editable-textfield/EditableTextfield.ts +0 -262
  971. package/src/components/editable-textfield/scss/editable-textfield.scss +0 -128
  972. package/src/components/editable-textfield/scss/module.scss +0 -14
  973. package/src/components/editable-textfield/scss/settings.scss +0 -6
  974. package/src/components/editable-textfield/tokens/lm-editabletextfield-tokens.js +0 -130
  975. package/src/components/editable-textfield/tokens/md-editabletextfield-tokens.js +0 -118
  976. package/src/components/editable-textfield/tokens/mdv2-editabletextfield-tokens.js +0 -129
  977. package/src/components/favorite/Favorite.mdx +0 -27
  978. package/src/components/favorite/Favorite.stories.ts +0 -48
  979. package/src/components/favorite/Favorite.test.ts +0 -116
  980. package/src/components/favorite/Favorite.ts +0 -119
  981. package/src/components/favorite/scss/favorite.scss +0 -116
  982. package/src/components/favorite/scss/module.scss +0 -18
  983. package/src/components/favorite/scss/settings.scss +0 -3
  984. package/src/components/floating-modal/Floating.mdx +0 -42
  985. package/src/components/floating-modal/FloatingMinimizedModal.test.ts +0 -92
  986. package/src/components/floating-modal/FloatingMinimizedModal.ts +0 -278
  987. package/src/components/floating-modal/FloatingModal.stories.ts +0 -72
  988. package/src/components/floating-modal/FloatingModal.test.ts +0 -114
  989. package/src/components/floating-modal/FloatingModal.ts +0 -372
  990. package/src/components/floating-modal/README.md +0 -36
  991. package/src/components/floating-modal/scss/floating.scss +0 -85
  992. package/src/components/floating-modal/scss/module.scss +0 -19
  993. package/src/components/floating-modal/scss/settings.scss +0 -5
  994. package/src/components/floating-modal/tokens/lm-floating-modal-tokens.js +0 -46
  995. package/src/components/floating-modal/tokens/md-floating-modal-tokens.js +0 -46
  996. package/src/components/floating-modal/tokens/mdv2-floating-modal-tokens.js +0 -38
  997. package/src/components/form/Form.stories.ts +0 -59
  998. package/src/components/form/Form.test.ts +0 -57
  999. package/src/components/form/Form.ts +0 -239
  1000. package/src/components/grabber/Grabber.stories.ts +0 -61
  1001. package/src/components/grabber/Grabber.test.ts +0 -171
  1002. package/src/components/grabber/Grabber.ts +0 -183
  1003. package/src/components/grabber/scss/grabber.scss +0 -123
  1004. package/src/components/grabber/scss/module.scss +0 -5
  1005. package/src/components/grabber/tokens/lm-grabber-tokens.js +0 -39
  1006. package/src/components/grabber/tokens/md-grabber-tokens.js +0 -39
  1007. package/src/components/grabber/tokens/mdv2-grabber-tokens.js +0 -38
  1008. package/src/components/help-text/HelpText.test.ts +0 -38
  1009. package/src/components/help-text/HelpText.ts +0 -69
  1010. package/src/components/help-text/scss/help-text.scss +0 -50
  1011. package/src/components/help-text/scss/mixins.scss +0 -14
  1012. package/src/components/help-text/scss/module.scss +0 -13
  1013. package/src/components/help-text/scss/settings.scss +0 -5
  1014. package/src/components/help-text/tokens/lm-help-text-tokens.js +0 -16
  1015. package/src/components/help-text/tokens/md-help-text-tokens.js +0 -16
  1016. package/src/components/help-text/tokens/mdv2-help-text-tokens.js +0 -14
  1017. package/src/components/icon/Icon.stories.ts +0 -79
  1018. package/src/components/icon/Icon.test.ts +0 -181
  1019. package/src/components/icon/Icon.ts +0 -474
  1020. package/src/components/icon/momentum-ui-to-design-icons.json +0 -3087
  1021. package/src/components/icon/scss/icon.scss +0 -36
  1022. package/src/components/icon/scss/module.scss +0 -17
  1023. package/src/components/icon/scss/settings.scss +0 -10
  1024. package/src/components/input/Input.stories.ts +0 -133
  1025. package/src/components/input/Input.test.ts +0 -347
  1026. package/src/components/input/Input.ts +0 -556
  1027. package/src/components/input/scss/input.scss +0 -529
  1028. package/src/components/input/scss/module.scss +0 -26
  1029. package/src/components/input/tokens/lm-input-tokens.js +0 -142
  1030. package/src/components/input/tokens/md-input-tokens.js +0 -132
  1031. package/src/components/input/tokens/mdv2-input-tokens.js +0 -168
  1032. package/src/components/input-file/InputFile.stories.ts +0 -27
  1033. package/src/components/input-file/InputFile.test.ts +0 -39
  1034. package/src/components/input-file/InputFile.ts +0 -115
  1035. package/src/components/input-file/scss/input-file.scss +0 -8
  1036. package/src/components/input-file/scss/module.scss +0 -6
  1037. package/src/components/label/Label.stories.ts +0 -59
  1038. package/src/components/label/Label.test.ts +0 -26
  1039. package/src/components/label/Label.ts +0 -81
  1040. package/src/components/label/scss/label.scss +0 -44
  1041. package/src/components/label/scss/mixins.scss +0 -25
  1042. package/src/components/label/scss/module.scss +0 -17
  1043. package/src/components/label/scss/settings.scss +0 -8
  1044. package/src/components/label/tokens/lm-label-tokens.js +0 -18
  1045. package/src/components/label/tokens/md-label-tokens.js +0 -18
  1046. package/src/components/label/tokens/mdv2-label-tokens.js +0 -15
  1047. package/src/components/link/Link.stories.ts +0 -66
  1048. package/src/components/link/Link.test.ts +0 -98
  1049. package/src/components/link/Link.ts +0 -123
  1050. package/src/components/link/scss/link.scss +0 -43
  1051. package/src/components/link/scss/mixins.scss +0 -124
  1052. package/src/components/link/scss/module.scss +0 -14
  1053. package/src/components/link/scss/settings.scss +0 -5
  1054. package/src/components/link/tokens/lm-link-tokens.js +0 -61
  1055. package/src/components/link/tokens/md-link-tokens.js +0 -127
  1056. package/src/components/link/tokens/mdv2-link-tokens.js +0 -47
  1057. package/src/components/list/List.stories.ts +0 -60
  1058. package/src/components/list/List.test.ts +0 -214
  1059. package/src/components/list/List.ts +0 -198
  1060. package/src/components/list/ListItem.test.ts +0 -59
  1061. package/src/components/list/ListItem.ts +0 -69
  1062. package/src/components/list/scss/list.scss +0 -26
  1063. package/src/components/list/scss/listitem.scss +0 -88
  1064. package/src/components/list/scss/mixins.scss +0 -8
  1065. package/src/components/list/scss/module.scss +0 -15
  1066. package/src/components/list/scss/settings.scss +0 -7
  1067. package/src/components/list/tokens/lm-list-tokens.js +0 -46
  1068. package/src/components/list/tokens/md-list-tokens.js +0 -46
  1069. package/src/components/list/tokens/mdv2-list-tokens.js +0 -49
  1070. package/src/components/loading/Loading.stories.ts +0 -46
  1071. package/src/components/loading/Loading.test.ts +0 -29
  1072. package/src/components/loading/Loading.ts +0 -48
  1073. package/src/components/loading/scss/loading.scss +0 -74
  1074. package/src/components/loading/scss/module.scss +0 -8
  1075. package/src/components/meeting-alert/CompositeAvatar.ts +0 -37
  1076. package/src/components/meeting-alert/MeetingAlert.mdx +0 -187
  1077. package/src/components/meeting-alert/MeetingAlert.stories.ts +0 -197
  1078. package/src/components/meeting-alert/MeetingAlert.test.ts +0 -227
  1079. package/src/components/meeting-alert/MeetingAlert.ts +0 -203
  1080. package/src/components/meeting-alert/scss/alert.scss +0 -244
  1081. package/src/components/meeting-alert/scss/mixins.scss +0 -13
  1082. package/src/components/meeting-alert/scss/module.scss +0 -20
  1083. package/src/components/meeting-alert/scss/settings.scss +0 -27
  1084. package/src/components/meeting-alert/tokens/lm-meeting-alert-tokens.js +0 -15
  1085. package/src/components/meeting-alert/tokens/md-meeting-alert-tokens.js +0 -15
  1086. package/src/components/meeting-alert/tokens/mdv2-meeting-alert-tokens.js +0 -43
  1087. package/src/components/menu/Menu.stories.ts +0 -61
  1088. package/src/components/menu/Menu.test.ts +0 -109
  1089. package/src/components/menu/Menu.ts +0 -218
  1090. package/src/components/menu/MenuItem.test.ts +0 -49
  1091. package/src/components/menu/MenuItem.ts +0 -159
  1092. package/src/components/menu/scss/menu-item.scss +0 -61
  1093. package/src/components/menu/scss/menu.scss +0 -31
  1094. package/src/components/menu/scss/module.scss +0 -15
  1095. package/src/components/menu/scss/settings.scss +0 -18
  1096. package/src/components/menu/tokens/lm-menu-tokens.js +0 -27
  1097. package/src/components/menu/tokens/md-menu-tokens.js +0 -27
  1098. package/src/components/menu/tokens/mdv2-menu-tokens.js +0 -42
  1099. package/src/components/menu-overlay/MenuOverlay.stories.ts +0 -92
  1100. package/src/components/menu-overlay/MenuOverlay.test.ts +0 -634
  1101. package/src/components/menu-overlay/MenuOverlay.ts +0 -487
  1102. package/src/components/menu-overlay/scss/menu-overlay.scss +0 -75
  1103. package/src/components/menu-overlay/scss/module.scss +0 -12
  1104. package/src/components/menu-overlay/scss/settings.scss +0 -6
  1105. package/src/components/modal/Modal.stories.ts +0 -78
  1106. package/src/components/modal/Modal.test.ts +0 -217
  1107. package/src/components/modal/Modal.ts +0 -292
  1108. package/src/components/modal/scss/mixins.scss +0 -109
  1109. package/src/components/modal/scss/modal.scss +0 -357
  1110. package/src/components/modal/scss/module.scss +0 -18
  1111. package/src/components/modal/scss/settings.scss +0 -59
  1112. package/src/components/modal/tokens/lm-modal-tokens.js +0 -44
  1113. package/src/components/modal/tokens/md-modal-tokens.js +0 -44
  1114. package/src/components/modal/tokens/mdv2-modal-tokens.js +0 -36
  1115. package/src/components/pagination/Pagination.stories.ts +0 -37
  1116. package/src/components/pagination/Pagination.test.ts +0 -74
  1117. package/src/components/pagination/Pagination.ts +0 -219
  1118. package/src/components/pagination/scss/mixins.scss +0 -11
  1119. package/src/components/pagination/scss/module.scss +0 -18
  1120. package/src/components/pagination/scss/pagination.scss +0 -120
  1121. package/src/components/pagination/scss/settings.scss +0 -11
  1122. package/src/components/pagination/tokens/lm-pagination-tokens.js +0 -49
  1123. package/src/components/pagination/tokens/md-pagination-tokens.js +0 -49
  1124. package/src/components/pagination/tokens/mdv2-pagination-tokens.js +0 -39
  1125. package/src/components/phone-input/PhoneInput.stories.ts +0 -45
  1126. package/src/components/phone-input/PhoneInput.test.ts +0 -198
  1127. package/src/components/phone-input/PhoneInput.ts +0 -275
  1128. package/src/components/phone-input/scss/module.scss +0 -7
  1129. package/src/components/phone-input/scss/phoneInput.scss +0 -95
  1130. package/src/components/phone-input/scss/settings.scss +0 -3
  1131. package/src/components/phone-input/tokens/lm-phone-input-tokens.js +0 -26
  1132. package/src/components/phone-input/tokens/md-phone-input-tokens.js +0 -26
  1133. package/src/components/phone-input/tokens/mdv2-phone-input-tokens.js +0 -22
  1134. package/src/components/progress-bar/ProgressBar.stories.ts +0 -48
  1135. package/src/components/progress-bar/ProgressBar.test.ts +0 -120
  1136. package/src/components/progress-bar/ProgressBar.ts +0 -112
  1137. package/src/components/progress-bar/scss/mixins.scss +0 -49
  1138. package/src/components/progress-bar/scss/module.scss +0 -10
  1139. package/src/components/progress-bar/scss/progress.scss +0 -77
  1140. package/src/components/progress-bar/scss/settings.scss +0 -28
  1141. package/src/components/progress-bar/tokens/lm-progress-bar-tokens.js +0 -28
  1142. package/src/components/progress-bar/tokens/md-progress-bar-tokens.js +0 -28
  1143. package/src/components/progress-bar/tokens/mdv2-progress-bar-tokens.js +0 -36
  1144. package/src/components/radio/Radio.test.ts +0 -66
  1145. package/src/components/radio/Radio.ts +0 -94
  1146. package/src/components/radio/RadioGroup.stories.ts +0 -47
  1147. package/src/components/radio/RadioGroup.test.ts +0 -209
  1148. package/src/components/radio/RadioGroup.ts +0 -195
  1149. package/src/components/radio/scss/mixins.scss +0 -7
  1150. package/src/components/radio/scss/module.scss +0 -17
  1151. package/src/components/radio/scss/radio.scss +0 -149
  1152. package/src/components/radio/scss/radiogroup.scss +0 -29
  1153. package/src/components/radio/scss/settings.scss +0 -18
  1154. package/src/components/radio/tokens/lm-radio-tokens.js +0 -84
  1155. package/src/components/radio/tokens/md-radio-tokens.js +0 -84
  1156. package/src/components/radio/tokens/mdv2-radio-tokens.js +0 -67
  1157. package/src/components/sass-stats/README.md +0 -25
  1158. package/src/components/sass-stats/SassStats.test.ts +0 -13
  1159. package/src/components/sass-stats/SassStats.ts +0 -110
  1160. package/src/components/slider/Slider.stories.ts +0 -54
  1161. package/src/components/slider/Slider.test.ts +0 -128
  1162. package/src/components/slider/Slider.ts +0 -283
  1163. package/src/components/slider/scss/mixins.scss +0 -5
  1164. package/src/components/slider/scss/module.scss +0 -17
  1165. package/src/components/slider/scss/settings.scss +0 -10
  1166. package/src/components/slider/scss/slider.scss +0 -188
  1167. package/src/components/slider/tokens/lm-slider-token.js +0 -57
  1168. package/src/components/slider/tokens/md-slider-tokens.js +0 -61
  1169. package/src/components/slider/tokens/mdv2-slider-token.js +0 -50
  1170. package/src/components/spinner/Spinner.stories.ts +0 -36
  1171. package/src/components/spinner/Spinner.test.ts +0 -18
  1172. package/src/components/spinner/Spinner.ts +0 -40
  1173. package/src/components/spinner/scss/mixins.scss +0 -34
  1174. package/src/components/spinner/scss/module.scss +0 -10
  1175. package/src/components/spinner/scss/settings.scss +0 -3
  1176. package/src/components/spinner/scss/spinner.scss +0 -50
  1177. package/src/components/spinner/tokens/lm-spinner-tokens.js +0 -16
  1178. package/src/components/spinner/tokens/md-spinner-tokens.js +0 -18
  1179. package/src/components/spinner/tokens/mdv2-spinner-tokens.js +0 -15
  1180. package/src/components/table/Table.stories.ts +0 -76
  1181. package/src/components/table/Table.test.ts +0 -51
  1182. package/src/components/table/Table.ts +0 -234
  1183. package/src/components/table/scss/mixins.scss +0 -6
  1184. package/src/components/table/scss/module.scss +0 -27
  1185. package/src/components/table/scss/settings.scss +0 -11
  1186. package/src/components/table/scss/table.scss +0 -148
  1187. package/src/components/table/tokens/lm-table-tokens.js +0 -42
  1188. package/src/components/table/tokens/md-table-tokens.js +0 -42
  1189. package/src/components/table/tokens/mdv2-table-tokens.js +0 -35
  1190. package/src/components/table-advanced/TableAdvanced.md +0 -233
  1191. package/src/components/table-advanced/TableAdvanced.mdx +0 -240
  1192. package/src/components/table-advanced/TableAdvanced.stories.ts +0 -166
  1193. package/src/components/table-advanced/TableAdvanced.test.ts +0 -374
  1194. package/src/components/table-advanced/TableAdvanced.ts +0 -1081
  1195. package/src/components/table-advanced/scss/module.scss +0 -27
  1196. package/src/components/table-advanced/scss/settings.scss +0 -16
  1197. package/src/components/table-advanced/scss/table-advanced.scss +0 -399
  1198. package/src/components/table-advanced/src/decorators.ts +0 -150
  1199. package/src/components/table-advanced/src/filter.ts +0 -86
  1200. package/src/components/table-advanced/tokens/lm-table-advanced-tokens.js +0 -64
  1201. package/src/components/table-advanced/tokens/md-table-advanced-tokens.js +0 -64
  1202. package/src/components/table-advanced/tokens/mdv2-table-advanced-tokens.js +0 -64
  1203. package/src/components/tabs/Tab.test.ts +0 -103
  1204. package/src/components/tabs/Tab.ts +0 -215
  1205. package/src/components/tabs/TabPanel.test.ts +0 -31
  1206. package/src/components/tabs/TabPanel.ts +0 -44
  1207. package/src/components/tabs/Tabs.stories.ts +0 -172
  1208. package/src/components/tabs/Tabs.test.ts +0 -676
  1209. package/src/components/tabs/Tabs.ts +0 -1222
  1210. package/src/components/tabs/scss/mixins.scss +0 -6
  1211. package/src/components/tabs/scss/module.scss +0 -16
  1212. package/src/components/tabs/scss/settings.scss +0 -22
  1213. package/src/components/tabs/scss/tab.scss +0 -304
  1214. package/src/components/tabs/scss/tabs.scss +0 -241
  1215. package/src/components/tabs/tokens/lm-tabs-tokens.js +0 -74
  1216. package/src/components/tabs/tokens/md-tabs-tokens.js +0 -68
  1217. package/src/components/tabs/tokens/mdv2-tabs-tokens.js +0 -52
  1218. package/src/components/taskitem/TaskItem.stories.ts +0 -63
  1219. package/src/components/taskitem/TaskItem.test.ts +0 -417
  1220. package/src/components/taskitem/TaskItem.ts +0 -258
  1221. package/src/components/taskitem/scss/mixins.scss +0 -42
  1222. package/src/components/taskitem/scss/module.scss +0 -15
  1223. package/src/components/taskitem/scss/settings.scss +0 -43
  1224. package/src/components/taskitem/scss/task-item.scss +0 -229
  1225. package/src/components/taskitem/tokens/lm-taskitem-tokens.js +0 -72
  1226. package/src/components/taskitem/tokens/md-taskitem-tokens.js +0 -72
  1227. package/src/components/taskitem/tokens/mdv2-taskitem-tokens.js +0 -58
  1228. package/src/components/theme/README.md +0 -13
  1229. package/src/components/theme/Theme.test.ts +0 -88
  1230. package/src/components/theme/Theme.ts +0 -377
  1231. package/src/components/theme/index.ts +0 -8
  1232. package/src/components/timepicker/TimePicker.stories.ts +0 -44
  1233. package/src/components/timepicker/TimePicker.test.ts +0 -145
  1234. package/src/components/timepicker/TimePicker.ts +0 -424
  1235. package/src/components/timepicker/scss/module.scss +0 -9
  1236. package/src/components/timepicker/scss/settings.scss +0 -8
  1237. package/src/components/timepicker/scss/timepicker.scss +0 -71
  1238. package/src/components/toggle-switch/ToggleSwitch.stories.ts +0 -46
  1239. package/src/components/toggle-switch/ToggleSwitch.test.ts +0 -92
  1240. package/src/components/toggle-switch/ToggleSwitch.ts +0 -102
  1241. package/src/components/toggle-switch/scss/mixins.scss +0 -98
  1242. package/src/components/toggle-switch/scss/module.scss +0 -12
  1243. package/src/components/toggle-switch/scss/settings.scss +0 -14
  1244. package/src/components/toggle-switch/scss/toggle-switch.scss +0 -197
  1245. package/src/components/toggle-switch/tokens/lm-toggle-tokens.js +0 -52
  1246. package/src/components/toggle-switch/tokens/md-toggle-tokens.js +0 -52
  1247. package/src/components/toggle-switch/tokens/mdv2-toggle-tokens.js +0 -48
  1248. package/src/components/tooltip/Tooltip.stories.ts +0 -59
  1249. package/src/components/tooltip/Tooltip.test.ts +0 -108
  1250. package/src/components/tooltip/Tooltip.ts +0 -242
  1251. package/src/components/tooltip/scss/module.scss +0 -12
  1252. package/src/components/tooltip/scss/settings.scss +0 -11
  1253. package/src/components/tooltip/scss/tooltip.scss +0 -141
  1254. package/src/components/tooltip/tokens/lm-tooltip-tokens.js +0 -18
  1255. package/src/components/tooltip/tokens/md-tooltip-tokens.js +0 -18
  1256. package/src/components/tooltip/tokens/mdv2-tooltip-tokens.js +0 -42
  1257. package/src/constants.ts +0 -42
  1258. package/src/index.ts +0 -79
  1259. package/src/internal-components/color-table/ColorTable.stories.ts +0 -39
  1260. package/src/internal-components/color-table/ColorTable.ts +0 -83
  1261. package/src/internal-components/color-table/data.ts +0 -203
  1262. package/src/internal-components/color-table/scss/color-table.scss +0 -739
  1263. package/src/internal-components/color-table/scss/module.scss +0 -11
  1264. package/src/internal-components/color-table/utils.ts +0 -552
  1265. package/src/mixins/CustomElementCheck.ts +0 -25
  1266. package/src/mixins/DedupeMixin.test.ts +0 -81
  1267. package/src/mixins/DedupeMixin.ts +0 -54
  1268. package/src/mixins/FocusMixin.test.ts +0 -116
  1269. package/src/mixins/FocusMixin.ts +0 -136
  1270. package/src/mixins/FocusTrapMixin.test.ts +0 -560
  1271. package/src/mixins/FocusTrapMixin.ts +0 -480
  1272. package/src/mixins/ResizeMixin.test.ts +0 -84
  1273. package/src/mixins/ResizeMixin.ts +0 -142
  1274. package/src/mixins/RovingTabIndexMixin.test.ts +0 -60
  1275. package/src/mixins/RovingTabIndexMixin.ts +0 -110
  1276. package/src/mixins/SlottedMixin.test.ts +0 -68
  1277. package/src/mixins/SlottedMixin.ts +0 -116
  1278. package/src/mixins/index.ts +0 -17
  1279. package/src/templates/color-table-data-string.hbs +0 -22
  1280. package/src/templates/colors-settings.hbs +0 -21
  1281. package/src/templates/colors.hbs +0 -35
  1282. package/src/templates/component-colors.hbs +0 -40
  1283. package/src/templates/css-color-variables.hbs +0 -22
  1284. package/src/templates/dark-colors.hbs +0 -33
  1285. package/src/templates/light-colors.hbs +0 -33
  1286. package/src/templates/semantic-color-dark.hbs +0 -28
  1287. package/src/templates/semantic-color-light.hbs +0 -28
  1288. package/src/templates/semantic-color-settings.hbs +0 -38
  1289. package/src/tokens/Tokens.test.ts +0 -12
  1290. package/src/tokens/tokenImports.js +0 -7
  1291. package/src/tsconfig.json +0 -25
  1292. package/src/types/declare.d.ts +0 -31
  1293. package/src/types/globals.d.ts +0 -5
  1294. package/src/utils/clearVars.js +0 -47
  1295. package/src/utils/createTokenFilesModule.js +0 -88
  1296. package/src/utils/dateUtils.test.ts +0 -174
  1297. package/src/utils/dateUtils.ts +0 -102
  1298. package/src/utils/enums.ts +0 -721
  1299. package/src/utils/generateColorTableData.js +0 -41
  1300. package/src/utils/generateScssFromTokens.js +0 -245
  1301. package/src/utils/helpers.ts +0 -150
  1302. package/src/utils/keyboard.ts +0 -5
  1303. package/src/utils/validations.ts +0 -29
  1304. package/src/wc_scss/colors/settings-base.scss +0 -208
  1305. package/src/wc_scss/colors/settings-transparencies.scss +0 -52
  1306. package/src/wc_scss/colors/settings.scss +0 -1
  1307. package/src/wc_scss/generic/global.scss +0 -117
  1308. package/src/wc_scss/generic/normalize.scss +0 -422
  1309. package/src/wc_scss/icon/settings.scss +0 -12
  1310. package/src/wc_scss/path.scss +0 -4
  1311. package/src/wc_scss/reset.scss +0 -27
  1312. package/src/wc_scss/settings/avatar.scss +0 -205
  1313. package/src/wc_scss/settings/button-settings.scss +0 -193
  1314. package/src/wc_scss/settings/core.scss +0 -130
  1315. package/src/wc_scss/settings/focus.scss +0 -7
  1316. package/src/wc_scss/settings/form-controls.scss +0 -23
  1317. package/src/wc_scss/settings/forms.scss +0 -26
  1318. package/src/wc_scss/settings/input.scss +0 -59
  1319. package/src/wc_scss/settings/list-item.scss +0 -86
  1320. package/src/wc_scss/settings/list.scss +0 -10
  1321. package/src/wc_scss/settings/media.scss +0 -116
  1322. package/src/wc_scss/settings/overlay.scss +0 -6
  1323. package/src/wc_scss/settings/rem.scss +0 -1
  1324. package/src/wc_scss/settings/z-index.scss +0 -9
  1325. package/src/wc_scss/themes/global--dark.scss +0 -114
  1326. package/src/wc_scss/themes/global--light.scss +0 -114
  1327. package/src/wc_scss/themes/global--lm.scss +0 -5
  1328. package/src/wc_scss/themes/global--md.scss +0 -5
  1329. package/src/wc_scss/themes/global--mdv2.scss +0 -176
  1330. package/src/wc_scss/tools/functions/core.scss +0 -183
  1331. package/src/wc_scss/tools/mixins/avatar.scss +0 -32
  1332. package/src/wc_scss/tools/mixins/baseline.scss +0 -71
  1333. package/src/wc_scss/tools/mixins/border-radius.scss +0 -26
  1334. package/src/wc_scss/tools/mixins/button.scss +0 -256
  1335. package/src/wc_scss/tools/mixins/core.scss +0 -204
  1336. package/src/wc_scss/tools/mixins/easing.scss +0 -63
  1337. package/src/wc_scss/tools/mixins/flex.scss +0 -14
  1338. package/src/wc_scss/tools/mixins/focus.scss +0 -35
  1339. package/src/wc_scss/tools/mixins/input.scss +0 -155
  1340. package/src/wc_scss/tools/mixins/nav-divider.scss +0 -10
  1341. package/src/wc_scss/tools/mixins/scrollbar.scss +0 -40
  1342. package/src/wc_scss/tools/mixins/spacing.scss +0 -208
  1343. package/src/wc_scss/tools/mixins/spinner.scss +0 -38
  1344. package/src/wc_scss/typography/mixins.scss +0 -208
  1345. package/src/wc_scss/typography/settings.scss +0 -297
  1346. package/src/wc_scss/typography/typography.scss +0 -321
  1347. package/stats/cssStats.js +0 -17
  1348. package/stats/stats-loader.js +0 -23
  1349. package/stats/utils.js +0 -5
  1350. package/stats/writeFileSyncRecursive.js +0 -20
  1351. package/tsconfig.json +0 -13
  1352. package/webpack.config.dev.server.ts +0 -27
  1353. package/webpack.config.ts +0 -309
  1354. package/webpack.plugin.LoadChunks.ts +0 -67
  1355. /package/{src → dist}/assets/styles/fonts.css +0 -0
@@ -1,1824 +0,0 @@
1
- /**
2
- * Copyright (c) Cisco Systems, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- import "@/components/help-text/HelpText";
10
- import "@/components/icon/Icon";
11
- import { ATTRIBUTES, Key } from "@/constants";
12
- import { FocusMixin } from "@/mixins";
13
- import { customElementWithCheck } from "@/mixins/CustomElementCheck";
14
- import { debounce, findHighlight } from "@/utils/helpers";
15
- import reset from "@/wc_scss/reset.scss";
16
- import { LitElement, PropertyValues, html, internalProperty, property, query, queryAll } from "lit-element";
17
- import { nothing } from "lit-html";
18
- import { classMap } from "lit-html/directives/class-map";
19
- import { ifDefined } from "lit-html/directives/if-defined";
20
- import { repeat } from "lit-html/directives/repeat";
21
- import { styleMap } from "lit-html/directives/style-map";
22
- import { scroll } from "lit-virtualizer";
23
- import { setTimeout } from "timers";
24
- import styles from "./scss/module.scss";
25
-
26
- export namespace ComboBox {
27
- type OptionMember = { [key: string]: string };
28
- type SelectedEvent = {
29
- value?: string | OptionMember;
30
- selected: (string | OptionMember)[];
31
- };
32
- export type MessageType = "error" | "success" | "warning";
33
- export type Message = {
34
- type: MessageType;
35
- message: string;
36
- id?: string;
37
- ariaLive?: "off" | "assertive" | "polite";
38
- };
39
-
40
- export class MessageController {
41
- determineMessageType(array: ComboBox.Message[]) {
42
- return array.reduce<ComboBox.MessageType>(
43
- (accumulator, errorMessage) =>
44
- (errorMessage as unknown as string) === "error" ? accumulator : errorMessage.type,
45
- "" as ComboBox.MessageType
46
- );
47
- }
48
- filterMessagesByType(array: ComboBox.Message[], value: string) {
49
- return array.reduce(
50
- (accumulator, errorMessage) =>
51
- errorMessage.type === value ? accumulator.concat(errorMessage.message) : accumulator,
52
- [] as string[]
53
- );
54
- }
55
- }
56
-
57
- @customElementWithCheck("md-combobox")
58
- export class ELEMENT extends FocusMixin(LitElement) {
59
- private _focusedIndex = -1;
60
- private _focusedGroupIndex = -1;
61
-
62
- @property({ type: String }) label = "Options";
63
- @property({ type: Array }) options: (string | OptionMember)[] = [];
64
- @property({ type: Array, attribute: "custom-options" }) customOptions = [];
65
- @property({ type: String }) placeholder = "";
66
- @property({ type: Boolean, attribute: "is-multi" }) isMulti = false;
67
- @property({ type: Boolean, attribute: "use-virtual-scroll" }) useVirtualScroll = false;
68
- @property({ type: Boolean, reflect: true }) disabled = false;
69
- @property({ type: Boolean, reflect: true }) ordered = false;
70
- @property({ type: Boolean, reflect: true }) expanded = false;
71
- @property({ type: Array, reflect: true }) groupExpandedList: any = [];
72
- @property({ type: Boolean, reflect: true }) searchItem = false;
73
- @property({ type: Boolean, reflect: true }) compact = false;
74
- @property({ type: Boolean, attribute: "no-clear-icon" }) noClearIcon = false;
75
- @property({ type: Boolean, attribute: "select-when-in-focus" }) selectWhenInFocus = false;
76
- @property({ type: Array }) selectedOptions: (string | OptionMember)[] = [];
77
- @property({ type: Number, attribute: "visible-option", reflect: true }) visibleOptions = 8;
78
- @property({ type: String, attribute: "option-id", reflect: true }) optionId = "";
79
- @property({ type: String, attribute: "option-value", reflect: true }) optionValue = "";
80
- @property({ type: Boolean, attribute: "with-custom-content" }) isCustomContent = false;
81
- @property({ type: Boolean, reflect: true }) searchable = false;
82
- @property({ type: String }) shape = "none";
83
- @property({ type: Array }) value: (string | OptionMember)[] = [];
84
- @property({ type: String, attribute: "input-value", reflect: true }) inputValue = "";
85
- @property({ type: Boolean, attribute: "allow-custom-value", reflect: true }) allowCustomValue = false;
86
- @property({ type: Boolean, reflect: true }) autofocus = false;
87
- @property({ type: String, attribute: "no-results-i18n" }) resultsTextLocalization = "No Results";
88
- @property({ type: String, attribute: "no-options-i18n" }) optionsTextLocalization = "No Options";
89
- @property({ type: Boolean, reflect: true, attribute: "search-trim-space" }) trimSpace = false;
90
- @property({ type: Boolean, reflect: true }) invalid = false;
91
- @property({ type: String, reflect: true, attribute: "invalid-text-i18n" }) invalidText = "";
92
-
93
- @property({ type: String, reflect: true }) ariaLabel = ""; // This aria-label is used by default when there is no search or list-items are displayed.
94
- @property({ type: String, attribute: "search-result-aria-label" }) searchResultAriaLabel = ""; // This aria-label is dynamic and used when there is search and list-items are displayed.
95
- @internalProperty() ariaLabelForComboBox = ""; // This internal property is used to conditionally set aria-label.
96
-
97
- @property({ type: String, attribute: "clear-aria-label" }) clearAriaLabel = "Clear";
98
- @property({ type: String, attribute: "arrow-aria-label" }) arrowAriaLabel = "Expand";
99
- @property({ type: String, attribute: "clear-icon-height" }) clearIconHeight = "auto";
100
-
101
- @property({ type: String, attribute: "all-i18n" }) allTextLocalization = "All";
102
- @property({ type: String, attribute: "select-all-i18n" }) selectAllTextLocalization = "Select All";
103
- @property({ type: String, attribute: "selected-all-i18n" }) selectedTextLocalization = "Selected";
104
-
105
- @property({ type: Boolean, attribute: "allow-select-all", reflect: true }) allowSelectAll = false;
106
- @property({ type: Boolean, attribute: "show-custom-error", reflect: true }) showCustomError = false;
107
- @property({ type: Boolean, attribute: "show-loader", reflect: true }) showLoader = false;
108
- @property({ type: Boolean, attribute: "show-selected-count", reflect: true }) showSelectedCount = false;
109
- @property({ type: String, attribute: "popup-chevron-aria-hidden" }) popupChevronAriaHidden = "true";
110
- @property({ type: Boolean, reflect: true }) newMomentum = false;
111
-
112
- @property({ type: String }) comboboxId = "";
113
- @property({ type: String }) helpText = "";
114
- @property({ type: Array }) messageArr: ComboBox.Message[] = [];
115
- @property({ type: String }) htmlId = "";
116
- @property({ type: Boolean, reflect: true }) readOnly = false;
117
-
118
- private readonly messageController = new MessageController();
119
-
120
- @property({ type: Number, attribute: false })
121
- @internalProperty()
122
- private isOptGroup = false;
123
- @internalProperty()
124
- private isSelectAllChecked = false;
125
- get focusedIndex() {
126
- return this._focusedIndex;
127
- }
128
- set focusedIndex(index: number) {
129
- this.updateFocusedIndex(index);
130
- }
131
-
132
- updateFocusedIndex(index: number) {
133
- const oldIndex = this._focusedIndex;
134
- if (this.checkForVirtualScroll()) {
135
- // Virtual Scroll is Enabled.
136
- let newId: any;
137
- if (this.allowSelectAll) {
138
- // "Select All" checkbox option is enabled.
139
- newId = index === 0 ? "selectAll" : this.getOptionId(this.filteredOptions[index - 1]);
140
- } else {
141
- newId = this.getOptionId(this.filteredOptions[index]);
142
- }
143
- const newList = this.lists ? [...this.lists]?.find((list) => list.offsetHeight !== 0 && list.id === newId) : "";
144
- if (this.lists) {
145
- [...this.lists].forEach((list) => {
146
- list.toggleAttribute("focused", false);
147
- });
148
- }
149
- if (newList) {
150
- newList?.toggleAttribute("focused", true);
151
- }
152
- } else {
153
- if (this.lists) {
154
- const oldFocusedOption = this.lists[oldIndex];
155
- if (oldFocusedOption) {
156
- oldFocusedOption.toggleAttribute("focused", false);
157
- }
158
- const newFocusedOption = this.lists[index];
159
- if (newFocusedOption) {
160
- newFocusedOption.toggleAttribute("focused", true);
161
- }
162
- }
163
- }
164
- this._focusedIndex = index;
165
- this.requestUpdate("focusedIndex", oldIndex);
166
- }
167
-
168
- get focusedGroupIndex() {
169
- return this._focusedGroupIndex;
170
- }
171
-
172
- set focusedGroupIndex(index: number) {
173
- const oldIndex = this._focusedGroupIndex;
174
- if (this.labels && this.labels.length !== 0) {
175
- const oldFocusedOption = this.labels[oldIndex];
176
- if (oldFocusedOption) {
177
- oldFocusedOption.toggleAttribute("focused", false);
178
- }
179
- const newFocusedOption = this.labels[index];
180
- if (newFocusedOption) {
181
- newFocusedOption.toggleAttribute("focused", true);
182
- newFocusedOption.focus();
183
- }
184
- }
185
- this._focusedGroupIndex = index;
186
- this.requestUpdate("focusedGroupIndex", oldIndex);
187
- }
188
-
189
- get messageType(): ComboBox.MessageType | null {
190
- if (this.messageArr.length > 0) {
191
- return this.messageController.determineMessageType(this.messageArr);
192
- }
193
- return null;
194
- }
195
-
196
- get messages() {
197
- if (this.messageType) {
198
- return this.messageController.filterMessagesByType(this.messageArr, this.messageType);
199
- }
200
- return null;
201
- }
202
-
203
- private multiSelectedIndex = -1;
204
- private multiSelected: number[] = [];
205
- private customContent: Element[] = [];
206
-
207
- private notifySearchResultCount() {
208
- // this function is to update ariaLabelForComboBox for search result count.
209
-
210
- // If searchResultAriaLabel is passed, the {{}} is replaced with the search result count.
211
- if (this.searchResultAriaLabel) {
212
- const regex = /{{.*?}}/g;
213
- this.ariaLabelForComboBox = this.searchResultAriaLabel.replace(regex, this.filteredOptions.length.toString());
214
- }
215
- // If searchResultAriaLabel is not passed and ariaLabel is passed, the ariaLabel is appended with the search result count.
216
- else if (this.ariaLabel) {
217
- this.ariaLabelForComboBox = `${this.ariaLabel}, ${this.filteredOptions.length} results found.`;
218
- }
219
- // If both searchResultAriaLabel and ariaLabel are not passed, the default text is appended with the search result count.
220
- else {
221
- this.ariaLabelForComboBox = `ComboBox Element, ${this.filteredOptions.length} results found.`;
222
- }
223
- }
224
-
225
- @query(".group") group?: HTMLDivElement;
226
- @query(".md-combobox-listbox") input?: HTMLInputElement;
227
- @query(".md-combobox-button") button?: HTMLButtonElement;
228
- @query("div#md-combobox-listbox") listBox?: HTMLDivElement;
229
- @query(".virtual-scroll") virtualizer?: any;
230
-
231
- @queryAll("div.md-combobox-option") lists?: HTMLDivElement[];
232
- @queryAll(".group-label") labels?: HTMLDivElement[];
233
- @queryAll(".md-combobox-selected-item") selected?: HTMLDivElement[];
234
-
235
- protected firstUpdated(changedProperties: PropertyValues) {
236
- // Initially the ariaLabelForComboBox is set for ariaLabel value if found or a static text is set.
237
- this.ariaLabelForComboBox = this.ariaLabel ? this.ariaLabel : "ComboBox Element";
238
- super.firstUpdated(changedProperties);
239
- if (this.isCustomContent) {
240
- this.optionId = "id";
241
- this.optionValue = "value";
242
- this.setOptionCustomContent();
243
- }
244
- this.setInitialValue();
245
- }
246
-
247
- protected updated(changedProperties: PropertyValues) {
248
- super.updated(changedProperties);
249
- if (changedProperties.has("expanded")) {
250
- if (this.expanded) {
251
- this.resizeListbox();
252
- this.checkSelectedOptions();
253
- } else {
254
- this.unCheckAllOptions();
255
- }
256
- }
257
- if (changedProperties.has("focusedIndex")) {
258
- if (this.focusedIndex >= 0) {
259
- if (!this.checkForVirtualScroll()) {
260
- this.scrollToOption();
261
- }
262
- }
263
- }
264
- if (changedProperties.has("value")) {
265
- if (this.selectedOptions.length === 0) {
266
- this.setInitialValue();
267
- }
268
- }
269
- if (changedProperties.has("customOptions")) {
270
- if (this.isCustomContent) {
271
- this.setOptionCustomContent();
272
- this.resizeListbox();
273
- }
274
- }
275
- if (changedProperties.has("showCustomError")) {
276
- this.resizeListbox();
277
- }
278
- if (changedProperties.has("showLoader")) {
279
- this.resizeListbox();
280
- }
281
- if (changedProperties.has("searchItem")) {
282
- this.resizeListbox();
283
- }
284
- }
285
-
286
- protected handleFocusIn(event: Event) {
287
- if (!this.disabled || this.readOnly) {
288
- if (this.noClearIcon) {
289
- requestAnimationFrame(() => {
290
- this.input!.focus();
291
- this.focusedGroupIndex = -1;
292
- });
293
-
294
- if (this.selectWhenInFocus) {
295
- this.input!.select();
296
- }
297
- }
298
- super.handleFocusIn && super.handleFocusIn(event);
299
- }
300
- this.dispatchEvent(
301
- new CustomEvent("combobox-focus-in", {
302
- composed: true,
303
- bubbles: true
304
- })
305
- );
306
- }
307
-
308
- protected handleFocusOut(event: Event) {
309
- super.handleFocusOut && super.handleFocusOut(event);
310
- this.dispatchEvent(
311
- new CustomEvent("combobox-focus-out", {
312
- composed: true,
313
- bubbles: true
314
- })
315
- );
316
- }
317
-
318
- private findFilteredOption(option: string | OptionMember) {
319
- if (this.isOptionObject(option)) {
320
- return (this.filteredOptions as OptionMember[]).findIndex(
321
- (filteredOption) =>
322
- this.getOptionId(filteredOption) === this.getOptionId(option) &&
323
- this.getOptionValue(filteredOption) === this.getOptionValue(option)
324
- );
325
- }
326
- return this.filteredOptions.indexOf(option);
327
- }
328
-
329
- private setInitialValue() {
330
- if (this.value.length) {
331
- if (this.isMulti) {
332
- this.value.forEach((v) => {
333
- const selectedIndex = this.findFilteredOption(v);
334
- if (selectedIndex !== -1) {
335
- this.setSelectedOption(v);
336
- }
337
- });
338
- } else {
339
- const option = this.value[0];
340
- const selectedIndex = this.findFilteredOption(option);
341
- if (selectedIndex !== -1) {
342
- this.setSelectedOption(option);
343
- this.setInputValue(this.getOptionValue(option));
344
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, this.getOptionId(option));
345
- this.focusedIndex = selectedIndex;
346
- this.focusedGroupIndex = -1;
347
- }
348
- }
349
- }
350
- }
351
-
352
- private isOptionObject(option: string | OptionMember) {
353
- return typeof option === "object" && option !== null;
354
- }
355
-
356
- private setOptionCustomContent() {
357
- if (this.isOptGroup) {
358
- const customOptionGroups = [...this.querySelectorAll(`optgroup`)];
359
- const final = [];
360
- for (const optgroup of customOptionGroups) {
361
- const label = optgroup.getAttribute("label");
362
- const childOptions = [...optgroup.querySelectorAll(`[slot]`)];
363
-
364
- final.push({ isLabel: "true", [this.optionValue]: label, groupName: label });
365
- for (const option of childOptions) {
366
- const customValue = option.getAttribute("aria-label");
367
- const displayCustomValue = option.getAttribute("display-value");
368
- const slotValue = option.getAttribute("slot");
369
- if (customValue && displayCustomValue) {
370
- final.push({
371
- [this.optionId]: customValue,
372
- [this.optionValue]: displayCustomValue,
373
- isLabel: "false",
374
- groupName: label,
375
- slot: slotValue
376
- });
377
- }
378
- }
379
- }
380
- this.options = final as OptionMember[];
381
- } else {
382
- this.customContent = [...this.querySelectorAll(`[slot]`)];
383
- if (this.customContent && this.customContent.length) {
384
- this.options = this.customContent.map((content) => {
385
- const customValue = content.getAttribute("aria-label");
386
- const displayCustomValue = content.getAttribute("display-value");
387
- if (customValue && displayCustomValue) {
388
- return { [this.optionId]: customValue, [this.optionValue]: displayCustomValue };
389
- }
390
- }) as OptionMember[];
391
- } else {
392
- this.options = [];
393
- }
394
- }
395
- }
396
-
397
- private getOptionValue(option: string | OptionMember) {
398
- return this.isOptionObject(option) ? (option as OptionMember)[this.optionValue] : (option as string);
399
- }
400
-
401
- private getOptionGroupName(option: any) {
402
- return option?.groupName;
403
- }
404
-
405
- private getOptionId(option: string | OptionMember) {
406
- return this.isOptionObject(option) ? (option as OptionMember)[this.optionId] : (option as string);
407
- }
408
-
409
- private getFocusedItem(focusedIndex: number) {
410
- if (focusedIndex >= 0) {
411
- return this.filteredOptions[focusedIndex];
412
- }
413
- }
414
-
415
- private setupEvents() {
416
- document.addEventListener("click", this.handleOutsideClick);
417
- this.addEventListener("remove-all-selected", this.removeAllSelected);
418
- this.addEventListener("selected-changed", this.selectedChange as EventListener);
419
- }
420
-
421
- private teardownEvents() {
422
- document.removeEventListener("click", this.handleOutsideClick);
423
- this.removeEventListener("remove-all-selected", this.removeAllSelected);
424
- this.removeEventListener("selected-changed", this.selectedChange as EventListener);
425
- }
426
-
427
- private setVisualListbox(value: boolean) {
428
- this.expanded = value;
429
- }
430
-
431
- private setGroupList(value: any) {
432
- if (this.groupExpandedList.includes(value)) {
433
- this.groupExpandedList.splice(this.groupExpandedList.indexOf(value), 1);
434
- this.groupExpandedList = [...this.groupExpandedList];
435
- } else {
436
- if (this.searchItem) this.groupExpandedList.push(value);
437
- else this.groupExpandedList = [value];
438
- }
439
- }
440
-
441
- private findSelectedOption(option: string | OptionMember) {
442
- if (this.optionId && option) {
443
- return this.selectedOptions.findIndex(
444
- (selectedOption) =>
445
- selectedOption &&
446
- (selectedOption as OptionMember)[this.optionId] === (option as OptionMember)[this.optionId]
447
- );
448
- } else {
449
- return this.selectedOptions.indexOf(option);
450
- }
451
- }
452
-
453
- private findOptionIndex(event: MouseEvent) {
454
- const eventPath = event.composedPath();
455
- if (this.checkForVirtualScroll()) {
456
- let id = "";
457
- [...this.lists!].forEach((listOption) => {
458
- if (eventPath.includes(listOption)) {
459
- id = listOption.id;
460
- }
461
- });
462
- return this.filteredOptions.findIndex((option: any) => this.getOptionId(option) === id);
463
- } else {
464
- return [...this.lists!].findIndex((listOption) => eventPath.includes(listOption));
465
- }
466
- }
467
- private checkSelectedOptions() {
468
- if (this.checkForVirtualScroll()) {
469
- const selectedOptionIds = this.selectedOptions.map((option) => this.getOptionId(option));
470
- const updatedLists = [...this.lists!].filter((list) => list.id !== "selectAll");
471
- updatedLists?.forEach((list: HTMLDivElement) => {
472
- if (selectedOptionIds.includes(list.id)) {
473
- if (this.isMulti) {
474
- list?.setAttribute("aria-checked", "true");
475
- }
476
- list?.setAttribute("aria-selected", "true");
477
- } else if (this.isMulti) {
478
- list?.setAttribute("aria-checked", "false");
479
- }
480
- });
481
- }
482
- }
483
- private unCheckAllOptions() {
484
- if (this.checkForVirtualScroll() && this.isMulti) {
485
- [...this.lists!]?.forEach((list: HTMLDivElement) => {
486
- if (list?.id !== "selectAll") {
487
- list?.setAttribute("aria-checked", "false");
488
- }
489
- });
490
- }
491
- }
492
-
493
- private setSelectedOption(option: string | OptionMember) {
494
- if (!this.isMulti) {
495
- this.selectedOptions = [];
496
- }
497
- const selectedIndex = this.findSelectedOption(option);
498
- if (selectedIndex !== -1) {
499
- const removedOption = this.selectedOptions[selectedIndex];
500
- this.selectedOptions.splice(selectedIndex, 1);
501
- this.notifySelectedChange({
502
- value: removedOption,
503
- selected: this.selectedOptions
504
- });
505
- } else {
506
- this.selectedOptions.push(option);
507
- this.notifySelectedChange({
508
- value: option,
509
- selected: this.selectedOptions
510
- });
511
- }
512
- this.checkSelectedOptions();
513
- if (this.isMulti && this.allowSelectAll) {
514
- this.isSelectAllChecked = this.isSelectAllSelected();
515
- }
516
- this.requestUpdate();
517
- }
518
-
519
- private notifySelectedChange = debounce((detail: SelectedEvent) => {
520
- this.dispatchEvent(
521
- new CustomEvent<SelectedEvent>("change-selected", {
522
- composed: true,
523
- bubbles: true,
524
- detail
525
- })
526
- );
527
- }, 0);
528
-
529
- private handleGroupFilter = (finalFilteredOption: (string | OptionMember)[]) => {
530
- const tempGroupExpandedList = finalFilteredOption.filter((item) => {
531
- if (typeof item !== "string" && item.isLabel === "true") {
532
- return item.groupName;
533
- }
534
- });
535
- this.searchItem = true;
536
- this.groupExpandedList = tempGroupExpandedList.map((a) => {
537
- if (typeof a !== "string") {
538
- return a.groupName;
539
- }
540
- });
541
-
542
- return finalFilteredOption.filter((option: string | OptionMember) => {
543
- if (typeof option !== "string" && option.isLabel === "true") {
544
- const isGroupOption = finalFilteredOption.find((option2) => {
545
- if (typeof option !== "string" && typeof option2 !== "string") {
546
- return option.groupName === option2.groupName && option2.isLabel === "false";
547
- }
548
- });
549
- return isGroupOption ? true : false;
550
- } else {
551
- return true;
552
- }
553
- });
554
- };
555
-
556
- private filterOptions(value: string): (string | OptionMember)[] {
557
- if (value && value.length) {
558
- const finalFilteredOption = this.options.filter((option: string | OptionMember) => {
559
- if (this.isOptGroup && typeof option !== "string" && option.isLabel === "true") {
560
- return option;
561
- } else {
562
- return (this.isCustomContent ? this.getOptionId(option) : this.getOptionValue(option))
563
- .toLowerCase()
564
- .includes(value.toLowerCase());
565
- }
566
- });
567
-
568
- if (this.isOptGroup) {
569
- return this.handleGroupFilter(finalFilteredOption);
570
- } else {
571
- return finalFilteredOption;
572
- }
573
- } else {
574
- this.searchItem = false;
575
- return this.options;
576
- }
577
- }
578
-
579
- private getListBoxVerticalPadding() {
580
- if (this.listBox) {
581
- const computedStyle = window.getComputedStyle(this.listBox, null);
582
- const paddingTop = parseInt(computedStyle.getPropertyValue("padding-top"));
583
- const paddingBottom = parseInt(computedStyle.getPropertyValue("padding-bottom"));
584
- const padding = paddingTop + paddingBottom;
585
-
586
- if (!isNaN(padding)) {
587
- return padding + 2;
588
- }
589
- }
590
-
591
- return 10;
592
- }
593
-
594
- private resizeListbox() {
595
- this.updateOnNextFrame(() => {
596
- let height = 0;
597
- let labelHeight = 0;
598
- let virtualizerHeight = 0;
599
- const verticalPadding: number = this.getListBoxVerticalPadding();
600
- if (this.lists) {
601
- const updatedList = this.checkForVirtualScroll()
602
- ? [...this.lists].filter((list) => list.offsetHeight !== 0)
603
- : [...this.lists];
604
-
605
- height = updatedList
606
- .slice(0, this.visibleOptions)
607
- .reduce((accumulator, option) => accumulator + option.offsetHeight, 0);
608
- virtualizerHeight =
609
- this.checkForVirtualScroll() && this.allowSelectAll
610
- ? updatedList
611
- .slice(1, this.visibleOptions)
612
- .reduce((accumulator, option) => accumulator + option.offsetHeight, 0)
613
- : updatedList
614
- .slice(0, this.visibleOptions)
615
- .reduce((accumulator, option) => accumulator + option.offsetHeight, 0);
616
- }
617
- if (this.labels) {
618
- labelHeight = [...this.labels]
619
- .slice(0, this.visibleOptions)
620
- .reduce((accumulator, option) => accumulator + option.offsetHeight, 0);
621
- }
622
- if (this.listBox) {
623
- this.listBox.style.maxHeight = `${height + labelHeight + verticalPadding}px`;
624
- }
625
-
626
- if (this.virtualizer) {
627
- this.virtualizer.style.height = `${virtualizerHeight + verticalPadding}px`;
628
- }
629
- if (this.showCustomError || this.showLoader) {
630
- const customContent = this.listBox?.querySelector("[slot]");
631
- if (this.listBox && customContent) {
632
- this.listBox.style.height = `${customContent.clientHeight + verticalPadding}px`;
633
- this.listBox.style.maxHeight = `${customContent.clientHeight + verticalPadding}px`;
634
- }
635
- }
636
- });
637
- }
638
-
639
- private setInputValue(value = "") {
640
- this.input!.value = value;
641
- }
642
-
643
- private updateOnNextFrame(cb: FrameRequestCallback) {
644
- requestAnimationFrame(cb);
645
- }
646
-
647
- private unCheckedAllOptions() {
648
- if (this.isMulti) {
649
- this.lists!.forEach((list, index) => this.unCheckedOption(index));
650
- this.isSelectAllChecked = false;
651
- }
652
- }
653
-
654
- private unCheckedOption(index: number) {
655
- if (this.isMulti) {
656
- this.lists![index].setAttribute("aria-checked", "false");
657
- this.notifySelectedChange({
658
- value: this.filteredOptions[index],
659
- selected: this.selectedOptions
660
- });
661
- }
662
- }
663
-
664
- private checkAllOptions() {
665
- if (this.isMulti) {
666
- this.lists!.forEach((list, index) => this.checkOption(index));
667
- }
668
- }
669
-
670
- private checkOption(index: number) {
671
- if (this.isMulti) {
672
- this.lists![index].setAttribute("aria-checked", "true");
673
- this.notifySelectedChange({
674
- value: this.filteredOptions[index],
675
- selected: this.selectedOptions
676
- });
677
- }
678
- }
679
-
680
- private isSelectAllSelected() {
681
- return this.selectedOptions.length === this.options.length;
682
- }
683
-
684
- private setFocusOnHost(force: boolean) {
685
- if (this.setFocus) {
686
- this.setFocus(force);
687
- }
688
- }
689
-
690
- private isOptionFocused(optionIndex: number) {
691
- return this.focusedIndex === optionIndex;
692
- }
693
-
694
- private getAriaState(optionIndex: number) {
695
- return this.isOptionFocused(optionIndex);
696
- }
697
-
698
- private scrollToOption() {
699
- let distance = 0;
700
- const { top, bottom } = this.listBox!.getBoundingClientRect();
701
- const option = this.lists![this.focusedIndex];
702
- const nextOption = (this.lists![this.focusedIndex + 1] || option)?.getBoundingClientRect();
703
- const prevOption = (this.lists![this.focusedIndex - 1] || option)?.getBoundingClientRect();
704
-
705
- if (nextOption?.bottom > bottom) {
706
- distance = nextOption.bottom - bottom + 2;
707
- } else if (prevOption?.top < top) {
708
- distance = prevOption.top - top - 2;
709
- }
710
- this.updateOnNextFrame(() => {
711
- this.listBox!.scrollTop += distance;
712
- });
713
- }
714
-
715
- private getCustomContentName(option: string | OptionMember) {
716
- const index = this.options.indexOf(option);
717
- if (this.isOptGroup) {
718
- const selectedOption = this.options[index];
719
- if (selectedOption && typeof selectedOption !== "string") {
720
- return selectedOption.slot;
721
- }
722
- } else {
723
- if (index !== -1) {
724
- return this.customContent[index].slot;
725
- }
726
- }
727
- }
728
-
729
- private setInputSelectionRange(start: number, end: number) {
730
- this.input!.setSelectionRange(start, end);
731
- }
732
-
733
- private isOptionChecked(option: string | OptionMember) {
734
- if (this.findSelectedOption(option) !== -1) {
735
- return "true";
736
- }
737
- return "false";
738
- }
739
-
740
- private getInputSelection() {
741
- return this.input!.selectionStart;
742
- }
743
-
744
- private canMultiSelect() {
745
- const inputSelection = this.getInputSelection();
746
- return inputSelection === 0 && this.selectedOptions.length !== 0 && this.isMulti;
747
- }
748
-
749
- private removeMultiTag() {
750
- if (this.selected) {
751
- this.multiSelected.forEach((index) => {
752
- const selected = this.selected![index];
753
- if (selected && selected.hasAttribute("selected")) {
754
- this.removeSelected(this.selectedOptions[index]);
755
- }
756
- });
757
- }
758
- }
759
-
760
- private unselectedAllMultiTag() {
761
- if (this.selected) {
762
- this.selected.forEach((selected) => selected.removeAttribute("selected"));
763
- }
764
- this.multiSelectedIndex = -1;
765
- }
766
-
767
- private findLastMultiSelected() {
768
- return this.selected![this.multiSelectedIndex];
769
- }
770
-
771
- private toggleMultiSelectedTag(selected: HTMLElement | undefined, force: boolean) {
772
- if (selected) {
773
- selected.toggleAttribute("selected", force);
774
- }
775
- }
776
-
777
- private selectMultiTag(isShiftKey: boolean) {
778
- if (this.canMultiSelect()) {
779
- if (!isShiftKey) {
780
- this.multiSelected = [];
781
- const oldSelected = this.findLastMultiSelected();
782
- this.toggleMultiSelectedTag(oldSelected, false);
783
- }
784
- if (this.multiSelectedIndex <= 0) {
785
- this.multiSelectedIndex = this.selectedOptions.length - 1;
786
- } else {
787
- this.multiSelectedIndex--;
788
- }
789
- this.multiSelected.push(this.multiSelectedIndex);
790
- const newSelected = this.findLastMultiSelected();
791
- this.toggleMultiSelectedTag(newSelected, true);
792
- }
793
- }
794
-
795
- async handleListClick(event: MouseEvent) {
796
- this.dispatchEvent(
797
- new CustomEvent("selected-changed", {
798
- detail: {
799
- event
800
- }
801
- })
802
- );
803
- await this.updateComplete;
804
-
805
- if (this.isMulti) {
806
- this.setVisualListbox(true);
807
- } else {
808
- this.setVisualListbox(false);
809
- }
810
-
811
- this.updateOnNextFrame(() => {
812
- this.input!.focus();
813
- this.focusedGroupIndex = -1;
814
- });
815
- }
816
-
817
- async handleSelectAll() {
818
- this.isSelectAllChecked = !this.isSelectAllChecked;
819
- if (this.isSelectAllChecked) {
820
- this.selectedOptions = [...this.options];
821
- this.checkAllOptions();
822
- } else {
823
- this.selectedOptions = [];
824
- this.unCheckedAllOptions();
825
- }
826
-
827
- await this.updateComplete;
828
- this.setVisualListbox(true);
829
- this.notifySelectedChange({
830
- selected: this.selectedOptions
831
- });
832
- }
833
-
834
- handleInputKeyUp(event: KeyboardEvent) {
835
- switch (event.code) {
836
- case Key.Escape: {
837
- break;
838
- }
839
- case Key.Backspace:
840
- {
841
- this.setFocusOnHost(true);
842
- this.setVisualListbox(true);
843
- this.resizeListbox();
844
- this.removeMultiTag();
845
- }
846
- break;
847
- case Key.ArrowLeft:
848
- {
849
- if (this.isMulti) {
850
- if (event.shiftKey) {
851
- this.selectMultiTag(true);
852
- } else {
853
- this.selectMultiTag(false);
854
- }
855
- }
856
- }
857
- break;
858
- default: {
859
- if (this.isMulti) {
860
- this.unselectedAllMultiTag();
861
- }
862
- break;
863
- }
864
- }
865
- }
866
-
867
- private notifyInputValueChanged = debounce((value: string) => {
868
- this.dispatchEvent(
869
- new CustomEvent("combobox-input", {
870
- composed: true,
871
- bubbles: true,
872
- detail: {
873
- value
874
- }
875
- })
876
- );
877
-
878
- this.notifySearchResultCount();
879
- this.focusedGroupIndex = 0;
880
- requestAnimationFrame(() => {
881
- this.input!.focus();
882
- this.focusedGroupIndex = -1;
883
- });
884
- }, 250);
885
-
886
- handleInput(event: Event) {
887
- const inputValue = (event.target as HTMLInputElement).value;
888
- this.inputValue = inputValue.trim();
889
- this.notifyInputValueChanged(inputValue.trim());
890
- }
891
-
892
- private removeAllSelected() {
893
- this.focusedIndex = -1;
894
- this.focusedGroupIndex = -1;
895
- this.selectedOptions = [];
896
- this.inputValue = "";
897
- this.setInputValue();
898
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, "");
899
- this.setVisualListbox(false);
900
- this.unCheckedAllOptions();
901
- this.setSelectedAttribute(undefined);
902
- this.updateOnNextFrame(() => {
903
- this.input!.focus();
904
- });
905
- this.notifySelectedChange({
906
- selected: this.selectedOptions
907
- });
908
- }
909
-
910
- private removeSelected(option: string | OptionMember) {
911
- const index = this.findSelectedOption(option);
912
- const checkedOptionIndex = this.filteredOptions.indexOf(option);
913
-
914
- if (checkedOptionIndex !== -1) {
915
- this.unCheckedOption(checkedOptionIndex);
916
- }
917
- if (index !== -1) {
918
- this.selectedOptions.splice(index, 1);
919
- this.requestUpdate();
920
- }
921
- this.updateOnNextFrame(() => {
922
- this.input!.focus();
923
- this.focusedGroupIndex = -1;
924
- });
925
- }
926
-
927
- private selectedChange(event: CustomEvent<{ event: MouseEvent }>) {
928
- const { event: clickEvent } = event.detail;
929
- let optionIndex = this.findOptionIndex(clickEvent);
930
- if (optionIndex !== -1) {
931
- this.focusedIndex = this.allowSelectAll && this.checkForVirtualScroll() ? optionIndex + 1 : optionIndex;
932
- if (this.isMulti && this.allowSelectAll && !this.checkForVirtualScroll()) {
933
- optionIndex = optionIndex - 1;
934
- }
935
- const option = this.getFocusedItem(optionIndex);
936
- this.setSelectedAttribute(option);
937
- if (option) {
938
- this.setSelectedOption(option);
939
- if (!this.isMulti) {
940
- this.setInputValue(this.getOptionValue(option));
941
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, this.getOptionId(option));
942
- } else if (this.isMulti && this.allowSelectAll) {
943
- this.isSelectAllChecked = this.isSelectAllSelected();
944
- }
945
- }
946
- }
947
- }
948
-
949
- private setSelectedAttribute(option: string | OptionMember | undefined) {
950
- let optionId = "";
951
- if (option) {
952
- optionId = this.getOptionId(option);
953
- }
954
- this.lists?.forEach((list, _index) => {
955
- if (list?.id === optionId) {
956
- list?.setAttribute("selected", "true");
957
- } else {
958
- list?.setAttribute("selected", "false");
959
- }
960
- });
961
- }
962
-
963
- private shouldChangeButton() {
964
- const shouldChange =
965
- (this.input && this.input.value.length > 0 && !this.noClearIcon) ||
966
- (this.isMulti && this.selectedOptions.length && !this.noClearIcon);
967
- if (shouldChange) {
968
- document.dispatchEvent(new CustomEvent("on-widget-update"));
969
- }
970
- return shouldChange;
971
- }
972
-
973
- private setCustomValue() {
974
- if (!this.optionId && !this.optionValue) {
975
- this.options = [...this.options, this.inputValue];
976
-
977
- this.setSelectedOption(this.inputValue);
978
-
979
- if (!this.isMulti) {
980
- this.updateOnNextFrame(() => {
981
- this.focusedIndex = this.filteredOptions.length - 1;
982
- const option = this.getFocusedItem(this.focusedIndex);
983
- if (option) {
984
- this.setInputValue(this.getOptionValue(option));
985
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, this.getOptionId(option));
986
- }
987
- });
988
- }
989
-
990
- this.dispatchEvent(
991
- new CustomEvent("custom-value-add", {
992
- composed: true,
993
- bubbles: true,
994
- detail: {
995
- value: this.inputValue
996
- }
997
- })
998
- );
999
- }
1000
- this.inputValue = "";
1001
- }
1002
-
1003
- handleGroupFocus() {
1004
- this.setFocusOnHost(false);
1005
- if (!this.expanded) {
1006
- this.setVisualListbox(true);
1007
- }
1008
- if (this.filteredGroupOptions.length > 0 && this.focusedGroupIndex === -1) {
1009
- this.focusedGroupIndex = this.filteredGroupOptions.findIndex((item) => {
1010
- return typeof item !== "string" && item.groupName === this.groupExpandedList[0];
1011
- });
1012
- }
1013
- this.updateOnNextFrame(() => {
1014
- if (
1015
- this.focusedGroupIndex === -1 ||
1016
- (!this.allowSelectAll && this.focusedGroupIndex >= this.filteredGroupOptions.length - 1) ||
1017
- (this.allowSelectAll && this.focusedGroupIndex >= this.filteredGroupOptions.length)
1018
- ) {
1019
- this.focusedGroupIndex = 0;
1020
- } else {
1021
- this.focusedGroupIndex++;
1022
- }
1023
- });
1024
- this.focusedIndex = -1;
1025
- }
1026
-
1027
- handleInputKeyDown(event: KeyboardEvent) {
1028
- switch (event.code) {
1029
- case Key.Backspace:
1030
- {
1031
- this.focusedIndex = -1;
1032
- }
1033
- break;
1034
- case Key.Tab:
1035
- case Key.Enter:
1036
- {
1037
- this.setFocusOnHost(true);
1038
- if (this.expanded) {
1039
- this.updateOnNextFrame(() => {
1040
- const option = this.getFocusedItem(!this.allowSelectAll ? this.focusedIndex : this.focusedIndex - 1);
1041
- if (this.allowCustomValue && this.input && this.input.value.length) {
1042
- const isOptionAlreadyExist = this.findFilteredOption(this.inputValue) === -1;
1043
- if (isOptionAlreadyExist) {
1044
- this.setCustomValue();
1045
- return;
1046
- }
1047
- }
1048
- if (option) {
1049
- this.setSelectedAttribute(option);
1050
- this.setSelectedOption(option);
1051
- if (!this.showSelectedCount) {
1052
- this.setInputValue(this.getOptionValue(option));
1053
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, this.getOptionId(option));
1054
- }
1055
- }
1056
- if (this.isMulti && this.allowSelectAll && this.focusedIndex === 0) {
1057
- this.handleSelectAll();
1058
- }
1059
- });
1060
- }
1061
- this.setVisualListbox(false);
1062
- if (event.code === Key.Tab && this.isMulti) {
1063
- return;
1064
- }
1065
- }
1066
- break;
1067
- case Key.ArrowDown:
1068
- {
1069
- if (this.isOptGroup && this.filteredOptions.length === 0) {
1070
- this.handleGroupFocus();
1071
- return;
1072
- }
1073
- this.setFocusOnHost(false);
1074
- if (!this.expanded) {
1075
- this.setVisualListbox(true);
1076
- }
1077
- this.updateOnNextFrame(() => {
1078
- if (
1079
- this.focusedIndex === -1 ||
1080
- (!this.allowSelectAll && this.focusedIndex >= this.filteredOptions.length - 1) ||
1081
- (this.allowSelectAll && this.focusedIndex >= this.filteredOptions.length)
1082
- ) {
1083
- this.focusedIndex = 0;
1084
- } else {
1085
- this.focusedIndex++;
1086
- }
1087
- const option = this.getFocusedItem(this.focusedIndex);
1088
- this.groupExpandedList = [this.getOptionGroupName(option)];
1089
- if (!this.showSelectedCount && option) {
1090
- this.setInputValue(this.getOptionValue(option));
1091
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, this.getOptionId(option));
1092
- }
1093
- this.focusedGroupIndex = -1;
1094
- });
1095
- }
1096
- break;
1097
- case Key.ArrowUp:
1098
- {
1099
- if (this.isOptGroup && this.filteredOptions.length === 0) {
1100
- this.handleGroupFocus();
1101
- return;
1102
- }
1103
- this.setFocusOnHost(false);
1104
- if (!this.expanded) {
1105
- this.setVisualListbox(true);
1106
- }
1107
- this.updateOnNextFrame(() => {
1108
- if (this.focusedIndex <= 0) {
1109
- this.focusedIndex = !this.allowSelectAll
1110
- ? this.filteredOptions.length - 1
1111
- : this.filteredOptions.length;
1112
- } else {
1113
- this.focusedIndex--;
1114
- }
1115
- const option = this.getFocusedItem(this.focusedIndex);
1116
- this.groupExpandedList = [this.getOptionGroupName(option)];
1117
- if (option && !this.showSelectedCount) {
1118
- this.setInputValue(this.getOptionValue(option));
1119
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, this.getOptionId(option));
1120
- this.focusedGroupIndex = -1;
1121
- }
1122
- });
1123
- }
1124
- break;
1125
- case Key.ArrowLeft:
1126
- case Key.ArrowRight:
1127
- {
1128
- event.stopPropagation();
1129
- }
1130
- break;
1131
- case Key.Escape:
1132
- {
1133
- this.setFocusOnHost(true);
1134
- if (this.expanded) {
1135
- event.stopPropagation();
1136
- this.setVisualListbox(false);
1137
- } else {
1138
- this.setInputValue();
1139
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, "");
1140
- this.focusedIndex = -1;
1141
- this.focusedGroupIndex = -1;
1142
- this.removeAllSelected();
1143
- this.setSelectedAttribute(undefined);
1144
- }
1145
- }
1146
- break;
1147
- case Key.Home:
1148
- {
1149
- this.setInputSelectionRange(0, 0);
1150
- }
1151
- break;
1152
- case Key.End:
1153
- {
1154
- const { length } = this.inputValue;
1155
- this.setInputSelectionRange(length, length);
1156
- }
1157
- break;
1158
- case Key.Space: {
1159
- if (this.isMulti && this.expanded) {
1160
- event.preventDefault();
1161
- const option = this.getFocusedItem(!this.allowSelectAll ? this.focusedIndex : this.focusedIndex - 1);
1162
- if (option) {
1163
- this.setSelectedOption(option);
1164
- this.setSelectedAttribute(option);
1165
- if (!this.showSelectedCount) {
1166
- this.setInputValue();
1167
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, "");
1168
- }
1169
- }
1170
- if (this.focusedIndex === 0 && this.allowSelectAll) {
1171
- this.handleSelectAll();
1172
- }
1173
- }
1174
- this.expanded = true;
1175
- break;
1176
- }
1177
- default: {
1178
- break;
1179
- }
1180
- }
1181
- }
1182
-
1183
- handleGroupLabelKeyDown(event: KeyboardEvent, option: OptionMember) {
1184
- switch (event.code) {
1185
- case Key.Tab:
1186
- {
1187
- this.handleGroupFocus();
1188
- }
1189
- break;
1190
- case Key.Enter:
1191
- case Key.Space:
1192
- {
1193
- if (this.focusedGroupIndex !== -1) {
1194
- this.toggleGroupListBox(event, option.value);
1195
- } else {
1196
- this.setFocusOnHost(true);
1197
- this.setVisualListbox(false);
1198
- this.updateOnNextFrame(() => {
1199
- const option = this.getFocusedItem(!this.allowSelectAll ? this.focusedIndex : this.focusedIndex - 1);
1200
- if (option) {
1201
- this.setSelectedOption(option);
1202
- if (!this.showSelectedCount) {
1203
- this.setInputValue(this.getOptionValue(option));
1204
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, this.getOptionId(option));
1205
- this.updateOnNextFrame(() => {
1206
- this.input!.focus();
1207
- this.focusedGroupIndex = -1;
1208
- });
1209
- }
1210
- }
1211
- if (this.isMulti && this.allowSelectAll && this.focusedIndex === 0) {
1212
- this.handleSelectAll();
1213
- }
1214
- });
1215
- }
1216
- }
1217
- break;
1218
- case Key.ArrowDown:
1219
- {
1220
- if (this.filteredOptions.length === 0) {
1221
- return;
1222
- }
1223
- this.setFocusOnHost(false);
1224
- this.updateOnNextFrame(() => {
1225
- if (
1226
- this.focusedIndex === -1 ||
1227
- (!this.allowSelectAll && this.focusedIndex >= this.filteredOptions.length - 1) ||
1228
- (this.allowSelectAll && this.focusedIndex >= this.filteredOptions.length)
1229
- ) {
1230
- this.focusedIndex = 0;
1231
- } else {
1232
- this.focusedIndex++;
1233
- }
1234
- const option = this.getFocusedItem(this.focusedIndex);
1235
- this.groupExpandedList = [this.getOptionGroupName(option)];
1236
- if (!this.showSelectedCount && option) {
1237
- this.setInputValue(this.getOptionValue(option));
1238
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, this.getOptionId(option));
1239
- }
1240
- this.focusedGroupIndex = -1;
1241
- });
1242
- }
1243
- break;
1244
- case Key.ArrowUp:
1245
- {
1246
- if (this.isOptGroup && this.filteredOptions.length === 0) {
1247
- return;
1248
- }
1249
- this.setFocusOnHost(false);
1250
- this.updateOnNextFrame(() => {
1251
- if (this.focusedIndex <= 0) {
1252
- this.focusedIndex = !this.allowSelectAll
1253
- ? this.filteredOptions.length - 1
1254
- : this.filteredOptions.length;
1255
- } else {
1256
- this.focusedIndex--;
1257
- }
1258
- const item = this.getFocusedItem(this.focusedIndex);
1259
- this.groupExpandedList = [this.getOptionGroupName(item)];
1260
- if (item && !this.showSelectedCount) {
1261
- this.setInputValue(this.getOptionValue(item));
1262
- this.input?.setAttribute(ATTRIBUTES.AriaActivedescendant, this.getOptionId(item));
1263
- }
1264
- });
1265
- }
1266
- break;
1267
- case Key.Escape:
1268
- {
1269
- this.focusedGroupIndex = -1;
1270
- this.setVisualListbox(false);
1271
- this.setFocusOnHost(true);
1272
- this.input!.focus();
1273
- }
1274
- break;
1275
- default: {
1276
- this.setVisualListbox(true);
1277
- break;
1278
- }
1279
- }
1280
- }
1281
-
1282
- toggleVisualListBox(e: any) {
1283
- if (this.readOnly) {
1284
- return;
1285
- }
1286
- if (e.target.classList.contains("md-combobox-listbox")) {
1287
- e.target.focus();
1288
- } else if (e.target.localName === "md-icon") {
1289
- const parentElement = e.target.parentElement?.parentElement?.parentElement;
1290
- if (parentElement) {
1291
- const input = parentElement.querySelector(".md-combobox-listbox");
1292
- setTimeout(() => {
1293
- input.focus();
1294
- }, 10);
1295
- }
1296
- }
1297
- if (this.expanded) {
1298
- this.setVisualListbox(false);
1299
- } else {
1300
- // While open combo-box
1301
- this.dispatchEvent(
1302
- new CustomEvent("combobox-on-expand", {
1303
- composed: true,
1304
- bubbles: true
1305
- })
1306
- );
1307
- this.notifySearchResultCount();
1308
- this.setVisualListbox(true);
1309
- }
1310
- this.input!.focus();
1311
- this.setGroupList("");
1312
- this.focusedGroupIndex = -1;
1313
- }
1314
-
1315
- toggleGroupListBox(e: Event, data: string) {
1316
- e.stopPropagation();
1317
- this.focusedGroupIndex = this.filteredGroupOptions.findIndex((item) => {
1318
- return typeof item !== "string" && item.groupName === data;
1319
- });
1320
- this.setGroupList(data);
1321
- this.resizeListbox();
1322
- }
1323
-
1324
- handleRemoveAll(event: MouseEvent) {
1325
- event.stopPropagation();
1326
- this.dispatchEvent(new CustomEvent("remove-all-selected"));
1327
- }
1328
-
1329
- handleOutsideClick = (event: MouseEvent) => {
1330
- let insideInputClick = false;
1331
- const path = event.composedPath();
1332
- if (path.length) {
1333
- insideInputClick = !!path.find((element) => element === this);
1334
- if (!insideInputClick) {
1335
- this.setVisualListbox(false);
1336
- this.unselectedAllMultiTag();
1337
- }
1338
- }
1339
- };
1340
-
1341
- connectedCallback() {
1342
- super.connectedCallback();
1343
- this.setupEvents();
1344
- const isOptGroup = this.querySelector("optgroup");
1345
- if (isOptGroup) this.isOptGroup = true;
1346
- }
1347
-
1348
- disconnectedCallback() {
1349
- super.disconnectedCallback();
1350
- this.teardownEvents();
1351
- }
1352
-
1353
- static get styles() {
1354
- return [reset, styles];
1355
- }
1356
-
1357
- get listItemOptionMap() {
1358
- return {
1359
- "md-combobox-multiselect": this.isMulti
1360
- };
1361
- }
1362
-
1363
- get filteredOptions() {
1364
- return this.filterOptions(this.trimSpace ? this.inputValue.replace(/\s+/g, "") : this.inputValue).filter(
1365
- (options: string | OptionMember) => {
1366
- if (this.isOptGroup) {
1367
- if (typeof options !== "string" && this.groupExpandedList.includes(this.getOptionGroupName(options))) {
1368
- return options.isLabel === "false";
1369
- }
1370
- } else {
1371
- return true;
1372
- }
1373
- }
1374
- );
1375
- }
1376
-
1377
- get filteredGroupOptions() {
1378
- return this.filterOptions(this.trimSpace ? this.inputValue.replace(/\s+/g, "") : this.inputValue).filter(
1379
- (options: string | OptionMember) => {
1380
- if (this.isOptGroup) {
1381
- if (typeof options !== "string") {
1382
- return options.isLabel === "true";
1383
- }
1384
- } else {
1385
- return true;
1386
- }
1387
- }
1388
- );
1389
- }
1390
-
1391
- get comboBoxTemplateClassMap() {
1392
- return {
1393
- [`md-combobox--${this.shape}`]: !!this.shape,
1394
- "md-combobox-searchable": this.searchable,
1395
- "md-new-combobox": this.newMomentum,
1396
- [`md-${this.messageType}`]: !!this.messageType,
1397
- "md-combobox-readonly": this.readOnly
1398
- };
1399
- }
1400
-
1401
- searchIconTemplate() {
1402
- return html`
1403
- <md-icon
1404
- name="search-bold"
1405
- class="search-icon"
1406
- size="16"
1407
- iconSet="momentumDesign"
1408
- @click=${this.toggleVisualListBox}
1409
- ></md-icon>
1410
- `;
1411
- }
1412
-
1413
- selectedOptionTemplate(selectedOption: string | OptionMember) {
1414
- return html`
1415
- <div class="md-combobox-selected-item">
1416
- <span>${this.getOptionValue(selectedOption)}</span>
1417
- <md-icon
1418
- class="remove-item"
1419
- name="cancel-bold"
1420
- size=${this.newMomentum ? "16" : "8"}
1421
- iconSet="momentumDesign"
1422
- @click=${() => this.removeSelected(selectedOption)}
1423
- ></md-icon>
1424
- </div>
1425
- `;
1426
- }
1427
-
1428
- clearButtonTemplate() {
1429
- return html`
1430
- <button
1431
- type="button"
1432
- class="md-combobox-button clear"
1433
- aria-label=${this.clearAriaLabel}
1434
- aria-controls="md-combobox-listbox"
1435
- tabindex="0"
1436
- ?disabled=${this.disabled}
1437
- ?readonly=${this.readOnly}
1438
- @click=${this.handleRemoveAll}
1439
- >
1440
- <span>
1441
- <md-icon
1442
- class="md-input__icon-clear"
1443
- name="cancel-bold"
1444
- size="14"
1445
- iconSet="momentumDesign"
1446
- style="height: ${this.clearIconHeight};"
1447
- ></md-icon
1448
- ></span>
1449
- </button>
1450
- `;
1451
- }
1452
-
1453
- arrowButtonTemplate() {
1454
- return html`
1455
- <button
1456
- type="button"
1457
- class="md-combobox-button arrow-down"
1458
- aria-expanded=${this.expanded}
1459
- aria-label=${ifDefined(this.popupChevronAriaHidden === "true" ? undefined : this.arrowAriaLabel)}
1460
- aria-controls="md-combobox-listbox"
1461
- tabindex="-1"
1462
- aria-hidden=${this.popupChevronAriaHidden}
1463
- ?disabled=${this.disabled}
1464
- ?readonly=${this.readOnly}
1465
- @click=${this.toggleVisualListBox}
1466
- >
1467
- <span>
1468
- <md-icon name="arrow-down-bold" size="16" iconSet="momentumDesign"></md-icon>
1469
- </span>
1470
- </button>
1471
- `;
1472
- }
1473
-
1474
- groupArrowButtonTemplate(data: string) {
1475
- const iconName = this.groupExpandedList.includes(data) ? "arrow-up-bold" : "arrow-down-bold";
1476
- return html`
1477
- <button
1478
- type="button"
1479
- class="md-combobox-button"
1480
- aria-label=${ifDefined(this.popupChevronAriaHidden === "true" ? undefined : this.arrowAriaLabel)}
1481
- aria-controls="md-combobox-listbox"
1482
- tabindex="-1"
1483
- aria-hidden=${this.popupChevronAriaHidden === "true" ? "true" : "false"}
1484
- ?disabled=${this.disabled}
1485
- ?readonly=${this.readOnly}
1486
- @click=${(e: MouseEvent) => this.toggleGroupListBox(e, data)}
1487
- >
1488
- <span>
1489
- <md-icon name=${iconName} size="12" iconSet="momentumDesign"></md-icon>
1490
- </span>
1491
- </button>
1492
- `;
1493
- }
1494
-
1495
- getSelectAllOption() {
1496
- const ariaLabelForCount = this.checkForVirtualScroll() ? `, 1 of ${this.options.length + 1}` : "";
1497
- return html`
1498
- <div
1499
- id="selectAll"
1500
- part="combobox-option"
1501
- class="md-combobox-option ${classMap(this.listItemOptionMap)}"
1502
- @click=${this.handleSelectAll}
1503
- aria-label="${this.selectAllTextLocalization}${ariaLabelForCount}"
1504
- aria-checked=${ifDefined(this.isSelectAllChecked ? "true" : undefined)}
1505
- role="checkbox"
1506
- >
1507
- <span class="select-option" aria-hidden="true">
1508
- <md-icon name="check-bold" size="14" iconSet="momentumDesign"></md-icon>
1509
- </span>
1510
-
1511
- <span part="label" class="select-label" aria-hidden="true">${this.selectAllTextLocalization}</span>
1512
- </div>
1513
- `;
1514
- }
1515
-
1516
- getSelctedCount() {
1517
- if (this.selectedOptions.length === 0) {
1518
- return nothing;
1519
- } else if (this.isSelectAllSelected()) {
1520
- return html` <span class="selected-count">${this.allTextLocalization}</span> `;
1521
- }
1522
- return html`
1523
- <span class="selected-count">${this.selectedOptions.length} ${this.selectedTextLocalization}</span>
1524
- `;
1525
- }
1526
- checkForVirtualScroll() {
1527
- return this.useVirtualScroll && !this.isOptGroup;
1528
- }
1529
-
1530
- rangeChanged() {
1531
- this.updateFocusedIndex(this.focusedIndex);
1532
- this.checkSelectedOptions();
1533
- this.resizeListbox();
1534
- }
1535
-
1536
- getCustomErrorContent() {
1537
- const element = this.querySelector("[slot]") || this.shadowRoot!.querySelector("[slot]");
1538
- return document.createRange().createContextualFragment(`${element?.outerHTML}`);
1539
- }
1540
-
1541
- getCustomContent(option: string | OptionMember) {
1542
- const slotName = this.getCustomContentName(option);
1543
- if (this.isOptGroup) {
1544
- const slot = [...this.querySelectorAll(`[slot]`)].find((element) => element.slot === slotName);
1545
- if (slot) {
1546
- return document.createRange().createContextualFragment(`${slot.outerHTML}`);
1547
- } else {
1548
- return html``;
1549
- }
1550
- } else {
1551
- return html` <slot name=${ifDefined(slotName)}></slot> `;
1552
- }
1553
- }
1554
-
1555
- renderGroupLabelHeader(option: OptionMember, optionIndex: number) {
1556
- return html`
1557
- <div
1558
- part="group-label"
1559
- class="group-label"
1560
- role="listbox"
1561
- aria-controls="md-combobox-listbox"
1562
- aria-label=${option.value}
1563
- @click=${(e: MouseEvent) => this.toggleGroupListBox(e, option.value)}
1564
- @keydown=${(e: KeyboardEvent) => {
1565
- this.handleGroupLabelKeyDown(e, option);
1566
- }}
1567
- tabindex="1"
1568
- aria-selected=${this.getAriaState(optionIndex)}
1569
- >
1570
- <span part="group-label">${option.value}</span>
1571
- ${this.groupArrowButtonTemplate(option.value)}
1572
- </div>
1573
- `;
1574
- }
1575
-
1576
- renderWithoutVirtualScroll() {
1577
- return repeat(
1578
- this.filterOptions(this.trimSpace ? this.inputValue.replace(/\s+/g, "") : this.inputValue),
1579
- (option: string | OptionMember) => this.getOptionId(option),
1580
- (option: string | OptionMember, optionIndex) => {
1581
- if (typeof option !== "string" && this.isOptGroup && option.isLabel === "true") {
1582
- return this.renderGroupLabelHeader(option, optionIndex);
1583
- } else if (!(this.isOptGroup && !this.groupExpandedList.includes(this.getOptionGroupName(option)))) {
1584
- return this.renderItem(option, optionIndex);
1585
- }
1586
- }
1587
- );
1588
- }
1589
-
1590
- highlightingSearchedText(option: OptionMember | string) {
1591
- return findHighlight(
1592
- this.getOptionValue(option),
1593
- this.trimSpace ? this.inputValue.replace(/\s+/g, "") : this.inputValue
1594
- ).map(({ text, matching }) =>
1595
- matching
1596
- ? html` <span class="highlight-text" part="select-label">${text}</span> `
1597
- : html` <span class="selected-label-text" part="select-label">${text}</span> `
1598
- );
1599
- }
1600
-
1601
- addStyle() {
1602
- const isInvisible = this.expanded
1603
- ? this.options.length && this.filteredOptions.length === 0 && this.inputValue && this.allowCustomValue
1604
- : true;
1605
- if (!this.checkForVirtualScroll()) {
1606
- return styleMap({
1607
- display: isInvisible ? "none" : "block",
1608
- "z-index": "99",
1609
- overflow: "auto"
1610
- });
1611
- } else {
1612
- return styleMap({
1613
- visibility: isInvisible ? "hidden" : "visible",
1614
- "z-index": isInvisible ? "-1" : "99",
1615
- overflow: "hidden"
1616
- });
1617
- }
1618
- }
1619
-
1620
- renderItem(option: OptionMember | string, index: number) {
1621
- const count = this.allowSelectAll ? index + 2 : index + 1;
1622
- const total = this.allowSelectAll ? this.options.length + 1 : this.options.length;
1623
- const ariaLabelForCount = this.checkForVirtualScroll() ? `, ${count} of ${total}` : "";
1624
- return html`
1625
- <div
1626
- id=${this.getOptionId(option)}
1627
- title="${this.getOptionValue(option)}"
1628
- part="combobox-option"
1629
- class="md-combobox-option"
1630
- aria-posinset=${count}
1631
- aria-setsize=${total}
1632
- role=${this.isMulti ? "checkbox" : "listitem"}
1633
- aria-label="${this.isCustomContent
1634
- ? this.getOptionId(option)
1635
- : this.getOptionValue(option)}${ariaLabelForCount}"
1636
- tabindex="-1"
1637
- @click=${this.handleListClick}
1638
- aria-checked=${ifDefined(this.isMulti ? this.isOptionChecked.call(this, option) : undefined)}
1639
- >
1640
- ${this.isMulti
1641
- ? html`
1642
- <span class="select-option" aria-hidden="true">
1643
- <md-icon name="check-bold" size="14" iconSet="momentumDesign"></md-icon>
1644
- </span>
1645
- `
1646
- : nothing}
1647
- <span part="label" class="select-label" aria-hidden="true">
1648
- ${this.isCustomContent ? this.getCustomContent(option) : this.highlightingSearchedText(option)}
1649
- </span>
1650
- </div>
1651
- `;
1652
- }
1653
-
1654
- inputTitle() {
1655
- if (this.isMulti) {
1656
- // For multi select, The title should be the selected items count
1657
- return this.selectedOptions.length > 0
1658
- ? `${this.selectedOptions.length} ${this.selectedTextLocalization}`
1659
- : this.placeholder;
1660
- }
1661
- return this.selectedOptions.length > 0 ? this.getOptionValue(this.selectedOptions[0]) : this.placeholder;
1662
- }
1663
-
1664
- helpTextTemplate() {
1665
- return this.helpText
1666
- ? html`
1667
- <md-help-text
1668
- class="help-text ${classMap({ disabled: this.disabled, newMomentum: this.newMomentum })}"
1669
- .message=${this.helpText}
1670
- style=${styleMap({ width: "100%" })}
1671
- ></md-help-text>
1672
- `
1673
- : nothing;
1674
- }
1675
-
1676
- messagesTemplate() {
1677
- return this.messages && !!this.messages.length
1678
- ? html`
1679
- <div id="${this.htmlId}-message" part="message" class="md-combobox__messages">
1680
- ${repeat(this.messages, (message, id) => {
1681
- return html`
1682
- <md-help-text
1683
- .message=${message}
1684
- .id=${this.messageArr[id].id || ""}
1685
- .ariaLive=${this.messageArr[id].ariaLive || "polite"}
1686
- .messageType=${this.messageType as ComboBox.MessageType}
1687
- ></md-help-text>
1688
- `;
1689
- })}
1690
- </div>
1691
- `
1692
- : nothing;
1693
- }
1694
-
1695
- render() {
1696
- return html`
1697
- <div part="combobox" class="md-combobox md-combobox-list ${classMap(this.comboBoxTemplateClassMap)}">
1698
- <div part="group" class="group ${classMap(this.listItemOptionMap)}">
1699
- ${this.searchable ? this.searchIconTemplate() : nothing}
1700
- <div class="md-combobox__multiwrap" part="multiwrap">
1701
- ${this.isMulti
1702
- ? this.isMulti && !this.showSelectedCount
1703
- ? repeat(this.selectedOptions, (selectedOption) => this.selectedOptionTemplate(selectedOption))
1704
- : this.getSelctedCount()
1705
- : nothing}
1706
- <input
1707
- id=${ifDefined(this.comboboxId || undefined)}
1708
- class="md-combobox-listbox"
1709
- type="text"
1710
- role="combobox"
1711
- aria-autocomplete="both"
1712
- aria-label=${this.ariaLabelForComboBox}
1713
- part="multiwrap-input"
1714
- aria-expanded=${this.expanded}
1715
- placeholder=${this.isMulti && this.showSelectedCount && this.selectedOptions.length !== 0
1716
- ? ""
1717
- : this.placeholder}
1718
- aria-controls="md-combobox-listbox"
1719
- ?readonly=${this.allowSelectAll || this.readOnly}
1720
- ?disabled=${this.disabled}
1721
- ?autofocus=${this.autofocus}
1722
- title=${ifDefined(this.inputTitle())}
1723
- .value=${this.inputValue}
1724
- @click=${this.toggleVisualListBox}
1725
- @input=${this.handleInput}
1726
- @keyup=${this.handleInputKeyUp}
1727
- @keydown=${this.handleInputKeyDown}
1728
- />
1729
- </div>
1730
- ${this.compact
1731
- ? nothing
1732
- : this.shouldChangeButton()
1733
- ? this.clearButtonTemplate()
1734
- : !this.newMomentum
1735
- ? this.arrowButtonTemplate()
1736
- : nothing}
1737
- ${this.newMomentum
1738
- ? html` <div class="md-combobox-right-arrow">${this.arrowButtonTemplate()}</div> `
1739
- : nothing}
1740
- </div>
1741
-
1742
- ${this.showLoader || this.showCustomError
1743
- ? html`
1744
- <div
1745
- id="md-combobox-listbox"
1746
- part="combobox-options"
1747
- aria-label=${this.ariaLabel}
1748
- style=${styleMap({
1749
- display: this.expanded ? "block" : "none",
1750
- "z-index": "99"
1751
- })}
1752
- >
1753
- ${this.getCustomErrorContent()}
1754
- </div>
1755
- `
1756
- : html`
1757
- <div
1758
- id="md-combobox-listbox"
1759
- part="combobox-options"
1760
- aria-label=${this.ariaLabel || this.label}
1761
- style=${this.addStyle()}
1762
- role=${ifDefined(this.checkForVirtualScroll() ? undefined : "list")}
1763
- >
1764
- ${this.isMulti && this.allowSelectAll && this.expanded ? this.getSelectAllOption() : nothing}
1765
- ${!this.checkForVirtualScroll()
1766
- ? this.renderWithoutVirtualScroll()
1767
- : this.options.length !== 0 &&
1768
- this.filterOptions(this.trimSpace ? this.inputValue.replace(/\s+/g, "") : this.inputValue)
1769
- .length > 0
1770
- ? html`
1771
- <div class="virtual-scroll" @rangechange=${this.rangeChanged}>
1772
- ${scroll({
1773
- items: this.filterOptions(
1774
- this.trimSpace ? this.inputValue.replace(/\s+/g, "") : this.inputValue
1775
- ),
1776
- renderItem: (item: string | OptionMember, index?: number) =>
1777
- this.renderItem(item, index || 0),
1778
- useShadowDOM: false,
1779
- scrollToIndex: {
1780
- index: this.focusedIndex,
1781
- position: this.focusedIndex === -1 ? "start" : "center"
1782
- }
1783
- })}
1784
- </div>
1785
- `
1786
- : nothing}
1787
- ${this.options.length &&
1788
- this.filteredOptions.length === 0 &&
1789
- this.inputValue &&
1790
- !this.allowCustomValue
1791
- ? html`
1792
- <div class="no-result md-combobox-option" role="option" aria-selected="false" tabindex="-1">
1793
- ${this.resultsTextLocalization.trim()}
1794
- </div>
1795
- `
1796
- : nothing}
1797
- ${this.options.length === 0
1798
- ? html`
1799
- <div class="no-result md-combobox-option" role="option" aria-selected="false" tabindex="-1">
1800
- ${this.optionsTextLocalization.trim()}
1801
- </div>
1802
- `
1803
- : nothing}
1804
- </div>
1805
- `}
1806
- </div>
1807
- ${this.invalid
1808
- ? html`
1809
- <div part="message" class="md-combobox-error ${classMap({ "md-new-combobox-error": this.newMomentum })}">
1810
- <md-help-text .message=${this.invalidText} messageType="error"></md-help-text>
1811
- </div>
1812
- `
1813
- : nothing}
1814
- ${this.messagesTemplate()} ${this.helpTextTemplate()}
1815
- `;
1816
- }
1817
- }
1818
- }
1819
-
1820
- declare global {
1821
- interface HTMLElementTagNameMap {
1822
- "md-combobox": ComboBox.ELEMENT;
1823
- }
1824
- }