@perses-dev/clickhouse-plugin 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. package/README.md +41 -0
  2. package/__mf/css/async/1580.6b2b0c71.css +1 -0
  3. package/__mf/css/async/2341.6b2b0c71.css +1 -0
  4. package/__mf/css/async/6759.6b2b0c71.css +1 -0
  5. package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
  6. package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
  7. package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
  8. package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
  9. package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
  10. package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
  11. package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
  12. package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
  13. package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
  14. package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
  15. package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
  16. package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
  17. package/__mf/js/ClickHouse.99e35ca2.js +5 -0
  18. package/__mf/js/async/1580.5bd6ed40.js +2 -0
  19. package/__mf/js/async/1580.5bd6ed40.js.LICENSE.txt +9 -0
  20. package/__mf/js/async/1964.dccce52b.js +2 -0
  21. package/__mf/js/async/1964.dccce52b.js.LICENSE.txt +9 -0
  22. package/__mf/js/async/2114.27f707a0.js +1 -0
  23. package/__mf/js/async/2292.248bd1ea.js +2 -0
  24. package/__mf/js/async/2292.248bd1ea.js.LICENSE.txt +24 -0
  25. package/__mf/js/async/2417.1f135170.js +2 -0
  26. package/__mf/js/async/2417.1f135170.js.LICENSE.txt +9 -0
  27. package/__mf/js/async/2448.e42be954.js +10 -0
  28. package/__mf/js/async/2448.e42be954.js.LICENSE.txt +17 -0
  29. package/__mf/js/async/2651.3bdd6b21.js +1 -0
  30. package/__mf/js/async/3224.5735a223.js +1 -0
  31. package/__mf/js/async/3431.54fb88df.js +1 -0
  32. package/__mf/js/async/3632.f88c5ced.js +101 -0
  33. package/__mf/js/async/3863.70d46fa8.js +2 -0
  34. package/__mf/js/async/3863.70d46fa8.js.LICENSE.txt +9 -0
  35. package/__mf/js/async/3960.e0eb27f3.js +2 -0
  36. package/__mf/js/async/3960.e0eb27f3.js.LICENSE.txt +8 -0
  37. package/__mf/js/async/3980.2a6bea70.js +2 -0
  38. package/__mf/js/async/3980.2a6bea70.js.LICENSE.txt +9 -0
  39. package/__mf/js/async/4075.598f1ee5.js +1 -0
  40. package/__mf/js/async/4168.af4fa8b3.js +2 -0
  41. package/__mf/js/async/4238.8c8282dc.js +1 -0
  42. package/__mf/js/async/4269.a389e8c6.js +2 -0
  43. package/__mf/js/async/4269.a389e8c6.js.LICENSE.txt +9 -0
  44. package/__mf/js/async/4368.8468ec0a.js +2 -0
  45. package/__mf/js/async/4368.8468ec0a.js.LICENSE.txt +15 -0
  46. package/__mf/js/async/4421.de18bb66.js +1 -0
  47. package/__mf/js/async/5035.8a983cd3.js +73 -0
  48. package/__mf/js/async/5035.8a983cd3.js.LICENSE.txt +19 -0
  49. package/__mf/js/async/5214.d1943ccc.js +1 -0
  50. package/__mf/js/async/5409.c4876520.js +1 -0
  51. package/__mf/js/async/56.9997e6f8.js +1 -0
  52. package/__mf/js/async/5713.92805154.js +1 -0
  53. package/__mf/js/async/5981.f3abf3c8.js +2 -0
  54. package/__mf/js/async/5981.f3abf3c8.js.LICENSE.txt +8 -0
  55. package/__mf/js/async/6292.4311054b.js +1 -0
  56. package/__mf/js/async/6333.dfeaf029.js +2 -0
  57. package/__mf/js/async/6333.dfeaf029.js.LICENSE.txt +9 -0
  58. package/__mf/js/async/6377.6c8c4e15.js +2 -0
  59. package/__mf/js/async/6377.6c8c4e15.js.LICENSE.txt +32 -0
  60. package/__mf/js/async/6411.3873365b.js +1 -0
  61. package/__mf/js/async/6467.f4e5b898.js +1 -0
  62. package/__mf/js/async/6569.f8ee50db.js +1 -0
  63. package/__mf/js/async/6714.e4b5281a.js +2 -0
  64. package/__mf/js/async/6714.e4b5281a.js.LICENSE.txt +21 -0
  65. package/__mf/js/async/6770.e50c0d08.js +1 -0
  66. package/__mf/js/async/694.c93f9cdf.js +1 -0
  67. package/__mf/js/async/7376.c01a7f82.js +1 -0
  68. package/__mf/js/async/738.0cdf47b4.js +1 -0
  69. package/__mf/js/async/7740.b3df297f.js +1 -0
  70. package/__mf/js/async/8216.44c6334e.js +1 -0
  71. package/__mf/js/async/8465.f4c53fef.js +7 -0
  72. package/__mf/js/async/8465.f4c53fef.js.LICENSE.txt +21 -0
  73. package/__mf/js/async/8488.16a69ea5.js +1 -0
  74. package/__mf/js/async/8709.6d909ac5.js +2 -0
  75. package/__mf/js/async/8709.6d909ac5.js.LICENSE.txt +9 -0
  76. package/__mf/js/async/9173.90ba4f20.js +2 -0
  77. package/__mf/js/async/9173.90ba4f20.js.LICENSE.txt +19 -0
  78. package/__mf/js/async/9654.ab803765.js +37 -0
  79. package/__mf/js/async/__federation_expose_ClickHouseDatasource.1ef730b1.js +2 -0
  80. package/__mf/js/async/__federation_expose_ClickHouseDatasource.1ef730b1.js.LICENSE.txt +9 -0
  81. package/__mf/js/async/__federation_expose_ClickHouseLogQuery.3f312752.js +19 -0
  82. package/__mf/js/async/__federation_expose_ClickHouseTimeSeriesQuery.a3f88e6b.js +19 -0
  83. package/__mf/js/async/__federation_expose_Logs.88d56eeb.js +2 -0
  84. package/__mf/js/async/__federation_expose_Logs.88d56eeb.js.LICENSE.txt +9 -0
  85. package/__mf/js/main.b7c9a660.js +5 -0
  86. package/lib/bootstrap.d.ts +2 -0
  87. package/lib/bootstrap.d.ts.map +1 -0
  88. package/lib/bootstrap.js +19 -0
  89. package/lib/bootstrap.js.map +1 -0
  90. package/lib/cjs/bootstrap.js +26 -0
  91. package/lib/cjs/components/ClickQLEditor.js +72 -0
  92. package/lib/cjs/components/constants.js +41 -0
  93. package/lib/cjs/components/index.js +30 -0
  94. package/lib/cjs/datasources/click-house-datasource/ClickHouseDatasource.js +49 -0
  95. package/lib/cjs/datasources/click-house-datasource/ClickHouseDatasourceEditor.js +51 -0
  96. package/lib/cjs/datasources/click-house-datasource/click-house-datasource-types.js +16 -0
  97. package/lib/cjs/datasources/click-house-datasource/index.js +32 -0
  98. package/lib/cjs/datasources/index.js +30 -0
  99. package/lib/cjs/env.d.js +14 -0
  100. package/lib/cjs/getPluginModule.js +39 -0
  101. package/lib/cjs/index-federation.js +55 -0
  102. package/lib/cjs/index.js +39 -0
  103. package/lib/cjs/model/click-house-client.js +66 -0
  104. package/lib/cjs/model/click-house-data-types.js +16 -0
  105. package/lib/cjs/panels/index.js +30 -0
  106. package/lib/cjs/panels/logs/Logs.js +37 -0
  107. package/lib/cjs/panels/logs/LogsComponent.js +47 -0
  108. package/lib/cjs/panels/logs/LogsSettingsEditor.js +57 -0
  109. package/lib/cjs/panels/logs/components/EmptyLogsState.js +49 -0
  110. package/lib/cjs/panels/logs/components/LogRow/LogDetailsTable.js +71 -0
  111. package/lib/cjs/panels/logs/components/LogRow/LogRow.js +163 -0
  112. package/lib/cjs/panels/logs/components/LogRow/LogTimestamp.js +45 -0
  113. package/lib/cjs/panels/logs/components/LogRow/LogsStyles.js +77 -0
  114. package/lib/cjs/panels/logs/components/LogRow/index.js +37 -0
  115. package/lib/cjs/panels/logs/components/LogsList.js +44 -0
  116. package/lib/cjs/panels/logs/components/VirtualizedLogsList.js +60 -0
  117. package/lib/cjs/panels/logs/components/hooks/useExpandedRows.js +45 -0
  118. package/lib/cjs/panels/logs/index.js +33 -0
  119. package/lib/cjs/panels/logs/logs-types.js +16 -0
  120. package/lib/cjs/queries/click-house-log-query/ClickHouseLogQuery.js +43 -0
  121. package/lib/cjs/queries/click-house-log-query/ClickHouseLogQueryEditor.js +113 -0
  122. package/lib/cjs/queries/click-house-log-query/click-house-log-query-types.js +16 -0
  123. package/lib/cjs/queries/click-house-log-query/get-click-house-log-data.js +89 -0
  124. package/lib/cjs/queries/click-house-log-query/index.js +33 -0
  125. package/lib/cjs/queries/click-house-log-query/log-query-plugin-interface.js +4 -0
  126. package/lib/cjs/queries/click-house-time-series-query/ClickHouseQuery.js +43 -0
  127. package/lib/cjs/queries/click-house-time-series-query/ClickHouseQueryEditor.js +113 -0
  128. package/lib/cjs/queries/click-house-time-series-query/click-house-query-types.js +16 -0
  129. package/lib/cjs/queries/click-house-time-series-query/get-click-house-data.js +69 -0
  130. package/lib/cjs/queries/click-house-time-series-query/index.js +33 -0
  131. package/lib/cjs/queries/constants.js +34 -0
  132. package/lib/cjs/queries/index.js +31 -0
  133. package/lib/cjs/setup-tests.js +19 -0
  134. package/lib/components/ClickQLEditor.d.ts +5 -0
  135. package/lib/components/ClickQLEditor.d.ts.map +1 -0
  136. package/lib/components/ClickQLEditor.js +59 -0
  137. package/lib/components/ClickQLEditor.js.map +1 -0
  138. package/lib/components/constants.d.ts +2 -0
  139. package/lib/components/constants.d.ts.map +1 -0
  140. package/lib/components/constants.js +33 -0
  141. package/lib/components/constants.js.map +1 -0
  142. package/lib/components/index.d.ts +2 -0
  143. package/lib/components/index.d.ts.map +1 -0
  144. package/lib/components/index.js +15 -0
  145. package/lib/components/index.js.map +1 -0
  146. package/lib/datasources/click-house-datasource/ClickHouseDatasource.d.ts +4 -0
  147. package/lib/datasources/click-house-datasource/ClickHouseDatasource.d.ts.map +1 -0
  148. package/lib/datasources/click-house-datasource/ClickHouseDatasource.js +41 -0
  149. package/lib/datasources/click-house-datasource/ClickHouseDatasource.js.map +1 -0
  150. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.d.ts +9 -0
  151. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.d.ts.map +1 -0
  152. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.js +43 -0
  153. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.js.map +1 -0
  154. package/lib/datasources/click-house-datasource/click-house-datasource-types.d.ts +26 -0
  155. package/lib/datasources/click-house-datasource/click-house-datasource-types.d.ts.map +1 -0
  156. package/lib/datasources/click-house-datasource/click-house-datasource-types.js +15 -0
  157. package/lib/datasources/click-house-datasource/click-house-datasource-types.js.map +1 -0
  158. package/lib/datasources/click-house-datasource/index.d.ts +4 -0
  159. package/lib/datasources/click-house-datasource/index.d.ts.map +1 -0
  160. package/lib/datasources/click-house-datasource/index.js +17 -0
  161. package/lib/datasources/click-house-datasource/index.js.map +1 -0
  162. package/lib/datasources/index.d.ts +2 -0
  163. package/lib/datasources/index.d.ts.map +1 -0
  164. package/lib/datasources/index.js +15 -0
  165. package/lib/datasources/index.js.map +1 -0
  166. package/lib/env.d.js +15 -0
  167. package/lib/env.d.js.map +1 -0
  168. package/lib/getPluginModule.d.ts +6 -0
  169. package/lib/getPluginModule.d.ts.map +1 -0
  170. package/lib/getPluginModule.js +28 -0
  171. package/lib/getPluginModule.js.map +1 -0
  172. package/lib/index-federation.d.ts +1 -0
  173. package/lib/index-federation.d.ts.map +1 -0
  174. package/lib/index-federation.js +15 -0
  175. package/lib/index-federation.js.map +1 -0
  176. package/lib/index.d.ts +5 -0
  177. package/lib/index.d.ts.map +1 -0
  178. package/lib/index.js +18 -0
  179. package/lib/index.js.map +1 -0
  180. package/lib/model/click-house-client.d.ts +22 -0
  181. package/lib/model/click-house-client.d.ts.map +1 -0
  182. package/lib/model/click-house-client.js +58 -0
  183. package/lib/model/click-house-client.js.map +1 -0
  184. package/lib/model/click-house-data-types.d.ts +22 -0
  185. package/lib/model/click-house-data-types.d.ts.map +1 -0
  186. package/lib/model/click-house-data-types.js +15 -0
  187. package/lib/model/click-house-data-types.js.map +1 -0
  188. package/lib/panels/index.d.ts +2 -0
  189. package/lib/panels/index.d.ts.map +1 -0
  190. package/lib/panels/index.js +15 -0
  191. package/lib/panels/index.js.map +1 -0
  192. package/lib/panels/logs/Logs.d.ts +4 -0
  193. package/lib/panels/logs/Logs.d.ts.map +1 -0
  194. package/lib/panels/logs/Logs.js +29 -0
  195. package/lib/panels/logs/Logs.js.map +1 -0
  196. package/lib/panels/logs/LogsComponent.d.ts +4 -0
  197. package/lib/panels/logs/LogsComponent.d.ts.map +1 -0
  198. package/lib/panels/logs/LogsComponent.js +34 -0
  199. package/lib/panels/logs/LogsComponent.js.map +1 -0
  200. package/lib/panels/logs/LogsSettingsEditor.d.ts +7 -0
  201. package/lib/panels/logs/LogsSettingsEditor.d.ts.map +1 -0
  202. package/lib/panels/logs/LogsSettingsEditor.js +49 -0
  203. package/lib/panels/logs/LogsSettingsEditor.js.map +1 -0
  204. package/lib/panels/logs/components/EmptyLogsState.d.ts +7 -0
  205. package/lib/panels/logs/components/EmptyLogsState.d.ts.map +1 -0
  206. package/lib/panels/logs/components/EmptyLogsState.js +36 -0
  207. package/lib/panels/logs/components/EmptyLogsState.js.map +1 -0
  208. package/lib/panels/logs/components/LogRow/LogDetailsTable.d.ts +8 -0
  209. package/lib/panels/logs/components/LogRow/LogDetailsTable.d.ts.map +1 -0
  210. package/lib/panels/logs/components/LogRow/LogDetailsTable.js +58 -0
  211. package/lib/panels/logs/components/LogRow/LogDetailsTable.js.map +1 -0
  212. package/lib/panels/logs/components/LogRow/LogRow.d.ts +14 -0
  213. package/lib/panels/logs/components/LogRow/LogRow.d.ts.map +1 -0
  214. package/lib/panels/logs/components/LogRow/LogRow.js +109 -0
  215. package/lib/panels/logs/components/LogRow/LogRow.js.map +1 -0
  216. package/lib/panels/logs/components/LogRow/LogTimestamp.d.ts +7 -0
  217. package/lib/panels/logs/components/LogRow/LogTimestamp.d.ts.map +1 -0
  218. package/lib/panels/logs/components/LogRow/LogTimestamp.js +32 -0
  219. package/lib/panels/logs/components/LogRow/LogTimestamp.js.map +1 -0
  220. package/lib/panels/logs/components/LogRow/LogsStyles.d.ts +22 -0
  221. package/lib/panels/logs/components/LogRow/LogsStyles.d.ts.map +1 -0
  222. package/lib/panels/logs/components/LogRow/LogsStyles.js +55 -0
  223. package/lib/panels/logs/components/LogRow/LogsStyles.js.map +1 -0
  224. package/lib/panels/logs/components/LogRow/index.d.ts +3 -0
  225. package/lib/panels/logs/components/LogRow/index.d.ts.map +1 -0
  226. package/lib/panels/logs/components/LogRow/index.js +16 -0
  227. package/lib/panels/logs/components/LogRow/index.js.map +1 -0
  228. package/lib/panels/logs/components/LogsList.d.ts +8 -0
  229. package/lib/panels/logs/components/LogsList.d.ts.map +1 -0
  230. package/lib/panels/logs/components/LogsList.js +31 -0
  231. package/lib/panels/logs/components/LogsList.js.map +1 -0
  232. package/lib/panels/logs/components/VirtualizedLogsList.d.ts +10 -0
  233. package/lib/panels/logs/components/VirtualizedLogsList.d.ts.map +1 -0
  234. package/lib/panels/logs/components/VirtualizedLogsList.js +47 -0
  235. package/lib/panels/logs/components/VirtualizedLogsList.js.map +1 -0
  236. package/lib/panels/logs/components/hooks/useExpandedRows.d.ts +6 -0
  237. package/lib/panels/logs/components/hooks/useExpandedRows.d.ts.map +1 -0
  238. package/lib/panels/logs/components/hooks/useExpandedRows.js +37 -0
  239. package/lib/panels/logs/components/hooks/useExpandedRows.js.map +1 -0
  240. package/lib/panels/logs/index.d.ts +5 -0
  241. package/lib/panels/logs/index.d.ts.map +1 -0
  242. package/lib/panels/logs/index.js +18 -0
  243. package/lib/panels/logs/index.js.map +1 -0
  244. package/lib/panels/logs/logs-types.d.ts +16 -0
  245. package/lib/panels/logs/logs-types.d.ts.map +1 -0
  246. package/lib/panels/logs/logs-types.js +15 -0
  247. package/lib/panels/logs/logs-types.js.map +1 -0
  248. package/lib/queries/click-house-log-query/ClickHouseLogQuery.d.ts +4 -0
  249. package/lib/queries/click-house-log-query/ClickHouseLogQuery.d.ts.map +1 -0
  250. package/lib/queries/click-house-log-query/ClickHouseLogQuery.js +35 -0
  251. package/lib/queries/click-house-log-query/ClickHouseLogQuery.js.map +1 -0
  252. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.d.ts +7 -0
  253. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.d.ts.map +1 -0
  254. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.js +105 -0
  255. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.js.map +1 -0
  256. package/lib/queries/click-house-log-query/click-house-log-query-types.d.ts +6 -0
  257. package/lib/queries/click-house-log-query/click-house-log-query-types.d.ts.map +1 -0
  258. package/lib/queries/click-house-log-query/click-house-log-query-types.js +15 -0
  259. package/lib/queries/click-house-log-query/click-house-log-query-types.js.map +1 -0
  260. package/lib/queries/click-house-log-query/get-click-house-log-data.d.ts +4 -0
  261. package/lib/queries/click-house-log-query/get-click-house-log-data.d.ts.map +1 -0
  262. package/lib/queries/click-house-log-query/get-click-house-log-data.js +81 -0
  263. package/lib/queries/click-house-log-query/get-click-house-log-data.js.map +1 -0
  264. package/lib/queries/click-house-log-query/index.d.ts +5 -0
  265. package/lib/queries/click-house-log-query/index.d.ts.map +1 -0
  266. package/lib/queries/click-house-log-query/index.js +18 -0
  267. package/lib/queries/click-house-log-query/index.js.map +1 -0
  268. package/lib/queries/click-house-log-query/log-query-plugin-interface.d.ts +25 -0
  269. package/lib/queries/click-house-log-query/log-query-plugin-interface.d.ts.map +1 -0
  270. package/lib/queries/click-house-log-query/log-query-plugin-interface.js +3 -0
  271. package/lib/queries/click-house-log-query/log-query-plugin-interface.js.map +1 -0
  272. package/lib/queries/click-house-time-series-query/ClickHouseQuery.d.ts +4 -0
  273. package/lib/queries/click-house-time-series-query/ClickHouseQuery.d.ts.map +1 -0
  274. package/lib/queries/click-house-time-series-query/ClickHouseQuery.js +35 -0
  275. package/lib/queries/click-house-time-series-query/ClickHouseQuery.js.map +1 -0
  276. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.d.ts +7 -0
  277. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.d.ts.map +1 -0
  278. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.js +105 -0
  279. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.js.map +1 -0
  280. package/lib/queries/click-house-time-series-query/click-house-query-types.d.ts +11 -0
  281. package/lib/queries/click-house-time-series-query/click-house-query-types.d.ts.map +1 -0
  282. package/lib/queries/click-house-time-series-query/click-house-query-types.js +16 -0
  283. package/lib/queries/click-house-time-series-query/click-house-query-types.js.map +1 -0
  284. package/lib/queries/click-house-time-series-query/get-click-house-data.d.ts +4 -0
  285. package/lib/queries/click-house-time-series-query/get-click-house-data.d.ts.map +1 -0
  286. package/lib/queries/click-house-time-series-query/get-click-house-data.js +61 -0
  287. package/lib/queries/click-house-time-series-query/get-click-house-data.js.map +1 -0
  288. package/lib/queries/click-house-time-series-query/index.d.ts +5 -0
  289. package/lib/queries/click-house-time-series-query/index.d.ts.map +1 -0
  290. package/lib/queries/click-house-time-series-query/index.js +18 -0
  291. package/lib/queries/click-house-time-series-query/index.js.map +1 -0
  292. package/lib/queries/constants.d.ts +5 -0
  293. package/lib/queries/constants.d.ts.map +1 -0
  294. package/lib/queries/constants.js +18 -0
  295. package/lib/queries/constants.js.map +1 -0
  296. package/lib/queries/index.d.ts +3 -0
  297. package/lib/queries/index.d.ts.map +1 -0
  298. package/lib/queries/index.js +16 -0
  299. package/lib/queries/index.js.map +1 -0
  300. package/lib/setup-tests.d.ts +2 -0
  301. package/lib/setup-tests.d.ts.map +1 -0
  302. package/lib/setup-tests.js +17 -0
  303. package/lib/setup-tests.js.map +1 -0
  304. package/mf-manifest.json +505 -0
  305. package/mf-stats.json +561 -0
  306. package/package.json +85 -0
@@ -0,0 +1,163 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // You may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "LogRow", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return LogRow;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
25
+ const _material = require("@mui/material");
26
+ const _ChevronRight = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ChevronRight"));
27
+ const _LogTimestamp = require("./LogTimestamp");
28
+ const _LogsStyles = require("./LogsStyles");
29
+ const _LogDetailsTable = require("./LogDetailsTable");
30
+ function _interop_require_default(obj) {
31
+ return obj && obj.__esModule ? obj : {
32
+ default: obj
33
+ };
34
+ }
35
+ function _getRequireWildcardCache(nodeInterop) {
36
+ if (typeof WeakMap !== "function") return null;
37
+ var cacheBabelInterop = new WeakMap();
38
+ var cacheNodeInterop = new WeakMap();
39
+ return (_getRequireWildcardCache = function(nodeInterop) {
40
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
41
+ })(nodeInterop);
42
+ }
43
+ function _interop_require_wildcard(obj, nodeInterop) {
44
+ if (!nodeInterop && obj && obj.__esModule) {
45
+ return obj;
46
+ }
47
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
48
+ return {
49
+ default: obj
50
+ };
51
+ }
52
+ var cache = _getRequireWildcardCache(nodeInterop);
53
+ if (cache && cache.has(obj)) {
54
+ return cache.get(obj);
55
+ }
56
+ var newObj = {
57
+ __proto__: null
58
+ };
59
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
60
+ for(var key in obj){
61
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
62
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
63
+ if (desc && (desc.get || desc.set)) {
64
+ Object.defineProperty(newObj, key, desc);
65
+ } else {
66
+ newObj[key] = obj[key];
67
+ }
68
+ }
69
+ }
70
+ newObj.default = obj;
71
+ if (cache) {
72
+ cache.set(obj, newObj);
73
+ }
74
+ return newObj;
75
+ }
76
+ const LogRow = /*#__PURE__*/ (0, _react.memo)(({ log, isExpanded, index, onToggle, isExpandable = true, time = false, wrap = false })=>{
77
+ const theme = (0, _material.useTheme)();
78
+ const severityColor = theme.palette.text.secondary;
79
+ const handleToggle = (0, _react.useCallback)(()=>{
80
+ if (isExpandable) {
81
+ onToggle(index);
82
+ }
83
+ }, [
84
+ isExpandable,
85
+ onToggle,
86
+ index
87
+ ]);
88
+ if (!log) return null;
89
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_LogsStyles.LogRowContainer, {
90
+ severityColor: severityColor,
91
+ children: [
92
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_LogsStyles.LogRowContent, {
93
+ onClick: handleToggle,
94
+ isExpandable: isExpandable,
95
+ time: time,
96
+ children: [
97
+ isExpandable && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
98
+ sx: {
99
+ display: 'flex',
100
+ alignItems: 'center',
101
+ width: '16px',
102
+ justifyContent: 'center'
103
+ },
104
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogsStyles.ExpandButton, {
105
+ size: "small",
106
+ isExpanded: isExpanded,
107
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_ChevronRight.default, {
108
+ sx: {
109
+ fontSize: '12px'
110
+ }
111
+ })
112
+ })
113
+ }),
114
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogTimestamp.LogTimestamp, {
115
+ timestamp: log?.timestamp
116
+ }),
117
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
118
+ sx: {
119
+ display: 'flex',
120
+ gap: '10px',
121
+ marginLeft: '36px'
122
+ },
123
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogsStyles.LogText, {
124
+ variant: "body2",
125
+ wrap: wrap,
126
+ children: log?.line
127
+ })
128
+ })
129
+ ]
130
+ }),
131
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Collapse, {
132
+ in: isExpanded,
133
+ timeout: 200,
134
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
135
+ sx: {
136
+ padding: '8px'
137
+ },
138
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
139
+ sx: {
140
+ display: 'grid',
141
+ gridTemplateColumns: !time ? '1fr' : '8px minmax(160px, max-content) 1fr',
142
+ gap: '12px'
143
+ },
144
+ children: [
145
+ time && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
146
+ children: [
147
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {}),
148
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {})
149
+ ]
150
+ }),
151
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
152
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogDetailsTable.LogDetailsTable, {
153
+ log: log.labels
154
+ })
155
+ })
156
+ ]
157
+ })
158
+ })
159
+ })
160
+ ]
161
+ });
162
+ });
163
+ LogRow.displayName = 'LogRow';
@@ -0,0 +1,45 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "LogTimestamp", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return LogTimestamp;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
25
+ const _material = require("@mui/material");
26
+ function _interop_require_default(obj) {
27
+ return obj && obj.__esModule ? obj : {
28
+ default: obj
29
+ };
30
+ }
31
+ const LogTimestamp = ({ timestamp })=>{
32
+ const theme = (0, _material.useTheme)();
33
+ const isDarkMode = theme.palette.mode === 'dark';
34
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
35
+ variant: "caption",
36
+ sx: {
37
+ color: isDarkMode ? '#000000' : theme.palette.text.secondary,
38
+ fontSize: '12px',
39
+ whiteSpace: 'nowrap',
40
+ minWidth: 'max-content',
41
+ backgroundColor: '#FFF3E0'
42
+ },
43
+ children: timestamp
44
+ });
45
+ };
@@ -0,0 +1,77 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ function _export(target, all) {
18
+ for(var name in all)Object.defineProperty(target, name, {
19
+ enumerable: true,
20
+ get: all[name]
21
+ });
22
+ }
23
+ _export(exports, {
24
+ ExpandButton: function() {
25
+ return ExpandButton;
26
+ },
27
+ LogRowContainer: function() {
28
+ return LogRowContainer;
29
+ },
30
+ LogRowContent: function() {
31
+ return LogRowContent;
32
+ },
33
+ LogText: function() {
34
+ return LogText;
35
+ }
36
+ });
37
+ const _material = require("@mui/material");
38
+ const LogRowContainer = (0, _material.styled)(_material.Box)(({ severityColor })=>({
39
+ borderLeft: `4px solid ${severityColor}`,
40
+ transition: 'all 0.2s ease',
41
+ marginBottom: '4px',
42
+ fontFamily: '"DejaVu Sans Mono", monospace'
43
+ }));
44
+ const LogRowContent = (0, _material.styled)(_material.Box)(({ theme, isExpandable })=>({
45
+ display: 'grid',
46
+ gridTemplateColumns: isExpandable ? '16px minmax(160px, max-content) 1fr' : 'minmax(160px, max-content) 1fr',
47
+ alignItems: 'flex-start',
48
+ padding: '4px 8px',
49
+ cursor: isExpandable ? 'pointer' : 'default',
50
+ gap: '12px',
51
+ '&:hover': {
52
+ backgroundColor: theme.palette.action.hover
53
+ }
54
+ }));
55
+ const ExpandButton = (0, _material.styled)(_material.IconButton)(({ theme, isExpanded })=>({
56
+ padding: 0,
57
+ width: '16px',
58
+ height: '16px',
59
+ color: theme.palette.text.secondary,
60
+ transform: isExpanded ? 'rotate(90deg)' : 'rotate(0deg)',
61
+ transition: 'transform 0.2s ease'
62
+ }));
63
+ const LogText = (0, _material.styled)(_material.Typography)(({ wrap })=>({
64
+ fontSize: '12px',
65
+ flex: 1,
66
+ lineHeight: 1.4,
67
+ textAlign: 'left',
68
+ ...wrap ? {
69
+ wordBreak: 'break-word',
70
+ whiteSpace: 'pre-wrap',
71
+ overflow: 'visible',
72
+ textOverflow: 'unset'
73
+ } : {
74
+ wordBreak: 'normal',
75
+ whiteSpace: 'nowrap'
76
+ }
77
+ }));
@@ -0,0 +1,37 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "LogRow", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return _LogRow.LogRow;
21
+ }
22
+ });
23
+ const _LogRow = require("./LogRow");
24
+ _export_star(require("./LogsStyles"), exports);
25
+ function _export_star(from, to) {
26
+ Object.keys(from).forEach(function(k) {
27
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
28
+ Object.defineProperty(to, k, {
29
+ enumerable: true,
30
+ get: function() {
31
+ return from[k];
32
+ }
33
+ });
34
+ }
35
+ });
36
+ return from;
37
+ }
@@ -0,0 +1,44 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "default", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return _default;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
25
+ const _EmptyLogsState = require("./EmptyLogsState");
26
+ const _useExpandedRows = require("./hooks/useExpandedRows");
27
+ const _VirtualizedLogsList = require("./VirtualizedLogsList");
28
+ function _interop_require_default(obj) {
29
+ return obj && obj.__esModule ? obj : {
30
+ default: obj
31
+ };
32
+ }
33
+ const LogsList = ({ logs })=>{
34
+ const { expandedRows, toggleExpand } = (0, _useExpandedRows.useExpandedRows)();
35
+ if (!logs.length) {
36
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_EmptyLogsState.EmptyLogsState, {});
37
+ }
38
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_VirtualizedLogsList.VirtualizedLogsList, {
39
+ logs: logs,
40
+ expandedRows: expandedRows,
41
+ onToggleExpand: toggleExpand
42
+ });
43
+ };
44
+ const _default = LogsList;
@@ -0,0 +1,60 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "VirtualizedLogsList", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return VirtualizedLogsList;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
25
+ const _material = require("@mui/material");
26
+ const _reactvirtuoso = require("react-virtuoso");
27
+ const _LogRow = require("./LogRow/LogRow");
28
+ function _interop_require_default(obj) {
29
+ return obj && obj.__esModule ? obj : {
30
+ default: obj
31
+ };
32
+ }
33
+ const VirtualizedLogsList = ({ logs, expandedRows, onToggleExpand })=>{
34
+ const theme = (0, _material.useTheme)();
35
+ const renderLogRow = (index)=>{
36
+ const log = logs[index];
37
+ if (!log) return null;
38
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogRow.LogRow, {
39
+ log: log,
40
+ index: index,
41
+ isExpanded: expandedRows.has(index),
42
+ onToggle: onToggleExpand
43
+ });
44
+ };
45
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
46
+ sx: {
47
+ height: '100%',
48
+ backgroundColor: theme.palette.background.default,
49
+ overflow: 'hidden',
50
+ boxShadow: theme.shadows[1]
51
+ },
52
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactvirtuoso.Virtuoso, {
53
+ style: {
54
+ height: '100%'
55
+ },
56
+ totalCount: logs.length,
57
+ itemContent: renderLogRow
58
+ })
59
+ });
60
+ };
@@ -0,0 +1,45 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "useExpandedRows", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return useExpandedRows;
21
+ }
22
+ });
23
+ const _react = require("react");
24
+ const useExpandedRows = ()=>{
25
+ const [expandedRows, setExpandedRows] = (0, _react.useState)(new Set());
26
+ const toggleExpand = (0, _react.useCallback)((index)=>{
27
+ setExpandedRows((prev)=>{
28
+ const newSet = new Set(prev);
29
+ if (newSet.has(index)) {
30
+ newSet.delete(index);
31
+ } else {
32
+ newSet.add(index);
33
+ }
34
+ return newSet;
35
+ });
36
+ }, []);
37
+ const clearExpanded = (0, _react.useCallback)(()=>{
38
+ setExpandedRows(new Set());
39
+ }, []);
40
+ return {
41
+ expandedRows,
42
+ toggleExpand,
43
+ clearExpanded
44
+ };
45
+ };
@@ -0,0 +1,33 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ _export_star(require("./Logs"), exports);
18
+ _export_star(require("./LogsComponent"), exports);
19
+ _export_star(require("./LogsSettingsEditor"), exports);
20
+ _export_star(require("./logs-types"), exports);
21
+ function _export_star(from, to) {
22
+ Object.keys(from).forEach(function(k) {
23
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
24
+ Object.defineProperty(to, k, {
25
+ enumerable: true,
26
+ get: function() {
27
+ return from[k];
28
+ }
29
+ });
30
+ }
31
+ });
32
+ return from;
33
+ }
@@ -0,0 +1,16 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
@@ -0,0 +1,43 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "ClickHouseLogQuery", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return ClickHouseLogQuery;
21
+ }
22
+ });
23
+ const _pluginsystem = require("@perses-dev/plugin-system");
24
+ const _getclickhouselogdata = require("./get-click-house-log-data");
25
+ const _ClickHouseLogQueryEditor = require("./ClickHouseLogQueryEditor");
26
+ const ClickHouseLogQuery = {
27
+ getLogData: _getclickhouselogdata.getClickHouseLogData,
28
+ OptionsEditorComponent: _ClickHouseLogQueryEditor.ClickHouseLogQueryEditor,
29
+ createInitialOptions: ()=>({
30
+ query: ''
31
+ }),
32
+ dependsOn: (spec)=>{
33
+ const queryVariables = (0, _pluginsystem.parseVariables)(spec.query);
34
+ const allVariables = [
35
+ ...new Set([
36
+ ...queryVariables
37
+ ])
38
+ ];
39
+ return {
40
+ variables: allVariables
41
+ };
42
+ }
43
+ };