@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
@@ -1 +0,0 @@
1
- import{h as t}from"./p-d9da0502.js";import{i as s,c as i,e,f as n}from"./p-e72235c6.js";const a="#ff5f4e",r="#19a1a9",o="#088000",h="#2e1b46",c="#8b86ca",d="#575195",l="#6b6b6b",u={doughnut:{size:155,colors:[o,l],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[c,h,l],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[d,r,h,a,l],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[o,l],padding:0,category:"stackedBar"},bar2:{size:400,colors:[l,c,d,h,r,a],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",r,"#8e4129",a],padding:0,category:"stackedBar"},bar4:{size:400,colors:[a,r,d],padding:0,category:"stackedBar"},bar5:{size:400,colors:[l,c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[c],padding:0,category:"simpleBar"},bar7:{size:400,colors:[d,r,a,l],padding:0,category:"simpleBar"}};function f(t){return"percentage"===t||"amount"===t?"show-values":""}const g=s.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"}),p=s.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function b(t){return t>999||t<-999?Math.round(t/100)/10+"K":t}function m(t,s,i){return i?Math.round(100*t/s):Math.round(1e4*t/s)/100}function v(t,s){return 360*t/s}function x(t){return parseFloat((Math.floor(100*t)/100).toFixed(2))}function w(t,s,i,e){var n=x(t+t*s*Math.cos(Math.PI*i/180)),a=x(t+t*s*Math.sin(Math.PI*i/180));return void 0!==e?{x1:n,y1:a,x2:x(t+t*s*Math.cos(Math.PI*e/180)),y2:x(t+t*s*Math.sin(Math.PI*e/180))}:{x:n,y:a}}function $(t,s,i,e,n){var a=x(n/2*t);return`A ${a}, ${a} 0 ${s} ${x(i)}, ${x(e)}`}function k(t,s){const i=t/s,e=10**Math.floor(Math.log10(i)),n=i/e;let a;return a=n>5?10*e:n>3?5*e:n>2?3*e:n>1.5?2*e:n>1?1.5*e:e,a}function y(t){if(this.popoverEl&&this.popoverEl.open&&"Enter"===t.key){const t=this.popoverEl.querySelector("button");t&&t.click()}}function M(t,s){this.popoverEl&&!this.isTabbing&&(s.coords={x:t.clientX,y:t.clientY},C(this.popoverEl,s),K(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function z(t,s){this.popoverEl&&this.isTabbing&&(this.focusedSliceId=s.id,s.coords=n(t.target),s.coords.x=s.coords.x+30,s.coords.y=s.coords.y+30,C(this.popoverEl,s),K(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function A(t){switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault(),this.isTabbing=!0,D.call(this);break;case"ArrowRight":case"ArrowDown":t.preventDefault(),this.isTabbing=!0,B.call(this);break;case"Tab":j.call(this);break;case"Escape":this.popoverEl.open=!1,this.userIsNavigating=!1}}function C(t,s){t.open=!1,s.title&&s.text&&(t.sliceDetails=Object.assign({},s),window.setTimeout((()=>t.open=!0),30))}function B(){const t=i(document.activeElement),s=(this.sliceEls.indexOf(t)+1)%this.sliceEls.length;F.call(this,s)}function D(){if(this.sliceEls){const t=i(document.activeElement);let s=this.sliceEls.indexOf(t);-1===s?s=0:0===s?s=this.sliceEls.length-1:s-=1,F.call(this,s)}}function F(t){this.sliceEls&&this.el&&(this.userIsNavigating=!0,this.componentWrapperEl.tabIndex=-1,this.el.focusable=!1,this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.sliceEls[t].tabIndex=0,this.sliceEls[t].focusable=!0,this.sliceEls[t].focus(),this.focusedSliceId=this.sliceEls[t].id,window.setTimeout((()=>{this.popoverEl&&(this.popoverEl.open=!0)}),10))}function j(){this.focusedSliceId=void 0,this.sliceEls&&this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.userIsNavigating=!1,window.setTimeout((()=>{this.componentWrapperEl.tabIndex=0,this.el.focusable=!0,this.popoverEl&&(this.popoverEl.open=!1)}),100)}async function I(t){this.slicesDetails=[];let s=0;const i=Array.from(this.el.children);this.total=i.reduce(((t,s)=>t+parseInt(s.getAttribute("amount")||"0")),0);let e=[...u[t].colors];"bar2"===this.chartType&&(i.length<=5&&e.splice(1,1),i.length<=4&&e.splice(2,1)),"bar3"===t&&2===i.length&&(e=[e[1],e[3]]),"doughnut2"===t&&i.length<5&&(e.splice(2,1),i.length<4&&e.shift()),"bar5"!==t||this.notStartedColor||e.shift();let n=0;i.forEach(((i,a)=>{const r=i.getAttribute("amount");if(null==r)return;const o=parseInt(r||"0"),h=m(o,this.total,!0);let c=a;"bar6"===t&&(c=0);const d={amount:o,visualAmount:o,perc:h,legend:i.getAttribute("legend"),color:e[c]||l,offset:s,id:`${this.uid}-${n+1}`,title:i.getAttribute("popover-title"),text:i.getAttribute("popover-text"),buttonText:i.getAttribute("popover-button-text"),sliceRef:i,inSmallCluster:!1,index:n};s+=o,this.slicesDetails.push(d),n++}))}function S(t,s,i){const e=v(s,this.total)-90,n=t/this.total*360;let a=e+n;const r=n>180?"1 1":"0 1",o=n>180?"1 0":"0 0",h=this.chartDetails.size/2,c=this.chartDetails.thickness,d="doughnut"===i?2.25:3;360===n&&(a-=.01);const l=w(h,1,e+1.5,a),u=w(h,c,e+d,a);return`M ${l.x1}, ${l.y1} `+$(1,r,l.x2,l.y2,this.chartDetails.size)+` L ${u.x2}, ${u.y2} `+$(c,o,u.x1,u.y1,this.chartDetails.size)+" z"}function T(){const i=s.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return t("div",{id:"chart-instructions"},i)}function H(s){const i=this.chartDetails.size+this.chartDetails.padding,e="doughnut"===s;let n=e?this.slicesDetails:function(t,s){let i=[...t].sort(((t,s)=>t.amount===s.amount?0:t.amount>s.amount?-1:1)),e=0;return i.filter((t=>t.amount>0)).forEach(((t,n)=>{const a=i[n===i.length-1?0:n+1],r=m(i[0===n?i.length-1:n-1].amount,s,!0),o=m(a.amount,s,!0),h=0===t.perc?8:5;t.inSmallCluster=t.perc<4&&(r<h||o<h),t.offset=e,e+=t.amount})),i}(this.slicesDetails,this.total);n=function(t,s,i){const e=s.map((t=>v(t.amount,i)));if(e.some((t=>0!==t&&t<7))){const t=e.map((t=>0==t?t:Math.max(t,7))),n=t.reduce(((t,s)=>t+(s>7&&0!==s?s:0)),0),a=360-t.reduce(((t,s)=>t+(s>7&&0!==s?0:s)),0),r=(n-a)/a,o=t.map((t=>t>7?t-r*t:0==t?0:7));let h=0;s=s.map(((t,s)=>{const e=o[s]/360*i,n=h;return h+=e,Object.assign(Object.assign({},t),{visualAmount:e,offset:n})}))}return s}(0,n,this.total);const a=n[0].amount;let r=m(a,this.total,!0);return 0===r&&a>0?r="<1%":100===r&&a<this.total?r=">99%":r+="%",t("div",{class:"chart-wrapper doughnut-wrapper"},t("svg",{width:i+"px",height:i+"px",id:`graphic-${this.uid}`,class:"doughnut-svg"},t("defs",null,t("filter",{id:"wmHoverDropShadow"},t("feGaussianBlur",{stdDeviation:"3"}),t("feOffset",{result:"offsetblur"}),t("feFlood",{"flood-color":"#333"}),t("feComposite",{operator:"in",in2:"offsetblur"}),t("feMerge",null,t("feMergeNode",null),t("feMergeNode",{in:"SourceGraphic"})))),n.map((t=>O.call(this,t,s))),W.call(this),e?t("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},r):t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`,"text-anchor":"middle","dominant-baseline":"middle"},n.map((t=>t.amount>0&&!t.inSmallCluster?E.call(this,t):"")))))}function K(t,s){t.forEach((t=>{t.dataset.segmentindex&&parseInt(t.dataset.segmentindex)!==s.index?t.classList.add("faded"):t.classList.remove("faded")}))}function N(t){t.forEach((t=>{t.classList.remove("faded")}))}function O(s,i){const e=m(s.amount,this.total,!0)+"%";return!isNaN(s.amount)&&t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("path",{id:s.id,class:"segment doughnut-segment",fill:s.visualAmount?s.color:"transparent",d:S.call(this,s.visualAmount,s.offset,i),onClick:t=>M.call(this,t,s),onFocus:t=>z.call(this,t,s),onKeyDown:t=>y.call(this,t),role:"img","aria-label":`${s.legend}, ${e}`,"data-segmentindex":s.index}))}function W(){return this.isTabbing?t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("use",{tabindex:-1,id:"kfbg1",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfstroke",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfbg2",xlinkHref:`#${this.focusedSliceId}`})):""}function E(s){const i=v(s.offset+s.visualAmount/2,this.total);let e,{x:n,y:a}=w(this.chartDetails.size/2,1.4,i-90);return e=0===s.perc&&s.amount>0?"<1%":100===s.perc&&s.amount<this.total?">99%":s.perc+"%",t("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":s.index},e)}function G(s){const i="bar"===s,e=this.el.shadowRoot.querySelectorAll(".value");return e.length>0&&requestAnimationFrame((()=>{let t=[],s=!1;e.forEach((i=>{i.classList.remove("hidden");const e=parseInt(i.dataset.value);if(t.length>0&&0!=e){const n=i.getBoundingClientRect().left-4;t.forEach((t=>{const a=parseInt(t.dataset.value);t.getBoundingClientRect().right>n&&((e<a?i:t).classList.add("hidden"),s=!0)}))}!i.classList.contains("hidden")&&e>0&&t.push(i)})),(this.isBar||this.isDoughnut)&&this.showHiddenValuesMessage(s)})),t("div",{class:"chart-wrapper bar-wrapper"},i?t("div",{class:"single-perc"},m(this.slicesDetails[0].amount,this.total,!0)+"%"):"","bar3"===this.chartType&&this.drawAxis(),t("div",{class:`inner-stacked-bar-wrapper ${f(this.valueFormat)}`},i?"":t("div",{class:`values ${this.valueFormat}`},this.slicesDetails.map((t=>this.renderBarText(t,5)))),t("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((t=>L.call(this,t,5)))),i?J.call(this):""),"bar3"===this.chartType?t("div",{class:"bar3-axis-label","aria-hidden":"true"},t("span",null,"0%"),t("span",null,"100%")):"")}function L(s,i){const e=m(s.amount,this.total,!1),n=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper"),a=e/100*(n?n.offsetWidth:this.el.offsetWidth)>=i,r=a||0==s.amount?`${e}%`:`${i}px`;let o="";return"percentage"==this.valueFormat?o=`${m(s.amount,this.total,!0)} %`:"amount"==this.valueFormat&&(o=s.amount.toString()),t("div",{class:`segment stacked-bar-segment ${0===m(s.amount,this.total,!1)?"zero":""} ${a?"":"fixed-width"}`,style:{backgroundColor:s.color,width:r},onClick:t=>M.call(this,t,s),onFocus:t=>z.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("span",{class:"sr-only"},`${s.legend} ${o}`))}function R(s){const i=this.slicesDetails.map((t=>t.amount)).reduce(((t,s)=>t>s?t:s)),n=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);let a=(r=this.el.getBoundingClientRect().width-n-48,Math.round(r/function(t){return function(t){let s=80*(t-300)/600+70;return s<70?70:s>150?150:s}(t)}(r)));var r;let o=k(i,a);const h=Math.floor((a*o-i)/o);a-=h,this.el.style.setProperty("--backgroundSize",100/a+"%"),this.el.style.setProperty("--labelWidth",this.labelWidth),"bar7"!==s||this.showBarLegend||this.el.style.setProperty("--labelWidth","0px");const c=[];this.slicesDetails.forEach((e=>{e.legend&&c.push(function(s,i,e){return t("label",{class:`label${"bar7"!==e||i?"":" hidden"}`},s)}(e.legend,this.showBarLegend,s)),c.push(U.call(this,e,o,a,i))}));const d=[];for(let s=1;s<=a;s++){const i=b(e(s,o));d.push(t("div",{class:"tick"},t("span",null,i)))}const l="bar6"===s&&this.showGrid&&this.el.getBoundingClientRect().width>300;return t("div",{class:"chart-wrapper simple-bar-wrapper"},t("div",{class:`chart ${f(this.valueFormat)}`},l&&t("div",{class:"gridlines"}),t("div",{class:"rows"},c)),l&&t("div",{class:"x-axis","aria-hidden":"true"},t("div",{class:"zero"},t("span",null,"0")),d))}function U(s,i,e,n){const a=m(s.amount,"bar6"===this.currentChartType?i*e:n,!1),r=a?a+"%":"1px",o=b(s.amount);let h="amount"===this.valueFormat?o:"";return"bar6"===this.currentChartType&&"percentage"===this.valueFormat?h=s.amount+"%":"bar7"===this.currentChartType&&"percentage"===this.valueFormat&&(h=(0===this.total?"0":m(s.amount,this.total,!0))+"%"),t("div",{class:"bar segment",style:{backgroundColor:s.color,width:r},onClick:t=>M.call(this,t,s),onFocus:t=>z.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("div",{class:"value"},h))}function V(s){if(this.showLegend){const i=this.slicesDetails.reduce(((t,s)=>!!s.inSmallCluster||t),!1);return this.isDoughnut&&this.showHiddenValuesMessage(i),t("div",{class:"legend-wrapper"},t("div",{class:`legend ${s} ${"bar"===this.mode?"--top":"--bottom"}`,"aria-hidden":"true"},this.slicesDetails.map((t=>{const s="amount"==this.printModeFormat?`${t.amount}/${this.total}`:`${m(t.amount,this.total,!0)}%`;if(t.amount||t.legend)return q.call(this,{key:t.legend,color:t.color},s,t)}))),this.isDoughnut&&!this.printMode&&P())}}function q(s,i="",e=null){const n=t=>{e&&(e.coords={x:t.clientX,y:t.clientY},C(this.popoverEl,e),K(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),e))};return t("div",{class:"legend-item",onClick:t=>n(t),"data-segmentindex":e?e.index:null},t("div",{class:"legend-color",style:{backgroundColor:s.color}}),t("div",{class:"legend-text"},s.key,i&&t("span",{class:"print-value "+(this.printMode?"force-visible":"")},": ",i)))}function J(){if(this.completionMessage)return t("div",{class:"completion-message"},this.completionMessage)}function P(){return t("div",{class:"hidden-values-warning hidden"},g,t("br",null),p)}export{u as a,R as b,G as c,H as d,T as e,V as f,I as g,A as h,P as i,j,m as k,J as l,q as m,b as n,k as o,N as r}