@momentum-ui/web-components 2.17.15 → 2.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (735) hide show
  1. package/dist/109.js +11 -0
  2. package/dist/1107.js +1 -0
  3. package/dist/1200.js +26 -0
  4. package/dist/1250.js +1 -0
  5. package/dist/1270.js +1 -0
  6. package/dist/1323.js +26 -0
  7. package/dist/1392.js +1 -0
  8. package/dist/1439.js +1 -0
  9. package/dist/144.js +1 -0
  10. package/dist/1572.js +1 -0
  11. package/dist/1598.js +1 -0
  12. package/dist/1625.js +1 -0
  13. package/dist/1705.js +1 -0
  14. package/dist/182.js +1 -0
  15. package/dist/1869.js +1 -0
  16. package/dist/1890.js +1 -0
  17. package/dist/195.js +1 -0
  18. package/dist/2019.js +1 -0
  19. package/dist/2043.js +1 -0
  20. package/dist/2176.js +1 -0
  21. package/dist/2215.js +1 -0
  22. package/dist/2243.js +1 -0
  23. package/dist/2547.js +218 -0
  24. package/dist/2576.js +1 -0
  25. package/dist/2798.js +1 -0
  26. package/dist/2972.js +1 -0
  27. package/dist/2984.js +1 -0
  28. package/dist/300.js +1 -0
  29. package/dist/3001.js +1 -0
  30. package/dist/3112.js +1 -0
  31. package/dist/3135.js +1 -0
  32. package/dist/3192.js +23 -0
  33. package/dist/3553.js +1 -0
  34. package/dist/3604.js +1 -0
  35. package/dist/3625.js +1 -0
  36. package/dist/3663.js +1 -0
  37. package/dist/3866.js +1 -0
  38. package/dist/4006.js +1 -0
  39. package/dist/4392.js +1 -0
  40. package/dist/4400.js +1 -0
  41. package/dist/4548.js +1 -0
  42. package/dist/4624.js +1 -0
  43. package/dist/4663.js +1 -0
  44. package/dist/4974.js +1 -0
  45. package/dist/4977.js +1 -0
  46. package/dist/5211.js +1 -0
  47. package/dist/528.js +12 -0
  48. package/dist/5382.js +1 -0
  49. package/dist/{chunks/md-2.js → 5433.js} +1 -1
  50. package/dist/5467.js +1 -0
  51. package/dist/573.js +1 -0
  52. package/dist/5801.js +22 -0
  53. package/dist/587.js +1 -0
  54. package/dist/591.js +1 -0
  55. package/dist/6015.js +1 -0
  56. package/dist/6067.js +1 -0
  57. package/dist/6272.js +1 -0
  58. package/dist/6273.js +45 -0
  59. package/dist/630.js +1 -0
  60. package/dist/6325.js +1 -0
  61. package/dist/6366.js +1 -0
  62. package/dist/6396.js +9 -0
  63. package/dist/6400.js +1 -0
  64. package/dist/6408.js +124 -0
  65. package/dist/6441.js +1 -0
  66. package/dist/6652.js +47 -0
  67. package/dist/6677.js +1 -0
  68. package/dist/6700.js +1 -0
  69. package/dist/671.js +1 -0
  70. package/dist/6754.js +17 -0
  71. package/dist/6795.js +1 -0
  72. package/dist/6798.js +77 -0
  73. package/dist/6875.js +1 -0
  74. package/dist/6979.js +1 -0
  75. package/dist/7030.js +1 -0
  76. package/dist/7092.js +1 -0
  77. package/dist/7103.js +1 -0
  78. package/dist/7251.js +1 -0
  79. package/dist/7330.js +1 -0
  80. package/dist/7502.js +1 -0
  81. package/dist/754.js +1 -0
  82. package/dist/76.js +1 -0
  83. package/dist/768.js +1 -0
  84. package/dist/7719.js +1 -0
  85. package/dist/7763.js +1 -0
  86. package/dist/779.js +1 -0
  87. package/dist/7814.js +8 -0
  88. package/dist/7833.js +1 -0
  89. package/dist/7875.js +1 -0
  90. package/dist/7919.js +1 -0
  91. package/dist/8028.js +44 -0
  92. package/dist/8171.js +16 -0
  93. package/dist/8210.js +1 -0
  94. package/dist/8227.js +1 -0
  95. package/dist/8373.js +1 -0
  96. package/dist/8387.js +1 -0
  97. package/dist/8521.js +1 -0
  98. package/dist/8728.js +1 -0
  99. package/dist/8841.js +1 -0
  100. package/dist/8889.js +1 -0
  101. package/dist/9058.js +1 -0
  102. package/dist/9618.js +1 -0
  103. package/dist/9719.js +1 -0
  104. package/dist/9788.js +7 -0
  105. package/dist/9813.js +1 -0
  106. package/dist/984.js +8 -0
  107. package/dist/assets/styles/fonts.css +13 -0
  108. package/dist/chunks/md-1012.js +1 -0
  109. package/dist/chunks/md-1036.js +1 -0
  110. package/dist/chunks/md-108.js +1 -1
  111. package/dist/chunks/md-1180.js +1 -0
  112. package/dist/chunks/md-1192.js +1 -0
  113. package/dist/chunks/md-1297.js +1 -0
  114. package/dist/chunks/md-1352.js +1 -0
  115. package/dist/chunks/md-1497.js +1 -0
  116. package/dist/chunks/md-1519.js +1 -0
  117. package/dist/chunks/md-1533.js +1 -0
  118. package/dist/chunks/md-1679.js +1 -0
  119. package/dist/chunks/md-1786.js +1 -0
  120. package/dist/chunks/md-181.js +1 -1
  121. package/dist/chunks/md-1870.js +1 -0
  122. package/dist/chunks/md-1942.js +1 -0
  123. package/dist/chunks/md-1983.js +1 -0
  124. package/dist/chunks/md-2052.js +1 -0
  125. package/dist/chunks/md-2086.js +1 -0
  126. package/dist/chunks/md-2224.js +1 -0
  127. package/dist/chunks/md-2241.js +1 -0
  128. package/dist/chunks/md-2292.js +1 -0
  129. package/dist/chunks/md-2329.js +1 -0
  130. package/dist/chunks/md-2402.js +1 -0
  131. package/dist/chunks/md-2539.js +1 -0
  132. package/dist/chunks/md-258.js +1 -1
  133. package/dist/chunks/md-2670.js +1 -0
  134. package/dist/chunks/md-2698.js +1 -0
  135. package/dist/chunks/md-2701.js +1 -0
  136. package/dist/chunks/md-2731.js +1 -0
  137. package/dist/chunks/md-279.js +1 -1
  138. package/dist/chunks/md-2825.js +1 -0
  139. package/dist/chunks/md-2896.js +1 -0
  140. package/dist/chunks/md-2904.js +1 -0
  141. package/dist/chunks/md-2923.js +1 -0
  142. package/dist/chunks/md-2962.js +1 -0
  143. package/dist/chunks/md-2970.js +1 -0
  144. package/dist/chunks/md-2978.js +1 -0
  145. package/dist/chunks/md-3035.js +1 -0
  146. package/dist/chunks/md-3105.js +1 -0
  147. package/dist/chunks/md-3195.js +1 -0
  148. package/dist/chunks/md-3206.js +1 -0
  149. package/dist/chunks/md-3231.js +1 -0
  150. package/dist/chunks/md-3255.js +1 -0
  151. package/dist/chunks/md-3270.js +1 -0
  152. package/dist/chunks/md-3315.js +1 -0
  153. package/dist/chunks/md-3399.js +1 -0
  154. package/dist/chunks/md-3402.js +1 -0
  155. package/dist/chunks/md-3409.js +1 -0
  156. package/dist/chunks/md-3447.js +1 -0
  157. package/dist/chunks/md-3458.js +1 -0
  158. package/dist/chunks/md-3543.js +1 -0
  159. package/dist/chunks/md-3557.js +1 -0
  160. package/dist/chunks/md-3618.js +1 -0
  161. package/dist/chunks/md-364.js +1 -0
  162. package/dist/chunks/md-3666.js +1 -0
  163. package/dist/chunks/md-3712.js +1 -0
  164. package/dist/chunks/md-3732.js +1 -0
  165. package/dist/chunks/md-3838.js +1 -0
  166. package/dist/chunks/md-4058.js +1 -0
  167. package/dist/chunks/md-4108.js +1 -0
  168. package/dist/chunks/md-4113.js +1 -0
  169. package/dist/chunks/md-4125.js +1 -0
  170. package/dist/chunks/md-414.js +1 -0
  171. package/dist/chunks/md-4177.js +1 -0
  172. package/dist/chunks/md-4205.js +1 -0
  173. package/dist/chunks/md-431.js +1 -0
  174. package/dist/chunks/md-4321.js +1 -0
  175. package/dist/chunks/md-436.js +1 -0
  176. package/dist/chunks/md-4412.js +1 -0
  177. package/dist/chunks/md-4460.js +1 -0
  178. package/dist/chunks/md-4490.js +1 -0
  179. package/dist/chunks/md-4561.js +1 -0
  180. package/dist/chunks/md-4564.js +1 -0
  181. package/dist/chunks/md-4608.js +1 -0
  182. package/dist/chunks/md-4635.js +1 -0
  183. package/dist/chunks/md-4659.js +1 -0
  184. package/dist/chunks/md-4701.js +1 -0
  185. package/dist/chunks/md-4714.js +1 -0
  186. package/dist/chunks/md-4745.js +1 -0
  187. package/dist/chunks/md-4893.js +1 -0
  188. package/dist/chunks/md-4896.js +1 -0
  189. package/dist/chunks/md-4904.js +1 -0
  190. package/dist/chunks/md-5076.js +1 -0
  191. package/dist/chunks/md-5089.js +1 -0
  192. package/dist/chunks/md-5093.js +1 -0
  193. package/dist/chunks/md-5117.js +1 -0
  194. package/dist/chunks/md-5133.js +1 -0
  195. package/dist/chunks/md-5320.js +1 -0
  196. package/dist/chunks/md-5331.js +1 -0
  197. package/dist/chunks/md-5344.js +1 -0
  198. package/dist/chunks/md-5439.js +1 -0
  199. package/dist/chunks/md-5449.js +1 -0
  200. package/dist/chunks/md-5468.js +1 -0
  201. package/dist/chunks/md-5506.js +1 -0
  202. package/dist/chunks/md-5579.js +1 -0
  203. package/dist/chunks/md-5610.js +1 -0
  204. package/dist/chunks/md-5617.js +1 -0
  205. package/dist/chunks/md-5672.js +1 -0
  206. package/dist/chunks/md-5754.js +1 -0
  207. package/dist/chunks/md-5772.js +1 -0
  208. package/dist/chunks/md-5790.js +1 -0
  209. package/dist/chunks/md-581.js +1 -0
  210. package/dist/chunks/md-5812.js +1 -0
  211. package/dist/chunks/md-5814.js +1 -0
  212. package/dist/chunks/md-5892.js +1 -0
  213. package/dist/chunks/md-593.js +1 -0
  214. package/dist/chunks/md-5976.js +1 -0
  215. package/dist/chunks/md-6023.js +1 -0
  216. package/dist/chunks/md-6033.js +1 -0
  217. package/dist/chunks/md-6122.js +1 -0
  218. package/dist/chunks/md-6269.js +1 -0
  219. package/dist/chunks/md-634.js +1 -0
  220. package/dist/chunks/md-6384.js +1 -0
  221. package/dist/chunks/md-6414.js +1 -0
  222. package/dist/chunks/md-6427.js +1 -0
  223. package/dist/chunks/md-6478.js +1 -0
  224. package/dist/chunks/md-6503.js +1 -0
  225. package/dist/chunks/md-6571.js +1 -0
  226. package/dist/chunks/md-6617.js +1 -0
  227. package/dist/chunks/md-6685.js +1 -0
  228. package/dist/chunks/md-6722.js +1 -0
  229. package/dist/chunks/md-6756.js +1 -0
  230. package/dist/chunks/md-6809.js +1 -0
  231. package/dist/chunks/md-6891.js +1 -0
  232. package/dist/chunks/md-7003.js +1 -0
  233. package/dist/chunks/md-7005.js +1 -0
  234. package/dist/chunks/md-7015.js +1 -0
  235. package/dist/chunks/md-7040.js +1 -0
  236. package/dist/chunks/md-7044.js +1 -0
  237. package/dist/chunks/md-7053.js +1 -0
  238. package/dist/chunks/md-7186.js +1 -0
  239. package/dist/chunks/md-7192.js +1 -0
  240. package/dist/chunks/md-7204.js +1 -0
  241. package/dist/chunks/md-7220.js +1 -0
  242. package/dist/chunks/md-7246.js +1 -0
  243. package/dist/chunks/md-7285.js +1 -0
  244. package/dist/chunks/md-7292.js +1 -0
  245. package/dist/chunks/md-736.js +1 -0
  246. package/dist/chunks/md-7492.js +1 -0
  247. package/dist/chunks/md-7522.js +1 -0
  248. package/dist/chunks/md-7533.js +1 -0
  249. package/dist/chunks/md-7556.js +1 -0
  250. package/dist/chunks/md-7601.js +1 -0
  251. package/dist/chunks/md-7909.js +1 -0
  252. package/dist/chunks/md-7918.js +1 -0
  253. package/dist/chunks/md-7939.js +1 -0
  254. package/dist/chunks/md-8100.js +1 -0
  255. package/dist/chunks/md-8103.js +1 -0
  256. package/dist/chunks/md-8126.js +1 -0
  257. package/dist/chunks/md-8130.js +1 -0
  258. package/dist/chunks/md-8186.js +1 -0
  259. package/dist/chunks/md-8199.js +1 -0
  260. package/dist/chunks/md-8206.js +1 -0
  261. package/dist/chunks/md-8254.js +1 -0
  262. package/dist/chunks/md-8327.js +1 -0
  263. package/dist/chunks/md-8333.js +1 -0
  264. package/dist/chunks/md-8385.js +1 -0
  265. package/dist/chunks/md-8425.js +1 -0
  266. package/dist/chunks/md-8451.js +1 -0
  267. package/dist/chunks/md-8454.js +1 -0
  268. package/dist/chunks/md-8514.js +1 -0
  269. package/dist/chunks/md-8557.js +1 -0
  270. package/dist/chunks/md-8670.js +1 -0
  271. package/dist/chunks/md-8713.js +1 -0
  272. package/dist/chunks/md-8811.js +1 -0
  273. package/dist/chunks/md-8891.js +1 -0
  274. package/dist/chunks/md-9040.js +1 -0
  275. package/dist/chunks/md-9081.js +1 -0
  276. package/dist/chunks/md-9104.js +1 -0
  277. package/dist/chunks/md-9115.js +1 -0
  278. package/dist/chunks/md-9129.js +1 -0
  279. package/dist/chunks/md-9139.js +1 -0
  280. package/dist/chunks/md-9156.js +1 -0
  281. package/dist/chunks/md-9277.js +1 -0
  282. package/dist/chunks/md-9350.js +1 -0
  283. package/dist/chunks/md-9387.js +1 -0
  284. package/dist/chunks/md-9405.js +1 -0
  285. package/dist/chunks/md-9407.js +1 -0
  286. package/dist/chunks/md-9412.js +1 -0
  287. package/dist/chunks/md-9428.js +1 -0
  288. package/dist/chunks/md-9433.js +1 -0
  289. package/dist/chunks/md-945.js +1 -0
  290. package/dist/chunks/md-9497.js +1 -0
  291. package/dist/chunks/md-9559.js +1 -0
  292. package/dist/chunks/md-959.js +1 -0
  293. package/dist/chunks/md-9614.js +1 -0
  294. package/dist/chunks/md-9688.js +1 -0
  295. package/dist/chunks/md-9689.js +1 -0
  296. package/dist/chunks/md-9721.js +1 -0
  297. package/dist/chunks/md-9789.js +1 -0
  298. package/dist/chunks/md-9927.js +1 -0
  299. package/dist/chunks/md-9934.js +1 -0
  300. package/dist/chunks/md-9975.js +1 -0
  301. package/dist/chunks/md-9980.js +1 -0
  302. package/dist/comp/md-accordion-entry.js +5 -1
  303. package/dist/comp/md-accordion-item-entry.js +38 -1
  304. package/dist/comp/md-accordion-item.js +1 -15
  305. package/dist/comp/md-accordion.js +1 -11
  306. package/dist/comp/md-activity-button-entry.js +13 -1
  307. package/dist/comp/md-activity-button.js +1 -9
  308. package/dist/comp/md-advance-list-entry.js +35 -1
  309. package/dist/comp/md-advance-list.js +1 -7
  310. package/dist/comp/md-alert-banner-entry.js +36 -1
  311. package/dist/comp/md-alert-banner.js +1 -9
  312. package/dist/comp/md-alert-entry.js +156 -1
  313. package/dist/comp/md-alert.js +1 -10
  314. package/dist/comp/md-audio-player-entry.js +98 -1
  315. package/dist/comp/md-audio-player.js +1 -17
  316. package/dist/comp/md-avatar-entry.js +44 -1
  317. package/dist/comp/md-avatar.js +1 -11
  318. package/dist/comp/md-badge-entry.js +33 -1
  319. package/dist/comp/md-badge.js +1 -4
  320. package/dist/comp/md-breadcrumb-entry.js +11 -1
  321. package/dist/comp/md-breadcrumb.js +1 -4
  322. package/dist/comp/md-button-entry.js +77 -1
  323. package/dist/comp/md-button-group-entry.js +5 -1
  324. package/dist/comp/md-button-group.js +1 -10
  325. package/dist/comp/md-button.js +1 -6
  326. package/dist/comp/md-card-ai-entry.js +77 -1
  327. package/dist/comp/md-card-ai.js +1 -9
  328. package/dist/comp/md-card-entry.js +98 -1
  329. package/dist/comp/md-card.js +1 -23
  330. package/dist/comp/md-chat-message-entry.js +28 -1
  331. package/dist/comp/md-chat-message.js +1 -12
  332. package/dist/comp/md-checkbox-entry.js +14 -1
  333. package/dist/comp/md-checkbox.js +1 -11
  334. package/dist/comp/md-checkboxgroup-entry.js +5 -1
  335. package/dist/comp/md-checkboxgroup.js +1 -11
  336. package/dist/comp/md-chip-entry.js +71 -1
  337. package/dist/comp/md-chip.js +1 -14
  338. package/dist/comp/md-coachmark-entry.js +22 -1
  339. package/dist/comp/md-coachmark-popover-entry.js +72 -1
  340. package/dist/comp/md-coachmark-popover.js +1 -15
  341. package/dist/comp/md-coachmark.js +1 -13
  342. package/dist/comp/md-combobox-entry.js +218 -1
  343. package/dist/comp/md-combobox.js +1 -17
  344. package/dist/comp/md-composite-avatar-entry.js +5 -1
  345. package/dist/comp/md-composite-avatar.js +1 -5
  346. package/dist/comp/md-date-range-picker-entry.js +1 -1
  347. package/dist/comp/md-date-range-picker.js +1 -26
  348. package/dist/comp/md-date-time-picker-entry.js +24 -1
  349. package/dist/comp/md-date-time-picker.js +1 -19
  350. package/dist/comp/md-datepicker-calendar-entry.js +47 -1
  351. package/dist/comp/md-datepicker-calendar.js +1 -14
  352. package/dist/comp/md-datepicker-day-entry.js +17 -1
  353. package/dist/comp/md-datepicker-day.js +1 -9
  354. package/dist/comp/md-datepicker-entry.js +45 -1
  355. package/dist/comp/md-datepicker-month-entry.js +8 -1
  356. package/dist/comp/md-datepicker-month.js +1 -11
  357. package/dist/comp/md-datepicker-week-entry.js +8 -1
  358. package/dist/comp/md-datepicker-week.js +1 -10
  359. package/dist/comp/md-datepicker.js +1 -25
  360. package/dist/comp/md-draggable-entry.js +5 -1
  361. package/dist/comp/md-draggable-item-entry.js +11 -1
  362. package/dist/comp/md-draggable-item.js +1 -11
  363. package/dist/comp/md-draggable.js +1 -12
  364. package/dist/comp/md-dropdown-entry.js +138 -1
  365. package/dist/comp/md-dropdown.js +1 -15
  366. package/dist/comp/md-editable-field-entry.js +153 -1
  367. package/dist/comp/md-editable-field.js +1 -15
  368. package/dist/comp/md-favorite-entry.js +23 -1
  369. package/dist/comp/md-favorite.js +1 -14
  370. package/dist/comp/md-floating-minimize-entry.js +30 -1
  371. package/dist/comp/md-floating-minimize.js +1 -15
  372. package/dist/comp/md-floating-modal-entry.js +99 -1
  373. package/dist/comp/md-floating-modal.js +1 -16
  374. package/dist/comp/md-form-entry.js +19 -1
  375. package/dist/comp/md-form.js +1 -9
  376. package/dist/comp/md-grabber-entry.js +22 -1
  377. package/dist/comp/md-grabber.js +1 -15
  378. package/dist/comp/md-help-text-entry.js +11 -1
  379. package/dist/comp/md-help-text.js +1 -4
  380. package/dist/comp/md-icon-entry.js +26 -1
  381. package/dist/comp/md-icon.js +1 -8
  382. package/dist/comp/md-inpu.js +1 -12
  383. package/dist/comp/md-input-entry.js +124 -1
  384. package/dist/comp/md-input-file.js +17 -1
  385. package/dist/comp/md-input.js +1 -13
  386. package/dist/comp/md-label-entry.js +9 -1
  387. package/dist/comp/md-label.js +1 -4
  388. package/dist/comp/md-link-entry.js +36 -1
  389. package/dist/comp/md-link.js +1 -4
  390. package/dist/comp/md-list-entry.js +5 -1
  391. package/dist/comp/md-list-item-entry.js +5 -1
  392. package/dist/comp/md-list-item.js +1 -11
  393. package/dist/comp/md-list.js +1 -11
  394. package/dist/comp/md-loading-entry.js +7 -1
  395. package/dist/comp/md-loading.js +1 -4
  396. package/dist/comp/md-meeting-alert-entry.js +55 -1
  397. package/dist/comp/md-meeting-alert.js +1 -12
  398. package/dist/comp/md-menu-entry.js +7 -1
  399. package/dist/comp/md-menu-item-entry.js +16 -1
  400. package/dist/comp/md-menu-item.js +1 -4
  401. package/dist/comp/md-menu-overlay-entry.js +26 -1
  402. package/dist/comp/md-menu-overlay.js +1 -9
  403. package/dist/comp/md-menu.js +1 -8
  404. package/dist/comp/md-modal-entry.js +73 -1
  405. package/dist/comp/md-modal.js +1 -15
  406. package/dist/comp/md-pagination-entry.js +78 -1
  407. package/dist/comp/md-pagination.js +1 -9
  408. package/dist/comp/md-phone-input-entry.js +71 -1
  409. package/dist/comp/md-phone-input.js +1 -20
  410. package/dist/comp/md-popover-entry.js +26 -1
  411. package/dist/comp/md-popover.js +1 -14
  412. package/dist/comp/md-progress-bar-entry.js +21 -1
  413. package/dist/comp/md-progress-bar.js +1 -4
  414. package/dist/comp/md-radio-entry.js +17 -1
  415. package/dist/comp/md-radio.js +1 -11
  416. package/dist/comp/md-radiogroup-entry.js +5 -1
  417. package/dist/comp/md-radiogroup.js +1 -11
  418. package/dist/comp/md-slider-entry.js +19 -1
  419. package/dist/comp/md-slider.js +1 -10
  420. package/dist/comp/md-spinner-entry.js +1 -1
  421. package/dist/comp/md-spinner.js +1 -4
  422. package/dist/comp/md-tab-entry.js +27 -1
  423. package/dist/comp/md-tab-panel-entry.js +1 -1
  424. package/dist/comp/md-tab-panel.js +1 -11
  425. package/dist/comp/md-tab.js +1 -11
  426. package/dist/comp/md-table-advanced-entry.js +168 -1
  427. package/dist/comp/md-table-advanced.js +1 -15
  428. package/dist/comp/md-table-entry.js +43 -1
  429. package/dist/comp/md-table.js +1 -9
  430. package/dist/comp/md-tabs-entry.js +129 -1
  431. package/dist/comp/md-tabs.js +1 -22
  432. package/dist/comp/md-task-item-entry.js +114 -1
  433. package/dist/comp/md-task-item.js +1 -10
  434. package/dist/comp/md-theme-entry.js +12 -1
  435. package/dist/comp/md-theme.js +1 -4
  436. package/dist/comp/md-timepicker-entry.js +45 -1
  437. package/dist/comp/md-timepicker.js +1 -22
  438. package/dist/comp/md-toggle-switch-entry.js +34 -1
  439. package/dist/comp/md-toggle-switch.js +1 -11
  440. package/dist/comp/md-tooltip-entry.js +23 -1
  441. package/dist/comp/md-tooltip.js +1 -12
  442. package/dist/index-entry.js +2615 -2
  443. package/dist/index.js +1 -94
  444. package/dist/managers/thememanager-entry.js +1 -1
  445. package/dist/managers/thememanager.js +1 -2
  446. package/dist/types/components/accordion/Accordion.d.ts +2 -2
  447. package/dist/types/components/card-ai/CardAi.d.ts +2 -0
  448. package/dist/types/components/date-range-picker/DateRangePicker.d.ts +3 -4
  449. package/dist/types/components/date-time-picker/DateTimePicker.d.ts +6 -7
  450. package/dist/types/components/datepicker/DatePicker.d.ts +1 -1
  451. package/dist/types/components/datepicker/datepicker-calendar/DatePickerCalendar.d.ts +3 -1
  452. package/dist/types/components/datepicker/datepicker-day/DatePickerDay.d.ts +1 -1
  453. package/dist/types/components/input/Input.d.ts +1 -0
  454. package/dist/types/components/timepicker/TimePicker.d.ts +1 -2
  455. package/dist/types/utils/dateUtils.d.ts +19 -4
  456. package/package.json +6 -6
  457. package/dist/chunks/md-0.js +0 -1
  458. package/dist/chunks/md-1.js +0 -1
  459. package/dist/chunks/md-10.js +0 -1
  460. package/dist/chunks/md-100.js +0 -1
  461. package/dist/chunks/md-101.js +0 -1
  462. package/dist/chunks/md-102.js +0 -1
  463. package/dist/chunks/md-103.js +0 -1
  464. package/dist/chunks/md-104.js +0 -1
  465. package/dist/chunks/md-105.js +0 -1
  466. package/dist/chunks/md-106.js +0 -1
  467. package/dist/chunks/md-107.js +0 -1
  468. package/dist/chunks/md-109.js +0 -1
  469. package/dist/chunks/md-11.js +0 -1
  470. package/dist/chunks/md-110.js +0 -1
  471. package/dist/chunks/md-111.js +0 -1
  472. package/dist/chunks/md-112.js +0 -1
  473. package/dist/chunks/md-113.js +0 -1
  474. package/dist/chunks/md-114.js +0 -1
  475. package/dist/chunks/md-115.js +0 -1
  476. package/dist/chunks/md-116.js +0 -1
  477. package/dist/chunks/md-117.js +0 -1
  478. package/dist/chunks/md-118.js +0 -1
  479. package/dist/chunks/md-119.js +0 -1
  480. package/dist/chunks/md-12.js +0 -1
  481. package/dist/chunks/md-120.js +0 -1
  482. package/dist/chunks/md-121.js +0 -1
  483. package/dist/chunks/md-122.js +0 -1
  484. package/dist/chunks/md-123.js +0 -1
  485. package/dist/chunks/md-124.js +0 -1
  486. package/dist/chunks/md-125.js +0 -1
  487. package/dist/chunks/md-126.js +0 -1
  488. package/dist/chunks/md-127.js +0 -1
  489. package/dist/chunks/md-128.js +0 -1
  490. package/dist/chunks/md-129.js +0 -1
  491. package/dist/chunks/md-13.js +0 -1
  492. package/dist/chunks/md-130.js +0 -1
  493. package/dist/chunks/md-131.js +0 -1
  494. package/dist/chunks/md-132.js +0 -1
  495. package/dist/chunks/md-133.js +0 -1
  496. package/dist/chunks/md-134.js +0 -1
  497. package/dist/chunks/md-135.js +0 -1
  498. package/dist/chunks/md-136.js +0 -1
  499. package/dist/chunks/md-137.js +0 -1
  500. package/dist/chunks/md-138.js +0 -1
  501. package/dist/chunks/md-139.js +0 -1
  502. package/dist/chunks/md-14.js +0 -11
  503. package/dist/chunks/md-140.js +0 -1
  504. package/dist/chunks/md-141.js +0 -1
  505. package/dist/chunks/md-142.js +0 -1
  506. package/dist/chunks/md-143.js +0 -1
  507. package/dist/chunks/md-144.js +0 -1
  508. package/dist/chunks/md-145.js +0 -1
  509. package/dist/chunks/md-146.js +0 -1
  510. package/dist/chunks/md-147.js +0 -1
  511. package/dist/chunks/md-148.js +0 -1
  512. package/dist/chunks/md-149.js +0 -1
  513. package/dist/chunks/md-15.js +0 -9
  514. package/dist/chunks/md-150.js +0 -1
  515. package/dist/chunks/md-151.js +0 -1
  516. package/dist/chunks/md-152.js +0 -1
  517. package/dist/chunks/md-153.js +0 -1
  518. package/dist/chunks/md-154.js +0 -1
  519. package/dist/chunks/md-155.js +0 -1
  520. package/dist/chunks/md-156.js +0 -1
  521. package/dist/chunks/md-157.js +0 -1
  522. package/dist/chunks/md-158.js +0 -1
  523. package/dist/chunks/md-159.js +0 -1
  524. package/dist/chunks/md-16.js +0 -1
  525. package/dist/chunks/md-160.js +0 -1
  526. package/dist/chunks/md-161.js +0 -1
  527. package/dist/chunks/md-162.js +0 -1
  528. package/dist/chunks/md-163.js +0 -1
  529. package/dist/chunks/md-164.js +0 -1
  530. package/dist/chunks/md-165.js +0 -1
  531. package/dist/chunks/md-166.js +0 -1
  532. package/dist/chunks/md-167.js +0 -1
  533. package/dist/chunks/md-168.js +0 -1
  534. package/dist/chunks/md-169.js +0 -1
  535. package/dist/chunks/md-17.js +0 -26
  536. package/dist/chunks/md-170.js +0 -1
  537. package/dist/chunks/md-171.js +0 -1
  538. package/dist/chunks/md-172.js +0 -1
  539. package/dist/chunks/md-173.js +0 -1
  540. package/dist/chunks/md-174.js +0 -1
  541. package/dist/chunks/md-175.js +0 -1
  542. package/dist/chunks/md-176.js +0 -1
  543. package/dist/chunks/md-177.js +0 -1
  544. package/dist/chunks/md-178.js +0 -1
  545. package/dist/chunks/md-179.js +0 -1
  546. package/dist/chunks/md-18.js +0 -124
  547. package/dist/chunks/md-180.js +0 -1
  548. package/dist/chunks/md-182.js +0 -1
  549. package/dist/chunks/md-183.js +0 -1
  550. package/dist/chunks/md-184.js +0 -1
  551. package/dist/chunks/md-185.js +0 -1
  552. package/dist/chunks/md-186.js +0 -1
  553. package/dist/chunks/md-187.js +0 -1
  554. package/dist/chunks/md-188.js +0 -1
  555. package/dist/chunks/md-189.js +0 -1
  556. package/dist/chunks/md-19.js +0 -1
  557. package/dist/chunks/md-190.js +0 -1
  558. package/dist/chunks/md-191.js +0 -1
  559. package/dist/chunks/md-192.js +0 -1
  560. package/dist/chunks/md-193.js +0 -1
  561. package/dist/chunks/md-194.js +0 -1
  562. package/dist/chunks/md-195.js +0 -1
  563. package/dist/chunks/md-196.js +0 -1
  564. package/dist/chunks/md-197.js +0 -1
  565. package/dist/chunks/md-198.js +0 -1
  566. package/dist/chunks/md-199.js +0 -1
  567. package/dist/chunks/md-20.js +0 -17
  568. package/dist/chunks/md-200.js +0 -1
  569. package/dist/chunks/md-201.js +0 -1
  570. package/dist/chunks/md-202.js +0 -1
  571. package/dist/chunks/md-203.js +0 -1
  572. package/dist/chunks/md-204.js +0 -1
  573. package/dist/chunks/md-205.js +0 -1
  574. package/dist/chunks/md-206.js +0 -1
  575. package/dist/chunks/md-207.js +0 -1
  576. package/dist/chunks/md-208.js +0 -1
  577. package/dist/chunks/md-209.js +0 -1
  578. package/dist/chunks/md-21.js +0 -23
  579. package/dist/chunks/md-210.js +0 -1
  580. package/dist/chunks/md-211.js +0 -1
  581. package/dist/chunks/md-212.js +0 -1
  582. package/dist/chunks/md-213.js +0 -1
  583. package/dist/chunks/md-214.js +0 -1
  584. package/dist/chunks/md-215.js +0 -1
  585. package/dist/chunks/md-216.js +0 -1
  586. package/dist/chunks/md-217.js +0 -1
  587. package/dist/chunks/md-218.js +0 -1
  588. package/dist/chunks/md-219.js +0 -1
  589. package/dist/chunks/md-22.js +0 -8
  590. package/dist/chunks/md-220.js +0 -1
  591. package/dist/chunks/md-221.js +0 -1
  592. package/dist/chunks/md-222.js +0 -1
  593. package/dist/chunks/md-223.js +0 -1
  594. package/dist/chunks/md-224.js +0 -1
  595. package/dist/chunks/md-225.js +0 -1
  596. package/dist/chunks/md-226.js +0 -1
  597. package/dist/chunks/md-227.js +0 -1
  598. package/dist/chunks/md-228.js +0 -1
  599. package/dist/chunks/md-229.js +0 -1
  600. package/dist/chunks/md-23.js +0 -1
  601. package/dist/chunks/md-230.js +0 -1
  602. package/dist/chunks/md-231.js +0 -1
  603. package/dist/chunks/md-232.js +0 -1
  604. package/dist/chunks/md-233.js +0 -1
  605. package/dist/chunks/md-234.js +0 -1
  606. package/dist/chunks/md-235.js +0 -1
  607. package/dist/chunks/md-236.js +0 -1
  608. package/dist/chunks/md-237.js +0 -1
  609. package/dist/chunks/md-238.js +0 -1
  610. package/dist/chunks/md-239.js +0 -1
  611. package/dist/chunks/md-24.js +0 -1
  612. package/dist/chunks/md-240.js +0 -1
  613. package/dist/chunks/md-241.js +0 -1
  614. package/dist/chunks/md-242.js +0 -1
  615. package/dist/chunks/md-243.js +0 -1
  616. package/dist/chunks/md-244.js +0 -1
  617. package/dist/chunks/md-245.js +0 -1
  618. package/dist/chunks/md-246.js +0 -1
  619. package/dist/chunks/md-247.js +0 -1
  620. package/dist/chunks/md-248.js +0 -1
  621. package/dist/chunks/md-249.js +0 -1
  622. package/dist/chunks/md-25.js +0 -7
  623. package/dist/chunks/md-250.js +0 -1
  624. package/dist/chunks/md-251.js +0 -1
  625. package/dist/chunks/md-252.js +0 -1
  626. package/dist/chunks/md-253.js +0 -1
  627. package/dist/chunks/md-254.js +0 -1
  628. package/dist/chunks/md-255.js +0 -1
  629. package/dist/chunks/md-256.js +0 -1
  630. package/dist/chunks/md-257.js +0 -1
  631. package/dist/chunks/md-259.js +0 -1
  632. package/dist/chunks/md-26.js +0 -8
  633. package/dist/chunks/md-260.js +0 -1
  634. package/dist/chunks/md-261.js +0 -1
  635. package/dist/chunks/md-262.js +0 -1
  636. package/dist/chunks/md-263.js +0 -1
  637. package/dist/chunks/md-264.js +0 -1
  638. package/dist/chunks/md-265.js +0 -1
  639. package/dist/chunks/md-266.js +0 -1
  640. package/dist/chunks/md-267.js +0 -1
  641. package/dist/chunks/md-268.js +0 -1
  642. package/dist/chunks/md-269.js +0 -1
  643. package/dist/chunks/md-27.js +0 -1
  644. package/dist/chunks/md-270.js +0 -1
  645. package/dist/chunks/md-271.js +0 -1
  646. package/dist/chunks/md-272.js +0 -1
  647. package/dist/chunks/md-273.js +0 -1
  648. package/dist/chunks/md-274.js +0 -1
  649. package/dist/chunks/md-275.js +0 -1
  650. package/dist/chunks/md-276.js +0 -1
  651. package/dist/chunks/md-277.js +0 -1
  652. package/dist/chunks/md-278.js +0 -1
  653. package/dist/chunks/md-28.js +0 -1
  654. package/dist/chunks/md-280.js +0 -1
  655. package/dist/chunks/md-281.js +0 -1
  656. package/dist/chunks/md-282.js +0 -1
  657. package/dist/chunks/md-283.js +0 -1
  658. package/dist/chunks/md-29.js +0 -55
  659. package/dist/chunks/md-3.js +0 -1
  660. package/dist/chunks/md-30.js +0 -1
  661. package/dist/chunks/md-31.js +0 -216
  662. package/dist/chunks/md-32.js +0 -49
  663. package/dist/chunks/md-33.js +0 -1
  664. package/dist/chunks/md-34.js +0 -1
  665. package/dist/chunks/md-35.js +0 -36
  666. package/dist/chunks/md-36.js +0 -33
  667. package/dist/chunks/md-37.js +0 -23
  668. package/dist/chunks/md-38.js +0 -5
  669. package/dist/chunks/md-39.js +0 -5
  670. package/dist/chunks/md-4.js +0 -1
  671. package/dist/chunks/md-40.js +0 -1
  672. package/dist/chunks/md-41.js +0 -21
  673. package/dist/chunks/md-42.js +0 -26
  674. package/dist/chunks/md-43.js +0 -44
  675. package/dist/chunks/md-44.js +0 -1
  676. package/dist/chunks/md-45.js +0 -30
  677. package/dist/chunks/md-46.js +0 -16
  678. package/dist/chunks/md-47.js +0 -1
  679. package/dist/chunks/md-48.js +0 -27
  680. package/dist/chunks/md-49.js +0 -5
  681. package/dist/chunks/md-5.js +0 -1
  682. package/dist/chunks/md-50.js +0 -38
  683. package/dist/chunks/md-51.js +0 -13
  684. package/dist/chunks/md-52.js +0 -35
  685. package/dist/chunks/md-53.js +0 -36
  686. package/dist/chunks/md-54.js +0 -121
  687. package/dist/chunks/md-55.js +0 -98
  688. package/dist/chunks/md-56.js +0 -11
  689. package/dist/chunks/md-57.js +0 -5
  690. package/dist/chunks/md-58.js +0 -77
  691. package/dist/chunks/md-59.js +0 -68
  692. package/dist/chunks/md-6.js +0 -1
  693. package/dist/chunks/md-60.js +0 -28
  694. package/dist/chunks/md-61.js +0 -14
  695. package/dist/chunks/md-62.js +0 -5
  696. package/dist/chunks/md-63.js +0 -51
  697. package/dist/chunks/md-64.js +0 -22
  698. package/dist/chunks/md-65.js +0 -47
  699. package/dist/chunks/md-66.js +0 -5
  700. package/dist/chunks/md-67.js +0 -1
  701. package/dist/chunks/md-68.js +0 -23
  702. package/dist/chunks/md-69.js +0 -5
  703. package/dist/chunks/md-7.js +0 -77
  704. package/dist/chunks/md-70.js +0 -11
  705. package/dist/chunks/md-71.js +0 -138
  706. package/dist/chunks/md-72.js +0 -30
  707. package/dist/chunks/md-73.js +0 -70
  708. package/dist/chunks/md-74.js +0 -19
  709. package/dist/chunks/md-75.js +0 -22
  710. package/dist/chunks/md-76.js +0 -17
  711. package/dist/chunks/md-77.js +0 -76
  712. package/dist/chunks/md-78.js +0 -7
  713. package/dist/chunks/md-79.js +0 -73
  714. package/dist/chunks/md-8.js +0 -1
  715. package/dist/chunks/md-80.js +0 -78
  716. package/dist/chunks/md-81.js +0 -71
  717. package/dist/chunks/md-82.js +0 -17
  718. package/dist/chunks/md-83.js +0 -5
  719. package/dist/chunks/md-84.js +0 -19
  720. package/dist/chunks/md-85.js +0 -1
  721. package/dist/chunks/md-86.js +0 -168
  722. package/dist/chunks/md-87.js +0 -43
  723. package/dist/chunks/md-88.js +0 -103
  724. package/dist/chunks/md-89.js +0 -82
  725. package/dist/chunks/md-9.js +0 -26
  726. package/dist/chunks/md-90.js +0 -12
  727. package/dist/chunks/md-91.js +0 -43
  728. package/dist/chunks/md-92.js +0 -34
  729. package/dist/chunks/md-93.js +0 -1
  730. package/dist/chunks/md-94.js +0 -1
  731. package/dist/chunks/md-95.js +0 -1
  732. package/dist/chunks/md-96.js +0 -1
  733. package/dist/chunks/md-97.js +0 -1
  734. package/dist/chunks/md-98.js +0 -1
  735. package/dist/chunks/md-99.js +0 -1
@@ -1,73 +0,0 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[79],{128:function(d,e,o){"use strict";o.r(e),o.d(e,"modalType",(function(){return p})),o.d(e,"modalAlignment",(function(){return g})),o.d(e,"Modal",(function(){return u}));o(17),o(14);var a=o(1),m=o(31),t=o(7),l=o(5),i=o(6),n=o(0),r=o(2),s=o(4),h=o(3),c=n.css`.md-modal{color:var(--md-primary-text-color,#121212);display:block;height:100vh;left:0;margin:0 auto;position:fixed;right:0;visibility:visible;width:100vw;width:100vw;max-height:none;top:auto;--md-modal-text-align:center;--md-modal-justify-content:center}.md-modal .md-modal__content{height:auto;min-height:0;max-height:none}.md-modal .md-modal__content{border-radius:var(--modal-main-radius,.5rem)}.md-modal .md-modal__title{color:var(--md-primary-text-color)}.md-modal--leading{--md-modal-text-align:left;--md-modal-justify-content:flex-start}.md-modal:focus{box-shadow:none}.md-modal__header{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:1rem;line-height:1.5rem;width:100%;flex-shrink:0;padding-bottom:1rem;padding-left:var(--modal-section-h-padding);padding-right:var(--modal-section-h-padding);align-items:var(--md-modal-justify-content)}.md-modal__header h2{font-size:inherit;font-weight:var(--brand-font-weight-bold,inherit);line-height:inherit;margin:0}.md-modal__header .md-modal__title{overflow:hidden;text-align:var(--md-modal-text-align);text-overflow:ellipsis;white-space:nowrap;width:100%}.md-modal__header .md-modal__message{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:.875rem;line-height:1.5rem;width:100%;color:var(--modal-main-text-color);flex-flow:row wrap;justify-content:var(--md-modal-justify-content);text-align:var(--md-modal-text-align)}.md-modal .md-modal__close{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;border:0;position:absolute;height:auto;right:1rem;top:auto;width:auto}.md-modal .md-modal__close::before{font-size:inherit}.md-modal__content{background-color:var(--modal-main-bg-color,#fff);box-shadow:0 8px 16px 0 rgba(0,0,0,.16);border:1px solid var(--modal-main-border-color,#dedede);display:flex;flex-direction:column}.md-modal__flex-container{display:flex;flex:1 1 0%;flex-direction:column;max-height:inherit;min-height:inherit;padding:var(--modal-main-padding,1.5rem 1rem);width:100%}.md-modal__body{align-items:stretch;align-self:stretch;background:var(--modal-main-bg-color);display:flex;flex:1 1 auto;flex-direction:column;margin:0;overflow-x:hidden;overflow-y:auto;padding-left:var(--modal-section-h-padding);padding-right:var(--modal-section-h-padding)}.md-modal__body--padding{padding:0 2rem}.md-modal__footer{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:flex-end;flex-shrink:0;padding-left:var(--modal-section-h-padding);padding-right:var(--modal-section-h-padding);padding-top:1rem;width:100%}.md-modal__footer md-button:not(:first-of-type){margin-left:.75rem}.md-modal__footer ::slotted(md-button){margin-left:.75rem}.md-modal.md-modal--full{width:100vw;max-height:none;top:auto}.md-modal.md-modal--full .md-modal__content{height:100vh;min-height:0;max-height:none}.md-modal.md-modal--full .md-modal__content{border-radius:0}.md-modal.md-modal--full .md-modal__header{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:2.25rem;line-height:3rem;width:100%}.md-modal.md-modal--full .md-modal__header .md-modal__message{font-size:1.25rem;line-height:2rem;padding-top:1.25rem}.md-modal.md-modal--full .md-modal__footer{padding-bottom:1.5rem;padding-top:1.5rem}.md-modal.md-modal--large{width:60rem;max-height:none;top:auto}.md-modal.md-modal--large .md-modal__content{min-height:15rem;height:45rem;max-height:none}.md-modal.md-modal--large .md-modal__content{border-radius:var(--modal-main-radius,.5rem)}.md-modal.md-modal--large .md-modal__header{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:var(--font-size-heading-small,1.625rem);line-height:var(--font-lineheight-heading-small,2rem);width:100%}.md-modal.md-modal--large .md-modal__header .md-modal__message{font-size:1rem;line-height:1.5rem;text-align:var(--md-modal-text-align)}@media only screen and (min-width:40.0625em)and (max-width:64em){.md-modal.md-modal--large{width:40rem;max-height:none;top:auto}.md-modal.md-modal--large .md-modal__content{min-height:15rem;height:45rem;max-height:none}.md-modal.md-modal--large .md-modal__header{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:1rem;line-height:1.5rem;width:100%}.md-modal.md-modal--large .md-modal__header .md-modal__message{font-size:.875rem;line-height:1.5rem;text-align:center}}.md-modal.md-modal--default,.md-modal.md-modal--medium{width:40rem;max-height:none;top:auto}.md-modal.md-modal--default .md-modal__content,.md-modal.md-modal--medium .md-modal__content{min-height:30rem;height:auto;max-height:none}@media only screen and (min-width:40.0625em)and (max-width:64em){.md-modal.md-modal--default,.md-modal.md-modal--medium{width:40rem;max-height:none;top:auto}.md-modal.md-modal--default .md-modal__content,.md-modal.md-modal--medium .md-modal__content{min-height:30rem;height:auto;max-height:none}}@media only screen and (max-height:50em){.md-modal.md-modal--default .md-modal__content,.md-modal.md-modal--medium .md-modal__content{min-height:auto}}.md-modal.md-modal--small{width:27.5rem;max-height:none;top:auto}.md-modal.md-modal--small .md-modal__content{min-height:23.75rem;height:auto;max-height:none}@media only screen and (min-width:40.0625em)and (max-width:64em){.md-modal.md-modal--small{width:27.5rem;max-height:none;top:auto}.md-modal.md-modal--small .md-modal__content{min-height:23.75rem;height:auto;max-height:none}}.md-modal.md-modal--dialog{width:27.5rem;max-height:none;top:auto}.md-modal.md-modal--dialog .md-modal__content{height:auto;min-height:0;max-height:none}.md-modal.md-modal--dialog .md-modal__content{border-radius:var(--modal-main-radius,.5rem)}.md-modal.md-modal--dialog .md-modal__content{flex-direction:row}.md-modal.md-modal--dialog .md-modal__content .md-modal__header{align-items:flex-start;padding:0 0 .75rem 0}.md-modal.md-modal--dialog .md-modal__content .md-modal__title{font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-weight:var(--brand-font-weight-bold,inherit);font-size:16px;line-height:1.5rem}.md-modal.md-modal--dialog .md-modal__content .md-modal__body{margin-bottom:1.5rem;text-align:left}.md-modal.md-modal--dialog .md-modal__content .md-modal__body>*{font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:14px;line-height:1.375rem}.md-modal.md-modal--dialog .md-modal__content .md-modal__footer{display:flex;justify-content:flex-end;padding:0}.md-modal.md-modal--default,.md-modal.md-modal--dialog,.md-modal.md-modal--full,.md-modal.md-modal--large,.md-modal.md-modal--medium,.md-modal.md-modal--small{display:flex;flex-direction:column;justify-content:center}@media only screen and (max-width:40em){.md-modal.md-modal--default.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--dialog.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--full.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--large.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--medium.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--small.md-modal--dialog .md-modal__flex-container{min-height:calc(100vh - 1.5rem*2)}}@media only screen and (max-width:40em){.md-modal.md-modal--default,.md-modal.md-modal--dialog,.md-modal.md-modal--full,.md-modal.md-modal--large,.md-modal.md-modal--medium,.md-modal.md-modal--small{width:100vw;max-height:none;top:auto}.md-modal.md-modal--default .md-modal__content,.md-modal.md-modal--dialog .md-modal__content,.md-modal.md-modal--full .md-modal__content,.md-modal.md-modal--large .md-modal__content,.md-modal.md-modal--medium .md-modal__content,.md-modal.md-modal--small .md-modal__content{height:100vh;min-height:0;max-height:none}.md-modal.md-modal--default .md-modal__content,.md-modal.md-modal--dialog .md-modal__content,.md-modal.md-modal--full .md-modal__content,.md-modal.md-modal--large .md-modal__content,.md-modal.md-modal--medium .md-modal__content,.md-modal.md-modal--small .md-modal__content{border-radius:0}.md-modal.md-modal--default .md-modal__flex-container,.md-modal.md-modal--dialog .md-modal__flex-container,.md-modal.md-modal--full .md-modal__flex-container,.md-modal.md-modal--large .md-modal__flex-container,.md-modal.md-modal--medium .md-modal__flex-container,.md-modal.md-modal--small .md-modal__flex-container{min-height:100vh}.md-modal.md-modal--default .md-modal__header,.md-modal.md-modal--dialog .md-modal__header,.md-modal.md-modal--full .md-modal__header,.md-modal.md-modal--large .md-modal__header,.md-modal.md-modal--medium .md-modal__header,.md-modal.md-modal--small .md-modal__header{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:.875rem;line-height:1.5rem;width:100%}.md-modal.md-modal--default .md-modal__header .md-modal__message,.md-modal.md-modal--dialog .md-modal__header .md-modal__message,.md-modal.md-modal--full .md-modal__header .md-modal__message,.md-modal.md-modal--large .md-modal__header .md-modal__message,.md-modal.md-modal--medium .md-modal__header .md-modal__message,.md-modal.md-modal--small .md-modal__header .md-modal__message{font-size:.875rem;line-height:1.5rem;padding-top:.75rem}.md-modal.md-modal--default .md-modal__close,.md-modal.md-modal--dialog .md-modal__close,.md-modal.md-modal--full .md-modal__close,.md-modal.md-modal--large .md-modal__close,.md-modal.md-modal--medium .md-modal__close,.md-modal.md-modal--small .md-modal__close{height:auto;right:.75rem;top:auto;width:auto}.md-modal.md-modal--default .md-modal__close::before,.md-modal.md-modal--dialog .md-modal__close::before,.md-modal.md-modal--full .md-modal__close::before,.md-modal.md-modal--large .md-modal__close::before,.md-modal.md-modal--medium .md-modal__close::before,.md-modal.md-modal--small .md-modal__close::before{font-size:inherit}.md-modal.md-modal--default .md-modal__footer,.md-modal.md-modal--dialog .md-modal__footer,.md-modal.md-modal--full .md-modal__footer,.md-modal.md-modal--large .md-modal__footer,.md-modal.md-modal--medium .md-modal__footer,.md-modal.md-modal--small .md-modal__footer{padding:var(--modal-main-padding,1.5rem 1rem);padding-right:1.5rem}.md-modal.md-modal--default .md-modal__footer md-button:not(:first-of-type),.md-modal.md-modal--dialog .md-modal__footer md-button:not(:first-of-type),.md-modal.md-modal--full .md-modal__footer md-button:not(:first-of-type),.md-modal.md-modal--large .md-modal__footer md-button:not(:first-of-type),.md-modal.md-modal--medium .md-modal__footer md-button:not(:first-of-type),.md-modal.md-modal--small .md-modal__footer md-button:not(:first-of-type){margin-left:1rem}}.md-modal__backdrop{background:rgba(0,0,0,.45);bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:1040}.md-modal__backdrop .md-modal_overlay{bottom:0;position:absolute;top:0;width:100%}.md-close{float:right;text-shadow:0 1px 0 #fff}.md-close:focus,.md-close:hover{cursor:pointer;text-decoration:none}.fade{opacity:0;transition:opacity .15s linear}.fade.in{opacity:1}`,f=function(d,e,o,a){var m,t=arguments.length,l=t<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(d,e,o,a);else for(var i=d.length-1;i>=0;i--)(m=d[i])&&(l=(t<3?m(l):t>3?m(e,o,l):m(e,o))||l);return t>3&&l&&Object.defineProperty(e,o,l),l},_=function(d,e,o,a){return new(o||(o=Promise))((function(m,t){function l(d){try{n(a.next(d))}catch(d){t(d)}}function i(d){try{n(a.throw(d))}catch(d){t(d)}}function n(d){var e;d.done?m(d.value):(e=d.value,e instanceof o?e:new o((function(d){d(e)}))).then(l,i)}n((a=a.apply(d,e||[])).next())}))};const p=["default","full","large","small","dialog"],g=["leading","center"];var u;!function(d){let e=class extends(Object(t.b)(n.LitElement)){constructor(){super(...arguments),this.show=!1,this.headerLabel="",this.headerMessage="",this.htmlId="",this.ariaLabel="modal",this.ariaLabelClose="Close Modal",this.ariaLabelCancel="Cancel Modal",this.ariaLabelSubmit="Submit Modal",this.ariaDescription="",this.showCloseButton=!1,this.backdropClickExit=!1,this.noExitOnEsc=!1,this.size="default",this.closeBtnName="",this.hideFooter=!1,this.hideHeader=!1,this.disableInitialFocus=!1,this.alignment=void 0,this.animating=!1,this.handleCloseOutside=d=>{d.code===a.b.Escape&&(d.preventDefault(),this.show&&!this.noExitOnEsc&&(this.show=!1))}}static get styles(){return[i.a,c]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleCloseOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleCloseOutside)}update(d){super.update(d),d.has("show")&&(this.show?this.modalFadeIn():!0===d.get("show")&&this.modalFadeOut())}get computedAlignment(){return void 0===this.alignment?m.themeManager.isMomentumV2Enabled?"leading":"center":this.alignment}notifyModalClose(){this.dispatchEvent(new CustomEvent("close-modal",{composed:!0,bubbles:!0}))}focusInsideModal(){var d;(null===(d=this.focusableElements)||void 0===d?void 0:d.length)&&this.setInitialFocus()}handleKeyDown(d){d.code!==a.b.Enter&&d.code!==a.b.Space||this.show&&(this.show=!0)}transitionPromise(d){return new Promise(e=>{const o=()=>{d.removeEventListener("transitionend",o),this.activateFocusTrap(),this.setFocusableElements(),requestAnimationFrame(()=>{e()})},a=()=>{d.removeEventListener("transitioncancel",a),this.deactivateFocusTrap(),this.modalFadeOut(),e()};d.addEventListener("transitionend",o),d.addEventListener("transitioncancel",a),setTimeout(()=>{this.animating=!0},13)})}modalFadeIn(){return _(this,void 0,void 0,(function*(){this.backDrop&&(yield this.transitionPromise(this.backDrop),this.disableInitialFocus||this.focusInsideModal())}))}modalFadeOut(){this.animating=!1,this.deactivateFocusTrap(),this.notifyModalClose()}handleCloseBackdrop(){this.backdropClickExit&&(this.show=!1)}hideModal(){this.animating=!1,this.show=!1}topCloseBtnTemplate(){return n.html`
2
- ${this.showCloseButton?n.html`
3
- <md-button
4
- variant="ghost"
5
- size="20"
6
- circle
7
- class="md-close md-modal__close"
8
- @click="${this.hideModal}"
9
- @keydown="${this.handleKeyDown}"
10
- ariaLabel=${this.ariaLabelClose}
11
- >
12
- <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
13
- </md-button>
14
- `:r.nothing}
15
- `}handleFooterClick(){this.show=!1}headerTemplate(){return this.hideHeader?n.html`
16
- <div id="modal_header" part="modal-header" class="md-modal__header">
17
- <slot name="header"></slot>
18
- </div>
19
- `:n.html`
20
- <div id="modal_header" part="modal-header" class="md-modal__header">
21
- <h2 class="md-modal__title">${this.headerLabel}</h2>
22
- ${this.headerMessage?n.html` <span class="md-modal__message">${this.headerMessage}</span> `:r.nothing}
23
- </div>
24
- `}footerTemplate(){return this.hideFooter?n.html`
25
- <div part="modal-footer" class="md-modal__footer">
26
- <slot name="footer"></slot>
27
- </div>
28
- `:n.html`
29
- <div part="modal-footer" class="md-modal__footer">
30
- <md-button
31
- aria-label=${this.ariaLabelCancel}
32
- @click="${this.handleFooterClick}"
33
- @keydown="${this.handleKeyDown}"
34
- variant="secondary"
35
- >
36
- <span>Cancel</span>
37
- </md-button>
38
- <md-button
39
- type="submit"
40
- variant="primary"
41
- aria-label=${this.ariaLabelSubmit}
42
- @click="${this.handleFooterClick}"
43
- @keydown="${this.handleKeyDown}"
44
- >
45
- <span>${this.closeBtnName}</span>
46
- </md-button>
47
- </div>
48
- `}get modalBackDropClassMap(){return{in:this.show&&this.animating}}get modalContainerClassMap(){return{in:this.show,["md-modal--"+this.size]:!!this.size,["md-modal--"+this.computedAlignment]:!!this.computedAlignment}}render(){return n.html`
49
- ${this.show?n.html`
50
- <div part="modal-backdrop" class="md-modal__backdrop fade ${Object(s.classMap)(this.modalBackDropClassMap)}">
51
- ${this.backdropClickExit?n.html` <div class="md-modal_overlay" @click="${this.handleCloseBackdrop}"></div> `:r.nothing}
52
-
53
- <div
54
- part="modal-container"
55
- role="dialog"
56
- id="${this.htmlId}"
57
- class="md-modal ${Object(s.classMap)(this.modalContainerClassMap)}"
58
- aria-label="${Object(h.ifDefined)(this.headerLabel||this.ariaLabel||void 0)}"
59
- aria-describedby=${Object(h.ifDefined)(this.ariaDescription||void 0)}
60
- >
61
- <div part="modal-content" class="md-modal__content">
62
- <div class="md-modal__flex-container" part="modal-flex-container">
63
- ${this.headerTemplate()} ${this.topCloseBtnTemplate()}
64
- <div id="modal-body" part="modal-body" class="md-modal__body">
65
- <slot></slot>
66
- </div>
67
- ${this.footerTemplate()}
68
- </div>
69
- </div>
70
- </div>
71
- </div>
72
- `:r.nothing}
73
- `}};f([Object(n.property)({type:Boolean})],e.prototype,"show",void 0),f([Object(n.property)({type:String})],e.prototype,"headerLabel",void 0),f([Object(n.property)({type:String})],e.prototype,"headerMessage",void 0),f([Object(n.property)({type:String})],e.prototype,"htmlId",void 0),f([Object(n.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),f([Object(n.property)({type:String})],e.prototype,"ariaLabelClose",void 0),f([Object(n.property)({type:String})],e.prototype,"ariaLabelCancel",void 0),f([Object(n.property)({type:String})],e.prototype,"ariaLabelSubmit",void 0),f([Object(n.property)({type:String})],e.prototype,"ariaDescription",void 0),f([Object(n.property)({type:Boolean})],e.prototype,"showCloseButton",void 0),f([Object(n.property)({type:Boolean})],e.prototype,"backdropClickExit",void 0),f([Object(n.property)({type:Boolean})],e.prototype,"noExitOnEsc",void 0),f([Object(n.property)({type:String})],e.prototype,"size",void 0),f([Object(n.property)({type:String})],e.prototype,"closeBtnName",void 0),f([Object(n.property)({type:Boolean})],e.prototype,"hideFooter",void 0),f([Object(n.property)({type:Boolean})],e.prototype,"hideHeader",void 0),f([Object(n.property)({type:Boolean})],e.prototype,"disableInitialFocus",void 0),f([Object(n.property)({type:String})],e.prototype,"alignment",void 0),f([Object(n.internalProperty)()],e.prototype,"animating",void 0),f([Object(n.query)(".md-modal__backdrop")],e.prototype,"backDrop",void 0),e=f([Object(l.a)("md-modal")],e),d.ELEMENT=e}(u||(u={}))}}]);
@@ -1 +0,0 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[8],{41:function(e,t,s){"use strict";s.d(t,"a",(function(){return l}));var o=s(0),n=s(19),r=function(e,t,s,o){var n,r=arguments.length,l=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,s,o);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(l=(r<3?n(l):r>3?n(t,s,l):n(t,s))||l);return r>3&&l&&Object.defineProperty(t,s,l),l};o.LitElement;const l=e=>{if(Object(n.b)(l,e))return e;class t extends e{constructor(){super(...arguments),this._slotted=[],this._isSlotted=!1,this.handleSlotChange=()=>{this._isSlotted=!0,this.slotted=this.filterSlotted()}}get slotted(){return this._slotted}set slotted(e){if(this._isSlotted){const t=this._slotted;this._slotted=e,this._isSlotted=!1,this.requestUpdate("slotted",t)}}get slotElement(){return this._slotElement}filterSlotted(){return Array.from(this.children)}slottedChanged(){}firstUpdated(e){super.firstUpdated(e),this.slotElement&&this.slotElement.addEventListener("slotchange",this.handleSlotChange)}update(e){super.update(e),e.has("slotted")&&this.slottedChanged()}disconnectedCallback(){this.slotElement&&this.slotElement.removeEventListener("slotchange",this.handleSlotChange)}}return r([Object(o.property)({type:Array,attribute:!1})],t.prototype,"slotted",null),r([Object(o.query)("slot")],t.prototype,"_slotElement",void 0),Object(n.a)(l,t),t}},60:function(e,t,s){"use strict";s.d(t,"a",(function(){return d}));var o=s(0),n=s(19),r=s(41),l=function(e,t,s,o){var n,r=arguments.length,l=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,s,o);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(l=(r<3?n(l):r>3?n(t,s,l):n(t,s))||l);return r>3&&l&&Object.defineProperty(t,s,l),l};o.LitElement;const d=e=>{if(Object(n.b)(d,e))return e;class t extends(Object(r.a)(e)){constructor(){super(...arguments),this._selected=0,this.rovingPreventFocus=!1}get selected(){return this._selected}set selected(e){this.updateSelectedIndex(e)}get selectedIndex(){return this._selected}set selectedIndex(e){this.updateSelectedIndex(e)}updateSelectedIndex(e){const t=this._selected;if(this.slotted[t]){this.slotted[this._selected].tabIndex=-1}if(this.slotted[e]){const t=this.slotted[e];t.tabIndex=0,this.rovingPreventFocus||t.focus()}this._selected=e,this.requestUpdate("selected",t)}isFocusable(e){return!e.hasAttribute("disabled")&&!e.hasAttribute("hidden")}slottedChanged(){super.slottedChanged&&super.slottedChanged();const e=this.getAvailableSelectedIndex(this.selected,1);-1!==e&&(this.selected=e)}getAvailableSelectedIndex(e,t=1){const s=this.slotted.length;for(let o=0,n=e;o<s;o+=1,n+=t){n<0?n=s-1:n>=s&&(n=0);const e=this.slotted[n];if(this.isFocusable(e))return n}return-1}}return l([Object(o.property)({type:Boolean,reflect:!0,attribute:"roving-prevent-focus"})],t.prototype,"rovingPreventFocus",void 0),l([Object(o.property)({type:Number,reflect:!0})],t.prototype,"selected",null),l([Object(o.property)({type:Number,reflect:!0,attribute:"selected-index"})],t.prototype,"selectedIndex",null),Object(n.a)(d,t),t}}}]);
@@ -1,78 +0,0 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[80],{129:function(t,i,e){"use strict";e.r(i),e.d(i,"Pagination",(function(){return a}));e(17),e(14);var a,n=e(5),o=e(6),r=e(0),s=e(2),l=r.css`:host(:focus){box-shadow:none;outline:0!important}:host(md-pagination) .md-pagination{color:var(--pagination-nav-color,#545454);display:flex;padding:0;position:relative}:host(md-pagination) .md-pagination-container{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;flex:0 1 100%}:host(md-pagination) .md-pagination-list{margin:0;padding:0;list-style:none;align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;font-size:.875rem;line-height:1;color:var(--pagination-color,#949494)}:host(md-pagination) .md-pagination-list li:not(.page-ellipsis){align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;border-radius:.875rem;cursor:pointer;height:1.25rem;margin:0 .125rem;min-width:1.25rem;padding:.25rem}:host(md-pagination) .md-pagination-list li:not(.page-ellipsis):hover{background:var(--pagination-bg-hover,#007aa3);color:var(--pagination-color-current,#fff)}:host(md-pagination) .md-pagination-list li:not(.page-ellipsis):focus{box-shadow:0 0 0 .125rem var(--md-default-focus-outline-color,#005e7d)}:host(md-pagination) .md-pagination-list li:not(.page-ellipsis)[aria-current=true]{background:var(--pagination-bg-current,#00a0d1);color:var(--pagination-color-current,#fff);cursor:default;pointer-events:none}:host(md-pagination) .md-pagination-nav{cursor:pointer}:host(md-pagination) .md-pagination-nav:disabled{cursor:default}:host(md-pagination) .md-pagination-dots{margin:0;padding:0;list-style:none;align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-pagination) .md-pagination-dots li{display:block;overflow:hidden;text-indent:-9999px;background:var(--pagination-dots-color,#ccc);border-radius:50%;cursor:pointer;height:.5rem;margin:.25rem;width:.5rem}:host(md-pagination) .md-pagination-dots li:hover,:host(md-pagination) .md-pagination-dots li[aria-current=true]{background:var(--pagination-dots-color-current,#00a0d1)}:host([focus-visible]){box-shadow:0 0 0 .125rem var(--md-default-focus-outline-color,#005e7d)}@media(forced-colors:active){:host(md-pagination) .md-pagination-nav:focus,:host(md-pagination) .md-pagination-nav:hover{outline:1px solid Highlight}:host(md-pagination) .md-pagination-list li:not(.page-ellipsis):hover,:host(md-pagination) .md-pagination-list li:not(.page-ellipsis)[aria-current=true]{forced-color-adjust:none;background-color:Highlight;color:Canvas}:host(md-pagination) .md-pagination-dots li{background-color:GrayText}:host(md-pagination) .md-pagination-dots li:hover,:host(md-pagination) .md-pagination-dots li[aria-current=true]{forced-color-adjust:none;background-color:Highlight;color:Canvas}}`,g=function(t,i,e,a){var n,o=arguments.length,r=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,a);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(r=(o<3?n(r):o>3?n(i,e,r):n(i,e))||r);return o>3&&r&&Object.defineProperty(i,e,r),r};!function(t){let i=class extends r.LitElement{constructor(){super(...arguments),this._currentPage=1,this.hasDots=!1,this.onlyDots=!1,this.noNavigation=!1,this.totalPage=0,this.visiblePage=3}get currentPage(){return this._currentPage}set currentPage(t){const i=this._currentPage;this._currentPage=t,this.notifyPageChange(i,t),this.requestUpdate("currentPage",i)}static get styles(){return[o.a,l]}computePrevious(t){1!==t&&t!==this.currentPage&&(this.currentPage-=1)}computeNext(t){t<=this.totalPage&&t!==this.currentPage&&(this.currentPage+=1)}computeFirst(){this.currentPage>=1&&(this.currentPage=1)}computeLast(){this.currentPage>=1&&(this.currentPage=this.totalPage)}computeCurrent(t){this.currentPage=t}notifyPageChange(t,i){this.dispatchEvent(new CustomEvent("page-change",{composed:!0,bubbles:!0,detail:{oldPage:t,newPage:i}}))}get hasPreviousPage(){return this.currentPage<=1}get hasNextPage(){return this.currentPage>=this.totalPage}computePageList(t){if(this.totalPage>this.visiblePage&&t){const[t,i,e]=[this.currentPage-1,this.currentPage,this.currentPage+1];let a=[];if(i<=this.visiblePage-1)return a=[...Array(this.visiblePage)].map((t,i)=>1+i),a.push("..."),a.push(this.totalPage),a;if(this.totalPage-i<=this.visiblePage-2){a=[],a.push(1),a.push("...");const t=[...Array(this.visiblePage)].map((t,i)=>this.totalPage-this.visiblePage+1+i);return a.concat(t)}return[1,"...",t,i,e,"...",this.totalPage]}return[...Array(this.totalPage)].map((t,i)=>1+i)}pagesTemplate(t){return this.computePageList(t).map(t=>"..."===t?r.html` <li class="page-ellipsis">${t}</li> `:r.html`
2
- <li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}>
3
- ${t}
4
- </li>
5
- `)}dotsTemplate(t){return this.computePageList(t).map(t=>"..."===t?s.nothing:r.html`
6
- <li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}></li>
7
- `)}render(){return r.html`
8
- <nav class="md-pagination" role="navigation" part="pagination">
9
- ${this.noNavigation?s.nothing:r.html`
10
- <md-button
11
- class="md-pagination-nav"
12
- ariaLabel="First Page"
13
- ?disabled=${this.hasPreviousPage}
14
- @click=${this.computeFirst}
15
- part="pagination-first"
16
- variant="ghost"
17
- size="24"
18
- circle
19
- >
20
- <md-icon name="overflow-left-bold" size="16" iconSet="momentumDesign"></md-icon>
21
- </md-button>
22
- <md-button
23
- class="md-pagination-nav"
24
- ariaLabel="Next Page"
25
- ?disabled=${this.hasPreviousPage}
26
- @click=${()=>this.computePrevious(this.currentPage-1)}
27
- part="pagination-prev"
28
- variant="ghost"
29
- size="24"
30
- circle
31
- >
32
- <md-icon name="arrow-left-bold" size="16" iconSet="momentumDesign"></md-icon>
33
- </md-button>
34
- `}
35
- <div class="md-pagination-container">
36
- ${this.onlyDots?r.html`
37
- <ul class="md-pagination-dots" part="pagination-only-dots">
38
- ${this.dotsTemplate(!1)}
39
- </ul>
40
- `:r.html`
41
- <ul class="md-pagination-list" part=pagination-list">
42
- ${this.pagesTemplate(!0)}
43
- </ul>
44
- `}
45
- ${this.hasDots&&!this.onlyDots?r.html`
46
- <ul class="md-pagination-dots" part="pagination-dots">
47
- ${this.dotsTemplate(!0)}
48
- </ul>
49
- `:s.nothing}
50
- </div>
51
- ${this.noNavigation?s.nothing:r.html`
52
- <md-button
53
- class="md-pagination-nav"
54
- ariaLabel="Previous Page"
55
- ?disabled=${this.hasNextPage}
56
- @click=${()=>this.computeNext(this.currentPage+1)}
57
- part="pagination-next"
58
- variant="ghost"
59
- size="24"
60
- circle
61
- >
62
- <md-icon name="arrow-right-bold" size="16" iconSet="momentumDesign"></md-icon>
63
- </md-button>
64
- <md-button
65
- class="md-pagination-nav"
66
- ariaLabel="Last Page"
67
- ?disabled=${this.hasNextPage}
68
- @click=${this.computeLast}
69
- part="pagination-last"
70
- variant="ghost"
71
- size="24"
72
- circle
73
- >
74
- <md-icon name="overflow-right-bold" size="16" iconSet="momentumDesign"></md-icon>
75
- </md-button>
76
- `}
77
- </nav>
78
- `}};g([Object(r.property)({type:Boolean,attribute:"dots"})],i.prototype,"hasDots",void 0),g([Object(r.property)({type:Boolean,reflect:!0,attribute:"only-dots"})],i.prototype,"onlyDots",void 0),g([Object(r.property)({type:Boolean,reflect:!0,attribute:"no-navigation"})],i.prototype,"noNavigation",void 0),g([Object(r.property)({type:Number,reflect:!0,attribute:"total-page"})],i.prototype,"totalPage",void 0),g([Object(r.property)({type:Number,reflect:!0,attribute:"visible-page"})],i.prototype,"visiblePage",void 0),g([Object(r.property)({type:Number,reflect:!0,attribute:"current-page"})],i.prototype,"currentPage",null),i=g([Object(n.a)("md-pagination")],i),t.ELEMENT=i}(a||(a={}))}}]);
@@ -1,71 +0,0 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[81],{130:function(t,e,o){"use strict";o.r(e),o.d(e,"PhoneInput",(function(){return i}));o(57),o(30);var i,r=o(5),n=o(6),a=o(86),l=o(87),d=o(71),p=o(0),s=o(2),h=o(4),c=o(88),u=p.css`.md-phone-input__container{--combo-box-contaier-width:100px;display:flex;position:relative}.md-phone-input__container span.flag-box{align-items:center;border:1px solid var(--input-default-border-color,#ccc);border-bottom-left-radius:.25rem;border-top-left-radius:.25rem;border-right:none;display:flex;height:2.125rem;justify-content:center;position:relative;width:2.25rem}.md-phone-input__container span.flag-box.new-momentum{border:1px solid var(--input-default-new-border-color,#ccc);height:2rem;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem;border-right:none}.md-phone-input__container span.flag-box .flag-svg-wrapper{justify-content:center}.md-phone-input__container .flag-svg-wrapper{align-items:center;display:flex;width:2rem}.md-phone-input__container .flag-svg-wrapper img{max-height:.7rem}.md-phone-input__container md-combobox{width:var(--combo-box-contaier-width)}.md-phone-input__container md-combobox::part(combobox){position:initial}.md-phone-input__container md-combobox::part(group){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.md-phone-input__container md-combobox::part(multiwrap){overflow-x:hidden}.md-phone-input__container md-combobox::part(multiwrap-input){padding-left:0;padding-right:0;width:100%}.md-phone-input__container md-combobox::part(combobox-options){top:2.5rem}.md-phone-input__container md-combobox::part(label){width:100%}.md-phone-input__container md-input::part(input){border-bottom-left-radius:0;border-top-left-radius:0;padding-right:2.125rem}.md-phone-input__container md-input::part(message){margin-left:calc(var(--combo-box-contaier-width)*-1);width:calc(100% + var(--combo-box-contaier-width))}.md-phone-input__container .md-phone-input__option{align-items:center;display:flex;justify-content:start}.md-phone-input__container .md-phone-input__option :nth-child(3){margin-left:1rem}.md-phone-input__container md-input[disabled]::part(input){background:var(--phone-input-disabled-bg-color);border:1px solid var(--phone-input-default-border-color);color:var(--md-disabled-text-color)}.md-phone-input__container md-input[disabled]::part(input)::placeholder{border:none}`,m=function(t,e,o,i){var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};!function(t){let e=class extends p.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.numberPlaceholder="Enter Phone Number",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.value="",this.errorMessage="",this.showErrorMessage=!1,this.clearIconHeight="auto",this.countryCodeAriaLabel="",this.dialNumberAriaLabel="",this.clearAriaLabel="Clear Input",this.clearCountryCodeAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.countryCode="US",this.codeList=[],this.formattedValue="",this.isValid=!0}connectedCallback(){super.connectedCallback(),this.codeList=Object(a.customArray)({name:"{countryNameEn}",value:"{countryCallingCode}",code:"{countryCode}"}),""===this.id&&(this.id="md-phone-input-"+Math.random().toString(36).substr(2,4)),this.validateInput(this.value)}getCountryFlag(t){return p.html`
2
- <span class="flag-svg-wrapper">
3
- <img src="${Object(l.findFlagUrlByIso2Code)(t)}" />
4
- </span>
5
- `}countryCodeOptionTemplate(t,e){return p.html`
6
- <div
7
- part="option"
8
- class="md-phone-input__option"
9
- display-value="+${t.value}"
10
- slot=${e}
11
- aria-label="+${t.value}, ${t.name}, ${t.code}"
12
- >
13
- ${this.showFlags?this.getCountryFlag(t.code):s.nothing}
14
- <span>${t.name}</span>
15
- <span>+${t.value}</span>
16
- </div>
17
- `}validateNumber(){this.isValid=!this.value||Object(d.isValidNumberForRegion)(this.value,this.countryCode)}handleCountryChange(t){var e,o;t.detail.value&&(null===(e=t.detail.value)||void 0===e?void 0:e.id)?(this.countryCallingCode=t.detail.value.id,this.countryCode=null===(o=t.detail.value.id.split(",")[2])||void 0===o?void 0:o.trim()):(this.countryCode="US",this.countryCallingCode=""),this.validateNumber(),this.dispatchEvent(new CustomEvent("countrycode-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,isValid:this.isValid}}))}handlePhoneChange(t){this.value=t.detail.value,t.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleKeydown(t){this.isValid=!0,t.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleBlur(t){this.validateInput(this.value),this.validateNumber(),t.stopPropagation(),this.removeCountryCode(),this.dispatchEvent(new CustomEvent("phoneinput-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}removeCountryCode(){var t;const e=null===(t=this.countryCallingCode.split(",")[0])||void 0===t?void 0:t.trim();if(this.value.startsWith(e)){const t=this.value.slice(e.length).replace(/^-/,"");this.value=t}}validateInput(t){this.formattedValue=new d.AsYouType(this.countryCode).input(t)}get flagClassMap(){return{"new-momentum":this.newMomentum}}getFormatedCountryCallingCode(){var t;return{id:this.countryCallingCode,value:null===(t=this.countryCallingCode.split(",")[0])||void 0===t?void 0:t.trim()}}getModStyle(){return p.html`
18
- <style>
19
- .md-phone-input__container md-combobox {
20
- width: 5.625rem;
21
- }
22
-
23
- md-combobox::part(group) {
24
- border-left-style: none;
25
- border-bottom-left-radius: 0;
26
- border-top-left-radius: 0;
27
- padding-left: 0;
28
- }
29
- </style>
30
- `}static get styles(){return[n.a,u]}render(){return p.html`
31
- ${this.showFlags?this.getModStyle():s.nothing}
32
- <div class="md-phone-input__container">
33
- ${this.showFlags?p.html`
34
- <span class="flag-box ${Object(h.classMap)(this.flagClassMap)}">${this.getCountryFlag(this.countryCode)}</span>
35
- `:s.nothing}
36
- <md-combobox
37
- part="combobox"
38
- ?disabled=${this.disabled}
39
- shape="${this.pill?"pill":"none"}"
40
- ariaLabel=${this.countryCodeAriaLabel}
41
- placeholder="${this.codePlaceholder}"
42
- .value="${this.countryCallingCode?[this.getFormatedCountryCallingCode()]:[]}"
43
- @change-selected="${t=>this.handleCountryChange(t)}"
44
- clear-icon-height="${this.clearIconHeight}"
45
- with-custom-content
46
- ?newMomentum=${this.newMomentum}
47
- is-dropdown-arrow
48
- .clearAriaLabel="${this.clearCountryCodeAriaLabel}"
49
- >
50
- ${Object(c.repeat)(this.codeList,t=>t.name,(t,e)=>this.countryCodeOptionTemplate(t,e))}
51
- </md-combobox>
52
- <md-input
53
- part="md-input"
54
- ?disabled=${this.disabled}
55
- placeholder=${this.numberPlaceholder}
56
- .ariaInvalid=${this.isValid?"false":"true"}
57
- .ariaLabel=${""+this.dialNumberAriaLabel}
58
- @input-change="${t=>this.handlePhoneChange(t)}"
59
- @input-blur="${t=>this.handleBlur(t)}"
60
- @input-keydown="${t=>this.handleKeydown(t)}"
61
- shape="${this.pill?"pill":"none"}"
62
- .ariaControls=${this.id}
63
- clear
64
- ?newMomentum=${this.newMomentum}
65
- clearAriaLabel="${this.clearAriaLabel}"
66
- type="tel"
67
- value="${this.formattedValue}"
68
- .messageArr="${!this.isValid||this.showErrorMessage?[{type:"error",id:this.id,ariaLive:"polite",message:this.errorMessage}]:[]}"
69
- ></md-input>
70
- </div>
71
- `}};m([Object(p.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),m([Object(p.property)({type:String})],e.prototype,"numberPlaceholder",void 0),m([Object(p.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),m([Object(p.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),m([Object(p.property)({type:Boolean})],e.prototype,"pill",void 0),m([Object(p.property)({type:Boolean})],e.prototype,"disabled",void 0),m([Object(p.property)({type:String})],e.prototype,"value",void 0),m([Object(p.property)({type:String})],e.prototype,"errorMessage",void 0),m([Object(p.property)({type:Boolean})],e.prototype,"showErrorMessage",void 0),m([Object(p.property)({type:String,attribute:"clear-icon-height"})],e.prototype,"clearIconHeight",void 0),m([Object(p.property)({type:String})],e.prototype,"countryCodeAriaLabel",void 0),m([Object(p.property)({type:String})],e.prototype,"dialNumberAriaLabel",void 0),m([Object(p.property)({type:String})],e.prototype,"clearAriaLabel",void 0),m([Object(p.property)({type:String})],e.prototype,"clearCountryCodeAriaLabel",void 0),m([Object(p.property)({type:String})],e.prototype,"id",void 0),m([Object(p.property)({type:Boolean})],e.prototype,"newMomentum",void 0),m([Object(p.internalProperty)()],e.prototype,"countryCode",void 0),m([Object(p.internalProperty)()],e.prototype,"codeList",void 0),m([Object(p.internalProperty)()],e.prototype,"formattedValue",void 0),m([Object(p.internalProperty)()],e.prototype,"isValid",void 0),m([Object(p.query)("md-combobox")],e.prototype,"combobox",void 0),e=m([Object(r.a)("md-phone-input")],e),t.ELEMENT=e}(i||(i={}))}}]);
@@ -1,17 +0,0 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[82],{104:function(e,t,i){"use strict";i.r(t),i.d(t,"Radio",(function(){return r}));var r,a=i(7),o=i(5),d=i(6),s=i(0),l=i(3),c=i(72),p=function(e,t,i,r){var a,o=arguments.length,d=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(d=(o<3?a(d):o>3?a(t,i,d):a(t,i))||d);return o>3&&d&&Object.defineProperty(t,i,d),d};!function(e){let t=class extends(Object(a.a)(s.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.label="",this.value="",this.ariaLabel="",this.autofocus=!1,this._disabled=!1,this._checked=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",""+e),this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this.setAttribute("aria-checked",""+e),this.requestUpdate("checked",t)}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","radio"),this.label&&this.setAttribute("aria-label",this.label)}static get styles(){return[d.a,c.a]}render(){return s.html`
2
- <div class="md-radio-wrapper" part="radio-wrapper">
3
- <input
4
- class="md-radio-input"
5
- type="radio"
6
- aria-label=${Object(l.ifDefined)(this.ariaLabel.length?this.ariaLabel:void 0)}
7
- aria-checked=${this.checked?"true":"false"}
8
- .value=${this.value}
9
- ?checked=${this.checked}
10
- ?autofocus=${this.autofocus}
11
- ?disabled=${this.disabled}
12
- aria-hidden="true"
13
- id="radio-label"
14
- />
15
- <label for="radio-label" class="md-radio-label" part="radio-label"><slot></slot></label>
16
- </div>
17
- `}};p([Object(s.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),p([Object(s.property)({type:String})],t.prototype,"label",void 0),p([Object(s.property)({type:String})],t.prototype,"value",void 0),p([Object(s.property)({type:String})],t.prototype,"ariaLabel",void 0),p([Object(s.property)({type:Boolean,reflect:!0})],t.prototype,"autofocus",void 0),p([Object(s.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),p([Object(s.property)({type:Boolean,attribute:!1})],t.prototype,"checked",null),t=p([Object(o.a)("md-radio")],t),e.ELEMENT=t}(r||(r={}))}}]);
@@ -1,5 +0,0 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[83],{105:function(e,t,s){"use strict";s.r(t),s.d(t,"RadioGroup",(function(){return i}));var i,d=s(1),o=s(7),r=s(5),c=s(6),n=s(0),a=s(72),l=function(e,t,s,i){var d,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(d=e[c])&&(r=(o<3?d(r):o>3?d(t,s,r):d(t,s))||r);return o>3&&r&&Object.defineProperty(t,s,r),r};!function(e){let t=class extends(Object(o.d)(n.LitElement)){constructor(){super(...arguments),this.label="group",this.checked=-1,this.alignment="vertical",this._disabled=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.requestUpdate("disabled",t)}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}updated(e){super.updated(e),(e.has("slotted")||e.has("checked"))&&this.setFirstChecked()}get selectedRadioValue(){return this.slotted[this.selected].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("radio-change",{detail:{selected:this.selectedRadioValue},bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}setFirstChecked(){-1!==this.checked&&(this.selected=this.checked,this.setChecked(this.checked))}findRadioIndex(e){const t=e.composedPath();return this.slotted.findIndex(e=>t.includes(e))}findCheckedRadioIndex(){return this.slotted.findIndex(e=>e.checked)}setChecked(e){const t=this.findCheckedRadioIndex();-1!==t&&t!==e&&this.slotted[t]&&(this.slotted[t].checked=!1),this.slotted[e]&&(this.slotted[e].checked=!0)}switchRadioOnArrowPress(e,t=1){const s=super.getAvailableSelectedIndex(e,t);-1!==s&&(this.selected=s,this.setChecked(s),this.notifySelectedChange())}isRadioDisabled(e){return this.slotted[e].disabled}handleClick(e){if(this.disabled)return!1;const t=this.findRadioIndex(e);-1!==t&&(this.isRadioDisabled(t)||(this.selected=t,this.setChecked(t),this.notifySelectedChange()))}handleKeyDown(e){if(this.disabled)return!1;const{code:t}=e;switch(t){case d.b.Enter:case d.b.Space:this.isRadioDisabled(this.selected)||(this.setChecked(this.selected),this.notifySelectedChange(),e.stopPropagation(),e.preventDefault());break;case d.b.ArrowUp:case d.b.ArrowLeft:0===this.selected?this.switchRadioOnArrowPress(this.slotted.length-1,-1):this.switchRadioOnArrowPress(this.selected-1,-1),e.stopPropagation(),e.preventDefault();break;case d.b.ArrowDown:case d.b.ArrowRight:this.selected===this.slotted.length-1?this.switchRadioOnArrowPress(0):this.switchRadioOnArrowPress(this.selected+1),e.stopPropagation(),e.preventDefault()}}get slotElement(){return this.radioSlot}static get styles(){return[c.a,a.a]}clearSelection(){const e=this.findCheckedRadioIndex();-1!=e&&(this.checked=-1,this.slotted[e].checked=!1)}render(){return n.html`
2
- <div class="radio-group-container" part="radio-group-container">
3
- <slot name="radio"></slot>
4
- </div>
5
- `}};l([Object(n.property)({type:String,attribute:"group-label"})],t.prototype,"label",void 0),l([Object(n.property)({type:Number,reflect:!0})],t.prototype,"checked",void 0),l([Object(n.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),l([Object(n.query)("slot[name='radio']")],t.prototype,"radioSlot",void 0),l([Object(n.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),t=l([Object(r.a)("md-radiogroup")],t),e.ELEMENT=t}(i||(i={}))}}]);
@@ -1,19 +0,0 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[84],{131:function(e,t,i){"use strict";i.r(t),i.d(t,"Slider",(function(){return s}));var s,r=i(1),o=i(7),n=i(5),d=i(6),a=i(0),l=i(2),h=i(3),c=i(13),m=i(8),p=a.css`:host(:focus){box-shadow:none;outline:0!important}:host(md-slider){display:flex;flex:1 1 auto;padding:1.25rem 0}:host(md-slider) .md-slider{border-radius:.25rem;display:flex;flex:1 1 auto;height:1.25rem;margin-right:1.25rem;position:relative;width:calc(100% - 1.25rem)}:host(md-slider) .md-slider__bar{position:absolute;top:50%;transform:translateY(-50%);background-color:var(--slider-background-bar,#ccc);border-radius:.125rem;cursor:pointer;height:.125rem;left:0;right:-1.25rem;z-index:0}:host(md-slider) .md-slider__selection{position:absolute;top:50%;transform:translateY(-50%);background-color:var(--slider-background-selection,#00a0d1);border-radius:.125rem;height:.125rem;left:0;transition:left 50ms,right 50ms;z-index:1}:host(md-slider) .md-slider__pointer{position:absolute;top:50%;transform:translateY(-50%);border-radius:.25rem;cursor:grabbing;height:1.25rem;transition:left 50ms,right 50ms;width:1.25rem;z-index:2}:host(md-slider) .md-slider__pointer::after{background-color:var(--slider-background-pointer,#fff);border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.16);content:"";height:100%;position:absolute;width:100%;border:1px solid var(--slider-background-pointerBorder)}@media screen and (forced-colors:active){:host(md-slider) .md-slider__pointer::after{filter:brightness(1) contrast(1) saturate(1.5)}}:host(md-slider) .md-slider__hashlabel{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;bottom:-1.25rem;color:var(--slider-label,#545454);font-size:14px;left:0;line-height:14px;position:absolute;right:-1.25rem;white-space:nowrap}:host(md-slider) .md-slider__value{color:var(--slider-label,#545454);font-size:14px;line-height:14px;position:absolute;right:-1.25rem;top:-1.25rem}:host([disabled]) .md-slider__bar{cursor:not-allowed;background-color:var(--slider-background-disabled-bar,var(--slider-background-bar,#ccc))}:host([disabled]) .md-slider__pointer{cursor:not-allowed}:host([disabled]) .md-slider__pointer::after{background-color:var(--slider-background-disabled-pointer,#ccc)}:host([disabled]) .md-slider__selection{background-color:var(--slider-background-disabled-selection,#949494)}:host([focus-visible]:not([disabled])) .md-slider__pointer::after{box-shadow:var(--slider-background-focus-shadow,0 0 0 8px rgba(0,160,209,.4))}:host([no-pointer][focus-visible]:not([disabled])) .md-slider{box-shadow:var(--slider-background-focus-shadow,0 0 0 2px var(--slider-background-focus-selection,#007aa3),0 2px 6px rgba(0,0,0,.16))}:host(:hover:not([disabled])) .md-slider__pointer::after{background-color:var(--slider-background-hover-pointer,#c9f4ff)}:host([no-pointer]) .md-slider{margin-right:0!important}:host([no-pointer]) .md-slider__bar,:host([no-pointer]) .md-slider__value{right:0}:host([no-pointer]) .md-slider__pointer{display:none}@media(forced-colors:active){:host(md-slider) .md-slider__bar{background-color:CanvasText}:host(md-slider) .md-slider__selection{background-color:Highlight}:host(md-slider) .md-slider__pointer::after{background-color:Highlight}:host(:hover:not([disabled])) .md-slider__pointer::after{background-color:Highlight}:host([no-pointer][focus-visible]:not([disabled])) .md-slider{outline:1px solid Highlight}:host([focus-visible]:not([disabled])) .md-slider__pointer{outline:2px solid Highlight}:host([disabled]) .md-slider__pointer::after{background-color:GrayText}}`,u=function(e,t,i,s){var r,o=arguments.length,n=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(n=(o<3?r(n):o>3?r(t,i,n):r(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};!function(e){let t=class extends(Object(o.a)(a.LitElement)){constructor(){super(...arguments),this._disabled=!1,this._now=0,this.min=0,this.max=100,this.hideValue=!1,this.text=0,this.label="slider",this.step=0,this.dragging=!1}get now(){return this._now}set now(e){const t=this._now;e<this.min||e>this.max?console.warn("Please select correct value"):(this._now=Math.round(e),this.requestUpdate("now",t))}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",""+e),this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}get pointerPosition(){const e=this.max-this.min;return(this.now-this.min)/e*100}calculateHandlePosition(e){const{width:t,left:i}=this.getBoundingClientRect(),{clientX:s}=e,r=(s-i)/t;return this.min+(this.max-this.min)*r}moveSliderTo(e){this.disabled||(e>this.max?this.now=this.max:e<this.min?this.now=this.min:this.now=e)}trackMouseEvent(){if(!this.currentMouseEvent||!this.dragging)return;const e=this.calculateHandlePosition(this.currentMouseEvent),t=this.now;this.moveSliderTo(e),this.notifyChanging(t,this.now),requestAnimationFrame(()=>{this.trackMouseEvent()})}ticksTemplate(){const{min:e,max:t,step:i}=this,s=Math.round((t-e)/i),r=new Array(s+1).fill(0,0,s+1).map((t,s)=>e+s*i).filter(i=>i>=e&&i<=t);return a.html`
2
- <div class="md-slider__hashlabel">${Object(c.repeat)(r,e=>a.html` <div class="tick">${e}</div> `)}</div>
3
- `}displayValueTemplate(){return a.html` <span class="md-slider__value"> ${this.now} </span> `}notifyChanges(){this.dispatchEvent(new CustomEvent("slider-change",{bubbles:!0,composed:!0,detail:{value:this.now}}))}notifyChanging(e,t){e!==t&&this.dispatchEvent(new CustomEvent("slider-changing",{bubbles:!0,composed:!0,detail:{oldValue:e,newValue:t}}))}handleMouseDown(e){if(e.preventDefault(),this.disabled)return;const t=e=>{this.currentMouseEvent=e},i=e=>{this.focus(),this.currentMouseEvent=e,document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",i),requestAnimationFrame(()=>{this.dragging=!1,this.notifyChanges()})};document.addEventListener("mousemove",t),document.addEventListener("mouseup",i),this.focus(),this.dragging=!0,this.currentMouseEvent=e,requestAnimationFrame(()=>{this.trackMouseEvent()})}handleKeyDown(e){const{code:t}=e,i=this.now;switch(t){case r.b.ArrowLeft:case r.b.ArrowDown:this.moveSliderTo(this.now-1);break;case r.b.ArrowRight:case r.b.ArrowUp:this.moveSliderTo(this.now+1);break;case r.b.Home:this.moveSliderTo(this.min);break;case r.b.End:this.moveSliderTo(this.max)}this.notifyChanging(i,this.now);const s=()=>{document.removeEventListener("keyup",s),this.notifyChanges()};document.addEventListener("keyup",s)}get sliderPointerStyleMap(){return{left:this.pointerPosition+"%"}}get sliderSelectionStyleMap(){return{right:`calc(100% - ${this.pointerPosition}%)`}}static get styles(){return[d.a,p]}firstUpdated(e){super.firstUpdated(e),this.setAttribute("tabindex",this.disabled?"-1":"0")}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mousedown",this.handleMouseDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mousedown",this.handleMouseDown)}render(){return a.html`
4
- <div class="md-slider">
5
- <span class="md-slider__bar"></span>
6
- <span class="md-slider__selection" style=${Object(m.styleMap)(this.sliderSelectionStyleMap)}></span>
7
- <span
8
- class="md-slider__pointer"
9
- role="slider"
10
- part="slider"
11
- aria-valuemin=${this.min}
12
- aria-valuemax=${this.max}
13
- aria-valuenow=${this.now}
14
- aria-label=${Object(h.ifDefined)(this.label)}
15
- style=${Object(m.styleMap)(this.sliderPointerStyleMap)}
16
- ></span>
17
- ${this.step?this.ticksTemplate():l.nothing} ${this.hideValue?l.nothing:this.displayValueTemplate()}
18
- </div>
19
- `}};u([Object(a.property)({type:Number,reflect:!0})],t.prototype,"min",void 0),u([Object(a.property)({type:Number,reflect:!0})],t.prototype,"max",void 0),u([Object(a.property)({type:Boolean,attribute:"hide-value"})],t.prototype,"hideValue",void 0),u([Object(a.property)({type:Number,reflect:!0})],t.prototype,"now",null),u([Object(a.property)({type:Number})],t.prototype,"text",void 0),u([Object(a.property)({type:String})],t.prototype,"label",void 0),u([Object(a.property)({type:Number,reflect:!0})],t.prototype,"step",void 0),u([Object(a.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),u([Object(a.internalProperty)()],t.prototype,"dragging",void 0),t=u([Object(n.a)("md-slider")],t),e.ELEMENT=t}(s||(s={}))}}]);
@@ -1 +0,0 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[85],{106:function(e,t,r){"use strict";r.r(t),r.d(t,"TabPanel",(function(){return n}));var n,o=r(7),a=r(5),s=r(6),c=r(0),i=r(43),l=function(e,t,r,n){var o,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(a<3?o(s):a>3?o(t,r,s):o(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s};!function(e){let t=class extends(Object(o.a)(c.LitElement)){constructor(){super(...arguments),this.selected=!1,this.name="",this.focusablePanel="true"}static get styles(){return[s.a,i.a]}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","tabpanel"),"true"===this.focusablePanel&&this.setAttribute("tabindex","0")}render(){return c.html` <slot></slot> `}};l([Object(c.property)({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),l([Object(c.property)({type:String,attribute:"name"})],t.prototype,"name",void 0),l([Object(c.property)({type:String,attribute:"focusable-panel"})],t.prototype,"focusablePanel",void 0),t=l([Object(a.a)("md-tab-panel")],t),e.ELEMENT=t}(n||(n={}))}}]);
@@ -1,168 +0,0 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[86],{109:function(e,t,r){"use strict";r.r(t),r.d(t,"TableAdvanced",(function(){return w}));r(17),r(14),r(37);var o=r(5),i=r(34),a=r(6),l=r(0),n=r(2),s=r(4),d=r(3),c=r(89),h=r(39),p=r.n(h),b=l.css`:host{display:block}.md-table-advanced{width:100%}table{border-collapse:separate;border-spacing:0;max-width:100%;position:relative;width:100%}table.sticky-header{height:100%}table.sticky-header thead th:first-child{border-left:1px solid var(--table-advanced-border-color)}table.sticky-header thead th{background-color:var(--table-advanced-header-bg-color);border-left:0;border-top:0;position:sticky;top:0;z-index:1}table.sticky-header thead th::before{border-top:1px solid var(--table-advanced-border-color);bottom:0;content:" ";left:0;position:absolute;top:0;width:100%}table.sticky-header thead tr:last-child th{top:2.5rem}table.sticky-header thead tr:last-child th::before{border-bottom:1px solid var(--table-advanced-border-color);border-top:1px solid var(--table-advanced-border-color)}table.sticky-header thead tr:first-child th{height:calc(2.5rem + .0625rem*2);top:0}table.sticky-header thead tr:first-child th::before{border-bottom:1px solid var(--table-advanced-border-color);border-top:1px solid var(--table-advanced-border-color)}table.sticky-header thead tr:focus{outline:0}table.sticky-header thead tr:focus th:first-child{border-left:2px solid var(--md-focus-border-color)}table.sticky-header thead tr:focus th:last-child{border-right:2px solid var(--md-focus-border-color)}table.sticky-header thead tr:focus th::before{border-bottom:2px solid var(--md-focus-border-color);border-top:2px solid var(--md-focus-border-color)}thead th:first-child{border-left:1px solid var(--table-advanced-border-color)}thead th{background-color:var(--table-advanced-header-bg-color);border:1px solid var(--table-advanced-border-color);border-left:0;color:var(--md-secondary-text-color);font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:14px;height:2.5rem;max-width:0;padding:0 .375rem;position:relative;text-align:left}thead th .filter{display:inline-block;height:auto;margin-top:calc(.25rem/2)}thead th .resize{background-color:rgba(0,0,0,0);cursor:col-resize;height:100%;left:calc(-.25rem/2);position:absolute;top:0;width:.25rem;z-index:1}thead .head-inner-cell{align-items:center;display:flex;min-width:.875rem}thead .head-inner-cell .filter-wrap{align-items:center;display:inline-flex;flex:1;justify-content:flex-end}thead .head-inner-cell .filter-icon{color:var(--md-primary-text-color);cursor:pointer;display:inline-block;height:1.5rem;min-width:1.25rem;position:relative;z-index:1;border-radius:4px}thead .head-inner-cell .filter-icon::part(button){padding:.25rem;text-align:center;width:1.5rem}thead .head-inner-cell .filter-icon:hover{background-color:var(--table-advanced-filter-hover-bg-color)}thead .head-inner-cell .filter-icon:active{background-color:var(--table-advanced-filter-pressed-bg-color)}thead .head-inner-cell span{display:inline-block;overflow:hidden;padding-right:calc(.25rem*1.25);text-overflow:ellipsis;white-space:nowrap;width:100%}thead .head-inner-cell .sortable{background:rgba(0,0,0,0);border:0;color:var(--md-secondary-text-color);display:inline-flex;align-items:center;min-width:calc(1rem*2.5);overflow:hidden;padding-right:calc(.25rem*4);text-overflow:ellipsis;white-space:nowrap;width:auto}thead md-menu-overlay::part(overlay){top:-.375rem;white-space:normal}@supports(-moz-appearance:none){thead md-menu-overlay::part(overlay){top:-.25rem;white-space:normal}}thead .drag-area-col{cursor:grab;display:block;height:calc(.25rem*10);left:.25rem;position:absolute;right:.25rem;top:0;z-index:1}thead .drag-area-col.drag{border:2px dashed var(--table-advanced-filter-border-color);opacity:1}thead .drag-area-col.over{background-color:#a87ff1;height:100%;opacity:.1}thead .sortable{cursor:pointer;z-index:1;gap:.5rem}.filter-active{display:inline-block;height:1.25rem;text-align:center;vertical-align:bottom;width:1.25rem}.filter-active::part(icon){line-height:.875rem}.filter-menu{background-color:var(--table-advanced-filter-bg-color);padding:calc(.25rem*3);position:relative;z-index:1}.filter-menu select{background-color:var(--table-advanced-filter-bg-color);border:1px solid var(--table-advanced-filter-border-color);color:var(--md-secondary-text-color);min-height:calc(.875rem*1.8);width:100%}.filter-menu input{background-color:var(--table-advanced-filter-bg-color);border:1px solid var(--table-advanced-filter-border-color);color:var(--md-secondary-text-color);margin-top:calc(.25rem*2);width:100%}tbody tr{position:relative}tbody tr td:first-child{border-left:1px solid var(--table-advanced-border-color)}tbody tr td{border-bottom:1px solid var(--table-advanced-border-color);border-right:1px solid var(--table-advanced-border-color);font-size:14px;height:2.5rem;max-width:0;padding:calc(.25rem*1.5);position:relative}tbody tr th:first-child{border-top:1px solid var(--table-advanced-border-color)}tbody tr th{background-color:var(--table-advanced-header-bg-color);border-bottom:1px solid var(--table-advanced-border-color);border-right:1px solid var(--table-advanced-border-color);font-size:14px;max-width:0;padding:0 calc(.25rem*4);position:relative;text-align:left}tbody tr .inner-cell{display:flex;white-space:nowrap;align-items:center}tbody tr .inner-cell .warn-icon{display:inline-block;margin-left:.25rem;max-height:1.25rem;position:relative;vertical-align:middle;z-index:0}tbody tr .inner-cell md-icon::part(icon){line-height:1.25rem}tbody tr .inner-cell span{align-self:center;display:inline-block;flex:1;overflow:hidden;padding:0 .25rem;text-overflow:ellipsis;vertical-align:middle}tbody tr .drag-handle{cursor:grab;float:left;margin-right:calc(.25rem*1.5)}tbody tr .drag-area{height:50%;left:0;opacity:.3;position:absolute;right:0}tbody tr .drag-area.top{top:0}tbody tr .drag-area.bottom{background-color:rgba(0,0,0,0);bottom:0}tbody tr.ghost{opacity:.3}tbody tr:hover{background-color:var(--table-advanced-hover-bg-color)}tbody tr:hover td,tbody tr:hover th{background-color:var(--table-advanced-hover-bg-color)}tbody tr.selected,tbody tr:active{background-color:var(--table-advanced-selected-bg-color)}tbody tr.selected td,tbody tr.selected th,tbody tr:active td,tbody tr:active th{background-color:var(--table-advanced-selected-bg-color)}button.row-collapsible{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;width:1.25rem;margin-right:calc(.25rem*1.5);background-color:rgba(0,0,0,0);border:1px solid var(--table-advanced-border-color);border-radius:2px}button.row-collapsible:hover{background-color:var(--table-advanced-filter-hover-bg-color);border:0}button.row-collapsible:active{background-color:var(--table-advanced-filter-pressed-bg-color);border:0}`;function g(e=250){return function(t,r,o){let i;return function(e,t){if(e.descriptor=e.descriptor||Object.getOwnPropertyDescriptor(e.target,e.key),"function"!=typeof e.descriptor.value)return console.warn(e.key,"Decorator must be used on function"),e.descriptor;const r=e.descriptor.value,o=e.target.constructor.name;return e.descriptor.value=function(...e){return t.call(this,r,e,o)},e.descriptor}({target:t,key:r,descriptor:o},(function(t,r){clearTimeout(i),i=window.setTimeout(()=>{clearTimeout(i),t.apply(this,r)},e)}))}}class m{constructor(e,t){this.target=e,this.eventName=t}emit(e,t={bubbles:!0,composed:!0,cancelable:!1}){this.target.dispatchEvent(new CustomEvent(this.eventName,Object.assign({detail:e},t)))}}const u=new WeakMap,f=Object(n.directive)(e=>t=>{if(!(t instanceof n.NodePart))throw new Error("templateCallback can only be used in text bindings");const r=u.get(t);if(void 0!==r&&e.template===r.template&&t.value===r.fragment)return;const o=document.importNode(e.template.content,!0);e.cb({content:e.content,row:e.row,col:e.col,insertIndex:e.insertIndex,fragment:o}),t.setValue(o),u.set(t,{template:e.template,fragment:o})});var v;!function(e){const t={placeholder:"Filter..."};e.OPTIONS={equals:{label:"Equals",input:t,predicate:(e,t)=>e==t},notEqual:{label:"Not equal",input:t,predicate:(e,t)=>e!=t},contains:{label:"Contains",input:t,predicate:(e,t)=>e.includes(t)},notContains:{label:"Not contains",input:t,predicate:(e,t)=>!e.includes(t)},startsWith:{label:"Starts with",input:t,predicate:(e,t)=>e.startsWith(t)},endsWith:{label:"Ends with",input:t,predicate:(e,t)=>e.endsWith(t)},lessThan:{label:"Less than",input:t,predicate:(e,t)=>e<t},lessThanOrEquals:{label:"Less than or equals",input:t,predicate:(e,t)=>e<=t},greaterThan:{label:"Greater than",input:t,predicate:(e,t)=>e>t},greaterThanOrEquals:{label:"Greater than or equals",input:t,predicate:(e,t)=>e>=t}},e.optionsString=[e.OPTIONS.equals,e.OPTIONS.notEqual,e.OPTIONS.contains,e.OPTIONS.notContains,e.OPTIONS.startsWith,e.OPTIONS.endsWith],e.optionsNumber=[e.OPTIONS.equals,e.OPTIONS.notEqual,e.OPTIONS.lessThan,e.OPTIONS.lessThanOrEquals,e.OPTIONS.greaterThan,e.OPTIONS.greaterThanOrEquals]}(v||(v={}));var y=function(e,t,r,o){var i,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(l=(a<3?i(l):a>3?i(t,r,l):i(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l};const x=document.createElement("img");var w;x.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(e){let t=class extends(Object(i.a)(l.LitElement)){constructor(){super(...arguments),this.isRowFocusable="true",this.error="",this.COLS=[],this.ROWS=[],this.updCols=()=>this.requestUpdate("COLS"),this.updRows=()=>this.requestUpdate("ROWS"),this.dragRow=-1,this.dropRow=-1,this.drops=[],this.dragRowElem=null,this.dragCol=-1,this.dropCol=-1,this.isResizing=!1,this.isSelectable=!1,this.selected={},this.expandedRowIdx={},this.dragover=e=>e.preventDefault(),this.eX=0,this.onResize=(e,t)=>{var r;if(-1!=this.dragCol||-1!=this.dragRow)return;this.isResizing=!0;const o=e.target;null===(r=e.dataTransfer)||void 0===r||r.setDragImage(x,0,0);const i=this.COLS.map(e=>this.shadowRoot.querySelector("th.col-index-"+e.index));this.COLS.forEach((e,t)=>e.width=i[t].offsetWidth+"px"),this.updCols();const a=e.x;this.eX=e.x;let l=-1,n=-1,s=-1;const d=this.COLS[t.index-1],c=i[t.index],h=i[t.index-1],p=c.offsetWidth,b=h.offsetWidth,g=()=>{const e=this.eX;if(l!=e&&0!=e){l=e;const r=l-a;n=p-r,s=b+r,t.width=n+"px",d.width=s+"px",this.updCols()}},m=e=>this.eX=e.x,u=()=>{this.isResizing=!1,o.removeEventListener("drag",g),o.removeEventListener("dragend",u),document.removeEventListener("dragover",m)};o.addEventListener("drag",g),o.addEventListener("dragend",u),document.addEventListener("dragover",m)}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("dragover",this.dragover)}connectedCallback(){super.connectedCallback(),document.addEventListener("dragover",this.dragover),this.updateTableConfig(),this.updateTableData(),this.populateTable()}update(e){super.update(e),e.has("data")&&(this.updateTableData(),this.updateDataInTable())}updateTableData(){if("string"==typeof this.data)try{this.tableData=JSON.parse(this.data)}catch(e){console.error("[INVALID_JSON_FORMAT] Please recheck the config json")}else this.tableData=Object.assign({},this.data)}updateTableConfig(){if("string"==typeof this.config)try{this.tableConfig=JSON.parse(this.config)}catch(e){console.error("[INVALID_JSON_FORMAT] Please recheck the data json")}else this.tableConfig=Object.assign({},this.config)}populateColumns(){var e;let t=0;const r=(e,r)=>{var o,i,a,l;const n=e.filters||(null===(i=null===(o=this.tableConfig.default)||void 0===o?void 0:o.col)||void 0===i?void 0:i.filters),s=n?"forString"==n?v.optionsString:"forNumber"==n?v.optionsNumber:n.length?n:null:null;this.COLS.push({options:Object.assign({},e),index:t++,group:r,sort:"default",sorter:e.sorter||(null===(l=null===(a=this.tableConfig.default)||void 0===a?void 0:a.col)||void 0===l?void 0:l.sorter),isCollapsable:this.tableConfig.cols.collapse==e.id,filter:s?{list:s,selectedIndex:0,input:"",active:!1,menuVisible:!1}:void 0})};this.tableConfig.cols.define.forEach(e=>{"children"in e?e.children.forEach(t=>r(t,{name:e.groupName,length:e.children.length})):r(e)}),this.isSelectable=!!this.tableConfig.rows&&"none"!=(null===(e=this.tableConfig.rows)||void 0===e?void 0:e.selectable)}populateData(){const e=this.COLS.length;if("csv"in this.tableData){const e=p.a.parse(this.tableData.csv,{skipEmptyLines:!0,transform:e=>e.trim()});if(e.errors)return void(this.error="PARSE ERROR:\n"+JSON.stringify(e.errors,null,2));{const t=e.data;this.ROWS=t.map(e=>e.map(e=>({text:e})))}}else if("list2d"in this.tableData)this.ROWS=this.tableData.list2d.map(e=>e.map(e=>({text:e})));else{for(;this.tableData.list.length>e;)this.ROWS.push(this.tableData.list.splice(0,e).map(e=>({text:e})));0!=this.tableData.list.length&&this.ROWS.push(this.tableData.list.map(e=>({text:e})))}0!=this.ROWS.length||(this.error="DATA ERROR: Data is empty")}validateData(){const e=this.COLS.length;this.ROWS.reduce((e,t)=>e+t.length,0)%e==0?this.ROWS.forEach((t,r)=>{const o=t.length;o!=e&&(this.error=`DATA ERROR: Total number of cols (=${e}) and data[${r}] length (=${o}) mismatch`)}):this.error=this.error="DATA ERROR: Data length mismatch. You must provide (numberOfRows * numberOfColumns) amount of data values."}populateTemplate(){const e=this.tableConfig.cellTemplates,t=Object.keys(e||{});e&&t.length&&this.ROWS.forEach((t,r)=>{t.forEach((t,o)=>{for(const i in e){const a=t.text.indexOf(i);if(-1!=a){const l=e[i],n=this.querySelector("#"+l.templateName);if(null==n){console.warn(`cellTemplates["${i}"]: Missing '${l.templateName}' template.`);continue}let s=t.text.replace(i,"");l.contentCb&&(s=l.contentCb({col:o,row:r,content:s,insertIndex:a})),this.ROWS[r][o]={text:s,template:{template:n,templateCb:l.templateCb,insertIndex:"replace"==l.contentUse?-1:a}};break}}})})}setDefaultFilterAndSort(){var e,t;const r=null===(e=this.tableConfig.default)||void 0===e?void 0:e.sort;if(r){const e=this.COLS.find(e=>e.options.id==r.colId);e?this.sort(e,r.order):console.warn(`Cant find ${r.colId} col - for sorting`)}const o=null===(t=this.tableConfig.default)||void 0===t?void 0:t.filter;if(o){const e=this.COLS.find(e=>e.options.id==o.colId);e?e.filter?(e.filter.selectedIndex=o.selectedIndex,e.filter.input=o.input,this.updCols(),this.filter(e)):console.warn(`Cant find filters on ${o.colId} col`):console.warn(`Cant find ${o.colId} col - for filtering`)}}populateTable(){this.populateColumns(),this.populateData(),this.validateData(),this.setDefaultFilterAndSort(),this.populateTemplate()}updateDataInTable(){this.populateData(),this.validateData(),this.populateTemplate()}onDropRow(){this.dragRow!=this.dropRow&&this.drops.push([this.dragRow,this.dropRow]),this.dragRow=-1,this.dropRow=-1,this.dragRowElem&&(this.dragRowElem.setAttribute("draggable","false"),this.dragRowElem=null)}onDropCol(){if(this.dragCol!=this.dropCol){const e=this.COLS[this.dragCol],t=this.COLS[this.dropCol],r=e.group,o=t.group,i=e.index,a=t.index;e.group=o,t.group=r,e.index=a,t.index=i,this.COLS[this.dragCol]=t,this.COLS[this.dropCol]=e,this.ROWS.forEach(e=>{const t=e[this.dragCol],r=e[this.dropCol];e[this.dragCol]=r,e[this.dropCol]=t}),this.updCols(),this.updRows()}this.dragCol=-1,this.dropCol=-1}sort(e,t){e.sorter&&(this.clearSelection(),this.drops=[],this.COLS.forEach(r=>{r.options.id==e.options.id?r.sort=t||("default"==r.sort?"ascending":"ascending"==r.sort?"descending":"default"):r.sort="default"}),this.updCols(),this.requestUpdate(),this["md-table-advanced-change"].emit({type:"sort",order:e.sort}))}filter(e){if(!e.filter)return;this.clearSelection(),this.drops=[];const t=e.filter.input.trim(),r=e.filter.list[e.filter.selectedIndex];e.filter.active=!!t,this.requestUpdate(),t?this["md-table-advanced-change"].emit({type:"filter-on",filter:r,input:t}):this["md-table-advanced-change"].emit({type:"filter-off",filter:e.filter.list[e.filter.selectedIndex]})}selectRow(e){var t;const r=e.row.idx,o=Object.prototype.hasOwnProperty.call(this.selected,r);"multiple"==(null===(t=this.tableConfig.rows)||void 0===t?void 0:t.selectable)?(e.metaKey?o?delete this.selected[r]:this.selected[r]=!0:e.shiftKey||(this.selected={[r]:!0}),this["md-table-advanced-change"].emit({type:"multi-select",rows:Object.keys(this.selected).map(e=>+e)})):o?this.clearSelection():(this.selected={[r]:!0},this["md-table-advanced-change"].emit({type:"select",index:r})),this.requestUpdate("selected")}clearSelection(){this.selected={},this.requestUpdate("selected")}collapseToggle(e,t){e.stopPropagation(),this.expandedRowIdx[t]?(delete this.expandedRowIdx[t],this["md-table-advanced-change"].emit({type:"collapse",row:t})):(this.expandedRowIdx[t]=!0,this["md-table-advanced-change"].emit({type:"expand",row:t})),this.clearSelection(),this.requestUpdate()}render(){if(this.error)return l.html` <div>${this.error}</div> `;const{head:e}=this.tableConfig,t=Object(s.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return l.html`
2
- <div class="md-table-advanced">
3
- <slot></slot>
4
- <table class=${t} summary=${Object(d.ifDefined)(null==e?void 0:e.summary)}>
5
- ${(null==e?void 0:e.caption)?l.html`
6
- <caption>
7
- ${null==e?void 0:e.caption}
8
- ${(null==e?void 0:e.tableDescription)?l.html` <span style="position: absolute; top: -30em">${null==e?void 0:e.tableDescription}</span> `:n.nothing}
9
- </caption>
10
- `:(null==e?void 0:e.tableDescription)?l.html`
11
- <caption>
12
- <span style="position: absolute; top: -30em">${null==e?void 0:e.tableDescription}</span>
13
- </caption>
14
- `:n.nothing}
15
- ${this.renderHead()} ${this.renderBody()}
16
- </table>
17
- </div>
18
- `}ariaSortOrder(e){return"ascending"===e||"descending"===e?e:"none"}renderHead(){let e=n.nothing;const t=this.COLS.reduce((e,t)=>!!t.group||e,!1);if(t){let t="";e=l.html`
19
- ${this.COLS.map(e=>e.group?t!=e.group.name?(t=e.group.name,l.html` <colgroup span=${e.group.length}></colgroup> `):void 0:l.html` <col /> `)}
20
- <tr tabindex="0">
21
- ${this.COLS.map(e=>e.group?t!=e.group.name?(t=e.group.name,l.html`
22
- <th colspan=${e.group.length} scope="colgroup" title="${e.group.name}">
23
- <div class="head-inner-cell">
24
- <span>${e.group.name}</span>
25
- ${this.renderColResize(e)}
26
- </div>
27
- </th>
28
- `):void 0:this.renderCol(e,2))}
29
- </tr>
30
- `}const r=l.html`
31
- <tr tabindex="0">
32
- ${this.COLS.map(e=>t?e.group?this.renderCol(e):void 0:this.renderCol(e))}
33
- </tr>
34
- `;return l.html`
35
- <thead>
36
- ${e} ${r}
37
- </thead>
38
- `}sortIconTemplate(e){return"ascending"===e?l.html`<md-icon name="sort-descending-bold" size="16" iconSet="momentumDesign"></md-icon>`:"descending"===e?l.html`<md-icon name="sort-ascending-bold" size="16" iconSet="momentumDesign"></md-icon>`:l.html`<md-icon name="unsorted-bold" size="16" iconSet="momentumDesign"></md-icon>`}renderCol(e,t){var r,o;const i=null===(o=null===(r=e.filter)||void 0===r?void 0:r.list[e.filter.selectedIndex])||void 0===o?void 0:o.input,a=Object(s.classMap)({ascending:"ascending"==e.sort,descending:"descending"==e.sort});return l.html`
39
- <th
40
- rowspan=${Object(d.ifDefined)(t)}
41
- width=${Object(d.ifDefined)(e.width?e.width:e.options.width)}
42
- scope="col"
43
- part="head-col"
44
- aria-sort=${this.ariaSortOrder(e.sort)}
45
- title="${e.options.title}"
46
- class=${"col-index-"+e.index}
47
- >
48
- <!-- DRAG -->
49
- ${this.renderColDrag(e)}
50
-
51
- <div class="head-inner-cell">
52
- <!-- SORT -->
53
- ${e.sorter?l.html`
54
- <button class="sortable ${a}" @click=${()=>this.sort(e)}>
55
- ${e.options.title} ${this.sortIconTemplate(e.sort)}
56
- </button>
57
- `:l.html` <span>${e.options.title}</span> `}
58
-
59
- <!-- FILTER -->
60
- ${e.filter?l.html`
61
- <div class="filter-wrap">
62
- ${e.filter.active?l.html`
63
- <md-icon
64
- class="filter-active"
65
- name="filter-bold"
66
- size="16"
67
- iconSet="momentumDesign"
68
- ></md-icon>
69
- `:n.nothing}
70
- <md-menu-overlay placement="bottom" class="filter" custom-width="188px">
71
- <md-button class="filter-icon" slot="menu-trigger" color="color-none" size="size-none">
72
- <md-icon slot="icon" name="filter-bold" size="16" iconSet="momentumDesign"></md-icon>
73
- </md-button>
74
- <div class="filter-menu" style="width: 100%;">
75
- <select
76
- name="filter-type"
77
- @change=${t=>{e.filter.selectedIndex=t.target.value,this.updCols(),this.filter(e)}}
78
- >
79
- ${e.filter.list.map((t,r)=>l.html`
80
- <option value=${r} ?selected=${e.filter.selectedIndex==r}>${t.label}</option>
81
- `)}
82
- </select>
83
- <input
84
- type="text"
85
- placeholder=${i.placeholder}
86
- maxlength=${Object(d.ifDefined)(i.maxlength)}
87
- pattern=${Object(d.ifDefined)(i.pattern)}
88
- .value=${e.filter.input}
89
- @input=${t=>{e.filter.input=t.target.value,this.updCols(),this.filter(e)}}
90
- />
91
- </div>
92
- </md-menu-overlay>
93
- </div>
94
- `:n.nothing}
95
-
96
- <!-- RESIZE -->
97
- ${this.renderColResize(e)}
98
- </div>
99
- </th>
100
- `}renderColDrag(e){return this.tableConfig.cols.isDraggable?l.html`
101
- <div
102
- draggable="true"
103
- class="drag-area-col ${Object(s.classMap)({drag:-1!=this.dragCol,over:this.dropCol==e.index&&this.dropCol!=this.dragCol})}"
104
- @dragstart=${t=>{this.isResizing||-1!=this.dragRow||(this.dragCol=e.index,t.dataTransfer.setDragImage(t.target.parentNode,0,0))}}
105
- @dragenter=${()=>{this.isResizing||-1!=this.dragRow||(this.dropCol=e.index)}}
106
- @dragend=${()=>this.onDropCol()}
107
- ></div>
108
- `:n.nothing}renderColResize(e){return this.tableConfig.cols.isResizable?l.html`
109
- ${e.index>0?l.html`
110
- <div class="resize" draggable="true" @dragstart=${t=>this.onResize(t,e)}></div>
111
- `:n.nothing}
112
- `:n.nothing}renderBody(){let e=this.ROWS.map((e,t)=>({cells:e,idx:t,idxDrag:t,collapse:"none",first:0===t,isGhost:!1,children:[]}));const t=this.COLS.length;e=e.filter(e=>{var r;for(let o=0;o<t;o++){const t=this.COLS[o];if(null===(r=t.filter)||void 0===r?void 0:r.active){if(!t.filter.list[t.filter.selectedIndex].predicate(e.cells[o].text,t.filter.input))return!1}}return!0});const r=this.COLS.find(e=>"default"!=e.sort);if(r){const t=this.ROWS.map((e,t)=>({v:e[r.index].text,i:t})),o="ascending"==r.sort?1:-1;let i=[];if("byNumber"==r.sorter)i=t.sort((e,t)=>1==o?+e.v-+t.v:+t.v-+e.v);else if("byString"==r.sorter)i=t.sort((e,t)=>e.v==t.v?0:e.v>t.v?o:-o);else if("function"==typeof r.sorter){const e=r.sorter;i=t.sort((t,r)=>e(t.v,r.v,o))}e=i.map(t=>e[t.i])}const o=this.COLS.find(e=>e.isCollapsable);if(o){const t=o.index,r=e.reduce((e,r)=>{const o=r.cells[t].text,i=e.find(e=>e.key==o);return i?(r.collapse="child",i.children.push(r)):e.push({key:o,root:r,children:[]}),e},[]);e=[],r.forEach(t=>{e.push(t.root),t.root.collapse=0==t.children.length?"none":this.expandedRowIdx[t.root.idx]?"expanded":"collapsed",t.root.children=t.children})}return this.drops.forEach(({0:t,1:r})=>{e.splice(r,0,e.splice(t,1)[0])}),e.forEach((e,t)=>e.idxDrag=t),-1!=this.dragRow&&(e[this.dragRow].isGhost=!0,-1!=this.dropRow&&e.splice(this.dropRow,0,e.splice(this.dragRow,1)[0])),l.html`
113
- <tbody>
114
- ${e.map(t=>{const r=e.length,o=t.children.length>0&&"expanded"==t.collapse&&!t.isGhost;return l.html`
115
- ${this.renderRow(t,r)} ${o?t.children.map(e=>this.renderRow(e,r)):n.nothing}
116
- `})}
117
- </tbody>
118
- `}renderRow(e,t){const r=Object.prototype.hasOwnProperty.call(this.selected,e.idx),o=Object(s.classMap)({selected:r,selectable:this.isSelectable&&!r,ghost:e.isGhost});return l.html`
119
- <tr
120
- class=${o}
121
- tabindex=${Object(d.ifDefined)("true"===this.isRowFocusable?"0":void 0)}
122
- part=${e.first?"first-row":"row"}
123
- @click=${({shiftKey:t,metaKey:r})=>{this.isSelectable&&this.selectRow({row:e,shiftKey:t,metaKey:r})}}
124
- >
125
- ${e.cells.map((r,o)=>{var i;const a=this.COLS[o];let s=r.text;const d=r.template;d&&(s=d.templateCb?l.html`
126
- ${f({cb:d.templateCb,insertIndex:d.insertIndex,template:d.template,content:r.text,row:e.idx,col:o})}
127
- `:l.html` ${Object(c.templateContent)(d.template)} `,-1!=d.insertIndex&&(s=l.html`
128
- ${d.insertIndex>0?r.text.substring(0,d.insertIndex):n.nothing} ${s}
129
- ${d.insertIndex<r.text.length-1?r.text.substring(d.insertIndex):n.nothing}
130
- `));const h=(null===(i=this.tableConfig.rows)||void 0===i?void 0:i.isDraggable)&&"child"!=e.collapse,p=h&&-1!=this.dragRow&&this.dragRow!=e.idxDrag,b=h&&0==o,g=l.html`
131
- <div
132
- class="inner-cell"
133
- draggable="false"
134
- @dragstart=${()=>{this.isResizing||-1!=this.dragCol||(this.dragRow=e.idxDrag)}}
135
- @dragend=${()=>this.onDropRow()}
136
- >
137
- ${p?l.html`
138
- <div
139
- class="drag-area top"
140
- @dragenter=${()=>{if(0==this.dragRow){const t=e.idxDrag-1;this.dropRow=t>=0?t:0}else this.dropRow=e.idxDrag}}
141
- ></div>
142
- <div
143
- class="drag-area bottom"
144
- @dragenter=${()=>{if(0==this.dragRow)this.dropRow=e.idxDrag;else{const r=e.idxDrag+1;this.dropRow=r<t?r:t-1}}}
145
- ></div>
146
- `:n.nothing}
147
- ${b?l.html`
148
- <md-icon
149
- class="drag-handle"
150
- @mousedown=${e=>{this.isResizing||-1!=this.dragCol||(this.dragRowElem=e.target.parentNode,this.dragRowElem.setAttribute("draggable","true"))}}
151
- name="dragger-vertical-bold"
152
- size="16"
153
- iconSet="momentumDesign"
154
- >
155
- </md-icon>
156
- `:n.nothing}
157
- ${a.isCollapsable?l.html`
158
- ${"expanded"==e.collapse||"collapsed"==e.collapse?l.html`
159
- <button class="row-collapsible" @click=${t=>this.collapseToggle(t,e.idx)}>
160
- ${"collapsed"==e.collapse?l.html` <md-icon name="plus-bold" size="12" iconSet="momentumDesign"></md-icon> `:l.html` <md-icon name="minus-bold" size="12" iconSet="momentumDesign"></md-icon> `}
161
- </button>
162
- `:n.nothing}
163
- <span>${"child"==e.collapse?n.nothing:s}</span>
164
- `:l.html` <span>${s}</span> `}
165
- </div>
166
- `;return a.options.isHeader?l.html` <th part="cell-ishead" scope="row" title="${r.text}">${g}</th> `:l.html` <td part=${0===o?"first-cell":"cell"} title="${r.text}">${g}</td> `})}
167
- </tr>
168
- `}static get styles(){return[a.a,b]}};y([Object(l.property)({attribute:"config"})],t.prototype,"config",void 0),y([Object(l.property)({attribute:"data"})],t.prototype,"data",void 0),y([Object(l.property)({type:String})],t.prototype,"isRowFocusable",void 0),y([(e,t)=>{const r={get(){return new m(this,void 0!==t?t:e.key)},enumerable:!0,configurable:!0};return void 0!==t?Object.defineProperty(e,t,r):{kind:"method",placement:"prototype",key:e.key,descriptor:r}}],t.prototype,"md-table-advanced-change",void 0),y([Object(l.internalProperty)()],t.prototype,"tableConfig",void 0),y([Object(l.internalProperty)()],t.prototype,"tableData",void 0),y([Object(l.internalProperty)()],t.prototype,"error",void 0),y([Object(l.internalProperty)()],t.prototype,"COLS",void 0),y([Object(l.internalProperty)()],t.prototype,"ROWS",void 0),y([Object(l.internalProperty)()],t.prototype,"dragRow",void 0),y([Object(l.internalProperty)()],t.prototype,"dropRow",void 0),y([Object(l.internalProperty)()],t.prototype,"drops",void 0),y([Object(l.internalProperty)()],t.prototype,"dragCol",void 0),y([Object(l.internalProperty)()],t.prototype,"dropCol",void 0),y([Object(l.queryAll)("tr[tabindex]")],t.prototype,"tableRaws",void 0),y([g(500)],t.prototype,"filter",null),t=y([Object(o.a)("md-table-advanced")],t),e.ELEMENT=t}(w||(w={}))}}]);