@perses-dev/components 0.0.0-snapshot-scatter-chart-embed-8efdfab → 0.0.0-snapshot-explorer-plugin-c4a7621

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 (604) hide show
  1. package/dist/AlignSelector/AlignSelector.d.ts +9 -0
  2. package/dist/AlignSelector/AlignSelector.d.ts.map +1 -0
  3. package/dist/AlignSelector/AlignSelector.js +42 -0
  4. package/dist/AlignSelector/AlignSelector.js.map +1 -0
  5. package/dist/AlignSelector/index.d.ts +2 -0
  6. package/dist/AlignSelector/index.d.ts.map +1 -0
  7. package/dist/AlignSelector/index.js +15 -0
  8. package/dist/AlignSelector/index.js.map +1 -0
  9. package/dist/BarChart/BarChart.d.ts +2 -2
  10. package/dist/BarChart/BarChart.d.ts.map +1 -1
  11. package/dist/BarChart/BarChart.js +13 -8
  12. package/dist/BarChart/BarChart.js.map +1 -1
  13. package/dist/ColorPicker/ColorPicker.d.ts +3 -2
  14. package/dist/ColorPicker/ColorPicker.d.ts.map +1 -1
  15. package/dist/ColorPicker/ColorPicker.js +28 -13
  16. package/dist/ColorPicker/ColorPicker.js.map +1 -1
  17. package/dist/ColorPicker/OptionsColorPicker.d.ts +9 -0
  18. package/dist/ColorPicker/OptionsColorPicker.d.ts.map +1 -0
  19. package/dist/{ThresholdsEditor/ThresholdColorPicker.js → ColorPicker/OptionsColorPicker.js} +18 -15
  20. package/dist/ColorPicker/OptionsColorPicker.js.map +1 -0
  21. package/dist/ColorPicker/index.d.ts +1 -0
  22. package/dist/ColorPicker/index.d.ts.map +1 -1
  23. package/dist/ColorPicker/index.js +1 -0
  24. package/dist/ColorPicker/index.js.map +1 -1
  25. package/dist/ContentWithLegend/ContentWithLegend.d.ts +2 -2
  26. package/dist/ContentWithLegend/ContentWithLegend.d.ts.map +1 -1
  27. package/dist/ContentWithLegend/ContentWithLegend.js +10 -7
  28. package/dist/ContentWithLegend/ContentWithLegend.js.map +1 -1
  29. package/dist/ContentWithLegend/model/content-with-legend-model.d.ts +2 -2
  30. package/dist/ContentWithLegend/model/content-with-legend-model.d.ts.map +1 -1
  31. package/dist/ContentWithLegend/model/content-with-legend-model.js +4 -5
  32. package/dist/ContentWithLegend/model/content-with-legend-model.js.map +1 -1
  33. package/dist/DensitySelector/DensitySelector.d.ts +8 -0
  34. package/dist/DensitySelector/DensitySelector.d.ts.map +1 -0
  35. package/dist/DensitySelector/DensitySelector.js +46 -0
  36. package/dist/DensitySelector/DensitySelector.js.map +1 -0
  37. package/dist/DensitySelector/index.d.ts +2 -0
  38. package/dist/DensitySelector/index.d.ts.map +1 -0
  39. package/dist/DensitySelector/index.js +15 -0
  40. package/dist/DensitySelector/index.js.map +1 -0
  41. package/dist/Dialog/Dialog.d.ts +10 -15
  42. package/dist/Dialog/Dialog.d.ts.map +1 -1
  43. package/dist/Dialog/Dialog.js +11 -7
  44. package/dist/Dialog/Dialog.js.map +1 -1
  45. package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts +2 -2
  46. package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts.map +1 -1
  47. package/dist/Dialog/DiscardChangesConfirmationDialog.js +1 -1
  48. package/dist/Dialog/DiscardChangesConfirmationDialog.js.map +1 -1
  49. package/dist/DragAndDrop/DragAndDropList.d.ts +24 -0
  50. package/dist/DragAndDrop/DragAndDropList.d.ts.map +1 -0
  51. package/dist/DragAndDrop/DragAndDropList.js +153 -0
  52. package/dist/DragAndDrop/DragAndDropList.js.map +1 -0
  53. package/dist/DragAndDrop/DragButton.d.ts +13 -0
  54. package/dist/DragAndDrop/DragButton.d.ts.map +1 -0
  55. package/dist/DragAndDrop/DragButton.js +97 -0
  56. package/dist/DragAndDrop/DragButton.js.map +1 -0
  57. package/dist/DragAndDrop/DropIndicator.d.ts +3 -0
  58. package/dist/DragAndDrop/DropIndicator.d.ts.map +1 -0
  59. package/dist/DragAndDrop/DropIndicator.js +44 -0
  60. package/dist/DragAndDrop/DropIndicator.js.map +1 -0
  61. package/dist/DragAndDrop/index.d.ts +4 -0
  62. package/dist/DragAndDrop/index.d.ts.map +1 -0
  63. package/dist/DragAndDrop/index.js +17 -0
  64. package/dist/DragAndDrop/index.js.map +1 -0
  65. package/dist/DragAndDrop/model.d.ts +11 -0
  66. package/dist/DragAndDrop/model.d.ts.map +1 -0
  67. package/dist/DragAndDrop/model.js +17 -0
  68. package/dist/DragAndDrop/model.js.map +1 -0
  69. package/dist/Drawer/Drawer.d.ts +2 -2
  70. package/dist/Drawer/Drawer.d.ts.map +1 -1
  71. package/dist/Drawer/Drawer.js +2 -2
  72. package/dist/Drawer/Drawer.js.map +1 -1
  73. package/dist/EChart/EChart.d.ts +8 -8
  74. package/dist/EChart/EChart.d.ts.map +1 -1
  75. package/dist/EChart/EChart.js +5 -6
  76. package/dist/EChart/EChart.js.map +1 -1
  77. package/dist/ErrorAlert.d.ts +2 -2
  78. package/dist/ErrorAlert.d.ts.map +1 -1
  79. package/dist/ErrorAlert.js +1 -1
  80. package/dist/ErrorAlert.js.map +1 -1
  81. package/dist/FontSizeSelector/FontSizeSelector.d.ts +3 -3
  82. package/dist/FontSizeSelector/FontSizeSelector.d.ts.map +1 -1
  83. package/dist/FontSizeSelector/FontSizeSelector.js +2 -2
  84. package/dist/FontSizeSelector/FontSizeSelector.js.map +1 -1
  85. package/dist/FormEditor/FormActions.d.ts +16 -0
  86. package/dist/FormEditor/FormActions.d.ts.map +1 -0
  87. package/dist/FormEditor/FormActions.js +75 -0
  88. package/dist/FormEditor/FormActions.js.map +1 -0
  89. package/dist/FormEditor/index.d.ts +2 -0
  90. package/dist/FormEditor/index.d.ts.map +1 -0
  91. package/dist/FormEditor/index.js +15 -0
  92. package/dist/FormEditor/index.js.map +1 -0
  93. package/dist/FormatControls/FormatControls.d.ts +2 -2
  94. package/dist/FormatControls/FormatControls.d.ts.map +1 -1
  95. package/dist/FormatControls/FormatControls.js +3 -3
  96. package/dist/FormatControls/FormatControls.js.map +1 -1
  97. package/dist/GaugeChart/GaugeChart.d.ts +4 -4
  98. package/dist/GaugeChart/GaugeChart.d.ts.map +1 -1
  99. package/dist/GaugeChart/GaugeChart.js +5 -8
  100. package/dist/GaugeChart/GaugeChart.js.map +1 -1
  101. package/dist/InfoTooltip/InfoTooltip.d.ts +4 -4
  102. package/dist/InfoTooltip/InfoTooltip.d.ts.map +1 -1
  103. package/dist/InfoTooltip/InfoTooltip.js +7 -8
  104. package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
  105. package/dist/JSONEditor.d.ts +3 -3
  106. package/dist/JSONEditor.d.ts.map +1 -1
  107. package/dist/JSONEditor.js.map +1 -1
  108. package/dist/Legend/CompactLegend.d.ts +2 -2
  109. package/dist/Legend/CompactLegend.d.ts.map +1 -1
  110. package/dist/Legend/CompactLegend.js +1 -1
  111. package/dist/Legend/CompactLegend.js.map +1 -1
  112. package/dist/Legend/Legend.d.ts +2 -2
  113. package/dist/Legend/Legend.d.ts.map +1 -1
  114. package/dist/Legend/Legend.js +9 -5
  115. package/dist/Legend/Legend.js.map +1 -1
  116. package/dist/Legend/LegendColorBadge.d.ts +2 -2
  117. package/dist/Legend/LegendColorBadge.d.ts.map +1 -1
  118. package/dist/Legend/LegendColorBadge.js +2 -2
  119. package/dist/Legend/LegendColorBadge.js.map +1 -1
  120. package/dist/Legend/ListLegend.d.ts +2 -2
  121. package/dist/Legend/ListLegend.d.ts.map +1 -1
  122. package/dist/Legend/ListLegend.js +1 -1
  123. package/dist/Legend/ListLegend.js.map +1 -1
  124. package/dist/Legend/ListLegendItem.d.ts +6 -6
  125. package/dist/Legend/ListLegendItem.d.ts.map +1 -1
  126. package/dist/Legend/ListLegendItem.js +11 -19
  127. package/dist/Legend/ListLegendItem.js.map +1 -1
  128. package/dist/Legend/TableLegend.d.ts +2 -2
  129. package/dist/Legend/TableLegend.d.ts.map +1 -1
  130. package/dist/Legend/TableLegend.js +3 -2
  131. package/dist/Legend/TableLegend.js.map +1 -1
  132. package/dist/Legend/legend-model.d.ts +2 -2
  133. package/dist/Legend/legend-model.d.ts.map +1 -1
  134. package/dist/Legend/legend-model.js.map +1 -1
  135. package/dist/LineChart/LineChart.d.ts +1 -1
  136. package/dist/LineChart/LineChart.d.ts.map +1 -1
  137. package/dist/LineChart/LineChart.js +12 -17
  138. package/dist/LineChart/LineChart.js.map +1 -1
  139. package/dist/LinksEditor/LinksEditor.d.ts +8 -0
  140. package/dist/LinksEditor/LinksEditor.d.ts.map +1 -0
  141. package/dist/LinksEditor/LinksEditor.js +161 -0
  142. package/dist/LinksEditor/LinksEditor.js.map +1 -0
  143. package/dist/LinksEditor/index.d.ts +2 -0
  144. package/dist/LinksEditor/index.d.ts.map +1 -0
  145. package/dist/LinksEditor/index.js +15 -0
  146. package/dist/LinksEditor/index.js.map +1 -0
  147. package/dist/ModeSelector/ModeSelector.d.ts +3 -3
  148. package/dist/ModeSelector/ModeSelector.d.ts.map +1 -1
  149. package/dist/ModeSelector/ModeSelector.js +2 -2
  150. package/dist/ModeSelector/ModeSelector.js.map +1 -1
  151. package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts +3 -3
  152. package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts.map +1 -1
  153. package/dist/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
  154. package/dist/OptionsEditorLayout/OptionsEditorColumn.js.map +1 -1
  155. package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts +3 -3
  156. package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts.map +1 -1
  157. package/dist/OptionsEditorLayout/OptionsEditorControl.js +1 -1
  158. package/dist/OptionsEditorLayout/OptionsEditorControl.js.map +1 -1
  159. package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts +3 -3
  160. package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts.map +1 -1
  161. package/dist/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
  162. package/dist/OptionsEditorLayout/OptionsEditorGrid.js.map +1 -1
  163. package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts +3 -3
  164. package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts.map +1 -1
  165. package/dist/OptionsEditorLayout/OptionsEditorGroup.js +1 -1
  166. package/dist/OptionsEditorLayout/OptionsEditorGroup.js.map +1 -1
  167. package/dist/Overlay/Overlay.d.ts +16 -0
  168. package/dist/Overlay/Overlay.d.ts.map +1 -0
  169. package/dist/Overlay/Overlay.js +52 -0
  170. package/dist/Overlay/Overlay.js.map +1 -0
  171. package/dist/Overlay/index.d.ts +2 -0
  172. package/dist/Overlay/index.d.ts.map +1 -0
  173. package/dist/Overlay/index.js +15 -0
  174. package/dist/Overlay/index.js.map +1 -0
  175. package/dist/PieChart/PieChart.d.ts +14 -0
  176. package/dist/PieChart/PieChart.d.ts.map +1 -0
  177. package/dist/PieChart/PieChart.js +92 -0
  178. package/dist/PieChart/PieChart.js.map +1 -0
  179. package/dist/PieChart/index.d.ts +2 -0
  180. package/dist/PieChart/index.d.ts.map +1 -0
  181. package/dist/PieChart/index.js +15 -0
  182. package/dist/PieChart/index.js.map +1 -0
  183. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts +2 -2
  184. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts.map +1 -1
  185. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js +1 -1
  186. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js.map +1 -1
  187. package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts +2 -2
  188. package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts.map +1 -1
  189. package/dist/SettingsAutocomplete/SettingsAutocomplete.js +8 -7
  190. package/dist/SettingsAutocomplete/SettingsAutocomplete.js.map +1 -1
  191. package/dist/SortSelector/SortSelector.d.ts +3 -3
  192. package/dist/SortSelector/SortSelector.d.ts.map +1 -1
  193. package/dist/SortSelector/SortSelector.js +2 -2
  194. package/dist/SortSelector/SortSelector.js.map +1 -1
  195. package/dist/SortSelector/SortSelectorButtons.d.ts +9 -0
  196. package/dist/SortSelector/SortSelectorButtons.d.ts.map +1 -0
  197. package/dist/SortSelector/SortSelectorButtons.js +42 -0
  198. package/dist/SortSelector/SortSelectorButtons.js.map +1 -0
  199. package/dist/SortSelector/index.d.ts +1 -0
  200. package/dist/SortSelector/index.d.ts.map +1 -1
  201. package/dist/SortSelector/index.js +2 -1
  202. package/dist/SortSelector/index.js.map +1 -1
  203. package/dist/StatChart/StatChart.d.ts +6 -6
  204. package/dist/StatChart/StatChart.d.ts.map +1 -1
  205. package/dist/StatChart/StatChart.js +12 -18
  206. package/dist/StatChart/StatChart.js.map +1 -1
  207. package/dist/StatChart/calculateFontSize.d.ts.map +1 -1
  208. package/dist/StatChart/calculateFontSize.js +4 -6
  209. package/dist/StatChart/calculateFontSize.js.map +1 -1
  210. package/dist/StatChart/utils/formatStatChartValue.d.ts +3 -0
  211. package/dist/StatChart/utils/formatStatChartValue.d.ts.map +1 -0
  212. package/dist/StatChart/utils/formatStatChartValue.js +26 -0
  213. package/dist/StatChart/utils/formatStatChartValue.js.map +1 -0
  214. package/dist/StatusHistoryChart/StatusHistoryChart.d.ts +27 -0
  215. package/dist/StatusHistoryChart/StatusHistoryChart.d.ts.map +1 -0
  216. package/dist/StatusHistoryChart/StatusHistoryChart.js +132 -0
  217. package/dist/StatusHistoryChart/StatusHistoryChart.js.map +1 -0
  218. package/dist/StatusHistoryChart/StatusHistoryTooltip.d.ts +13 -0
  219. package/dist/StatusHistoryChart/StatusHistoryTooltip.d.ts.map +1 -0
  220. package/dist/StatusHistoryChart/StatusHistoryTooltip.js +47 -0
  221. package/dist/StatusHistoryChart/StatusHistoryTooltip.js.map +1 -0
  222. package/dist/StatusHistoryChart/get-formatted-axis-label.d.ts +2 -0
  223. package/dist/StatusHistoryChart/get-formatted-axis-label.d.ts.map +1 -0
  224. package/dist/StatusHistoryChart/get-formatted-axis-label.js +41 -0
  225. package/dist/StatusHistoryChart/get-formatted-axis-label.js.map +1 -0
  226. package/dist/StatusHistoryChart/index.d.ts +3 -0
  227. package/dist/StatusHistoryChart/index.d.ts.map +1 -0
  228. package/dist/StatusHistoryChart/index.js +16 -0
  229. package/dist/StatusHistoryChart/index.js.map +1 -0
  230. package/dist/StatusHistoryChart/utils/get-color.d.ts +6 -0
  231. package/dist/StatusHistoryChart/utils/get-color.d.ts.map +1 -0
  232. package/dist/StatusHistoryChart/utils/get-color.js +100 -0
  233. package/dist/StatusHistoryChart/utils/get-color.js.map +1 -0
  234. package/dist/StatusHistoryChart/utils/get-tooltip-position.d.ts +3 -0
  235. package/dist/StatusHistoryChart/utils/get-tooltip-position.d.ts.map +1 -0
  236. package/dist/StatusHistoryChart/utils/get-tooltip-position.js +27 -0
  237. package/dist/StatusHistoryChart/utils/get-tooltip-position.js.map +1 -0
  238. package/dist/Table/InnerTable.d.ts +2 -2
  239. package/dist/Table/InnerTable.d.ts.map +1 -1
  240. package/dist/Table/InnerTable.js +4 -3
  241. package/dist/Table/InnerTable.js.map +1 -1
  242. package/dist/Table/Table.d.ts +2 -2
  243. package/dist/Table/Table.d.ts.map +1 -1
  244. package/dist/Table/Table.js +12 -10
  245. package/dist/Table/Table.js.map +1 -1
  246. package/dist/Table/TableBody.d.ts +2 -2
  247. package/dist/Table/TableBody.d.ts.map +1 -1
  248. package/dist/Table/TableCell.d.ts +4 -2
  249. package/dist/Table/TableCell.d.ts.map +1 -1
  250. package/dist/Table/TableCell.js +29 -7
  251. package/dist/Table/TableCell.js.map +1 -1
  252. package/dist/Table/TableCheckbox.d.ts +2 -2
  253. package/dist/Table/TableCheckbox.d.ts.map +1 -1
  254. package/dist/Table/TableCheckbox.js +1 -1
  255. package/dist/Table/TableCheckbox.js.map +1 -1
  256. package/dist/Table/TableHead.d.ts +2 -2
  257. package/dist/Table/TableHead.d.ts.map +1 -1
  258. package/dist/Table/TableHeaderCell.d.ts +3 -3
  259. package/dist/Table/TableHeaderCell.d.ts.map +1 -1
  260. package/dist/Table/TableHeaderCell.js +1 -1
  261. package/dist/Table/TableHeaderCell.js.map +1 -1
  262. package/dist/Table/TableRow.d.ts +1 -1
  263. package/dist/Table/TableRow.d.ts.map +1 -1
  264. package/dist/Table/TableRow.js.map +1 -1
  265. package/dist/Table/VirtualizedTable.d.ts +5 -4
  266. package/dist/Table/VirtualizedTable.d.ts.map +1 -1
  267. package/dist/Table/VirtualizedTable.js +18 -15
  268. package/dist/Table/VirtualizedTable.js.map +1 -1
  269. package/dist/Table/VirtualizedTableContainer.d.ts +2 -2
  270. package/dist/Table/VirtualizedTableContainer.d.ts.map +1 -1
  271. package/dist/Table/hooks/useTableKeyboardNav.d.ts +3 -3
  272. package/dist/Table/hooks/useTableKeyboardNav.d.ts.map +1 -1
  273. package/dist/Table/hooks/useTableKeyboardNav.js +2 -2
  274. package/dist/Table/hooks/useTableKeyboardNav.js.map +1 -1
  275. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.d.ts +10 -12
  276. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.d.ts.map +1 -1
  277. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js +8 -14
  278. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js.map +1 -1
  279. package/dist/Table/index.d.ts +1 -2
  280. package/dist/Table/index.d.ts.map +1 -1
  281. package/dist/Table/index.js +1 -1
  282. package/dist/Table/index.js.map +1 -1
  283. package/dist/Table/model/table-model.d.ts +27 -7
  284. package/dist/Table/model/table-model.d.ts.map +1 -1
  285. package/dist/Table/model/table-model.js +29 -23
  286. package/dist/Table/model/table-model.js.map +1 -1
  287. package/dist/ThresholdsEditor/ThresholdInput.d.ts +2 -2
  288. package/dist/ThresholdsEditor/ThresholdInput.d.ts.map +1 -1
  289. package/dist/ThresholdsEditor/ThresholdInput.js +3 -3
  290. package/dist/ThresholdsEditor/ThresholdInput.js.map +1 -1
  291. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts +2 -2
  292. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts.map +1 -1
  293. package/dist/ThresholdsEditor/ThresholdsEditor.js +20 -27
  294. package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -1
  295. package/dist/TimeChart/TimeChart.d.ts.map +1 -1
  296. package/dist/TimeChart/TimeChart.js +12 -15
  297. package/dist/TimeChart/TimeChart.js.map +1 -1
  298. package/dist/TimeRangeSelector/DateTimeRangePicker.d.ts +19 -0
  299. package/dist/TimeRangeSelector/DateTimeRangePicker.d.ts.map +1 -0
  300. package/dist/{DateTimeRangePicker/AbsoluteTimePicker.js → TimeRangeSelector/DateTimeRangePicker.js} +44 -29
  301. package/dist/TimeRangeSelector/DateTimeRangePicker.js.map +1 -0
  302. package/dist/TimeRangeSelector/TimeRangeSelector.d.ts +36 -0
  303. package/dist/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -0
  304. package/dist/TimeRangeSelector/TimeRangeSelector.js +119 -0
  305. package/dist/TimeRangeSelector/TimeRangeSelector.js.map +1 -0
  306. package/dist/{DateTimeRangePicker → TimeRangeSelector}/index.d.ts +1 -2
  307. package/dist/TimeRangeSelector/index.d.ts.map +1 -0
  308. package/dist/{DateTimeRangePicker → TimeRangeSelector}/index.js +2 -3
  309. package/dist/TimeRangeSelector/index.js.map +1 -0
  310. package/dist/TimeRangeSelector/utils.d.ts +25 -0
  311. package/dist/TimeRangeSelector/utils.d.ts.map +1 -0
  312. package/dist/{DateTimeRangePicker → TimeRangeSelector}/utils.js +23 -2
  313. package/dist/TimeRangeSelector/utils.js.map +1 -0
  314. package/dist/TimeSeriesTooltip/LineChartTooltip.d.ts +2 -2
  315. package/dist/TimeSeriesTooltip/LineChartTooltip.d.ts.map +1 -1
  316. package/dist/TimeSeriesTooltip/LineChartTooltip.js +8 -13
  317. package/dist/TimeSeriesTooltip/LineChartTooltip.js.map +1 -1
  318. package/dist/TimeSeriesTooltip/SeriesInfo.d.ts +2 -2
  319. package/dist/TimeSeriesTooltip/SeriesInfo.d.ts.map +1 -1
  320. package/dist/TimeSeriesTooltip/SeriesInfo.js +2 -3
  321. package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -1
  322. package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts +2 -2
  323. package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts.map +1 -1
  324. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js +1 -1
  325. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js.map +1 -1
  326. package/dist/TimeSeriesTooltip/SeriesMarker.d.ts +2 -2
  327. package/dist/TimeSeriesTooltip/SeriesMarker.d.ts.map +1 -1
  328. package/dist/TimeSeriesTooltip/SeriesMarker.js +1 -1
  329. package/dist/TimeSeriesTooltip/SeriesMarker.js.map +1 -1
  330. package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts +2 -2
  331. package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts.map +1 -1
  332. package/dist/TimeSeriesTooltip/TimeChartTooltip.js +4 -5
  333. package/dist/TimeSeriesTooltip/TimeChartTooltip.js.map +1 -1
  334. package/dist/TimeSeriesTooltip/TooltipContent.d.ts +2 -2
  335. package/dist/TimeSeriesTooltip/TooltipContent.d.ts.map +1 -1
  336. package/dist/TimeSeriesTooltip/TooltipContent.js +2 -2
  337. package/dist/TimeSeriesTooltip/TooltipContent.js.map +1 -1
  338. package/dist/TimeSeriesTooltip/TooltipHeader.d.ts.map +1 -1
  339. package/dist/TimeSeriesTooltip/TooltipHeader.js +7 -15
  340. package/dist/TimeSeriesTooltip/TooltipHeader.js.map +1 -1
  341. package/dist/TimeSeriesTooltip/nearby-series.d.ts +1 -1
  342. package/dist/TimeSeriesTooltip/nearby-series.d.ts.map +1 -1
  343. package/dist/TimeSeriesTooltip/nearby-series.js +19 -29
  344. package/dist/TimeSeriesTooltip/nearby-series.js.map +1 -1
  345. package/dist/TimeSeriesTooltip/tooltip-model.d.ts +10 -3
  346. package/dist/TimeSeriesTooltip/tooltip-model.d.ts.map +1 -1
  347. package/dist/TimeSeriesTooltip/tooltip-model.js +13 -2
  348. package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -1
  349. package/dist/TimeSeriesTooltip/utils.d.ts +1 -21
  350. package/dist/TimeSeriesTooltip/utils.d.ts.map +1 -1
  351. package/dist/TimeSeriesTooltip/utils.js +2 -4
  352. package/dist/TimeSeriesTooltip/utils.js.map +1 -1
  353. package/dist/ToolbarIconButton/ToolbarIconButton.d.ts +6 -0
  354. package/dist/ToolbarIconButton/ToolbarIconButton.d.ts.map +1 -0
  355. package/dist/ToolbarIconButton/ToolbarIconButton.js +32 -0
  356. package/dist/ToolbarIconButton/ToolbarIconButton.js.map +1 -0
  357. package/dist/ToolbarIconButton/index.d.ts +2 -0
  358. package/dist/ToolbarIconButton/index.d.ts.map +1 -0
  359. package/dist/ToolbarIconButton/index.js +15 -0
  360. package/dist/ToolbarIconButton/index.js.map +1 -0
  361. package/dist/TransformsEditor/TransformEditor.d.ts +9 -0
  362. package/dist/TransformsEditor/TransformEditor.d.ts.map +1 -0
  363. package/dist/TransformsEditor/TransformEditor.js +289 -0
  364. package/dist/TransformsEditor/TransformEditor.js.map +1 -0
  365. package/dist/TransformsEditor/TransformEditorContainer.d.ts +10 -0
  366. package/dist/TransformsEditor/TransformEditorContainer.d.ts.map +1 -0
  367. package/dist/TransformsEditor/TransformEditorContainer.js +118 -0
  368. package/dist/TransformsEditor/TransformEditorContainer.js.map +1 -0
  369. package/dist/TransformsEditor/TransformsEditor.d.ts +9 -0
  370. package/dist/TransformsEditor/TransformsEditor.d.ts.map +1 -0
  371. package/dist/TransformsEditor/TransformsEditor.js +90 -0
  372. package/dist/TransformsEditor/TransformsEditor.js.map +1 -0
  373. package/dist/TransformsEditor/index.d.ts +2 -0
  374. package/dist/TransformsEditor/index.d.ts.map +1 -0
  375. package/dist/TransformsEditor/index.js +15 -0
  376. package/dist/TransformsEditor/index.js.map +1 -0
  377. package/dist/ValueMappingEditor/ValueMappingEditor.d.ts +10 -0
  378. package/dist/ValueMappingEditor/ValueMappingEditor.d.ts.map +1 -0
  379. package/dist/ValueMappingEditor/ValueMappingEditor.js +374 -0
  380. package/dist/ValueMappingEditor/ValueMappingEditor.js.map +1 -0
  381. package/dist/ValueMappingEditor/ValueMappingsEditor.d.ts +8 -0
  382. package/dist/ValueMappingEditor/ValueMappingsEditor.d.ts.map +1 -0
  383. package/dist/ValueMappingEditor/ValueMappingsEditor.js +118 -0
  384. package/dist/ValueMappingEditor/ValueMappingsEditor.js.map +1 -0
  385. package/dist/ValueMappingEditor/index.d.ts +2 -0
  386. package/dist/ValueMappingEditor/index.d.ts.map +1 -0
  387. package/dist/ValueMappingEditor/index.js +15 -0
  388. package/dist/ValueMappingEditor/index.js.map +1 -0
  389. package/dist/YAxisLabel.d.ts +2 -2
  390. package/dist/YAxisLabel.d.ts.map +1 -1
  391. package/dist/YAxisLabel.js +5 -3
  392. package/dist/YAxisLabel.js.map +1 -1
  393. package/dist/cjs/AlignSelector/AlignSelector.js +50 -0
  394. package/dist/cjs/AlignSelector/index.js +30 -0
  395. package/dist/cjs/BarChart/BarChart.js +14 -9
  396. package/dist/cjs/ColorPicker/ColorPicker.js +28 -52
  397. package/dist/cjs/{ThresholdsEditor/ThresholdColorPicker.js → ColorPicker/OptionsColorPicker.js} +19 -16
  398. package/dist/cjs/ColorPicker/index.js +1 -0
  399. package/dist/cjs/ContentWithLegend/ContentWithLegend.js +10 -12
  400. package/dist/cjs/ContentWithLegend/model/content-with-legend-model.js +4 -5
  401. package/dist/cjs/DensitySelector/DensitySelector.js +54 -0
  402. package/dist/cjs/DensitySelector/index.js +30 -0
  403. package/dist/cjs/Dialog/Dialog.js +11 -7
  404. package/dist/cjs/Dialog/DiscardChangesConfirmationDialog.js +1 -1
  405. package/dist/cjs/DragAndDrop/DragAndDropList.js +159 -0
  406. package/dist/cjs/DragAndDrop/DragButton.js +121 -0
  407. package/dist/cjs/DragAndDrop/DropIndicator.js +52 -0
  408. package/dist/cjs/DragAndDrop/index.js +32 -0
  409. package/dist/cjs/DragAndDrop/model.js +25 -0
  410. package/dist/cjs/Drawer/Drawer.js +2 -2
  411. package/dist/cjs/EChart/EChart.js +5 -45
  412. package/dist/cjs/ErrorAlert.js +1 -1
  413. package/dist/cjs/FontSizeSelector/FontSizeSelector.js +2 -2
  414. package/dist/cjs/FormEditor/FormActions.js +83 -0
  415. package/dist/cjs/FormEditor/index.js +30 -0
  416. package/dist/cjs/FormatControls/FormatControls.js +3 -3
  417. package/dist/cjs/GaugeChart/GaugeChart.js +6 -9
  418. package/dist/cjs/InfoTooltip/InfoTooltip.js +7 -13
  419. package/dist/cjs/Legend/CompactLegend.js +1 -1
  420. package/dist/cjs/Legend/Legend.js +9 -5
  421. package/dist/cjs/Legend/LegendColorBadge.js +2 -7
  422. package/dist/cjs/Legend/ListLegend.js +1 -1
  423. package/dist/cjs/Legend/ListLegendItem.js +9 -55
  424. package/dist/cjs/Legend/TableLegend.js +3 -2
  425. package/dist/cjs/LineChart/LineChart.js +13 -18
  426. package/dist/cjs/LinksEditor/LinksEditor.js +174 -0
  427. package/dist/cjs/LinksEditor/index.js +30 -0
  428. package/dist/cjs/ModeSelector/ModeSelector.js +2 -2
  429. package/dist/cjs/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
  430. package/dist/cjs/OptionsEditorLayout/OptionsEditorControl.js +1 -1
  431. package/dist/cjs/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
  432. package/dist/cjs/OptionsEditorLayout/OptionsEditorGroup.js +1 -1
  433. package/dist/cjs/Overlay/Overlay.js +71 -0
  434. package/dist/cjs/Overlay/index.js +30 -0
  435. package/dist/cjs/PieChart/PieChart.js +100 -0
  436. package/dist/cjs/PieChart/index.js +30 -0
  437. package/dist/cjs/RefreshIntervalPicker/RefreshIntervalPicker.js +1 -1
  438. package/dist/cjs/SettingsAutocomplete/SettingsAutocomplete.js +8 -7
  439. package/dist/cjs/SortSelector/SortSelector.js +2 -2
  440. package/dist/cjs/SortSelector/SortSelectorButtons.js +50 -0
  441. package/dist/cjs/SortSelector/index.js +2 -1
  442. package/dist/cjs/StatChart/StatChart.js +15 -21
  443. package/dist/cjs/StatChart/calculateFontSize.js +4 -6
  444. package/dist/cjs/StatChart/utils/formatStatChartValue.js +34 -0
  445. package/dist/cjs/StatusHistoryChart/StatusHistoryChart.js +140 -0
  446. package/dist/cjs/StatusHistoryChart/StatusHistoryTooltip.js +55 -0
  447. package/dist/cjs/StatusHistoryChart/get-formatted-axis-label.js +48 -0
  448. package/dist/cjs/StatusHistoryChart/index.js +31 -0
  449. package/dist/cjs/StatusHistoryChart/utils/get-color.js +125 -0
  450. package/dist/cjs/StatusHistoryChart/utils/get-tooltip-position.js +35 -0
  451. package/dist/cjs/Table/InnerTable.js +4 -3
  452. package/dist/cjs/Table/Table.js +11 -9
  453. package/dist/cjs/Table/TableCell.js +29 -7
  454. package/dist/cjs/Table/TableCheckbox.js +1 -1
  455. package/dist/cjs/Table/TableHeaderCell.js +1 -1
  456. package/dist/cjs/Table/VirtualizedTable.js +18 -15
  457. package/dist/cjs/Table/hooks/useTableKeyboardNav.js +2 -2
  458. package/dist/cjs/Table/hooks/useVirtualizedTableKeyboardNav.js +8 -14
  459. package/dist/cjs/Table/index.js +1 -7
  460. package/dist/cjs/Table/model/table-model.js +32 -23
  461. package/dist/cjs/ThresholdsEditor/ThresholdInput.js +3 -3
  462. package/dist/cjs/ThresholdsEditor/ThresholdsEditor.js +23 -28
  463. package/dist/cjs/TimeChart/TimeChart.js +12 -15
  464. package/dist/cjs/{DateTimeRangePicker/AbsoluteTimePicker.js → TimeRangeSelector/DateTimeRangePicker.js} +37 -30
  465. package/dist/cjs/TimeRangeSelector/TimeRangeSelector.js +127 -0
  466. package/dist/cjs/{DateTimeRangePicker → TimeRangeSelector}/index.js +2 -3
  467. package/dist/cjs/{DateTimeRangePicker → TimeRangeSelector}/utils.js +26 -3
  468. package/dist/cjs/TimeSeriesTooltip/LineChartTooltip.js +8 -13
  469. package/dist/cjs/TimeSeriesTooltip/SeriesInfo.js +2 -3
  470. package/dist/cjs/TimeSeriesTooltip/SeriesLabelsStack.js +1 -1
  471. package/dist/cjs/TimeSeriesTooltip/SeriesMarker.js +1 -1
  472. package/dist/cjs/TimeSeriesTooltip/TimeChartTooltip.js +4 -5
  473. package/dist/cjs/TimeSeriesTooltip/TooltipContent.js +2 -2
  474. package/dist/cjs/TimeSeriesTooltip/TooltipHeader.js +7 -15
  475. package/dist/cjs/TimeSeriesTooltip/nearby-series.js +29 -39
  476. package/dist/cjs/TimeSeriesTooltip/tooltip-model.js +49 -29
  477. package/dist/cjs/TimeSeriesTooltip/utils.js +2 -4
  478. package/dist/cjs/ToolbarIconButton/ToolbarIconButton.js +40 -0
  479. package/dist/cjs/ToolbarIconButton/index.js +30 -0
  480. package/dist/cjs/TransformsEditor/TransformEditor.js +297 -0
  481. package/dist/cjs/TransformsEditor/TransformEditorContainer.js +131 -0
  482. package/dist/cjs/TransformsEditor/TransformsEditor.js +103 -0
  483. package/dist/cjs/TransformsEditor/index.js +30 -0
  484. package/dist/cjs/ValueMappingEditor/ValueMappingEditor.js +387 -0
  485. package/dist/cjs/ValueMappingEditor/ValueMappingsEditor.js +131 -0
  486. package/dist/cjs/ValueMappingEditor/index.js +30 -0
  487. package/dist/cjs/YAxisLabel.js +5 -3
  488. package/dist/cjs/context/ChartsProvider.js +4 -2
  489. package/dist/cjs/context/SnackbarProvider.js +1 -1
  490. package/dist/cjs/context/TimeZoneProvider.js +5 -3
  491. package/dist/cjs/controls/TextField.js +54 -0
  492. package/dist/cjs/controls/index.js +30 -0
  493. package/dist/cjs/index.js +13 -1
  494. package/dist/cjs/model/graph.js +3 -3
  495. package/dist/cjs/model/timeOption.js +19 -1
  496. package/dist/cjs/test-utils/theme.js +3 -3
  497. package/dist/cjs/theme/component-overrides/alert.js +4 -4
  498. package/dist/cjs/theme/component-overrides/paper.js +1 -1
  499. package/dist/cjs/theme/index.js +1 -0
  500. package/dist/cjs/theme/palette/background.js +2 -0
  501. package/dist/cjs/theme/palette/colors/common.js +3 -3
  502. package/dist/cjs/theme/theme.js +7 -7
  503. package/dist/cjs/utils/axis.js +3 -3
  504. package/dist/cjs/utils/chart-actions.js +14 -15
  505. package/dist/cjs/utils/format.js +21 -3
  506. package/dist/cjs/utils/mathjs.js +1 -1
  507. package/dist/cjs/utils/theme-gen.js +5 -7
  508. package/dist/context/ChartsProvider.d.ts +2 -2
  509. package/dist/context/ChartsProvider.d.ts.map +1 -1
  510. package/dist/context/ChartsProvider.js +1 -1
  511. package/dist/context/ChartsProvider.js.map +1 -1
  512. package/dist/context/SnackbarProvider.d.ts +2 -2
  513. package/dist/context/SnackbarProvider.d.ts.map +1 -1
  514. package/dist/context/SnackbarProvider.js +1 -1
  515. package/dist/context/SnackbarProvider.js.map +1 -1
  516. package/dist/context/TimeZoneProvider.d.ts +4 -4
  517. package/dist/context/TimeZoneProvider.d.ts.map +1 -1
  518. package/dist/context/TimeZoneProvider.js +2 -2
  519. package/dist/context/TimeZoneProvider.js.map +1 -1
  520. package/dist/controls/TextField.d.ts +9 -0
  521. package/dist/controls/TextField.d.ts.map +1 -0
  522. package/dist/controls/TextField.js +41 -0
  523. package/dist/controls/TextField.js.map +1 -0
  524. package/dist/controls/index.d.ts +2 -0
  525. package/dist/controls/index.d.ts.map +1 -0
  526. package/dist/controls/index.js +15 -0
  527. package/dist/controls/index.js.map +1 -0
  528. package/dist/index.d.ts +13 -1
  529. package/dist/index.d.ts.map +1 -1
  530. package/dist/index.js +13 -1
  531. package/dist/index.js.map +1 -1
  532. package/dist/model/graph.d.ts +8 -8
  533. package/dist/model/graph.d.ts.map +1 -1
  534. package/dist/model/theme.d.ts +1 -1
  535. package/dist/model/theme.d.ts.map +1 -1
  536. package/dist/model/theme.js.map +1 -1
  537. package/dist/model/timeOption.d.ts +2 -1
  538. package/dist/model/timeOption.d.ts.map +1 -1
  539. package/dist/model/timeOption.js +13 -2
  540. package/dist/model/timeOption.js.map +1 -1
  541. package/dist/test/render.d.ts +3 -3
  542. package/dist/test/render.d.ts.map +1 -1
  543. package/dist/test/render.js.map +1 -1
  544. package/dist/test/setup-tests.js.map +1 -1
  545. package/dist/theme/component-overrides/alert.js +4 -4
  546. package/dist/theme/component-overrides/alert.js.map +1 -1
  547. package/dist/theme/component-overrides/paper.js +1 -1
  548. package/dist/theme/component-overrides/paper.js.map +1 -1
  549. package/dist/theme/index.d.ts +2 -0
  550. package/dist/theme/index.d.ts.map +1 -1
  551. package/dist/theme/index.js +1 -0
  552. package/dist/theme/index.js.map +1 -1
  553. package/dist/theme/palette/background.d.ts.map +1 -1
  554. package/dist/theme/palette/background.js +2 -0
  555. package/dist/theme/palette/background.js.map +1 -1
  556. package/dist/theme/palette/colors/types.d.ts +1 -1
  557. package/dist/theme/palette/colors/types.d.ts.map +1 -1
  558. package/dist/theme/palette/colors/types.js.map +1 -1
  559. package/dist/theme/theme.d.ts +2 -2
  560. package/dist/theme/theme.d.ts.map +1 -1
  561. package/dist/theme/theme.js +6 -6
  562. package/dist/theme/theme.js.map +1 -1
  563. package/dist/theme/types/ThemeExtension.d.js.map +1 -1
  564. package/dist/utils/axis.d.ts +1 -7
  565. package/dist/utils/axis.d.ts.map +1 -1
  566. package/dist/utils/axis.js.map +1 -1
  567. package/dist/utils/chart-actions.d.ts.map +1 -1
  568. package/dist/utils/chart-actions.js +2 -3
  569. package/dist/utils/chart-actions.js.map +1 -1
  570. package/dist/utils/combine-sx.js.map +1 -1
  571. package/dist/utils/component-ids.d.ts.map +1 -1
  572. package/dist/utils/component-ids.js.map +1 -1
  573. package/dist/utils/format.d.ts +10 -4
  574. package/dist/utils/format.d.ts.map +1 -1
  575. package/dist/utils/format.js +16 -1
  576. package/dist/utils/format.js.map +1 -1
  577. package/dist/utils/mathjs.js +1 -1
  578. package/dist/utils/mathjs.js.map +1 -1
  579. package/dist/utils/theme-gen.d.ts +1 -1
  580. package/dist/utils/theme-gen.d.ts.map +1 -1
  581. package/dist/utils/theme-gen.js +5 -7
  582. package/dist/utils/theme-gen.js.map +1 -1
  583. package/package.json +13 -9
  584. package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts +0 -10
  585. package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts.map +0 -1
  586. package/dist/DateTimeRangePicker/AbsoluteTimePicker.js.map +0 -1
  587. package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts +0 -12
  588. package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +0 -1
  589. package/dist/DateTimeRangePicker/DateTimeRangePicker.js +0 -80
  590. package/dist/DateTimeRangePicker/DateTimeRangePicker.js.map +0 -1
  591. package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts +0 -14
  592. package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts.map +0 -1
  593. package/dist/DateTimeRangePicker/TimeRangeSelector.js +0 -67
  594. package/dist/DateTimeRangePicker/TimeRangeSelector.js.map +0 -1
  595. package/dist/DateTimeRangePicker/index.d.ts.map +0 -1
  596. package/dist/DateTimeRangePicker/index.js.map +0 -1
  597. package/dist/DateTimeRangePicker/utils.d.ts +0 -7
  598. package/dist/DateTimeRangePicker/utils.d.ts.map +0 -1
  599. package/dist/DateTimeRangePicker/utils.js.map +0 -1
  600. package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts +0 -4
  601. package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts.map +0 -1
  602. package/dist/ThresholdsEditor/ThresholdColorPicker.js.map +0 -1
  603. package/dist/cjs/DateTimeRangePicker/DateTimeRangePicker.js +0 -88
  604. package/dist/cjs/DateTimeRangePicker/TimeRangeSelector.js +0 -80
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/context/SnackbarProvider.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { useCallback } from 'react';\nimport {\n SnackbarProvider as NotistackProvider,\n ProviderContext as NotistackContext,\n useSnackbar as useNotistack,\n SnackbarMessage,\n OptionsObject,\n SnackbarKey,\n} from 'notistack';\n\nexport interface SnackbarContext extends NotistackContext {\n errorSnackbar: EnqueueFunction;\n infoSnackbar: EnqueueFunction;\n warningSnackbar: EnqueueFunction;\n successSnackbar: EnqueueFunction;\n\n /**\n * Useful for catch blocks where the error will be of type `unknown`, tries\n * to show the `message` property if passed an instance of `Error`.\n */\n exceptionSnackbar: (error: unknown, options?: SnackbarOptions) => SnackbarKey;\n}\n\ntype EnqueueFunction = (message: SnackbarMessage, options?: SnackbarOptions) => SnackbarKey;\n\ntype SnackbarOptions = Omit<OptionsObject, 'variant'>;\n\n/**\n * Application-wide provider for showing snackbars/toasts.\n */\nexport { NotistackProvider as SnackbarProvider };\n\n/**\n * Gets the SnackbarContext with methods for displaying snackbars/toasts.\n */\nexport function useSnackbar(): SnackbarContext {\n const { enqueueSnackbar, closeSnackbar } = useNotistack();\n\n // Create variant-specific callbacks\n const errorSnackbar = useEnqueueFunction(enqueueSnackbar, 'error');\n const infoSnackbar = useEnqueueFunction(enqueueSnackbar, 'info');\n const warningSnackbar = useEnqueueFunction(enqueueSnackbar, 'warning');\n const successSnackbar = useEnqueueFunction(enqueueSnackbar, 'success');\n\n const exceptionSnackbar: SnackbarContext['exceptionSnackbar'] = useCallback(\n (error, options) => {\n // Try to use message prop, but fallback to a default message that\n // will just stringify the error provided\n const message = error instanceof Error ? error.message : `An unexpected error occurred: ${error}`;\n\n return errorSnackbar(message, options);\n },\n [errorSnackbar]\n );\n\n return {\n enqueueSnackbar,\n closeSnackbar,\n errorSnackbar,\n infoSnackbar,\n warningSnackbar,\n successSnackbar,\n exceptionSnackbar,\n };\n}\n\n// Helper to create a variant-specific enqueue function\nfunction useEnqueueFunction(\n enqueueSnackbar: NotistackContext['enqueueSnackbar'],\n variant: OptionsObject['variant']\n): EnqueueFunction {\n return useCallback(\n (message, options) => {\n const allOptions: OptionsObject = {\n ...options,\n variant,\n };\n return enqueueSnackbar(message, allOptions);\n },\n [enqueueSnackbar, variant]\n );\n}\n"],"names":["useCallback","SnackbarProvider","NotistackProvider","useSnackbar","useNotistack","enqueueSnackbar","closeSnackbar","errorSnackbar","useEnqueueFunction","infoSnackbar","warningSnackbar","successSnackbar","exceptionSnackbar","error","options","message","Error","variant","allOptions"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,WAAW,QAAQ,QAAQ;AACpC,SACEC,oBAAoBC,iBAAiB,EAErCC,eAAeC,YAAY,QAItB,YAAY;AAmBnB;;CAEC,GACD,SAASF,qBAAqBD,gBAAgB,GAAG;AAEjD;;CAEC,GACD,OAAO,SAASE;IACd,MAAM,EAAEE,gBAAe,EAAEC,cAAa,EAAE,GAAGF;IAE3C,oCAAoC;IACpC,MAAMG,gBAAgBC,mBAAmBH,iBAAiB;IAC1D,MAAMI,eAAeD,mBAAmBH,iBAAiB;IACzD,MAAMK,kBAAkBF,mBAAmBH,iBAAiB;IAC5D,MAAMM,kBAAkBH,mBAAmBH,iBAAiB;IAE5D,MAAMO,oBAA0DZ,YAC9D,CAACa,OAAOC;QACN,kEAAkE;QAClE,yCAAyC;QACzC,MAAMC,UAAUF,iBAAiBG,QAAQH,MAAME,UAAU,CAAC,8BAA8B,EAAEF,MAAM,CAAC;QAEjG,OAAON,cAAcQ,SAASD;IAChC,GACA;QAACP;KAAc;IAGjB,OAAO;QACLF;QACAC;QACAC;QACAE;QACAC;QACAC;QACAC;IACF;AACF;AAEA,uDAAuD;AACvD,SAASJ,mBACPH,eAAoD,EACpDY,OAAiC;IAEjC,OAAOjB,YACL,CAACe,SAASD;QACR,MAAMI,aAA4B;YAChC,GAAGJ,OAAO;YACVG;QACF;QACA,OAAOZ,gBAAgBU,SAASG;IAClC,GACA;QAACb;QAAiBY;KAAQ;AAE9B"}
1
+ {"version":3,"sources":["../../src/context/SnackbarProvider.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { useCallback } from 'react';\nimport {\n SnackbarProvider as NotistackProvider,\n ProviderContext as NotistackContext,\n useSnackbar as useNotistack,\n SnackbarMessage,\n OptionsObject,\n SnackbarKey,\n} from 'notistack';\n\nexport interface SnackbarContext extends NotistackContext {\n errorSnackbar: EnqueueFunction;\n infoSnackbar: EnqueueFunction;\n warningSnackbar: EnqueueFunction;\n successSnackbar: EnqueueFunction;\n\n /**\n * Useful for catch blocks where the error will be of type `unknown`, tries\n * to show the `message` property if passed an instance of `Error`.\n */\n exceptionSnackbar: (error: unknown, options?: SnackbarOptions) => SnackbarKey;\n}\n\ntype EnqueueFunction = (message: SnackbarMessage, options?: SnackbarOptions) => SnackbarKey;\n\ntype SnackbarOptions = Omit<OptionsObject, 'variant'>;\n\n/**\n * Application-wide provider for showing snackbars/toasts.\n */\nexport { NotistackProvider as SnackbarProvider };\n\n/**\n * Gets the SnackbarContext with methods for displaying snackbars/toasts.\n */\nexport function useSnackbar(): SnackbarContext {\n const { enqueueSnackbar, closeSnackbar } = useNotistack();\n\n // Create variant-specific callbacks\n const errorSnackbar = useEnqueueFunction(enqueueSnackbar, 'error');\n const infoSnackbar = useEnqueueFunction(enqueueSnackbar, 'info');\n const warningSnackbar = useEnqueueFunction(enqueueSnackbar, 'warning');\n const successSnackbar = useEnqueueFunction(enqueueSnackbar, 'success');\n\n const exceptionSnackbar: SnackbarContext['exceptionSnackbar'] = useCallback(\n (error, options) => {\n // Try to use message prop, but fallback to a default message that\n // will just stringify the error provided\n const message = error instanceof Error ? error.message : `An unexpected error occurred: ${error}`;\n\n return errorSnackbar(message, options);\n },\n [errorSnackbar]\n );\n\n return {\n enqueueSnackbar,\n closeSnackbar,\n errorSnackbar,\n infoSnackbar,\n warningSnackbar,\n successSnackbar,\n exceptionSnackbar,\n };\n}\n\n// Helper to create a variant-specific enqueue function\nfunction useEnqueueFunction(\n enqueueSnackbar: NotistackContext['enqueueSnackbar'],\n variant: OptionsObject['variant']\n): EnqueueFunction {\n return useCallback(\n (message, options) => {\n const allOptions: OptionsObject = {\n ...options,\n variant,\n };\n return enqueueSnackbar(message, allOptions);\n },\n [enqueueSnackbar, variant]\n );\n}\n"],"names":["useCallback","SnackbarProvider","NotistackProvider","useSnackbar","useNotistack","enqueueSnackbar","closeSnackbar","errorSnackbar","useEnqueueFunction","infoSnackbar","warningSnackbar","successSnackbar","exceptionSnackbar","error","options","message","Error","variant","allOptions"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,WAAW,QAAQ,QAAQ;AACpC,SACEC,oBAAoBC,iBAAiB,EAErCC,eAAeC,YAAY,QAItB,YAAY;AAmBnB;;CAEC,GACD,SAASF,qBAAqBD,gBAAgB,GAAG;AAEjD;;CAEC,GACD,OAAO,SAASE;IACd,MAAM,EAAEE,eAAe,EAAEC,aAAa,EAAE,GAAGF;IAE3C,oCAAoC;IACpC,MAAMG,gBAAgBC,mBAAmBH,iBAAiB;IAC1D,MAAMI,eAAeD,mBAAmBH,iBAAiB;IACzD,MAAMK,kBAAkBF,mBAAmBH,iBAAiB;IAC5D,MAAMM,kBAAkBH,mBAAmBH,iBAAiB;IAE5D,MAAMO,oBAA0DZ,YAC9D,CAACa,OAAOC;QACN,kEAAkE;QAClE,yCAAyC;QACzC,MAAMC,UAAUF,iBAAiBG,QAAQH,MAAME,OAAO,GAAG,CAAC,8BAA8B,EAAEF,MAAM,CAAC;QAEjG,OAAON,cAAcQ,SAASD;IAChC,GACA;QAACP;KAAc;IAGjB,OAAO;QACLF;QACAC;QACAC;QACAE;QACAC;QACAC;QACAC;IACF;AACF;AAEA,uDAAuD;AACvD,SAASJ,mBACPH,eAAoD,EACpDY,OAAiC;IAEjC,OAAOjB,YACL,CAACe,SAASD;QACR,MAAMI,aAA4B;YAChC,GAAGJ,OAAO;YACVG;QACF;QACA,OAAOZ,gBAAgBU,SAASG;IAClC,GACA;QAACb;QAAiBY;KAAQ;AAE9B"}
@@ -1,13 +1,13 @@
1
- import React from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
  export declare const TimeZoneContext: React.Context<string | undefined>;
3
3
  export interface TimeZoneProviderProps {
4
4
  timeZone?: string;
5
5
  children?: React.ReactNode;
6
6
  }
7
- export declare function TimeZoneProvider(props: TimeZoneProviderProps): JSX.Element;
7
+ export declare function TimeZoneProvider(props: TimeZoneProviderProps): ReactElement;
8
8
  export declare function useTimeZone(): {
9
9
  timeZone: string;
10
- formatWithUserTimeZone(date: Date, formatString: string): string;
11
- dateFormatOptionsWithUserTimeZone(dateFormatOptions: Intl.DateTimeFormatOptions): Intl.DateTimeFormatOptions;
10
+ formatWithUserTimeZone: (date: Date, formatString: string) => string;
11
+ dateFormatOptionsWithUserTimeZone: (dateFormatOptions: Intl.DateTimeFormatOptions) => Intl.DateTimeFormatOptions;
12
12
  };
13
13
  //# sourceMappingURL=TimeZoneProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimeZoneProvider.d.ts","sourceRoot":"","sources":["../../src/context/TimeZoneProvider.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAGzD,eAAO,MAAM,eAAe,mCAA+C,CAAC;AAE5E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,eAG5D;AAED,wBAAgB,WAAW;;iCAKM,IAAI,gBAAgB,MAAM;yDAGF,KAAK,qBAAqB;EAIlF"}
1
+ {"version":3,"file":"TimeZoneProvider.d.ts","sourceRoot":"","sources":["../../src/context/TimeZoneProvider.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,EAAiB,YAAY,EAAc,MAAM,OAAO,CAAC;AAGvE,eAAO,MAAM,eAAe,mCAA+C,CAAC;AAE5E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,YAAY,CAG3E;AAED,wBAAgB,WAAW,IAAI;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,KAAK,MAAM,CAAC;IACrE,iCAAiC,EAAE,CAAC,iBAAiB,EAAE,IAAI,CAAC,qBAAqB,KAAK,IAAI,CAAC,qBAAqB,CAAC;CAClH,CAYA"}
@@ -15,7 +15,7 @@ import React, { createContext, useContext } from 'react';
15
15
  import { formatWithTimeZone, dateFormatOptionsWithTimeZone } from '../utils';
16
16
  export const TimeZoneContext = /*#__PURE__*/ createContext(undefined);
17
17
  export function TimeZoneProvider(props) {
18
- const { children , timeZone } = props;
18
+ const { children, timeZone } = props;
19
19
  return /*#__PURE__*/ _jsx(TimeZoneContext.Provider, {
20
20
  value: timeZone,
21
21
  children: children
@@ -25,7 +25,7 @@ export function useTimeZone() {
25
25
  const timeZone = useContext(TimeZoneContext);
26
26
  return {
27
27
  // fallback to "local" timezone if TimeZoneProvider is not present in the React tree
28
- timeZone: timeZone !== null && timeZone !== void 0 ? timeZone : 'local',
28
+ timeZone: timeZone ?? 'local',
29
29
  formatWithUserTimeZone (date, formatString) {
30
30
  return formatWithTimeZone(date, formatString, timeZone);
31
31
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/context/TimeZoneProvider.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React, { createContext, useContext } from 'react';\nimport { formatWithTimeZone, dateFormatOptionsWithTimeZone } from '../utils';\n\nexport const TimeZoneContext = createContext<string | undefined>(undefined);\n\nexport interface TimeZoneProviderProps {\n timeZone?: string;\n children?: React.ReactNode;\n}\n\nexport function TimeZoneProvider(props: TimeZoneProviderProps) {\n const { children, timeZone } = props;\n return <TimeZoneContext.Provider value={timeZone}>{children}</TimeZoneContext.Provider>;\n}\n\nexport function useTimeZone() {\n const timeZone = useContext(TimeZoneContext);\n return {\n // fallback to \"local\" timezone if TimeZoneProvider is not present in the React tree\n timeZone: timeZone ?? 'local',\n formatWithUserTimeZone(date: Date, formatString: string) {\n return formatWithTimeZone(date, formatString, timeZone);\n },\n dateFormatOptionsWithUserTimeZone(dateFormatOptions: Intl.DateTimeFormatOptions) {\n return dateFormatOptionsWithTimeZone(dateFormatOptions, timeZone);\n },\n };\n}\n"],"names":["React","createContext","useContext","formatWithTimeZone","dateFormatOptionsWithTimeZone","TimeZoneContext","undefined","TimeZoneProvider","props","children","timeZone","Provider","value","useTimeZone","formatWithUserTimeZone","date","formatString","dateFormatOptionsWithUserTimeZone","dateFormatOptions"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,OAAOA,SAASC,aAAa,EAAEC,UAAU,QAAQ,QAAQ;AACzD,SAASC,kBAAkB,EAAEC,6BAA6B,QAAQ,WAAW;AAE7E,OAAO,MAAMC,gCAAkBJ,cAAkCK,WAAW;AAO5E,OAAO,SAASC,iBAAiBC,KAA4B;IAC3D,MAAM,EAAEC,SAAQ,EAAEC,SAAQ,EAAE,GAAGF;IAC/B,qBAAO,KAACH,gBAAgBM;QAASC,OAAOF;kBAAWD;;AACrD;AAEA,OAAO,SAASI;IACd,MAAMH,WAAWR,WAAWG;IAC5B,OAAO;QACL,oFAAoF;QACpFK,UAAUA,qBAAAA,sBAAAA,WAAY;QACtBI,wBAAuBC,IAAU,EAAEC,YAAoB;YACrD,OAAOb,mBAAmBY,MAAMC,cAAcN;QAChD;QACAO,mCAAkCC,iBAA6C;YAC7E,OAAOd,8BAA8Bc,mBAAmBR;QAC1D;IACF;AACF"}
1
+ {"version":3,"sources":["../../src/context/TimeZoneProvider.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React, { createContext, ReactElement, useContext } from 'react';\nimport { formatWithTimeZone, dateFormatOptionsWithTimeZone } from '../utils';\n\nexport const TimeZoneContext = createContext<string | undefined>(undefined);\n\nexport interface TimeZoneProviderProps {\n timeZone?: string;\n children?: React.ReactNode;\n}\n\nexport function TimeZoneProvider(props: TimeZoneProviderProps): ReactElement {\n const { children, timeZone } = props;\n return <TimeZoneContext.Provider value={timeZone}>{children}</TimeZoneContext.Provider>;\n}\n\nexport function useTimeZone(): {\n timeZone: string;\n formatWithUserTimeZone: (date: Date, formatString: string) => string;\n dateFormatOptionsWithUserTimeZone: (dateFormatOptions: Intl.DateTimeFormatOptions) => Intl.DateTimeFormatOptions;\n} {\n const timeZone = useContext(TimeZoneContext);\n return {\n // fallback to \"local\" timezone if TimeZoneProvider is not present in the React tree\n timeZone: timeZone ?? 'local',\n formatWithUserTimeZone(date: Date, formatString: string): string {\n return formatWithTimeZone(date, formatString, timeZone);\n },\n dateFormatOptionsWithUserTimeZone(dateFormatOptions: Intl.DateTimeFormatOptions): Intl.DateTimeFormatOptions {\n return dateFormatOptionsWithTimeZone(dateFormatOptions, timeZone);\n },\n };\n}\n"],"names":["React","createContext","useContext","formatWithTimeZone","dateFormatOptionsWithTimeZone","TimeZoneContext","undefined","TimeZoneProvider","props","children","timeZone","Provider","value","useTimeZone","formatWithUserTimeZone","date","formatString","dateFormatOptionsWithUserTimeZone","dateFormatOptions"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,OAAOA,SAASC,aAAa,EAAgBC,UAAU,QAAQ,QAAQ;AACvE,SAASC,kBAAkB,EAAEC,6BAA6B,QAAQ,WAAW;AAE7E,OAAO,MAAMC,gCAAkBJ,cAAkCK,WAAW;AAO5E,OAAO,SAASC,iBAAiBC,KAA4B;IAC3D,MAAM,EAAEC,QAAQ,EAAEC,QAAQ,EAAE,GAAGF;IAC/B,qBAAO,KAACH,gBAAgBM,QAAQ;QAACC,OAAOF;kBAAWD;;AACrD;AAEA,OAAO,SAASI;IAKd,MAAMH,WAAWR,WAAWG;IAC5B,OAAO;QACL,oFAAoF;QACpFK,UAAUA,YAAY;QACtBI,wBAAuBC,IAAU,EAAEC,YAAoB;YACrD,OAAOb,mBAAmBY,MAAMC,cAAcN;QAChD;QACAO,mCAAkCC,iBAA6C;YAC7E,OAAOd,8BAA8Bc,mBAAmBR;QAC1D;IACF;AACF"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { TextFieldProps as MuiTextFieldProps } from '@mui/material';
3
+ type TextFieldProps = Omit<MuiTextFieldProps, 'onChange'> & {
4
+ debounceMs?: number;
5
+ onChange?: (value: string) => void;
6
+ };
7
+ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
+ export {};
9
+ //# sourceMappingURL=TextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../src/controls/TextField.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAA6B,MAAM,eAAe,CAAC;AAI/F,KAAK,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,CAAC;AAExH,eAAO,MAAM,SAAS,wHAqBpB,CAAC"}
@@ -0,0 +1,41 @@
1
+ // Copyright 2024 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import { TextField as MuiTextField } from '@mui/material';
15
+ import { forwardRef, useCallback, useMemo, useState } from 'react';
16
+ import debounce from 'lodash/debounce';
17
+ export const TextField = /*#__PURE__*/ forwardRef(function({ debounceMs = 250, value, onChange, ...props }, ref) {
18
+ const [currentValue, setCurrentValue] = useState(value);
19
+ function handleChange(event) {
20
+ setCurrentValue(event.target.value);
21
+ debounceFn(event.target.value);
22
+ }
23
+ const handleDebounceFn = useCallback((inputValue)=>{
24
+ onChange?.(inputValue);
25
+ }, [
26
+ onChange
27
+ ]);
28
+ const debounceFn = useMemo(()=>debounce(handleDebounceFn, debounceMs), [
29
+ debounceMs,
30
+ handleDebounceFn
31
+ ]);
32
+ return /*#__PURE__*/ _jsx(MuiTextField, {
33
+ ref: ref,
34
+ value: currentValue,
35
+ onChange: handleChange,
36
+ ...props
37
+ });
38
+ });
39
+ TextField.displayName = 'TextField';
40
+
41
+ //# sourceMappingURL=TextField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/controls/TextField.tsx"],"sourcesContent":["// Copyright 2024 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { TextFieldProps as MuiTextFieldProps, TextField as MuiTextField } from '@mui/material';\nimport { ChangeEvent, ForwardedRef, forwardRef, useCallback, useMemo, useState } from 'react';\nimport debounce from 'lodash/debounce';\n\ntype TextFieldProps = Omit<MuiTextFieldProps, 'onChange'> & { debounceMs?: number; onChange?: (value: string) => void };\n\nexport const TextField = forwardRef(function (\n { debounceMs = 250, value, onChange, ...props }: TextFieldProps,\n ref: ForwardedRef<HTMLDivElement>\n) {\n const [currentValue, setCurrentValue] = useState(value);\n\n function handleChange(event: ChangeEvent<HTMLInputElement>): void {\n setCurrentValue(event.target.value);\n debounceFn(event.target.value);\n }\n\n const handleDebounceFn = useCallback(\n (inputValue: string) => {\n onChange?.(inputValue);\n },\n [onChange]\n );\n\n const debounceFn = useMemo(() => debounce(handleDebounceFn, debounceMs), [debounceMs, handleDebounceFn]);\n\n return <MuiTextField ref={ref} value={currentValue} onChange={handleChange} {...props} />;\n});\nTextField.displayName = 'TextField';\n"],"names":["TextField","MuiTextField","forwardRef","useCallback","useMemo","useState","debounce","debounceMs","value","onChange","props","ref","currentValue","setCurrentValue","handleChange","event","target","debounceFn","handleDebounceFn","inputValue","displayName"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,SAA8CA,aAAaC,YAAY,QAAQ,gBAAgB;AAC/F,SAAoCC,UAAU,EAAEC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,QAAQ;AAC9F,OAAOC,cAAc,kBAAkB;AAIvC,OAAO,MAAMN,0BAAYE,WAAW,SAClC,EAAEK,aAAa,GAAG,EAAEC,KAAK,EAAEC,QAAQ,EAAE,GAAGC,OAAuB,EAC/DC,GAAiC;IAEjC,MAAM,CAACC,cAAcC,gBAAgB,GAAGR,SAASG;IAEjD,SAASM,aAAaC,KAAoC;QACxDF,gBAAgBE,MAAMC,MAAM,CAACR,KAAK;QAClCS,WAAWF,MAAMC,MAAM,CAACR,KAAK;IAC/B;IAEA,MAAMU,mBAAmBf,YACvB,CAACgB;QACCV,WAAWU;IACb,GACA;QAACV;KAAS;IAGZ,MAAMQ,aAAab,QAAQ,IAAME,SAASY,kBAAkBX,aAAa;QAACA;QAAYW;KAAiB;IAEvG,qBAAO,KAACjB;QAAaU,KAAKA;QAAKH,OAAOI;QAAcH,UAAUK;QAAe,GAAGJ,KAAK;;AACvF,GAAG;AACHV,UAAUoB,WAAW,GAAG"}
@@ -0,0 +1,2 @@
1
+ export * from './TextField';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controls/index.ts"],"names":[],"mappings":"AAaA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,15 @@
1
+ // Copyright 2024 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ export * from './TextField';
14
+
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/controls/index.ts"],"sourcesContent":["// Copyright 2024 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './TextField';\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,cAAc"}
package/dist/index.d.ts CHANGED
@@ -1,27 +1,35 @@
1
+ export * from './AlignSelector';
1
2
  export * from './BarChart';
2
3
  export * from './ColorPicker';
3
4
  export * from './ContentWithLegend';
4
- export * from './DateTimeRangePicker';
5
+ export * from './controls';
5
6
  export * from './Dialog';
7
+ export * from './DensitySelector';
8
+ export * from './DragAndDrop';
6
9
  export * from './Drawer';
7
10
  export * from './EChart';
8
11
  export * from './ErrorAlert';
9
12
  export * from './ErrorBoundary';
10
13
  export * from './FontSizeSelector';
14
+ export * from './FormEditor';
11
15
  export * from './GaugeChart';
12
16
  export * from './InfoTooltip';
13
17
  export * from './JSONEditor';
14
18
  export * from './Legend';
15
19
  export * from './LineChart';
20
+ export * from './LinksEditor';
16
21
  export * from './ModeSelector';
17
22
  export * from './OptionsEditorLayout';
23
+ export * from './Overlay';
18
24
  export * from './SettingsAutocomplete';
19
25
  export * from './SortSelector';
20
26
  export * from './StatChart';
21
27
  export * from './Table';
22
28
  export * from './ThresholdsEditor';
23
29
  export * from './TimeChart';
30
+ export * from './TimeRangeSelector';
24
31
  export * from './TimeSeriesTooltip';
32
+ export * from './ToolbarIconButton';
25
33
  export * from './FormatControls';
26
34
  export * from './YAxisLabel';
27
35
  export * from './context';
@@ -29,5 +37,9 @@ export * from './utils';
29
37
  export * from './model';
30
38
  export * from './test-utils';
31
39
  export * from './theme';
40
+ export * from './TransformsEditor';
32
41
  export * from './RefreshIntervalPicker';
42
+ export * from './PieChart';
43
+ export * from './StatusHistoryChart';
44
+ export * from './ValueMappingEditor';
33
45
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -10,30 +10,38 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
+ export * from './AlignSelector';
13
14
  export * from './BarChart';
14
15
  export * from './ColorPicker';
15
16
  export * from './ContentWithLegend';
16
- export * from './DateTimeRangePicker';
17
+ export * from './controls';
17
18
  export * from './Dialog';
19
+ export * from './DensitySelector';
20
+ export * from './DragAndDrop';
18
21
  export * from './Drawer';
19
22
  export * from './EChart';
20
23
  export * from './ErrorAlert';
21
24
  export * from './ErrorBoundary';
22
25
  export * from './FontSizeSelector';
26
+ export * from './FormEditor';
23
27
  export * from './GaugeChart';
24
28
  export * from './InfoTooltip';
25
29
  export * from './JSONEditor';
26
30
  export * from './Legend';
27
31
  export * from './LineChart';
32
+ export * from './LinksEditor';
28
33
  export * from './ModeSelector';
29
34
  export * from './OptionsEditorLayout';
35
+ export * from './Overlay';
30
36
  export * from './SettingsAutocomplete';
31
37
  export * from './SortSelector';
32
38
  export * from './StatChart';
33
39
  export * from './Table';
34
40
  export * from './ThresholdsEditor';
35
41
  export * from './TimeChart';
42
+ export * from './TimeRangeSelector';
36
43
  export * from './TimeSeriesTooltip';
44
+ export * from './ToolbarIconButton';
37
45
  export * from './FormatControls';
38
46
  export * from './YAxisLabel';
39
47
  export * from './context';
@@ -41,6 +49,10 @@ export * from './utils';
41
49
  export * from './model';
42
50
  export * from './test-utils';
43
51
  export * from './theme';
52
+ export * from './TransformsEditor';
44
53
  export * from './RefreshIntervalPicker';
54
+ export * from './PieChart';
55
+ export * from './StatusHistoryChart';
56
+ export * from './ValueMappingEditor';
45
57
 
46
58
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './BarChart';\nexport * from './ColorPicker';\nexport * from './ContentWithLegend';\nexport * from './DateTimeRangePicker';\nexport * from './Dialog';\nexport * from './Drawer';\nexport * from './EChart';\nexport * from './ErrorAlert';\nexport * from './ErrorBoundary';\nexport * from './FontSizeSelector';\nexport * from './GaugeChart';\nexport * from './InfoTooltip';\nexport * from './JSONEditor';\nexport * from './Legend';\nexport * from './LineChart';\nexport * from './ModeSelector';\nexport * from './OptionsEditorLayout';\nexport * from './SettingsAutocomplete';\nexport * from './SortSelector';\nexport * from './StatChart';\nexport * from './Table';\nexport * from './ThresholdsEditor';\nexport * from './TimeChart';\nexport * from './TimeSeriesTooltip';\nexport * from './FormatControls';\nexport * from './YAxisLabel';\nexport * from './context';\nexport * from './utils';\nexport * from './model';\nexport * from './test-utils';\nexport * from './theme';\nexport * from './RefreshIntervalPicker';\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,aAAa;AAC3B,cAAc,gBAAgB;AAC9B,cAAc,sBAAsB;AACpC,cAAc,wBAAwB;AACtC,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,kBAAkB;AAChC,cAAc,qBAAqB;AACnC,cAAc,eAAe;AAC7B,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,WAAW;AACzB,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB;AACtC,cAAc,yBAAyB;AACvC,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,UAAU;AACxB,cAAc,qBAAqB;AACnC,cAAc,cAAc;AAC5B,cAAc,sBAAsB;AACpC,cAAc,mBAAmB;AACjC,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,0BAA0B"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './AlignSelector';\nexport * from './BarChart';\nexport * from './ColorPicker';\nexport * from './ContentWithLegend';\nexport * from './controls';\nexport * from './Dialog';\nexport * from './DensitySelector';\nexport * from './DragAndDrop';\nexport * from './Drawer';\nexport * from './EChart';\nexport * from './ErrorAlert';\nexport * from './ErrorBoundary';\nexport * from './FontSizeSelector';\nexport * from './FormEditor';\nexport * from './GaugeChart';\nexport * from './InfoTooltip';\nexport * from './JSONEditor';\nexport * from './Legend';\nexport * from './LineChart';\nexport * from './LinksEditor';\nexport * from './ModeSelector';\nexport * from './OptionsEditorLayout';\nexport * from './Overlay';\nexport * from './SettingsAutocomplete';\nexport * from './SortSelector';\nexport * from './StatChart';\nexport * from './Table';\nexport * from './ThresholdsEditor';\nexport * from './TimeChart';\nexport * from './TimeRangeSelector';\nexport * from './TimeSeriesTooltip';\nexport * from './ToolbarIconButton';\nexport * from './FormatControls';\nexport * from './YAxisLabel';\nexport * from './context';\nexport * from './utils';\nexport * from './model';\nexport * from './test-utils';\nexport * from './theme';\nexport * from './TransformsEditor';\nexport * from './RefreshIntervalPicker';\nexport * from './PieChart';\nexport * from './StatusHistoryChart';\nexport * from './ValueMappingEditor';\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,kBAAkB;AAChC,cAAc,aAAa;AAC3B,cAAc,gBAAgB;AAC9B,cAAc,sBAAsB;AACpC,cAAc,aAAa;AAC3B,cAAc,WAAW;AACzB,cAAc,oBAAoB;AAClC,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,kBAAkB;AAChC,cAAc,qBAAqB;AACnC,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,WAAW;AACzB,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB;AACtC,cAAc,YAAY;AAC1B,cAAc,yBAAyB;AACvC,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,UAAU;AACxB,cAAc,qBAAqB;AACnC,cAAc,cAAc;AAC5B,cAAc,sBAAsB;AACpC,cAAc,sBAAsB;AACpC,cAAc,sBAAsB;AACpC,cAAc,mBAAmB;AACjC,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,qBAAqB;AACnC,cAAc,0BAA0B;AACxC,cAAc,aAAa;AAC3B,cAAc,uBAAuB;AACrC,cAAc,uBAAuB"}
@@ -2,31 +2,31 @@ import { TimeSeriesValueTuple } from '@perses-dev/core';
2
2
  import { LineSeriesOption, BarSeriesOption } from 'echarts/charts';
3
3
  import { LegendItem } from '../Legend';
4
4
  export declare const OPTIMIZED_MODE_SERIES_LIMIT = 1000;
5
- export declare type UnixTimeMs = number;
5
+ export type UnixTimeMs = number;
6
6
  export interface GraphSeries {
7
7
  name: string;
8
8
  values: TimeSeriesValueTuple[];
9
9
  id?: string;
10
10
  }
11
- export declare type EChartsValues = number | null | '-';
11
+ export type EChartsValues = number | null | '-';
12
12
  export interface LegacyTimeSeries extends Omit<LineSeriesOption, 'data'> {
13
13
  data: EChartsValues[];
14
14
  }
15
- export declare type TimeChartSeriesMapping = TimeSeriesOption[];
16
- export declare type TimeChartLegendItems = LegendItem[];
17
- export declare type TimeSeriesOption = LineSeriesOption | BarSeriesOption;
18
- export declare type EChartsDataFormat = {
15
+ export type TimeChartSeriesMapping = TimeSeriesOption[];
16
+ export type TimeChartLegendItems = LegendItem[];
17
+ export type TimeSeriesOption = LineSeriesOption | BarSeriesOption;
18
+ export type EChartsDataFormat = {
19
19
  timeSeries: LegacyTimeSeries[];
20
20
  xAxis: number[];
21
21
  legendItems?: LegendItem[];
22
22
  xAxisMax?: number | string;
23
23
  rangeMs?: number;
24
24
  };
25
- export declare type ChartInstanceFocusOpts = {
25
+ export type ChartInstanceFocusOpts = {
26
26
  id?: string;
27
27
  name?: string;
28
28
  };
29
- export declare type ChartInstance = {
29
+ export type ChartInstance = {
30
30
  /**
31
31
  * Highlight the series associated with the specified options.
32
32
  */
@@ -1 +1 @@
1
- {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/model/graph.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvC,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD,oBAAY,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,oBAAY,aAAa,GAAG,MAAM,GAAG,IAAI,GAAG,GAAG,CAAC;AAEhD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC;IACtE,IAAI,EAAE,aAAa,EAAE,CAAC;CACvB;AAID,oBAAY,sBAAsB,GAAG,gBAAgB,EAAE,CAAC;AACxD,oBAAY,oBAAoB,GAAG,UAAU,EAAE,CAAC;AAEhD,oBAAY,gBAAgB,GAAG,gBAAgB,GAAG,eAAe,CAAC;AAIlE,oBAAY,iBAAiB,GAAG;IAC9B,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAKF,oBAAY,sBAAsB,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B;;OAEG;IACH,eAAe,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAExD;;OAEG;IACH,sBAAsB,EAAE,MAAM,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAE/D,eAAO,MAAM,wBAAwB,EAAE,gBAuBtC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/model/graph.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvC,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,IAAI,GAAG,GAAG,CAAC;AAEhD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC;IACtE,IAAI,EAAE,aAAa,EAAE,CAAC;CACvB;AAID,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,EAAE,CAAC;AACxD,MAAM,MAAM,oBAAoB,GAAG,UAAU,EAAE,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,eAAe,CAAC;AAIlE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAKF,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,eAAe,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAExD;;OAEG;IACH,sBAAsB,EAAE,MAAM,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAE/D,eAAO,MAAM,wBAAwB,EAAE,gBAuBtC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -30,5 +30,5 @@ export interface EChartsTheme extends EChartsOption {
30
30
  line?: LineSeriesOption;
31
31
  gauge?: GaugeSeriesOption;
32
32
  }
33
- export declare type NoDataOption = ComposeOption<TitleComponentOption | XAXisComponentOption | YAXisComponentOption>;
33
+ export type NoDataOption = ComposeOption<TitleComponentOption | XAXisComponentOption | YAXisComponentOption>;
34
34
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/model/theme.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF;;OAEG;IACH,SAAS,EAAE;QACT;;WAEG;QACH,OAAO,EAAE;YACP,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;IACF,UAAU,EAAE,qBAAqB,CAAC;IAClC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAGD,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,GAAG,CAAC,EAAE,eAAe,CAAC;IACtB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAED,oBAAY,YAAY,GAAG,aAAa,CAAC,oBAAoB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/model/theme.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF;;OAEG;IACH,SAAS,EAAE;QACT;;WAEG;QACH,OAAO,EAAE;YACP,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;IACF,UAAU,EAAE,qBAAqB,CAAC;IAClC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAGD,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,GAAG,CAAC,EAAE,eAAe,CAAC;IACtB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAED,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,oBAAoB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/model/theme.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { ThresholdColorPalette } from '@perses-dev/core';\nimport type {\n EChartsOption,\n BarSeriesOption,\n LineSeriesOption,\n GaugeSeriesOption,\n TitleComponentOption,\n ComposeOption,\n XAXisComponentOption,\n YAXisComponentOption,\n} from 'echarts';\n\nexport interface PersesChartsTheme {\n echartsTheme: EChartsTheme;\n noDataOption: NoDataOption;\n sparkline: {\n width: number;\n color: string;\n };\n /**\n * Theming for the container that wraps a chart.\n */\n container: {\n /**\n * Padding in pixels.\n */\n padding: {\n default: number;\n };\n };\n thresholds: ThresholdColorPalette;\n /**\n * The id of the container that will have the chart tooltip appended to it.\n * By default, chart tooltip uses the body of the top-level document object.\n */\n tooltipPortalContainerId?: string;\n}\n\n// https://github.com/apache/echarts/issues/12489#issuecomment-643185207\nexport interface EChartsTheme extends EChartsOption {\n bar?: BarSeriesOption;\n line?: LineSeriesOption;\n gauge?: GaugeSeriesOption;\n}\n\nexport type NoDataOption = ComposeOption<TitleComponentOption | XAXisComponentOption | YAXisComponentOption>;\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,WA6C6G"}
1
+ {"version":3,"sources":["../../src/model/theme.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { ThresholdColorPalette } from '@perses-dev/core';\nimport type {\n EChartsOption,\n BarSeriesOption,\n LineSeriesOption,\n GaugeSeriesOption,\n TitleComponentOption,\n ComposeOption,\n XAXisComponentOption,\n YAXisComponentOption,\n} from 'echarts';\n\nexport interface PersesChartsTheme {\n echartsTheme: EChartsTheme;\n noDataOption: NoDataOption;\n sparkline: {\n width: number;\n color: string;\n };\n /**\n * Theming for the container that wraps a chart.\n */\n container: {\n /**\n * Padding in pixels.\n */\n padding: {\n default: number;\n };\n };\n thresholds: ThresholdColorPalette;\n /**\n * The id of the container that will have the chart tooltip appended to it.\n * By default, chart tooltip uses the body of the top-level document object.\n */\n tooltipPortalContainerId?: string;\n}\n\n// https://github.com/apache/echarts/issues/12489#issuecomment-643185207\nexport interface EChartsTheme extends EChartsOption {\n bar?: BarSeriesOption;\n line?: LineSeriesOption;\n gauge?: GaugeSeriesOption;\n}\n\nexport type NoDataOption = ComposeOption<TitleComponentOption | XAXisComponentOption | YAXisComponentOption>;\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AA+CjC,WAA6G"}
@@ -1,6 +1,7 @@
1
- import { RelativeTimeRange } from '@perses-dev/core';
1
+ import { DurationString, RelativeTimeRange } from '@perses-dev/core';
2
2
  export interface TimeOption {
3
3
  value: RelativeTimeRange;
4
4
  display: string;
5
5
  }
6
+ export declare function buildRelativeTimeOption(duration: DurationString): TimeOption;
6
7
  //# sourceMappingURL=timeOption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeOption.d.ts","sourceRoot":"","sources":["../../src/model/timeOption.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,iBAAiB,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"timeOption.d.ts","sourceRoot":"","sources":["../../src/model/timeOption.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,EAAuB,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1F,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,iBAAiB,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,cAAc,GAAG,UAAU,CAK5E"}
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright 2024 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -10,6 +10,17 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- export { };
13
+ import { parseDurationString } from '@perses-dev/core';
14
+ import { formatDuration } from 'date-fns';
15
+ export function buildRelativeTimeOption(duration) {
16
+ return {
17
+ value: {
18
+ pastDuration: duration
19
+ },
20
+ display: `Last ${formatDuration(parseDurationString(duration), {
21
+ delimiter: ', '
22
+ })}`
23
+ };
24
+ }
14
25
 
15
26
  //# sourceMappingURL=timeOption.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/model/timeOption.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { RelativeTimeRange } from '@perses-dev/core';\n\nexport interface TimeOption {\n value: RelativeTimeRange;\n display: string;\n}\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,WAKC"}
1
+ {"version":3,"sources":["../../src/model/timeOption.ts"],"sourcesContent":["// Copyright 2024 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DurationString, parseDurationString, RelativeTimeRange } from '@perses-dev/core';\nimport { formatDuration } from 'date-fns';\n\nexport interface TimeOption {\n value: RelativeTimeRange;\n display: string;\n}\n\nexport function buildRelativeTimeOption(duration: DurationString): TimeOption {\n return {\n value: { pastDuration: duration },\n display: `Last ${formatDuration(parseDurationString(duration), { delimiter: ', ' })}`,\n };\n}\n"],"names":["parseDurationString","formatDuration","buildRelativeTimeOption","duration","value","pastDuration","display","delimiter"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAAyBA,mBAAmB,QAA2B,mBAAmB;AAC1F,SAASC,cAAc,QAAQ,WAAW;AAO1C,OAAO,SAASC,wBAAwBC,QAAwB;IAC9D,OAAO;QACLC,OAAO;YAAEC,cAAcF;QAAS;QAChCG,SAAS,CAAC,KAAK,EAAEL,eAAeD,oBAAoBG,WAAW;YAAEI,WAAW;QAAK,GAAG,CAAC;IACvF;AACF"}
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
- import { RenderOptions } from '@testing-library/react';
1
+ import { RenderOptions, RenderResult } from '@testing-library/react';
2
+ import { ReactElement } from 'react';
3
3
  /**
4
4
  * Test helper to render a React component with some common app-level providers wrapped around it.
5
5
  */
6
- export declare function renderWithContext(ui: React.ReactElement, options?: Omit<RenderOptions, 'queries'>): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
6
+ export declare function renderWithContext(ui: ReactElement, options?: Omit<RenderOptions, 'queries'>): RenderResult;
7
7
  //# sourceMappingURL=render.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/test/render.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAU,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAK/D;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,KAAK,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,gIAEjG"}
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/test/render.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAU,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAIrC;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,GAAG,YAAY,CAE1G"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/test/render.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { render, RenderOptions } from '@testing-library/react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\n\nconst queryClient = new QueryClient({ defaultOptions: { queries: { refetchOnWindowFocus: false } } });\n\n/**\n * Test helper to render a React component with some common app-level providers wrapped around it.\n */\nexport function renderWithContext(ui: React.ReactElement, options?: Omit<RenderOptions, 'queries'>) {\n return render(<QueryClientProvider client={queryClient}>{ui}</QueryClientProvider>, options);\n}\n"],"names":["render","QueryClient","QueryClientProvider","queryClient","defaultOptions","queries","refetchOnWindowFocus","renderWithContext","ui","options","client"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,SAASA,MAAM,QAAuB,yBAAyB;AAC/D,SAASC,WAAW,EAAEC,mBAAmB,QAAQ,wBAAwB;AAEzE,MAAMC,cAAc,IAAIF,YAAY;IAAEG,gBAAgB;QAAEC,SAAS;YAAEC,sBAAsB;QAAM;IAAE;AAAE;AAEnG;;CAEC,GACD,OAAO,SAASC,kBAAkBC,EAAsB,EAAEC,OAAwC;IAChG,OAAOT,qBAAO,KAACE;QAAoBQ,QAAQP;kBAAcK;QAA2BC;AACtF"}
1
+ {"version":3,"sources":["../../src/test/render.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { render, RenderOptions, RenderResult } from '@testing-library/react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { ReactElement } from 'react';\n\nconst queryClient = new QueryClient({ defaultOptions: { queries: { refetchOnWindowFocus: false } } });\n\n/**\n * Test helper to render a React component with some common app-level providers wrapped around it.\n */\nexport function renderWithContext(ui: ReactElement, options?: Omit<RenderOptions, 'queries'>): RenderResult {\n return render(<QueryClientProvider client={queryClient}>{ui}</QueryClientProvider>, options);\n}\n"],"names":["render","QueryClient","QueryClientProvider","queryClient","defaultOptions","queries","refetchOnWindowFocus","renderWithContext","ui","options","client"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,SAASA,MAAM,QAAqC,yBAAyB;AAC7E,SAASC,WAAW,EAAEC,mBAAmB,QAAQ,wBAAwB;AAGzE,MAAMC,cAAc,IAAIF,YAAY;IAAEG,gBAAgB;QAAEC,SAAS;YAAEC,sBAAsB;QAAM;IAAE;AAAE;AAEnG;;CAEC,GACD,OAAO,SAASC,kBAAkBC,EAAgB,EAAEC,OAAwC;IAC1F,OAAOT,qBAAO,KAACE;QAAoBQ,QAAQP;kBAAcK;QAA2BC;AACtF"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/test/setup-tests.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// Add testing library assertions\nimport '@testing-library/jest-dom/extend-expect';\n\n// Always mock e-charts during tests since we don't have a proper canvas in jsdom\njest.mock('echarts/core');\n"],"names":["jest","mock"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,iCAAiC;AACjC,OAAO,0CAA0C;AAEjD,iFAAiF;AACjFA,KAAKC,KAAK"}
1
+ {"version":3,"sources":["../../src/test/setup-tests.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// Add testing library assertions\nimport '@testing-library/jest-dom/extend-expect';\n\n// Always mock e-charts during tests since we don't have a proper canvas in jsdom\njest.mock('echarts/core');\n"],"names":["jest","mock"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,iCAAiC;AACjC,OAAO,0CAA0C;AAEjD,iFAAiF;AACjFA,KAAKC,IAAI,CAAC"}
@@ -17,7 +17,7 @@ export const MuiAlert = {
17
17
  severity: 'success'
18
18
  },
19
19
  styleOverrides: {
20
- standardError: ({ theme })=>{
20
+ standardError: ({ theme })=>{
21
21
  return theme.palette.mode === 'dark' ? {
22
22
  ...theme.typography.body1,
23
23
  backgroundColor: theme.palette.error.dark,
@@ -34,7 +34,7 @@ export const MuiAlert = {
34
34
  }
35
35
  };
36
36
  },
37
- standardInfo: ({ theme })=>{
37
+ standardInfo: ({ theme })=>{
38
38
  return theme.palette.mode === 'dark' ? {
39
39
  ...theme.typography.body1,
40
40
  backgroundColor: theme.palette.info.dark,
@@ -51,7 +51,7 @@ export const MuiAlert = {
51
51
  }
52
52
  };
53
53
  },
54
- standardSuccess: ({ theme })=>{
54
+ standardSuccess: ({ theme })=>{
55
55
  return theme.palette.mode === 'dark' ? {
56
56
  ...theme.typography.body1,
57
57
  backgroundColor: theme.palette.success.dark,
@@ -68,7 +68,7 @@ export const MuiAlert = {
68
68
  }
69
69
  };
70
70
  },
71
- standardWarning: ({ theme })=>{
71
+ standardWarning: ({ theme })=>{
72
72
  return theme.palette.mode === 'dark' ? {
73
73
  ...theme.typography.body1,
74
74
  backgroundColor: theme.palette.warning.dark,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/theme/component-overrides/alert.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { Components, Theme, alertClasses, linkClasses } from '@mui/material';\n\nexport const MuiAlert: Components<Theme>['MuiAlert'] = {\n defaultProps: {\n variant: 'standard',\n severity: 'success',\n },\n styleOverrides: {\n standardError: ({ theme }) => {\n return theme.palette.mode === 'dark'\n ? {\n ...theme.typography.body1,\n backgroundColor: theme.palette.error.dark,\n color: theme.palette.error.light,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.error.main,\n },\n }\n : {\n ...theme.typography.body1,\n backgroundColor: theme.palette.error.light,\n color: theme.palette.error.dark,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.error.main,\n },\n };\n },\n standardInfo: ({ theme }) => {\n return theme.palette.mode === 'dark'\n ? {\n ...theme.typography.body1,\n backgroundColor: theme.palette.info.dark,\n color: theme.palette.info.light,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.info.main,\n },\n }\n : {\n ...theme.typography.body1,\n backgroundColor: theme.palette.info.light,\n color: theme.palette.info.dark,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.info.main,\n },\n };\n },\n standardSuccess: ({ theme }) => {\n return theme.palette.mode === 'dark'\n ? {\n ...theme.typography.body1,\n backgroundColor: theme.palette.success.dark,\n color: theme.palette.success.light,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.success.main,\n },\n }\n : {\n ...theme.typography.body1,\n backgroundColor: theme.palette.success.light,\n color: theme.palette.success.dark,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.success.main,\n },\n };\n },\n standardWarning: ({ theme }) => {\n return theme.palette.mode === 'dark'\n ? {\n ...theme.typography.body1,\n backgroundColor: theme.palette.warning.dark,\n color: theme.palette.warning.light,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.warning.main,\n },\n }\n : {\n ...theme.typography.body1,\n backgroundColor: theme.palette.warning.light,\n color: theme.palette.warning.dark,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.warning.main,\n },\n };\n },\n root: {\n ['& .' + linkClasses.root]: {\n textDecoration: 'underline',\n },\n },\n },\n};\n"],"names":["alertClasses","linkClasses","MuiAlert","defaultProps","variant","severity","styleOverrides","standardError","theme","palette","mode","typography","body1","backgroundColor","error","dark","color","light","icon","main","standardInfo","info","standardSuccess","success","standardWarning","warning","root","textDecoration"],"mappings":"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"}
1
+ {"version":3,"sources":["../../../src/theme/component-overrides/alert.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { Components, Theme, alertClasses, linkClasses } from '@mui/material';\n\nexport const MuiAlert: Components<Theme>['MuiAlert'] = {\n defaultProps: {\n variant: 'standard',\n severity: 'success',\n },\n styleOverrides: {\n standardError: ({ theme }) => {\n return theme.palette.mode === 'dark'\n ? {\n ...theme.typography.body1,\n backgroundColor: theme.palette.error.dark,\n color: theme.palette.error.light,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.error.main,\n },\n }\n : {\n ...theme.typography.body1,\n backgroundColor: theme.palette.error.light,\n color: theme.palette.error.dark,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.error.main,\n },\n };\n },\n standardInfo: ({ theme }) => {\n return theme.palette.mode === 'dark'\n ? {\n ...theme.typography.body1,\n backgroundColor: theme.palette.info.dark,\n color: theme.palette.info.light,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.info.main,\n },\n }\n : {\n ...theme.typography.body1,\n backgroundColor: theme.palette.info.light,\n color: theme.palette.info.dark,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.info.main,\n },\n };\n },\n standardSuccess: ({ theme }) => {\n return theme.palette.mode === 'dark'\n ? {\n ...theme.typography.body1,\n backgroundColor: theme.palette.success.dark,\n color: theme.palette.success.light,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.success.main,\n },\n }\n : {\n ...theme.typography.body1,\n backgroundColor: theme.palette.success.light,\n color: theme.palette.success.dark,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.success.main,\n },\n };\n },\n standardWarning: ({ theme }) => {\n return theme.palette.mode === 'dark'\n ? {\n ...theme.typography.body1,\n backgroundColor: theme.palette.warning.dark,\n color: theme.palette.warning.light,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.warning.main,\n },\n }\n : {\n ...theme.typography.body1,\n backgroundColor: theme.palette.warning.light,\n color: theme.palette.warning.dark,\n [`&\t.${alertClasses.icon}`]: {\n color: theme.palette.warning.main,\n },\n };\n },\n root: {\n ['& .' + linkClasses.root]: {\n textDecoration: 'underline',\n },\n },\n },\n};\n"],"names":["alertClasses","linkClasses","MuiAlert","defaultProps","variant","severity","styleOverrides","standardError","theme","palette","mode","typography","body1","backgroundColor","error","dark","color","light","icon","main","standardInfo","info","standardSuccess","success","standardWarning","warning","root","textDecoration"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAA4BA,YAAY,EAAEC,WAAW,QAAQ,gBAAgB;AAE7E,OAAO,MAAMC,WAA0C;IACrDC,cAAc;QACZC,SAAS;QACTC,UAAU;IACZ;IACAC,gBAAgB;QACdC,eAAe,CAAC,EAAEC,KAAK,EAAE;YACvB,OAAOA,MAAMC,OAAO,CAACC,IAAI,KAAK,SAC1B;gBACE,GAAGF,MAAMG,UAAU,CAACC,KAAK;gBACzBC,iBAAiBL,MAAMC,OAAO,CAACK,KAAK,CAACC,IAAI;gBACzCC,OAAOR,MAAMC,OAAO,CAACK,KAAK,CAACG,KAAK;gBAChC,CAAC,CAAC,GAAG,EAAEjB,aAAakB,IAAI,CAAC,CAAC,CAAC,EAAE;oBAC3BF,OAAOR,MAAMC,OAAO,CAACK,KAAK,CAACK,IAAI;gBACjC;YACF,IACA;gBACE,GAAGX,MAAMG,UAAU,CAACC,KAAK;gBACzBC,iBAAiBL,MAAMC,OAAO,CAACK,KAAK,CAACG,KAAK;gBAC1CD,OAAOR,MAAMC,OAAO,CAACK,KAAK,CAACC,IAAI;gBAC/B,CAAC,CAAC,GAAG,EAAEf,aAAakB,IAAI,CAAC,CAAC,CAAC,EAAE;oBAC3BF,OAAOR,MAAMC,OAAO,CAACK,KAAK,CAACK,IAAI;gBACjC;YACF;QACN;QACAC,cAAc,CAAC,EAAEZ,KAAK,EAAE;YACtB,OAAOA,MAAMC,OAAO,CAACC,IAAI,KAAK,SAC1B;gBACE,GAAGF,MAAMG,UAAU,CAACC,KAAK;gBACzBC,iBAAiBL,MAAMC,OAAO,CAACY,IAAI,CAACN,IAAI;gBACxCC,OAAOR,MAAMC,OAAO,CAACY,IAAI,CAACJ,KAAK;gBAC/B,CAAC,CAAC,GAAG,EAAEjB,aAAakB,IAAI,CAAC,CAAC,CAAC,EAAE;oBAC3BF,OAAOR,MAAMC,OAAO,CAACY,IAAI,CAACF,IAAI;gBAChC;YACF,IACA;gBACE,GAAGX,MAAMG,UAAU,CAACC,KAAK;gBACzBC,iBAAiBL,MAAMC,OAAO,CAACY,IAAI,CAACJ,KAAK;gBACzCD,OAAOR,MAAMC,OAAO,CAACY,IAAI,CAACN,IAAI;gBAC9B,CAAC,CAAC,GAAG,EAAEf,aAAakB,IAAI,CAAC,CAAC,CAAC,EAAE;oBAC3BF,OAAOR,MAAMC,OAAO,CAACY,IAAI,CAACF,IAAI;gBAChC;YACF;QACN;QACAG,iBAAiB,CAAC,EAAEd,KAAK,EAAE;YACzB,OAAOA,MAAMC,OAAO,CAACC,IAAI,KAAK,SAC1B;gBACE,GAAGF,MAAMG,UAAU,CAACC,KAAK;gBACzBC,iBAAiBL,MAAMC,OAAO,CAACc,OAAO,CAACR,IAAI;gBAC3CC,OAAOR,MAAMC,OAAO,CAACc,OAAO,CAACN,KAAK;gBAClC,CAAC,CAAC,GAAG,EAAEjB,aAAakB,IAAI,CAAC,CAAC,CAAC,EAAE;oBAC3BF,OAAOR,MAAMC,OAAO,CAACc,OAAO,CAACJ,IAAI;gBACnC;YACF,IACA;gBACE,GAAGX,MAAMG,UAAU,CAACC,KAAK;gBACzBC,iBAAiBL,MAAMC,OAAO,CAACc,OAAO,CAACN,KAAK;gBAC5CD,OAAOR,MAAMC,OAAO,CAACc,OAAO,CAACR,IAAI;gBACjC,CAAC,CAAC,GAAG,EAAEf,aAAakB,IAAI,CAAC,CAAC,CAAC,EAAE;oBAC3BF,OAAOR,MAAMC,OAAO,CAACc,OAAO,CAACJ,IAAI;gBACnC;YACF;QACN;QACAK,iBAAiB,CAAC,EAAEhB,KAAK,EAAE;YACzB,OAAOA,MAAMC,OAAO,CAACC,IAAI,KAAK,SAC1B;gBACE,GAAGF,MAAMG,UAAU,CAACC,KAAK;gBACzBC,iBAAiBL,MAAMC,OAAO,CAACgB,OAAO,CAACV,IAAI;gBAC3CC,OAAOR,MAAMC,OAAO,CAACgB,OAAO,CAACR,KAAK;gBAClC,CAAC,CAAC,GAAG,EAAEjB,aAAakB,IAAI,CAAC,CAAC,CAAC,EAAE;oBAC3BF,OAAOR,MAAMC,OAAO,CAACgB,OAAO,CAACN,IAAI;gBACnC;YACF,IACA;gBACE,GAAGX,MAAMG,UAAU,CAACC,KAAK;gBACzBC,iBAAiBL,MAAMC,OAAO,CAACgB,OAAO,CAACR,KAAK;gBAC5CD,OAAOR,MAAMC,OAAO,CAACgB,OAAO,CAACV,IAAI;gBACjC,CAAC,CAAC,GAAG,EAAEf,aAAakB,IAAI,CAAC,CAAC,CAAC,EAAE;oBAC3BF,OAAOR,MAAMC,OAAO,CAACgB,OAAO,CAACN,IAAI;gBACnC;YACF;QACN;QACAO,MAAM;YACJ,CAAC,QAAQzB,YAAYyB,IAAI,CAAC,EAAE;gBAC1BC,gBAAgB;YAClB;QACF;IACF;AACF,EAAE"}
@@ -12,7 +12,7 @@
12
12
  // limitations under the License.
13
13
  export const MuiPaper = {
14
14
  styleOverrides: {
15
- root: ({ theme })=>({
15
+ root: ({ theme })=>({
16
16
  backgroundColor: theme.palette.background.default
17
17
  })
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/theme/component-overrides/paper.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { Components, Theme } from '@mui/material';\n\nexport const MuiPaper: Components<Theme>['MuiPaper'] = {\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: theme.palette.background.default,\n }),\n },\n};\n"],"names":["MuiPaper","styleOverrides","root","theme","backgroundColor","palette","background","default"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAIjC,OAAO,MAAMA,WAA0C;IACrDC,gBAAgB;QACdC,MAAM,CAAC,EAAEC,MAAK,EAAE,GAAM,CAAA;gBACpBC,iBAAiBD,MAAME,QAAQC,WAAWC;YAC5C,CAAA;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/theme/component-overrides/paper.ts"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { Components, Theme } from '@mui/material';\n\nexport const MuiPaper: Components<Theme>['MuiPaper'] = {\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: theme.palette.background.default,\n }),\n },\n};\n"],"names":["MuiPaper","styleOverrides","root","theme","backgroundColor","palette","background","default"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAIjC,OAAO,MAAMA,WAA0C;IACrDC,gBAAgB;QACdC,MAAM,CAAC,EAAEC,KAAK,EAAE,GAAM,CAAA;gBACpBC,iBAAiBD,MAAME,OAAO,CAACC,UAAU,CAACC,OAAO;YACnD,CAAA;IACF;AACF,EAAE"}
@@ -1,5 +1,6 @@
1
1
  import { PersesColor } from './palette';
2
2
  export * from './theme';
3
+ export * from './typography';
3
4
  declare module '@mui/material/styles/createPalette' {
4
5
  interface TypeBackground {
5
6
  navigation: string;
@@ -7,6 +8,7 @@ declare module '@mui/material/styles/createPalette' {
7
8
  overlay: string;
8
9
  border: string;
9
10
  lighter: string;
11
+ code: string;
10
12
  }
11
13
  interface TypeText {
12
14
  navigation: string;