@perses-dev/components 0.55.0-beta.2 → 0.55.0-beta.6

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 (806) hide show
  1. package/dist/AlignSelector/AlignSelector.d.ts +2 -2
  2. package/dist/AlignSelector/AlignSelector.d.ts.map +1 -1
  3. package/dist/AlignSelector/AlignSelector.js +2 -2
  4. package/dist/AlignSelector/AlignSelector.js.map +1 -1
  5. package/dist/AlignSelector/index.js +1 -1
  6. package/dist/AlignSelector/index.js.map +1 -1
  7. package/dist/ColorPicker/ColorPicker.d.ts +1 -1
  8. package/dist/ColorPicker/ColorPicker.d.ts.map +1 -1
  9. package/dist/ColorPicker/ColorPicker.js +5 -5
  10. package/dist/ColorPicker/ColorPicker.js.map +1 -1
  11. package/dist/ColorPicker/OptionsColorPicker.d.ts +1 -1
  12. package/dist/ColorPicker/OptionsColorPicker.d.ts.map +1 -1
  13. package/dist/ColorPicker/OptionsColorPicker.js +5 -5
  14. package/dist/ColorPicker/OptionsColorPicker.js.map +1 -1
  15. package/dist/ColorPicker/index.js +2 -2
  16. package/dist/ColorPicker/index.js.map +1 -1
  17. package/dist/ContentWithLegend/ContentWithLegend.d.ts +2 -2
  18. package/dist/ContentWithLegend/ContentWithLegend.d.ts.map +1 -1
  19. package/dist/ContentWithLegend/ContentWithLegend.js +5 -5
  20. package/dist/ContentWithLegend/ContentWithLegend.js.map +1 -1
  21. package/dist/ContentWithLegend/index.js +1 -1
  22. package/dist/ContentWithLegend/index.js.map +1 -1
  23. package/dist/ContentWithLegend/model/content-with-legend-model.d.ts +3 -4
  24. package/dist/ContentWithLegend/model/content-with-legend-model.d.ts.map +1 -1
  25. package/dist/ContentWithLegend/model/content-with-legend-model.js +2 -2
  26. package/dist/ContentWithLegend/model/content-with-legend-model.js.map +1 -1
  27. package/dist/DensitySelector/DensitySelector.d.ts +1 -1
  28. package/dist/DensitySelector/DensitySelector.d.ts.map +1 -1
  29. package/dist/DensitySelector/DensitySelector.js +2 -2
  30. package/dist/DensitySelector/DensitySelector.js.map +1 -1
  31. package/dist/DensitySelector/index.js +1 -1
  32. package/dist/DensitySelector/index.js.map +1 -1
  33. package/dist/Dialog/Dialog.d.ts +4 -3
  34. package/dist/Dialog/Dialog.d.ts.map +1 -1
  35. package/dist/Dialog/Dialog.js +3 -3
  36. package/dist/Dialog/Dialog.js.map +1 -1
  37. package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts +1 -1
  38. package/dist/Dialog/DiscardChangesConfirmationDialog.d.ts.map +1 -1
  39. package/dist/Dialog/DiscardChangesConfirmationDialog.js +2 -2
  40. package/dist/Dialog/DiscardChangesConfirmationDialog.js.map +1 -1
  41. package/dist/Dialog/index.js +2 -2
  42. package/dist/Dialog/index.js.map +1 -1
  43. package/dist/DragAndDrop/DragAndDropList.d.ts +1 -1
  44. package/dist/DragAndDrop/DragAndDropList.d.ts.map +1 -1
  45. package/dist/DragAndDrop/DragAndDropList.js +8 -8
  46. package/dist/DragAndDrop/DragAndDropList.js.map +1 -1
  47. package/dist/DragAndDrop/DragButton.d.ts +1 -2
  48. package/dist/DragAndDrop/DragButton.d.ts.map +1 -1
  49. package/dist/DragAndDrop/DragButton.js +4 -4
  50. package/dist/DragAndDrop/DragButton.js.map +1 -1
  51. package/dist/DragAndDrop/DropIndicator.d.ts +1 -1
  52. package/dist/DragAndDrop/DropIndicator.d.ts.map +1 -1
  53. package/dist/DragAndDrop/DropIndicator.js +1 -1
  54. package/dist/DragAndDrop/DropIndicator.js.map +1 -1
  55. package/dist/DragAndDrop/index.js +3 -3
  56. package/dist/DragAndDrop/index.js.map +1 -1
  57. package/dist/DragAndDrop/model.d.ts +1 -1
  58. package/dist/DragAndDrop/model.d.ts.map +1 -1
  59. package/dist/DragAndDrop/model.js.map +1 -1
  60. package/dist/Drawer/Drawer.d.ts +2 -2
  61. package/dist/Drawer/Drawer.d.ts.map +1 -1
  62. package/dist/Drawer/Drawer.js +3 -3
  63. package/dist/Drawer/Drawer.js.map +1 -1
  64. package/dist/Drawer/index.js +1 -1
  65. package/dist/Drawer/index.js.map +1 -1
  66. package/dist/EChart/EChart.d.ts +4 -4
  67. package/dist/EChart/EChart.d.ts.map +1 -1
  68. package/dist/EChart/EChart.js +10 -10
  69. package/dist/EChart/EChart.js.map +1 -1
  70. package/dist/EChart/index.js +2 -2
  71. package/dist/EChart/index.js.map +1 -1
  72. package/dist/EChart/timezone-formatter.d.ts.map +1 -1
  73. package/dist/EChart/timezone-formatter.js +1 -1
  74. package/dist/ErrorAlert.d.ts +1 -1
  75. package/dist/ErrorAlert.d.ts.map +1 -1
  76. package/dist/ErrorAlert.js +1 -1
  77. package/dist/ErrorAlert.js.map +1 -1
  78. package/dist/ErrorBoundary.js +1 -1
  79. package/dist/FontSizeSelector/FontSizeSelector.d.ts +1 -1
  80. package/dist/FontSizeSelector/FontSizeSelector.d.ts.map +1 -1
  81. package/dist/FontSizeSelector/FontSizeSelector.js +2 -2
  82. package/dist/FontSizeSelector/FontSizeSelector.js.map +1 -1
  83. package/dist/FontSizeSelector/index.js +1 -1
  84. package/dist/FontSizeSelector/index.js.map +1 -1
  85. package/dist/FormEditor/FormActions.d.ts +3 -3
  86. package/dist/FormEditor/FormActions.d.ts.map +1 -1
  87. package/dist/FormEditor/FormActions.js +2 -2
  88. package/dist/FormEditor/FormActions.js.map +1 -1
  89. package/dist/FormEditor/index.js +1 -1
  90. package/dist/FormEditor/index.js.map +1 -1
  91. package/dist/FormatControls/FormatControls.d.ts +2 -2
  92. package/dist/FormatControls/FormatControls.d.ts.map +1 -1
  93. package/dist/FormatControls/FormatControls.js +6 -6
  94. package/dist/FormatControls/FormatControls.js.map +1 -1
  95. package/dist/FormatControls/UnitSelector.d.ts +2 -2
  96. package/dist/FormatControls/UnitSelector.d.ts.map +1 -1
  97. package/dist/FormatControls/UnitSelector.js +35 -6
  98. package/dist/FormatControls/UnitSelector.js.map +1 -1
  99. package/dist/FormatControls/index.js +2 -2
  100. package/dist/FormatControls/index.js.map +1 -1
  101. package/dist/InfoTooltip/InfoTooltip.d.ts +1 -1
  102. package/dist/InfoTooltip/InfoTooltip.d.ts.map +1 -1
  103. package/dist/InfoTooltip/InfoTooltip.js +1 -1
  104. package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
  105. package/dist/InfoTooltip/index.js +1 -1
  106. package/dist/InfoTooltip/index.js.map +1 -1
  107. package/dist/JSONEditor.d.ts +2 -2
  108. package/dist/JSONEditor.d.ts.map +1 -1
  109. package/dist/JSONEditor.js +5 -5
  110. package/dist/JSONEditor.js.map +1 -1
  111. package/dist/Legend/CompactLegend.d.ts +3 -3
  112. package/dist/Legend/CompactLegend.d.ts.map +1 -1
  113. package/dist/Legend/CompactLegend.js +3 -3
  114. package/dist/Legend/CompactLegend.js.map +1 -1
  115. package/dist/Legend/Legend.d.ts +4 -4
  116. package/dist/Legend/Legend.d.ts.map +1 -1
  117. package/dist/Legend/Legend.js +6 -6
  118. package/dist/Legend/Legend.js.map +1 -1
  119. package/dist/Legend/LegendColorBadge.d.ts +1 -2
  120. package/dist/Legend/LegendColorBadge.d.ts.map +1 -1
  121. package/dist/Legend/LegendColorBadge.js +4 -4
  122. package/dist/Legend/LegendColorBadge.js.map +1 -1
  123. package/dist/Legend/ListLegend.d.ts +3 -3
  124. package/dist/Legend/ListLegend.d.ts.map +1 -1
  125. package/dist/Legend/ListLegend.js +7 -6
  126. package/dist/Legend/ListLegend.js.map +1 -1
  127. package/dist/Legend/ListLegendItem.d.ts +3 -3
  128. package/dist/Legend/ListLegendItem.d.ts.map +1 -1
  129. package/dist/Legend/ListLegendItem.js +8 -7
  130. package/dist/Legend/ListLegendItem.js.map +1 -1
  131. package/dist/Legend/TableLegend.d.ts +3 -3
  132. package/dist/Legend/TableLegend.d.ts.map +1 -1
  133. package/dist/Legend/TableLegend.js +3 -3
  134. package/dist/Legend/TableLegend.js.map +1 -1
  135. package/dist/Legend/index.js +2 -2
  136. package/dist/Legend/index.js.map +1 -1
  137. package/dist/Legend/legend-model.d.ts +2 -2
  138. package/dist/Legend/legend-model.d.ts.map +1 -1
  139. package/dist/Legend/legend-model.js.map +1 -1
  140. package/dist/LinksEditor/LinkEditorForm.d.ts +1 -1
  141. package/dist/LinksEditor/LinkEditorForm.d.ts.map +1 -1
  142. package/dist/LinksEditor/LinkEditorForm.js +2 -2
  143. package/dist/LinksEditor/LinkEditorForm.js.map +1 -1
  144. package/dist/LinksEditor/index.js +1 -1
  145. package/dist/LinksEditor/index.js.map +1 -1
  146. package/dist/ModeSelector/ModeSelector.d.ts +1 -1
  147. package/dist/ModeSelector/ModeSelector.d.ts.map +1 -1
  148. package/dist/ModeSelector/ModeSelector.js +2 -2
  149. package/dist/ModeSelector/ModeSelector.js.map +1 -1
  150. package/dist/ModeSelector/index.js +1 -1
  151. package/dist/ModeSelector/index.js.map +1 -1
  152. package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts +1 -1
  153. package/dist/OptionsEditorLayout/OptionsEditorColumn.d.ts.map +1 -1
  154. package/dist/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
  155. package/dist/OptionsEditorLayout/OptionsEditorColumn.js.map +1 -1
  156. package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts +2 -2
  157. package/dist/OptionsEditorLayout/OptionsEditorControl.d.ts.map +1 -1
  158. package/dist/OptionsEditorLayout/OptionsEditorControl.js +6 -6
  159. package/dist/OptionsEditorLayout/OptionsEditorControl.js.map +1 -1
  160. package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts +1 -1
  161. package/dist/OptionsEditorLayout/OptionsEditorGrid.d.ts.map +1 -1
  162. package/dist/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
  163. package/dist/OptionsEditorLayout/OptionsEditorGrid.js.map +1 -1
  164. package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts +2 -1
  165. package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts.map +1 -1
  166. package/dist/OptionsEditorLayout/OptionsEditorGroup.js +2 -2
  167. package/dist/OptionsEditorLayout/OptionsEditorGroup.js.map +1 -1
  168. package/dist/OptionsEditorLayout/index.js +4 -4
  169. package/dist/OptionsEditorLayout/index.js.map +1 -1
  170. package/dist/Overlay/Overlay.d.ts +2 -2
  171. package/dist/Overlay/Overlay.d.ts.map +1 -1
  172. package/dist/Overlay/Overlay.js +2 -2
  173. package/dist/Overlay/Overlay.js.map +1 -1
  174. package/dist/Overlay/index.js +1 -1
  175. package/dist/Overlay/index.js.map +1 -1
  176. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts +3 -3
  177. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.d.ts.map +1 -1
  178. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js +2 -2
  179. package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js.map +1 -1
  180. package/dist/RefreshIntervalPicker/index.js +1 -1
  181. package/dist/RefreshIntervalPicker/index.js.map +1 -1
  182. package/dist/RepeatGrid/RepeatGrid.d.ts +15 -0
  183. package/dist/RepeatGrid/RepeatGrid.d.ts.map +1 -0
  184. package/dist/RepeatGrid/RepeatGrid.js +68 -0
  185. package/dist/RepeatGrid/RepeatGrid.js.map +1 -0
  186. package/dist/RepeatGrid/index.d.ts +2 -0
  187. package/dist/RepeatGrid/index.d.ts.map +1 -0
  188. package/dist/{cjs/model/types.js → RepeatGrid/index.js} +3 -4
  189. package/dist/RepeatGrid/index.js.map +1 -0
  190. package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts +2 -2
  191. package/dist/SettingsAutocomplete/SettingsAutocomplete.d.ts.map +1 -1
  192. package/dist/SettingsAutocomplete/SettingsAutocomplete.js +2 -2
  193. package/dist/SettingsAutocomplete/SettingsAutocomplete.js.map +1 -1
  194. package/dist/SettingsAutocomplete/index.js +1 -1
  195. package/dist/SettingsAutocomplete/index.js.map +1 -1
  196. package/dist/SortSelector/SortSelector.d.ts +1 -1
  197. package/dist/SortSelector/SortSelector.d.ts.map +1 -1
  198. package/dist/SortSelector/SortSelector.js +2 -2
  199. package/dist/SortSelector/SortSelector.js.map +1 -1
  200. package/dist/SortSelector/SortSelectorButtons.d.ts +3 -3
  201. package/dist/SortSelector/SortSelectorButtons.d.ts.map +1 -1
  202. package/dist/SortSelector/SortSelectorButtons.js +2 -2
  203. package/dist/SortSelector/SortSelectorButtons.js.map +1 -1
  204. package/dist/SortSelector/index.js +2 -2
  205. package/dist/SortSelector/index.js.map +1 -1
  206. package/dist/Table/InnerTable.d.ts +2 -3
  207. package/dist/Table/InnerTable.d.ts.map +1 -1
  208. package/dist/Table/InnerTable.js +3 -3
  209. package/dist/Table/InnerTable.js.map +1 -1
  210. package/dist/Table/Table.d.ts +2 -2
  211. package/dist/Table/Table.d.ts.map +1 -1
  212. package/dist/Table/Table.js +7 -7
  213. package/dist/Table/Table.js.map +1 -1
  214. package/dist/Table/TableBody.d.ts +1 -2
  215. package/dist/Table/TableBody.d.ts.map +1 -1
  216. package/dist/Table/TableBody.js +3 -3
  217. package/dist/Table/TableBody.js.map +1 -1
  218. package/dist/Table/TableCell.d.ts +3 -3
  219. package/dist/Table/TableCell.d.ts.map +1 -1
  220. package/dist/Table/TableCell.js +5 -5
  221. package/dist/Table/TableCell.js.map +1 -1
  222. package/dist/Table/TableCheckbox.d.ts +3 -3
  223. package/dist/Table/TableCheckbox.d.ts.map +1 -1
  224. package/dist/Table/TableCheckbox.js +2 -2
  225. package/dist/Table/TableCheckbox.js.map +1 -1
  226. package/dist/Table/TableFoot.d.ts +1 -2
  227. package/dist/Table/TableFoot.d.ts.map +1 -1
  228. package/dist/Table/TableFoot.js +3 -3
  229. package/dist/Table/TableFoot.js.map +1 -1
  230. package/dist/Table/TableHead.d.ts +1 -2
  231. package/dist/Table/TableHead.d.ts.map +1 -1
  232. package/dist/Table/TableHead.js +3 -3
  233. package/dist/Table/TableHead.js.map +1 -1
  234. package/dist/Table/TableHeaderCell.d.ts +3 -3
  235. package/dist/Table/TableHeaderCell.d.ts.map +1 -1
  236. package/dist/Table/TableHeaderCell.js +2 -2
  237. package/dist/Table/TableHeaderCell.js.map +1 -1
  238. package/dist/Table/TableRow.d.ts +2 -3
  239. package/dist/Table/TableRow.d.ts.map +1 -1
  240. package/dist/Table/TableRow.js +3 -3
  241. package/dist/Table/TableRow.js.map +1 -1
  242. package/dist/Table/TableToolbar.d.ts +2 -2
  243. package/dist/Table/TableToolbar.d.ts.map +1 -1
  244. package/dist/Table/TableToolbar.js +8 -8
  245. package/dist/Table/TableToolbar.js.map +1 -1
  246. package/dist/Table/VirtualizedTable.d.ts +4 -4
  247. package/dist/Table/VirtualizedTable.d.ts.map +1 -1
  248. package/dist/Table/VirtualizedTable.js +14 -14
  249. package/dist/Table/VirtualizedTable.js.map +1 -1
  250. package/dist/Table/VirtualizedTableContainer.d.ts +1 -2
  251. package/dist/Table/VirtualizedTableContainer.d.ts.map +1 -1
  252. package/dist/Table/VirtualizedTableContainer.js +4 -4
  253. package/dist/Table/VirtualizedTableContainer.js.map +1 -1
  254. package/dist/Table/hooks/useFuzzySearch.d.ts +3 -3
  255. package/dist/Table/hooks/useFuzzySearch.d.ts.map +1 -1
  256. package/dist/Table/hooks/useFuzzySearch.js +3 -3
  257. package/dist/Table/hooks/useFuzzySearch.js.map +1 -1
  258. package/dist/Table/hooks/useTableKeyboardNav.d.ts +1 -1
  259. package/dist/Table/hooks/useTableKeyboardNav.d.ts.map +1 -1
  260. package/dist/Table/hooks/useTableKeyboardNav.js +1 -1
  261. package/dist/Table/hooks/useTableKeyboardNav.js.map +1 -1
  262. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.d.ts +3 -3
  263. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.d.ts.map +1 -1
  264. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js +1 -1
  265. package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js.map +1 -1
  266. package/dist/Table/index.js +2 -2
  267. package/dist/Table/index.js.map +1 -1
  268. package/dist/Table/model/table-model.d.ts +5 -5
  269. package/dist/Table/model/table-model.d.ts.map +1 -1
  270. package/dist/Table/model/table-model.js.map +1 -1
  271. package/dist/ThresholdsEditor/ThresholdInput.d.ts +2 -2
  272. package/dist/ThresholdsEditor/ThresholdInput.d.ts.map +1 -1
  273. package/dist/ThresholdsEditor/ThresholdInput.js +4 -4
  274. package/dist/ThresholdsEditor/ThresholdInput.js.map +1 -1
  275. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts +2 -2
  276. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts.map +1 -1
  277. package/dist/ThresholdsEditor/ThresholdsEditor.js +10 -10
  278. package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -1
  279. package/dist/ThresholdsEditor/index.js +1 -1
  280. package/dist/ThresholdsEditor/index.js.map +1 -1
  281. package/dist/TimeRangeSelector/DateTimeRangePicker.d.ts +2 -2
  282. package/dist/TimeRangeSelector/DateTimeRangePicker.d.ts.map +1 -1
  283. package/dist/TimeRangeSelector/DateTimeRangePicker.js +8 -8
  284. package/dist/TimeRangeSelector/DateTimeRangePicker.js.map +1 -1
  285. package/dist/TimeRangeSelector/TimeRangeSelector.d.ts +4 -4
  286. package/dist/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
  287. package/dist/TimeRangeSelector/TimeRangeSelector.js +11 -11
  288. package/dist/TimeRangeSelector/TimeRangeSelector.js.map +1 -1
  289. package/dist/TimeRangeSelector/index.js +2 -2
  290. package/dist/TimeRangeSelector/index.js.map +1 -1
  291. package/dist/TimeRangeSelector/utils.d.ts +1 -1
  292. package/dist/TimeRangeSelector/utils.d.ts.map +1 -1
  293. package/dist/TimeRangeSelector/utils.js +3 -3
  294. package/dist/TimeRangeSelector/utils.js.map +1 -1
  295. package/dist/TimeSeriesTooltip/SeriesInfo.d.ts +1 -1
  296. package/dist/TimeSeriesTooltip/SeriesInfo.d.ts.map +1 -1
  297. package/dist/TimeSeriesTooltip/SeriesInfo.js +4 -4
  298. package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -1
  299. package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts +1 -1
  300. package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts.map +1 -1
  301. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js +2 -2
  302. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js.map +1 -1
  303. package/dist/TimeSeriesTooltip/SeriesMarker.d.ts +2 -2
  304. package/dist/TimeSeriesTooltip/SeriesMarker.d.ts.map +1 -1
  305. package/dist/TimeSeriesTooltip/SeriesMarker.js +3 -3
  306. package/dist/TimeSeriesTooltip/SeriesMarker.js.map +1 -1
  307. package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts +5 -5
  308. package/dist/TimeSeriesTooltip/TimeChartTooltip.d.ts.map +1 -1
  309. package/dist/TimeSeriesTooltip/TimeChartTooltip.js +8 -8
  310. package/dist/TimeSeriesTooltip/TimeChartTooltip.js.map +1 -1
  311. package/dist/TimeSeriesTooltip/TooltipContent.d.ts +2 -2
  312. package/dist/TimeSeriesTooltip/TooltipContent.d.ts.map +1 -1
  313. package/dist/TimeSeriesTooltip/TooltipContent.js +3 -3
  314. package/dist/TimeSeriesTooltip/TooltipContent.js.map +1 -1
  315. package/dist/TimeSeriesTooltip/TooltipHeader.d.ts +1 -2
  316. package/dist/TimeSeriesTooltip/TooltipHeader.d.ts.map +1 -1
  317. package/dist/TimeSeriesTooltip/TooltipHeader.js +6 -6
  318. package/dist/TimeSeriesTooltip/TooltipHeader.js.map +1 -1
  319. package/dist/TimeSeriesTooltip/index.js +10 -10
  320. package/dist/TimeSeriesTooltip/index.js.map +1 -1
  321. package/dist/TimeSeriesTooltip/nearby-series.d.ts +5 -5
  322. package/dist/TimeSeriesTooltip/nearby-series.d.ts.map +1 -1
  323. package/dist/TimeSeriesTooltip/nearby-series.js +4 -4
  324. package/dist/TimeSeriesTooltip/nearby-series.js.map +1 -1
  325. package/dist/TimeSeriesTooltip/tooltip-model.d.ts +2 -2
  326. package/dist/TimeSeriesTooltip/tooltip-model.d.ts.map +1 -1
  327. package/dist/TimeSeriesTooltip/tooltip-model.js +1 -1
  328. package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -1
  329. package/dist/TimeSeriesTooltip/utils.d.ts +4 -4
  330. package/dist/TimeSeriesTooltip/utils.d.ts.map +1 -1
  331. package/dist/TimeSeriesTooltip/utils.js +1 -1
  332. package/dist/TimeSeriesTooltip/utils.js.map +1 -1
  333. package/dist/TimeZoneSelector.d.ts +3 -3
  334. package/dist/TimeZoneSelector.d.ts.map +1 -1
  335. package/dist/TimeZoneSelector.js +8 -5
  336. package/dist/TimeZoneSelector.js.map +1 -1
  337. package/dist/ToolbarIconButton/ToolbarIconButton.d.ts +1 -2
  338. package/dist/ToolbarIconButton/ToolbarIconButton.d.ts.map +1 -1
  339. package/dist/ToolbarIconButton/ToolbarIconButton.js +3 -3
  340. package/dist/ToolbarIconButton/ToolbarIconButton.js.map +1 -1
  341. package/dist/ToolbarIconButton/index.js +1 -1
  342. package/dist/ToolbarIconButton/index.js.map +1 -1
  343. package/dist/TransformsEditor/TransformEditor.d.ts +3 -3
  344. package/dist/TransformsEditor/TransformEditor.d.ts.map +1 -1
  345. package/dist/TransformsEditor/TransformEditor.js +3 -3
  346. package/dist/TransformsEditor/TransformEditor.js.map +1 -1
  347. package/dist/TransformsEditor/TransformEditorContainer.d.ts +2 -2
  348. package/dist/TransformsEditor/TransformEditorContainer.d.ts.map +1 -1
  349. package/dist/TransformsEditor/TransformEditorContainer.js +8 -8
  350. package/dist/TransformsEditor/TransformEditorContainer.js.map +1 -1
  351. package/dist/TransformsEditor/TransformsEditor.d.ts +3 -3
  352. package/dist/TransformsEditor/TransformsEditor.d.ts.map +1 -1
  353. package/dist/TransformsEditor/TransformsEditor.js +5 -5
  354. package/dist/TransformsEditor/TransformsEditor.js.map +1 -1
  355. package/dist/TransformsEditor/index.js +1 -1
  356. package/dist/TransformsEditor/index.js.map +1 -1
  357. package/dist/ValueMappingEditor/ValueMappingEditor.d.ts +3 -3
  358. package/dist/ValueMappingEditor/ValueMappingEditor.d.ts.map +1 -1
  359. package/dist/ValueMappingEditor/ValueMappingEditor.js +5 -5
  360. package/dist/ValueMappingEditor/ValueMappingEditor.js.map +1 -1
  361. package/dist/ValueMappingEditor/ValueMappingsEditor.d.ts +2 -2
  362. package/dist/ValueMappingEditor/ValueMappingsEditor.d.ts.map +1 -1
  363. package/dist/ValueMappingEditor/ValueMappingsEditor.js +4 -4
  364. package/dist/ValueMappingEditor/ValueMappingsEditor.js.map +1 -1
  365. package/dist/ValueMappingEditor/index.js +1 -1
  366. package/dist/ValueMappingEditor/index.js.map +1 -1
  367. package/dist/YAxisLabel.d.ts +1 -1
  368. package/dist/YAxisLabel.d.ts.map +1 -1
  369. package/dist/YAxisLabel.js +1 -1
  370. package/dist/YAxisLabel.js.map +1 -1
  371. package/dist/context/ChartsProvider.d.ts +4 -3
  372. package/dist/context/ChartsProvider.d.ts.map +1 -1
  373. package/dist/context/ChartsProvider.js +2 -2
  374. package/dist/context/ChartsProvider.js.map +1 -1
  375. package/dist/context/ItemActionsProvider.d.ts +1 -1
  376. package/dist/context/ItemActionsProvider.d.ts.map +1 -1
  377. package/dist/context/ItemActionsProvider.js +2 -2
  378. package/dist/context/ItemActionsProvider.js.map +1 -1
  379. package/dist/context/SelectionProvider.d.ts +1 -1
  380. package/dist/context/SelectionProvider.d.ts.map +1 -1
  381. package/dist/context/SelectionProvider.js +2 -2
  382. package/dist/context/SelectionProvider.js.map +1 -1
  383. package/dist/context/SnackbarProvider.d.ts +2 -1
  384. package/dist/context/SnackbarProvider.d.ts.map +1 -1
  385. package/dist/context/SnackbarProvider.js +3 -3
  386. package/dist/context/SnackbarProvider.js.map +1 -1
  387. package/dist/context/TimeZoneProvider.d.ts +2 -1
  388. package/dist/context/TimeZoneProvider.d.ts.map +1 -1
  389. package/dist/context/TimeZoneProvider.js +3 -3
  390. package/dist/context/TimeZoneProvider.js.map +1 -1
  391. package/dist/context/index.js +5 -5
  392. package/dist/context/index.js.map +1 -1
  393. package/dist/controls/TextField.d.ts +1 -2
  394. package/dist/controls/TextField.d.ts.map +1 -1
  395. package/dist/controls/TextField.js +4 -4
  396. package/dist/controls/TextField.js.map +1 -1
  397. package/dist/controls/index.js +1 -1
  398. package/dist/controls/index.js.map +1 -1
  399. package/dist/index.d.ts +1 -0
  400. package/dist/index.d.ts.map +1 -1
  401. package/dist/index.js +39 -38
  402. package/dist/index.js.map +1 -1
  403. package/dist/model/action.d.ts +1 -1
  404. package/dist/model/action.d.ts.map +1 -1
  405. package/dist/model/action.js.map +1 -1
  406. package/dist/model/bits.d.ts +1 -1
  407. package/dist/model/bits.d.ts.map +1 -1
  408. package/dist/model/bits.js +4 -4
  409. package/dist/model/bits.js.map +1 -1
  410. package/dist/model/bytes.d.ts +1 -1
  411. package/dist/model/bytes.d.ts.map +1 -1
  412. package/dist/model/bytes.js +4 -4
  413. package/dist/model/bytes.js.map +1 -1
  414. package/dist/model/currency.d.ts +1 -1
  415. package/dist/model/currency.d.ts.map +1 -1
  416. package/dist/model/currency.js +4 -4
  417. package/dist/model/currency.js.map +1 -1
  418. package/dist/model/date.d.ts +1 -1
  419. package/dist/model/date.d.ts.map +1 -1
  420. package/dist/model/date.js.map +1 -1
  421. package/dist/model/decimal.d.ts +1 -1
  422. package/dist/model/decimal.d.ts.map +1 -1
  423. package/dist/model/decimal.js +3 -3
  424. package/dist/model/decimal.js.map +1 -1
  425. package/dist/model/formatterCache.js.map +1 -1
  426. package/dist/model/graph.d.ts +3 -3
  427. package/dist/model/graph.d.ts.map +1 -1
  428. package/dist/model/graph.js.map +1 -1
  429. package/dist/model/index.js +21 -21
  430. package/dist/model/index.js.map +1 -1
  431. package/dist/model/percent.d.ts +1 -1
  432. package/dist/model/percent.d.ts.map +1 -1
  433. package/dist/model/percent.js +3 -3
  434. package/dist/model/percent.js.map +1 -1
  435. package/dist/model/temperature.d.ts +1 -1
  436. package/dist/model/temperature.d.ts.map +1 -1
  437. package/dist/model/temperature.js +3 -3
  438. package/dist/model/temperature.js.map +1 -1
  439. package/dist/model/theme.d.ts +1 -1
  440. package/dist/model/theme.d.ts.map +1 -1
  441. package/dist/model/theme.js.map +1 -1
  442. package/dist/model/throughput.d.ts +1 -1
  443. package/dist/model/throughput.d.ts.map +1 -1
  444. package/dist/model/throughput.js +5 -5
  445. package/dist/model/throughput.js.map +1 -1
  446. package/dist/model/time.d.ts +1 -1
  447. package/dist/model/time.d.ts.map +1 -1
  448. package/dist/model/time.js +3 -3
  449. package/dist/model/time.js.map +1 -1
  450. package/dist/model/timeOption.d.ts +1 -1
  451. package/dist/model/timeOption.d.ts.map +1 -1
  452. package/dist/model/timeOption.js +2 -2
  453. package/dist/model/timeOption.js.map +1 -1
  454. package/dist/model/types.d.ts +3 -3
  455. package/dist/model/types.d.ts.map +1 -1
  456. package/dist/model/types.js.map +1 -1
  457. package/dist/model/units.d.ts +10 -10
  458. package/dist/model/units.d.ts.map +1 -1
  459. package/dist/model/units.js +9 -9
  460. package/dist/model/units.js.map +1 -1
  461. package/dist/test/index.js +1 -1
  462. package/dist/test/index.js.map +1 -1
  463. package/dist/test/render.d.ts +2 -2
  464. package/dist/test/render.d.ts.map +1 -1
  465. package/dist/test/render.js +2 -2
  466. package/dist/test/render.js.map +1 -1
  467. package/dist/test/setup-tests.d.ts +1 -1
  468. package/dist/test/setup-tests.d.ts.map +1 -1
  469. package/dist/test/setup-tests.js +3 -2
  470. package/dist/test/setup-tests.js.map +1 -1
  471. package/dist/test-utils/index.js +1 -1
  472. package/dist/test-utils/index.js.map +1 -1
  473. package/dist/test-utils/theme.d.ts +2 -2
  474. package/dist/test-utils/theme.d.ts.map +1 -1
  475. package/dist/test-utils/theme.js +2 -2
  476. package/dist/test-utils/theme.js.map +1 -1
  477. package/dist/theme/component-overrides/alert.d.ts +1 -1
  478. package/dist/theme/component-overrides/alert.d.ts.map +1 -1
  479. package/dist/theme/component-overrides/alert.js +1 -1
  480. package/dist/theme/component-overrides/alert.js.map +1 -1
  481. package/dist/theme/component-overrides/paper.d.ts +1 -1
  482. package/dist/theme/component-overrides/paper.d.ts.map +1 -1
  483. package/dist/theme/component-overrides/paper.js.map +1 -1
  484. package/dist/theme/index.d.ts +1 -1
  485. package/dist/theme/index.d.ts.map +1 -1
  486. package/dist/theme/index.js +2 -2
  487. package/dist/theme/index.js.map +1 -1
  488. package/dist/theme/palette/background.d.ts +2 -2
  489. package/dist/theme/palette/background.d.ts.map +1 -1
  490. package/dist/theme/palette/background.js +1 -1
  491. package/dist/theme/palette/background.js.map +1 -1
  492. package/dist/theme/palette/colors/blue.d.ts +1 -1
  493. package/dist/theme/palette/colors/blue.d.ts.map +1 -1
  494. package/dist/theme/palette/colors/blue.js.map +1 -1
  495. package/dist/theme/palette/colors/green.d.ts +1 -1
  496. package/dist/theme/palette/colors/green.d.ts.map +1 -1
  497. package/dist/theme/palette/colors/green.js.map +1 -1
  498. package/dist/theme/palette/colors/grey.d.ts +1 -1
  499. package/dist/theme/palette/colors/grey.d.ts.map +1 -1
  500. package/dist/theme/palette/colors/grey.js.map +1 -1
  501. package/dist/theme/palette/colors/index.js +8 -8
  502. package/dist/theme/palette/colors/index.js.map +1 -1
  503. package/dist/theme/palette/colors/orange.d.ts +1 -1
  504. package/dist/theme/palette/colors/orange.d.ts.map +1 -1
  505. package/dist/theme/palette/colors/orange.js.map +1 -1
  506. package/dist/theme/palette/colors/purple.d.ts +1 -1
  507. package/dist/theme/palette/colors/purple.d.ts.map +1 -1
  508. package/dist/theme/palette/colors/purple.js.map +1 -1
  509. package/dist/theme/palette/colors/red.d.ts +1 -1
  510. package/dist/theme/palette/colors/red.d.ts.map +1 -1
  511. package/dist/theme/palette/colors/red.js.map +1 -1
  512. package/dist/theme/palette/error.d.ts +1 -1
  513. package/dist/theme/palette/error.d.ts.map +1 -1
  514. package/dist/theme/palette/error.js +1 -1
  515. package/dist/theme/palette/error.js.map +1 -1
  516. package/dist/theme/palette/grey.d.ts +2 -2
  517. package/dist/theme/palette/grey.d.ts.map +1 -1
  518. package/dist/theme/palette/grey.js +1 -1
  519. package/dist/theme/palette/grey.js.map +1 -1
  520. package/dist/theme/palette/index.js +1 -1
  521. package/dist/theme/palette/index.js.map +1 -1
  522. package/dist/theme/palette/palette-options.d.ts +1 -1
  523. package/dist/theme/palette/palette-options.d.ts.map +1 -1
  524. package/dist/theme/palette/palette-options.js +10 -10
  525. package/dist/theme/palette/palette-options.js.map +1 -1
  526. package/dist/theme/palette/primary.d.ts +1 -1
  527. package/dist/theme/palette/primary.d.ts.map +1 -1
  528. package/dist/theme/palette/primary.js +1 -1
  529. package/dist/theme/palette/primary.js.map +1 -1
  530. package/dist/theme/palette/secondary.d.ts +1 -1
  531. package/dist/theme/palette/secondary.d.ts.map +1 -1
  532. package/dist/theme/palette/secondary.js +1 -1
  533. package/dist/theme/palette/secondary.js.map +1 -1
  534. package/dist/theme/palette/success.d.ts +1 -1
  535. package/dist/theme/palette/success.d.ts.map +1 -1
  536. package/dist/theme/palette/success.js +1 -1
  537. package/dist/theme/palette/success.js.map +1 -1
  538. package/dist/theme/palette/text.d.ts +2 -2
  539. package/dist/theme/palette/text.d.ts.map +1 -1
  540. package/dist/theme/palette/text.js +1 -1
  541. package/dist/theme/palette/text.js.map +1 -1
  542. package/dist/theme/palette/warning.d.ts +1 -1
  543. package/dist/theme/palette/warning.d.ts.map +1 -1
  544. package/dist/theme/palette/warning.js +1 -1
  545. package/dist/theme/palette/warning.js.map +1 -1
  546. package/dist/theme/theme.d.ts +2 -1
  547. package/dist/theme/theme.d.ts.map +1 -1
  548. package/dist/theme/theme.js +5 -5
  549. package/dist/theme/theme.js.map +1 -1
  550. package/dist/theme/types/ThemeExtension.d.js +2 -1
  551. package/dist/theme/types/ThemeExtension.d.js.map +1 -1
  552. package/dist/theme/typography.d.ts +1 -1
  553. package/dist/theme/typography.d.ts.map +1 -1
  554. package/dist/theme/typography.js +6 -6
  555. package/dist/theme/typography.js.map +1 -1
  556. package/dist/utils/axis.d.ts +1 -1
  557. package/dist/utils/axis.d.ts.map +1 -1
  558. package/dist/utils/axis.js +2 -2
  559. package/dist/utils/axis.js.map +1 -1
  560. package/dist/utils/browser-storage.js +1 -1
  561. package/dist/utils/browser-storage.js.map +1 -1
  562. package/dist/utils/chart-actions.d.ts +3 -3
  563. package/dist/utils/chart-actions.d.ts.map +1 -1
  564. package/dist/utils/chart-actions.js +1 -1
  565. package/dist/utils/chart-actions.js.map +1 -1
  566. package/dist/utils/combine-sx.d.ts +1 -1
  567. package/dist/utils/combine-sx.d.ts.map +1 -1
  568. package/dist/utils/combine-sx.js.map +1 -1
  569. package/dist/utils/component-ids.js +1 -1
  570. package/dist/utils/data-field-interpolation.js +1 -1
  571. package/dist/utils/data-field-interpolation.js.map +1 -1
  572. package/dist/utils/format.d.ts.map +1 -1
  573. package/dist/utils/format.js +8 -3
  574. package/dist/utils/format.js.map +1 -1
  575. package/dist/utils/index.js +19 -19
  576. package/dist/utils/index.js.map +1 -1
  577. package/dist/utils/mathjs.d.ts +1 -1
  578. package/dist/utils/mathjs.js +1 -1
  579. package/dist/utils/memo.d.ts +1 -1
  580. package/dist/utils/memo.d.ts.map +1 -1
  581. package/dist/utils/memo.js +2 -2
  582. package/dist/utils/memo.js.map +1 -1
  583. package/dist/utils/request-interpolation.d.ts +2 -2
  584. package/dist/utils/request-interpolation.d.ts.map +1 -1
  585. package/dist/utils/request-interpolation.js +2 -2
  586. package/dist/utils/request-interpolation.js.map +1 -1
  587. package/dist/utils/selection-interpolation.d.ts +2 -2
  588. package/dist/utils/selection-interpolation.d.ts.map +1 -1
  589. package/dist/utils/selection-interpolation.js +2 -2
  590. package/dist/utils/selection-interpolation.js.map +1 -1
  591. package/dist/utils/text.d.ts +1 -1
  592. package/dist/utils/text.d.ts.map +1 -1
  593. package/dist/utils/text.js.map +1 -1
  594. package/dist/utils/theme-gen.d.ts +2 -2
  595. package/dist/utils/theme-gen.d.ts.map +1 -1
  596. package/dist/utils/theme-gen.js +1 -1
  597. package/dist/utils/theme-gen.js.map +1 -1
  598. package/dist/utils/time-series-data.d.ts +1 -1
  599. package/dist/utils/time-series-data.d.ts.map +1 -1
  600. package/dist/utils/time-series-data.js +1 -1
  601. package/dist/utils/time-series-data.js.map +1 -1
  602. package/dist/utils/trace-data.d.ts +2 -2
  603. package/dist/utils/trace-data.d.ts.map +1 -1
  604. package/dist/utils/trace-data.js.map +1 -1
  605. package/dist/utils/transform-data.d.ts +1 -1
  606. package/dist/utils/transform-data.d.ts.map +1 -1
  607. package/dist/utils/transform-data.js.map +1 -1
  608. package/dist/utils/value-mapping.d.ts +1 -1
  609. package/dist/utils/value-mapping.d.ts.map +1 -1
  610. package/dist/utils/value-mapping.js +1 -1
  611. package/dist/utils/value-mapping.js.map +1 -1
  612. package/dist/utils/variable-interpolation.d.ts +9 -1
  613. package/dist/utils/variable-interpolation.d.ts.map +1 -1
  614. package/dist/utils/variable-interpolation.js +12 -0
  615. package/dist/utils/variable-interpolation.js.map +1 -1
  616. package/package.json +10 -10
  617. package/dist/cjs/AlignSelector/AlignSelector.js +0 -50
  618. package/dist/cjs/AlignSelector/index.js +0 -30
  619. package/dist/cjs/ColorPicker/ColorPicker.js +0 -106
  620. package/dist/cjs/ColorPicker/OptionsColorPicker.js +0 -92
  621. package/dist/cjs/ColorPicker/index.js +0 -31
  622. package/dist/cjs/ContentWithLegend/ContentWithLegend.js +0 -71
  623. package/dist/cjs/ContentWithLegend/index.js +0 -30
  624. package/dist/cjs/ContentWithLegend/model/content-with-legend-model.js +0 -122
  625. package/dist/cjs/DensitySelector/DensitySelector.js +0 -54
  626. package/dist/cjs/DensitySelector/index.js +0 -30
  627. package/dist/cjs/Dialog/Dialog.js +0 -102
  628. package/dist/cjs/Dialog/DiscardChangesConfirmationDialog.js +0 -55
  629. package/dist/cjs/Dialog/index.js +0 -31
  630. package/dist/cjs/DragAndDrop/DragAndDropList.js +0 -159
  631. package/dist/cjs/DragAndDrop/DragButton.js +0 -123
  632. package/dist/cjs/DragAndDrop/DropIndicator.js +0 -52
  633. package/dist/cjs/DragAndDrop/index.js +0 -32
  634. package/dist/cjs/DragAndDrop/model.js +0 -25
  635. package/dist/cjs/Drawer/Drawer.js +0 -44
  636. package/dist/cjs/Drawer/index.js +0 -30
  637. package/dist/cjs/EChart/EChart.js +0 -203
  638. package/dist/cjs/EChart/index.js +0 -31
  639. package/dist/cjs/EChart/timezone-formatter.js +0 -49
  640. package/dist/cjs/ErrorAlert.js +0 -31
  641. package/dist/cjs/ErrorBoundary.js +0 -24
  642. package/dist/cjs/FontSizeSelector/FontSizeSelector.js +0 -132
  643. package/dist/cjs/FontSizeSelector/index.js +0 -30
  644. package/dist/cjs/FormEditor/FormActions.js +0 -83
  645. package/dist/cjs/FormEditor/index.js +0 -30
  646. package/dist/cjs/FormatControls/FormatControls.js +0 -119
  647. package/dist/cjs/FormatControls/UnitSelector.js +0 -55
  648. package/dist/cjs/FormatControls/index.js +0 -31
  649. package/dist/cjs/InfoTooltip/InfoTooltip.js +0 -86
  650. package/dist/cjs/InfoTooltip/index.js +0 -30
  651. package/dist/cjs/JSONEditor.js +0 -69
  652. package/dist/cjs/Legend/CompactLegend.js +0 -56
  653. package/dist/cjs/Legend/Legend.js +0 -131
  654. package/dist/cjs/Legend/LegendColorBadge.js +0 -39
  655. package/dist/cjs/Legend/ListLegend.js +0 -54
  656. package/dist/cjs/Legend/ListLegendItem.js +0 -84
  657. package/dist/cjs/Legend/TableLegend.js +0 -98
  658. package/dist/cjs/Legend/index.js +0 -31
  659. package/dist/cjs/Legend/legend-model.js +0 -27
  660. package/dist/cjs/LinksEditor/LinkEditorForm.js +0 -95
  661. package/dist/cjs/LinksEditor/index.js +0 -30
  662. package/dist/cjs/ModeSelector/ModeSelector.js +0 -51
  663. package/dist/cjs/ModeSelector/index.js +0 -30
  664. package/dist/cjs/OptionsEditorLayout/OptionsEditorColumn.js +0 -34
  665. package/dist/cjs/OptionsEditorLayout/OptionsEditorControl.js +0 -95
  666. package/dist/cjs/OptionsEditorLayout/OptionsEditorGrid.js +0 -31
  667. package/dist/cjs/OptionsEditorLayout/OptionsEditorGroup.js +0 -59
  668. package/dist/cjs/OptionsEditorLayout/index.js +0 -33
  669. package/dist/cjs/Overlay/Overlay.js +0 -71
  670. package/dist/cjs/Overlay/index.js +0 -30
  671. package/dist/cjs/RefreshIntervalPicker/RefreshIntervalPicker.js +0 -68
  672. package/dist/cjs/RefreshIntervalPicker/index.js +0 -30
  673. package/dist/cjs/SettingsAutocomplete/SettingsAutocomplete.js +0 -82
  674. package/dist/cjs/SettingsAutocomplete/index.js +0 -30
  675. package/dist/cjs/SortSelector/SortSelector.js +0 -50
  676. package/dist/cjs/SortSelector/SortSelectorButtons.js +0 -50
  677. package/dist/cjs/SortSelector/index.js +0 -31
  678. package/dist/cjs/Table/InnerTable.js +0 -47
  679. package/dist/cjs/Table/Table.js +0 -222
  680. package/dist/cjs/Table/TableBody.js +0 -31
  681. package/dist/cjs/Table/TableCell.js +0 -153
  682. package/dist/cjs/Table/TableCheckbox.js +0 -57
  683. package/dist/cjs/Table/TableFoot.js +0 -31
  684. package/dist/cjs/Table/TableHead.js +0 -31
  685. package/dist/cjs/Table/TableHeaderCell.js +0 -93
  686. package/dist/cjs/Table/TableRow.js +0 -37
  687. package/dist/cjs/Table/TableToolbar.js +0 -151
  688. package/dist/cjs/Table/VirtualizedTable.js +0 -284
  689. package/dist/cjs/Table/VirtualizedTableContainer.js +0 -36
  690. package/dist/cjs/Table/hooks/useFuzzySearch.js +0 -67
  691. package/dist/cjs/Table/hooks/useTableKeyboardNav.js +0 -108
  692. package/dist/cjs/Table/hooks/useVirtualizedTableKeyboardNav.js +0 -89
  693. package/dist/cjs/Table/index.js +0 -31
  694. package/dist/cjs/Table/model/table-model.js +0 -138
  695. package/dist/cjs/ThresholdsEditor/ThresholdInput.js +0 -80
  696. package/dist/cjs/ThresholdsEditor/ThresholdsEditor.js +0 -282
  697. package/dist/cjs/ThresholdsEditor/index.js +0 -30
  698. package/dist/cjs/TimeRangeSelector/DateTimeRangePicker.js +0 -204
  699. package/dist/cjs/TimeRangeSelector/TimeRangeSelector.js +0 -271
  700. package/dist/cjs/TimeRangeSelector/index.js +0 -31
  701. package/dist/cjs/TimeRangeSelector/utils.js +0 -72
  702. package/dist/cjs/TimeSeriesTooltip/SeriesInfo.js +0 -98
  703. package/dist/cjs/TimeSeriesTooltip/SeriesLabelsStack.js +0 -107
  704. package/dist/cjs/TimeSeriesTooltip/SeriesMarker.js +0 -41
  705. package/dist/cjs/TimeSeriesTooltip/TimeChartTooltip.js +0 -113
  706. package/dist/cjs/TimeSeriesTooltip/TooltipContent.js +0 -58
  707. package/dist/cjs/TimeSeriesTooltip/TooltipHeader.js +0 -168
  708. package/dist/cjs/TimeSeriesTooltip/index.js +0 -39
  709. package/dist/cjs/TimeSeriesTooltip/nearby-series.js +0 -454
  710. package/dist/cjs/TimeSeriesTooltip/tooltip-model.js +0 -148
  711. package/dist/cjs/TimeSeriesTooltip/types.js +0 -16
  712. package/dist/cjs/TimeSeriesTooltip/utils.js +0 -199
  713. package/dist/cjs/TimeZoneSelector.js +0 -63
  714. package/dist/cjs/ToolbarIconButton/ToolbarIconButton.js +0 -40
  715. package/dist/cjs/ToolbarIconButton/index.js +0 -30
  716. package/dist/cjs/TransformsEditor/TransformEditor.js +0 -297
  717. package/dist/cjs/TransformsEditor/TransformEditorContainer.js +0 -131
  718. package/dist/cjs/TransformsEditor/TransformsEditor.js +0 -103
  719. package/dist/cjs/TransformsEditor/index.js +0 -30
  720. package/dist/cjs/ValueMappingEditor/ValueMappingEditor.js +0 -387
  721. package/dist/cjs/ValueMappingEditor/ValueMappingsEditor.js +0 -131
  722. package/dist/cjs/ValueMappingEditor/index.js +0 -30
  723. package/dist/cjs/YAxisLabel.js +0 -50
  724. package/dist/cjs/context/ChartsProvider.js +0 -114
  725. package/dist/cjs/context/ItemActionsProvider.js +0 -111
  726. package/dist/cjs/context/SelectionProvider.js +0 -128
  727. package/dist/cjs/context/SnackbarProvider.js +0 -126
  728. package/dist/cjs/context/TimeZoneProvider.js +0 -98
  729. package/dist/cjs/context/index.js +0 -34
  730. package/dist/cjs/controls/TextField.js +0 -54
  731. package/dist/cjs/controls/index.js +0 -30
  732. package/dist/cjs/index.js +0 -67
  733. package/dist/cjs/model/action.js +0 -43
  734. package/dist/cjs/model/bits.js +0 -113
  735. package/dist/cjs/model/bytes.js +0 -115
  736. package/dist/cjs/model/constants.js +0 -23
  737. package/dist/cjs/model/currency.js +0 -126
  738. package/dist/cjs/model/date.js +0 -297
  739. package/dist/cjs/model/decimal.js +0 -72
  740. package/dist/cjs/model/formatterCache.js +0 -120
  741. package/dist/cjs/model/graph.js +0 -59
  742. package/dist/cjs/model/index.js +0 -50
  743. package/dist/cjs/model/legend.js +0 -101
  744. package/dist/cjs/model/percent.js +0 -82
  745. package/dist/cjs/model/temperature.js +0 -72
  746. package/dist/cjs/model/theme.js +0 -16
  747. package/dist/cjs/model/thresholds.js +0 -16
  748. package/dist/cjs/model/throughput.js +0 -161
  749. package/dist/cjs/model/time.js +0 -178
  750. package/dist/cjs/model/timeOption.js +0 -34
  751. package/dist/cjs/model/timeZoneOption.js +0 -34
  752. package/dist/cjs/model/transforms.js +0 -29
  753. package/dist/cjs/model/units.js +0 -186
  754. package/dist/cjs/model/utils.js +0 -48
  755. package/dist/cjs/model/value-mapping.js +0 -16
  756. package/dist/cjs/test/index.js +0 -30
  757. package/dist/cjs/test/render.js +0 -38
  758. package/dist/cjs/test/setup-tests.js +0 -20
  759. package/dist/cjs/test-utils/index.js +0 -30
  760. package/dist/cjs/test-utils/theme.js +0 -61
  761. package/dist/cjs/theme/component-overrides/alert.js +0 -104
  762. package/dist/cjs/theme/component-overrides/paper.js +0 -29
  763. package/dist/cjs/theme/index.js +0 -31
  764. package/dist/cjs/theme/palette/background.js +0 -46
  765. package/dist/cjs/theme/palette/colors/blue.js +0 -37
  766. package/dist/cjs/theme/palette/colors/common.js +0 -32
  767. package/dist/cjs/theme/palette/colors/green.js +0 -37
  768. package/dist/cjs/theme/palette/colors/grey.js +0 -37
  769. package/dist/cjs/theme/palette/colors/index.js +0 -37
  770. package/dist/cjs/theme/palette/colors/orange.js +0 -37
  771. package/dist/cjs/theme/palette/colors/purple.js +0 -37
  772. package/dist/cjs/theme/palette/colors/red.js +0 -37
  773. package/dist/cjs/theme/palette/colors/types.js +0 -16
  774. package/dist/cjs/theme/palette/error.js +0 -34
  775. package/dist/cjs/theme/palette/grey.js +0 -50
  776. package/dist/cjs/theme/palette/index.js +0 -30
  777. package/dist/cjs/theme/palette/palette-options.js +0 -61
  778. package/dist/cjs/theme/palette/primary.js +0 -34
  779. package/dist/cjs/theme/palette/secondary.js +0 -34
  780. package/dist/cjs/theme/palette/success.js +0 -34
  781. package/dist/cjs/theme/palette/text.js +0 -44
  782. package/dist/cjs/theme/palette/warning.js +0 -34
  783. package/dist/cjs/theme/theme.js +0 -90
  784. package/dist/cjs/theme/types/ThemeExtension.d.js +0 -17
  785. package/dist/cjs/theme/typography.js +0 -99
  786. package/dist/cjs/utils/axis.js +0 -122
  787. package/dist/cjs/utils/browser-storage.js +0 -62
  788. package/dist/cjs/utils/chart-actions.js +0 -180
  789. package/dist/cjs/utils/combine-sx.js +0 -31
  790. package/dist/cjs/utils/component-ids.js +0 -33
  791. package/dist/cjs/utils/data-field-interpolation.js +0 -230
  792. package/dist/cjs/utils/format.js +0 -127
  793. package/dist/cjs/utils/index.js +0 -48
  794. package/dist/cjs/utils/mathjs.js +0 -38
  795. package/dist/cjs/utils/memo.js +0 -64
  796. package/dist/cjs/utils/regexp.js +0 -54
  797. package/dist/cjs/utils/request-interpolation.js +0 -99
  798. package/dist/cjs/utils/selection-interpolation.js +0 -69
  799. package/dist/cjs/utils/text.js +0 -52
  800. package/dist/cjs/utils/theme-gen.js +0 -274
  801. package/dist/cjs/utils/time-series-data.js +0 -141
  802. package/dist/cjs/utils/trace-data.js +0 -25
  803. package/dist/cjs/utils/transform-data.js +0 -157
  804. package/dist/cjs/utils/types.js +0 -16
  805. package/dist/cjs/utils/value-mapping.js +0 -105
  806. package/dist/cjs/utils/variable-interpolation.js +0 -198
@@ -1,5 +1,5 @@
1
- import { ButtonGroupProps } from '@mui/material';
2
- import { ReactElement } from 'react';
1
+ import type { ButtonGroupProps } from '@mui/material';
2
+ import type { ReactElement } from 'react';
3
3
  export type AlignOption = 'left' | 'center' | 'right';
4
4
  export interface AlignSelectorProps extends Omit<ButtonGroupProps, 'onChange'> {
5
5
  onChange: (align: AlignOption) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"AlignSelector.d.ts","sourceRoot":"","sources":["../../src/AlignSelector/AlignSelector.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC;IAC5E,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAc,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,GAAG,YAAY,CA0BtG"}
1
+ {"version":3,"file":"AlignSelector.d.ts","sourceRoot":"","sources":["../../src/AlignSelector/AlignSelector.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC;IAC5E,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAc,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,GAAG,YAAY,CA0BtG"}
@@ -1,4 +1,3 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
1
  // Copyright The Perses Authors
3
2
  // Licensed under the Apache License | Version 2.0 (the "License");
4
3
  // you may not use this file except in compliance with the License.
@@ -11,7 +10,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND | either express or implied.
12
11
  // See the License for the specific language governing permissions and
13
12
  // limitations under the License.
14
- import { Button, ButtonGroup } from '@mui/material';
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ import { Button, ButtonGroup } from "@mui/material";
15
15
  export function AlignSelector({ onChange, value = 'left', ...props }) {
16
16
  const handleSortChange = (option)=>{
17
17
  onChange(option);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/AlignSelector/AlignSelector.tsx"],"sourcesContent":["// Copyright 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 { Button, ButtonGroup, ButtonGroupProps } from '@mui/material';\nimport { ReactElement } from 'react';\n\nexport type AlignOption = 'left' | 'center' | 'right';\n\nexport interface AlignSelectorProps extends Omit<ButtonGroupProps, 'onChange'> {\n onChange: (align: AlignOption) => void;\n value?: AlignOption;\n}\n\nexport function AlignSelector({ onChange, value = 'left', ...props }: AlignSelectorProps): ReactElement {\n const handleSortChange = (option: AlignOption): void => {\n onChange(option);\n };\n\n return (\n <ButtonGroup aria-label=\"Alignement\" {...props}>\n <Button key=\"left\" onClick={() => handleSortChange('left')} variant={value === 'left' ? 'contained' : 'outlined'}>\n Left\n </Button>\n <Button\n key=\"center\"\n onClick={() => handleSortChange('center')}\n variant={value === 'center' ? 'contained' : 'outlined'}\n >\n Center\n </Button>\n <Button\n key=\"right\"\n onClick={() => handleSortChange('right')}\n variant={value === 'right' ? 'contained' : 'outlined'}\n >\n Right\n </Button>\n </ButtonGroup>\n );\n}\n"],"names":["Button","ButtonGroup","AlignSelector","onChange","value","props","handleSortChange","option","aria-label","onClick","variant"],"mappings":";AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,wEAAwE;AACxE,qEAAqE;AACrE,6EAA6E;AAC7E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,MAAM,EAAEC,WAAW,QAA0B,gBAAgB;AAUtE,OAAO,SAASC,cAAc,EAAEC,QAAQ,EAAEC,QAAQ,MAAM,EAAE,GAAGC,OAA2B;IACtF,MAAMC,mBAAmB,CAACC;QACxBJ,SAASI;IACX;IAEA,qBACE,MAACN;QAAYO,cAAW;QAAc,GAAGH,KAAK;;0BAC5C,KAACL;gBAAkBS,SAAS,IAAMH,iBAAiB;gBAASI,SAASN,UAAU,SAAS,cAAc;0BAAY;eAAtG;0BAGZ,KAACJ;gBAECS,SAAS,IAAMH,iBAAiB;gBAChCI,SAASN,UAAU,WAAW,cAAc;0BAC7C;eAHK;0BAMN,KAACJ;gBAECS,SAAS,IAAMH,iBAAiB;gBAChCI,SAASN,UAAU,UAAU,cAAc;0BAC5C;eAHK;;;AAQZ"}
1
+ {"version":3,"sources":["../../src/AlignSelector/AlignSelector.tsx"],"sourcesContent":["// Copyright 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 type { ButtonGroupProps } from '@mui/material';\nimport { Button, ButtonGroup } from '@mui/material';\nimport type { ReactElement } from 'react';\n\nexport type AlignOption = 'left' | 'center' | 'right';\n\nexport interface AlignSelectorProps extends Omit<ButtonGroupProps, 'onChange'> {\n onChange: (align: AlignOption) => void;\n value?: AlignOption;\n}\n\nexport function AlignSelector({ onChange, value = 'left', ...props }: AlignSelectorProps): ReactElement {\n const handleSortChange = (option: AlignOption): void => {\n onChange(option);\n };\n\n return (\n <ButtonGroup aria-label=\"Alignement\" {...props}>\n <Button key=\"left\" onClick={() => handleSortChange('left')} variant={value === 'left' ? 'contained' : 'outlined'}>\n Left\n </Button>\n <Button\n key=\"center\"\n onClick={() => handleSortChange('center')}\n variant={value === 'center' ? 'contained' : 'outlined'}\n >\n Center\n </Button>\n <Button\n key=\"right\"\n onClick={() => handleSortChange('right')}\n variant={value === 'right' ? 'contained' : 'outlined'}\n >\n Right\n </Button>\n </ButtonGroup>\n );\n}\n"],"names":["Button","ButtonGroup","AlignSelector","onChange","value","props","handleSortChange","option","aria-label","onClick","variant"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,wEAAwE;AACxE,qEAAqE;AACrE,6EAA6E;AAC7E,sEAAsE;AACtE,iCAAiC;;AAGjC,SAASA,MAAM,EAAEC,WAAW,QAAQ,gBAAgB;AAUpD,OAAO,SAASC,cAAc,EAAEC,QAAQ,EAAEC,QAAQ,MAAM,EAAE,GAAGC,OAA2B;IACtF,MAAMC,mBAAmB,CAACC;QACxBJ,SAASI;IACX;IAEA,qBACE,MAACN;QAAYO,cAAW;QAAc,GAAGH,KAAK;;0BAC5C,KAACL;gBAAkBS,SAAS,IAAMH,iBAAiB;gBAASI,SAASN,UAAU,SAAS,cAAc;0BAAY;eAAtG;0BAGZ,KAACJ;gBAECS,SAAS,IAAMH,iBAAiB;gBAChCI,SAASN,UAAU,WAAW,cAAc;0BAC7C;eAHK;0BAMN,KAACJ;gBAECS,SAAS,IAAMH,iBAAiB;gBAChCI,SAASN,UAAU,UAAU,cAAc;0BAC5C;eAHK;;;AAQZ"}
@@ -10,6 +10,6 @@
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
+ export * from "./AlignSelector.js";
14
14
 
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/AlignSelector/index.ts"],"sourcesContent":["// Copyright 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';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,kBAAkB"}
1
+ {"version":3,"sources":["../../src/AlignSelector/index.ts"],"sourcesContent":["// Copyright 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';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,qBAAkB"}
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import type { ReactElement } from 'react';
2
2
  interface ColorPickerProps {
3
3
  color: string;
4
4
  onChange?: (color: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAe,YAAY,EAAY,MAAM,OAAO,CAAC;AAK5D,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,0CAA2C,gBAAgB,KAAG,YAmDrF,CAAC"}
1
+ {"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAe,YAAY,EAAE,MAAM,OAAO,CAAC;AAIvD,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,GAAI,uCAAuC,gBAAgB,KAAG,YAmDrF,CAAC"}
@@ -11,11 +11,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- import { IconButton, Stack, TextField } from '@mui/material';
15
- import { useState } from 'react';
16
- import { HexColorPicker } from 'react-colorful';
17
- import CircleIcon from 'mdi-material-ui/Circle';
18
- import DeleteIcon from 'mdi-material-ui/Delete';
14
+ import { IconButton, Stack, TextField } from "@mui/material";
15
+ import CircleIcon from "mdi-material-ui/Circle";
16
+ import DeleteIcon from "mdi-material-ui/Delete";
17
+ import { useState } from "react";
18
+ import { HexColorPicker } from "react-colorful";
19
19
  export const ColorPicker = ({ color, onChange, onClear, palette })=>{
20
20
  // value is the visible value for the controlled text input
21
21
  const [value, setValue] = useState(color);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ColorPicker/ColorPicker.tsx"],"sourcesContent":["// Copyright 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 { IconButton, Stack, TextField } from '@mui/material';\nimport { ChangeEvent, ReactElement, useState } from 'react';\nimport { HexColorPicker } from 'react-colorful';\nimport CircleIcon from 'mdi-material-ui/Circle';\nimport DeleteIcon from 'mdi-material-ui/Delete';\n\ninterface ColorPickerProps {\n color: string;\n onChange?: (color: string) => void;\n onClear?: () => void;\n /**\n * Preset color palette\n */\n palette?: string[];\n}\n\nexport const ColorPicker = ({ color, onChange, onClear, palette }: ColorPickerProps): ReactElement => {\n // value is the visible value for the controlled text input\n const [value, setValue] = useState(color);\n\n const handleColorChange = (color: string): void => {\n setValue(color);\n onChange?.(color);\n };\n\n // we should update this if https://github.com/omgovich/react-colorful/issues/157 is resolved\n const handleInputChange = (e: ChangeEvent<HTMLInputElement>): void => {\n const inputValue = e.target.value.replace(/([^0-9A-F]+)/gi, '').substring(0, 8);\n setValue(`#${inputValue}`); // always prefix input value with # to indicate hex format\n // only set color if input value is a valid hex color\n if (isValidHex(e.target.value)) {\n onChange?.(e.target.value);\n }\n };\n\n return (\n <Stack spacing={1}>\n <HexColorPicker color={color} onChange={handleColorChange} style={{ width: '100%' }} />\n <Stack direction=\"row\" flexWrap=\"wrap\" justifyContent=\"space-evenly\" width=\"200px\">\n {palette &&\n palette.map((color, i) => (\n <IconButton\n key={i}\n size=\"small\"\n aria-label={`change color to ${color}`}\n sx={{ color }}\n onClick={() => handleColorChange(color)}\n >\n <CircleIcon />\n </IconButton>\n ))}\n </Stack>\n <Stack direction=\"row\" gap={1} alignItems=\"center\">\n <TextField\n inputProps={{ 'aria-label': 'enter hex color' }}\n fullWidth\n value={value}\n onChange={handleInputChange}\n />\n {onClear && (\n <IconButton onClick={onClear}>\n <DeleteIcon />\n </IconButton>\n )}\n </Stack>\n </Stack>\n );\n};\n\nconst isValidHex = (value: string, alpha?: boolean): boolean => {\n const matcher = /^#?([0-9A-F]{3,8})$/i;\n const match = matcher.exec(value);\n const length = match && match[1] ? match[1].length : 0;\n return (\n length === 3 || // '#rgb' format\n length === 6 || // '#rrggbb' format\n (!!alpha && length === 4) || // '#rgba' format\n (!!alpha && length === 8) // '#rrggbbaa' format\n );\n};\n"],"names":["IconButton","Stack","TextField","useState","HexColorPicker","CircleIcon","DeleteIcon","ColorPicker","color","onChange","onClear","palette","value","setValue","handleColorChange","handleInputChange","e","inputValue","target","replace","substring","isValidHex","spacing","style","width","direction","flexWrap","justifyContent","map","i","size","aria-label","sx","onClick","gap","alignItems","inputProps","fullWidth","alpha","matcher","match","exec","length"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,UAAU,EAAEC,KAAK,EAAEC,SAAS,QAAQ,gBAAgB;AAC7D,SAAoCC,QAAQ,QAAQ,QAAQ;AAC5D,SAASC,cAAc,QAAQ,iBAAiB;AAChD,OAAOC,gBAAgB,yBAAyB;AAChD,OAAOC,gBAAgB,yBAAyB;AAYhD,OAAO,MAAMC,cAAc,CAAC,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,EAAoB;IACjF,2DAA2D;IAC3D,MAAM,CAACC,OAAOC,SAAS,GAAGV,SAASK;IAEnC,MAAMM,oBAAoB,CAACN;QACzBK,SAASL;QACTC,WAAWD;IACb;IAEA,6FAA6F;IAC7F,MAAMO,oBAAoB,CAACC;QACzB,MAAMC,aAAaD,EAAEE,MAAM,CAACN,KAAK,CAACO,OAAO,CAAC,kBAAkB,IAAIC,SAAS,CAAC,GAAG;QAC7EP,SAAS,CAAC,CAAC,EAAEI,YAAY,GAAG,0DAA0D;QACtF,qDAAqD;QACrD,IAAII,WAAWL,EAAEE,MAAM,CAACN,KAAK,GAAG;YAC9BH,WAAWO,EAAEE,MAAM,CAACN,KAAK;QAC3B;IACF;IAEA,qBACE,MAACX;QAAMqB,SAAS;;0BACd,KAAClB;gBAAeI,OAAOA;gBAAOC,UAAUK;gBAAmBS,OAAO;oBAAEC,OAAO;gBAAO;;0BAClF,KAACvB;gBAAMwB,WAAU;gBAAMC,UAAS;gBAAOC,gBAAe;gBAAeH,OAAM;0BACxEb,WACCA,QAAQiB,GAAG,CAAC,CAACpB,OAAOqB,kBAClB,KAAC7B;wBAEC8B,MAAK;wBACLC,cAAY,CAAC,gBAAgB,EAAEvB,OAAO;wBACtCwB,IAAI;4BAAExB;wBAAM;wBACZyB,SAAS,IAAMnB,kBAAkBN;kCAEjC,cAAA,KAACH;uBANIwB;;0BAUb,MAAC5B;gBAAMwB,WAAU;gBAAMS,KAAK;gBAAGC,YAAW;;kCACxC,KAACjC;wBACCkC,YAAY;4BAAE,cAAc;wBAAkB;wBAC9CC,SAAS;wBACTzB,OAAOA;wBACPH,UAAUM;;oBAEXL,yBACC,KAACV;wBAAWiC,SAASvB;kCACnB,cAAA,KAACJ;;;;;;AAMb,EAAE;AAEF,MAAMe,aAAa,CAACT,OAAe0B;IACjC,MAAMC,UAAU;IAChB,MAAMC,QAAQD,QAAQE,IAAI,CAAC7B;IAC3B,MAAM8B,SAASF,SAASA,KAAK,CAAC,EAAE,GAAGA,KAAK,CAAC,EAAE,CAACE,MAAM,GAAG;IACrD,OACEA,WAAW,KAAK,gBAAgB;IAChCA,WAAW,KAAK,mBAAmB;IAClC,CAAC,CAACJ,SAASI,WAAW,KAAM,iBAAiB;IAC7C,CAAC,CAACJ,SAASI,WAAW,EAAG,qBAAqB;;AAEnD"}
1
+ {"version":3,"sources":["../../src/ColorPicker/ColorPicker.tsx"],"sourcesContent":["// Copyright 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 { IconButton, Stack, TextField } from '@mui/material';\nimport CircleIcon from 'mdi-material-ui/Circle';\nimport DeleteIcon from 'mdi-material-ui/Delete';\nimport type { ChangeEvent, ReactElement } from 'react';\nimport { useState } from 'react';\nimport { HexColorPicker } from 'react-colorful';\n\ninterface ColorPickerProps {\n color: string;\n onChange?: (color: string) => void;\n onClear?: () => void;\n /**\n * Preset color palette\n */\n palette?: string[];\n}\n\nexport const ColorPicker = ({ color, onChange, onClear, palette }: ColorPickerProps): ReactElement => {\n // value is the visible value for the controlled text input\n const [value, setValue] = useState(color);\n\n const handleColorChange = (color: string): void => {\n setValue(color);\n onChange?.(color);\n };\n\n // we should update this if https://github.com/omgovich/react-colorful/issues/157 is resolved\n const handleInputChange = (e: ChangeEvent<HTMLInputElement>): void => {\n const inputValue = e.target.value.replace(/([^0-9A-F]+)/gi, '').substring(0, 8);\n setValue(`#${inputValue}`); // always prefix input value with # to indicate hex format\n // only set color if input value is a valid hex color\n if (isValidHex(e.target.value)) {\n onChange?.(e.target.value);\n }\n };\n\n return (\n <Stack spacing={1}>\n <HexColorPicker color={color} onChange={handleColorChange} style={{ width: '100%' }} />\n <Stack direction=\"row\" flexWrap=\"wrap\" justifyContent=\"space-evenly\" width=\"200px\">\n {palette &&\n palette.map((color, i) => (\n <IconButton\n key={i}\n size=\"small\"\n aria-label={`change color to ${color}`}\n sx={{ color }}\n onClick={() => handleColorChange(color)}\n >\n <CircleIcon />\n </IconButton>\n ))}\n </Stack>\n <Stack direction=\"row\" gap={1} alignItems=\"center\">\n <TextField\n inputProps={{ 'aria-label': 'enter hex color' }}\n fullWidth\n value={value}\n onChange={handleInputChange}\n />\n {onClear && (\n <IconButton onClick={onClear}>\n <DeleteIcon />\n </IconButton>\n )}\n </Stack>\n </Stack>\n );\n};\n\nconst isValidHex = (value: string, alpha?: boolean): boolean => {\n const matcher = /^#?([0-9A-F]{3,8})$/i;\n const match = matcher.exec(value);\n const length = match && match[1] ? match[1].length : 0;\n return (\n length === 3 || // '#rgb' format\n length === 6 || // '#rrggbb' format\n (!!alpha && length === 4) || // '#rgba' format\n (!!alpha && length === 8) // '#rrggbbaa' format\n );\n};\n"],"names":["IconButton","Stack","TextField","CircleIcon","DeleteIcon","useState","HexColorPicker","ColorPicker","color","onChange","onClear","palette","value","setValue","handleColorChange","handleInputChange","e","inputValue","target","replace","substring","isValidHex","spacing","style","width","direction","flexWrap","justifyContent","map","i","size","aria-label","sx","onClick","gap","alignItems","inputProps","fullWidth","alpha","matcher","match","exec","length"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,UAAU,EAAEC,KAAK,EAAEC,SAAS,QAAQ,gBAAgB;AAC7D,OAAOC,gBAAgB,yBAAyB;AAChD,OAAOC,gBAAgB,yBAAyB;AAEhD,SAASC,QAAQ,QAAQ,QAAQ;AACjC,SAASC,cAAc,QAAQ,iBAAiB;AAYhD,OAAO,MAAMC,cAAc,CAAC,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,EAAoB;IACjF,2DAA2D;IAC3D,MAAM,CAACC,OAAOC,SAAS,GAAGR,SAASG;IAEnC,MAAMM,oBAAoB,CAACN;QACzBK,SAASL;QACTC,WAAWD;IACb;IAEA,6FAA6F;IAC7F,MAAMO,oBAAoB,CAACC;QACzB,MAAMC,aAAaD,EAAEE,MAAM,CAACN,KAAK,CAACO,OAAO,CAAC,kBAAkB,IAAIC,SAAS,CAAC,GAAG;QAC7EP,SAAS,CAAC,CAAC,EAAEI,YAAY,GAAG,0DAA0D;QACtF,qDAAqD;QACrD,IAAII,WAAWL,EAAEE,MAAM,CAACN,KAAK,GAAG;YAC9BH,WAAWO,EAAEE,MAAM,CAACN,KAAK;QAC3B;IACF;IAEA,qBACE,MAACX;QAAMqB,SAAS;;0BACd,KAAChB;gBAAeE,OAAOA;gBAAOC,UAAUK;gBAAmBS,OAAO;oBAAEC,OAAO;gBAAO;;0BAClF,KAACvB;gBAAMwB,WAAU;gBAAMC,UAAS;gBAAOC,gBAAe;gBAAeH,OAAM;0BACxEb,WACCA,QAAQiB,GAAG,CAAC,CAACpB,OAAOqB,kBAClB,KAAC7B;wBAEC8B,MAAK;wBACLC,cAAY,CAAC,gBAAgB,EAAEvB,OAAO;wBACtCwB,IAAI;4BAAExB;wBAAM;wBACZyB,SAAS,IAAMnB,kBAAkBN;kCAEjC,cAAA,KAACL;uBANI0B;;0BAUb,MAAC5B;gBAAMwB,WAAU;gBAAMS,KAAK;gBAAGC,YAAW;;kCACxC,KAACjC;wBACCkC,YAAY;4BAAE,cAAc;wBAAkB;wBAC9CC,SAAS;wBACTzB,OAAOA;wBACPH,UAAUM;;oBAEXL,yBACC,KAACV;wBAAWiC,SAASvB;kCACnB,cAAA,KAACN;;;;;;AAMb,EAAE;AAEF,MAAMiB,aAAa,CAACT,OAAe0B;IACjC,MAAMC,UAAU;IAChB,MAAMC,QAAQD,QAAQE,IAAI,CAAC7B;IAC3B,MAAM8B,SAASF,SAASA,KAAK,CAAC,EAAE,GAAGA,KAAK,CAAC,EAAE,CAACE,MAAM,GAAG;IACrD,OACEA,WAAW,KAAK,gBAAgB;IAChCA,WAAW,KAAK,mBAAmB;IAClC,CAAC,CAACJ,SAASI,WAAW,KAAM,iBAAiB;IAC7C,CAAC,CAACJ,SAASI,WAAW,EAAG,qBAAqB;;AAEnD"}
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import type { ReactElement } from 'react';
2
2
  export interface OptionsColorPickerProps {
3
3
  label: string;
4
4
  color: string;
@@ -1 +1 @@
1
- {"version":3,"file":"OptionsColorPicker.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/OptionsColorPicker.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAC;AAM3D,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,KAAK,EACL,IAAc,EACd,aAAa,EACb,OAAO,GACR,EAAE,uBAAuB,GAAG,YAAY,CA8CxC"}
1
+ {"version":3,"file":"OptionsColorPicker.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/OptionsColorPicker.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAMtD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,KAAK,EACL,IAAc,EACd,aAAa,EACb,OAAO,GACR,EAAE,uBAAuB,GAAG,YAAY,CA8CxC"}
@@ -11,11 +11,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- import { useState } from 'react';
15
- import { styled, IconButton, Popover } from '@mui/material';
16
- import CircleIcon from 'mdi-material-ui/Circle';
17
- import { useChartsTheme } from '../context';
18
- import { ColorPicker } from './ColorPicker';
14
+ import { styled, IconButton, Popover } from "@mui/material";
15
+ import CircleIcon from "mdi-material-ui/Circle";
16
+ import { useState } from "react";
17
+ import { useChartsTheme } from "../context/index.js";
18
+ import { ColorPicker } from "./ColorPicker.js";
19
19
  export function OptionsColorPicker({ label, color, size = 'small', onColorChange, onClear }) {
20
20
  const [anchorEl, setAnchorEl] = useState(null);
21
21
  const isOpen = Boolean(anchorEl);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ColorPicker/OptionsColorPicker.tsx"],"sourcesContent":["// Copyright 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 { ReactElement, useState, MouseEvent } from 'react';\nimport { styled, IconButton, Popover } from '@mui/material';\nimport CircleIcon from 'mdi-material-ui/Circle';\nimport { useChartsTheme } from '../context';\nimport { ColorPicker } from './ColorPicker';\n\nexport interface OptionsColorPickerProps {\n label: string;\n color: string;\n size?: 'small' | 'medium' | 'large';\n onColorChange: (color: string) => void;\n onClear?: () => void;\n}\n\nexport function OptionsColorPicker({\n label,\n color,\n size = 'small',\n onColorChange,\n onClear,\n}: OptionsColorPickerProps): ReactElement {\n const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null);\n const isOpen = Boolean(anchorEl);\n\n const openColorPicker = (event: MouseEvent<HTMLButtonElement>): void => {\n setAnchorEl(event.currentTarget);\n };\n\n const closeColorPicker = (): void => {\n setAnchorEl(null);\n };\n\n const {\n thresholds: { defaultColor, palette },\n } = useChartsTheme();\n\n return (\n <>\n <ColorIconButton\n size={size}\n aria-label={`change ${label} color`}\n isSelected={isOpen}\n iconColor={color}\n onClick={openColorPicker}\n >\n <CircleIcon />\n </ColorIconButton>\n <Popover\n data-testid=\"options color picker\"\n open={isOpen}\n anchorEl={anchorEl}\n onClose={closeColorPicker}\n slotProps={{ paper: { sx: { padding: (theme) => theme.spacing(2) } } }}\n anchorOrigin={{\n vertical: 'top',\n horizontal: 'left',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'right',\n }}\n >\n <ColorPicker color={color} palette={[defaultColor, ...palette]} onChange={onColorChange} onClear={onClear} />\n </Popover>\n </>\n );\n}\n\nconst ColorIconButton = styled(IconButton, {\n shouldForwardProp: (props) => props !== 'isSelected' && props !== 'iconColor',\n})<{\n iconColor?: string;\n isSelected?: boolean;\n}>(({ iconColor, isSelected }) => ({\n backgroundColor: isSelected && iconColor ? `${iconColor}3F` : 'undefined', // 3F represents 25% opacity\n color: iconColor,\n}));\n"],"names":["useState","styled","IconButton","Popover","CircleIcon","useChartsTheme","ColorPicker","OptionsColorPicker","label","color","size","onColorChange","onClear","anchorEl","setAnchorEl","isOpen","Boolean","openColorPicker","event","currentTarget","closeColorPicker","thresholds","defaultColor","palette","ColorIconButton","aria-label","isSelected","iconColor","onClick","data-testid","open","onClose","slotProps","paper","sx","padding","theme","spacing","anchorOrigin","vertical","horizontal","transformOrigin","onChange","shouldForwardProp","props","backgroundColor"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAAuBA,QAAQ,QAAoB,QAAQ;AAC3D,SAASC,MAAM,EAAEC,UAAU,EAAEC,OAAO,QAAQ,gBAAgB;AAC5D,OAAOC,gBAAgB,yBAAyB;AAChD,SAASC,cAAc,QAAQ,aAAa;AAC5C,SAASC,WAAW,QAAQ,gBAAgB;AAU5C,OAAO,SAASC,mBAAmB,EACjCC,KAAK,EACLC,KAAK,EACLC,OAAO,OAAO,EACdC,aAAa,EACbC,OAAO,EACiB;IACxB,MAAM,CAACC,UAAUC,YAAY,GAAGd,SAAmC;IACnE,MAAMe,SAASC,QAAQH;IAEvB,MAAMI,kBAAkB,CAACC;QACvBJ,YAAYI,MAAMC,aAAa;IACjC;IAEA,MAAMC,mBAAmB;QACvBN,YAAY;IACd;IAEA,MAAM,EACJO,YAAY,EAAEC,YAAY,EAAEC,OAAO,EAAE,EACtC,GAAGlB;IAEJ,qBACE;;0BACE,KAACmB;gBACCd,MAAMA;gBACNe,cAAY,CAAC,OAAO,EAAEjB,MAAM,MAAM,CAAC;gBACnCkB,YAAYX;gBACZY,WAAWlB;gBACXmB,SAASX;0BAET,cAAA,KAACb;;0BAEH,KAACD;gBACC0B,eAAY;gBACZC,MAAMf;gBACNF,UAAUA;gBACVkB,SAASX;gBACTY,WAAW;oBAAEC,OAAO;wBAAEC,IAAI;4BAAEC,SAAS,CAACC,QAAUA,MAAMC,OAAO,CAAC;wBAAG;oBAAE;gBAAE;gBACrEC,cAAc;oBACZC,UAAU;oBACVC,YAAY;gBACd;gBACAC,iBAAiB;oBACfF,UAAU;oBACVC,YAAY;gBACd;0BAEA,cAAA,KAAClC;oBAAYG,OAAOA;oBAAOc,SAAS;wBAACD;2BAAiBC;qBAAQ;oBAAEmB,UAAU/B;oBAAeC,SAASA;;;;;AAI1G;AAEA,MAAMY,kBAAkBvB,OAAOC,YAAY;IACzCyC,mBAAmB,CAACC,QAAUA,UAAU,gBAAgBA,UAAU;AACpE,GAGG,CAAC,EAAEjB,SAAS,EAAED,UAAU,EAAE,GAAM,CAAA;QACjCmB,iBAAiBnB,cAAcC,YAAY,GAAGA,UAAU,EAAE,CAAC,GAAG;QAC9DlB,OAAOkB;IACT,CAAA"}
1
+ {"version":3,"sources":["../../src/ColorPicker/OptionsColorPicker.tsx"],"sourcesContent":["// Copyright 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 { styled, IconButton, Popover } from '@mui/material';\nimport CircleIcon from 'mdi-material-ui/Circle';\nimport type { ReactElement, MouseEvent } from 'react';\nimport { useState } from 'react';\n\nimport { useChartsTheme } from '../context';\nimport { ColorPicker } from './ColorPicker';\n\nexport interface OptionsColorPickerProps {\n label: string;\n color: string;\n size?: 'small' | 'medium' | 'large';\n onColorChange: (color: string) => void;\n onClear?: () => void;\n}\n\nexport function OptionsColorPicker({\n label,\n color,\n size = 'small',\n onColorChange,\n onClear,\n}: OptionsColorPickerProps): ReactElement {\n const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null);\n const isOpen = Boolean(anchorEl);\n\n const openColorPicker = (event: MouseEvent<HTMLButtonElement>): void => {\n setAnchorEl(event.currentTarget);\n };\n\n const closeColorPicker = (): void => {\n setAnchorEl(null);\n };\n\n const {\n thresholds: { defaultColor, palette },\n } = useChartsTheme();\n\n return (\n <>\n <ColorIconButton\n size={size}\n aria-label={`change ${label} color`}\n isSelected={isOpen}\n iconColor={color}\n onClick={openColorPicker}\n >\n <CircleIcon />\n </ColorIconButton>\n <Popover\n data-testid=\"options color picker\"\n open={isOpen}\n anchorEl={anchorEl}\n onClose={closeColorPicker}\n slotProps={{ paper: { sx: { padding: (theme) => theme.spacing(2) } } }}\n anchorOrigin={{\n vertical: 'top',\n horizontal: 'left',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'right',\n }}\n >\n <ColorPicker color={color} palette={[defaultColor, ...palette]} onChange={onColorChange} onClear={onClear} />\n </Popover>\n </>\n );\n}\n\nconst ColorIconButton = styled(IconButton, {\n shouldForwardProp: (props) => props !== 'isSelected' && props !== 'iconColor',\n})<{\n iconColor?: string;\n isSelected?: boolean;\n}>(({ iconColor, isSelected }) => ({\n backgroundColor: isSelected && iconColor ? `${iconColor}3F` : 'undefined', // 3F represents 25% opacity\n color: iconColor,\n}));\n"],"names":["styled","IconButton","Popover","CircleIcon","useState","useChartsTheme","ColorPicker","OptionsColorPicker","label","color","size","onColorChange","onClear","anchorEl","setAnchorEl","isOpen","Boolean","openColorPicker","event","currentTarget","closeColorPicker","thresholds","defaultColor","palette","ColorIconButton","aria-label","isSelected","iconColor","onClick","data-testid","open","onClose","slotProps","paper","sx","padding","theme","spacing","anchorOrigin","vertical","horizontal","transformOrigin","onChange","shouldForwardProp","props","backgroundColor"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,MAAM,EAAEC,UAAU,EAAEC,OAAO,QAAQ,gBAAgB;AAC5D,OAAOC,gBAAgB,yBAAyB;AAEhD,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,SAASC,cAAc,QAAQ,sBAAa;AAC5C,SAASC,WAAW,QAAQ,mBAAgB;AAU5C,OAAO,SAASC,mBAAmB,EACjCC,KAAK,EACLC,KAAK,EACLC,OAAO,OAAO,EACdC,aAAa,EACbC,OAAO,EACiB;IACxB,MAAM,CAACC,UAAUC,YAAY,GAAGV,SAAmC;IACnE,MAAMW,SAASC,QAAQH;IAEvB,MAAMI,kBAAkB,CAACC;QACvBJ,YAAYI,MAAMC,aAAa;IACjC;IAEA,MAAMC,mBAAmB;QACvBN,YAAY;IACd;IAEA,MAAM,EACJO,YAAY,EAAEC,YAAY,EAAEC,OAAO,EAAE,EACtC,GAAGlB;IAEJ,qBACE;;0BACE,KAACmB;gBACCd,MAAMA;gBACNe,cAAY,CAAC,OAAO,EAAEjB,MAAM,MAAM,CAAC;gBACnCkB,YAAYX;gBACZY,WAAWlB;gBACXmB,SAASX;0BAET,cAAA,KAACd;;0BAEH,KAACD;gBACC2B,eAAY;gBACZC,MAAMf;gBACNF,UAAUA;gBACVkB,SAASX;gBACTY,WAAW;oBAAEC,OAAO;wBAAEC,IAAI;4BAAEC,SAAS,CAACC,QAAUA,MAAMC,OAAO,CAAC;wBAAG;oBAAE;gBAAE;gBACrEC,cAAc;oBACZC,UAAU;oBACVC,YAAY;gBACd;gBACAC,iBAAiB;oBACfF,UAAU;oBACVC,YAAY;gBACd;0BAEA,cAAA,KAAClC;oBAAYG,OAAOA;oBAAOc,SAAS;wBAACD;2BAAiBC;qBAAQ;oBAAEmB,UAAU/B;oBAAeC,SAASA;;;;;AAI1G;AAEA,MAAMY,kBAAkBxB,OAAOC,YAAY;IACzC0C,mBAAmB,CAACC,QAAUA,UAAU,gBAAgBA,UAAU;AACpE,GAGG,CAAC,EAAEjB,SAAS,EAAED,UAAU,EAAE,GAAM,CAAA;QACjCmB,iBAAiBnB,cAAcC,YAAY,GAAGA,UAAU,EAAE,CAAC,GAAG;QAC9DlB,OAAOkB;IACT,CAAA"}
@@ -10,7 +10,7 @@
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 './ColorPicker';
14
- export * from './OptionsColorPicker';
13
+ export * from "./ColorPicker.js";
14
+ export * from "./OptionsColorPicker.js";
15
15
 
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ColorPicker/index.ts"],"sourcesContent":["// Copyright 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 './ColorPicker';\nexport * from './OptionsColorPicker';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,gBAAgB;AAC9B,cAAc,uBAAuB"}
1
+ {"version":3,"sources":["../../src/ColorPicker/index.ts"],"sourcesContent":["// Copyright 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 './ColorPicker';\nexport * from './OptionsColorPicker';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,mBAAgB;AAC9B,cAAc,0BAAuB"}
@@ -1,5 +1,5 @@
1
- import { ReactElement } from 'react';
2
- import { ContentWithLegendProps } from './model/content-with-legend-model';
1
+ import type { ReactElement } from 'react';
2
+ import type { ContentWithLegendProps } from './model/content-with-legend-model';
3
3
  /**
4
4
  * Component to help lay out content alongside a `Legend` component based on the
5
5
  * configuration of the legend.
@@ -1 +1 @@
1
- {"version":3,"file":"ContentWithLegend.d.ts","sourceRoot":"","sources":["../../src/ContentWithLegend/ContentWithLegend.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAIrC,OAAO,EAAE,sBAAsB,EAA8B,MAAM,mCAAmC,CAAC;AAEvG;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,WAAW,EACX,KAAK,EACL,MAAM,EACN,OAAW,EACX,UAAU,EACV,gBAAsB,EACtB,iBAAuB,GACxB,EAAE,sBAAsB,GAAG,YAAY,CAuCvC"}
1
+ {"version":3,"file":"ContentWithLegend.d.ts","sourceRoot":"","sources":["../../src/ContentWithLegend/ContentWithLegend.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAGhF;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,WAAW,EACX,KAAK,EACL,MAAM,EACN,OAAW,EACX,UAAU,EACV,gBAAsB,EACtB,iBAAuB,GACxB,EAAE,sBAAsB,GAAG,YAAY,CAuCvC"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  // Copyright The Perses Authors
2
3
  // Licensed under the Apache License, Version 2.0 (the "License");
3
4
  // you may not use this file except in compliance with the License.
@@ -10,11 +11,10 @@
10
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
12
  // See the License for the specific language governing permissions and
12
13
  // limitations under the License.
13
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- import { Box, useTheme } from '@mui/material';
15
- import { getLegendSize } from '../model';
16
- import { Legend } from '../Legend';
17
- import { getContentWithLegendLayout } from './model/content-with-legend-model';
14
+ import { Box, useTheme } from "@mui/material";
15
+ import { Legend } from "../Legend/index.js";
16
+ import { getLegendSize } from "../model/index.js";
17
+ import { getContentWithLegendLayout } from "./model/content-with-legend-model.js";
18
18
  /**
19
19
  * Component to help lay out content alongside a `Legend` component based on the
20
20
  * configuration of the legend.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ContentWithLegend/ContentWithLegend.tsx"],"sourcesContent":["// Copyright 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 { ReactElement } from 'react';\nimport { Box, useTheme } from '@mui/material';\nimport { getLegendSize } from '../model';\nimport { Legend } from '../Legend';\nimport { ContentWithLegendProps, getContentWithLegendLayout } from './model/content-with-legend-model';\n\n/**\n * Component to help lay out content alongside a `Legend` component based on the\n * configuration of the legend.\n *\n * See the documentation for the `Legend` component for more details about the\n * features and configuration of the legend.\n */\nexport function ContentWithLegend({\n children,\n legendProps,\n width,\n height,\n spacing = 0,\n legendSize,\n minChildrenWidth = 100,\n minChildrenHeight = 100,\n}: ContentWithLegendProps): ReactElement {\n const theme = useTheme();\n const { content, legend, margin } = getContentWithLegendLayout({\n width,\n height,\n legendProps,\n minChildrenHeight,\n minChildrenWidth,\n spacing,\n theme,\n legendSize: getLegendSize(legendSize),\n });\n\n return (\n <Box\n style={{\n width,\n height,\n }}\n sx={{\n position: 'relative',\n overflow: 'hidden',\n }}\n >\n <Box\n style={{\n width: content.width,\n height: content.height,\n }}\n sx={{\n marginRight: `${margin.right}px`,\n marginBottom: `${margin.bottom}px`,\n }}\n >\n {typeof children === 'function' ? children({ width: content.width, height: content.height }) : children}\n </Box>\n {legendProps && legend.show && <Legend {...legendProps} height={legend.height} width={legend.width} />}\n </Box>\n );\n}\n"],"names":["Box","useTheme","getLegendSize","Legend","getContentWithLegendLayout","ContentWithLegend","children","legendProps","width","height","spacing","legendSize","minChildrenWidth","minChildrenHeight","theme","content","legend","margin","style","sx","position","overflow","marginRight","right","marginBottom","bottom","show"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAGjC,SAASA,GAAG,EAAEC,QAAQ,QAAQ,gBAAgB;AAC9C,SAASC,aAAa,QAAQ,WAAW;AACzC,SAASC,MAAM,QAAQ,YAAY;AACnC,SAAiCC,0BAA0B,QAAQ,oCAAoC;AAEvG;;;;;;CAMC,GACD,OAAO,SAASC,kBAAkB,EAChCC,QAAQ,EACRC,WAAW,EACXC,KAAK,EACLC,MAAM,EACNC,UAAU,CAAC,EACXC,UAAU,EACVC,mBAAmB,GAAG,EACtBC,oBAAoB,GAAG,EACA;IACvB,MAAMC,QAAQb;IACd,MAAM,EAAEc,OAAO,EAAEC,MAAM,EAAEC,MAAM,EAAE,GAAGb,2BAA2B;QAC7DI;QACAC;QACAF;QACAM;QACAD;QACAF;QACAI;QACAH,YAAYT,cAAcS;IAC5B;IAEA,qBACE,MAACX;QACCkB,OAAO;YACLV;YACAC;QACF;QACAU,IAAI;YACFC,UAAU;YACVC,UAAU;QACZ;;0BAEA,KAACrB;gBACCkB,OAAO;oBACLV,OAAOO,QAAQP,KAAK;oBACpBC,QAAQM,QAAQN,MAAM;gBACxB;gBACAU,IAAI;oBACFG,aAAa,GAAGL,OAAOM,KAAK,CAAC,EAAE,CAAC;oBAChCC,cAAc,GAAGP,OAAOQ,MAAM,CAAC,EAAE,CAAC;gBACpC;0BAEC,OAAOnB,aAAa,aAAaA,SAAS;oBAAEE,OAAOO,QAAQP,KAAK;oBAAEC,QAAQM,QAAQN,MAAM;gBAAC,KAAKH;;YAEhGC,eAAeS,OAAOU,IAAI,kBAAI,KAACvB;gBAAQ,GAAGI,WAAW;gBAAEE,QAAQO,OAAOP,MAAM;gBAAED,OAAOQ,OAAOR,KAAK;;;;AAGxG"}
1
+ {"version":3,"sources":["../../src/ContentWithLegend/ContentWithLegend.tsx"],"sourcesContent":["// Copyright 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 { Box, useTheme } from '@mui/material';\nimport type { ReactElement } from 'react';\n\nimport { Legend } from '../Legend';\nimport { getLegendSize } from '../model';\nimport type { ContentWithLegendProps } from './model/content-with-legend-model';\nimport { getContentWithLegendLayout } from './model/content-with-legend-model';\n\n/**\n * Component to help lay out content alongside a `Legend` component based on the\n * configuration of the legend.\n *\n * See the documentation for the `Legend` component for more details about the\n * features and configuration of the legend.\n */\nexport function ContentWithLegend({\n children,\n legendProps,\n width,\n height,\n spacing = 0,\n legendSize,\n minChildrenWidth = 100,\n minChildrenHeight = 100,\n}: ContentWithLegendProps): ReactElement {\n const theme = useTheme();\n const { content, legend, margin } = getContentWithLegendLayout({\n width,\n height,\n legendProps,\n minChildrenHeight,\n minChildrenWidth,\n spacing,\n theme,\n legendSize: getLegendSize(legendSize),\n });\n\n return (\n <Box\n style={{\n width,\n height,\n }}\n sx={{\n position: 'relative',\n overflow: 'hidden',\n }}\n >\n <Box\n style={{\n width: content.width,\n height: content.height,\n }}\n sx={{\n marginRight: `${margin.right}px`,\n marginBottom: `${margin.bottom}px`,\n }}\n >\n {typeof children === 'function' ? children({ width: content.width, height: content.height }) : children}\n </Box>\n {legendProps && legend.show && <Legend {...legendProps} height={legend.height} width={legend.width} />}\n </Box>\n );\n}\n"],"names":["Box","useTheme","Legend","getLegendSize","getContentWithLegendLayout","ContentWithLegend","children","legendProps","width","height","spacing","legendSize","minChildrenWidth","minChildrenHeight","theme","content","legend","margin","style","sx","position","overflow","marginRight","right","marginBottom","bottom","show"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,GAAG,EAAEC,QAAQ,QAAQ,gBAAgB;AAG9C,SAASC,MAAM,QAAQ,qBAAY;AACnC,SAASC,aAAa,QAAQ,oBAAW;AAEzC,SAASC,0BAA0B,QAAQ,uCAAoC;AAE/E;;;;;;CAMC,GACD,OAAO,SAASC,kBAAkB,EAChCC,QAAQ,EACRC,WAAW,EACXC,KAAK,EACLC,MAAM,EACNC,UAAU,CAAC,EACXC,UAAU,EACVC,mBAAmB,GAAG,EACtBC,oBAAoB,GAAG,EACA;IACvB,MAAMC,QAAQb;IACd,MAAM,EAAEc,OAAO,EAAEC,MAAM,EAAEC,MAAM,EAAE,GAAGb,2BAA2B;QAC7DI;QACAC;QACAF;QACAM;QACAD;QACAF;QACAI;QACAH,YAAYR,cAAcQ;IAC5B;IAEA,qBACE,MAACX;QACCkB,OAAO;YACLV;YACAC;QACF;QACAU,IAAI;YACFC,UAAU;YACVC,UAAU;QACZ;;0BAEA,KAACrB;gBACCkB,OAAO;oBACLV,OAAOO,QAAQP,KAAK;oBACpBC,QAAQM,QAAQN,MAAM;gBACxB;gBACAU,IAAI;oBACFG,aAAa,GAAGL,OAAOM,KAAK,CAAC,EAAE,CAAC;oBAChCC,cAAc,GAAGP,OAAOQ,MAAM,CAAC,EAAE,CAAC;gBACpC;0BAEC,OAAOnB,aAAa,aAAaA,SAAS;oBAAEE,OAAOO,QAAQP,KAAK;oBAAEC,QAAQM,QAAQN,MAAM;gBAAC,KAAKH;;YAEhGC,eAAeS,OAAOU,IAAI,kBAAI,KAACxB;gBAAQ,GAAGK,WAAW;gBAAEE,QAAQO,OAAOP,MAAM;gBAAED,OAAOQ,OAAOR,KAAK;;;;AAGxG"}
@@ -10,6 +10,6 @@
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 './ContentWithLegend';
13
+ export * from "./ContentWithLegend.js";
14
14
 
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ContentWithLegend/index.ts"],"sourcesContent":["// Copyright 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 './ContentWithLegend';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,sBAAsB"}
1
+ {"version":3,"sources":["../../src/ContentWithLegend/index.ts"],"sourcesContent":["// Copyright 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 './ContentWithLegend';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,yBAAsB"}
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
- import { Theme } from '@mui/material';
3
- import { LegendPositions, LegendSize } from '../../model';
4
- import { LegendProps } from '../../Legend';
1
+ import type { Theme } from '@mui/material';
2
+ import type { LegendProps } from '../../Legend';
3
+ import type { LegendPositions, LegendSize } from '../../model';
5
4
  type Dimensions = {
6
5
  width: number;
7
6
  height: number;
@@ -1 +1 @@
1
- {"version":3,"file":"content-with-legend-model.d.ts","sourceRoot":"","sources":["../../../src/ContentWithLegend/model/content-with-legend-model.ts"],"names":[],"mappings":";AAaA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,eAAe,EAAiB,UAAU,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAEjF;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAEpD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA4B,SAAQ,QAAQ,CAC3D,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,aAAa,CAAC,CACzD;IACC,WAAW,CAAC,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACpD,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,UAAU,GAAG;QACnB,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IACF,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,KAAK,gBAAgB,GAAG,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB,EAAE,gBAe/B,CAAC;AAMF;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,KAAK,EACL,MAAM,EACN,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,EACP,KAAK,GACN,EAAE,2BAA2B,GAAG,uBAAuB,CAwFvD"}
1
+ {"version":3,"file":"content-with-legend-model.d.ts","sourceRoot":"","sources":["../../../src/ContentWithLegend/model/content-with-legend-model.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI/D,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAEjF;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAEpD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA4B,SAAQ,QAAQ,CAC3D,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,aAAa,CAAC,CACzD;IACC,WAAW,CAAC,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACpD,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,UAAU,GAAG;QACnB,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IACF,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,KAAK,gBAAgB,GAAG,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB,EAAE,gBAe/B,CAAC;AAMF;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,KAAK,EACL,MAAM,EACN,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,EACP,KAAK,GACN,EAAE,2BAA2B,GAAG,uBAAuB,CAwFvD"}
@@ -10,8 +10,8 @@
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
- import { getLegendMode } from '../../model';
14
- import { getTableCellLayout } from '../../Table';
13
+ import { getLegendMode } from "../../model/index.js";
14
+ import { getTableCellLayout } from "../../Table/index.js";
15
15
  export const TABLE_LEGEND_SIZE = {
16
16
  medium: {
17
17
  // 5 rows plus header. Value to be multiplied by row height in pixels.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/ContentWithLegend/model/content-with-legend-model.ts"],"sourcesContent":["// Copyright 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 { Theme } from '@mui/material';\nimport { LegendPositions, getLegendMode, LegendSize } from '../../model';\nimport { LegendProps } from '../../Legend';\nimport { getTableCellLayout } from '../../Table';\n\ntype Dimensions = {\n width: number;\n height: number;\n};\n\nexport interface ContentWithLegendProps {\n /**\n * Width of the overall component layout in pixels.\n */\n width: number;\n /**\n * Height of overall component layout in pixels.\n */\n height: number;\n /**\n * Child content to render next to the legend. May be a react node or a\n * function that returns a react node. The function provides the expected\n * height and width for the content, which can be useful for passing down\n * to chart components.\n */\n children: React.ReactNode | (({ width, height }: Dimensions) => React.ReactNode);\n\n /**\n * Size used for the legend.\n *\n * @default 'medium'\n */\n legendSize?: LegendSize;\n\n /**\n * Props to configure the legend. If not set, the content is rendered without\n * a legend.\n */\n legendProps?: Omit<LegendProps, 'width' | 'height'>;\n\n /**\n * Space to put between the children and the legend in pixels.\n */\n spacing?: number;\n\n /**\n * Minimum width required for the content specified by the `children` prop.\n * If this width cannot be maintained with a right positioned legend, the\n * legend will not be shown.\n */\n minChildrenWidth?: number;\n\n /**\n * Minimum height required for the content specified by the `children` prop.\n * If this width cannot be maintained with a bottom positioned legend, the\n * legend will not be shown.\n */\n minChildrenHeight?: number;\n}\n\nexport interface ContentWithLegendLayoutOpts extends Required<\n Omit<ContentWithLegendProps, 'children' | 'legendProps'>\n> {\n legendProps?: ContentWithLegendProps['legendProps'];\n theme: Theme;\n}\n\nexport interface ContentWithLegendLayout {\n legend: Dimensions & {\n show: boolean;\n };\n content: Dimensions;\n margin: {\n right: number;\n bottom: number;\n };\n}\n\ntype LegendSizeConfig = Record<LegendSize, Record<LegendPositions, number>>;\n\nexport const TABLE_LEGEND_SIZE: LegendSizeConfig = {\n medium: {\n // 5 rows plus header. Value to be multiplied by row height in pixels.\n bottom: 6,\n\n // Pixel value\n right: 250,\n },\n small: {\n // 3 rows plus header. Value to be multiplied by row height in pixels.\n bottom: 4,\n\n // Pixel value\n right: 150,\n },\n};\n\nconst PANEL_HEIGHT_LG_BREAKPOINT = 300;\nconst LEGEND_HEIGHT_SM = 40;\nconst LEGEND_HEIGHT_LG = 100;\n\n/**\n * Returns information for laying out content alongside a legend.\n */\nexport function getContentWithLegendLayout({\n width,\n height,\n legendProps,\n legendSize,\n minChildrenHeight,\n minChildrenWidth,\n spacing,\n theme,\n}: ContentWithLegendLayoutOpts): ContentWithLegendLayout {\n const legendOptions = legendProps?.options;\n const hasLegend = !!legendOptions;\n\n const noLegendLayout: ContentWithLegendLayout = {\n legend: {\n show: false,\n width: 0,\n height: 0,\n },\n content: {\n width,\n height,\n },\n margin: {\n right: 0,\n bottom: 0,\n },\n };\n\n if (!hasLegend) {\n return noLegendLayout;\n }\n\n const { position } = legendOptions;\n const mode = getLegendMode(legendOptions.mode);\n\n let legendWidth;\n let legendHeight;\n\n if (mode === 'list') {\n // TODO: normalize list to share similar height options as the table\n // when we add more size options.\n legendWidth = position === 'right' ? 200 : width;\n\n // TODO: account for number of legend items returned when adjusting legend spacing\n legendHeight = LEGEND_HEIGHT_SM;\n if (position === 'right') {\n legendHeight = height;\n } else if (height >= PANEL_HEIGHT_LG_BREAKPOINT) {\n legendHeight = LEGEND_HEIGHT_LG;\n }\n } else {\n // Table mode\n\n const tableLayout = getTableCellLayout(theme, 'compact');\n\n const tableColumns = legendProps?.tableProps?.columns || [];\n const columnsWidth = tableColumns.reduce((total, col) => {\n if (typeof col.width === 'number') {\n total += col.width;\n }\n return total;\n }, 0);\n\n legendWidth = position === 'right' ? TABLE_LEGEND_SIZE[legendSize]['right'] + columnsWidth : width;\n\n // Use the smaller of the size-based row count or the number of legend items + 1 for the header.\n const rowsToShow = Math.min(TABLE_LEGEND_SIZE[legendSize]['bottom'], legendProps.data.length + 1);\n legendHeight = position === 'bottom' ? rowsToShow * tableLayout.height : height;\n }\n\n const contentWidth = position === 'right' ? width - legendWidth - spacing : width;\n const contentHeight = position === 'bottom' ? height - legendHeight - spacing : height;\n\n if (\n (position === 'right' && contentWidth < minChildrenWidth) ||\n (position === 'bottom' && contentHeight < minChildrenHeight)\n ) {\n // Legend does not fit. Just show the content.\n return noLegendLayout;\n }\n\n return {\n legend: {\n width: legendWidth,\n height: legendHeight,\n show: true,\n },\n content: {\n width: contentWidth,\n height: contentHeight,\n },\n margin: {\n right: position === 'right' ? spacing : 0,\n bottom: position === 'bottom' ? spacing : 0,\n },\n };\n}\n"],"names":["getLegendMode","getTableCellLayout","TABLE_LEGEND_SIZE","medium","bottom","right","small","PANEL_HEIGHT_LG_BREAKPOINT","LEGEND_HEIGHT_SM","LEGEND_HEIGHT_LG","getContentWithLegendLayout","width","height","legendProps","legendSize","minChildrenHeight","minChildrenWidth","spacing","theme","legendOptions","options","hasLegend","noLegendLayout","legend","show","content","margin","position","mode","legendWidth","legendHeight","tableLayout","tableColumns","tableProps","columns","columnsWidth","reduce","total","col","rowsToShow","Math","min","data","length","contentWidth","contentHeight"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAA0BA,aAAa,QAAoB,cAAc;AAEzE,SAASC,kBAAkB,QAAQ,cAAc;AA6EjD,OAAO,MAAMC,oBAAsC;IACjDC,QAAQ;QACN,sEAAsE;QACtEC,QAAQ;QAER,cAAc;QACdC,OAAO;IACT;IACAC,OAAO;QACL,sEAAsE;QACtEF,QAAQ;QAER,cAAc;QACdC,OAAO;IACT;AACF,EAAE;AAEF,MAAME,6BAA6B;AACnC,MAAMC,mBAAmB;AACzB,MAAMC,mBAAmB;AAEzB;;CAEC,GACD,OAAO,SAASC,2BAA2B,EACzCC,KAAK,EACLC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,iBAAiB,EACjBC,gBAAgB,EAChBC,OAAO,EACPC,KAAK,EACuB;IAC5B,MAAMC,gBAAgBN,aAAaO;IACnC,MAAMC,YAAY,CAAC,CAACF;IAEpB,MAAMG,iBAA0C;QAC9CC,QAAQ;YACNC,MAAM;YACNb,OAAO;YACPC,QAAQ;QACV;QACAa,SAAS;YACPd;YACAC;QACF;QACAc,QAAQ;YACNrB,OAAO;YACPD,QAAQ;QACV;IACF;IAEA,IAAI,CAACiB,WAAW;QACd,OAAOC;IACT;IAEA,MAAM,EAAEK,QAAQ,EAAE,GAAGR;IACrB,MAAMS,OAAO5B,cAAcmB,cAAcS,IAAI;IAE7C,IAAIC;IACJ,IAAIC;IAEJ,IAAIF,SAAS,QAAQ;QACnB,oEAAoE;QACpE,iCAAiC;QACjCC,cAAcF,aAAa,UAAU,MAAMhB;QAE3C,kFAAkF;QAClFmB,eAAetB;QACf,IAAImB,aAAa,SAAS;YACxBG,eAAelB;QACjB,OAAO,IAAIA,UAAUL,4BAA4B;YAC/CuB,eAAerB;QACjB;IACF,OAAO;QACL,aAAa;QAEb,MAAMsB,cAAc9B,mBAAmBiB,OAAO;QAE9C,MAAMc,eAAenB,aAAaoB,YAAYC,WAAW,EAAE;QAC3D,MAAMC,eAAeH,aAAaI,MAAM,CAAC,CAACC,OAAOC;YAC/C,IAAI,OAAOA,IAAI3B,KAAK,KAAK,UAAU;gBACjC0B,SAASC,IAAI3B,KAAK;YACpB;YACA,OAAO0B;QACT,GAAG;QAEHR,cAAcF,aAAa,UAAUzB,iBAAiB,CAACY,WAAW,CAAC,QAAQ,GAAGqB,eAAexB;QAE7F,gGAAgG;QAChG,MAAM4B,aAAaC,KAAKC,GAAG,CAACvC,iBAAiB,CAACY,WAAW,CAAC,SAAS,EAAED,YAAY6B,IAAI,CAACC,MAAM,GAAG;QAC/Fb,eAAeH,aAAa,WAAWY,aAAaR,YAAYnB,MAAM,GAAGA;IAC3E;IAEA,MAAMgC,eAAejB,aAAa,UAAUhB,QAAQkB,cAAcZ,UAAUN;IAC5E,MAAMkC,gBAAgBlB,aAAa,WAAWf,SAASkB,eAAeb,UAAUL;IAEhF,IACE,AAACe,aAAa,WAAWiB,eAAe5B,oBACvCW,aAAa,YAAYkB,gBAAgB9B,mBAC1C;QACA,8CAA8C;QAC9C,OAAOO;IACT;IAEA,OAAO;QACLC,QAAQ;YACNZ,OAAOkB;YACPjB,QAAQkB;YACRN,MAAM;QACR;QACAC,SAAS;YACPd,OAAOiC;YACPhC,QAAQiC;QACV;QACAnB,QAAQ;YACNrB,OAAOsB,aAAa,UAAUV,UAAU;YACxCb,QAAQuB,aAAa,WAAWV,UAAU;QAC5C;IACF;AACF"}
1
+ {"version":3,"sources":["../../../src/ContentWithLegend/model/content-with-legend-model.ts"],"sourcesContent":["// Copyright 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 type { Theme } from '@mui/material';\n\nimport type { LegendProps } from '../../Legend';\nimport type { LegendPositions, LegendSize } from '../../model';\nimport { getLegendMode } from '../../model';\nimport { getTableCellLayout } from '../../Table';\n\ntype Dimensions = {\n width: number;\n height: number;\n};\n\nexport interface ContentWithLegendProps {\n /**\n * Width of the overall component layout in pixels.\n */\n width: number;\n /**\n * Height of overall component layout in pixels.\n */\n height: number;\n /**\n * Child content to render next to the legend. May be a react node or a\n * function that returns a react node. The function provides the expected\n * height and width for the content, which can be useful for passing down\n * to chart components.\n */\n children: React.ReactNode | (({ width, height }: Dimensions) => React.ReactNode);\n\n /**\n * Size used for the legend.\n *\n * @default 'medium'\n */\n legendSize?: LegendSize;\n\n /**\n * Props to configure the legend. If not set, the content is rendered without\n * a legend.\n */\n legendProps?: Omit<LegendProps, 'width' | 'height'>;\n\n /**\n * Space to put between the children and the legend in pixels.\n */\n spacing?: number;\n\n /**\n * Minimum width required for the content specified by the `children` prop.\n * If this width cannot be maintained with a right positioned legend, the\n * legend will not be shown.\n */\n minChildrenWidth?: number;\n\n /**\n * Minimum height required for the content specified by the `children` prop.\n * If this width cannot be maintained with a bottom positioned legend, the\n * legend will not be shown.\n */\n minChildrenHeight?: number;\n}\n\nexport interface ContentWithLegendLayoutOpts extends Required<\n Omit<ContentWithLegendProps, 'children' | 'legendProps'>\n> {\n legendProps?: ContentWithLegendProps['legendProps'];\n theme: Theme;\n}\n\nexport interface ContentWithLegendLayout {\n legend: Dimensions & {\n show: boolean;\n };\n content: Dimensions;\n margin: {\n right: number;\n bottom: number;\n };\n}\n\ntype LegendSizeConfig = Record<LegendSize, Record<LegendPositions, number>>;\n\nexport const TABLE_LEGEND_SIZE: LegendSizeConfig = {\n medium: {\n // 5 rows plus header. Value to be multiplied by row height in pixels.\n bottom: 6,\n\n // Pixel value\n right: 250,\n },\n small: {\n // 3 rows plus header. Value to be multiplied by row height in pixels.\n bottom: 4,\n\n // Pixel value\n right: 150,\n },\n};\n\nconst PANEL_HEIGHT_LG_BREAKPOINT = 300;\nconst LEGEND_HEIGHT_SM = 40;\nconst LEGEND_HEIGHT_LG = 100;\n\n/**\n * Returns information for laying out content alongside a legend.\n */\nexport function getContentWithLegendLayout({\n width,\n height,\n legendProps,\n legendSize,\n minChildrenHeight,\n minChildrenWidth,\n spacing,\n theme,\n}: ContentWithLegendLayoutOpts): ContentWithLegendLayout {\n const legendOptions = legendProps?.options;\n const hasLegend = !!legendOptions;\n\n const noLegendLayout: ContentWithLegendLayout = {\n legend: {\n show: false,\n width: 0,\n height: 0,\n },\n content: {\n width,\n height,\n },\n margin: {\n right: 0,\n bottom: 0,\n },\n };\n\n if (!hasLegend) {\n return noLegendLayout;\n }\n\n const { position } = legendOptions;\n const mode = getLegendMode(legendOptions.mode);\n\n let legendWidth;\n let legendHeight;\n\n if (mode === 'list') {\n // TODO: normalize list to share similar height options as the table\n // when we add more size options.\n legendWidth = position === 'right' ? 200 : width;\n\n // TODO: account for number of legend items returned when adjusting legend spacing\n legendHeight = LEGEND_HEIGHT_SM;\n if (position === 'right') {\n legendHeight = height;\n } else if (height >= PANEL_HEIGHT_LG_BREAKPOINT) {\n legendHeight = LEGEND_HEIGHT_LG;\n }\n } else {\n // Table mode\n\n const tableLayout = getTableCellLayout(theme, 'compact');\n\n const tableColumns = legendProps?.tableProps?.columns || [];\n const columnsWidth = tableColumns.reduce((total, col) => {\n if (typeof col.width === 'number') {\n total += col.width;\n }\n return total;\n }, 0);\n\n legendWidth = position === 'right' ? TABLE_LEGEND_SIZE[legendSize]['right'] + columnsWidth : width;\n\n // Use the smaller of the size-based row count or the number of legend items + 1 for the header.\n const rowsToShow = Math.min(TABLE_LEGEND_SIZE[legendSize]['bottom'], legendProps.data.length + 1);\n legendHeight = position === 'bottom' ? rowsToShow * tableLayout.height : height;\n }\n\n const contentWidth = position === 'right' ? width - legendWidth - spacing : width;\n const contentHeight = position === 'bottom' ? height - legendHeight - spacing : height;\n\n if (\n (position === 'right' && contentWidth < minChildrenWidth) ||\n (position === 'bottom' && contentHeight < minChildrenHeight)\n ) {\n // Legend does not fit. Just show the content.\n return noLegendLayout;\n }\n\n return {\n legend: {\n width: legendWidth,\n height: legendHeight,\n show: true,\n },\n content: {\n width: contentWidth,\n height: contentHeight,\n },\n margin: {\n right: position === 'right' ? spacing : 0,\n bottom: position === 'bottom' ? spacing : 0,\n },\n };\n}\n"],"names":["getLegendMode","getTableCellLayout","TABLE_LEGEND_SIZE","medium","bottom","right","small","PANEL_HEIGHT_LG_BREAKPOINT","LEGEND_HEIGHT_SM","LEGEND_HEIGHT_LG","getContentWithLegendLayout","width","height","legendProps","legendSize","minChildrenHeight","minChildrenWidth","spacing","theme","legendOptions","options","hasLegend","noLegendLayout","legend","show","content","margin","position","mode","legendWidth","legendHeight","tableLayout","tableColumns","tableProps","columns","columnsWidth","reduce","total","col","rowsToShow","Math","min","data","length","contentWidth","contentHeight"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAMjC,SAASA,aAAa,QAAQ,uBAAc;AAC5C,SAASC,kBAAkB,QAAQ,uBAAc;AA6EjD,OAAO,MAAMC,oBAAsC;IACjDC,QAAQ;QACN,sEAAsE;QACtEC,QAAQ;QAER,cAAc;QACdC,OAAO;IACT;IACAC,OAAO;QACL,sEAAsE;QACtEF,QAAQ;QAER,cAAc;QACdC,OAAO;IACT;AACF,EAAE;AAEF,MAAME,6BAA6B;AACnC,MAAMC,mBAAmB;AACzB,MAAMC,mBAAmB;AAEzB;;CAEC,GACD,OAAO,SAASC,2BAA2B,EACzCC,KAAK,EACLC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,iBAAiB,EACjBC,gBAAgB,EAChBC,OAAO,EACPC,KAAK,EACuB;IAC5B,MAAMC,gBAAgBN,aAAaO;IACnC,MAAMC,YAAY,CAAC,CAACF;IAEpB,MAAMG,iBAA0C;QAC9CC,QAAQ;YACNC,MAAM;YACNb,OAAO;YACPC,QAAQ;QACV;QACAa,SAAS;YACPd;YACAC;QACF;QACAc,QAAQ;YACNrB,OAAO;YACPD,QAAQ;QACV;IACF;IAEA,IAAI,CAACiB,WAAW;QACd,OAAOC;IACT;IAEA,MAAM,EAAEK,QAAQ,EAAE,GAAGR;IACrB,MAAMS,OAAO5B,cAAcmB,cAAcS,IAAI;IAE7C,IAAIC;IACJ,IAAIC;IAEJ,IAAIF,SAAS,QAAQ;QACnB,oEAAoE;QACpE,iCAAiC;QACjCC,cAAcF,aAAa,UAAU,MAAMhB;QAE3C,kFAAkF;QAClFmB,eAAetB;QACf,IAAImB,aAAa,SAAS;YACxBG,eAAelB;QACjB,OAAO,IAAIA,UAAUL,4BAA4B;YAC/CuB,eAAerB;QACjB;IACF,OAAO;QACL,aAAa;QAEb,MAAMsB,cAAc9B,mBAAmBiB,OAAO;QAE9C,MAAMc,eAAenB,aAAaoB,YAAYC,WAAW,EAAE;QAC3D,MAAMC,eAAeH,aAAaI,MAAM,CAAC,CAACC,OAAOC;YAC/C,IAAI,OAAOA,IAAI3B,KAAK,KAAK,UAAU;gBACjC0B,SAASC,IAAI3B,KAAK;YACpB;YACA,OAAO0B;QACT,GAAG;QAEHR,cAAcF,aAAa,UAAUzB,iBAAiB,CAACY,WAAW,CAAC,QAAQ,GAAGqB,eAAexB;QAE7F,gGAAgG;QAChG,MAAM4B,aAAaC,KAAKC,GAAG,CAACvC,iBAAiB,CAACY,WAAW,CAAC,SAAS,EAAED,YAAY6B,IAAI,CAACC,MAAM,GAAG;QAC/Fb,eAAeH,aAAa,WAAWY,aAAaR,YAAYnB,MAAM,GAAGA;IAC3E;IAEA,MAAMgC,eAAejB,aAAa,UAAUhB,QAAQkB,cAAcZ,UAAUN;IAC5E,MAAMkC,gBAAgBlB,aAAa,WAAWf,SAASkB,eAAeb,UAAUL;IAEhF,IACE,AAACe,aAAa,WAAWiB,eAAe5B,oBACvCW,aAAa,YAAYkB,gBAAgB9B,mBAC1C;QACA,8CAA8C;QAC9C,OAAOO;IACT;IAEA,OAAO;QACLC,QAAQ;YACNZ,OAAOkB;YACPjB,QAAQkB;YACRN,MAAM;QACR;QACAC,SAAS;YACPd,OAAOiC;YACPhC,QAAQiC;QACV;QACAnB,QAAQ;YACNrB,OAAOsB,aAAa,UAAUV,UAAU;YACxCb,QAAQuB,aAAa,WAAWV,UAAU;QAC5C;IACF;AACF"}
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import type { ReactElement } from 'react';
2
2
  export type DensityOption = 'compact' | 'standard' | 'comfortable';
3
3
  export interface DensitySelectorProps {
4
4
  onChange: (density: DensityOption) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"DensitySelector.d.ts","sourceRoot":"","sources":["../../src/DensitySelector/DensitySelector.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAUrC,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC;AAEnE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAkB,EAAE,EAAE,oBAAoB,GAAG,YAAY,CAmBpG"}
1
+ {"version":3,"file":"DensitySelector.d.ts","sourceRoot":"","sources":["../../src/DensitySelector/DensitySelector.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAW1C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC;AAEnE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAkB,EAAE,EAAE,oBAAoB,GAAG,YAAY,CAmBpG"}
@@ -11,8 +11,8 @@
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
- import { OptionsEditorControl } from '../OptionsEditorLayout';
15
- import { SettingsAutocomplete } from '../SettingsAutocomplete';
14
+ import { OptionsEditorControl } from "../OptionsEditorLayout/index.js";
15
+ import { SettingsAutocomplete } from "../SettingsAutocomplete/index.js";
16
16
  const DENSITY_OPTIONS = [
17
17
  {
18
18
  id: 'compact',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/DensitySelector/DensitySelector.tsx"],"sourcesContent":["// Copyright 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 { ReactElement } from 'react';\nimport { OptionsEditorControl } from '../OptionsEditorLayout';\nimport { SettingsAutocomplete } from '../SettingsAutocomplete';\n\nconst DENSITY_OPTIONS: Array<{ id: DensityOption; label: string }> = [\n { id: 'compact', label: 'Compact' },\n { id: 'standard', label: 'Standard' },\n { id: 'comfortable', label: 'Comfortable' },\n];\n\nexport type DensityOption = 'compact' | 'standard' | 'comfortable';\n\nexport interface DensitySelectorProps {\n onChange: (density: DensityOption) => void;\n value?: DensityOption;\n}\n\nexport function DensitySelector({ onChange, value = 'standard' }: DensitySelectorProps): ReactElement {\n const handleSortChange = (_: unknown, { id }: { id: DensityOption }): void => {\n onChange(id);\n };\n\n return (\n <OptionsEditorControl\n label=\"Density\"\n control={\n <SettingsAutocomplete\n value={DENSITY_OPTIONS.find((o) => o.id === value)}\n options={DENSITY_OPTIONS}\n getOptionLabel={(o) => o.label}\n onChange={handleSortChange}\n disableClearable\n />\n }\n />\n );\n}\n"],"names":["OptionsEditorControl","SettingsAutocomplete","DENSITY_OPTIONS","id","label","DensitySelector","onChange","value","handleSortChange","_","control","find","o","options","getOptionLabel","disableClearable"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,wEAAwE;AACxE,qEAAqE;AACrE,6EAA6E;AAC7E,sEAAsE;AACtE,iCAAiC;;AAGjC,SAASA,oBAAoB,QAAQ,yBAAyB;AAC9D,SAASC,oBAAoB,QAAQ,0BAA0B;AAE/D,MAAMC,kBAA+D;IACnE;QAAEC,IAAI;QAAWC,OAAO;IAAU;IAClC;QAAED,IAAI;QAAYC,OAAO;IAAW;IACpC;QAAED,IAAI;QAAeC,OAAO;IAAc;CAC3C;AASD,OAAO,SAASC,gBAAgB,EAAEC,QAAQ,EAAEC,QAAQ,UAAU,EAAwB;IACpF,MAAMC,mBAAmB,CAACC,GAAY,EAAEN,EAAE,EAAyB;QACjEG,SAASH;IACX;IAEA,qBACE,KAACH;QACCI,OAAM;QACNM,uBACE,KAACT;YACCM,OAAOL,gBAAgBS,IAAI,CAAC,CAACC,IAAMA,EAAET,EAAE,KAAKI;YAC5CM,SAASX;YACTY,gBAAgB,CAACF,IAAMA,EAAER,KAAK;YAC9BE,UAAUE;YACVO,gBAAgB;;;AAK1B"}
1
+ {"version":3,"sources":["../../src/DensitySelector/DensitySelector.tsx"],"sourcesContent":["// Copyright 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 type { ReactElement } from 'react';\n\nimport { OptionsEditorControl } from '../OptionsEditorLayout';\nimport { SettingsAutocomplete } from '../SettingsAutocomplete';\n\nconst DENSITY_OPTIONS: Array<{ id: DensityOption; label: string }> = [\n { id: 'compact', label: 'Compact' },\n { id: 'standard', label: 'Standard' },\n { id: 'comfortable', label: 'Comfortable' },\n];\n\nexport type DensityOption = 'compact' | 'standard' | 'comfortable';\n\nexport interface DensitySelectorProps {\n onChange: (density: DensityOption) => void;\n value?: DensityOption;\n}\n\nexport function DensitySelector({ onChange, value = 'standard' }: DensitySelectorProps): ReactElement {\n const handleSortChange = (_: unknown, { id }: { id: DensityOption }): void => {\n onChange(id);\n };\n\n return (\n <OptionsEditorControl\n label=\"Density\"\n control={\n <SettingsAutocomplete\n value={DENSITY_OPTIONS.find((o) => o.id === value)}\n options={DENSITY_OPTIONS}\n getOptionLabel={(o) => o.label}\n onChange={handleSortChange}\n disableClearable\n />\n }\n />\n );\n}\n"],"names":["OptionsEditorControl","SettingsAutocomplete","DENSITY_OPTIONS","id","label","DensitySelector","onChange","value","handleSortChange","_","control","find","o","options","getOptionLabel","disableClearable"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,wEAAwE;AACxE,qEAAqE;AACrE,6EAA6E;AAC7E,sEAAsE;AACtE,iCAAiC;;AAIjC,SAASA,oBAAoB,QAAQ,kCAAyB;AAC9D,SAASC,oBAAoB,QAAQ,mCAA0B;AAE/D,MAAMC,kBAA+D;IACnE;QAAEC,IAAI;QAAWC,OAAO;IAAU;IAClC;QAAED,IAAI;QAAYC,OAAO;IAAW;IACpC;QAAED,IAAI;QAAeC,OAAO;IAAc;CAC3C;AASD,OAAO,SAASC,gBAAgB,EAAEC,QAAQ,EAAEC,QAAQ,UAAU,EAAwB;IACpF,MAAMC,mBAAmB,CAACC,GAAY,EAAEN,EAAE,EAAyB;QACjEG,SAASH;IACX;IAEA,qBACE,KAACH;QACCI,OAAM;QACNM,uBACE,KAACT;YACCM,OAAOL,gBAAgBS,IAAI,CAAC,CAACC,IAAMA,EAAET,EAAE,KAAKI;YAC5CM,SAASX;YACTY,gBAAgB,CAACF,IAAMA,EAAER,KAAK;YAC9BE,UAAUE;YACVO,gBAAgB;;;AAK1B"}
@@ -10,6 +10,6 @@
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 './DensitySelector';
13
+ export * from "./DensitySelector.js";
14
14
 
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/DensitySelector/index.ts"],"sourcesContent":["// Copyright 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 './DensitySelector';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,oBAAoB"}
1
+ {"version":3,"sources":["../../src/DensitySelector/index.ts"],"sourcesContent":["// Copyright 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 './DensitySelector';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,uBAAoB"}
@@ -1,6 +1,7 @@
1
- import { StyledComponent } from '@emotion/styled';
2
- import { ButtonProps, DialogActions, DialogProps, DialogTitleProps, DialogContentProps as MuiDialogContentProps } from '@mui/material';
3
- import { MouseEvent, ReactElement } from 'react';
1
+ import type { StyledComponent } from '@emotion/styled';
2
+ import type { ButtonProps, DialogProps, DialogTitleProps, DialogContentProps as MuiDialogContentProps } from '@mui/material';
3
+ import { DialogActions } from '@mui/material';
4
+ import type { MouseEvent, ReactElement } from 'react';
4
5
  export interface DialogHeaderProps extends DialogTitleProps {
5
6
  /**
6
7
  * Callback fired when close button is clicked. If undefined, close button will not appear in header.
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/Dialog.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAEL,WAAW,EACX,aAAa,EAEb,WAAW,EAEX,gBAAgB,EAGhB,kBAAkB,IAAI,qBAAqB,EAG5C,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGjD,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CAChD;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;AAEhF,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAEvD,QAAA,MAAM,MAAM,oCAAqC,iBAAiB,KAAG,YAapE,CAAC;AAEF,QAAA,MAAM,OAAO,+BAAgC,kBAAkB,KAAG,YAIjE,CAAC;AAEF,QAAA,MAAM,aAAa,2BAA4B,iBAAiB,KAAG,YAIlE,CAAC;AAEF,QAAA,MAAM,eAAe,2BAA4B,iBAAiB,KAAG,YAIpE,CAAC;AAQF,QAAA,MAAM,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAItD,CAAC;AAUH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG;IAC3C,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,eAAe,EAAE,OAAO,eAAe,CAAC;IACxC,OAAO,EAAE,OAAO,aAAa,CAAC;CAC4C,CAAC"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/Dialog.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,kBAAkB,IAAI,qBAAqB,EAE5C,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,aAAa,EAMd,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAItD,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CAChD;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;AAEhF,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAEvD,QAAA,MAAM,MAAM,GAAI,iCAAiC,iBAAiB,KAAG,YAapE,CAAC;AAEF,QAAA,MAAM,OAAO,GAAI,4BAA4B,kBAAkB,KAAG,YAIjE,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,wBAAwB,iBAAiB,KAAG,YAIlE,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,wBAAwB,iBAAiB,KAAG,YAIpE,CAAC;AAQF,QAAA,MAAM,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAItD,CAAC;AAUH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG;IAC3C,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,eAAe,EAAE,OAAO,eAAe,CAAC;IACxC,OAAO,EAAE,OAAO,aAAa,CAAC;CAC4C,CAAC"}
@@ -11,9 +11,9 @@
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
13
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
14
- import { Button, DialogActions, DialogContent, DialogTitle, IconButton, Dialog as MuiDialog, styled } from '@mui/material';
15
- import CloseIcon from 'mdi-material-ui/Close';
16
- import { combineSx } from '../utils';
14
+ import { Button, DialogActions, DialogContent, DialogTitle, IconButton, Dialog as MuiDialog, styled } from "@mui/material";
15
+ import CloseIcon from "mdi-material-ui/Close";
16
+ import { combineSx } from "../utils/index.js";
17
17
  const Header = ({ children, onClose, ...props })=>{
18
18
  return /*#__PURE__*/ _jsxs(_Fragment, {
19
19
  children: [
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Dialog/Dialog.tsx"],"sourcesContent":["// Copyright 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 { StyledComponent } from '@emotion/styled';\nimport {\n Button,\n ButtonProps,\n DialogActions,\n DialogContent,\n DialogProps,\n DialogTitle,\n DialogTitleProps,\n IconButton,\n Dialog as MuiDialog,\n DialogContentProps as MuiDialogContentProps,\n styled,\n Theme,\n} from '@mui/material';\nimport CloseIcon from 'mdi-material-ui/Close';\nimport { MouseEvent, ReactElement } from 'react';\nimport { combineSx } from '../utils';\n\nexport interface DialogHeaderProps extends DialogTitleProps {\n /**\n * Callback fired when close button is clicked. If undefined, close button will not appear in header.\n */\n onClose?: (e: MouseEvent<HTMLElement>) => void;\n}\n\nexport type DialogButtonProps = Omit<ButtonProps, 'variant' | 'color' | 'type'>;\n\nexport type DialogContentProps = MuiDialogContentProps;\n\nconst Header = ({ children, onClose, ...props }: DialogHeaderProps): ReactElement => {\n return (\n <>\n <DialogTitle style={{ textOverflow: 'ellipsis', overflow: 'hidden' }} {...props}>\n {children}\n </DialogTitle>\n {onClose && (\n <IconButton aria-label=\"Close\" onClick={onClose} sx={dialogCloseIconButtonStyle}>\n <CloseIcon />\n </IconButton>\n )}\n </>\n );\n};\n\nconst Content = ({ children, sx, ...props }: DialogContentProps): ReactElement => (\n <DialogContent dividers {...props} sx={combineSx({ minWidth: `500px`, textWrap: 'balance' }, sx)}>\n {children}\n </DialogContent>\n);\n\nconst PrimaryButton = ({ children, ...props }: DialogButtonProps): ReactElement => (\n <Button variant=\"contained\" type=\"submit\" {...props}>\n {children}\n </Button>\n);\n\nconst SecondaryButton = ({ children, ...props }: DialogButtonProps): ReactElement => (\n <Button variant=\"outlined\" color=\"secondary\" {...props}>\n {children}\n </Button>\n);\n\n/*\n * Material-ui has a prop \"scroll=paper\" that is specifically for dialog header and actions to be sticky and body to scroll,\n * but that doesn't work when dialog content is wrapped in form.\n * https://github.com/mui-org/material-ui/issues/13253\n * This component adds style to get expected behavior & should be used whenever we have a Form inside a Dialog\n */\nconst Form: StyledComponent<React.ComponentProps<'form'>> = styled('form')({\n overflowY: 'auto',\n display: 'flex',\n flexDirection: 'column',\n});\n\n/**\n * Render the CSS of the dialog's close button, according to the given material theme.\n * @param theme material theme\n */\nconst dialogCloseIconButtonStyle = (theme: Theme): Record<string, unknown> => {\n return { position: 'absolute', top: theme.spacing(0.5), right: theme.spacing(0.5) };\n};\n\nexport const Dialog: React.FC<DialogProps> & {\n Header: typeof Header;\n Form: typeof Form;\n Content: typeof Content;\n PrimaryButton: typeof PrimaryButton;\n SecondaryButton: typeof SecondaryButton;\n Actions: typeof DialogActions;\n} = ({ children, ...props }) => <MuiDialog {...props}>{children}</MuiDialog>;\n\nDialog.Header = Header;\nDialog.Form = Form;\nDialog.Content = Content;\nDialog.PrimaryButton = PrimaryButton;\nDialog.SecondaryButton = SecondaryButton;\nDialog.Actions = DialogActions;\n"],"names":["Button","DialogActions","DialogContent","DialogTitle","IconButton","Dialog","MuiDialog","styled","CloseIcon","combineSx","Header","children","onClose","props","style","textOverflow","overflow","aria-label","onClick","sx","dialogCloseIconButtonStyle","Content","dividers","minWidth","textWrap","PrimaryButton","variant","type","SecondaryButton","color","Form","overflowY","display","flexDirection","theme","position","top","spacing","right","Actions"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAGjC,SACEA,MAAM,EAENC,aAAa,EACbC,aAAa,EAEbC,WAAW,EAEXC,UAAU,EACVC,UAAUC,SAAS,EAEnBC,MAAM,QAED,gBAAgB;AACvB,OAAOC,eAAe,wBAAwB;AAE9C,SAASC,SAAS,QAAQ,WAAW;AAarC,MAAMC,SAAS,CAAC,EAAEC,QAAQ,EAAEC,OAAO,EAAE,GAAGC,OAA0B;IAChE,qBACE;;0BACE,KAACV;gBAAYW,OAAO;oBAAEC,cAAc;oBAAYC,UAAU;gBAAS;gBAAI,GAAGH,KAAK;0BAC5EF;;YAEFC,yBACC,KAACR;gBAAWa,cAAW;gBAAQC,SAASN;gBAASO,IAAIC;0BACnD,cAAA,KAACZ;;;;AAKX;AAEA,MAAMa,UAAU,CAAC,EAAEV,QAAQ,EAAEQ,EAAE,EAAE,GAAGN,OAA2B,iBAC7D,KAACX;QAAcoB,QAAQ;QAAE,GAAGT,KAAK;QAAEM,IAAIV,UAAU;YAAEc,UAAU,CAAC,KAAK,CAAC;YAAEC,UAAU;QAAU,GAAGL;kBAC1FR;;AAIL,MAAMc,gBAAgB,CAAC,EAAEd,QAAQ,EAAE,GAAGE,OAA0B,iBAC9D,KAACb;QAAO0B,SAAQ;QAAYC,MAAK;QAAU,GAAGd,KAAK;kBAChDF;;AAIL,MAAMiB,kBAAkB,CAAC,EAAEjB,QAAQ,EAAE,GAAGE,OAA0B,iBAChE,KAACb;QAAO0B,SAAQ;QAAWG,OAAM;QAAa,GAAGhB,KAAK;kBACnDF;;AAIL;;;;;CAKC,GACD,MAAMmB,OAAsDvB,OAAO,QAAQ;IACzEwB,WAAW;IACXC,SAAS;IACTC,eAAe;AACjB;AAEA;;;CAGC,GACD,MAAMb,6BAA6B,CAACc;IAClC,OAAO;QAAEC,UAAU;QAAYC,KAAKF,MAAMG,OAAO,CAAC;QAAMC,OAAOJ,MAAMG,OAAO,CAAC;IAAK;AACpF;AAEA,OAAO,MAAMhC,SAOT,CAAC,EAAEM,QAAQ,EAAE,GAAGE,OAAO,iBAAK,KAACP;QAAW,GAAGO,KAAK;kBAAGF;OAAsB;AAE7EN,OAAOK,MAAM,GAAGA;AAChBL,OAAOyB,IAAI,GAAGA;AACdzB,OAAOgB,OAAO,GAAGA;AACjBhB,OAAOoB,aAAa,GAAGA;AACvBpB,OAAOuB,eAAe,GAAGA;AACzBvB,OAAOkC,OAAO,GAAGtC"}
1
+ {"version":3,"sources":["../../src/Dialog/Dialog.tsx"],"sourcesContent":["// Copyright 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 type { StyledComponent } from '@emotion/styled';\nimport type {\n ButtonProps,\n DialogProps,\n DialogTitleProps,\n DialogContentProps as MuiDialogContentProps,\n Theme,\n} from '@mui/material';\nimport {\n Button,\n DialogActions,\n DialogContent,\n DialogTitle,\n IconButton,\n Dialog as MuiDialog,\n styled,\n} from '@mui/material';\nimport CloseIcon from 'mdi-material-ui/Close';\nimport type { MouseEvent, ReactElement } from 'react';\n\nimport { combineSx } from '../utils';\n\nexport interface DialogHeaderProps extends DialogTitleProps {\n /**\n * Callback fired when close button is clicked. If undefined, close button will not appear in header.\n */\n onClose?: (e: MouseEvent<HTMLElement>) => void;\n}\n\nexport type DialogButtonProps = Omit<ButtonProps, 'variant' | 'color' | 'type'>;\n\nexport type DialogContentProps = MuiDialogContentProps;\n\nconst Header = ({ children, onClose, ...props }: DialogHeaderProps): ReactElement => {\n return (\n <>\n <DialogTitle style={{ textOverflow: 'ellipsis', overflow: 'hidden' }} {...props}>\n {children}\n </DialogTitle>\n {onClose && (\n <IconButton aria-label=\"Close\" onClick={onClose} sx={dialogCloseIconButtonStyle}>\n <CloseIcon />\n </IconButton>\n )}\n </>\n );\n};\n\nconst Content = ({ children, sx, ...props }: DialogContentProps): ReactElement => (\n <DialogContent dividers {...props} sx={combineSx({ minWidth: `500px`, textWrap: 'balance' }, sx)}>\n {children}\n </DialogContent>\n);\n\nconst PrimaryButton = ({ children, ...props }: DialogButtonProps): ReactElement => (\n <Button variant=\"contained\" type=\"submit\" {...props}>\n {children}\n </Button>\n);\n\nconst SecondaryButton = ({ children, ...props }: DialogButtonProps): ReactElement => (\n <Button variant=\"outlined\" color=\"secondary\" {...props}>\n {children}\n </Button>\n);\n\n/*\n * Material-ui has a prop \"scroll=paper\" that is specifically for dialog header and actions to be sticky and body to scroll,\n * but that doesn't work when dialog content is wrapped in form.\n * https://github.com/mui-org/material-ui/issues/13253\n * This component adds style to get expected behavior & should be used whenever we have a Form inside a Dialog\n */\nconst Form: StyledComponent<React.ComponentProps<'form'>> = styled('form')({\n overflowY: 'auto',\n display: 'flex',\n flexDirection: 'column',\n});\n\n/**\n * Render the CSS of the dialog's close button, according to the given material theme.\n * @param theme material theme\n */\nconst dialogCloseIconButtonStyle = (theme: Theme): Record<string, unknown> => {\n return { position: 'absolute', top: theme.spacing(0.5), right: theme.spacing(0.5) };\n};\n\nexport const Dialog: React.FC<DialogProps> & {\n Header: typeof Header;\n Form: typeof Form;\n Content: typeof Content;\n PrimaryButton: typeof PrimaryButton;\n SecondaryButton: typeof SecondaryButton;\n Actions: typeof DialogActions;\n} = ({ children, ...props }) => <MuiDialog {...props}>{children}</MuiDialog>;\n\nDialog.Header = Header;\nDialog.Form = Form;\nDialog.Content = Content;\nDialog.PrimaryButton = PrimaryButton;\nDialog.SecondaryButton = SecondaryButton;\nDialog.Actions = DialogActions;\n"],"names":["Button","DialogActions","DialogContent","DialogTitle","IconButton","Dialog","MuiDialog","styled","CloseIcon","combineSx","Header","children","onClose","props","style","textOverflow","overflow","aria-label","onClick","sx","dialogCloseIconButtonStyle","Content","dividers","minWidth","textWrap","PrimaryButton","variant","type","SecondaryButton","color","Form","overflowY","display","flexDirection","theme","position","top","spacing","right","Actions"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAUjC,SACEA,MAAM,EACNC,aAAa,EACbC,aAAa,EACbC,WAAW,EACXC,UAAU,EACVC,UAAUC,SAAS,EACnBC,MAAM,QACD,gBAAgB;AACvB,OAAOC,eAAe,wBAAwB;AAG9C,SAASC,SAAS,QAAQ,oBAAW;AAarC,MAAMC,SAAS,CAAC,EAAEC,QAAQ,EAAEC,OAAO,EAAE,GAAGC,OAA0B;IAChE,qBACE;;0BACE,KAACV;gBAAYW,OAAO;oBAAEC,cAAc;oBAAYC,UAAU;gBAAS;gBAAI,GAAGH,KAAK;0BAC5EF;;YAEFC,yBACC,KAACR;gBAAWa,cAAW;gBAAQC,SAASN;gBAASO,IAAIC;0BACnD,cAAA,KAACZ;;;;AAKX;AAEA,MAAMa,UAAU,CAAC,EAAEV,QAAQ,EAAEQ,EAAE,EAAE,GAAGN,OAA2B,iBAC7D,KAACX;QAAcoB,QAAQ;QAAE,GAAGT,KAAK;QAAEM,IAAIV,UAAU;YAAEc,UAAU,CAAC,KAAK,CAAC;YAAEC,UAAU;QAAU,GAAGL;kBAC1FR;;AAIL,MAAMc,gBAAgB,CAAC,EAAEd,QAAQ,EAAE,GAAGE,OAA0B,iBAC9D,KAACb;QAAO0B,SAAQ;QAAYC,MAAK;QAAU,GAAGd,KAAK;kBAChDF;;AAIL,MAAMiB,kBAAkB,CAAC,EAAEjB,QAAQ,EAAE,GAAGE,OAA0B,iBAChE,KAACb;QAAO0B,SAAQ;QAAWG,OAAM;QAAa,GAAGhB,KAAK;kBACnDF;;AAIL;;;;;CAKC,GACD,MAAMmB,OAAsDvB,OAAO,QAAQ;IACzEwB,WAAW;IACXC,SAAS;IACTC,eAAe;AACjB;AAEA;;;CAGC,GACD,MAAMb,6BAA6B,CAACc;IAClC,OAAO;QAAEC,UAAU;QAAYC,KAAKF,MAAMG,OAAO,CAAC;QAAMC,OAAOJ,MAAMG,OAAO,CAAC;IAAK;AACpF;AAEA,OAAO,MAAMhC,SAOT,CAAC,EAAEM,QAAQ,EAAE,GAAGE,OAAO,iBAAK,KAACP;QAAW,GAAGO,KAAK;kBAAGF;OAAsB;AAE7EN,OAAOK,MAAM,GAAGA;AAChBL,OAAOyB,IAAI,GAAGA;AACdzB,OAAOgB,OAAO,GAAGA;AACjBhB,OAAOoB,aAAa,GAAGA;AACvBpB,OAAOuB,eAAe,GAAGA;AACzBvB,OAAOkC,OAAO,GAAGtC"}
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import type { ReactElement } from 'react';
2
2
  interface DiscardChangesConfirmationDialogProps {
3
3
  description: string;
4
4
  isOpen: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"DiscardChangesConfirmationDialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/DiscardChangesConfirmationDialog.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGrC,UAAU,qCAAqC;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,gCAAgC,UAAW,qCAAqC,KAAG,YAiB/F,CAAC"}
1
+ {"version":3,"file":"DiscardChangesConfirmationDialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/DiscardChangesConfirmationDialog.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,UAAU,qCAAqC;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,gCAAgC,GAAI,OAAO,qCAAqC,KAAG,YAiB/F,CAAC"}
@@ -11,8 +11,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- import { Button } from '@mui/material';
15
- import { Dialog } from './Dialog';
14
+ import { Button } from "@mui/material";
15
+ import { Dialog } from "./Dialog.js";
16
16
  export const DiscardChangesConfirmationDialog = (props)=>{
17
17
  const { description, isOpen, onCancel, onDiscardChanges } = props;
18
18
  return /*#__PURE__*/ _jsxs(Dialog, {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Dialog/DiscardChangesConfirmationDialog.tsx"],"sourcesContent":["// Copyright 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 { Button } from '@mui/material';\nimport { ReactElement } from 'react';\nimport { Dialog } from './Dialog';\n\ninterface DiscardChangesConfirmationDialogProps {\n description: string;\n isOpen: boolean;\n onCancel: () => void;\n onDiscardChanges: () => void;\n}\n\nexport const DiscardChangesConfirmationDialog = (props: DiscardChangesConfirmationDialogProps): ReactElement => {\n const { description, isOpen, onCancel, onDiscardChanges } = props;\n\n return (\n <Dialog open={isOpen} aria-labelledby=\"discard-dialog\">\n <Dialog.Header>Discard Changes</Dialog.Header>\n <Dialog.Content>{description}</Dialog.Content>\n <Dialog.Actions>\n <Button variant=\"contained\" onClick={onDiscardChanges}>\n Discard Changes\n </Button>\n <Button variant=\"outlined\" color=\"secondary\" onClick={onCancel}>\n Cancel\n </Button>\n </Dialog.Actions>\n </Dialog>\n );\n};\n"],"names":["Button","Dialog","DiscardChangesConfirmationDialog","props","description","isOpen","onCancel","onDiscardChanges","open","aria-labelledby","Header","Content","Actions","variant","onClick","color"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,MAAM,QAAQ,gBAAgB;AAEvC,SAASC,MAAM,QAAQ,WAAW;AASlC,OAAO,MAAMC,mCAAmC,CAACC;IAC/C,MAAM,EAAEC,WAAW,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,gBAAgB,EAAE,GAAGJ;IAE5D,qBACE,MAACF;QAAOO,MAAMH;QAAQI,mBAAgB;;0BACpC,KAACR,OAAOS,MAAM;0BAAC;;0BACf,KAACT,OAAOU,OAAO;0BAAEP;;0BACjB,MAACH,OAAOW,OAAO;;kCACb,KAACZ;wBAAOa,SAAQ;wBAAYC,SAASP;kCAAkB;;kCAGvD,KAACP;wBAAOa,SAAQ;wBAAWE,OAAM;wBAAYD,SAASR;kCAAU;;;;;;AAMxE,EAAE"}
1
+ {"version":3,"sources":["../../src/Dialog/DiscardChangesConfirmationDialog.tsx"],"sourcesContent":["// Copyright 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 { Button } from '@mui/material';\nimport type { ReactElement } from 'react';\n\nimport { Dialog } from './Dialog';\n\ninterface DiscardChangesConfirmationDialogProps {\n description: string;\n isOpen: boolean;\n onCancel: () => void;\n onDiscardChanges: () => void;\n}\n\nexport const DiscardChangesConfirmationDialog = (props: DiscardChangesConfirmationDialogProps): ReactElement => {\n const { description, isOpen, onCancel, onDiscardChanges } = props;\n\n return (\n <Dialog open={isOpen} aria-labelledby=\"discard-dialog\">\n <Dialog.Header>Discard Changes</Dialog.Header>\n <Dialog.Content>{description}</Dialog.Content>\n <Dialog.Actions>\n <Button variant=\"contained\" onClick={onDiscardChanges}>\n Discard Changes\n </Button>\n <Button variant=\"outlined\" color=\"secondary\" onClick={onCancel}>\n Cancel\n </Button>\n </Dialog.Actions>\n </Dialog>\n );\n};\n"],"names":["Button","Dialog","DiscardChangesConfirmationDialog","props","description","isOpen","onCancel","onDiscardChanges","open","aria-labelledby","Header","Content","Actions","variant","onClick","color"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,MAAM,QAAQ,gBAAgB;AAGvC,SAASC,MAAM,QAAQ,cAAW;AASlC,OAAO,MAAMC,mCAAmC,CAACC;IAC/C,MAAM,EAAEC,WAAW,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,gBAAgB,EAAE,GAAGJ;IAE5D,qBACE,MAACF;QAAOO,MAAMH;QAAQI,mBAAgB;;0BACpC,KAACR,OAAOS,MAAM;0BAAC;;0BACf,KAACT,OAAOU,OAAO;0BAAEP;;0BACjB,MAACH,OAAOW,OAAO;;kCACb,KAACZ;wBAAOa,SAAQ;wBAAYC,SAASP;kCAAkB;;kCAGvD,KAACP;wBAAOa,SAAQ;wBAAWE,OAAM;wBAAYD,SAASR;kCAAU;;;;;;AAMxE,EAAE"}
@@ -10,7 +10,7 @@
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 './Dialog';
14
- export * from './DiscardChangesConfirmationDialog';
13
+ export * from "./Dialog.js";
14
+ export * from "./DiscardChangesConfirmationDialog.js";
15
15
 
16
16
  //# sourceMappingURL=index.js.map