@carto/meridian-ds 1.4.2-alpha-forwarding-props.2 → 1.4.2-alpha-unit-tests.1

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 (413) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/{Alert-1b84B18a.js → Alert-CZgNmICd.js} +36 -33
  3. package/dist/Alert-hBzSt1O0.cjs +4 -0
  4. package/dist/ArrowDown-BD0WmQR3.cjs +1 -0
  5. package/dist/ArrowDown-CMhYkZ2p.js +31 -0
  6. package/dist/SwatchSquare-C34ayL4L.cjs +1 -0
  7. package/dist/SwatchSquare-CVpwEFFV.js +48 -0
  8. package/dist/components/index.cjs +1 -1
  9. package/dist/components/index.js +4 -2
  10. package/dist/custom-icons/index.cjs +1 -1
  11. package/dist/custom-icons/index.js +5487 -4340
  12. package/dist/theme/index.cjs +1 -1
  13. package/dist/theme/index.js +1 -1
  14. package/dist/types/components/atoms/SelectField.d.ts.map +1 -1
  15. package/dist/types/components/molecules/Alert.d.ts.map +1 -1
  16. package/dist/types/custom-icons/AccessIn.d.ts +3 -3
  17. package/dist/types/custom-icons/AccessIn.d.ts.map +1 -1
  18. package/dist/types/custom-icons/AddApp.d.ts +3 -3
  19. package/dist/types/custom-icons/AddApp.d.ts.map +1 -1
  20. package/dist/types/custom-icons/AddSection.d.ts +3 -3
  21. package/dist/types/custom-icons/AddSection.d.ts.map +1 -1
  22. package/dist/types/custom-icons/AdvancedSettings.d.ts +3 -3
  23. package/dist/types/custom-icons/AdvancedSettings.d.ts.map +1 -1
  24. package/dist/types/custom-icons/Annotation.d.ts +3 -3
  25. package/dist/types/custom-icons/Annotation.d.ts.map +1 -1
  26. package/dist/types/custom-icons/ApiCall.d.ts +3 -3
  27. package/dist/types/custom-icons/ApiCall.d.ts.map +1 -1
  28. package/dist/types/custom-icons/ArrowDown.d.ts +3 -3
  29. package/dist/types/custom-icons/ArrowDown.d.ts.map +1 -1
  30. package/dist/types/custom-icons/ArrowLeft.d.ts +3 -3
  31. package/dist/types/custom-icons/ArrowLeft.d.ts.map +1 -1
  32. package/dist/types/custom-icons/ArrowRight.d.ts +3 -3
  33. package/dist/types/custom-icons/ArrowRight.d.ts.map +1 -1
  34. package/dist/types/custom-icons/ArrowUp.d.ts +3 -3
  35. package/dist/types/custom-icons/ArrowUp.d.ts.map +1 -1
  36. package/dist/types/custom-icons/Autostyle.d.ts +3 -3
  37. package/dist/types/custom-icons/Autostyle.d.ts.map +1 -1
  38. package/dist/types/custom-icons/Avg.d.ts +3 -3
  39. package/dist/types/custom-icons/Avg.d.ts.map +1 -1
  40. package/dist/types/custom-icons/Behavioral.d.ts +3 -3
  41. package/dist/types/custom-icons/Behavioral.d.ts.map +1 -1
  42. package/dist/types/custom-icons/Bigquery.d.ts +3 -3
  43. package/dist/types/custom-icons/Bigquery.d.ts.map +1 -1
  44. package/dist/types/custom-icons/Blending.d.ts +3 -3
  45. package/dist/types/custom-icons/Blending.d.ts.map +1 -1
  46. package/dist/types/custom-icons/BlockLabel.d.ts +3 -3
  47. package/dist/types/custom-icons/BlockLabel.d.ts.map +1 -1
  48. package/dist/types/custom-icons/BlockLabelOff.d.ts +3 -3
  49. package/dist/types/custom-icons/BlockLabelOff.d.ts.map +1 -1
  50. package/dist/types/custom-icons/BottomRow.d.ts +3 -3
  51. package/dist/types/custom-icons/BottomRow.d.ts.map +1 -1
  52. package/dist/types/custom-icons/Carto.d.ts +3 -3
  53. package/dist/types/custom-icons/Carto.d.ts.map +1 -1
  54. package/dist/types/custom-icons/CartoAi.d.ts +3 -3
  55. package/dist/types/custom-icons/CartoAi.d.ts.map +1 -1
  56. package/dist/types/custom-icons/CartoSymbol.d.ts +3 -3
  57. package/dist/types/custom-icons/CartoSymbol.d.ts.map +1 -1
  58. package/dist/types/custom-icons/CatalogView.d.ts +3 -3
  59. package/dist/types/custom-icons/CatalogView.d.ts.map +1 -1
  60. package/dist/types/custom-icons/CatastropheModeling.d.ts +3 -3
  61. package/dist/types/custom-icons/CatastropheModeling.d.ts.map +1 -1
  62. package/dist/types/custom-icons/Center.d.ts +3 -3
  63. package/dist/types/custom-icons/Center.d.ts.map +1 -1
  64. package/dist/types/custom-icons/CenterLayer.d.ts +3 -3
  65. package/dist/types/custom-icons/CenterLayer.d.ts.map +1 -1
  66. package/dist/types/custom-icons/CloseDiagonallyLeft.d.ts +3 -3
  67. package/dist/types/custom-icons/CloseDiagonallyLeft.d.ts.map +1 -1
  68. package/dist/types/custom-icons/CloseDiagonallyRight.d.ts +3 -3
  69. package/dist/types/custom-icons/CloseDiagonallyRight.d.ts.map +1 -1
  70. package/dist/types/custom-icons/CloseVertically.d.ts +3 -3
  71. package/dist/types/custom-icons/CloseVertically.d.ts.map +1 -1
  72. package/dist/types/custom-icons/CodeBlock.d.ts +3 -3
  73. package/dist/types/custom-icons/CodeBlock.d.ts.map +1 -1
  74. package/dist/types/custom-icons/Comments.d.ts +3 -3
  75. package/dist/types/custom-icons/Comments.d.ts.map +1 -1
  76. package/dist/types/custom-icons/Console.d.ts +3 -3
  77. package/dist/types/custom-icons/Console.d.ts.map +1 -1
  78. package/dist/types/custom-icons/Covid19.d.ts +3 -3
  79. package/dist/types/custom-icons/Covid19.d.ts.map +1 -1
  80. package/dist/types/custom-icons/CreateMap.d.ts +3 -3
  81. package/dist/types/custom-icons/CreateMap.d.ts.map +1 -1
  82. package/dist/types/custom-icons/CreateSpatialAnalysis.d.ts +3 -3
  83. package/dist/types/custom-icons/CreateSpatialAnalysis.d.ts.map +1 -1
  84. package/dist/types/custom-icons/CreateTileset.d.ts +3 -3
  85. package/dist/types/custom-icons/CreateTileset.d.ts.map +1 -1
  86. package/dist/types/custom-icons/CreateWorkflow.d.ts +3 -3
  87. package/dist/types/custom-icons/CreateWorkflow.d.ts.map +1 -1
  88. package/dist/types/custom-icons/Data.d.ts +3 -3
  89. package/dist/types/custom-icons/Data.d.ts.map +1 -1
  90. package/dist/types/custom-icons/DataAccess.d.ts +3 -3
  91. package/dist/types/custom-icons/DataAccess.d.ts.map +1 -1
  92. package/dist/types/custom-icons/DataExplorer.d.ts +3 -3
  93. package/dist/types/custom-icons/DataExplorer.d.ts.map +1 -1
  94. package/dist/types/custom-icons/DataMonetization.d.ts +3 -3
  95. package/dist/types/custom-icons/DataMonetization.d.ts.map +1 -1
  96. package/dist/types/custom-icons/DataObservatory.d.ts +3 -3
  97. package/dist/types/custom-icons/DataObservatory.d.ts.map +1 -1
  98. package/dist/types/custom-icons/DataOk.d.ts +3 -3
  99. package/dist/types/custom-icons/DataOk.d.ts.map +1 -1
  100. package/dist/types/custom-icons/DataPending.d.ts +3 -3
  101. package/dist/types/custom-icons/DataPending.d.ts.map +1 -1
  102. package/dist/types/custom-icons/DataPremium.d.ts +3 -3
  103. package/dist/types/custom-icons/DataPremium.d.ts.map +1 -1
  104. package/dist/types/custom-icons/DataPublic.d.ts +3 -3
  105. package/dist/types/custom-icons/DataPublic.d.ts.map +1 -1
  106. package/dist/types/custom-icons/DataSample.d.ts +3 -3
  107. package/dist/types/custom-icons/DataSample.d.ts.map +1 -1
  108. package/dist/types/custom-icons/DataUnavailable.d.ts +3 -3
  109. package/dist/types/custom-icons/DataUnavailable.d.ts.map +1 -1
  110. package/dist/types/custom-icons/Databricks.d.ts +3 -3
  111. package/dist/types/custom-icons/Databricks.d.ts.map +1 -1
  112. package/dist/types/custom-icons/Demographics.d.ts +3 -3
  113. package/dist/types/custom-icons/Demographics.d.ts.map +1 -1
  114. package/dist/types/custom-icons/Derived.d.ts +3 -3
  115. package/dist/types/custom-icons/Derived.d.ts.map +1 -1
  116. package/dist/types/custom-icons/Distance.d.ts +3 -3
  117. package/dist/types/custom-icons/Distance.d.ts.map +1 -1
  118. package/dist/types/custom-icons/Dot.d.ts +3 -3
  119. package/dist/types/custom-icons/Dot.d.ts.map +1 -1
  120. package/dist/types/custom-icons/DrawCircle.d.ts +3 -3
  121. package/dist/types/custom-icons/DrawCircle.d.ts.map +1 -1
  122. package/dist/types/custom-icons/DrawLasso.d.ts +3 -3
  123. package/dist/types/custom-icons/DrawLasso.d.ts.map +1 -1
  124. package/dist/types/custom-icons/DrawLine.d.ts +3 -3
  125. package/dist/types/custom-icons/DrawLine.d.ts.map +1 -1
  126. package/dist/types/custom-icons/DrawPolygon.d.ts +3 -3
  127. package/dist/types/custom-icons/DrawPolygon.d.ts.map +1 -1
  128. package/dist/types/custom-icons/DrawSquare.d.ts +3 -3
  129. package/dist/types/custom-icons/DrawSquare.d.ts.map +1 -1
  130. package/dist/types/custom-icons/DropAPin.d.ts +3 -3
  131. package/dist/types/custom-icons/DropAPin.d.ts.map +1 -1
  132. package/dist/types/custom-icons/DualMap.d.ts +3 -3
  133. package/dist/types/custom-icons/DualMap.d.ts.map +1 -1
  134. package/dist/types/custom-icons/Environmental.d.ts +3 -3
  135. package/dist/types/custom-icons/Environmental.d.ts.map +1 -1
  136. package/dist/types/custom-icons/EnvironmentalManagement.d.ts +3 -3
  137. package/dist/types/custom-icons/EnvironmentalManagement.d.ts.map +1 -1
  138. package/dist/types/custom-icons/Equal.d.ts +3 -3
  139. package/dist/types/custom-icons/Equal.d.ts.map +1 -1
  140. package/dist/types/custom-icons/ExitToAppLeft.d.ts +3 -3
  141. package/dist/types/custom-icons/ExitToAppLeft.d.ts.map +1 -1
  142. package/dist/types/custom-icons/Fabric.d.ts +3 -3
  143. package/dist/types/custom-icons/Fabric.d.ts.map +1 -1
  144. package/dist/types/custom-icons/Facebook.d.ts +3 -3
  145. package/dist/types/custom-icons/Facebook.d.ts.map +1 -1
  146. package/dist/types/custom-icons/Financial.d.ts +3 -3
  147. package/dist/types/custom-icons/Financial.d.ts.map +1 -1
  148. package/dist/types/custom-icons/FlipInverse.d.ts +3 -3
  149. package/dist/types/custom-icons/FlipInverse.d.ts.map +1 -1
  150. package/dist/types/custom-icons/Framed.d.ts +3 -3
  151. package/dist/types/custom-icons/Framed.d.ts.map +1 -1
  152. package/dist/types/custom-icons/FraudDetection.d.ts +3 -3
  153. package/dist/types/custom-icons/FraudDetection.d.ts.map +1 -1
  154. package/dist/types/custom-icons/Functions.d.ts +3 -3
  155. package/dist/types/custom-icons/Functions.d.ts.map +1 -1
  156. package/dist/types/custom-icons/GeneratingDescription.d.ts +3 -3
  157. package/dist/types/custom-icons/GeneratingDescription.d.ts.map +1 -1
  158. package/dist/types/custom-icons/GeocodeTable.d.ts +3 -3
  159. package/dist/types/custom-icons/GeocodeTable.d.ts.map +1 -1
  160. package/dist/types/custom-icons/Geography.d.ts +3 -3
  161. package/dist/types/custom-icons/Geography.d.ts.map +1 -1
  162. package/dist/types/custom-icons/Geomarketing.d.ts +3 -3
  163. package/dist/types/custom-icons/Geomarketing.d.ts.map +1 -1
  164. package/dist/types/custom-icons/Geometry.d.ts +3 -3
  165. package/dist/types/custom-icons/Geometry.d.ts.map +1 -1
  166. package/dist/types/custom-icons/Github.d.ts +3 -3
  167. package/dist/types/custom-icons/Github.d.ts.map +1 -1
  168. package/dist/types/custom-icons/Google.d.ts +3 -3
  169. package/dist/types/custom-icons/Google.d.ts.map +1 -1
  170. package/dist/types/custom-icons/H3.d.ts +3 -3
  171. package/dist/types/custom-icons/H3.d.ts.map +1 -1
  172. package/dist/types/custom-icons/HealthAnalytics.d.ts +3 -3
  173. package/dist/types/custom-icons/HealthAnalytics.d.ts.map +1 -1
  174. package/dist/types/custom-icons/HideComments.d.ts +3 -3
  175. package/dist/types/custom-icons/HideComments.d.ts.map +1 -1
  176. package/dist/types/custom-icons/HideLeftsidebar.d.ts +3 -3
  177. package/dist/types/custom-icons/HideLeftsidebar.d.ts.map +1 -1
  178. package/dist/types/custom-icons/Home.d.ts +3 -3
  179. package/dist/types/custom-icons/Home.d.ts.map +1 -1
  180. package/dist/types/custom-icons/Housing.d.ts +3 -3
  181. package/dist/types/custom-icons/Housing.d.ts.map +1 -1
  182. package/dist/types/custom-icons/HumanMobility.d.ts +3 -3
  183. package/dist/types/custom-icons/HumanMobility.d.ts.map +1 -1
  184. package/dist/types/custom-icons/Id.d.ts +3 -3
  185. package/dist/types/custom-icons/Id.d.ts.map +1 -1
  186. package/dist/types/custom-icons/Image.d.ts +3 -3
  187. package/dist/types/custom-icons/Image.d.ts.map +1 -1
  188. package/dist/types/custom-icons/Infrastructure.d.ts +3 -3
  189. package/dist/types/custom-icons/Infrastructure.d.ts.map +1 -1
  190. package/dist/types/custom-icons/IotAnalytics.d.ts +3 -3
  191. package/dist/types/custom-icons/IotAnalytics.d.ts.map +1 -1
  192. package/dist/types/custom-icons/LabelDeprecated.d.ts +3 -3
  193. package/dist/types/custom-icons/LabelDeprecated.d.ts.map +1 -1
  194. package/dist/types/custom-icons/Layers.d.ts +3 -3
  195. package/dist/types/custom-icons/Layers.d.ts.map +1 -1
  196. package/dist/types/custom-icons/Linkedin.d.ts +3 -3
  197. package/dist/types/custom-icons/Linkedin.d.ts.map +1 -1
  198. package/dist/types/custom-icons/MapCoordinates.d.ts +3 -3
  199. package/dist/types/custom-icons/MapCoordinates.d.ts.map +1 -1
  200. package/dist/types/custom-icons/MapCopy.d.ts +3 -3
  201. package/dist/types/custom-icons/MapCopy.d.ts.map +1 -1
  202. package/dist/types/custom-icons/MapOthers.d.ts +3 -3
  203. package/dist/types/custom-icons/MapOthers.d.ts.map +1 -1
  204. package/dist/types/custom-icons/MapPin.d.ts +3 -3
  205. package/dist/types/custom-icons/MapPin.d.ts.map +1 -1
  206. package/dist/types/custom-icons/MarkCommentRead.d.ts +3 -3
  207. package/dist/types/custom-icons/MarkCommentRead.d.ts.map +1 -1
  208. package/dist/types/custom-icons/MarketAnalysis.d.ts +3 -3
  209. package/dist/types/custom-icons/MarketAnalysis.d.ts.map +1 -1
  210. package/dist/types/custom-icons/Max.d.ts +3 -3
  211. package/dist/types/custom-icons/Max.d.ts.map +1 -1
  212. package/dist/types/custom-icons/MeasureTool.d.ts +3 -3
  213. package/dist/types/custom-icons/MeasureTool.d.ts.map +1 -1
  214. package/dist/types/custom-icons/Min.d.ts +3 -3
  215. package/dist/types/custom-icons/Min.d.ts.map +1 -1
  216. package/dist/types/custom-icons/MobilityPlanning.d.ts +3 -3
  217. package/dist/types/custom-icons/MobilityPlanning.d.ts.map +1 -1
  218. package/dist/types/custom-icons/NetworkDeployment.d.ts +3 -3
  219. package/dist/types/custom-icons/NetworkDeployment.d.ts.map +1 -1
  220. package/dist/types/custom-icons/NightsThermostat.d.ts +3 -3
  221. package/dist/types/custom-icons/NightsThermostat.d.ts.map +1 -1
  222. package/dist/types/custom-icons/NoApp.d.ts +3 -3
  223. package/dist/types/custom-icons/NoApp.d.ts.map +1 -1
  224. package/dist/types/custom-icons/NoMap.d.ts +3 -3
  225. package/dist/types/custom-icons/NoMap.d.ts.map +1 -1
  226. package/dist/types/custom-icons/NoSpatialExtension.d.ts +3 -3
  227. package/dist/types/custom-icons/NoSpatialExtension.d.ts.map +1 -1
  228. package/dist/types/custom-icons/NoTileset.d.ts +3 -3
  229. package/dist/types/custom-icons/NoTileset.d.ts.map +1 -1
  230. package/dist/types/custom-icons/NotEqual.d.ts +3 -3
  231. package/dist/types/custom-icons/NotEqual.d.ts.map +1 -1
  232. package/dist/types/custom-icons/Number.d.ts +3 -3
  233. package/dist/types/custom-icons/Number.d.ts.map +1 -1
  234. package/dist/types/custom-icons/Onboarding.d.ts +3 -3
  235. package/dist/types/custom-icons/Onboarding.d.ts.map +1 -1
  236. package/dist/types/custom-icons/OohAnalytics.d.ts +3 -3
  237. package/dist/types/custom-icons/OohAnalytics.d.ts.map +1 -1
  238. package/dist/types/custom-icons/Opacity.d.ts +3 -3
  239. package/dist/types/custom-icons/Opacity.d.ts.map +1 -1
  240. package/dist/types/custom-icons/OpenDiagonallyLeft.d.ts +3 -3
  241. package/dist/types/custom-icons/OpenDiagonallyLeft.d.ts.map +1 -1
  242. package/dist/types/custom-icons/OpenDiagonallyRight.d.ts +3 -3
  243. package/dist/types/custom-icons/OpenDiagonallyRight.d.ts.map +1 -1
  244. package/dist/types/custom-icons/OpenNewWindow.d.ts +3 -3
  245. package/dist/types/custom-icons/OpenNewWindow.d.ts.map +1 -1
  246. package/dist/types/custom-icons/OpenVertically.d.ts +3 -3
  247. package/dist/types/custom-icons/OpenVertically.d.ts.map +1 -1
  248. package/dist/types/custom-icons/ParameterSettings.d.ts +3 -3
  249. package/dist/types/custom-icons/ParameterSettings.d.ts.map +1 -1
  250. package/dist/types/custom-icons/PawnChess.d.ts +3 -3
  251. package/dist/types/custom-icons/PawnChess.d.ts.map +1 -1
  252. package/dist/types/custom-icons/PlaceSelect.d.ts +3 -3
  253. package/dist/types/custom-icons/PlaceSelect.d.ts.map +1 -1
  254. package/dist/types/custom-icons/PointsOfInterest.d.ts +3 -3
  255. package/dist/types/custom-icons/PointsOfInterest.d.ts.map +1 -1
  256. package/dist/types/custom-icons/Postgre.d.ts +3 -3
  257. package/dist/types/custom-icons/Postgre.d.ts.map +1 -1
  258. package/dist/types/custom-icons/PostgreOutlined.d.ts +3 -3
  259. package/dist/types/custom-icons/PostgreOutlined.d.ts.map +1 -1
  260. package/dist/types/custom-icons/Preferences.d.ts +3 -3
  261. package/dist/types/custom-icons/Preferences.d.ts.map +1 -1
  262. package/dist/types/custom-icons/ProcessData.d.ts +3 -3
  263. package/dist/types/custom-icons/ProcessData.d.ts.map +1 -1
  264. package/dist/types/custom-icons/PublicWithPassword.d.ts +3 -3
  265. package/dist/types/custom-icons/PublicWithPassword.d.ts.map +1 -1
  266. package/dist/types/custom-icons/Publish.d.ts +3 -3
  267. package/dist/types/custom-icons/Publish.d.ts.map +1 -1
  268. package/dist/types/custom-icons/Quadbin.d.ts +3 -3
  269. package/dist/types/custom-icons/Quadbin.d.ts.map +1 -1
  270. package/dist/types/custom-icons/Quadkey.d.ts +3 -3
  271. package/dist/types/custom-icons/Quadkey.d.ts.map +1 -1
  272. package/dist/types/custom-icons/QueryTable.d.ts +3 -3
  273. package/dist/types/custom-icons/QueryTable.d.ts.map +1 -1
  274. package/dist/types/custom-icons/Rain.d.ts +3 -3
  275. package/dist/types/custom-icons/Rain.d.ts.map +1 -1
  276. package/dist/types/custom-icons/Raster.d.ts +3 -3
  277. package/dist/types/custom-icons/Raster.d.ts.map +1 -1
  278. package/dist/types/custom-icons/Redshift.d.ts +3 -3
  279. package/dist/types/custom-icons/Redshift.d.ts.map +1 -1
  280. package/dist/types/custom-icons/Report.d.ts +3 -3
  281. package/dist/types/custom-icons/Report.d.ts.map +1 -1
  282. package/dist/types/custom-icons/Reset.d.ts +3 -3
  283. package/dist/types/custom-icons/Reset.d.ts.map +1 -1
  284. package/dist/types/custom-icons/RiskAnalysis.d.ts +3 -3
  285. package/dist/types/custom-icons/RiskAnalysis.d.ts.map +1 -1
  286. package/dist/types/custom-icons/RoadTraffic.d.ts +3 -3
  287. package/dist/types/custom-icons/RoadTraffic.d.ts.map +1 -1
  288. package/dist/types/custom-icons/RunSettings.d.ts +3 -3
  289. package/dist/types/custom-icons/RunSettings.d.ts.map +1 -1
  290. package/dist/types/custom-icons/RunStep.d.ts +3 -3
  291. package/dist/types/custom-icons/RunStep.d.ts.map +1 -1
  292. package/dist/types/custom-icons/Salesforce.d.ts +3 -3
  293. package/dist/types/custom-icons/Salesforce.d.ts.map +1 -1
  294. package/dist/types/custom-icons/Sample.d.ts +3 -3
  295. package/dist/types/custom-icons/Sample.d.ts.map +1 -1
  296. package/dist/types/custom-icons/SaveOk.d.ts +3 -3
  297. package/dist/types/custom-icons/SaveOk.d.ts.map +1 -1
  298. package/dist/types/custom-icons/ScheduleRun.d.ts +3 -3
  299. package/dist/types/custom-icons/ScheduleRun.d.ts.map +1 -1
  300. package/dist/types/custom-icons/Search.d.ts +3 -3
  301. package/dist/types/custom-icons/Search.d.ts.map +1 -1
  302. package/dist/types/custom-icons/SelectDestination.d.ts +3 -3
  303. package/dist/types/custom-icons/SelectDestination.d.ts.map +1 -1
  304. package/dist/types/custom-icons/SelectTool.d.ts +3 -3
  305. package/dist/types/custom-icons/SelectTool.d.ts.map +1 -1
  306. package/dist/types/custom-icons/SelectVariable.d.ts +3 -3
  307. package/dist/types/custom-icons/SelectVariable.d.ts.map +1 -1
  308. package/dist/types/custom-icons/SingleLayer.d.ts +3 -3
  309. package/dist/types/custom-icons/SingleLayer.d.ts.map +1 -1
  310. package/dist/types/custom-icons/SiteSelection.d.ts +3 -3
  311. package/dist/types/custom-icons/SiteSelection.d.ts.map +1 -1
  312. package/dist/types/custom-icons/Snowflake.d.ts +3 -3
  313. package/dist/types/custom-icons/Snowflake.d.ts.map +1 -1
  314. package/dist/types/custom-icons/SpatialAnalysis.d.ts +3 -3
  315. package/dist/types/custom-icons/SpatialAnalysis.d.ts.map +1 -1
  316. package/dist/types/custom-icons/SpatialExtension.d.ts +3 -3
  317. package/dist/types/custom-icons/SpatialExtension.d.ts.map +1 -1
  318. package/dist/types/custom-icons/SpatialIndexes.d.ts +3 -3
  319. package/dist/types/custom-icons/SpatialIndexes.d.ts.map +1 -1
  320. package/dist/types/custom-icons/Sql.d.ts +3 -3
  321. package/dist/types/custom-icons/Sql.d.ts.map +1 -1
  322. package/dist/types/custom-icons/SqlError.d.ts +3 -3
  323. package/dist/types/custom-icons/SqlError.d.ts.map +1 -1
  324. package/dist/types/custom-icons/Sso.d.ts +3 -3
  325. package/dist/types/custom-icons/Sso.d.ts.map +1 -1
  326. package/dist/types/custom-icons/StrokeCustom.d.ts +3 -3
  327. package/dist/types/custom-icons/StrokeCustom.d.ts.map +1 -1
  328. package/dist/types/custom-icons/StrokeDash.d.ts +3 -3
  329. package/dist/types/custom-icons/StrokeDash.d.ts.map +1 -1
  330. package/dist/types/custom-icons/StrokeSolid.d.ts +3 -3
  331. package/dist/types/custom-icons/StrokeSolid.d.ts.map +1 -1
  332. package/dist/types/custom-icons/SupplyChain.d.ts +3 -3
  333. package/dist/types/custom-icons/SupplyChain.d.ts.map +1 -1
  334. package/dist/types/custom-icons/SwatchCircle.d.ts +3 -3
  335. package/dist/types/custom-icons/SwatchCircle.d.ts.map +1 -1
  336. package/dist/types/custom-icons/SwatchCircleNone.d.ts +3 -3
  337. package/dist/types/custom-icons/SwatchCircleNone.d.ts.map +1 -1
  338. package/dist/types/custom-icons/SwatchSquare.d.ts +3 -3
  339. package/dist/types/custom-icons/SwatchSquare.d.ts.map +1 -1
  340. package/dist/types/custom-icons/TableColumn.d.ts +3 -3
  341. package/dist/types/custom-icons/TableColumn.d.ts.map +1 -1
  342. package/dist/types/custom-icons/TableColumnLimited.d.ts +3 -3
  343. package/dist/types/custom-icons/TableColumnLimited.d.ts.map +1 -1
  344. package/dist/types/custom-icons/TempTable.d.ts +3 -3
  345. package/dist/types/custom-icons/TempTable.d.ts.map +1 -1
  346. package/dist/types/custom-icons/TerritoryPlanning.d.ts +3 -3
  347. package/dist/types/custom-icons/TerritoryPlanning.d.ts.map +1 -1
  348. package/dist/types/custom-icons/TextBox.d.ts +3 -3
  349. package/dist/types/custom-icons/TextBox.d.ts.map +1 -1
  350. package/dist/types/custom-icons/Tileset.d.ts +3 -3
  351. package/dist/types/custom-icons/Tileset.d.ts.map +1 -1
  352. package/dist/types/custom-icons/TilesetsAggregated.d.ts +3 -3
  353. package/dist/types/custom-icons/TilesetsAggregated.d.ts.map +1 -1
  354. package/dist/types/custom-icons/TimeBuckets.d.ts +3 -3
  355. package/dist/types/custom-icons/TimeBuckets.d.ts.map +1 -1
  356. package/dist/types/custom-icons/TimeCar.d.ts +3 -3
  357. package/dist/types/custom-icons/TimeCar.d.ts.map +1 -1
  358. package/dist/types/custom-icons/TimeWindowIncremental.d.ts +3 -3
  359. package/dist/types/custom-icons/TimeWindowIncremental.d.ts.map +1 -1
  360. package/dist/types/custom-icons/TimeWindowMoving.d.ts +3 -3
  361. package/dist/types/custom-icons/TimeWindowMoving.d.ts.map +1 -1
  362. package/dist/types/custom-icons/Tooltip.d.ts +3 -3
  363. package/dist/types/custom-icons/Tooltip.d.ts.map +1 -1
  364. package/dist/types/custom-icons/TopRow.d.ts +3 -3
  365. package/dist/types/custom-icons/TopRow.d.ts.map +1 -1
  366. package/dist/types/custom-icons/TwinArea.d.ts +3 -3
  367. package/dist/types/custom-icons/TwinArea.d.ts.map +1 -1
  368. package/dist/types/custom-icons/Twitter.d.ts +3 -3
  369. package/dist/types/custom-icons/Twitter.d.ts.map +1 -1
  370. package/dist/types/custom-icons/UpdateGen.d.ts +3 -3
  371. package/dist/types/custom-icons/UpdateGen.d.ts.map +1 -1
  372. package/dist/types/custom-icons/UploadFileUrl.d.ts +3 -3
  373. package/dist/types/custom-icons/UploadFileUrl.d.ts.map +1 -1
  374. package/dist/types/custom-icons/View2d.d.ts +3 -3
  375. package/dist/types/custom-icons/View2d.d.ts.map +1 -1
  376. package/dist/types/custom-icons/View3d.d.ts +3 -3
  377. package/dist/types/custom-icons/View3d.d.ts.map +1 -1
  378. package/dist/types/custom-icons/ViewLeftsidebar.d.ts +3 -3
  379. package/dist/types/custom-icons/ViewLeftsidebar.d.ts.map +1 -1
  380. package/dist/types/custom-icons/WfComponent.d.ts +3 -3
  381. package/dist/types/custom-icons/WfComponent.d.ts.map +1 -1
  382. package/dist/types/custom-icons/WfComponentInvalid.d.ts +3 -3
  383. package/dist/types/custom-icons/WfComponentInvalid.d.ts.map +1 -1
  384. package/dist/types/custom-icons/WfExtensionPackageDefault.d.ts +3 -3
  385. package/dist/types/custom-icons/WfExtensionPackageDefault.d.ts.map +1 -1
  386. package/dist/types/custom-icons/WfInput.d.ts +3 -3
  387. package/dist/types/custom-icons/WfInput.d.ts.map +1 -1
  388. package/dist/types/custom-icons/WfInputAlt.d.ts +3 -3
  389. package/dist/types/custom-icons/WfInputAlt.d.ts.map +1 -1
  390. package/dist/types/custom-icons/WfModule.d.ts +3 -3
  391. package/dist/types/custom-icons/WfModule.d.ts.map +1 -1
  392. package/dist/types/custom-icons/WfOutput.d.ts +3 -3
  393. package/dist/types/custom-icons/WfOutput.d.ts.map +1 -1
  394. package/dist/types/custom-icons/WfOutputAlt.d.ts +3 -3
  395. package/dist/types/custom-icons/WfOutputAlt.d.ts.map +1 -1
  396. package/dist/types/custom-icons/WhiteSpace.d.ts +3 -3
  397. package/dist/types/custom-icons/WhiteSpace.d.ts.map +1 -1
  398. package/dist/types/custom-icons/WidgetOptions.d.ts +3 -3
  399. package/dist/types/custom-icons/WidgetOptions.d.ts.map +1 -1
  400. package/dist/types/custom-icons/Workflow.d.ts +3 -3
  401. package/dist/types/custom-icons/Workflow.d.ts.map +1 -1
  402. package/dist/types/custom-icons/WorkflowTemp.d.ts +3 -3
  403. package/dist/types/custom-icons/WorkflowTemp.d.ts.map +1 -1
  404. package/dist/types/custom-icons/types.d.ts +14 -0
  405. package/dist/types/custom-icons/types.d.ts.map +1 -0
  406. package/dist/widgets/index.cjs +1 -1
  407. package/dist/widgets/index.js +2 -2
  408. package/package.json +2 -2
  409. package/dist/Alert-BbMbtaix.cjs +0 -4
  410. package/dist/ArrowDown-B1AG0MlL.js +0 -24
  411. package/dist/ArrowDown-CGnG0E-4.cjs +0 -1
  412. package/dist/SwatchSquare-C-QxZLYN.cjs +0 -1
  413. package/dist/SwatchSquare-DAne_6Gi.js +0 -35
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("react"),o=require("@mui/material"),Z=require("react-intl"),j=require("../TablePaginationActions-V8ultBUz.cjs"),jn=require("echarts-for-react"),wn=require("react-window"),Te=require("../SwatchSquare-C-QxZLYN.cjs"),ee=require("@mui/icons-material"),bn=require("../Alert-BbMbtaix.cjs"),Me=require("../paletteUtils-DLQVT9qo.cjs");function Bt(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}function te(e){return!e||typeof e!="object"?e:`${e.prefix??""}${e.value}${e.suffix??""}`}const Sn=[],In={},lt=e=>e;function kn(e,n){if(!e||Array.isArray(e)&&e.length===0)return null;const i=Array.isArray(e)?e:[e];let r="";return r+=String(i[0].axisValueLabel),r+=i.map(({seriesName:s,value:l,data:a,marker:p})=>{const c=s?s+": ":"",g=te(n(Number(l))),h=a,d=`<div style="margin-left: 8px; display: inline">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("react"),o=require("@mui/material"),Z=require("react-intl"),j=require("../TablePaginationActions-V8ultBUz.cjs"),jn=require("echarts-for-react"),wn=require("react-window"),Te=require("../SwatchSquare-C34ayL4L.cjs"),ee=require("@mui/icons-material"),bn=require("../Alert-hBzSt1O0.cjs"),Me=require("../paletteUtils-DLQVT9qo.cjs");function Bt(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}function te(e){return!e||typeof e!="object"?e:`${e.prefix??""}${e.value}${e.suffix??""}`}const Sn=[],In={},lt=e=>e;function kn(e,n){if(!e||Array.isArray(e)&&e.length===0)return null;const i=Array.isArray(e)?e:[e];let r="";return r+=String(i[0].axisValueLabel),r+=i.map(({seriesName:s,value:l,data:a,marker:p})=>{const c=s?s+": ":"",g=te(n(Number(l))),h=a,d=`<div style="margin-left: 8px; display: inline">
2
2
  ${c}${g}${String((h==null?void 0:h.unit)||"")}
3
3
  </div>`;return`<div style="margin-top: 4px">${String(p)}${d}</div>`}).join(" "),r}function Tn({height:e,labels:n=In,yAxisData:i,selectedBars:r=Sn,series:s,colors:l,tooltip:a=!0,tooltipFormatter:p=kn,xAxisFormatter:c=lt,yAxisFormatter:g=lt,onSelectedBarsChange:h,animation:d=!0,filterable:y=!0,stacked:f=!0,...m}){const v=o.useTheme(),x=u.useMemo(()=>(s??[]).map(I=>n[I]??I),[s,n]),b=u.useMemo(()=>Array.isArray(i[0])?i:[i],[i]),S=u.useMemo(()=>typeof l=="string"?[l]:Array.isArray(l)&&l.length?l:b.length<=1||x.length===1?[v.palette.secondary.main]:b.length===2||x.length===2?[v.palette.secondary.light,v.palette.secondary.dark]:Object.values(v.palette.qualitative.bold||{}),[l,v,b,x]);return{...m,tooltip:a,tooltipFormatter:p,xAxisFormatter:c,yAxisFormatter:g,onSelectedBarsChange:h,animation:d,filterable:y,stacked:f,labels:n,height:e??parseInt(v.spacing(22)),selectedBars:Mn(r),yAxisData:b,colors:S,series:x}}function Mn(e){return(e??[]).length?e.map(n=>Array.isArray(n)&&n.length===2?n:Array.isArray(n)?[...Array(2)].map((r,s)=>n[s]??0):[n,0]):[]}var Cn=function e(n,i){if(n===i)return!0;if(n&&i&&typeof n=="object"&&typeof i=="object"){if(n.constructor!==i.constructor)return!1;var r,s,l;if(Array.isArray(n)){if(r=n.length,r!=i.length)return!1;for(s=r;s--!==0;)if(!e(n[s],i[s]))return!1;return!0}if(n.constructor===RegExp)return n.source===i.source&&n.flags===i.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===i.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===i.toString();if(l=Object.keys(n),r=l.length,r!==Object.keys(i).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(i,l[s]))return!1;for(s=r;s--!==0;){var a=l[s];if(!e(n[a],i[a]))return!1}return!0}return n!==n&&i!==i};const xe=j.getDefaultExportFromCjs(Cn);class ye extends jn{componentDidUpdate(n){const{shouldSetOption:i}=this.props;if(typeof i=="function"&&!i(n,this.props))return;if(!xe(n.theme,this.props.theme)||!xe(n.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}const r=this.getEchartsInstance();xe(n.onEvents,this.props.onEvents)||(this.offEvents(r,n.onEvents),this.bindEvents(r,this.props.onEvents));const s=["option","notMerge","lazyUpdate","showLoading","loadingOption"];xe(at(this.props,s),at(n,s))||this.updateEChartsOption(),(!xe(n.style,this.props.style)||!xe(n.className,this.props.className))&&this.resize()}updateEChartsOption(){const n=this.props.option,i=this.props.loadingOption||null,{lazyUpdate:r,showLoading:s}=this.props,l=this.getEchartsInstance();return l.setOption(n,{replaceMerge:["series"],lazyUpdate:r}),s?l.showLoading(i):l.hideLoading(),l}offEvents(n,i){if(i)for(const r in i)typeof r=="string"&&n.off(r)}}function at(e,n){const i={};return n.forEach(r=>{i[r]=e[r]}),i}const _e=240,Pt=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"flex-end",justifyContent:"space-between",position:"relative",padding:e.spacing(0,2),"&::before":{content:'""',position:"absolute",top:0,right:0,left:0,bottom:0,backgroundSize:e.spacing(4,4),backgroundImage:`linear-gradient(to bottom, ${e.palette.grey[50]} 1px, transparent 1px)`,transform:"scaleY(-1)"}})),Lt=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"flex-end",justifyContent:"space-between",backgroundImage:`linear-gradient(${e.palette.grey[50]} 0.5px, transparent 0.5px, transparent calc(100% - 0.5px), ${e.palette.grey[50]} calc(100% - 0.5px)), linear-gradient(90deg, ${e.palette.grey[50]} 0.5px, transparent 0.5px, transparent calc(100% - 0.5px), ${e.palette.grey[50]} calc(100% - 0.5px))`,backgroundSize:"8.33% 20%",border:`0.5px solid ${e.palette.grey[50]}`})),je=o.styled(o.Skeleton)(({theme:e})=>({flex:1,maxWidth:e.spacing(12),"& + &":{marginLeft:e.spacing(1)}})),ne=o.styled(o.Skeleton)(({theme:e})=>({flex:1,maxWidth:e.spacing(8),"& + &":{marginLeft:"1px"}})),An=o.styled(o.Skeleton)(({theme:e})=>({backgroundColor:e.palette.common.white})),ct=o.styled(o.Skeleton)(({theme:e})=>({backgroundColor:e.palette.grey[100]}));function En({height:e}){return t.jsxs(t.Fragment,{children:[t.jsx(o.Box,{mb:2,children:t.jsx(o.Skeleton,{width:48,height:8})}),t.jsxs(Pt,{style:{height:e||_e},children:[t.jsx(je,{variant:"rectangular",height:"20%"}),t.jsx(je,{variant:"rectangular",height:"40%"}),t.jsx(je,{variant:"rectangular",height:"60%"}),t.jsx(je,{variant:"rectangular",height:"20%"}),t.jsx(je,{variant:"rectangular",height:"80%"})]})]})}function de(e){const[n,i]=u.useState(!1),[r,s]=u.useState(!1);return u.useEffect(()=>{e&&!r&&(i(!0),s(!0)),e||i(!1)},[e,r]),{showSkeleton:n}}const Bn=Bt(),Pn=o.styled(o.Grid)(({theme:e})=>({marginBottom:e.spacing(2),flexDirection:"row",justifyContent:"space-between",alignItems:"center","& .MuiTypography-caption":{color:e.palette.text.secondary}})),Ln=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer"}));function Dn(e){const{yAxisData:n,xAxisData:i,series:r,selectedBars:s,onSelectedBarsChange:l,tooltip:a,tooltipFormatter:p,labels:c,colors:g,xAxisFormatter:h,yAxisFormatter:d,stacked:y,height:f,filterable:m,animation:v,isLoading:x}=Tn(e),b=r.length>1,S=o.useTheme(),I=Z.useIntl(),T=j.useImperativeIntl(I),{showSkeleton:w}=de(!!x),C=u.useMemo(()=>({show:a,trigger:"axis",padding:[parseInt(S.spacing(.5)),parseInt(S.spacing(1))],borderWidth:0,textStyle:{...S.typography.caption,fontSize:11,color:S.palette.common.white},backgroundColor:S.palette.black[90],position:function(k,O,G,R,H){const q={top:0};return H.contentSize[0]<H.viewSize[0]-k[0]?q.left=k[0]:q.right=H.viewSize[0]-k[0],q},formatter:k=>p(k,d)}),[S,a,p,d]),M=u.useMemo(()=>i.map(k=>te(h(c[k]??String(k)))),[i,c,h]),D=u.useMemo(()=>({type:"category",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{...S.typography.overlineDelicate,padding:[parseInt(S.spacing(.5)),0,0,0]},data:M}),[S,M]),E=u.useMemo(()=>{let k=[];return y?k=n.reduce((O,G)=>(G.forEach((R,H)=>O[H]=(O[H]??0)+(R??Number.MIN_SAFE_INTEGER)),O),[]):k=n.flat().map(O=>O??Number.MIN_SAFE_INTEGER),Math.max(...k)},[n,y]),L=u.useMemo(()=>({type:"value",axisLabel:{margin:0,verticalAlign:"bottom",padding:[0,0,parseInt(S.spacing(1.25)),0],show:!0,showMaxLabel:!0,showMinLabel:!1,inside:!0,color:k=>k>=E?S.palette.black[60]:"transparent",...S.typography.overlineDelicate,formatter:k=>te(d(k))},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!0,onZero:!1,lineStyle:{color:S.palette.black[4]}}}),[S,E,d]),P=u.useMemo(()=>n.map((k,O)=>({type:"bar",name:r[O]??"",animation:v,barMaxWidth:100,data:k.map((G,R)=>{const H=s.some(([F,Y=0])=>F===R&&Y===O),q=!!s.length&&!H;return{value:G,...q&&{itemStyle:{color:S.palette.black[25]},disabled:!0}}}),...y&&{stack:"total"},...!Bn&&{emphasis:{focus:"series",itemStyle:{color:o.darken(g[O]??"#000",.25)}}}})),[v,g,r,n,s,y,S]),N=u.useMemo(()=>({grid:{left:M.length>=4?dt(String(M[0]),M.length):0,top:parseInt(S.spacing(2)),right:M.length>=4?dt(String(M[M.length-1]),M.length):0,bottom:0,containLabel:!0},axisPointer:{lineStyle:{color:S.palette.black[40]}},color:g,tooltip:C,xAxis:D,yAxis:L,series:P}),[M,S,g,C,D,L,P]),V=()=>{l&&l([],[])},_=k=>{k.key==="Enter"&&V()},B=u.useCallback(k=>{if(l){const O=[...s],{dataIndex:G,componentIndex:R}=k,H=O.findIndex(([F,Y=0])=>G===F&&R===Y);H===-1?O.push([G,R]):O.splice(H,1);const q=O.map(([F,Y=0])=>({xAxis:i[F],serie:r[Y],yAxis:n[Y][F]}));l(b?O:O.map(F=>F[0]),q)}},[n,l,s,i,r,b]),$=u.useMemo(()=>m?{click:B}:{},[m,B]);return w?t.jsx(En,{height:f}):t.jsxs("div",{children:[l&&t.jsxs(Pn,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",children:s.length>0?T.formatMessage({id:"c4r.widgets.bar.selectedItems"},{items:s.length}):T.formatMessage({id:"c4r.widgets.bar.all"})}),s&&s.length>0&&t.jsx(Ln,{onClick:()=>V(),onKeyDown:_,underline:"hover",tabIndex:0,children:T.formatMessage({id:"c4r.widgets.bar.clear"})})]}),!!N&&t.jsx(ye,{option:N,lazyUpdate:!0,notMerge:!0,onEvents:$,style:{height:f}})]})}function dt(e="",n=0){return n<=15&&e.length<=8?0:e.length*8.5/6}const ue="__rest__",me="Others";var pe=(e=>(e.RANKING="ranking",e.FIXED="fixed",e))(pe||{});const Dt=o.styled(o.Grid)(({theme:e})=>({maxHeight:e.spacing(40),overflow:"auto",padding:0})),Nt=o.styled(o.Grid,{shouldForwardProp:e=>e!=="selectable"&&e!=="name"&&e!=="unselected"})(({theme:e,selectable:n,name:i,unselected:r})=>({flexDirection:"row",maxWidth:"100%",padding:e.spacing(.5,.25),margin:0,"> .MuiGrid-item":{paddingTop:0,paddingLeft:0},"&:focus-visible":{outline:"none !important",boxShadow:`inset 0 0 0 2px ${e.palette.primary.main} !important`},...r&&{color:e.palette.text.disabled,".progressbar div":{backgroundColor:e.palette.text.disabled}},...i!==ue&&n&&{cursor:"pointer",flexWrap:"nowrap","&:hover .progressbar div":{backgroundColor:e.palette.secondary.dark}},...i===ue&&{cursor:"default",".progressbar div":{backgroundColor:e.palette.text.disabled}}})),ut=o.styled(o.Grid)(({theme:{spacing:e,palette:n}})=>({flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:e(1.5),paddingRight:e(1),"& .MuiTypography-caption":{color:n.text.secondary}})),Nn=o.styled(o.Grid)(({theme:e})=>({height:e.spacing(.5),width:"100%",margin:e.spacing(.5,0,.25,0),borderRadius:e.spacing(.5),backgroundColor:e.palette.action.disabledBackground,"& div":{width:0,height:"100%",borderRadius:e.spacing(.5),backgroundColor:e.palette.secondary.main,transition:`background-color ${e.transitions.easing.sharp} ${e.transitions.duration.shortest}ms,
4
4
  width ${e.transitions.easing.sharp} ${e.transitions.duration.complex}ms`}})),On=o.styled(o.Grid,{shouldForwardProp:e=>e!=="isSelectable"})(({theme:e,isSelectable:n})=>({...n&&{width:`calc(100% - ${e.spacing(4)})`}})),$n=o.styled(j.Typography)(({theme:e})=>({fontWeight:e.typography.fontWeightBold,marginRight:e.spacing(2)})),Ae=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer","& + hr":{margin:e.spacing(0,1)}})),Rn=o.styled(o.Box)(({theme:e})=>({...e.typography.body2})),pt=o.styled(o.Button)(({theme:e})=>({position:"absolute",left:"-999px",top:"-1px",width:"1px",height:"1px",display:"inline-flex","&:focus-visible":{position:"static",width:"auto",height:"auto",marginTop:e.spacing(2)}})),Fn=o.styled(o.Skeleton)(({theme:e})=>({marginTop:e.spacing(1.25),marginBottom:e.spacing(1.75)})),Wn=e=>e%2===1,Ot=()=>t.jsxs(t.Fragment,{children:[t.jsx(o.Skeleton,{width:48,height:8}),t.jsx(Dt,{container:!0,mt:3,children:[...Array(6)].map((e,n)=>t.jsxs(Nt,{container:!0,spacing:1,children:[t.jsxs(o.Grid,{container:!0,item:!0,direction:"row",justifyContent:"space-between",children:[t.jsx(o.Skeleton,{width:Wn(n)?72:48,height:8}),t.jsx(o.Skeleton,{width:48,height:8})]}),t.jsx(Fn,{height:4,width:"100%"})]},n))})]});function $t(e){const n=u.useRef();return u.useEffect(()=>{n.current=e}),n.current}function Xe({start:e,end:n,duration:i,drawFrame:r,requestRef:s}){if(e===n&&!(e===0&&n===0))return;const a=n-e;let p=e;const c=a/(i/1e3*60),g=()=>{p+=c,r(Math.floor(p)),c>0&&p<n||c<0&&p>n?s.current=requestAnimationFrame(g):r(n)};s.current=requestAnimationFrame(g)}function _n({start:e,end:n,duration:i,drawFrame:r,requestRef:s}){if(e.length===n.length&&e.every((f,m)=>f.value===n[m].value))return;let a=n.map((f,m)=>e[m]&&e[m].name===f.name?{...f,value:e[m].value}:f),p=0;const c=a.map((f,m)=>n[m].value-f.value);if(c.every(f=>f===0)){r(n);return}const h=i/1e3*60,d=c.map(f=>f/h),y=()=>{p<h?(a=a.map((f,m)=>{const v=Math.floor(f.value+d[m]),x=m>0&&Math.floor(f.value+d[m-1]);return{...f,value:v===x?n[m].value:v}}),r(a),p++,s.current=requestAnimationFrame(y)):r(n)};s.current=requestAnimationFrame(y)}const Gn=[],Hn={},zn=e=>e,Ve=()=>{},Yn=e=>e.reduce((n,i)=>n+(i.value??0),0);function Vn({data:e,formatter:n=zn,labels:i=Hn,maxItems:r=5,order:s=pe.RANKING,selectedCategories:l=Gn,onSelectedCategoriesChange:a=Ve,onMaxItemsOverflow:p=Yn,animation:c=!0,filterable:g=!0,searchable:h=!0,isLoading:d}){const y=o.useTheme(),[f,m]=u.useState([]),[v,x]=u.useState(1),[b,S]=u.useState(!1),[I,T]=u.useState(""),[w,C]=u.useState([]),[M,D]=u.useState([]),[E,L]=u.useState([]),P=u.useRef(null),N=u.useRef(),V=$t(E),_=u.useRef([]),{showSkeleton:B}=de(!!d),$=Z.useIntl(),k=j.useImperativeIntl($);function O(A){return f.reduce((z,U)=>(A.includes(U.name)&&z.push(U.name),z),[])}function G(A){if(A!==ue){let z;l.includes(A)?z=l.filter(U=>U!==A):z=[...l,A],a&&a(z)}}const R=()=>a([]),H=A=>{A.key==="Enter"&&R()},q=()=>{a([]),C([])},F=A=>{A.key==="Enter"&&q()},Y=()=>{C(O(l))},J=A=>{A.key==="Enter"&&Y()},ie=()=>{const A=O(M);a([...A]),C([...A]),D([]),S(!1),T("")},re=A=>{A.key==="Enter"&&ie()},W=()=>{T(""),S(!1)},X=A=>{if(A!==ue){let z;M.includes(A)?z=M.filter(U=>U!==A):z=[...M,A],D(z)}},K=A=>{A.currentTarget.scrollIntoView()},Q=A=>{T(A.currentTarget.value)},ge=()=>{S(!0),D([...l])},ve=u.useCallback(A=>{if(b)return I?A.filter(z=>{var se;if(!z.name)return!1;const U=String(z.name);return!!(U.toLowerCase().includes(I.toLowerCase())||(se=i[U])!=null&&se.toLowerCase().includes(I.toLowerCase()))}):A;if(w.length)return w.reduce((U,se)=>{const Ce=A.find(le=>le.name===se);return U.push({name:se,value:Ce?Ce.value:null}),U},[]);{const z=A.slice(0,r);if(z.length<A.length){const U={name:ue,value:p(A.slice(r))};return[...z,U]}else return z}},[w,i,r,I,b,p]),he=u.useCallback(()=>{const A=w.length;return A?e.length-A:e.length-r},[e,r,w]),it=u.useCallback(A=>A===ue?`Others ${h?"":`(${he()})`}`:i[String(A)]??String(A),[he,i,h]),hn=u.useCallback(A=>A>=v?A!=null?"100%":0:`${(A||0)*100/v}%`,[v]);u.useEffect(()=>{l.length===0&&C([])},[l]),u.useEffect(()=>{if(e){if(s===pe.RANKING){const A=[...e].sort((U,se)=>(se.value??0)-(U.value??0)),z=ve(A);z.length>0?x(z[0].value??0):x(1),m(z)}else if(s===pe.FIXED){x(Math.max(...e.map(z=>z.value??0)));const A=ve(e);m(A)}}},[w,ve,e,i,r,s,I,b]),u.useEffect(()=>{V&&(_.current=V)},[V]),u.useEffect(()=>{if(c)return _n({start:(_.current||[]).map(A=>({...A,value:A.value??0})),end:f.map(A=>({...A,value:A.value??0})),duration:500,drawFrame:A=>L(A),requestRef:P}),()=>{P.current&&cancelAnimationFrame(P.current)};L(f)},[c,f]),u.useEffect(()=>{b&&N.current&&N.current.focus()},[b,N]);function fn({data:A,onCategoryClick:z}){const U=n(A.value??0),[se,Ce]=u.useState(!1),le=u.useRef(null),ze=()=>{var rt,st;const Ye=(((rt=le==null?void 0:le.current)==null?void 0:rt.scrollWidth)??0)>(((st=le==null?void 0:le.current)==null?void 0:st.clientWidth)??0);Ce(Ye)};u.useEffect(()=>(ze(),window.addEventListener("resize",ze),()=>{window.removeEventListener("resize",ze)}),[]);const yn=Ye=>{Ye.key==="Enter"&&z()},vn=!b&&l.length>0&&!l.includes(A.name);return t.jsxs(Nt,{container:!0,direction:"row",spacing:1,onClick:g?z:Ve,onKeyDown:g?yn:Ve,selectable:g,unselected:vn,name:A.name===ue?ue:"",tabIndex:g?0:-1,children:[g&&b&&t.jsx(o.Grid,{item:!0,mr:1,children:t.jsx(o.Checkbox,{checked:M.includes(A.name),tabIndex:-1})}),t.jsxs(On,{container:!0,item:!0,xs:!0,isSelectable:b,children:[t.jsxs(o.Grid,{container:!0,item:!0,direction:"row",justifyContent:"space-between",wrap:"nowrap",children:[t.jsx(o.Tooltip,{title:it(A.name),disableHoverListener:!se,children:t.jsx($n,{variant:"body2",noWrap:!0,ref:le,children:it(A.name)})}),typeof U=="object"&&U!==null?t.jsxs("span",{children:[U.prefix,U.value,U.suffix]}):t.jsx("span",{children:U})]}),t.jsx(Nn,{className:"progressbar",item:!0,children:t.jsx("div",{style:{width:hn(A.value??0)}})})]})]})}if((e==null?void 0:e.length)===0||B)return t.jsx(Ot,{});const xn=({index:A,style:z})=>{const U=E[A];return U?t.jsx("div",{style:z,children:t.jsx(fn,{data:U,onCategoryClick:()=>b?X(U.name):G(U.name)})}):null},mn=()=>b?320:E.length<=r?E.length*38:w.length>0?w.length*38:(r+1)*38;return t.jsxs(Rn,{children:[g&&f.length>0&&t.jsxs(ut,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",children:l.length>0?k.formatMessage({id:"c4r.widgets.category.selectedItems"},{items:l.length}):k.formatMessage({id:"c4r.widgets.category.all"})}),b?t.jsx(Ae,{onClick:ie,onKeyDown:re,underline:"hover",tabIndex:0,"data-testid":"primaryApplyButton",children:k.formatMessage({id:"c4r.widgets.category.apply"})}):w.length>0?t.jsx(Ae,{onClick:q,onKeyDown:F,underline:"hover",tabIndex:0,children:k.formatMessage({id:"c4r.widgets.category.unlock"})}):l.length>0&&t.jsxs(o.Grid,{container:!0,direction:"row",justifyContent:"flex-end",item:!0,xs:!0,children:[t.jsx(Ae,{onClick:Y,onKeyDown:J,underline:"hover",tabIndex:0,children:k.formatMessage({id:"c4r.widgets.category.lock"})}),t.jsx(o.Divider,{orientation:"vertical",flexItem:!0}),t.jsx(Ae,{onClick:R,onKeyDown:H,underline:"hover",tabIndex:0,children:k.formatMessage({id:"c4r.widgets.category.clear"})})]})]}),e.length>r&&b&&t.jsxs(ut,{container:!0,children:[t.jsx(o.TextField,{size:"small",sx:{mt:-.5},placeholder:k.formatMessage({id:"c4r.widgets.category.search"}),onChange:Q,onFocus:K,InputProps:{startAdornment:t.jsx(o.InputAdornment,{position:"start",children:t.jsx(Te.Search,{})})},inputProps:{tabIndex:0,ref:N}}),t.jsx(pt,{size:"small",onClick:W,children:k.formatMessage({id:"c4r.widgets.category.cancel"})})]}),t.jsx(Dt,{container:!0,item:!0,children:E.length?t.jsx(wn.FixedSizeList,{outerElementType:u.forwardRef((A,z)=>t.jsx("div",{ref:z,"data-testid":"category-widget-list",...A})),height:mn(),width:"100%",itemCount:E.length,itemSize:y.spacingValue*4.5,children:xn}):t.jsxs(o.Box,{children:[t.jsx(j.Typography,{variant:"body2",children:k.formatMessage({id:"c4r.widgets.category.noResults"})}),t.jsx(j.Typography,{component:"p",variant:"caption",mb:2,children:k.formatMessage({id:"c4r.widgets.category.noResultsMessage"},{searchValue:I})})]})}),b&&t.jsx(pt,{size:"small",onClick:ie,children:k.formatMessage({id:"c4r.widgets.category.apply"})}),e.length>r&&h?b?t.jsx(o.Box,{mt:1.5,children:t.jsx(o.Button,{size:"small",color:"primary",onClick:W,"data-testid":"primaryCancelButton",children:k.formatMessage({id:"c4r.widgets.category.cancel"})})}):t.jsx(o.Box,{mt:1.5,children:t.jsx(o.Button,{"data-testid":"show-all-categories-button",size:"small",color:"primary",startIcon:t.jsx(Te.Search,{}),onClick:ge,children:k.formatMessage({id:"c4r.widgets.category.searchInfo"},{elements:he()})})}):null]})}const Rt=()=>t.jsx(o.Box,{pt:.5,children:t.jsx(o.Skeleton,{height:24,width:120})}),Un=o.styled("span")(()=>({marginRight:"2px"})),qn=o.styled("span")(()=>({marginLeft:"2px"})),Ee="-",Xn=e=>e;function Kn({data:e=Ee,formatter:n=Xn,animation:i=!0,isLoading:r=!1}){const[s,l]=u.useState(Ee),a=u.useRef(null),p=$t(s),c=u.useRef(p),{showSkeleton:g}=de(!!r);u.useEffect(()=>(typeof e=="number"&&i?Xe({start:c.current||0,end:e,duration:500,drawFrame:f=>l(f),requestRef:a}):typeof e=="object"&&i&&e&&c.current&&e.value!==null&&e.value!==void 0?Xe({start:Number(c.current.value),end:Number(e.value),duration:1e3,drawFrame:f=>l({value:f,prefix:e.prefix,suffix:e.suffix}),requestRef:a}):l(e??Ee),()=>{a.current&&cancelAnimationFrame(a.current)}),[i,e,l]);const h=n(s),d=typeof h=="object"&&h!==null,y=h===Ee;return g?t.jsx(Rt,{}):d?t.jsxs(j.Typography,{variant:"h5",component:"div",weight:"medium",children:[t.jsx(Un,{children:h.prefix}),h.value,t.jsx(qn,{children:h.suffix})]}):t.jsx(j.Typography,{variant:"h5",component:"div",weight:"medium",color:y?"text.disabled":"default",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:h})}const gt={};let we=null;function Zn({data:e,filterable:n,selectedBars:i,onSelectedBarsChange:r,echartsInstance:s}){const l=o.useTheme(),[a,p]=u.useState([]),c=u.useMemo(()=>s==null?void 0:s.getZr(),[s]);u.useEffect(()=>{function h(y){if(s){const[f]=s.convertFromPixel({seriesIndex:0},[y.offsetX,y.offsetY]);we=f??null}}function d(y){if(s&&we!==null){const[f]=s.convertFromPixel({seriesIndex:0},[y.offsetX,y.offsetY]);p(we===f?[]:[we,f].sort((m,v)=>m-v))}}if(s&&n){const y=Ue(c,"mousedown",h),f=Ue(c,"mousemove",d);return()=>{y==null||y(),f==null||f()}}},[c,s,n]),u.useEffect(()=>{function h(){if(a.length===2&&r){const d=e.reduce((y,f,m)=>((a[0]>=f[0]&&a[0]<=f[1]||a[1]>=f[0]&&a[1]<=f[1]||a[0]<=f[0]&&a[1]>=f[1])&&y.push(m),y),[]);r(e.length===d.length?[]:d)}p([]),we=null}if(s&&n)return Ue(c,"mouseup",h)},[c,s,a,e,r,n]);const g=u.useCallback(h=>{if(r){const d=new Set(i);d.has(h.dataIndex)?d.delete(h.dataIndex):d.add(h.dataIndex),r(d.size===e.length?[]:Array.from(d))}},[r,i,e.length]);return{markAreaOptions:a.length===2&&{data:[[{coord:[a[0]]},{coord:[a[1]]}]],itemStyle:{color:l.palette.primary.main,opacity:.2}},onEvents:n?{click:g}:{}}}function Ue(e,n,i){if(e!=null&&e.handler)return gt[n]=i,e.on(n,i),()=>{gt[n]&&(e!=null&&e.handler)&&e.off(n,i)}}function Jn({height:e}){return t.jsxs(t.Fragment,{children:[t.jsx(o.Box,{mb:2,children:t.jsx(o.Skeleton,{width:48,height:8})}),t.jsxs(Lt,{style:{height:e??_e},children:[t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"40%"}),t.jsx(ne,{variant:"rectangular",height:"60%"}),t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"80%"}),t.jsx(ne,{variant:"rectangular",height:"50%"}),t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"40%"}),t.jsx(ne,{variant:"rectangular",height:"60%"}),t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"80%"}),t.jsx(ne,{variant:"rectangular",height:"50%"})]})]})}const Qn=Bt(),eo=o.styled(o.Grid)(({theme:e})=>({marginBottom:e.spacing(2),flexDirection:"row",justifyContent:"space-between",alignItems:"center","& .MuiTypography-caption":{color:e.palette.text.secondary}})),to=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer"})),no=[],oo=()=>{},Oe=e=>e;function io(e,n=Oe,i=Oe){if(!e)return null;if(Array.isArray(e)&&e.length===0)return;const r=Array.isArray(e)?e[0].marker:e.marker,s=Array.isArray(e)?e[0].data:e.data;if((s==null?void 0:s.value)===void 0)return;const[l,a,p]=s.value,c=te(n(l)),g=te(n(a)),h=te(i(p)),d=`${c} <span style="vertical-align: 1px;">—</span> ${g}`,y=`<div style="margin-left: 8px; display: inline">${h}</div>`;return`${d} <div style="margin-top: 4px">${String(r)}${y}</div>`}function ro({data:e,ticks:n,min:i,max:r,xAxisFormatter:s=Oe,yAxisFormatter:l=Oe,yAxisType:a="dense",selectedBars:p=no,onSelectedBarsChange:c=oo,tooltip:g=!0,tooltipFormatter:h=io,animation:d=!0,filterable:y=!0,height:f=200,isLoading:m}){const v=Z.useIntl(),x=o.useTheme(),b=j.useImperativeIntl(v),{showSkeleton:S}=de(!!m),I=!!y&&!!c,[T,w]=u.useState(),C=k=>w(k),M=u.useMemo(()=>ao(e,n,i,r),[e,n,i,r]),{onEvents:D,markAreaOptions:E}=Zn({data:M,filterable:I,selectedBars:p,onSelectedBarsChange:c,echartsInstance:T}),L=u.useMemo(()=>({show:g,trigger:"item",padding:[j.SPACING*.5,j.SPACING],borderWidth:0,textStyle:{...x.typography.caption,fontSize:11,color:x.palette.common.white},backgroundColor:x.palette.black[90],confine:!0,position:"top",formatter(k){return h(k,s,l)}}),[x,g,h,s,l]),P=u.useMemo(()=>({min:i,max:r,interval:(r-i)/M.length,axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:x.palette.black[4]}},axisTick:{show:!1},axisLabel:{showMinLabel:!0,showMaxLabel:!0,...x.typography.overlineDelicate,hideOverlap:!0,padding:[j.SPACING*.5,j.SPACING*.5,0,j.SPACING*.5],formatter:k=>{const O=te(s(k));return k===i?so(O):k===r?lo(O):O},color:x.palette.black[60]}}),[i,r,M.length,x,s]),N=u.useMemo(()=>{const k={margin:0,verticalAlign:"bottom",padding:[0,0,j.SPACING*1.25,0],inside:!0,color:R=>{const H=Math.max(...e.map(F=>F??Number.MIN_SAFE_INTEGER))||1;let q="transparent";return R>=H&&(q=x.palette.black[60]),q},...x.typography.overlineDelicate,formatter:R=>te(l(R))},O={verticalAlign:"middle",padding:[0,0,0,j.SPACING*.5],color:x.palette.black[60]},G=a==="dense"?k:O;return{type:"value",axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:x.palette.black[4]}},axisTick:{show:!1},axisLabel:{show:!0,showMaxLabel:!0,showMinLabel:!1,...G,...x.typography.overlineDelicate,formatter:R=>te(l(R))}}},[x.palette.black,x.typography.overlineDelicate,e,l,a]),V=u.useMemo(()=>{const k=i===r&&M.filter(R=>R[2]!==0).length===1,G=(k?[M[0],M[M.length-1]]:M).map((R,H)=>{const F=p.length&&!p.includes(H)?x.palette.black[25]:x.palette.secondary.main;return{value:R,itemStyle:{color:F}}});return{type:"custom",cursor:"pointer",markArea:E,renderItem:function(R,H){const q=R.dataIndex===M.length-1,F=R.dataIndex===0,Y=G[R.dataIndex].itemStyle.color,J=H.value(0),ie=H.value(1),re=H.value(2),[W,X]=H.coord([J,re]),[K,Q]=H.size([ie-J,re]);return{type:"rect",shape:{x:k?W/10:W+(F?0:1),y:X,width:k?W-W/10:K-(q?0:1),height:Q},style:{fill:Y},...!Qn&&{emphasis:{style:{fill:o.darken(Y,.25)}}}}},encode:{x:[0,1],y:2,tooltip:[0,1,2]},data:G,animation:d}},[i,r,M,E,x.palette.black,x.palette.secondary.main,p,d]),_=u.useMemo(()=>({grid:{left:j.SPACING*.1,right:j.SPACING*.1,top:j.SPACING*2,bottom:j.SPACING*.5,containLabel:!0},tooltip:L,xAxis:P,yAxis:N,series:[V]}),[L,P,N,V]),B=p.reduce((k,O)=>k+=e[O]??0,0),$=k=>{k.key==="Enter"&&c([])};return S?t.jsx(Jn,{height:f}):t.jsxs("div",{children:[I&&t.jsxs(eo,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",weight:"strong",children:p.length>0?b.formatMessage({id:"c4r.widgets.histogram.selectedItems"},{items:te(l(B))}):b.formatMessage({id:"c4r.widgets.histogram.all"})}),p.length>0&&t.jsx(to,{onClick:()=>c([]),onKeyDown:$,underline:"hover",tabIndex:0,children:b.formatMessage({id:"c4r.widgets.histogram.clear"})})]}),t.jsx(ye,{option:_,onEvents:D,lazyUpdate:!0,onChartReady:C,style:{maxHeight:f}})]})}function so(e){return`${Array(String(e).length).fill(" ").join("")}${e}`}function lo(e){const n=Array(String(e).length).fill(" ").join("");return`${e}${n}`}function ao(e,n,i,r){return e.map((s,l)=>[l===0?i:n[l-1],l===e.length-1?r:n[l],s])}function co(e,n,i,r){const s=o.useTheme(),l=u.useMemo(()=>n===pe.RANKING?e.slice().sort((c,g)=>(g.value??0)-(c.value??0)):e,[e,n]),a=u.useMemo(()=>{const c=[];let g=0;for(const h of l)c.length<i?c.push({...h}):g+=h.value??0;return g>0&&c.push({name:me,value:g,emphasis:{scale:!1}}),c},[i,l]);return u.useMemo(()=>{const c=s.palette.common.white;return a.map((g,h)=>{let d=c;if(r.length){const f=r[h%r.length];f&&(d=f)}else{const m=s.palette.qualitative.bold[h];m&&(d=m)}const y=g;return y.color=d,y})},[a,r,s])}const uo=o.styled(o.Box)(({theme:e})=>({zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",paddingBottom:e.spacing(1)})),po=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),maxWidth:"140px",textTransform:"uppercase"})),go=o.styled(o.Box)(({theme:e})=>({display:"inline-block",borderRadius:e.spacing(.5),width:e.spacing(1),minWidth:e.spacing(1),height:e.spacing(1)}));function ho({data:e,selectedCategories:n,formatter:i}){const[r,s]=u.useState(),l=u.useMemo(()=>{if(!e||e.length===0)return null;let g;n.length>0?g=e.filter(m=>n.includes(m.name)):g=e;const h=fo(g),d=g.find(m=>m===h);if(!d)return null;let y=0;for(const m of e)y+=m.value??0;const f=xo(d.value??0,y,i);return{...d,percentage:f}},[e,n,i]);u.useEffect(()=>{l&&s(l)},[l,s]);const{name:a,percentage:p,color:c}=r??{};return r?t.jsxs(uo,{children:[t.jsx(j.Typography,{variant:"h5",children:p}),t.jsxs(po,{children:[t.jsx(go,{bgcolor:c,component:"span"}),t.jsx(j.Typography,{component:"span",variant:"body2",noWrap:!0,children:a})]})]}):null}function fo(e){const n=e.filter(i=>i.name!==me);return n.length===0?e[0]:n.reduce((i,r)=>(r.value??0)>(i.value??0)?r:i)}function xo(e,n,i){let r=0;return n!==0&&(r=e/n*100),i?i(r):`${r}%`}const ht=32,mo=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",marginTop:e.spacing(.5)})),yo=o.styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",position:"relative"})),vo=o.styled(An)(()=>({position:"absolute",zIndex:1})),jo=o.styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(1),position:"absolute",zIndex:2})),wo=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(2),height:e.spacing(5)})),bo=o.styled("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1.5)}));function Ft({height:e}){const n=parseInt(String(e),10)||_e,i=n-ht,r=i-ht;return t.jsxs(o.Box,{mt:.5,children:[t.jsx(o.Skeleton,{height:8,width:64}),t.jsx(mo,{height:n,children:t.jsxs(yo,{children:[t.jsx(o.Skeleton,{variant:"circular",width:i,height:i}),t.jsx(vo,{variant:"circular",width:r,height:r}),t.jsxs(jo,{children:[t.jsx(o.Skeleton,{height:24,width:72}),t.jsx(o.Skeleton,{height:8,width:48})]})]})}),t.jsx(wo,{children:[...Array(2)].map((s,l)=>t.jsxs(bo,{children:[t.jsx(o.Skeleton,{variant:"circular",width:8,height:8}),t.jsx(o.Skeleton,{width:48,height:8})]},l))})]})}const So=o.styled(o.Box)(({theme:e})=>({position:"relative",padding:e.spacing(1.25,1,0,1),width:"100%"})),Io=o.styled(o.Box)(({theme:e})=>({position:"relative",display:"flex",flexDirection:"row",overflowX:"hidden",gap:e.spacing(2),padding:e.spacing(.5),margin:e.spacing(-.5)})),ko=o.styled(o.Box)(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing(1),alignItems:"center",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"pointer"})),To=o.styled(o.Box)(({theme:e})=>({display:"inline-block",position:"absolute",left:e.spacing(-2),top:e.spacing(1),bottom:e.spacing(1),zIndex:1,width:e.spacing(2.5),background:`linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, ${e.palette.background.paper} 100%)`})),Mo=o.styled(o.Box)(({theme:e})=>({position:"absolute",padding:e.spacing(.25,1),top:e.spacing(0),right:0,background:e.palette.background.paper})),Co=o.styled(o.Box,{shouldForwardProp:e=>e!=="color"})(({theme:e,color:n})=>{const i=e.spacing(1);return{backgroundColor:n,borderRadius:"50%",width:i,height:i}});function Wt({series:e,selectedCategories:n,onCategoryClick:i}){var I,T;const r=o.useTheme(),[s,l]=u.useState(!1),[a,p]=u.useState(0),[c,g]=u.useState(void 0),h=u.useRef(null),d=u.useRef(null),y=u.useRef(null),f=Z.useIntl(),m=j.useImperativeIntl(f);function v(){p(a+1)}function x(){p(Math.max(a-1))}function b(w,C){w.key==="Enter"&&(i==null||i(C))}const S=u.useCallback(()=>{var C,M,D;const w=!!d.current&&d.current.scrollWidth>d.current.clientWidth;l(w),g(w&&d.current?(((C=h.current)==null?void 0:C.clientWidth)??0)-(((M=y.current)==null?void 0:M.clientWidth)??70):(((D=h.current)==null?void 0:D.clientWidth)??0)-12||500)},[h,d,y]);return u.useEffect(()=>{S()},[d,(I=d.current)==null?void 0:I.scrollWidth,(T=d.current)==null?void 0:T.clientWidth,S,a]),u.useEffect(()=>{if(typeof ResizeObserver>"u")return;let w;return h.current&&(w=new ResizeObserver(()=>{S()}),w.observe(h.current)),()=>{w==null||w.disconnect()}},[h,S]),t.jsxs(So,{ref:h,children:[t.jsx(Io,{ref:d,style:{maxWidth:`${c}px`},children:e.map((w,C)=>{if(C<a)return null;const M=n.length===0||n.includes(w.name);return t.jsxs(ko,{tabIndex:0,onClick:i?()=>i(w.name):void 0,onKeyDown:i?D=>b(D,w.name):void 0,style:{pointerEvents:!i||w.name==="Others"?"none":void 0},children:[t.jsx(Co,{color:M?w.color:r.palette.text.disabled}),t.jsx(j.Typography,{variant:"overline",color:M?void 0:"text.disabled",children:w.name})]},C)})}),(s||a>0)&&t.jsxs(Mo,{ref:y,children:[t.jsx(To,{}),t.jsx(o.Tooltip,{title:m.formatMessage({id:"c4r.widgets.chartLegend.next"}),children:t.jsx(o.IconButton,{size:"small",disabled:a===0,onClick:x,children:t.jsx(ee.ChevronLeft,{})})}),t.jsx(o.Tooltip,{title:m.formatMessage({id:"c4r.widgets.chartLegend.prev"}),children:t.jsx(o.IconButton,{size:"small",disabled:!s,onClick:v,children:t.jsx(ee.ChevronRight,{})})})]})]})}const Ke="232px",Ao=o.styled(o.Grid)(({theme:e})=>({flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(.5)})),Eo=o.styled(o.Box,{shouldForwardProp:e=>e!=="height"&&e!=="width"})(({height:e,width:n})=>({position:"relative",margin:"0 auto",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:n||"100%",height:e||"100%"})),Bo=o.styled(ye)(()=>({position:"absolute",top:0,right:0,left:0,bottom:0})),ft=[],Po={},Lo=e=>e;function Do({name:e,data:n,formatter:i=Lo,tooltipFormatter:r=No,percentFormatter:s,height:l=Ke,width:a=Ke,labels:p=Po,colors:c=ft,animation:g=!0,filterable:h=!0,selectedCategories:d=ft,onSelectedCategoriesChange:y,isLoading:f,maxItems:m=11,order:v=pe.RANKING}){const x=o.useTheme(),b=co(n,v,m,c),{showSkeleton:S}=de(!!f),I=Z.useIntl(),T=j.useImperativeIntl(I),w=u.useMemo(()=>s||(_=>`${I.formatNumber(_,{maximumFractionDigits:2,minimumFractionDigits:2})}%`),[I,s]),C=u.useMemo(()=>{let _;return r&&(_=B=>r(B,i,w)),{padding:[j.SPACING*.5,j.SPACING],backgroundColor:x.palette.black[90],borderColor:"transparent",textStyle:{color:x.palette.common.white},confine:!0,formatter:_}},[x.palette.black,x.palette.common.white,r,i,w]),M=u.useMemo(()=>[{type:"pie",name:e,animation:g,data:b.map(_=>{const B={..._},$=(d==null?void 0:d.length)&&!d.includes(B.name);return p!=null&&p[B.name]&&(B.name=p[B.name]),$?{...B,disabled:!0,itemStyle:{color:x.palette.black[25]}}:{...B,itemStyle:{color:B.color}}}),radius:["74%","90%"],selectedOffset:0,bottom:j.SPACING*1.5,label:{show:!1},emphasis:{focus:"series",scaleSize:5},itemStyle:{borderColor:x.palette.background.paper,borderWidth:1}}],[e,g,b,p,d,x]),D=u.useMemo(()=>({grid:{left:0,top:0,right:0,bottom:0},tooltip:C,legend:{show:!1},series:M}),[C,M]),E=u.useCallback(_=>{if(y){const B=[...d],{name:$}=b[_.dataIndex];if($===me)return;const k=B.indexOf($);k===-1?B.push($):B.splice(k,1),y(B)}},[b,y,d]),L=u.useCallback(_=>{if(y){const B=[...d],$=B.indexOf(_);$===-1?B.push(_):B.splice($,1),y(B)}},[y,d]),P={...h&&{click:E}},N=()=>{y==null||y([])},V=_=>{_.key==="Enter"&&N()};return S?t.jsx(Ft,{height:l}):t.jsxs(t.Fragment,{children:[h&&t.jsxs(Ao,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",color:"textSecondary",children:d.length?T.formatMessage({id:"c4r.widgets.pie.selectedItems"},{items:d.length}):T.formatMessage({id:"c4r.widgets.pie.allSelected"})}),d.length>0&&t.jsx(o.Link,{variant:"caption",onClick:N,onKeyDown:V,tabIndex:0,children:T.formatMessage({id:"c4r.widgets.pie.clear"})})]}),t.jsxs(Eo,{height:l,width:a,children:[t.jsx(ho,{data:b,selectedCategories:d,formatter:w}),t.jsx(Bo,{option:D,onEvents:P,lazyUpdate:!0,style:{height:l,width:a}})]}),b.length>0&&t.jsx(Wt,{series:b,selectedCategories:d,onCategoryClick:y&&L})]})}function No(e,n,i){var c;const r=Array.isArray(e)?e[0]:e;if(!r)return null;const s=te(n(r.value)),l=i(r.percent)||`${r.percent}%`,p=`display:inline-block;border-radius:4px;width:8px;height:8px;background-color:${((c=r.data)==null?void 0:c.color)||r.textStyle.color}`;return`
@@ -5,9 +5,9 @@ import { useIntl as se } from "react-intl";
5
5
  import { d as wi, u as ce, T as H, S as B, B as Mt, a as vi, b as pt } from "../TablePaginationActions-EDxBCxpG.js";
6
6
  import xi from "echarts-for-react";
7
7
  import { FixedSizeList as bi } from "react-window";
8
- import { S as Qe, a as ki } from "../SwatchSquare-DAne_6Gi.js";
8
+ import { S as Qe, a as ki } from "../SwatchSquare-CVpwEFFV.js";
9
9
  import { ChevronLeft as Si, ChevronRight as Mi, KeyboardArrowDown as Ii, ErrorOutline as Ti, Cancel as Ci, VisibilityOutlined as Ai, VisibilityOffOutlined as Ei, ExpandLess as fn, ExpandMore as mn, Close as Li, LayersOutlined as Di, MoreVert as $i } from "@mui/icons-material";
10
- import { A as Pi } from "../Alert-1b84B18a.js";
10
+ import { A as Pi } from "../Alert-CZgNmICd.js";
11
11
  import { c as yn, a as Oi, b as wn } from "../paletteUtils-BEwZhrLg.js";
12
12
  function vn() {
13
13
  let e = !1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/meridian-ds",
3
- "version": "1.4.2-alpha-forwarding-props.2",
3
+ "version": "1.4.2-alpha-unit-tests.1",
4
4
  "description": "CARTO Meridian Design System",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -86,7 +86,7 @@
86
86
  "react-window": "1.8.11",
87
87
  "storybook": "8.6.12",
88
88
  "typescript": "5.5.4",
89
- "vite": "5.4.18",
89
+ "vite": "5.4.19",
90
90
  "vite-plugin-dts": "4.4.0",
91
91
  "vitest": "^2.1.3"
92
92
  },
@@ -1,4 +0,0 @@
1
- "use strict";const o=require("react/jsx-runtime"),c=require("./TablePaginationActions-V8ultBUz.cjs"),l=require("@mui/material"),g=require("react"),T=l.styled(l.Alert,{shouldForwardProp:r=>!["isNeutral","content","hasCloseButton","hasAction","hasTitle","isSticky"].includes(r)})(({isNeutral:r,content:n,hasCloseButton:a,hasAction:e,hasTitle:t,isSticky:s,theme:i})=>({columnGap:i.spacing(1),minHeight:i.spacing(6),...e&&{display:"grid",gridTemplateAreas:n==="inline"||a?'"icon message actions"':`
2
- "icon message"
3
- "icon actions"
4
- `,gridTemplateColumns:a?`${c.ICON_SIZE_MEDIUM} 1fr ${i.spacing(3)}`:`${c.ICON_SIZE_MEDIUM}`},...r&&{backgroundColor:i.palette.default.background,color:i.palette.text.primary},...s&&{borderRadius:0},".MuiAlert-message":{flex:1,paddingTop:t?i.spacing(.25):i.spacing(.5),"& a":{color:i.palette.primary.main,textDecoration:"none","&:hover":{textDecoration:"underline"}},...e&&{gridArea:"message"},...r&&{"& :not(.MuiAlertTitle-root)":{color:i.palette.text.secondary},a:{color:`${i.palette.primary.main} !important`}}},".MuiAlert-icon":{height:t?i.spacing(2.5):i.spacing(3),marginRight:0,...e&&{gridArea:"icon"},...r&&{color:i.palette.text.primary}},".MuiAlert-action":{alignItems:n==="inline"&&!a?"center":"flex-start",margin:n==="block"&&!a?i.spacing(1.5,0,.5):0,marginLeft:n==="inline"||a?"auto":0,padding:0,...e&&{gridArea:"actions"},".MuiIconButton-root svg path":{fill:a?i.palette.text.secondary:void 0}}}));function v({title:r,action:n,severity:a="neutral",content:e="inline",variant:t="standard",children:s,onClose:i,open:p,isSticky:u,...A},x){const[f,y]=g.useState(p??!0),m=i?I=>{i(I),y(!1)}:void 0,d=a==="neutral",M=p??f;return o.jsx(l.Fade,{in:M,appear:!1,children:o.jsxs(T,{ref:x,severity:d?"info":a,isNeutral:d,content:e,action:n,onClose:m,hasCloseButton:!!i,hasAction:!!n,hasTitle:!!r,isSticky:u,variant:t,...A,children:[r&&o.jsx(l.AlertTitle,{children:r}),o.jsx(c.Typography,{variant:"caption",color:"inherit",component:"div",children:s})]})})}const b=g.forwardRef(v);exports.Alert=b;
@@ -1,24 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { SvgIcon as e } from "@mui/material";
3
- const n = () => /* @__PURE__ */ o(
4
- "svg",
5
- {
6
- xmlns: "http://www.w3.org/2000/svg",
7
- width: 24,
8
- height: 24,
9
- fill: "none",
10
- viewBox: "0 0 24 24",
11
- children: /* @__PURE__ */ o(
12
- "path",
13
- {
14
- fill: "currentColor",
15
- fillRule: "evenodd",
16
- d: "M12 12.17 8.83 9l-1.41 1.41L12 15l4.59-4.59L15.17 9z",
17
- clipRule: "evenodd"
18
- }
19
- )
20
- }
21
- ), t = (l) => /* @__PURE__ */ o(e, { ...l, children: /* @__PURE__ */ o(n, {}) });
22
- export {
23
- t as A
24
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("@mui/material"),l=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 12.17 8.83 9l-1.41 1.41L12 15l4.59-4.59L15.17 9z",clipRule:"evenodd"})}),r=n=>e.jsx(o.SvgIcon,{...n,children:e.jsx(l,{})});exports.ArrowDown=r;
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),n=require("@mui/material"),r=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 4a7 7 0 0 1 5.386 11.472l3.089 3.089-1.414 1.414-3.161-3.161A7 7 0 1 1 11 4m0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10",clipRule:"evenodd"})}),c=t=>e.jsx(n.SvgIcon,{...t,children:e.jsx(r,{})}),i=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",children:e.jsx("rect",{width:16,height:16,x:4,y:4,fill:"currentColor",rx:2})}),l=t=>e.jsx(n.SvgIcon,{...t,children:e.jsx(i,{})});exports.Search=c;exports.SwatchSquare=l;
@@ -1,35 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { SvgIcon as l } from "@mui/material";
3
- const t = () => /* @__PURE__ */ o(
4
- "svg",
5
- {
6
- xmlns: "http://www.w3.org/2000/svg",
7
- width: 24,
8
- height: 24,
9
- fill: "none",
10
- viewBox: "0 0 24 24",
11
- children: /* @__PURE__ */ o(
12
- "path",
13
- {
14
- fill: "currentColor",
15
- fillRule: "evenodd",
16
- d: "M11 4a7 7 0 0 1 5.386 11.472l3.089 3.089-1.414 1.414-3.161-3.161A7 7 0 1 1 11 4m0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10",
17
- clipRule: "evenodd"
18
- }
19
- )
20
- }
21
- ), h = (e) => /* @__PURE__ */ o(l, { ...e, children: /* @__PURE__ */ o(t, {}) }), n = () => /* @__PURE__ */ o(
22
- "svg",
23
- {
24
- xmlns: "http://www.w3.org/2000/svg",
25
- width: 24,
26
- height: 24,
27
- fill: "none",
28
- viewBox: "0 0 24 24",
29
- children: /* @__PURE__ */ o("rect", { width: 16, height: 16, x: 4, y: 4, fill: "currentColor", rx: 2 })
30
- }
31
- ), c = (e) => /* @__PURE__ */ o(l, { ...e, children: /* @__PURE__ */ o(n, {}) });
32
- export {
33
- h as S,
34
- c as a
35
- };