@carto/meridian-ds 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/LICENSE +29 -0
  3. package/README.md +38 -0
  4. package/dist/Alert-Dd9Op7y8.js +4754 -0
  5. package/dist/Alert-l8e3Fw5e.cjs +4 -0
  6. package/dist/arrow-drop-icon-BGl72Unt.cjs +1 -0
  7. package/dist/arrow-drop-icon-CHxPlPIN.js +16 -0
  8. package/dist/components/index.cjs +1 -0
  9. package/dist/components/index.js +1249 -0
  10. package/dist/createSvgIcon-BhsoeSAN.cjs +68 -0
  11. package/dist/createSvgIcon-CcKa-Sbo.js +3929 -0
  12. package/dist/custom-icons/index.cjs +1 -0
  13. package/dist/custom-icons/index.js +60 -0
  14. package/dist/jsx-runtime-B6kdoens.js +634 -0
  15. package/dist/jsx-runtime-Cek9Ww4S.cjs +30 -0
  16. package/dist/paletteUtils-B489IFFw.js +320 -0
  17. package/dist/paletteUtils-DELR0VRh.cjs +3 -0
  18. package/dist/search-icon-DHF2JDWR.cjs +1 -0
  19. package/dist/search-icon-FnUa1LqH.js +38 -0
  20. package/dist/theme/index.cjs +76 -0
  21. package/dist/theme/index.js +3863 -0
  22. package/dist/types/components/atoms/Button.d.ts +7 -0
  23. package/dist/types/components/atoms/Button.d.ts.map +1 -0
  24. package/dist/types/components/atoms/LabelWithIndicator.d.ts +8 -0
  25. package/dist/types/components/atoms/LabelWithIndicator.d.ts.map +1 -0
  26. package/dist/types/components/atoms/PasswordField.d.ts +4 -0
  27. package/dist/types/components/atoms/PasswordField.d.ts.map +1 -0
  28. package/dist/types/components/atoms/SelectField.d.ts +15 -0
  29. package/dist/types/components/atoms/SelectField.d.ts.map +1 -0
  30. package/dist/types/components/atoms/ToggleButtonGroup.d.ts +7 -0
  31. package/dist/types/components/atoms/ToggleButtonGroup.d.ts.map +1 -0
  32. package/dist/types/components/atoms/Typography.d.ts +14 -0
  33. package/dist/types/components/atoms/Typography.d.ts.map +1 -0
  34. package/dist/types/components/atoms/index.d.ts +13 -0
  35. package/dist/types/components/atoms/index.d.ts.map +1 -0
  36. package/dist/types/components/index.d.ts +7 -0
  37. package/dist/types/components/index.d.ts.map +1 -0
  38. package/dist/types/components/molecules/AccordionGroup.d.ts +12 -0
  39. package/dist/types/components/molecules/AccordionGroup.d.ts.map +1 -0
  40. package/dist/types/components/molecules/Alert.d.ts +18 -0
  41. package/dist/types/components/molecules/Alert.d.ts.map +1 -0
  42. package/dist/types/components/molecules/Autocomplete.d.ts +19 -0
  43. package/dist/types/components/molecules/Autocomplete.d.ts.map +1 -0
  44. package/dist/types/components/molecules/Avatar.d.ts +6 -0
  45. package/dist/types/components/molecules/Avatar.d.ts.map +1 -0
  46. package/dist/types/components/molecules/Menu/Menu.d.ts +8 -0
  47. package/dist/types/components/molecules/Menu/Menu.d.ts.map +1 -0
  48. package/dist/types/components/molecules/Menu/MenuItem.d.ts +10 -0
  49. package/dist/types/components/molecules/Menu/MenuItem.d.ts.map +1 -0
  50. package/dist/types/components/molecules/Menu/MenuList.d.ts +8 -0
  51. package/dist/types/components/molecules/Menu/MenuList.d.ts.map +1 -0
  52. package/dist/types/components/molecules/Menu/index.d.ts +7 -0
  53. package/dist/types/components/molecules/Menu/index.d.ts.map +1 -0
  54. package/dist/types/components/molecules/MultipleSelectField/Filters.d.ts +9 -0
  55. package/dist/types/components/molecules/MultipleSelectField/Filters.d.ts.map +1 -0
  56. package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts +31 -0
  57. package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts.map +1 -0
  58. package/dist/types/components/molecules/MultipleSelectField/index.d.ts +3 -0
  59. package/dist/types/components/molecules/MultipleSelectField/index.d.ts.map +1 -0
  60. package/dist/types/components/molecules/MultipleSelectField/useMultipleSelectField.d.ts +11 -0
  61. package/dist/types/components/molecules/MultipleSelectField/useMultipleSelectField.d.ts.map +1 -0
  62. package/dist/types/components/molecules/Table/TablePaginationActions.d.ts +9 -0
  63. package/dist/types/components/molecules/Table/TablePaginationActions.d.ts.map +1 -0
  64. package/dist/types/components/molecules/Table/index.d.ts +3 -0
  65. package/dist/types/components/molecules/Table/index.d.ts.map +1 -0
  66. package/dist/types/components/molecules/UploadField/FilesAction.d.ts +13 -0
  67. package/dist/types/components/molecules/UploadField/FilesAction.d.ts.map +1 -0
  68. package/dist/types/components/molecules/UploadField/StyledUploadField.d.ts +8 -0
  69. package/dist/types/components/molecules/UploadField/StyledUploadField.d.ts.map +1 -0
  70. package/dist/types/components/molecules/UploadField/UploadField.d.ts +15 -0
  71. package/dist/types/components/molecules/UploadField/UploadField.d.ts.map +1 -0
  72. package/dist/types/components/molecules/UploadField/UploadFieldBase.d.ts +17 -0
  73. package/dist/types/components/molecules/UploadField/UploadFieldBase.d.ts.map +1 -0
  74. package/dist/types/components/molecules/UploadField/index.d.ts +5 -0
  75. package/dist/types/components/molecules/UploadField/index.d.ts.map +1 -0
  76. package/dist/types/components/molecules/UploadField/useFileUpload.d.ts +19 -0
  77. package/dist/types/components/molecules/UploadField/useFileUpload.d.ts.map +1 -0
  78. package/dist/types/components/molecules/index.d.ts +17 -0
  79. package/dist/types/components/molecules/index.d.ts.map +1 -0
  80. package/dist/types/components/organisms/AppBar/AppBar.d.ts +11 -0
  81. package/dist/types/components/organisms/AppBar/AppBar.d.ts.map +1 -0
  82. package/dist/types/components/organisms/AppBar/BrandLogo.d.ts +4 -0
  83. package/dist/types/components/organisms/AppBar/BrandLogo.d.ts.map +1 -0
  84. package/dist/types/components/organisms/AppBar/BrandText.d.ts +4 -0
  85. package/dist/types/components/organisms/AppBar/BrandText.d.ts.map +1 -0
  86. package/dist/types/components/organisms/AppBar/BurgerMenu.d.ts +4 -0
  87. package/dist/types/components/organisms/AppBar/BurgerMenu.d.ts.map +1 -0
  88. package/dist/types/components/organisms/AppBar/SecondaryText.d.ts +4 -0
  89. package/dist/types/components/organisms/AppBar/SecondaryText.d.ts.map +1 -0
  90. package/dist/types/components/organisms/AppBar/index.d.ts +3 -0
  91. package/dist/types/components/organisms/AppBar/index.d.ts.map +1 -0
  92. package/dist/types/components/organisms/TooltipData.d.ts +12 -0
  93. package/dist/types/components/organisms/TooltipData.d.ts.map +1 -0
  94. package/dist/types/components/organisms/index.d.ts +5 -0
  95. package/dist/types/components/organisms/index.d.ts.map +1 -0
  96. package/dist/types/custom-icons/arrow-drop-icon.d.ts +3 -0
  97. package/dist/types/custom-icons/arrow-drop-icon.d.ts.map +1 -0
  98. package/dist/types/custom-icons/circle-icon.d.ts +3 -0
  99. package/dist/types/custom-icons/circle-icon.d.ts.map +1 -0
  100. package/dist/types/custom-icons/cursor-icon.d.ts +3 -0
  101. package/dist/types/custom-icons/cursor-icon.d.ts.map +1 -0
  102. package/dist/types/custom-icons/graph-line-icon.d.ts +3 -0
  103. package/dist/types/custom-icons/graph-line-icon.d.ts.map +1 -0
  104. package/dist/types/custom-icons/index.d.ts +12 -0
  105. package/dist/types/custom-icons/index.d.ts.map +1 -0
  106. package/dist/types/custom-icons/lasso-icon.d.ts +3 -0
  107. package/dist/types/custom-icons/lasso-icon.d.ts.map +1 -0
  108. package/dist/types/custom-icons/layer-icon.d.ts +3 -0
  109. package/dist/types/custom-icons/layer-icon.d.ts.map +1 -0
  110. package/dist/types/custom-icons/opacity-icon.d.ts +3 -0
  111. package/dist/types/custom-icons/opacity-icon.d.ts.map +1 -0
  112. package/dist/types/custom-icons/polygon-icon.d.ts +3 -0
  113. package/dist/types/custom-icons/polygon-icon.d.ts.map +1 -0
  114. package/dist/types/custom-icons/rectangle-icon.d.ts +3 -0
  115. package/dist/types/custom-icons/rectangle-icon.d.ts.map +1 -0
  116. package/dist/types/custom-icons/search-icon.d.ts +3 -0
  117. package/dist/types/custom-icons/search-icon.d.ts.map +1 -0
  118. package/dist/types/custom-icons/upload-icon.d.ts +3 -0
  119. package/dist/types/custom-icons/upload-icon.d.ts.map +1 -0
  120. package/dist/types/hooks/useImperativeIntl.d.ts +3 -0
  121. package/dist/types/hooks/useImperativeIntl.d.ts.map +1 -0
  122. package/dist/types/hooks/usePrevious.d.ts +2 -0
  123. package/dist/types/hooks/usePrevious.d.ts.map +1 -0
  124. package/dist/types/hooks/useSkeleton.d.ts +5 -0
  125. package/dist/types/hooks/useSkeleton.d.ts.map +1 -0
  126. package/dist/types/localization/en.d.ts +120 -0
  127. package/dist/types/localization/en.d.ts.map +1 -0
  128. package/dist/types/localization/es.d.ts +118 -0
  129. package/dist/types/localization/es.d.ts.map +1 -0
  130. package/dist/types/localization/id.d.ts +120 -0
  131. package/dist/types/localization/id.d.ts.map +1 -0
  132. package/dist/types/localization/index.d.ts +355 -0
  133. package/dist/types/localization/index.d.ts.map +1 -0
  134. package/dist/types/theme/carto-theme.d.ts +4077 -0
  135. package/dist/types/theme/carto-theme.d.ts.map +1 -0
  136. package/dist/types/theme/index.d.ts +5 -0
  137. package/dist/types/theme/index.d.ts.map +1 -0
  138. package/dist/types/theme/sections/components/buttons.d.ts +3 -0
  139. package/dist/types/theme/sections/components/buttons.d.ts.map +1 -0
  140. package/dist/types/theme/sections/components/data-display.d.ts +4 -0
  141. package/dist/types/theme/sections/components/data-display.d.ts.map +1 -0
  142. package/dist/types/theme/sections/components/feedback.d.ts +3 -0
  143. package/dist/types/theme/sections/components/feedback.d.ts.map +1 -0
  144. package/dist/types/theme/sections/components/forms.d.ts +3 -0
  145. package/dist/types/theme/sections/components/forms.d.ts.map +1 -0
  146. package/dist/types/theme/sections/components/navigation.d.ts +3 -0
  147. package/dist/types/theme/sections/components/navigation.d.ts.map +1 -0
  148. package/dist/types/theme/sections/components/surfaces.d.ts +3 -0
  149. package/dist/types/theme/sections/components/surfaces.d.ts.map +1 -0
  150. package/dist/types/theme/sections/css-baseline.d.ts +905 -0
  151. package/dist/types/theme/sections/css-baseline.d.ts.map +1 -0
  152. package/dist/types/theme/sections/palette.d.ts +4 -0
  153. package/dist/types/theme/sections/palette.d.ts.map +1 -0
  154. package/dist/types/theme/sections/shadows.d.ts +3 -0
  155. package/dist/types/theme/sections/shadows.d.ts.map +1 -0
  156. package/dist/types/theme/sections/typography.d.ts +1706 -0
  157. package/dist/types/theme/sections/typography.d.ts.map +1 -0
  158. package/dist/types/theme/theme-constants.d.ts +14 -0
  159. package/dist/types/theme/theme-constants.d.ts.map +1 -0
  160. package/dist/types/theme/theme-utils.d.ts +2 -0
  161. package/dist/types/theme/theme-utils.d.ts.map +1 -0
  162. package/dist/types/theme/types.d.ts +99 -0
  163. package/dist/types/theme/types.d.ts.map +1 -0
  164. package/dist/types/utils/animationUtils.d.ts +30 -0
  165. package/dist/types/utils/animationUtils.d.ts.map +1 -0
  166. package/dist/types/utils/chartConstants.d.ts +7 -0
  167. package/dist/types/utils/chartConstants.d.ts.map +1 -0
  168. package/dist/types/utils/detectTouchScreen.d.ts +2 -0
  169. package/dist/types/utils/detectTouchScreen.d.ts.map +1 -0
  170. package/dist/types/utils/formatterUtils.d.ts +18 -0
  171. package/dist/types/utils/formatterUtils.d.ts.map +1 -0
  172. package/dist/types/utils/legendUtils.d.ts +99 -0
  173. package/dist/types/utils/legendUtils.d.ts.map +1 -0
  174. package/dist/types/utils/localeUtils.d.ts +7 -0
  175. package/dist/types/utils/localeUtils.d.ts.map +1 -0
  176. package/dist/types/utils/paletteUtils.d.ts +25 -0
  177. package/dist/types/utils/paletteUtils.d.ts.map +1 -0
  178. package/dist/types/utils/uniqueId.d.ts +19 -0
  179. package/dist/types/utils/uniqueId.d.ts.map +1 -0
  180. package/dist/types/widgets/BarWidgetUI/BarSkeleton.d.ts +4 -0
  181. package/dist/types/widgets/BarWidgetUI/BarSkeleton.d.ts.map +1 -0
  182. package/dist/types/widgets/BarWidgetUI/BarWidgetUI.d.ts +33 -0
  183. package/dist/types/widgets/BarWidgetUI/BarWidgetUI.d.ts.map +1 -0
  184. package/dist/types/widgets/BarWidgetUI/useProcessedProps.d.ts +22 -0
  185. package/dist/types/widgets/BarWidgetUI/useProcessedProps.d.ts.map +1 -0
  186. package/dist/types/widgets/CategoryWidgetUI/CategorySkeleton.d.ts +3 -0
  187. package/dist/types/widgets/CategoryWidgetUI/CategorySkeleton.d.ts.map +1 -0
  188. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts +25 -0
  189. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts.map +1 -0
  190. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts +37 -0
  191. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts.map +1 -0
  192. package/dist/types/widgets/ChartLegend.d.ts +10 -0
  193. package/dist/types/widgets/ChartLegend.d.ts.map +1 -0
  194. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIDropdown.d.ts +18 -0
  195. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIDropdown.d.ts.map +1 -0
  196. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIGeometryChips.d.ts +17 -0
  197. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIGeometryChips.d.ts.map +1 -0
  198. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIToggleButton.d.ts +15 -0
  199. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIToggleButton.d.ts.map +1 -0
  200. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.d.ts +27 -0
  201. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.d.ts.map +1 -0
  202. package/dist/types/widgets/FeatureSelectionWidgetUI/index.d.ts +9 -0
  203. package/dist/types/widgets/FeatureSelectionWidgetUI/index.d.ts.map +1 -0
  204. package/dist/types/widgets/FormulaWidgetUI/FormulaSkeleton.d.ts +3 -0
  205. package/dist/types/widgets/FormulaWidgetUI/FormulaSkeleton.d.ts.map +1 -0
  206. package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.d.ts +16 -0
  207. package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.d.ts.map +1 -0
  208. package/dist/types/widgets/HistogramWidgetUI/HistogramSkeleton.d.ts +6 -0
  209. package/dist/types/widgets/HistogramWidgetUI/HistogramSkeleton.d.ts.map +1 -0
  210. package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.d.ts +27 -0
  211. package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.d.ts.map +1 -0
  212. package/dist/types/widgets/HistogramWidgetUI/useHistogramInteractivity.d.ts +20 -0
  213. package/dist/types/widgets/HistogramWidgetUI/useHistogramInteractivity.d.ts.map +1 -0
  214. package/dist/types/widgets/NoDataAlert.d.ts +6 -0
  215. package/dist/types/widgets/NoDataAlert.d.ts.map +1 -0
  216. package/dist/types/widgets/PieWidgetUI/PieCentralText.d.ts +11 -0
  217. package/dist/types/widgets/PieWidgetUI/PieCentralText.d.ts.map +1 -0
  218. package/dist/types/widgets/PieWidgetUI/PieSkeleton.d.ts +4 -0
  219. package/dist/types/widgets/PieWidgetUI/PieSkeleton.d.ts.map +1 -0
  220. package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts +31 -0
  221. package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts.map +1 -0
  222. package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts +16 -0
  223. package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts.map +1 -0
  224. package/dist/types/widgets/RangeWidgetUI/RangeSkeleton.d.ts +2 -0
  225. package/dist/types/widgets/RangeWidgetUI/RangeSkeleton.d.ts.map +1 -0
  226. package/dist/types/widgets/RangeWidgetUI/RangeWidgetUI.d.ts +16 -0
  227. package/dist/types/widgets/RangeWidgetUI/RangeWidgetUI.d.ts.map +1 -0
  228. package/dist/types/widgets/ReactEcharts.d.ts +8 -0
  229. package/dist/types/widgets/ReactEcharts.d.ts.map +1 -0
  230. package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotSkeleton.d.ts +4 -0
  231. package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotSkeleton.d.ts.map +1 -0
  232. package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.d.ts +16 -0
  233. package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.d.ts.map +1 -0
  234. package/dist/types/widgets/SkeletonWidgets.d.ts +20 -0
  235. package/dist/types/widgets/SkeletonWidgets.d.ts.map +1 -0
  236. package/dist/types/widgets/TableWidgetUI/TableSkeleton.d.ts +7 -0
  237. package/dist/types/widgets/TableWidgetUI/TableSkeleton.d.ts.map +1 -0
  238. package/dist/types/widgets/TableWidgetUI/TableSkeletonRow.d.ts +6 -0
  239. package/dist/types/widgets/TableWidgetUI/TableSkeletonRow.d.ts.map +1 -0
  240. package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts +30 -0
  241. package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts.map +1 -0
  242. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesContext.d.ts +21 -0
  243. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesContext.d.ts.map +1 -0
  244. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts +4 -0
  245. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts.map +1 -0
  246. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts +14 -0
  247. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts.map +1 -0
  248. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesControls.d.ts +3 -0
  249. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesControls.d.ts.map +1 -0
  250. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesLayout.d.ts +8 -0
  251. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesLayout.d.ts.map +1 -0
  252. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesSkeleton.d.ts +4 -0
  253. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesSkeleton.d.ts.map +1 -0
  254. package/dist/types/widgets/TimeSeriesWidgetUI/index.d.ts +9 -0
  255. package/dist/types/widgets/TimeSeriesWidgetUI/index.d.ts.map +1 -0
  256. package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.d.ts +99 -0
  257. package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.d.ts.map +1 -0
  258. package/dist/types/widgets/TimeSeriesWidgetUI/useTimeSeriesInteractivity.d.ts +43 -0
  259. package/dist/types/widgets/TimeSeriesWidgetUI/useTimeSeriesInteractivity.d.ts.map +1 -0
  260. package/dist/types/widgets/WrapperWidgetUI.d.ts +36 -0
  261. package/dist/types/widgets/WrapperWidgetUI.d.ts.map +1 -0
  262. package/dist/types/widgets/comparative/AnimatedNumber/AnimatedNumber.d.ts +9 -0
  263. package/dist/types/widgets/comparative/AnimatedNumber/AnimatedNumber.d.ts.map +1 -0
  264. package/dist/types/widgets/comparative/AnimatedNumber/useAnimatedNumber.d.ts +11 -0
  265. package/dist/types/widgets/comparative/AnimatedNumber/useAnimatedNumber.d.ts.map +1 -0
  266. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryItem.d.ts +17 -0
  267. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryItem.d.ts.map +1 -0
  268. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts +23 -0
  269. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -0
  270. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.styled.d.ts +45 -0
  271. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.styled.d.ts.map +1 -0
  272. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts +20 -0
  273. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts.map +1 -0
  274. package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI.d.ts +21 -0
  275. package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI.d.ts.map +1 -0
  276. package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/FormulaLabel.d.ts +5 -0
  277. package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/FormulaLabel.d.ts.map +1 -0
  278. package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/FormulaValue.d.ts +10 -0
  279. package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/FormulaValue.d.ts.map +1 -0
  280. package/dist/types/widgets/comparative/ComparativePieWidgetUI.d.ts +22 -0
  281. package/dist/types/widgets/comparative/ComparativePieWidgetUI.d.ts.map +1 -0
  282. package/dist/types/widgets/index.d.ts +33 -0
  283. package/dist/types/widgets/index.d.ts.map +1 -0
  284. package/dist/types/widgets/legend/LegendLayer.d.ts +37 -0
  285. package/dist/types/widgets/legend/LegendLayer.d.ts.map +1 -0
  286. package/dist/types/widgets/legend/LegendLayerTitle.d.ts +8 -0
  287. package/dist/types/widgets/legend/LegendLayerTitle.d.ts.map +1 -0
  288. package/dist/types/widgets/legend/LegendLayerVariable.d.ts +9 -0
  289. package/dist/types/widgets/legend/LegendLayerVariable.d.ts.map +1 -0
  290. package/dist/types/widgets/legend/LegendOpacityControl.d.ts +14 -0
  291. package/dist/types/widgets/legend/LegendOpacityControl.d.ts.map +1 -0
  292. package/dist/types/widgets/legend/LegendWidgetUI.d.ts +48 -0
  293. package/dist/types/widgets/legend/LegendWidgetUI.d.ts.map +1 -0
  294. package/dist/types/widgets/legend/LegendWidgetUI.styles.d.ts +31 -0
  295. package/dist/types/widgets/legend/LegendWidgetUI.styles.d.ts.map +1 -0
  296. package/dist/types/widgets/legend/index.d.ts +7 -0
  297. package/dist/types/widgets/legend/index.d.ts.map +1 -0
  298. package/dist/types/widgets/legend/legend-types/LegendCategories.d.ts +6 -0
  299. package/dist/types/widgets/legend/legend-types/LegendCategories.d.ts.map +1 -0
  300. package/dist/types/widgets/legend/legend-types/LegendIcon.d.ts +6 -0
  301. package/dist/types/widgets/legend/legend-types/LegendIcon.d.ts.map +1 -0
  302. package/dist/types/widgets/legend/legend-types/LegendProportion.d.ts +9 -0
  303. package/dist/types/widgets/legend/legend-types/LegendProportion.d.ts.map +1 -0
  304. package/dist/types/widgets/legend/legend-types/LegendRamp.d.ts +7 -0
  305. package/dist/types/widgets/legend/legend-types/LegendRamp.d.ts.map +1 -0
  306. package/dist/types/widgets/legend/legend-types/index.d.ts +9 -0
  307. package/dist/types/widgets/legend/legend-types/index.d.ts.map +1 -0
  308. package/dist/widgets/index.cjs +33 -0
  309. package/dist/widgets/index.js +5865 -0
  310. package/package.json +156 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/widgets/TimeSeriesWidgetUI/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACpF,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC3E,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE9E,mBAAmB,sBAAsB,CAAA;AACzC,mBAAmB,8BAA8B,CAAA;AACjD,mBAAmB,mBAAmB,CAAA;AACtC,mBAAmB,qBAAqB,CAAA"}
@@ -0,0 +1,99 @@
1
+ import { TooltipParams } from '../../utils/formatterUtils';
2
+ import { IntlShape } from 'react-intl';
3
+ export type TimeSeriesData = {
4
+ name: number;
5
+ value: number;
6
+ category?: string;
7
+ categoryIndex?: number;
8
+ };
9
+ export type TimeSeriesWidgetUIProps = {
10
+ data: TimeSeriesData[];
11
+ categories?: string[];
12
+ stepSize: GroupDateTypes;
13
+ stepMultiplier?: number;
14
+ chartType?: TIME_SERIES_CHART_TYPES;
15
+ timeAxisSplitNumber?: number;
16
+ tooltip?: boolean;
17
+ tooltipFormatter?: typeof defaultTooltipFormatter;
18
+ formatter?: (value: number) => string;
19
+ height?: string;
20
+ fitHeight?: boolean;
21
+ showControls?: boolean;
22
+ animation?: boolean;
23
+ filterable?: boolean;
24
+ timelinePosition?: number;
25
+ onTimelineUpdate?: (value: number | undefined) => void;
26
+ timeWindow?: number[];
27
+ onTimeWindowUpdate?: (value: Date[]) => void;
28
+ selectedCategories?: string[];
29
+ onSelectedCategoriesChange?: (categories: string[]) => void;
30
+ isPlaying?: boolean;
31
+ onPlay?: () => void;
32
+ isPaused?: boolean;
33
+ onPause?: () => void;
34
+ onStop?: () => void;
35
+ isLoading?: boolean;
36
+ palette?: string[];
37
+ showLegend?: boolean;
38
+ yAxisType?: 'dense' | 'full';
39
+ intl?: IntlShape;
40
+ };
41
+ export declare function defaultTooltipFormatter(params: TooltipParams, stepSize: GroupDateTypes, valueFormatter: (value: number) => string, stepMultiplier: number, showNames: boolean): string;
42
+ export declare enum TIME_SERIES_CHART_TYPES {
43
+ LINE = "line",
44
+ BAR = "bar"
45
+ }
46
+ type DateInput = Date | string | number;
47
+ /**
48
+ * Utility to manage multiple values that can produce
49
+ * a timestamp. This cover every value that can be used
50
+ * as input for Date constructor and the Date object itself.
51
+ */
52
+ export declare function getTimestamp(date: DateInput): number | undefined;
53
+ /** Convert many posible input values of different types to a Date object */
54
+ export declare function getDate(date: DateInput): Date;
55
+ export declare function findItemIndexByTime(timestamp: number, data: TimeSeriesData[]): number | undefined;
56
+ export declare function countDistinctTimePoints(data: TimeSeriesData[]): number;
57
+ /**
58
+ * Returns midnight (local time) on the Monday preceeding a given date, in
59
+ * milliseconds since the UNIX epoch.
60
+ */
61
+ export declare function getMonday(date: DateInput): number;
62
+ /**
63
+ * Returns midnight (UTC) on the Monday preceeding a given date, in
64
+ * milliseconds since the UNIX epoch.
65
+ */
66
+ export declare function getUTCMonday(date: DateInput): number;
67
+ export declare enum GroupDateTypes {
68
+ YEARS = "year",
69
+ MONTHS = "month",
70
+ WEEKS = "week",
71
+ DAYS = "day",
72
+ HOURS = "hour",
73
+ MINUTES = "minute",
74
+ SECONDS = "second"
75
+ }
76
+ export declare function formatTime({ date, stepSize, }: {
77
+ stepSize: GroupDateTypes;
78
+ date: Date;
79
+ }): string;
80
+ export declare function formatTimeRange({ start, end, stepSize, }: {
81
+ start: Date;
82
+ end: Date;
83
+ stepSize: GroupDateTypes;
84
+ }): string;
85
+ export declare function formatBucketRange({ date, stepSize, stepMultiplier, }: {
86
+ date: Date;
87
+ stepSize: GroupDateTypes;
88
+ stepMultiplier?: number;
89
+ }): string;
90
+ export declare function getBucketInterval({ date, stepSize, stepMultiplier, }: {
91
+ date: Date;
92
+ stepSize: GroupDateTypes;
93
+ stepMultiplier?: number;
94
+ }): {
95
+ start: Date;
96
+ end: Date;
97
+ };
98
+ export {};
99
+ //# sourceMappingURL=timeSeriesUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeSeriesUtils.d.ts","sourceRoot":"","sources":["../../../../src/widgets/TimeSeriesWidgetUI/timeSeriesUtils.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,43 @@
1
+ import { ECharts } from 'echarts';
2
+ import { TimeSeriesData } from './timeSeriesUtils';
3
+ export default function useTimeSeriesInteractivity({ echartsInstance, data, canSelectLines, filterable, }: {
4
+ echartsInstance?: ECharts;
5
+ data: TimeSeriesData[];
6
+ canSelectLines: boolean;
7
+ filterable: boolean;
8
+ }): {
9
+ timelineOptions: false | {
10
+ symbol: string[];
11
+ animationDuration: number;
12
+ animationDurationUpdate: number;
13
+ animationEasingUpdate: string;
14
+ data: {
15
+ label: {
16
+ show: boolean;
17
+ };
18
+ emphasis: {
19
+ label: {
20
+ show: boolean;
21
+ };
22
+ };
23
+ xAxis: number;
24
+ lineStyle: {
25
+ type: string;
26
+ color: string;
27
+ width: number;
28
+ shadowColor: string;
29
+ shadowBlur: number;
30
+ };
31
+ }[];
32
+ } | undefined;
33
+ timeWindowOptions: false | {
34
+ data: {
35
+ coord: (number | undefined)[];
36
+ }[][];
37
+ itemStyle: {
38
+ color: string;
39
+ opacity: number;
40
+ };
41
+ };
42
+ };
43
+ //# sourceMappingURL=useTimeSeriesInteractivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTimeSeriesInteractivity.d.ts","sourceRoot":"","sources":["../../../../src/widgets/TimeSeriesWidgetUI/useTimeSeriesInteractivity.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAgB,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAuB,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAQvE,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EACjD,eAAe,EACf,IAAI,EACJ,cAAc,EACd,UAAU,GACX,EAAE;IACD,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,IAAI,EAAE,cAAc,EAAE,CAAA;IACtB,cAAc,EAAE,OAAO,CAAA;IACvB,UAAU,EAAE,OAAO,CAAA;CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+PA"}
@@ -0,0 +1,36 @@
1
+ import { CSSProperties } from 'react';
2
+ import { BoxProps } from '@mui/material';
3
+ export type WrapperWidgetUIAction = {
4
+ id: string;
5
+ label: string;
6
+ icon: React.ReactNode;
7
+ action: () => void;
8
+ tooltip?: {
9
+ text: string;
10
+ placement?: 'top' | 'bottom' | 'left' | 'right';
11
+ };
12
+ };
13
+ export type WrapperWidgetUIOption = {
14
+ id: string;
15
+ name: string;
16
+ action: () => void;
17
+ selected?: boolean;
18
+ };
19
+ export type WrapperWidgetUIProps = {
20
+ title: string;
21
+ expandable?: boolean;
22
+ expanded?: boolean;
23
+ onExpandedChange?: (expanded: boolean) => void;
24
+ isLoading?: boolean;
25
+ disabled?: boolean;
26
+ headerItems?: React.ReactNode;
27
+ actions?: WrapperWidgetUIAction[];
28
+ options?: WrapperWidgetUIOption[];
29
+ optionsIcon?: React.ReactNode;
30
+ children?: React.ReactNode;
31
+ footer?: React.ReactNode;
32
+ margin?: CSSProperties['margin'];
33
+ contentProps?: BoxProps;
34
+ };
35
+ export default function WrapperWidgetUI({ title, actions, options, optionsIcon, children, contentProps, disabled, expandable, expanded: _expanded, onExpandedChange, footer, headerItems, isLoading, margin, }: WrapperWidgetUIProps): string | number | boolean | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
36
+ //# sourceMappingURL=WrapperWidgetUI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WrapperWidgetUI.d.ts","sourceRoot":"","sources":["../../../src/widgets/WrapperWidgetUI.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,EAEL,QAAQ,EAaT,MAAM,eAAe,CAAA;AA0GtB,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE;QACR,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;KAChD,CAAA;CACF,CAAA;AACD,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AACD,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACjC,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACjC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,MAAM,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAA;IAChC,YAAY,CAAC,EAAE,QAAQ,CAAA;CACxB,CAAA;AAKD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,OAA8C,EAC9C,OAA8C,EAC9C,WAAgC,EAChC,QAAQ,EACR,YAAY,EACZ,QAAgB,EAChB,UAAiB,EACjB,QAAQ,EAAE,SAAgB,EAC1B,gBAAgB,EAChB,MAAM,EACN,WAAW,EACX,SAAiB,EACjB,MAAM,GACP,EAAE,oBAAoB,gIAyItB"}
@@ -0,0 +1,9 @@
1
+ import { useAnimatedNumberProps } from './useAnimatedNumber';
2
+ export type AnimatedNumberProps = {
3
+ enabled: boolean;
4
+ value: number;
5
+ options?: Omit<useAnimatedNumberProps, 'disabled'>;
6
+ formatter?: (n: number) => React.ReactNode;
7
+ };
8
+ export default function AnimatedNumber({ enabled, value, options, formatter, }: AnimatedNumberProps): import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=AnimatedNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedNumber.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/comparative/AnimatedNumber/AnimatedNumber.tsx"],"names":[],"mappings":"AAAA,OAA0B,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAE/E,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAA;IAClD,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;CAC3C,CAAA;AAID,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAc,EACd,KAAS,EACT,OAAmB,EACnB,SAAS,GACV,EAAE,mBAAmB,2CAUrB"}
@@ -0,0 +1,11 @@
1
+ export type useAnimatedNumberProps = {
2
+ disabled?: boolean;
3
+ duration?: number;
4
+ animateOnMount?: boolean;
5
+ initialValue?: number;
6
+ };
7
+ /**
8
+ * React hook to handle animating value changes over time, abstracting the necesary state, refs and effects
9
+ */
10
+ export default function useAnimatedNumber(value: number, options?: useAnimatedNumberProps): number;
11
+ //# sourceMappingURL=useAnimatedNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAnimatedNumber.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/comparative/AnimatedNumber/useAnimatedNumber.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAID;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,sBAA2B,UAqCrC"}
@@ -0,0 +1,17 @@
1
+ import { TransposedCategoryData } from './transposeCategoryData';
2
+ import { AnimatedNumberProps } from '../AnimatedNumber/AnimatedNumber';
3
+ export type CategoryItemProps = {
4
+ item: TransposedCategoryData;
5
+ animation?: boolean;
6
+ animationOptions?: AnimatedNumberProps['options'];
7
+ maxValue: number;
8
+ showCheckbox: boolean;
9
+ checkboxChecked: boolean;
10
+ formatter?: (value: number) => React.ReactNode;
11
+ tooltipFormatter?: (value: number) => React.ReactNode;
12
+ onClick?: (key: string) => void;
13
+ names: string[];
14
+ tooltip: boolean;
15
+ };
16
+ export default function CategoryItem({ item, animation, animationOptions, maxValue, showCheckbox, checkboxChecked, formatter, tooltipFormatter, onClick, names, tooltip, }: CategoryItemProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=ComparativeCategoryItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComparativeCategoryItem.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryItem.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAuB,EACrB,mBAAmB,EACpB,MAAM,kCAAkC,CAAA;AAkEzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,sBAAsB,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAA;IACjD,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;IACrB,eAAe,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IAC9C,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IACrD,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,IAAI,EACJ,SAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,SAA6D,EAC7D,gBAAoE,EACpE,OAAkB,EAClB,KAAK,EACL,OAAO,GACR,EAAE,iBAAiB,2CA0DnB"}
@@ -0,0 +1,23 @@
1
+ import { ORDER_TYPES } from '../../../utils/chartConstants';
2
+ import { AnimatedNumberProps } from '../AnimatedNumber/AnimatedNumber';
3
+ import { CategoryData } from '../../CategoryWidgetUI/CategoryWidgetUI';
4
+ export type ComparativeCategoryWidgetUIProps = {
5
+ names?: string[];
6
+ data: CategoryData[][];
7
+ labels?: string[];
8
+ colors?: string[];
9
+ maxItems?: number;
10
+ order?: ORDER_TYPES;
11
+ animation?: boolean;
12
+ animationOptions?: AnimatedNumberProps['options'];
13
+ searchable?: boolean;
14
+ filterable?: boolean;
15
+ selectedCategories?: string[];
16
+ onSelectedCategoriesChange?: (categories: string[]) => void;
17
+ formatter?: (value: number) => React.ReactNode;
18
+ tooltipFormatter?: (value: number) => React.ReactNode;
19
+ tooltip?: boolean;
20
+ isLoading?: boolean;
21
+ };
22
+ export default function ComparativeCategoryWidgetUI({ names, data, labels, colors, maxItems, order, animation, animationOptions, searchable, filterable, selectedCategories, onSelectedCategoriesChange, formatter, tooltipFormatter, tooltip, isLoading, }: ComparativeCategoryWidgetUIProps): import("react/jsx-runtime").JSX.Element;
23
+ //# sourceMappingURL=ComparativeCategoryWidgetUI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComparativeCategoryWidgetUI.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAE,WAAW,EAAwB,MAAM,wBAAwB,CAAA;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAGtE,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAA;AAqB1E,MAAM,MAAM,gCAAgC,GAAG;IAC7C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,IAAI,EAAE,YAAY,EAAE,EAAE,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAA;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B,0BAA0B,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC3D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IAC9C,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IACrD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,EAClD,KAA+B,EAC/B,IAAsC,EACtC,MAAgC,EAChC,MAAgC,EAChC,QAAY,EACZ,KAAyB,EACzB,SAAgB,EAChB,gBAAgB,EAChB,UAAiB,EACjB,UAAiB,EACjB,kBAA4C,EAC5C,0BAAqC,EACrC,SAAyD,EACzD,gBAAgE,EAChE,OAAc,EACd,SAAiB,GAClB,EAAE,gCAAgC,2CAwSlC"}
@@ -0,0 +1,45 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ export declare const CategoriesList: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
5
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
+ export declare const BulletListWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
8
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
9
+ export declare const BulletWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
11
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
12
+ alignItems?: CSSProperties["alignItems"];
13
+ }, {}, {}>;
14
+ export declare const Bullet: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
+ export declare const ProgressbarWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
17
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
18
+ export declare const Progressbar: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
+ export declare const Toolbar: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
20
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
21
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
22
+ center?: boolean;
23
+ }, {}, {}>;
24
+ export declare const StyledTooltip: import('@emotion/styled').StyledComponent<import('@mui/material').TooltipProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
25
+ export declare const SearchInput: import('@emotion/styled').StyledComponent<{
26
+ variant?: import('@mui/material').TextFieldVariants | undefined;
27
+ } & Omit<import('@mui/material').FilledTextFieldProps | import('@mui/material').OutlinedTextFieldProps | import('@mui/material').StandardTextFieldProps, "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
28
+ export declare const LabelWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
29
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
30
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
31
+ export declare const CategoryItemWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
32
+ filterable?: boolean;
33
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
34
+ export declare const CategoryItemWrapperRoot: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
35
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
36
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
37
+ export declare const CategoryItemWrapperInner: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
38
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
39
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
40
+ export declare const SignWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
41
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
42
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
43
+ backgroundColor?: CSSProperties["backgroundColor"];
44
+ }, {}, {}>;
45
+ //# sourceMappingURL=ComparativeCategoryWidgetUI.styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComparativeCategoryWidgetUI.styled.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.styled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAG1C,eAAO,MAAM,OAAO,6NAGjB,CAAA;AAEH,eAAO,MAAM,cAAc;;+JAKxB,CAAA;AAEH,eAAO,MAAM,iBAAiB;;+JAM3B,CAAA;AAEH,eAAO,MAAM,aAAa;;;iBACX,aAAa,CAAC,YAAY,CAAC;UAKvC,CAAA;AAEH,eAAO,MAAM,MAAM,6NAQhB,CAAA;AAEH,eAAO,MAAM,kBAAkB;;+JAI5B,CAAA;AAEH,eAAO,MAAM,WAAW,6NAarB,CAAA;AAEH,eAAO,MAAM,OAAO;;;aAEN,OAAO;UAmBlB,CAAA;AAEH,eAAO,MAAM,aAAa,qKAOvB,CAAA;AAEH,eAAO,MAAM,WAAW;;wPAErB,CAAA;AAEH,eAAO,MAAM,YAAY;;+JAItB,CAAA;AAEH,eAAO,MAAM,mBAAmB;iBAEd,OAAO;yGAWtB,CAAA;AAEH,eAAO,MAAM,uBAAuB;;+JAMjC,CAAA;AAEH,eAAO,MAAM,wBAAwB;;+JAKlC,CAAA;AAEH,eAAO,MAAM,WAAW;;;sBAGJ,aAAa,CAAC,iBAAiB,CAAC;UAOjD,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { ORDER_TYPES } from '../../../utils/chartConstants';
2
+ import { CategoryData } from '../../CategoryWidgetUI/CategoryWidgetUI';
3
+ export type TransposedCategoryData = {
4
+ label: string;
5
+ key: string;
6
+ data: {
7
+ color: string;
8
+ value: number;
9
+ }[];
10
+ };
11
+ /** transpose incoming data to group items by column, apply colors and labels */
12
+ export default function transposeCategoryData(data: CategoryData[][], colors: string[], labels: string[], selectedCategories: string[], order: ORDER_TYPES): {
13
+ label: string;
14
+ key: string;
15
+ data: {
16
+ color: string;
17
+ value: number;
18
+ }[];
19
+ }[];
20
+ //# sourceMappingURL=transposeCategoryData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transposeCategoryData.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAA;AAG1E,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACzC,CAAA;AAED,gFAAgF;AAChF,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,IAAI,EAAE,YAAY,EAAE,EAAE,EACtB,MAAM,EAAE,MAAM,EAAE,EAChB,MAAM,EAAE,MAAM,EAAE,EAChB,kBAAkB,EAAE,MAAM,EAAE,EAC5B,KAAK,EAAE,WAAW;;;;;;;IAkCnB"}
@@ -0,0 +1,21 @@
1
+ import { AnimatedNumberProps } from '../AnimatedNumber/AnimatedNumber';
2
+ export type ComparativeFormulaWidgetUIData = {
3
+ prefix?: React.ReactNode;
4
+ suffix?: React.ReactNode;
5
+ label?: React.ReactNode;
6
+ value: number;
7
+ };
8
+ export type ProcessedComparativeFormulaWidgetUIData = ComparativeFormulaWidgetUIData & {
9
+ color: string;
10
+ shouldBeHighlighted: boolean;
11
+ };
12
+ export type ComparativeFormulaWidgetUIProps = {
13
+ data?: ComparativeFormulaWidgetUIData[];
14
+ colors?: string[];
15
+ animated?: boolean;
16
+ animationOptions?: AnimatedNumberProps['options'];
17
+ formatter?: AnimatedNumberProps['formatter'];
18
+ isLoading?: boolean;
19
+ };
20
+ export default function ComparativeFormulaWidgetUI({ data, colors, animated, animationOptions, formatter, isLoading, }: ComparativeFormulaWidgetUIProps): import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=ComparativeFormulaWidgetUI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComparativeFormulaWidgetUI.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AActE,MAAM,MAAM,8BAA8B,GAAG;IAC3C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,uCAAuC,GACjD,8BAA8B,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,mBAAmB,EAAE,OAAO,CAAA;CAC7B,CAAA;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,CAAC,EAAE,8BAA8B,EAAE,CAAA;IACvC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAA;IACjD,SAAS,CAAC,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAA;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EACjD,IAAsD,EACtD,MAAgC,EAChC,QAAe,EACf,gBAAgB,EAChB,SAAuB,EACvB,SAAiB,GAClB,EAAE,+BAA+B,2CAsBjC"}
@@ -0,0 +1,5 @@
1
+ import { ProcessedComparativeFormulaWidgetUIData } from './ComparativeFormulaWidgetUI';
2
+ export default function FormulaLabel({ row, }: {
3
+ row: ProcessedComparativeFormulaWidgetUIData;
4
+ }): import("react/jsx-runtime").JSX.Element | null;
5
+ //# sourceMappingURL=FormulaLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormulaLabel.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/comparative/ComparativeFormulaWidgetUI/FormulaLabel.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,uCAAuC,EAAE,MAAM,8BAA8B,CAAA;AAOtF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,GAAG,GACJ,EAAE;IACD,GAAG,EAAE,uCAAuC,CAAA;CAC7C,kDASA"}
@@ -0,0 +1,10 @@
1
+ import { AnimatedNumberProps } from '../AnimatedNumber/AnimatedNumber';
2
+ import { ProcessedComparativeFormulaWidgetUIData } from './ComparativeFormulaWidgetUI';
3
+ export type FormulaValueProps = {
4
+ row: ProcessedComparativeFormulaWidgetUIData;
5
+ animated: boolean;
6
+ animationOptions: AnimatedNumberProps['options'];
7
+ formatter: AnimatedNumberProps['formatter'];
8
+ };
9
+ export default function FormulaValue({ row, animated, animationOptions, formatter, }: FormulaValueProps): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=FormulaValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormulaValue.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/comparative/ComparativeFormulaWidgetUI/FormulaValue.tsx"],"names":[],"mappings":"AAEA,OAAuB,EACrB,mBAAmB,EACpB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,uCAAuC,EAAE,MAAM,8BAA8B,CAAA;AAkBtF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,uCAAuC,CAAA;IAC5C,QAAQ,EAAE,OAAO,CAAA;IACjB,gBAAgB,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAA;IAChD,SAAS,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAA;CAC5C,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,GAAG,EACH,QAAQ,EACR,gBAAgB,EAChB,SAAS,GACV,EAAE,iBAAiB,2CAgCnB"}
@@ -0,0 +1,22 @@
1
+ import { TooltipParams } from '../../utils/formatterUtils';
2
+ declare function defaultTooltipFormatter(params: TooltipParams, formatter: (v: number) => string, isMultiple: boolean): string | null;
3
+ export type ComparativePieWidgetUIData = {
4
+ name: string;
5
+ value: number;
6
+ };
7
+ export type ComparativePieWidgetUIProps = {
8
+ names: string[];
9
+ data: ComparativePieWidgetUIData[][];
10
+ labels?: string[][];
11
+ colors?: string[][];
12
+ height?: string;
13
+ animation?: boolean;
14
+ formatter?: (v: number) => string;
15
+ tooltipFormatter?: typeof defaultTooltipFormatter;
16
+ selectedCategories?: string[];
17
+ onCategorySelected?: (categories: string[]) => void;
18
+ isLoading?: boolean;
19
+ };
20
+ export default function ComparativePieWidgetUI({ names, data, labels, colors, height, animation, formatter, tooltipFormatter, selectedCategories, onCategorySelected, isLoading, }: ComparativePieWidgetUIProps): import("react/jsx-runtime").JSX.Element | null;
21
+ export {};
22
+ //# sourceMappingURL=ComparativePieWidgetUI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComparativePieWidgetUI.d.ts","sourceRoot":"","sources":["../../../../src/widgets/comparative/ComparativePieWidgetUI.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AA6BtD,iBAAS,uBAAuB,CAC9B,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAChC,UAAU,EAAE,OAAO,iBAiCpB;AAMD,MAAM,MAAM,0BAA0B,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AACxE,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,IAAI,EAAE,0BAA0B,EAAE,EAAE,CAAA;IACpC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IACjC,gBAAgB,CAAC,EAAE,OAAO,uBAAuB,CAAA;IACjD,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACnD,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAID,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAA+B,EAC/B,IAAoD,EACpD,MAAkC,EAClC,MAAkC,EAClC,MAAuB,EACvB,SAAgB,EAChB,SAAgD,EAChD,gBAA0C,EAC1C,kBAAuB,EACvB,kBAA6B,EAC7B,SAAiB,GAClB,EAAE,2BAA2B,kDAmM7B"}
@@ -0,0 +1,33 @@
1
+ export { default as BarWidgetUI } from './BarWidgetUI/BarWidgetUI';
2
+ export { default as CategoryWidgetUI } from './CategoryWidgetUI/CategoryWidgetUI';
3
+ export { default as FormulaWidgetUI } from './FormulaWidgetUI/FormulaWidgetUI';
4
+ export { default as HistogramWidgetUI } from './HistogramWidgetUI/HistogramWidgetUI';
5
+ export { default as PieWidgetUI } from './PieWidgetUI/PieWidgetUI';
6
+ export { default as RangeWidgetUI } from './RangeWidgetUI/RangeWidgetUI';
7
+ export { default as ScatterPlotWidgetUI } from './ScatterPlotWidgetUI/ScatterPlotWidgetUI';
8
+ export { default as TableWidgetUI } from './TableWidgetUI/TableWidgetUI';
9
+ export * from './TimeSeriesWidgetUI';
10
+ export { default as ComparativeCategoryWidgetUI } from './comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI';
11
+ export { default as ComparativeFormulaWidgetUI } from './comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI';
12
+ export { default as ComparativePieWidgetUI } from './comparative/ComparativePieWidgetUI';
13
+ export * from './FeatureSelectionWidgetUI';
14
+ export * from './legend';
15
+ export { default as NoDataAlert } from './NoDataAlert';
16
+ export { default as WrapperWidgetUI } from './WrapperWidgetUI';
17
+ export type * from './BarWidgetUI/BarWidgetUI';
18
+ export type * from './CategoryWidgetUI/CategoryWidgetUI';
19
+ export type * from './FormulaWidgetUI/FormulaWidgetUI';
20
+ export type * from './HistogramWidgetUI/HistogramWidgetUI';
21
+ export type * from './PieWidgetUI/PieWidgetUI';
22
+ export type * from './RangeWidgetUI/RangeWidgetUI';
23
+ export type * from './ScatterPlotWidgetUI/ScatterPlotWidgetUI';
24
+ export type * from './TableWidgetUI/TableWidgetUI';
25
+ export type * from './TimeSeriesWidgetUI';
26
+ export type * from './comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI';
27
+ export type * from './comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI';
28
+ export type * from './comparative/ComparativePieWidgetUI';
29
+ export type * from './FeatureSelectionWidgetUI';
30
+ export type * from './legend';
31
+ export type * from './NoDataAlert';
32
+ export type * from './WrapperWidgetUI';
33
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widgets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACjF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AACpF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2CAA2C,CAAA;AAC1F,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA+B,CAAA;AACxE,cAAc,sBAAsB,CAAA;AAEpC,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,uEAAuE,CAAA;AAC9H,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,qEAAqE,CAAA;AAC3H,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AAExF,cAAc,4BAA4B,CAAA;AAC1C,cAAc,UAAU,CAAA;AAExB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAE9D,mBAAmB,2BAA2B,CAAA;AAC9C,mBAAmB,qCAAqC,CAAA;AACxD,mBAAmB,mCAAmC,CAAA;AACtD,mBAAmB,uCAAuC,CAAA;AAC1D,mBAAmB,2BAA2B,CAAA;AAC9C,mBAAmB,+BAA+B,CAAA;AAClD,mBAAmB,2CAA2C,CAAA;AAC9D,mBAAmB,+BAA+B,CAAA;AAClD,mBAAmB,sBAAsB,CAAA;AAEzC,mBAAmB,uEAAuE,CAAA;AAC1F,mBAAmB,qEAAqE,CAAA;AACxF,mBAAmB,sCAAsC,CAAA;AAEzD,mBAAmB,4BAA4B,CAAA;AAC/C,mBAAmB,UAAU,CAAA;AAE7B,mBAAmB,eAAe,CAAA;AAClC,mBAAmB,mBAAmB,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { CustomLegendComponent, LegendLayerData } from '../../utils/legendUtils';
2
+ export type LegendLayerProps = {
3
+ /** Allows to customize default legend types that can be rendered. */
4
+ customLegendTypes?: Record<string, CustomLegendComponent>;
5
+ /** Layer object from redux store. */
6
+ layer: LegendLayerData;
7
+ /** Callback function for layer visibility change. */
8
+ onChangeCollapsed: ({ id, collapsed, }: {
9
+ id: string;
10
+ collapsed: boolean;
11
+ }) => void;
12
+ /** Callback function for layer opacity change. */
13
+ onChangeOpacity: ({ id, opacity }: {
14
+ id: string;
15
+ opacity: number;
16
+ }) => void;
17
+ /** Callback function for layer collapsed state change. */
18
+ onChangeVisibility: ({ id, collapsed, visible, }: {
19
+ id: string;
20
+ collapsed: boolean;
21
+ visible: boolean;
22
+ }) => void;
23
+ /** Callback function for layer variable selection change. */
24
+ onChangeSelection: ({ id, index, selection, }: {
25
+ id: string;
26
+ index: number;
27
+ selection: unknown;
28
+ }) => void;
29
+ /** Global maximum zoom level for the map. */
30
+ maxZoom?: number;
31
+ /** Global minimum zoom level for the map. */
32
+ minZoom?: number;
33
+ /** Current zoom level for the map. */
34
+ currentZoom?: number;
35
+ };
36
+ export default function LegendLayer({ customLegendTypes, layer, onChangeCollapsed, onChangeOpacity, onChangeVisibility, onChangeSelection, maxZoom, minZoom, currentZoom, }: LegendLayerProps): import("react/jsx-runtime").JSX.Element | null;
37
+ //# sourceMappingURL=LegendLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendLayer.d.ts","sourceRoot":"","sources":["../../../../src/widgets/legend/LegendLayer.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAgB5E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;IACzD,qCAAqC;IACrC,KAAK,EAAE,eAAe,CAAA;IACtB,qDAAqD;IACrD,iBAAiB,EAAE,CAAC,EAClB,EAAE,EACF,SAAS,GACV,EAAE;QACD,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,OAAO,CAAA;KACnB,KAAK,IAAI,CAAA;IACV,kDAAkD;IAClD,eAAe,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAC3E,0DAA0D;IAC1D,kBAAkB,EAAE,CAAC,EACnB,EAAE,EACF,SAAS,EACT,OAAO,GACR,EAAE;QACD,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,OAAO,CAAA;QAClB,OAAO,EAAE,OAAO,CAAA;KACjB,KAAK,IAAI,CAAA;IACV,6DAA6D;IAC7D,iBAAiB,EAAE,CAAC,EAClB,EAAE,EACF,KAAK,EACL,SAAS,GACV,EAAE;QACD,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,OAAO,CAAA;KACnB,KAAK,IAAI,CAAA;IACV,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,iBAA6B,EAC7B,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,OAAY,EACZ,OAAW,EACX,WAAe,GAChB,EAAE,gBAAgB,kDAoJlB"}
@@ -0,0 +1,8 @@
1
+ import { TypographyProps } from '../../components/atoms/Typography';
2
+ /** Renders the legend layer title with an optional tooltip if the title is detected to be too long. */
3
+ export default function LegendLayerTitle({ title, visible, typographyProps, }: {
4
+ title: string;
5
+ visible: boolean;
6
+ typographyProps?: TypographyProps;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=LegendLayerTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendLayerTitle.d.ts","sourceRoot":"","sources":["../../../../src/widgets/legend/LegendLayerTitle.tsx"],"names":[],"mappings":"AAEA,OAAmB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE3E,uGAAuG;AACvG,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,KAAK,EACL,OAAO,EACP,eAAe,GAChB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC,2CA+BA"}
@@ -0,0 +1,9 @@
1
+ import { CustomLegendComponent, LegendLayerData, LegendLayerVariableData } from '../../utils/legendUtils';
2
+ export type LegendLayerVariableProps = {
3
+ layer: LegendLayerData;
4
+ legend: LegendLayerVariableData;
5
+ customLegendTypes: Record<string, CustomLegendComponent>;
6
+ onChangeSelection: (selection: string | number) => void;
7
+ };
8
+ export default function LegendLayerVariable({ layer, legend, customLegendTypes, onChangeSelection, }: LegendLayerVariableProps): import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=LegendLayerVariable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendLayerVariable.d.ts","sourceRoot":"","sources":["../../../../src/widgets/legend/LegendLayerVariable.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,EAIrB,eAAe,EAEf,uBAAuB,EAGxB,MAAM,qBAAqB,CAAA;AAkD5B,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,eAAe,CAAA;IACtB,MAAM,EAAE,uBAAuB,CAAA;IAC/B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;IACxD,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAA;CACxD,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,KAAK,EACL,MAAM,EACN,iBAAiB,EACjB,iBAAiB,GAClB,EAAE,wBAAwB,2CAqE1B"}
@@ -0,0 +1,14 @@
1
+ export type LegendOpacityControlProps = {
2
+ /** Ref object for the menu anchor */
3
+ menuRef: React.MutableRefObject<null>;
4
+ /** Open state of the popover */
5
+ open: boolean;
6
+ /** Callback function for open state change */
7
+ toggleOpen: (open: boolean) => void;
8
+ /** Opacity value in the range [0, 1] */
9
+ opacity: number;
10
+ /** Callback function for opacity change */
11
+ onChange: (opacity: number) => void;
12
+ };
13
+ export default function LegendOpacityControl({ menuRef, open, toggleOpen, opacity, onChange, }: LegendOpacityControlProps): import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=LegendOpacityControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendOpacityControl.d.ts","sourceRoot":"","sources":["../../../../src/widgets/legend/LegendOpacityControl.tsx"],"names":[],"mappings":"AAYA,MAAM,MAAM,yBAAyB,GAAG;IACtC,qCAAqC;IACrC,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAA;IACrC,gCAAgC;IAChC,IAAI,EAAE,OAAO,CAAA;IACb,8CAA8C;IAC9C,UAAU,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAA;IACf,2CAA2C;IAC3C,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACpC,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,OAAO,EACP,IAAI,EACJ,UAAU,EACV,OAAO,EACP,QAAQ,GACT,EAAE,yBAAyB,2CA0E3B"}