@watermarkinsights/ripple 5.22.1-alpha.4 → 5.23.0-alpha.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 (282) hide show
  1. package/dist/cjs/{app-globals-390f2392.js → app-globals-d75466f5.js} +1 -1
  2. package/dist/cjs/{chartFunctions-60f65883.js → chartFunctions-97471b69.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-a6240a47.entry.js → cjs/priv-chart-popover-old.cjs.entry.js} +145 -1
  8. package/dist/{ripple/p-88ec49f1.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 +321 -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 +32 -51
  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 +6 -6
  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 +12 -10
  44. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +202 -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 +1095 -0
  49. package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +471 -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 +31 -50
  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 +3 -3
  86. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
  87. package/dist/collection/components/wm-tag-input/wm-tag-input.js +2 -2
  88. package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
  89. package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
  90. package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
  91. package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
  92. package/dist/collection/dev/chart-bar.js +110 -0
  93. package/dist/collection/global/interfaces.js +19 -0
  94. package/dist/esm/{app-globals-d9d6ec2a.js → app-globals-be942f12.js} +1 -1
  95. package/dist/esm/{chartFunctions-a834e2a9.js → chartFunctions-9c95674d.js} +37 -2
  96. package/dist/esm/{functions-9df607f2.js → functions-2cfbd8c7.js} +1 -1
  97. package/dist/esm/index-130e07bb.js +10 -2
  98. package/dist/esm/{interfaces-cc5b177f.js → interfaces-30d10bc0.js} +20 -1
  99. package/dist/esm/{intl-86bec8ef.js → intl-23d21b06.js} +1 -1
  100. package/dist/esm/loader.js +2 -2
  101. package/dist/esm/priv-calendar.entry.js +3 -3
  102. package/dist/esm/priv-chart-popover-old.entry.js +141 -0
  103. package/dist/esm/priv-chart-popover_2.entry.js +170 -0
  104. package/dist/esm/priv-navigator-button.entry.js +1 -1
  105. package/dist/esm/priv-navigator-item.entry.js +1 -1
  106. package/dist/esm/priv-option-list.entry.js +3 -3
  107. package/dist/esm/ripple.js +2 -2
  108. package/dist/esm/wm-action-menu_2.entry.js +4 -4
  109. package/dist/esm/wm-button.entry.js +3 -3
  110. package/dist/esm/wm-chart-bar.entry.js +317 -0
  111. package/dist/esm/wm-chart.entry.js +5 -5
  112. package/dist/esm/wm-date-range.entry.js +6 -6
  113. package/dist/esm/wm-datepicker.entry.js +6 -6
  114. package/dist/esm/wm-file-list.entry.js +1 -1
  115. package/dist/esm/wm-file.entry.js +2 -2
  116. package/dist/esm/wm-flyout.entry.js +3 -3
  117. package/dist/esm/wm-input.entry.js +3 -3
  118. package/dist/esm/wm-line-chart.entry.js +5 -5
  119. package/dist/esm/wm-modal-pss_3.entry.js +6 -6
  120. package/dist/esm/wm-modal_3.entry.js +6 -6
  121. package/dist/esm/wm-navigation_3.entry.js +6 -6
  122. package/dist/esm/wm-navigator.entry.js +2 -2
  123. package/dist/esm/wm-nested-select.entry.js +5 -5
  124. package/dist/esm/wm-optgroup.entry.js +2 -2
  125. package/dist/esm/wm-option_2.entry.js +34 -53
  126. package/dist/esm/wm-pagination.entry.js +3 -3
  127. package/dist/esm/wm-progress-indicator_3.entry.js +5 -5
  128. package/dist/esm/wm-search.entry.js +4 -4
  129. package/dist/esm/wm-snackbar.entry.js +4 -4
  130. package/dist/esm/wm-tab-item_3.entry.js +7 -7
  131. package/dist/esm/wm-tag-input.entry.js +4 -4
  132. package/dist/esm/wm-tag-option.entry.js +1 -1
  133. package/dist/esm/wm-textarea.entry.js +3 -3
  134. package/dist/esm/wm-timepicker.entry.js +3 -3
  135. package/dist/esm/wm-toggletip.entry.js +4 -4
  136. package/dist/esm/wm-uploader.entry.js +4 -4
  137. package/dist/esm-es5/{app-globals-d9d6ec2a.js → app-globals-be942f12.js} +1 -1
  138. package/dist/esm-es5/{chartFunctions-a834e2a9.js → chartFunctions-9c95674d.js} +1 -1
  139. package/dist/esm-es5/{functions-9df607f2.js → functions-2cfbd8c7.js} +1 -1
  140. package/dist/esm-es5/index-130e07bb.js +1 -1
  141. package/dist/esm-es5/interfaces-30d10bc0.js +1 -0
  142. package/dist/esm-es5/{intl-86bec8ef.js → intl-23d21b06.js} +1 -1
  143. package/dist/esm-es5/loader.js +1 -1
  144. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  145. package/dist/esm-es5/priv-chart-popover-old.entry.js +1 -0
  146. package/dist/esm-es5/priv-chart-popover_2.entry.js +1 -0
  147. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  148. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  149. package/dist/esm-es5/priv-option-list.entry.js +1 -1
  150. package/dist/esm-es5/ripple.js +1 -1
  151. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  152. package/dist/esm-es5/wm-button.entry.js +1 -1
  153. package/dist/esm-es5/wm-chart-bar.entry.js +1 -0
  154. package/dist/esm-es5/wm-chart.entry.js +1 -1
  155. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  156. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  157. package/dist/esm-es5/wm-file-list.entry.js +1 -1
  158. package/dist/esm-es5/wm-file.entry.js +1 -1
  159. package/dist/esm-es5/wm-flyout.entry.js +1 -1
  160. package/dist/esm-es5/wm-input.entry.js +1 -1
  161. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  162. package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
  163. package/dist/esm-es5/wm-modal_3.entry.js +1 -1
  164. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  165. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  166. package/dist/esm-es5/wm-nested-select.entry.js +1 -1
  167. package/dist/esm-es5/wm-optgroup.entry.js +1 -1
  168. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  169. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  170. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  171. package/dist/esm-es5/wm-search.entry.js +1 -1
  172. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  173. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  174. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  175. package/dist/esm-es5/wm-tag-option.entry.js +1 -1
  176. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  177. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  178. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  179. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  180. package/dist/ripple/{p-31558b0e.entry.js → p-01e8cea6.entry.js} +1 -1
  181. package/dist/ripple/{p-fe330a72.system.entry.js → p-0abc1b51.system.entry.js} +1 -1
  182. package/dist/ripple/{p-b1e58461.system.entry.js → p-0ad87064.system.entry.js} +1 -1
  183. package/dist/ripple/{p-f1dea7a8.system.entry.js → p-0b2a0825.system.entry.js} +1 -1
  184. package/dist/ripple/{p-e618af10.entry.js → p-0ef91339.entry.js} +1 -1
  185. package/dist/ripple/{p-7c379888.system.entry.js → p-10f93b97.system.entry.js} +1 -1
  186. package/dist/ripple/{p-4e9f0f73.system.entry.js → p-1124978e.system.entry.js} +1 -1
  187. package/dist/ripple/{p-11ae67a9.entry.js → p-1430f504.entry.js} +1 -1
  188. package/dist/ripple/{p-e66ccd7b.entry.js → p-157468c5.entry.js} +1 -1
  189. package/dist/ripple/{p-1dbd86bf.system.entry.js → p-15ab0cf9.system.entry.js} +1 -1
  190. package/dist/ripple/{p-0e3015f2.system.entry.js → p-1802aedc.system.entry.js} +1 -1
  191. package/dist/ripple/{p-dfec2e8a.system.js → p-1806bab8.system.js} +1 -1
  192. package/dist/ripple/{p-afd0ed83.system.entry.js → p-1c9c0cf2.system.entry.js} +1 -1
  193. package/dist/ripple/{p-886b50fb.entry.js → p-21114d99.entry.js} +1 -1
  194. package/dist/ripple/{p-ac4370ae.system.entry.js → p-26d92a96.system.entry.js} +1 -1
  195. package/dist/ripple/{p-28b52ec0.entry.js → p-2e71fe42.entry.js} +1 -1
  196. package/dist/ripple/p-30a65553.system.js +1 -0
  197. package/dist/ripple/{p-f73dd1e7.js → p-325393da.js} +1 -1
  198. package/dist/ripple/{p-ef7988fe.system.entry.js → p-32f95573.system.entry.js} +1 -1
  199. package/dist/ripple/{p-0a95f175.system.entry.js → p-34574dc8.system.entry.js} +1 -1
  200. package/dist/ripple/{p-6388bf35.entry.js → p-35ef7bba.entry.js} +1 -1
  201. package/dist/ripple/{p-37e6df61.entry.js → p-377cf709.entry.js} +1 -1
  202. package/dist/ripple/{p-75cf1147.system.entry.js → p-3989274d.system.entry.js} +1 -1
  203. package/dist/ripple/{p-c0087cd0.entry.js → p-3e10eb3d.entry.js} +1 -1
  204. package/dist/ripple/p-4c727f0f.system.js +1 -0
  205. package/dist/ripple/{p-44dc020c.entry.js → p-51cd1c0f.entry.js} +1 -1
  206. package/dist/ripple/p-56d17ec6.js +1 -0
  207. package/dist/ripple/{p-92d489c8.system.entry.js → p-575f24e8.system.entry.js} +1 -1
  208. package/dist/ripple/{p-bbf46f8b.system.entry.js → p-576f4d06.system.entry.js} +1 -1
  209. package/dist/ripple/{p-c4838463.js → p-5a5456e8.js} +1 -1
  210. package/dist/ripple/{p-813634c0.system.entry.js → p-5cbbaf69.system.entry.js} +1 -1
  211. package/dist/ripple/{p-840ed2ca.system.entry.js → p-5f50c561.system.entry.js} +1 -1
  212. package/dist/ripple/{p-484c5cc5.entry.js → p-6394d25d.entry.js} +1 -1
  213. package/dist/ripple/{p-ceaee8b9.system.entry.js → p-685863a1.system.entry.js} +1 -1
  214. package/dist/ripple/{p-6c267b11.system.entry.js → p-6d375c14.system.entry.js} +1 -1
  215. package/dist/ripple/{p-ee713fcf.system.entry.js → p-6ea645ee.system.entry.js} +1 -1
  216. package/dist/ripple/p-77de2d9e.system.entry.js +1 -0
  217. package/dist/ripple/p-78524594.entry.js +1 -0
  218. package/dist/ripple/{p-81c8d038.entry.js → p-78edd963.entry.js} +1 -1
  219. package/dist/ripple/{p-ee25af83.entry.js → p-79b3dfc8.entry.js} +1 -1
  220. package/dist/ripple/{p-a19f81a3.entry.js → p-79ec0bb2.entry.js} +1 -1
  221. package/dist/ripple/{p-ae138b2c.entry.js → p-7e0efb95.entry.js} +1 -1
  222. package/dist/ripple/{p-d59ded20.system.entry.js → p-7ee3f5ab.system.entry.js} +1 -1
  223. package/dist/ripple/{p-de9e0582.entry.js → p-84d88288.entry.js} +1 -1
  224. package/dist/ripple/{p-98a81b33.system.entry.js → p-8888e7f0.system.entry.js} +1 -1
  225. package/dist/ripple/{p-1e4b30ac.entry.js → p-8c20ccd2.entry.js} +1 -1
  226. package/dist/ripple/{p-6d0f7f1d.system.entry.js → p-8d858325.system.entry.js} +1 -1
  227. package/dist/ripple/{p-f5c59ec1.entry.js → p-909f8797.entry.js} +1 -1
  228. package/dist/ripple/{p-0c1396e0.js → p-9246f0dc.js} +1 -1
  229. package/dist/ripple/{p-e9038796.entry.js → p-966f2c9e.entry.js} +1 -1
  230. package/dist/ripple/{p-285dbfb9.system.entry.js → p-9dc0fcd6.system.entry.js} +1 -1
  231. package/dist/ripple/{p-d9a53822.entry.js → p-a0c4a12e.entry.js} +1 -1
  232. package/dist/ripple/p-a68d6bed.entry.js +1 -0
  233. package/dist/ripple/{p-04fe992d.entry.js → p-ad8132aa.entry.js} +1 -1
  234. package/dist/ripple/{p-5b9441ff.entry.js → p-b089276a.entry.js} +1 -1
  235. package/dist/ripple/p-b3092643.entry.js +1 -0
  236. package/dist/ripple/{p-59101b39.system.entry.js → p-b313c3d3.system.entry.js} +1 -1
  237. package/dist/ripple/{p-1f26fdb7.entry.js → p-b4ce79cd.entry.js} +1 -1
  238. package/dist/ripple/{p-24d20fc6.system.entry.js → p-b939d3cb.system.entry.js} +1 -1
  239. package/dist/ripple/{p-91194c43.entry.js → p-bc052b23.entry.js} +1 -1
  240. package/dist/ripple/{p-73914a64.system.entry.js → p-bc271e17.system.entry.js} +1 -1
  241. package/dist/ripple/p-bd4a3dd8.system.entry.js +1 -0
  242. package/dist/ripple/{p-8286ed48.system.entry.js → p-bf83369d.system.entry.js} +1 -1
  243. package/dist/ripple/{p-7233deea.entry.js → p-c4e4a44c.entry.js} +1 -1
  244. package/dist/ripple/{p-e075695e.system.js → p-c8c8e85f.system.js} +1 -1
  245. package/dist/ripple/{p-ee9ff51e.system.js → p-c8d6b61a.system.js} +1 -1
  246. package/dist/ripple/{p-c02a5e64.system.entry.js → p-cab65a05.system.entry.js} +1 -1
  247. package/dist/ripple/{p-edbfc15c.entry.js → p-cf845266.entry.js} +1 -1
  248. package/dist/ripple/{p-0267046a.system.entry.js → p-d13b78fd.system.entry.js} +1 -1
  249. package/dist/ripple/{p-e6f6b0f4.system.entry.js → p-d4877cbc.system.entry.js} +1 -1
  250. package/dist/ripple/{p-a09d66e8.system.entry.js → p-d49676b7.system.entry.js} +1 -1
  251. package/dist/ripple/{p-7ca0a3cb.entry.js → p-d522499c.entry.js} +1 -1
  252. package/dist/ripple/{p-a111374c.entry.js → p-d62f5fd3.entry.js} +1 -1
  253. package/dist/ripple/{p-2451029c.entry.js → p-d6ca433c.entry.js} +1 -1
  254. package/dist/ripple/p-d6effc35.system.js +1 -0
  255. package/dist/ripple/p-dcb1935c.entry.js +1 -0
  256. package/dist/ripple/{p-c7b4db4e.entry.js → p-efe93044.entry.js} +1 -1
  257. package/dist/ripple/p-f210f4ff.js +1 -0
  258. package/dist/ripple/{p-f680ad0f.entry.js → p-f2a1f116.entry.js} +1 -1
  259. package/dist/ripple/{p-f8c12729.system.entry.js → p-f6d60ed8.system.entry.js} +1 -1
  260. package/dist/ripple/{p-cbb67bc3.system.entry.js → p-fda4032a.system.entry.js} +1 -1
  261. package/dist/ripple/ripple.esm.js +1 -1
  262. package/dist/ripple/ripple.js +1 -1
  263. package/dist/types/components/charts/chartFunctions.d.ts +9 -1
  264. package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +20 -11
  265. package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +26 -0
  266. package/dist/types/components/charts/wm-chart/wm-chart.d.ts +1 -1
  267. package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +62 -0
  268. package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +19 -0
  269. package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +1 -1
  270. package/dist/types/components/selects/wm-select/wm-select.d.ts +2 -4
  271. package/dist/types/components.d.ts +124 -6
  272. package/dist/types/global/interfaces.d.ts +41 -0
  273. package/package.json +3 -3
  274. package/dist/cjs/priv-chart-popover.cjs.entry.js +0 -145
  275. package/dist/esm/priv-chart-popover.entry.js +0 -141
  276. package/dist/esm-es5/interfaces-cc5b177f.js +0 -1
  277. package/dist/esm-es5/priv-chart-popover.entry.js +0 -1
  278. package/dist/ripple/p-10fd206c.system.js +0 -1
  279. package/dist/ripple/p-2732bddd.js +0 -1
  280. package/dist/ripple/p-42fa7a77.system.js +0 -1
  281. package/dist/ripple/p-59ce4f69.js +0 -1
  282. package/dist/ripple/p-ac08b0a8.system.js +0 -1
@@ -107,7 +107,7 @@ export class Input {
107
107
  : `info error`;
108
108
  }
109
109
  render() {
110
- return (h("div", { key: '5e281cdb07413696a1405266627db2bc22ce1674', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: '2aa8b6434a1e649cc88cd9bddb771a7f18af9a5c', class: "label-wrapper" }, h("label", { key: 'd6246e9715693cce6e4ae537792042e8ffd97050', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '0fa5b82940b14472d05a1e8f6f628137d87a36f9', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("div", { key: '05c896add7e40b09ed3bee2cb19840ba9b71ecd4', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'ffff813c749cd3432b773e41c07cf4f4fe32d6c6', class: "inner-wrapper" }, h("div", { key: '10e3e09153b703b51fd170cc0b77ca4beedcf63d', class: "text-after-wrapper" }, h("div", { key: 'dbaeab7a9da2a81eb3bd188819e0a1c5396190d8', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '45cd4bde06af5d09ef124ff27c7b40dffc642524', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '0c6b0a7ea54a1f85abb6d82a91cb7afaba5753c6', ref: (el) => (this.inputEl = el), id: "inputfield", disabled: this.isDisabled, "aria-describedby": this.descriptors(), onInput: (ev) => this.handleInput(ev), onKeyDown: (ev) => this.handleKeyDown(ev), onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, maxLength: this.characterLimit || undefined, type: this.type, step: this.step, max: this.max, min: this.min, value: this.el.value }), this.symbolAfter && (h("span", { key: 'b05bdbea66f4b71913130eff59770d22b573db36', class: "symbol", id: "symbol-after" }, this.symbolAfter)), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit)) : ("")), this.textAfter && (h("span", { key: '41c2fb3f492ac63a423caf3ddbe48f1ecf06121a', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: 'f211e673ba9d3b7de1152d92ec2d496932f96772', id: "info", class: "info" }, this.info)), h("div", { key: '699d7f3c818082b4d2d8558b80bbf134587c827e', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '69cf3df248eb4884eaead9e13f1c7414c08f5cd1', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
110
+ return (h("div", { key: 'd4aaf4e85013a21c72d2bc29b779bc531af63c7a', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: '09841604f10ee7f90b72a02b8f205983208b8847', class: "label-wrapper" }, h("label", { key: '5ceaeeb463d2a91aa89cf3713deaad2702e0be41', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '225a478b431cc1966dd55c7113ebff9e3a972694', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("div", { key: '4be6730fc552c46f98dd445ef8034f6317aeaabf', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'b1ac92828de964e90229055b9c0c55c97c470805', class: "inner-wrapper" }, h("div", { key: '622d539566c05c7c0cd633edf9d5186eb3c082f2', class: "text-after-wrapper" }, h("div", { key: '83e3981b671a9039b83c6526003e6dee62f6e9bd', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: 'c51a71084b6761330fb9e4a4344f35cd659deef7', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '0b88b518786fadd884f624927c00d9a4802b90aa', ref: (el) => (this.inputEl = el), id: "inputfield", disabled: this.isDisabled, "aria-describedby": this.descriptors(), onInput: (ev) => this.handleInput(ev), onKeyDown: (ev) => this.handleKeyDown(ev), onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, maxLength: this.characterLimit || undefined, type: this.type, step: this.step, max: this.max, min: this.min, value: this.el.value }), this.symbolAfter && (h("span", { key: '7dd23511cb81aae62c4dde84880307f812d78d4d', class: "symbol", id: "symbol-after" }, this.symbolAfter)), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit)) : ("")), this.textAfter && (h("span", { key: '9e8052c5a373c96f302354f7f95c38d27296fec6', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: '80fd203c7fa68b2e0d612ad39090f0fd69526a83', id: "info", class: "info" }, this.info)), h("div", { key: 'bf3dba5e6ce9bdadbfddc231ea2fa684319489f2', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '316de8f690fad0ceb1c1e43ed6dab152dc23a0b8', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
111
111
  }
112
112
  static get is() { return "wm-input"; }
113
113
  static get encapsulation() { return "shadow"; }
@@ -98,7 +98,7 @@ export class Menuitem {
98
98
  }
99
99
  }
100
100
  render() {
101
- return (h(Host, { key: '3918e12cfecc1ef4123851608175c4dfe9c41022', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: 'ce62650fb0afee46e8acf66324d65a303931efde', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, this.icon && this.renderIcon(), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
101
+ return (h(Host, { key: '81bc0ba0714a6d885cfdce07a3e698562b0a19e7', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '5086ca8cce0a270e3600fa559daab22ea8baf9c4', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, this.icon && this.renderIcon(), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
102
102
  }
103
103
  static get is() { return "wm-menuitem"; }
104
104
  static get encapsulation() { return "shadow"; }
@@ -31,7 +31,7 @@ export class ModalFooter {
31
31
  }
32
32
  }
33
33
  render() {
34
- return (h("div", { key: '86b0ac602ef44f1f903993c287ccbf35736f0d6d', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '3eba5847dbf91ed35aa9489c39658794f7cb9870', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'f81a1bc7519936e40f400c243bfd6f6b4e19e8f3', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '19cf3c9d718ac7d82e9c073ebe3890163fef6dbd', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '7f10d760d7fbeea0325a1d6c194e153cfda26ff7', "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) : undefined) }, this.primaryText))));
34
+ return (h("div", { key: '491f1ad5bb178b42c9e51c4d0879070e77a7f2a9', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: 'b6c785db316aba6a14f6f2ffe6b54e496fc46f80', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '5a73e1f8579637c8c0f16d1fd98daa1059b70ca4', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '26c0c6eefd2ef6e0d3ebb87d6d79c1ea4237be3b', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '61832b3a218df2e001b532bb2c3968de0665a9db', "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) : undefined) }, this.primaryText))));
35
35
  }
36
36
  static get is() { return "wm-modal-footer"; }
37
37
  static get originalStyleUrls() {
@@ -22,7 +22,7 @@ export class ModalHeader {
22
22
  parentModal.emitCloseEvent();
23
23
  }
24
24
  render() {
25
- return (h(Host, { key: '282b0960d221b5f6872f6259fefa4fde964229eb' }, h("div", { key: '7878bb4bf1fed4f0f980820d0d16b7171c64a0bf', class: "wm-wrapper" }, h("div", { key: 'cdb85926e03539e69d2d5df1d285b6b97a148ce4' }, h("h2", { key: '6c86104ac8b3fe0c177ad20f3ec258cf8ca48d45', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '2a7be253b0d28c95b530af26464f2d303a396dde', class: "subtitle" }, this.subheading))), h("wm-button", { key: '33c15118c3aa70c11889c5d2fc1d75e16e528b19', "button-type": "navigational", icon: "#close", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
25
+ return (h(Host, { key: '85348ecf5ef8d53807c965890fe245a6f5962003' }, h("div", { key: '48f782896bd53234c601b5ff853ed7ec0d077357', class: "wm-wrapper" }, h("div", { key: '1297ffe9269d4866ae6d343dfb37b50ea7cb1733' }, h("h2", { key: '6b777b66f9aec32bdbe1a2464b709d4a7d8c7add', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '415004f8cd63c2ac1a2beab4fe2d732edd3b06c8', class: "subtitle" }, this.subheading))), h("wm-button", { key: '342a5de331967b530ce75b074016ec724099bfe0', "button-type": "navigational", icon: "#close", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
26
26
  }
27
27
  static get is() { return "wm-modal-header"; }
28
28
  static get originalStyleUrls() {
@@ -116,11 +116,11 @@ export class Modal {
116
116
  }
117
117
  }
118
118
  render() {
119
- return (h("dialog", { key: 'a3ff3f7d9ebed66d80a4ab4c91e41efa58328612', class: `${"wm-" + this.modalType}`, "aria-labelledby": `wm-modal-heading-text-${this.uid}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '1b34e405a9fb3315d75891a11c5bfd8be2630b24', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
119
+ return (h("dialog", { key: '79bdf56bcea90cc9848bf4027e0a2552eee31709', class: `${"wm-" + this.modalType}`, "aria-labelledby": `wm-modal-heading-text-${this.uid}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '5fda5d81c1b468c883316d319a6975852106de5d', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
120
120
  const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
121
121
  // no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
122
122
  focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
123
- } }), !this.hasBrowserPopoverSupport && h("div", { key: '7d59def6c502ff6d68b10f127fc0bbe9b023a237', class: "wm-tooltip" }), h("slot", { key: '79d6e5cfdb5d28434654ea2a600bab29d7c6d711' }), h("div", { key: '824fe3968dcb576661ef99f624279fd6e01620af', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
123
+ } }), !this.hasBrowserPopoverSupport && h("div", { key: '0255a1dda891b5e69874cc02f4579fac9ec5de04', class: "wm-tooltip" }), h("slot", { key: 'e861a82a26202beb548db440a9e708f6c4fdad84' }), h("div", { key: 'ad5fc44a752fb903338b175cf3eee115e416047f', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
124
124
  this.focusFirstElement.emit();
125
125
  } })));
126
126
  }
@@ -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"; }
@@ -257,15 +257,15 @@ export class TabList {
257
257
  this.announcement = message;
258
258
  }
259
259
  render() {
260
- return (h(Host, { key: 'e0c149eea66c9d126ad6efd28fcb261bb3e97002' }, h("div", { key: 'a82977738037c8eabb48c74a3893668d8a7e4c34', class: "component-wrapper" }, h("wm-button", { key: '533f416a6beb4fb87ab2213a29e1786b064cee77', 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: '1cb5ae17170fe3776749dde6a2f26d8ea4868a09', 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: '5a629e3ebc7486619801f778ace79f280b9a4998' })), h("wm-button", { key: 'e9c3a8c1ce09faa3b1738047931a2971a71757e3', 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: '4466ae59f3e70c5ce2b6eda1936842498ce62d84', "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"; }
@@ -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: 'ceb067c79994366c790a73ea7277750436abc477', role: "tabpanel", tabIndex: "-1", 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.1-alpha.4";
3
+ const version = "5.23.0-alpha.0";
4
4
 
5
5
  // PRINT RIPPLE VERSION IN CONSOLE
6
6
  // test envs return 0 for plugin.length
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-130e07bb.js';
2
- import { i as intl, c as checkForActiveElInShadow, e as safeMultiplyFloat, f as getPosition } from './functions-9df607f2.js';
2
+ import { i as intl, c as checkForActiveElInShadow, e as safeMultiplyFloat, f as getPosition } from './functions-2cfbd8c7.js';
3
3
 
4
4
  const colors = {
5
5
  salmon: "#ff5f4e",
@@ -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 };