@watermarkinsights/ripple 5.22.0-alpha.1 → 5.22.0-alpha.3

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 (272) hide show
  1. package/dist/cjs/{app-globals-e761e183.js → app-globals-99c2f8e9.js} +1 -1
  2. package/dist/cjs/{chartFunctions-369d5c6e.js → chartFunctions-d9aa9891.js} +39 -0
  3. package/dist/cjs/index-788526f5.js +10 -2
  4. package/dist/cjs/{interfaces-85d78ae9.js → interfaces-069f135e.js} +21 -0
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/priv-calendar.cjs.entry.js +2 -2
  7. package/dist/{ripple/p-71a3be1c.entry.js → cjs/priv-chart-popover-old.cjs.entry.js} +145 -1
  8. package/dist/{ripple/p-0eb56759.entry.js → cjs/priv-chart-popover_2.cjs.entry.js} +175 -1
  9. package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
  10. package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
  11. package/dist/cjs/priv-option-list.cjs.entry.js +1 -1
  12. package/dist/cjs/ripple.cjs.js +2 -2
  13. package/dist/cjs/wm-action-menu_2.cjs.entry.js +3 -3
  14. package/dist/cjs/wm-button.cjs.entry.js +2 -2
  15. package/dist/cjs/wm-chart-bar.cjs.entry.js +300 -0
  16. package/dist/cjs/wm-chart.cjs.entry.js +3 -3
  17. package/dist/cjs/wm-date-range.cjs.entry.js +5 -5
  18. package/dist/cjs/wm-datepicker.cjs.entry.js +5 -5
  19. package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
  20. package/dist/cjs/wm-file.cjs.entry.js +1 -1
  21. package/dist/cjs/wm-flyout.cjs.entry.js +1 -1
  22. package/dist/cjs/wm-input.cjs.entry.js +1 -1
  23. package/dist/cjs/wm-line-chart.cjs.entry.js +3 -3
  24. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +4 -4
  25. package/dist/cjs/wm-modal_3.cjs.entry.js +4 -4
  26. package/dist/cjs/wm-navigation_3.cjs.entry.js +4 -4
  27. package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
  28. package/dist/cjs/wm-nested-select.cjs.entry.js +3 -3
  29. package/dist/cjs/wm-optgroup.cjs.entry.js +1 -1
  30. package/dist/cjs/wm-option_2.cjs.entry.js +5 -5
  31. package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
  32. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +4 -4
  33. package/dist/cjs/wm-search.cjs.entry.js +2 -2
  34. package/dist/cjs/wm-snackbar.cjs.entry.js +2 -2
  35. package/dist/cjs/wm-tab-item_3.cjs.entry.js +26 -26
  36. package/dist/cjs/wm-tag-input.cjs.entry.js +2 -2
  37. package/dist/cjs/wm-textarea.cjs.entry.js +1 -1
  38. package/dist/cjs/wm-timepicker.cjs.entry.js +2 -2
  39. package/dist/cjs/wm-toggletip.cjs.entry.js +3 -3
  40. package/dist/cjs/wm-uploader.cjs.entry.js +2 -2
  41. package/dist/collection/collection-manifest.json +3 -0
  42. package/dist/collection/components/charts/chartFunctions.js +36 -1
  43. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +11 -9
  44. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +190 -112
  45. package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +961 -0
  46. package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +262 -0
  47. package/dist/collection/components/charts/wm-chart/wm-chart.js +2 -2
  48. package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.css +1071 -0
  49. package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +444 -0
  50. package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.css +903 -0
  51. package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +155 -0
  52. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +2 -2
  53. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +2 -2
  54. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
  55. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
  56. package/dist/collection/components/datepickers/wm-date-range.js +5 -5
  57. package/dist/collection/components/datepickers/wm-datepicker.js +5 -5
  58. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +1 -1
  59. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
  60. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
  61. package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
  62. package/dist/collection/components/selects/wm-select/wm-select.js +4 -4
  63. package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
  64. package/dist/collection/components/wm-button/wm-button.js +1 -1
  65. package/dist/collection/components/wm-file/wm-file.js +1 -1
  66. package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
  67. package/dist/collection/components/wm-flyout/wm-flyout.js +1 -1
  68. package/dist/collection/components/wm-input/wm-input.js +1 -1
  69. package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
  70. package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
  71. package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
  72. package/dist/collection/components/wm-modal/wm-modal.js +2 -2
  73. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
  74. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
  75. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
  76. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
  77. package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
  78. package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
  79. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
  80. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
  81. package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
  82. package/dist/collection/components/wm-search/wm-search.js +2 -2
  83. package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
  84. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +2 -2
  85. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +22 -22
  86. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +4 -2
  87. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
  88. package/dist/collection/components/wm-tag-input/wm-tag-input.js +2 -2
  89. package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
  90. package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
  91. package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
  92. package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
  93. package/dist/collection/dev/chart-bar.js +110 -0
  94. package/dist/collection/global/interfaces.js +19 -0
  95. package/dist/esm/{app-globals-209e6bae.js → app-globals-213e1dce.js} +1 -1
  96. package/dist/esm/{chartFunctions-02a60556.js → chartFunctions-f22160b5.js} +36 -1
  97. package/dist/esm/index-130e07bb.js +10 -2
  98. package/dist/esm/{interfaces-cc5b177f.js → interfaces-16deca17.js} +20 -1
  99. package/dist/esm/loader.js +2 -2
  100. package/dist/esm/priv-calendar.entry.js +2 -2
  101. package/dist/esm/priv-chart-popover-old.entry.js +141 -0
  102. package/dist/esm/priv-chart-popover_2.entry.js +170 -0
  103. package/dist/esm/priv-navigator-button.entry.js +1 -1
  104. package/dist/esm/priv-navigator-item.entry.js +1 -1
  105. package/dist/esm/priv-option-list.entry.js +1 -1
  106. package/dist/esm/ripple.js +2 -2
  107. package/dist/esm/wm-action-menu_2.entry.js +3 -3
  108. package/dist/esm/wm-button.entry.js +2 -2
  109. package/dist/esm/wm-chart-bar.entry.js +296 -0
  110. package/dist/esm/wm-chart.entry.js +3 -3
  111. package/dist/esm/wm-date-range.entry.js +5 -5
  112. package/dist/esm/wm-datepicker.entry.js +5 -5
  113. package/dist/esm/wm-file-list.entry.js +1 -1
  114. package/dist/esm/wm-file.entry.js +1 -1
  115. package/dist/esm/wm-flyout.entry.js +1 -1
  116. package/dist/esm/wm-input.entry.js +1 -1
  117. package/dist/esm/wm-line-chart.entry.js +3 -3
  118. package/dist/esm/wm-modal-pss_3.entry.js +4 -4
  119. package/dist/esm/wm-modal_3.entry.js +4 -4
  120. package/dist/esm/wm-navigation_3.entry.js +4 -4
  121. package/dist/esm/wm-navigator.entry.js +1 -1
  122. package/dist/esm/wm-nested-select.entry.js +3 -3
  123. package/dist/esm/wm-optgroup.entry.js +1 -1
  124. package/dist/esm/wm-option_2.entry.js +5 -5
  125. package/dist/esm/wm-pagination.entry.js +1 -1
  126. package/dist/esm/wm-progress-indicator_3.entry.js +4 -4
  127. package/dist/esm/wm-search.entry.js +2 -2
  128. package/dist/esm/wm-snackbar.entry.js +2 -2
  129. package/dist/esm/wm-tab-item_3.entry.js +26 -26
  130. package/dist/esm/wm-tag-input.entry.js +2 -2
  131. package/dist/esm/wm-textarea.entry.js +1 -1
  132. package/dist/esm/wm-timepicker.entry.js +2 -2
  133. package/dist/esm/wm-toggletip.entry.js +3 -3
  134. package/dist/esm/wm-uploader.entry.js +2 -2
  135. package/dist/esm-es5/{app-globals-209e6bae.js → app-globals-213e1dce.js} +1 -1
  136. package/dist/esm-es5/{chartFunctions-02a60556.js → chartFunctions-f22160b5.js} +1 -1
  137. package/dist/esm-es5/index-130e07bb.js +1 -1
  138. package/dist/esm-es5/interfaces-16deca17.js +1 -0
  139. package/dist/esm-es5/loader.js +1 -1
  140. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  141. package/dist/esm-es5/priv-chart-popover-old.entry.js +1 -0
  142. package/dist/esm-es5/priv-chart-popover_2.entry.js +1 -0
  143. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  144. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  145. package/dist/esm-es5/priv-option-list.entry.js +1 -1
  146. package/dist/esm-es5/ripple.js +1 -1
  147. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  148. package/dist/esm-es5/wm-button.entry.js +1 -1
  149. package/dist/esm-es5/wm-chart-bar.entry.js +1 -0
  150. package/dist/esm-es5/wm-chart.entry.js +1 -1
  151. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  152. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  153. package/dist/esm-es5/wm-file-list.entry.js +1 -1
  154. package/dist/esm-es5/wm-file.entry.js +1 -1
  155. package/dist/esm-es5/wm-flyout.entry.js +1 -1
  156. package/dist/esm-es5/wm-input.entry.js +1 -1
  157. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  158. package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
  159. package/dist/esm-es5/wm-modal_3.entry.js +1 -1
  160. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  161. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  162. package/dist/esm-es5/wm-nested-select.entry.js +1 -1
  163. package/dist/esm-es5/wm-optgroup.entry.js +1 -1
  164. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  165. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  166. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  167. package/dist/esm-es5/wm-search.entry.js +1 -1
  168. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  169. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  170. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  171. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  172. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  173. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  174. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  175. package/dist/ripple/{p-7176d77c.system.entry.js → p-04f8cae1.system.entry.js} +1 -1
  176. package/dist/ripple/{p-be4f76b4.entry.js → p-093dd5b3.entry.js} +1 -1
  177. package/dist/ripple/{p-f1dea7a8.system.entry.js → p-0b2a0825.system.entry.js} +1 -1
  178. package/dist/ripple/p-0b5e5682.js +1 -0
  179. package/dist/ripple/{p-4e9f0f73.system.entry.js → p-1124978e.system.entry.js} +1 -1
  180. package/dist/ripple/{p-80554ae6.entry.js → p-12eaf2d7.entry.js} +1 -1
  181. package/dist/ripple/p-15bd3b98.entry.js +1 -0
  182. package/dist/ripple/{p-f3216137.entry.js → p-1b7774ab.entry.js} +1 -1
  183. package/dist/ripple/p-1c133402.system.entry.js +1 -0
  184. package/dist/ripple/{p-e73d5896.entry.js → p-1c86be31.entry.js} +1 -1
  185. package/dist/ripple/{p-886b50fb.entry.js → p-21114d99.entry.js} +1 -1
  186. package/dist/ripple/{p-466e929a.system.entry.js → p-221dedba.system.entry.js} +1 -1
  187. package/dist/ripple/{p-ecafbfba.entry.js → p-22cbc43b.entry.js} +1 -1
  188. package/dist/ripple/{p-6eeec16f.entry.js → p-241c2d63.entry.js} +1 -1
  189. package/dist/ripple/p-25e10302.system.js +1 -0
  190. package/dist/ripple/{p-1ea4427b.entry.js → p-28890409.entry.js} +1 -1
  191. package/dist/ripple/{p-8f6aa68c.system.entry.js → p-2b15945c.system.entry.js} +1 -1
  192. package/dist/ripple/p-30874e40.entry.js +1 -0
  193. package/dist/ripple/{p-a0acef05.system.entry.js → p-30c0aa58.system.entry.js} +1 -1
  194. package/dist/ripple/{p-4cc3a15f.entry.js → p-31468e67.entry.js} +1 -1
  195. package/dist/ripple/{p-57abd67f.entry.js → p-366f253f.entry.js} +1 -1
  196. package/dist/ripple/{p-78339dc5.system.entry.js → p-37fbdcf9.system.entry.js} +1 -1
  197. package/dist/ripple/{p-579e1c9d.system.entry.js → p-3d1098fb.system.entry.js} +1 -1
  198. package/dist/ripple/p-403e834e.entry.js +1 -0
  199. package/dist/ripple/{p-b3682bbf.system.entry.js → p-43b61559.system.entry.js} +1 -1
  200. package/dist/ripple/{p-1f71cd3d.entry.js → p-4ba001c1.entry.js} +1 -1
  201. package/dist/ripple/{p-86113458.system.entry.js → p-6643047f.system.entry.js} +1 -1
  202. package/dist/ripple/{p-f496570f.system.entry.js → p-6a18191e.system.entry.js} +1 -1
  203. package/dist/ripple/{p-f7543de4.entry.js → p-6ae45e19.entry.js} +1 -1
  204. package/dist/ripple/{p-52809f00.entry.js → p-6e6a9598.entry.js} +1 -1
  205. package/dist/ripple/{p-4b427510.entry.js → p-72643f00.entry.js} +1 -1
  206. package/dist/ripple/{p-b1b9f0de.system.entry.js → p-743536ae.system.entry.js} +1 -1
  207. package/dist/ripple/{p-2e6a00b8.system.entry.js → p-7568137d.system.entry.js} +1 -1
  208. package/dist/ripple/{p-0339b464.entry.js → p-7781f941.entry.js} +1 -1
  209. package/dist/ripple/{p-241e4847.system.entry.js → p-780de72e.system.entry.js} +1 -1
  210. package/dist/ripple/p-784fc89d.system.js +1 -0
  211. package/dist/ripple/p-7a4090bc.system.entry.js +1 -0
  212. package/dist/ripple/{p-be8f0d4c.entry.js → p-7a6d6c76.entry.js} +1 -1
  213. package/dist/ripple/{p-c9c76589.entry.js → p-7cd03a52.entry.js} +1 -1
  214. package/dist/ripple/{p-2fc989aa.system.entry.js → p-87992e3d.system.entry.js} +1 -1
  215. package/dist/ripple/{p-0c737405.system.entry.js → p-8bb49d8f.system.entry.js} +1 -1
  216. package/dist/ripple/{p-4edc18b1.system.entry.js → p-8c378a26.system.entry.js} +1 -1
  217. package/dist/ripple/{p-6d0f7f1d.system.entry.js → p-8d858325.system.entry.js} +1 -1
  218. package/dist/ripple/{p-5f54cc72.entry.js → p-8f96f4f8.entry.js} +1 -1
  219. package/dist/ripple/{p-f5c59ec1.entry.js → p-909f8797.entry.js} +1 -1
  220. package/dist/ripple/{p-0ed21cab.system.entry.js → p-91145304.system.entry.js} +1 -1
  221. package/dist/ripple/{p-cc85cd9b.entry.js → p-94ec4e2c.entry.js} +1 -1
  222. package/dist/ripple/{p-e9038796.entry.js → p-966f2c9e.entry.js} +1 -1
  223. package/dist/ripple/{p-ab72ce56.system.entry.js → p-984b3aa2.system.entry.js} +1 -1
  224. package/dist/ripple/{p-de03a626.entry.js → p-99f4dc24.entry.js} +1 -1
  225. package/dist/ripple/{p-ad409bbe.system.entry.js → p-9ea227e3.system.entry.js} +1 -1
  226. package/dist/ripple/{p-87e4a0d5.system.entry.js → p-9f089a36.system.entry.js} +1 -1
  227. package/dist/ripple/{p-5b225f21.system.entry.js → p-a7bddbfd.system.entry.js} +1 -1
  228. package/dist/ripple/p-b00cdcc6.entry.js +1 -0
  229. package/dist/ripple/{p-cd77c8a1.system.entry.js → p-b2875298.system.entry.js} +1 -1
  230. package/dist/ripple/{p-22b8d0a4.system.entry.js → p-b41dfeea.system.entry.js} +1 -1
  231. package/dist/ripple/{p-22cbfae3.entry.js → p-b52e3001.entry.js} +1 -1
  232. package/dist/ripple/{p-822d0762.system.entry.js → p-b6d2b2c9.system.entry.js} +1 -1
  233. package/dist/ripple/{p-d8e7f0ab.system.entry.js → p-b8d69c73.system.entry.js} +1 -1
  234. package/dist/ripple/{p-5a38e30d.system.entry.js → p-bd7a5b99.system.entry.js} +1 -1
  235. package/dist/ripple/{p-6324b988.entry.js → p-c1cbb630.entry.js} +1 -1
  236. package/dist/ripple/{p-65b87f9b.entry.js → p-c24b745f.entry.js} +1 -1
  237. package/dist/ripple/p-c464dfd1.entry.js +1 -0
  238. package/dist/ripple/{p-b5bfb1a3.system.entry.js → p-c5c98974.system.entry.js} +1 -1
  239. package/dist/ripple/{p-d626f310.system.js → p-c604795c.system.js} +1 -1
  240. package/dist/ripple/{p-07dd157d.entry.js → p-cc0cbbac.entry.js} +1 -1
  241. package/dist/ripple/{p-223efa2f.system.entry.js → p-d2ed3598.system.entry.js} +1 -1
  242. package/dist/ripple/{p-d05bd699.entry.js → p-d6e81f61.entry.js} +1 -1
  243. package/dist/ripple/{p-365ab12b.entry.js → p-e0743224.entry.js} +1 -1
  244. package/dist/ripple/{p-cc1ab21b.entry.js → p-e50d77b9.entry.js} +1 -1
  245. package/dist/ripple/{p-a2646792.system.entry.js → p-e5af888f.system.entry.js} +1 -1
  246. package/dist/ripple/p-e713ce44.system.js +1 -0
  247. package/dist/ripple/p-efa7cdcc.js +1 -0
  248. package/dist/ripple/{p-d66d99cd.system.entry.js → p-f381b796.system.entry.js} +1 -1
  249. package/dist/ripple/{p-44341b83.js → p-f45addc8.js} +1 -1
  250. package/dist/ripple/ripple.esm.js +1 -1
  251. package/dist/ripple/ripple.js +1 -1
  252. package/dist/types/components/charts/chartFunctions.d.ts +9 -1
  253. package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +20 -11
  254. package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +26 -0
  255. package/dist/types/components/charts/wm-chart/wm-chart.d.ts +1 -1
  256. package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +59 -0
  257. package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +19 -0
  258. package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +1 -1
  259. package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +0 -2
  260. package/dist/types/components.d.ts +126 -6
  261. package/dist/types/global/interfaces.d.ts +41 -0
  262. package/package.json +2 -2
  263. package/dist/cjs/priv-chart-popover.cjs.entry.js +0 -145
  264. package/dist/esm/priv-chart-popover.entry.js +0 -141
  265. package/dist/esm-es5/interfaces-cc5b177f.js +0 -1
  266. package/dist/esm-es5/priv-chart-popover.entry.js +0 -1
  267. package/dist/ripple/p-161b8e0b.system.js +0 -1
  268. package/dist/ripple/p-2732bddd.js +0 -1
  269. package/dist/ripple/p-2ecde7a9.system.js +0 -1
  270. package/dist/ripple/p-3ef6eadd.entry.js +0 -1
  271. package/dist/ripple/p-42fa7a77.system.js +0 -1
  272. package/dist/ripple/p-9f10c71b.js +0 -1
@@ -27,7 +27,7 @@ export class ModalPssFooter {
27
27
  parentModal.emitSecondaryEvent();
28
28
  }
29
29
  render() {
30
- return (h("div", { key: 'f3ed1135a2ccfa49c16dd66daece5bfb993c7534', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '4403427b56f79606065a754d646bf18bc912db9e', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '36862f60cdcacb441672d34120f6badc3bee9048', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '07cba5e6270813ccd39429e8924bdc57f686ef5d', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: '05b061ea376bd9b309158b5e59f1058c351efb22', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.primaryText))));
30
+ return (h("div", { key: 'c5e96e3dd8c5607dbc7ce556f867ee5064b71be7', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: 'f04c0f6aac32c7c22ec20314e6b9e668edf6c86d', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'bf253fca85c19b0a1912cc741fd2f2dca6704255', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: 'bad452e32beeeec8eb979abb6ad3bb22a3d6028e', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: '1ed0e75f8941402d946ca43706130e886d888ef4', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.primaryText))));
31
31
  }
32
32
  static get is() { return "wm-modal-pss-footer"; }
33
33
  static get originalStyleUrls() {
@@ -25,7 +25,7 @@ export class ModalPssHeader {
25
25
  // this.headingElement.focus();
26
26
  // }
27
27
  render() {
28
- return (h(Host, { key: '92583f333f5795b01afa63e9cf083f04a4f563bf' }, h("div", { key: '70e0f04cc75aaed989f813d9a14c741aaee77701', class: "wm-wrapper" }, h("div", { key: '6f1831c376e983766e60257aec2ced5e99b3996d' }, h("h2", { key: 'a1c39702cd6a48914180013835572e4fbead6ed8', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '30ad4c11aad67657ac9d8ac97c91cc1a419bbf79', class: "subtitle" }, this.subheading))), h("wm-button", { key: 'b2bc0b091b769973801080ae1ee63a7b13ffcee9', "button-type": "navigational", icon: "f156", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
28
+ return (h(Host, { key: 'dbff7f22b3dd304ba864e9716d0fea9c5eab2e24' }, h("div", { key: 'c2babf72f0672eb88841914f8e34d30748fb13e1', class: "wm-wrapper" }, h("div", { key: 'fda1bc5a5614d73cb220da1c76a72bb08dae4c46' }, h("h2", { key: 'b2d78431c14859efd96e004b99147578feab4b8b', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: 'eb069b112055c5c585473327080e8206e8f98c46', class: "subtitle" }, this.subheading))), h("wm-button", { key: '5e90a81ddea508b3a3d17566da1a0f80cad65476', "button-type": "navigational", icon: "f156", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
29
29
  }
30
30
  static get is() { return "wm-modal-pss-header"; }
31
31
  static get originalStyleUrls() {
@@ -115,9 +115,9 @@ export class ModalPss {
115
115
  }
116
116
  }
117
117
  render() {
118
- return (h(Host, { key: 'ddf77d980c1751926c10fe86afebb9eef85dc9ac', class: `${this.open ? "" : "hide "}${"wm-" + this.modalType}`, role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.open ? 0 : null, onFocus: () => {
118
+ return (h(Host, { key: 'ac6959242ec893f9709b2416201a9ba597eef2ce', class: `${this.open ? "" : "hide "}${"wm-" + this.modalType}`, role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.open ? 0 : null, onFocus: () => {
119
119
  this.focusLastElement.emit();
120
- } }, h("div", { key: '0f422c764810c173e093a0c1c92a5248446b3a75', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: 'b15e362f110ca21ca9ba554b9b884c9db4af9138', class: "sr-only", tabIndex: 0, onFocus: () => {
120
+ } }, h("div", { key: 'd8f3e674a939cab6868715f716f49d5ba6da1e9f', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: 'f387fc9ad112426746c263c87ae5b9a184a031a1', class: "sr-only", tabIndex: 0, onFocus: () => {
121
121
  this.focusFirstElement.emit();
122
122
  } })));
123
123
  }
@@ -34,7 +34,7 @@ export class NavigationHamburger {
34
34
  this.wmNavigationHamburgerClicked.emit();
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: 'a43f96c6c9277bcbc28db3f54c1e6dac5a12c711', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: 'e8d172739a625abdd185201609f43660a43d92b4', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: '1e6cf4f1d121a4e5b04dcece6a00ac5cffbaecbb', class: "svg-icon svg-menu" }))));
37
+ return (h(Host, { key: '1b169365ecef2816543910f270889a1921ed3502', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: '8148f5deb298b9c2a143db9984e36733b03d0a35', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: '32f5160cab5eb1dc34275dd9cbb7a78cd2990b6e', class: "svg-icon svg-menu" }))));
38
38
  }
39
39
  static get is() { return "wm-navigation-hamburger"; }
40
40
  static get encapsulation() { return "shadow"; }
@@ -6,7 +6,7 @@ export class NavigationItem {
6
6
  this.active = undefined;
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: 'bf087268732555bdbe50c267f97c9f0858bba980', role: "listitem" }, h("a", { key: '2b6086ffd77e24e73ea262a9c730825cd9050e94', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: '3e2e6f675ad123a095e2ca41f575e988c7949395', class: "icon", "aria-hidden": "true" }, h("slot", { key: '7733614fd071798abf4f8b254293d34cacfd6c5c' })), h("div", { key: 'a5312a7a50264dbfa191ed1136e6433609c337a6', class: "text" }, this.text))));
9
+ return (h(Host, { key: '02bd2737c6645d35a8731940821624db4d63e1d6', role: "listitem" }, h("a", { key: '8fdb541089718f0ac0549da6ab4415389c010c36', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: '910e96868afc97cb19dc91aade7626e39b750e2e', class: "icon", "aria-hidden": "true" }, h("slot", { key: '5ddbe770001cac5df79b16249141364db172d256' })), h("div", { key: '6e4428b3292d847e79d7159149cece72dee59fcc', class: "text" }, this.text))));
10
10
  }
11
11
  static get is() { return "wm-navigation-item"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -96,9 +96,9 @@ export class Navigation {
96
96
  } }));
97
97
  }
98
98
  render() {
99
- return (h(Host, { key: '2d7f11924052f4438243237f1d38141f6652b944', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: 'f92b7cab8cd7e1c63e59cac31afd9efcfda4234f', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: '7fec0055e808b49676b8b589e59244b884545ea1', class: "tray" }, h("div", { key: '8ac1ae8da1054a6dceda08f751768de718080bde', class: "toggle-wrapper" }, h("wm-button", { key: 'e36fcb93366baef360df96298cb35c4576a9a916', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "#close" : "#menu", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
99
+ return (h(Host, { key: '815117725f45f3fae04ee2ac4f573cf7ccb8885c', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: '59416405b9566485d64ba1311e7f24dfca6d91a9', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: '98eee20d96ed81347847d7af866d9d5f48010638', class: "tray" }, h("div", { key: 'c65e733eac1eb49b69254bb19330226679e407e3', class: "toggle-wrapper" }, h("wm-button", { key: '2b8b764b6250a88959e4b263f81d6676b419f04e', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "#close" : "#menu", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
100
100
  this.open = !this.open;
101
- } })), h("ul", { key: '22ba6ec5ce572f1c04ccb45301659dde791f3115', class: "navlist" }, h("slot", { key: '3fa52b5bbe4e1346d90e5a556eeeabfeb9a7f4a0' }))), this.isCollapsible && (h("div", { key: 'e7738e6001e65f8e4fecdd775ea40d93b84cd4b4', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
101
+ } })), h("ul", { key: 'ae95f619a097413291d70f930f0fc4e97f5a5e37', class: "navlist" }, h("slot", { key: '833f7502a28f7ff833f7bdac17ad62e3dca9d12b' }))), this.isCollapsible && (h("div", { key: 'fdb8e1288416191cebc3557c79c089359634d315', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
102
102
  }
103
103
  static get is() { return "wm-navigation"; }
104
104
  static get encapsulation() { return "shadow"; }
@@ -9,7 +9,7 @@ export class PrivNavigatorButton {
9
9
  }
10
10
  render() {
11
11
  const { handleClick, altText } = this;
12
- return (h("button", { key: '37826c509d1b35d0e5ef9915749d521941251722', "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
12
+ return (h("button", { key: '574e7f4c213bb38d21c4efb62b73d3179799cbba', "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
13
13
  }
14
14
  static get is() { return "priv-navigator-button"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -16,7 +16,7 @@ export class PrivNavigatorItem {
16
16
  render() {
17
17
  const selectedClass = this.selected ? "selected" : "";
18
18
  const focusedClass = this.focused ? "focused" : "";
19
- return (h("div", { key: '7dba57536d9412d9f8865433056a2bcbde2f95aa', class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", { key: 'fcfc79489b88184203d8e4163f256e531de9bc67' })));
19
+ return (h("div", { key: 'd4247a1db863b58ea1204298648b99b59ce02387', class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", { key: '8e315a87aa1ab54c5a81e708c46194b59de6ee6b' })));
20
20
  }
21
21
  static get is() { return "priv-navigator-item"; }
22
22
  static get encapsulation() { return "shadow"; }
@@ -203,7 +203,7 @@ export class Pagination {
203
203
  render() {
204
204
  return (
205
205
  // do not render the component if there's only one page
206
- this.totalItems > this.itemsPerPage && (h("nav", { key: '6be7673743d44ea45076ea3a7a6bcd4e48d4837d', "aria-label": `${this.navigationLabel} ${this.getCurrentPagesInView()}. ${this.currentPageAnnouncement(this.currentPage)}` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { key: 'd67e8a638a0aad67828a625ac07e5559876b15e8', id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
206
+ this.totalItems > this.itemsPerPage && (h("nav", { key: '34ffd75c251b8044ceb255a113c71cd796ed3cc1', "aria-label": `${this.navigationLabel} ${this.getCurrentPagesInView()}. ${this.currentPageAnnouncement(this.currentPage)}` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { key: '4d60c8ad94a519dc78f670c93a8d09f722861698', id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
207
207
  }
208
208
  static get is() { return "wm-pagination"; }
209
209
  static get encapsulation() { return "shadow"; }
@@ -168,10 +168,10 @@ export class Search {
168
168
  * End search and find render helpers
169
169
  */
170
170
  render() {
171
- return (h(Host, { key: '54839cc6b1e6c142e3f60d01572f4645816ccf08' }, h("div", { key: '19d72e8d5c578328ca64819a289e974a279ee352', id: "wm-search-wrapper", class: `wm-search-wrapper ${this.searchType}` }, h("input", { key: '1cf69b8f9d3ec4e7fdb0fa6a391fd71c920c7c74', disabled: this.isDisabled, id: "wm-search-input", placeholder: this.placeholder, "aria-label": `${this.label ? this.label + ". " : ""}${intl.formatMessage({
171
+ return (h(Host, { key: 'a3636bdd9326beaba25db7b470d27cdbeb8403f9' }, h("div", { key: '2f1f51709653b0c56d003b05562a0a874451c5c5', id: "wm-search-wrapper", class: `wm-search-wrapper ${this.searchType}` }, h("input", { key: '57671b412397741fe67d1fff8ca5795532ea6e22', disabled: this.isDisabled, id: "wm-search-input", placeholder: this.placeholder, "aria-label": `${this.label ? this.label + ". " : ""}${intl.formatMessage({
172
172
  id: "search.typeToFilterResults",
173
173
  defaultMessage: "Type to filter the results",
174
- })}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '3495eb2351e9e51a114cb8680206196752623135', class: "svg-icon svg-search" }), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { key: '837a9c6a9c68d19c9bf4cb09158b22867036c128', id: "wm-search-live", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.resultsLiveRegion = el) }, this.announcement)), this.searchType === "find" && this.renderJumpToLink()));
174
+ })}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '6240e8b26fb69ee46e6942dc69cbdd4feca6b6a3', class: "svg-icon svg-search" }), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { key: 'f7cc16ffc7a7b03850a9dca6ac2cc2ee53833c51', id: "wm-search-live", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.resultsLiveRegion = el) }, this.announcement)), this.searchType === "find" && this.renderJumpToLink()));
175
175
  }
176
176
  static get is() { return "wm-search"; }
177
177
  static get encapsulation() { return "shadow"; }
@@ -145,11 +145,11 @@ export class Snackbar {
145
145
  }, onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, h("span", { "aria-hidden": "true" }, notification.link), notification.newWindow && h("div", { class: "svg-icon svg-open-in-new" })))), h("button", { id: `close-button-${notification.id}`, "aria-label": this.closeSnackMessage, class: "closesnack", tabindex: notification.link ? 0 : -1, onClick: () => this.snackDismissed(notification), onMouseEnter: (ev) => showTooltip("bottom", ev.target, globalMessages.close), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.isTabbing && showTooltip("bottom", ev.target, globalMessages.close), onBlur: () => hideTooltip() }, h("div", { class: "svg-icon svg-close" }))), h("div", { class: "sr-only", tabindex: notification.link ? 0 : -1, onFocus: () => notification.link && this.snackDismissed(notification) })))));
146
146
  }
147
147
  render() {
148
- return (h(Host, { key: 'd3e6bea353d66664559f6dce9fa1d3301f99e3db' }, h("div", { key: 'be5bf8d2ebbab807af66cc479929c3b696537fd8', ref: (el) => (this.snackAreaEl = el), class: {
148
+ return (h(Host, { key: '94ada273fd2638ee9e4ccec7915a8011628d0009' }, h("div", { key: '28d0856fbaf88e90aee407d6b3524ea19dfd42c0', ref: (el) => (this.snackAreaEl = el), class: {
149
149
  "list-wrapper": true,
150
150
  "user-is-tabbing": this.isTabbing,
151
151
  empty: this.parsedNotifications.length == 0,
152
- } }, this.renderSnackbars()), h("div", { key: 'defc7a78c6a890a4a9566f57ec55352ecc91dfa0', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
152
+ } }, this.renderSnackbars()), h("div", { key: '43445193d9a2eaef7492bbc63bf60a5cc44216cf', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
153
153
  }
154
154
  static get is() { return "wm-snackbar"; }
155
155
  static get encapsulation() { return "shadow"; }
@@ -27,9 +27,9 @@ export class TabItem {
27
27
  }
28
28
  render() {
29
29
  const isDark = this.parentTabList && this.parentTabList.customBackground == "dark";
30
- return (h(Host, { key: '32c6aac6411c25d4b82107b6334b1732a0ef2ffa', role: "presentation" }, h("li", { key: 'f6fc4ae969e7a767389b9addf613fb83f8185bae', class: `tab-item ${isDark ? "dark" : ""}`, role: "presentation" }, h("a", { key: '250ad48a22872b09adbf5bac7de1779ecc3a8a9b', class: `tab`, role: "tab", ref: (el) => (this.linkEl = el), id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1, onClick: this.tabClicked, onFocus: () => {
30
+ return (h(Host, { key: '0be5770e4b97845cae75e961888707fa0424cf51', role: "presentation" }, h("li", { key: '8dc34fc09ad87c512c0fde04b4ac615030c1441e', class: `tab-item ${isDark ? "dark" : ""}`, role: "presentation" }, h("a", { key: 'd8441f0971202b13685c5ce1183aafbcc20233e2', class: `tab`, role: "tab", ref: (el) => (this.linkEl = el), id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1, onClick: this.tabClicked, onFocus: () => {
31
31
  this.wmIntTabFocused.emit({ tabItem: this.el });
32
- } }, h("slot", { key: 'ab90abb21cb8617a158aa3dff4d77c7ac4d49b96' })))));
32
+ } }, h("slot", { key: '439a5046d729d0a6a82c1edb6def57c8fbf2e761' })))));
33
33
  }
34
34
  static get is() { return "wm-tab-item"; }
35
35
  static get encapsulation() { return "shadow"; }
@@ -27,9 +27,6 @@ export class TabList {
27
27
  const tabIds = this.tabItems.map((t) => t.tabId);
28
28
  return allPanels.filter((p) => tabIds.includes(p.tabId));
29
29
  }
30
- getPanel(tabId) {
31
- return this.panels.find((p) => p.tabId === tabId);
32
- }
33
30
  setSelected(id) {
34
31
  this.tabItems.map((tab) => (tab.selected = tab.tabId === id));
35
32
  const singlePanel = this.panels.length === 1 && this.tabItems.length > 1;
@@ -70,7 +67,7 @@ export class TabList {
70
67
  this.handleTabFocused(ev.detail.tabItem);
71
68
  }
72
69
  setAriaOnPanelAndTab(tab) {
73
- const panel = this.getPanel(tab.tabId);
70
+ const panel = this.panels.find((p) => p.tabId === tab.tabId);
74
71
  // If there's no panel, check for case where content is conditionally rendered in one panel, in which case attributes on all tabs should point to this single panel.
75
72
  if (!panel) {
76
73
  if (this.panels.length === 1) {
@@ -104,23 +101,26 @@ export class TabList {
104
101
  }
105
102
  handleKeydown(ev) {
106
103
  const key = ev.detail.key;
107
- const index = this.tabItems.indexOf(ev.detail.tabItem);
108
- if (key === "ArrowLeft" || key === "ArrowRight") {
109
- this.handleLeftRightArrow(index, key);
110
- }
111
- }
112
- handleLeftRightArrow(index, key) {
113
- if (key) {
114
- index = key === "ArrowLeft" ? index - 1 : index + 1;
115
- }
116
- if (index < 0) {
117
- index = this.tabItems.length - 1;
104
+ let index = this.tabItems.indexOf(ev.detail.tabItem);
105
+ // focusing panel on down arrow
106
+ if (key === "ArrowDown") {
107
+ const activePanel = this.panels.filter((p) => p.active)[0];
108
+ activePanel && activePanel.focus();
118
109
  }
119
- else if (index === this.tabItems.length) {
120
- index = 0;
110
+ else if (key === "ArrowLeft" || key === "ArrowRight") {
111
+ // focusing prev/next tab item on right/left arrow
112
+ if (key) {
113
+ index = key === "ArrowLeft" ? index - 1 : index + 1;
114
+ }
115
+ if (index < 0) {
116
+ index = this.tabItems.length - 1;
117
+ }
118
+ else if (index === this.tabItems.length) {
119
+ index = 0;
120
+ }
121
+ const tabToFocus = this.tabItems[index];
122
+ this.getLinkEl(tabToFocus).focus({ preventScroll: true });
121
123
  }
122
- const tabToFocus = this.tabItems[index];
123
- this.getLinkEl(tabToFocus).focus({ preventScroll: true });
124
124
  }
125
125
  handleTabFocused(tabItem, alignment = "auto") {
126
126
  // Calculate and apply scroll position
@@ -257,15 +257,15 @@ export class TabList {
257
257
  this.announcement = message;
258
258
  }
259
259
  render() {
260
- return (h(Host, { key: 'fb6f216a7c2b9008565d2084751daf40267aa43e' }, h("div", { key: '6d8ade20d79c1d3e152cdf01bad10c3b7494a8a6', class: "component-wrapper" }, h("wm-button", { key: '70be40893bb3ececa751eaccf86e33c9035e01b5', class: `left-arrow ${this.scrollArrowsVisible ? "visible" : ""}`, "aria-controls": "tablist", customBackground: this.customBackground, buttonType: "navigational", icon: "#previous", tooltip: intl.formatMessage({
260
+ return (h(Host, { key: '3e844b43073845226e927d8ef8635b629b3078c6' }, h("div", { key: '4cdc200ade5f6d9ae92b4132086ddd24997422d5', class: "component-wrapper" }, h("wm-button", { key: 'f9291d8039bbcf4164bff13b7874a05e82c34d8b', class: `left-arrow ${this.scrollArrowsVisible ? "visible" : ""}`, "aria-controls": "tablist", customBackground: this.customBackground, buttonType: "navigational", icon: "#previous", tooltip: intl.formatMessage({
261
261
  id: "tabs.showPreviousTabs",
262
262
  defaultMessage: "Show previous tabs",
263
263
  description: "Tooltip for button scrolling tab group.",
264
- }), onClick: (ev) => this.handleLeftArrowClick(ev) }), h("ul", { key: '30a4176c4ba68f4a30c269d0998f7634b66ebc0c', id: "tablist", ref: (el) => (this.tabContainerEl = el), class: `tabcontainer ${this.customBackground || ""} ${this.containerFadeLeft ? "fade-left" : ""} ${this.containerFadeRight ? "fade-right" : ""}`, role: "tablist", tabIndex: -1 }, h("slot", { key: 'd3225fe95f7c09287d79886a8a22cf80aab18bb7' })), h("wm-button", { key: 'ef52e8c658dbe0a968bb89c8b3ff15a981d83d23', class: `right-arrow ${this.scrollArrowsVisible ? "visible" : ""}`, "aria-controls": "tablist", customBackground: this.customBackground, buttonType: "navigational", icon: "#next", tooltip: intl.formatMessage({
264
+ }), onClick: (ev) => this.handleLeftArrowClick(ev) }), h("ul", { key: 'e2e62316b668212193e4d8d6309a774970af94c6', id: "tablist", ref: (el) => (this.tabContainerEl = el), class: `tabcontainer ${this.customBackground || ""} ${this.containerFadeLeft ? "fade-left" : ""} ${this.containerFadeRight ? "fade-right" : ""}`, role: "tablist", tabIndex: -1 }, h("slot", { key: '444cbb46870cc96072430fdd7f85deea1e6f3375' })), h("wm-button", { key: '8a84f4d13a0b25cb6c1a3ccc9fe18a4a55ac067a', class: `right-arrow ${this.scrollArrowsVisible ? "visible" : ""}`, "aria-controls": "tablist", customBackground: this.customBackground, buttonType: "navigational", icon: "#next", tooltip: intl.formatMessage({
265
265
  id: "tabs.showNextTabs",
266
266
  defaultMessage: "Show next tabs",
267
267
  description: "Tooltip for button scrolling tab group.",
268
- }), onClick: (ev) => this.handleRightArrowClick(ev) }), h("span", { key: 'cc2cf63d5f82dbf25b93888e13cde3fdab9453dc', "aria-live": "assertive", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
268
+ }), onClick: (ev) => this.handleRightArrowClick(ev) }), h("span", { key: '0cde8bc3411cba96074d0389ce5ea93b06f61855', "aria-live": "assertive", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
269
269
  }
270
270
  static get is() { return "wm-tab-list"; }
271
271
  static get encapsulation() { return "shadow"; }
@@ -862,6 +862,7 @@
862
862
 
863
863
  wm-tab-panel {
864
864
  visibility: inherit;
865
+ display: block;
865
866
  }
866
867
  wm-tab-panel.tab-hidden {
867
868
  display: none;
@@ -872,6 +873,7 @@ wm-tab-panel:active {
872
873
  wm-tab-panel:focus {
873
874
  outline: none;
874
875
  }
875
- wm-tab-panel.user-is-tabbing:focus {
876
- outline: -webkit-focus-ring-color auto 5px;
876
+ wm-tab-panel:focus-visible, wm-tab-panel.user-is-tabbing:focus {
877
+ outline: 3px solid var(--wmcolor-interactive-focus);
878
+ outline-offset: -3px;
877
879
  }
@@ -12,7 +12,7 @@ export class TabPanel {
12
12
  this.tabPanelLoaded.emit({ tabId: this.tabId });
13
13
  }
14
14
  render() {
15
- return h(Host, { key: 'a7969f5c022d18fc579947c557b8177fdee413b4', role: "tabpanel", class: { "tab-hidden": !this.active } });
15
+ return h(Host, { key: '3258381fdf315b45be5bad6ee1a21420c3fe22f5', role: "tabpanel", tabIndex: "-1", class: { "tab-hidden": !this.active } });
16
16
  }
17
17
  static get is() { return "wm-tab-panel"; }
18
18
  static get originalStyleUrls() {
@@ -927,10 +927,10 @@ export class TagInput {
927
927
  }
928
928
  }
929
929
  render() {
930
- return (h("div", { key: '1ea7a4e18d1edcd6c3e66f7b1a7426058b03e1a1', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'd0779f651e99b8f5bdbb6986daf70e7701f83d81', class: "label-wrapper" }, h("label", { key: '80465bcd2dcedd108c353fd95b57163e84ad266d', class: "label", htmlFor: "input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label), this.requiredField && (h("div", { key: '2758d90e08028cac91b7b5894a9bdb919cfa9fe7', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '5d6454cab0ae655c9ad9e5155a2737807552641d', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '66e23fb5d85d8133e1907f12f354caff5b4f8b09', class: "upper-row" }, h("div", { key: '6b27e970920af73e50e1e6ae04c721f8899bb53b', class: "svg-icon svg-search" }), h("div", { key: 'c67fe9b9a364cb09224abcec3caca9979bcd66a1', class: `tags-and-input-wrapper` }, h("ul", { key: '26e53e16f3498add3b64461b9ad0cc414e7b9cd0', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
930
+ return (h("div", { key: '5b248aedb7263d9980f4af6d0763741e9562a707', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '48494c601e624476c500a3bf32c13c8b58d1e487', class: "label-wrapper" }, h("label", { key: 'f7d1d542f51a4898ac6fe6fc321e95a5446d190c', class: "label", htmlFor: "input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label), this.requiredField && (h("div", { key: '5be180e4c932103ee24912b86853ce297d6ea8bc', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '66ccdfd87612cffdca65f4c0c3fdb9f8b6f50f66', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '3c7c91d6673811a7b5ac54611a5c3db9a5ba3fa4', class: "upper-row" }, h("div", { key: 'b209dd69743057be72a1b4fd8ee71bce0dda3e1e', class: "svg-icon svg-search" }), h("div", { key: '1bb2e1873e45f7e2cfba59c97d96e16e24797976', class: `tags-and-input-wrapper` }, h("ul", { key: '329924434065ec18b590434b9a3504e5e709540b', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
931
931
  this.focusedTagIndex = undefined;
932
932
  this.handleBlur(ev);
933
- }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), this.isDropdown && this.renderDropdownInput(), this.isTable && this.renderTableInput()), this.isDropdown && (h("div", { key: 'bcb6e30890a2198f54b955a54226f25e1e7e887e', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: 'a00c7fe46e44c232ead4f1ab80f507850dec3185', id: "info", class: "info-text" }, this.info)), h("div", { key: 'de82e4d355b12f88db7b4054f1f318a2452cd4d7', id: "error" }, this.errorMessage), h("div", { key: '318a2efc15622295f94236615d1f6b3e369e77ea', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
933
+ }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), this.isDropdown && this.renderDropdownInput(), this.isTable && this.renderTableInput()), this.isDropdown && (h("div", { key: '54a6ebcc34496f2eb510631739955caf4d5da467', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: '39d887a94835cff9f18e2534a709a06c882959f7', id: "info", class: "info-text" }, this.info)), h("div", { key: '4ff8006f313cd5caa9a3fbd6991bd78d3c5180e6', id: "error" }, this.errorMessage), h("div", { key: 'b592c8b5dac99392607b46ea26d47995d28f7050', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
934
934
  }
935
935
  static get is() { return "wm-tag-input"; }
936
936
  static get encapsulation() { return "shadow"; }
@@ -71,7 +71,7 @@ export class Textarea {
71
71
  this.announcement = message;
72
72
  }
73
73
  render() {
74
- return (h("div", { key: '4d66731ba9bd4ba435090f31acc86b7eae07ea25', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '642ce791dc16814534694b36dab601777dc655de', class: "label-wrapper" }, h("label", { key: '2a60aa3829eed6a377f5daecaa9d264dc715b38d', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '76b6ad6c0a639f6fae230a7c1bd13f102fe747c7', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("span", { key: '0d47f3ef8ff15e2c4110cc279f29434f1c1c55ee', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '060b640fcdb2b4a6fc0b310fb152b4a5736a8797', class: "inner-wrapper" }, h("div", { key: '26ec20786b6b6cf22a3b5b042478e8057fcaa471', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '15cc0321f901bd8db6aa9fb8f26ee3906b72d7c7', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: '13f454a13e63f3f583011ab43c7b22409f934a2e', id: "info", class: "info" }, this.info)), h("div", { key: '281885a5098b169ba5f192f5056c7ab14c8d944c', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '32a259bfdda78dc540e71140a4d8fbd1b7e46143', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
74
+ return (h("div", { key: '74ce1775cef448b2f48729d0adf522f742b93594', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'f5c3a71608d00e886adb1ba46bf2d47284d9f948', class: "label-wrapper" }, h("label", { key: '952f29910b017b9d39ee0397a903d7904499e1ab', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '90abb8fdf937f9972128fc5d9b37662eff4fc082', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("span", { key: 'd13ca26a2c58f5be069299a1e9359bc723a0ef72', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'ba9c3724f5becfbc62ed7e18310a41dfd82740e4', class: "inner-wrapper" }, h("div", { key: '3961695bbd77d01d70b81f6457943a11e504a925', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: 'b988435aae6274ca12527280f3d2d23cb7287380', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: '316d16bf981d25bf81838166adf3b762a8cdd029', id: "info", class: "info" }, this.info)), h("div", { key: '17cce3c54e284a9348a1270541b84f076d88998c', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '08451b1914a7629d7d16d99e3e78712f10b9f627', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
75
75
  }
76
76
  static get is() { return "wm-textarea"; }
77
77
  static get encapsulation() { return "shadow"; }
@@ -281,13 +281,13 @@ export class Timepicker {
281
281
  return this.times.map((time, index) => (h("li", { id: `option${index + 1}`, "data-time": time, role: "option", onClick: () => this.handleOptionClick(time) }, this.reformatTimeInternal("12", time))));
282
282
  }
283
283
  render() {
284
- return (h(Host, { key: '8d1fed516e7969fa0e9684d455ed3bd01e9cd040', onBlur: () => this.close(false) }, h("div", { key: '4cb010201d91dec397fd717848e68c98ebd14106', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: 'da58fa1acc6136025158d957e59b45455b5ebeca', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '0dcfe28b0917725ed47c3dfb5da1303f137b0ada', id: "label", class: "label", htmlFor: "time-input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '9ad3ded1b7adc2d3427bfb7170ad8de29675aebd', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: '6ab239767fbe02e97602ad7b758bc5cc83bdced9' }, h("div", { key: '8d194e417f8af4d3c3af3973fac98cfe44fb10f4', class: "inner-wrapper" }, h("input", { key: '13b6ba2e040cfc5857bcd93381873b75422cad92', id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { key: '01af343694382e726544e6c15fec61ffe8f94a52', id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
284
+ return (h(Host, { key: 'da0fd0b1de084487ba4e32bbd53dcd514ed112bc', onBlur: () => this.close(false) }, h("div", { key: '2837930a62ea26bdca45bb69b45a94153104d791', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: '1db04c5e13d756802e2dc2edaeefd494e1499044', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '38c1b82f7191dbf174aa4779f63fc4efac24a328', id: "label", class: "label", htmlFor: "time-input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '7d6148e99816e4cb49165f9cc0876c617f9c9d0e', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: 'ecc849f353c72d8809e497f514fc1efffa3bc00e' }, h("div", { key: 'ad87235c16f4fc6135a8e91d7e35a81d80bc5a3c', class: "inner-wrapper" }, h("input", { key: '3af501242d00b1ced5ba7ee3405a08c9d11126bc', id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { key: '947d9b23d656482ecc38faa792cd387f15566c1f', id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
285
285
  // This addresses an issue in Safari, where clicking buttons does not focus them
286
286
  // if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
287
287
  onMouseDown: (ev) => {
288
288
  ev.preventDefault();
289
289
  this.buttonEl.focus();
290
- } }, h("span", { key: '9021fa1d31cc4601e36705e23c81bd64a7079de3', class: "svg-icon svg-time" })), h("ul", { key: '070568110a252cfcbeed0db9a650c5aa33f3d6fa', class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { key: '219fedbed0146e2dedb2e2bfb2ac8df4d1fa75bf', id: "error", class: "error" }, this.errorMessage)), h("div", { key: 'dd3b6ebb4f17f49ecb18f361500073ab11cbdeac', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
290
+ } }, h("span", { key: 'ca1897c49182b7a78d78bc3920cee38a3b43baab', class: "svg-icon svg-time" })), h("ul", { key: 'c2b449f07c3b5dba20b4f9ffc825216398532752', class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { key: 'fe8a9b32c74d40068500979a5af7fd3e4486428a', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '3e1e3afd35c19dc2dc7a5635445ec3c5722f2f13', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
291
291
  }
292
292
  static get is() { return "wm-timepicker"; }
293
293
  static get encapsulation() { return "shadow"; }
@@ -229,11 +229,11 @@ export class Toggletip {
229
229
  }
230
230
  }
231
231
  render() {
232
- return (h(Host, { key: 'c11bb0162cedb31f4acf39a61319c6827f5ebe75', class: `size-${this.targetSize}` }, h("button", { key: '9560429d4dec4e97069adf77f36ac98cf385087e', ref: (el) => (this.buttonEl = el), class: "button", type: "button", "aria-label": this.label, popoverTarget: "toggletip", popoverTargetAction: "toggle", onClick: () => this.open(),
232
+ return (h(Host, { key: '4ef06e1cd3a72fe9b8234aa549116d2e4f7f266c', class: `size-${this.targetSize}` }, h("button", { key: '727cec9a9da8fd7377f9ec09aef1da2f0901d6ae', ref: (el) => (this.buttonEl = el), class: "button", type: "button", "aria-label": this.label, popoverTarget: "toggletip", popoverTargetAction: "toggle", onClick: () => this.open(),
233
233
  // In order to position the tooltip identically to the toggletip, its presence is determined by these four events
234
- onMouseEnter: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }, this.renderIcon()), h("div", { key: 'f76ca5ac9fc02c2c7de7365a699b73f543ec1efd', popover: "", ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.targetSize} ${this.isHidden ? "hidden" : ""}`, id: "toggletip",
234
+ onMouseEnter: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }, this.renderIcon()), h("div", { key: 'bbdfe9919e65a2fbd6876376f23496feb4adf5e1', popover: "", ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.targetSize} ${this.isHidden ? "hidden" : ""}`, id: "toggletip",
235
235
  // @ts-ignore - despite what Typescript says, this is a valid event for popover elements
236
- onToggle: (ev) => this.handlePopoverToggle(ev) }, this.tooltip), h("div", { key: '37c35790aafadbee0ee979ac5b1dcf28a4f29de5', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
236
+ onToggle: (ev) => this.handlePopoverToggle(ev) }, this.tooltip), h("div", { key: '57aedc6a3d1d383d1a2f1143a1ce3ea29fd7ee5d', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
237
237
  }
238
238
  static get is() { return "wm-toggletip"; }
239
239
  static get encapsulation() { return "shadow"; }
@@ -316,9 +316,9 @@ export class Uploader {
316
316
  return (h("div", { class: `drop-area -${this.dropArea}`, ref: (el) => (this.dropAreaEl = el), onDragEnter: (ev) => this.handleDragEnter(ev), onDragOver: (ev) => this.handleDragOver(ev), onDragLeave: (ev) => this.handleDragLeave(ev), onDrop: (ev) => this.handleDrop(ev) }, this.dropArea == "page" && (h("div", { ref: (el) => (this.dropOverlayEl = el), class: "drop-overlay", popover: "manual" }, h("span", { class: "upload-arrow" }), h("span", null, "Drop to Upload")))));
317
317
  }
318
318
  render() {
319
- return (h(Host, { key: 'd00c00331919db5cfc64993ff9994af5412d5de7', class: `-${this.dropArea}` }, this.uploaderType == "drop" && this.renderDropArea(), this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { key: 'f7013a127e18f9de001ca3b47d4c320e2718accf', ref: (el) => (this.assertiveLiveRegionEl = el), class: "live-region sr-only", "aria-live": "assertive" // since it's directly linked to the action the user took, it should be read in priority. With polite, some messages get dismissed in favor of the page title
319
+ return (h(Host, { key: '59756938b72985042da259a2a5fe24a88cbdb67d', class: `-${this.dropArea}` }, this.uploaderType == "drop" && this.renderDropArea(), this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { key: '34a9ec3ff46f4bb24a8e5aae14aa59b1e8c8f5ae', ref: (el) => (this.assertiveLiveRegionEl = el), class: "live-region sr-only", "aria-live": "assertive" // since it's directly linked to the action the user took, it should be read in priority. With polite, some messages get dismissed in favor of the page title
320
320
  ,
321
- "aria-atomic": "true" }), h("div", { key: '535047222b8d454c5fdbd0183b2259714f21a5ad', ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
321
+ "aria-atomic": "true" }), h("div", { key: '6c3ff3066826855a6fa062fecfa6c01f37e9640e', ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
322
322
  }
323
323
  static get is() { return "wm-uploader"; }
324
324
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,110 @@
1
+ const barChart1 = document.getElementById("bar-chart-1");
2
+
3
+ // Event listener for popover button triggered
4
+ barChart1.addEventListener("wmPopoverButtonClick", (ev) => {
5
+ console.log("wmPopoverButtonClick: ", ev.detail);
6
+ document.body.style.backgroundColor = `var(--${ev.detail.color})`;
7
+ });
8
+
9
+ // Setup chart data
10
+ setTimeout(() => {
11
+
12
+ barChart1.config = {
13
+ label: "Number of Students by Department",
14
+ subinfo: "University of Education",
15
+ labelPosition: "top",
16
+ labelWidth: "150px",
17
+ valueAxisLabel: "Students",
18
+ categoryAxisLabel: "University Departments",
19
+ printMode: true,
20
+ printModeFormat: "percentage",
21
+ gridMax: 1000,
22
+ popoverTitle: "Config Title",
23
+ popoverText: "Description set by the config",
24
+ popoverButtonText: "View Details",
25
+ };
26
+
27
+ barChart1.data = [
28
+ { label: "Marine Biology", amount: 250, whatever: "whatever", color: "wmcolor-border" },
29
+ { label: "Organic Chemistry", amount: 500 },
30
+ { label: "Aeronautical Engineering", amount: 982 },
31
+ { label: "Pure Mathematics", amount: 100 },
32
+ { label: "Astrophysics", amount: 500, popoverTitle: "Astrophysics", popoverText: "Astrophysics description set by the data", popoverButtonText: "View Astrophysics Details" },
33
+ { label: "Social Psychology", amount: 900 },
34
+ { label: "Urban Sociology", amount: 500 },
35
+ { label: "Behavioral Economics & Economy Sciences", amount: 250 },
36
+ ];
37
+ }, 1000);
38
+
39
+ ////////////////////////////////////////////////////////////
40
+ // Control Panel
41
+ ////////////////////////////////////////////////////////////
42
+
43
+ // Value format control
44
+ const valueFormatAmount = document.getElementById("value-format-amount");
45
+ const valueFormatPercentage = document.getElementById("value-format-percentage");
46
+
47
+ valueFormatAmount.addEventListener("change", () => {
48
+ barChart1.config = {...barChart1.config, valueFormat: "amount"};
49
+ });
50
+
51
+ valueFormatPercentage.addEventListener("change", () => {
52
+ barChart1.config = {...barChart1.config, valueFormat: "percentage"};
53
+ });
54
+
55
+ // Pattern control
56
+ const patternDiscrete = document.getElementById("pattern-discrete");
57
+ const patternSemantic = document.getElementById("pattern-semantic");
58
+
59
+ patternDiscrete.addEventListener("change", () => {
60
+ barChart1.config = {...barChart1.config, colors: "discrete"};
61
+ });
62
+
63
+ patternSemantic.addEventListener("change", () => {
64
+ barChart1.config = {...barChart1.config, colors: "semantic"};
65
+ });
66
+
67
+ // Sort control
68
+ const sortAscending = document.getElementById("sort-ascending");
69
+ const sortDescending = document.getElementById("sort-descending");
70
+ sortAscending.addEventListener("change", updateSort);
71
+ sortDescending.addEventListener("change", updateSort);
72
+
73
+ function updateSort() {
74
+ barChart1.config = {...barChart1.config, sort: document.querySelector("input[name='sort']:checked").value};
75
+ }
76
+
77
+ const sortNone = document.getElementById("sort-none");
78
+
79
+ sortNone.addEventListener("change", () => {
80
+ barChart1.config = {...barChart1.config, sort: null};
81
+ });
82
+
83
+ // Chart label control
84
+ const chartLabelInput = document.getElementById("chart-label-input");
85
+ chartLabelInput.addEventListener("change", (ev) => {
86
+ barChart1.config = {...barChart1.config, label: ev.target.value};
87
+ });
88
+
89
+ // Axis label control
90
+ const axisLabelInput = document.getElementById("axis-label-input");
91
+ axisLabelInput.addEventListener("change", (ev) => {
92
+ barChart1.config = {...barChart1.config, valueAxisLabel: ev.target.value};
93
+ });
94
+
95
+ // Legend position control
96
+ function updateLegendPosition() {
97
+ barChart1.config = {...barChart1.config, showLegend: document.querySelector("input[name='legend']:checked").value};
98
+ }
99
+
100
+ const legendTop = document.getElementById("legend-top");
101
+ const legendBottom = document.getElementById("legend-bottom");
102
+ const legendLeft = document.getElementById("legend-left");
103
+ const legendRight = document.getElementById("legend-right");
104
+ const legendNone = document.getElementById("legend-none");
105
+
106
+ legendTop.addEventListener("change", updateLegendPosition);
107
+ legendBottom.addEventListener("change", updateLegendPosition);
108
+ legendLeft.addEventListener("change", updateLegendPosition);
109
+ legendRight.addEventListener("change", updateLegendPosition);
110
+ legendNone.addEventListener("change", updateLegendPosition);
@@ -49,3 +49,22 @@ export const getWmMode = (ref) => {
49
49
  document.documentElement.getAttribute("mode") ||
50
50
  defaultMode);
51
51
  };
52
+ export const chartPaletteDiscrete = [
53
+ "wmcolor-dataviz-discrete-01",
54
+ "wmcolor-dataviz-discrete-02",
55
+ "wmcolor-dataviz-discrete-03",
56
+ "wmcolor-dataviz-discrete-04",
57
+ "wmcolor-dataviz-discrete-05",
58
+ "wmcolor-dataviz-discrete-06",
59
+ "wmcolor-dataviz-discrete-07",
60
+ ];
61
+ export const chartPaletteSemantic = [
62
+ "wmcolor-dataviz-semantic-positive-01",
63
+ "wmcolor-dataviz-semantic-positive-02",
64
+ "wmcolor-dataviz-semantic-negative-01",
65
+ "wmcolor-dataviz-semantic-negative-02",
66
+ "wmcolor-dataviz-semantic-neutral-01",
67
+ "wmcolor-dataviz-semantic-neutral-02",
68
+ "wmcolor-dataviz-semantic-neutral-03",
69
+ "wmcolor-dataviz-semantic-unspecified",
70
+ ];
@@ -1,6 +1,6 @@
1
1
  import './index-130e07bb.js';
2
2
 
3
- const version = "5.22.0-alpha.1";
3
+ const version = "5.22.0-alpha.3";
4
4
 
5
5
  // PRINT RIPPLE VERSION IN CONSOLE
6
6
  // test envs return 0 for plugin.length
@@ -721,5 +721,40 @@ function renderHiddenValuesMessage() {
721
721
  h("br", null),
722
722
  seeDetailsMessage));
723
723
  }
724
+ function formatDisplayValue(amount, amountTotal, valueFormat) {
725
+ switch (valueFormat) {
726
+ case "amount":
727
+ return amount.toLocaleString();
728
+ case "percentage":
729
+ return `${Math.round((amount / amountTotal) * 100).toFixed(0)}%`;
730
+ default:
731
+ case "none":
732
+ return "";
733
+ }
734
+ }
735
+ function isNiceInterval(interval, niceValues = [1, 1.5, 2, 2.5, 3, 5, 10]) {
736
+ const magnitude = Math.pow(10, Math.floor(Math.log10(interval)));
737
+ const normalized = interval / magnitude;
738
+ const normalizedComparision = niceValues.some((nice) => Math.abs(normalized - nice) < 0.0001); // check equality with floating point tolerance
739
+ return normalizedComparision;
740
+ }
741
+ function suffixNumber(value) {
742
+ if (value >= 1000000)
743
+ return `${(value / 1000000).toFixed(value % 1000000 === 0 ? 0 : 1)}M`;
744
+ if (value >= 1000)
745
+ return `${(value / 1000).toFixed(value % 1000 === 0 ? 0 : 1)}K`;
746
+ return value.toString();
747
+ }
748
+ function findLargestNiceInterval(maxIntervals, total) {
749
+ // Given a max number of intervals and a total, iterate down until a nice way to divide the total is found.
750
+ // Otherwise, return 1 interval
751
+ for (let intervals = maxIntervals; intervals >= 1; intervals--) {
752
+ const candidateInterval = total / intervals;
753
+ if (isNiceInterval(candidateInterval)) {
754
+ return { numIntervals: intervals, interval: candidateInterval };
755
+ }
756
+ }
757
+ return { numIntervals: 1, interval: total };
758
+ }
724
759
 
725
- export { allChartsDetails as a, renderSimpleBar as b, renderStackedBar as c, renderDoughnut as d, renderInstructionsText as e, renderLegend as f, getDetails as g, handleChartKeydown as h, renderHiddenValuesMessage as i, exitChart as j, amountToPercent as k, renderCompletionMessage as l, renderLegendItem as m, abbrNumber as n, getInterval as o, removeSegmentInfoHighlight as r };
760
+ export { allChartsDetails as a, renderSimpleBar as b, renderStackedBar as c, renderDoughnut as d, renderInstructionsText as e, renderLegend as f, getDetails as g, handleChartKeydown as h, renderHiddenValuesMessage as i, exitChart as j, amountToPercent as k, renderCompletionMessage as l, renderLegendItem as m, formatDisplayValue as n, findLargestNiceInterval as o, getMaxTicks as p, abbrNumber as q, removeSegmentInfoHighlight as r, suffixNumber as s, getInterval as t };