@perspective-dev/viewer 4.0.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 (394) hide show
  1. package/LICENSE.md +193 -0
  2. package/README.md +4 -0
  3. package/dist/cdn/perspective-viewer.js +3 -0
  4. package/dist/cdn/perspective-viewer.js.map +7 -0
  5. package/dist/css/dracula.css +1 -0
  6. package/dist/css/gruvbox-dark.css +1 -0
  7. package/dist/css/gruvbox.css +1 -0
  8. package/dist/css/icons.css +1 -0
  9. package/dist/css/intl/de.css +1 -0
  10. package/dist/css/intl/es.css +1 -0
  11. package/dist/css/intl/fr.css +1 -0
  12. package/dist/css/intl/ja.css +1 -0
  13. package/dist/css/intl/pt.css +1 -0
  14. package/dist/css/intl/zh.css +1 -0
  15. package/dist/css/intl.css +1 -0
  16. package/dist/css/monokai.css +1 -0
  17. package/dist/css/pro-dark.css +1 -0
  18. package/dist/css/pro.css +1 -0
  19. package/dist/css/solarized-dark.css +1 -0
  20. package/dist/css/solarized.css +1 -0
  21. package/dist/css/themes.css +1 -0
  22. package/dist/css/vaporwave.css +1 -0
  23. package/dist/css/variables.css +0 -0
  24. package/dist/esm/bootstrap.d.ts +1 -0
  25. package/dist/esm/extensions.d.ts +70 -0
  26. package/dist/esm/perspective-viewer.d.ts +39 -0
  27. package/dist/esm/perspective-viewer.inline.js +3 -0
  28. package/dist/esm/perspective-viewer.inline.js.map +7 -0
  29. package/dist/esm/perspective-viewer.js +3 -0
  30. package/dist/esm/perspective-viewer.js.map +7 -0
  31. package/dist/esm/plugin.d.ts +195 -0
  32. package/dist/esm/ts-rs/Aggregate.d.ts +1 -0
  33. package/dist/esm/ts-rs/ColumnConfigValues.d.ts +31 -0
  34. package/dist/esm/ts-rs/CustomDatetimeFormat.d.ts +1 -0
  35. package/dist/esm/ts-rs/CustomDatetimeStyleConfig.d.ts +15 -0
  36. package/dist/esm/ts-rs/CustomNumberFormatConfig.d.ts +18 -0
  37. package/dist/esm/ts-rs/DatetimeColorMode.d.ts +1 -0
  38. package/dist/esm/ts-rs/DatetimeFormatType.d.ts +6 -0
  39. package/dist/esm/ts-rs/Expressions.d.ts +3 -0
  40. package/dist/esm/ts-rs/Filter.d.ts +2 -0
  41. package/dist/esm/ts-rs/FilterReducer.d.ts +1 -0
  42. package/dist/esm/ts-rs/FilterTerm.d.ts +2 -0
  43. package/dist/esm/ts-rs/FormatMode.d.ts +1 -0
  44. package/dist/esm/ts-rs/FormatUnit.d.ts +1 -0
  45. package/dist/esm/ts-rs/NumberBackgroundMode.d.ts +1 -0
  46. package/dist/esm/ts-rs/NumberForegroundMode.d.ts +1 -0
  47. package/dist/esm/ts-rs/OptionalUpdate.d.ts +1 -0
  48. package/dist/esm/ts-rs/PluginConfig.d.ts +2 -0
  49. package/dist/esm/ts-rs/RoundingMode.d.ts +1 -0
  50. package/dist/esm/ts-rs/RoundingPriority.d.ts +1 -0
  51. package/dist/esm/ts-rs/Scalar.d.ts +5 -0
  52. package/dist/esm/ts-rs/SignDisplay.d.ts +1 -0
  53. package/dist/esm/ts-rs/SimpleDatetimeFormat.d.ts +1 -0
  54. package/dist/esm/ts-rs/SimpleDatetimeStyleConfig.d.ts +6 -0
  55. package/dist/esm/ts-rs/Sort.d.ts +2 -0
  56. package/dist/esm/ts-rs/SortDir.d.ts +1 -0
  57. package/dist/esm/ts-rs/StringColorMode.d.ts +1 -0
  58. package/dist/esm/ts-rs/TrailingZeroDisplay.d.ts +1 -0
  59. package/dist/esm/ts-rs/UseGrouping.d.ts +1 -0
  60. package/dist/esm/ts-rs/ViewerConfigUpdate.d.ts +102 -0
  61. package/dist/esm/ts-rs/serde_json/JsonValue.d.ts +3 -0
  62. package/dist/wasm/perspective-viewer.d.ts +1291 -0
  63. package/dist/wasm/perspective-viewer.js +3883 -0
  64. package/dist/wasm/perspective-viewer.wasm +0 -0
  65. package/dist/wasm/perspective-viewer.wasm.d.ts +142 -0
  66. package/dist/wasm/snippets/perspective-viewer-c69283f6f62a5f14/inline0.js +1 -0
  67. package/dist/wasm/snippets/perspective-viewer-c69283f6f62a5f14/inline1.js +1 -0
  68. package/dist/wasm/snippets/perspective-viewer-c69283f6f62a5f14/inline2.js +1 -0
  69. package/dist/wasm/snippets/perspective-viewer-c69283f6f62a5f14/inline3.js +44 -0
  70. package/dist/wasm/snippets/perspective-viewer-c69283f6f62a5f14/inline4.js +1 -0
  71. package/package.json +55 -0
  72. package/src/less/aggregate-selector.less +72 -0
  73. package/src/less/column-dropdown.less +95 -0
  74. package/src/less/column-selector.less +551 -0
  75. package/src/less/column-settings-panel.less +255 -0
  76. package/src/less/column-style.less +319 -0
  77. package/src/less/column-symbol-attributes.less +73 -0
  78. package/src/less/config-selector.less +363 -0
  79. package/src/less/containers/dropdown-menu.less +94 -0
  80. package/src/less/containers/pairs-list.less +46 -0
  81. package/src/less/containers/radio-list.less +29 -0
  82. package/src/less/containers/scroll-panel.less +27 -0
  83. package/src/less/containers/split-panel.less +80 -0
  84. package/src/less/containers/tabs.less +90 -0
  85. package/src/less/dom/checkbox.less +100 -0
  86. package/src/less/dom/scrollbar.less +35 -0
  87. package/src/less/dom/select.less +63 -0
  88. package/src/less/empty-column.less +72 -0
  89. package/src/less/expression-editor.less +152 -0
  90. package/src/less/filter-dropdown.less +53 -0
  91. package/src/less/filter-item.less +126 -0
  92. package/src/less/form/code-editor.less +137 -0
  93. package/src/less/form/debug.less +88 -0
  94. package/src/less/function-dropdown.less +45 -0
  95. package/src/less/plugin-selector.less +173 -0
  96. package/src/less/render-warning.less +81 -0
  97. package/src/less/status-bar.less +551 -0
  98. package/src/less/type-icon.less +68 -0
  99. package/src/less/viewer.less +368 -0
  100. package/src/rust/components/column_dropdown.rs +162 -0
  101. package/src/rust/components/column_selector/active_column.rs +462 -0
  102. package/src/rust/components/column_selector/add_expression_button.rs +59 -0
  103. package/src/rust/components/column_selector/aggregate_selector.rs +186 -0
  104. package/src/rust/components/column_selector/config_selector.rs +674 -0
  105. package/src/rust/components/column_selector/empty_column.rs +134 -0
  106. package/src/rust/components/column_selector/expression_toolbar.rs +45 -0
  107. package/src/rust/components/column_selector/filter_column.rs +530 -0
  108. package/src/rust/components/column_selector/inactive_column.rs +221 -0
  109. package/src/rust/components/column_selector/invalid_column.rs +37 -0
  110. package/src/rust/components/column_selector/pivot_column.rs +93 -0
  111. package/src/rust/components/column_selector/sort_column.rs +135 -0
  112. package/src/rust/components/column_selector.rs +426 -0
  113. package/src/rust/components/column_settings_sidebar/attributes_tab.rs +34 -0
  114. package/src/rust/components/column_settings_sidebar/mod.rs +17 -0
  115. package/src/rust/components/column_settings_sidebar/save_settings.rs +68 -0
  116. package/src/rust/components/column_settings_sidebar/sidebar.rs +396 -0
  117. package/src/rust/components/column_settings_sidebar/style_tab/column_style.rs +177 -0
  118. package/src/rust/components/column_settings_sidebar/style_tab/stub.rs +34 -0
  119. package/src/rust/components/column_settings_sidebar/style_tab/symbol/row_selector.rs +101 -0
  120. package/src/rust/components/column_settings_sidebar/style_tab/symbol/symbol_config.rs +24 -0
  121. package/src/rust/components/column_settings_sidebar/style_tab/symbol/symbol_pairs.rs +185 -0
  122. package/src/rust/components/column_settings_sidebar/style_tab/symbol/symbol_selector.rs +55 -0
  123. package/src/rust/components/column_settings_sidebar/style_tab/symbol.rs +131 -0
  124. package/src/rust/components/column_settings_sidebar/style_tab.rs +231 -0
  125. package/src/rust/components/containers/dragdrop_list.rs +325 -0
  126. package/src/rust/components/containers/dropdown_menu.rs +104 -0
  127. package/src/rust/components/containers/kvpair.rs +47 -0
  128. package/src/rust/components/containers/mod.rs +28 -0
  129. package/src/rust/components/containers/scroll_panel.rs +311 -0
  130. package/src/rust/components/containers/scroll_panel_item.rs +111 -0
  131. package/src/rust/components/containers/select.rs +269 -0
  132. package/src/rust/components/containers/sidebar.rs +89 -0
  133. package/src/rust/components/containers/split_panel.rs +483 -0
  134. package/src/rust/components/containers/tab_list.rs +104 -0
  135. package/src/rust/components/containers/tests/mod.rs +11 -0
  136. package/src/rust/components/containers/tests/split_panel.rs +91 -0
  137. package/src/rust/components/containers/trap_door_panel.rs +50 -0
  138. package/src/rust/components/copy_dropdown.rs +136 -0
  139. package/src/rust/components/datetime_column_style/custom.rs +222 -0
  140. package/src/rust/components/datetime_column_style/simple.rs +122 -0
  141. package/src/rust/components/datetime_column_style.rs +284 -0
  142. package/src/rust/components/editable_header.rs +183 -0
  143. package/src/rust/components/empty_row.rs +169 -0
  144. package/src/rust/components/error_message.rs +56 -0
  145. package/src/rust/components/export_dropdown.rs +153 -0
  146. package/src/rust/components/expression_editor.rs +153 -0
  147. package/src/rust/components/filter_dropdown.rs +144 -0
  148. package/src/rust/components/font_loader.rs +254 -0
  149. package/src/rust/components/form/code_editor.rs +286 -0
  150. package/src/rust/components/form/color_range_selector.rs +115 -0
  151. package/src/rust/components/form/color_selector.rs +54 -0
  152. package/src/rust/components/form/debug.rs +253 -0
  153. package/src/rust/components/form/highlight.rs +50 -0
  154. package/src/rust/components/form/mod.rs +29 -0
  155. package/src/rust/components/form/number_field.rs +72 -0
  156. package/src/rust/components/form/number_input.rs +45 -0
  157. package/src/rust/components/form/number_range_field.rs +77 -0
  158. package/src/rust/components/form/optional_field.rs +53 -0
  159. package/src/rust/components/form/select_field.rs +104 -0
  160. package/src/rust/components/function_dropdown.rs +151 -0
  161. package/src/rust/components/mod.rs +45 -0
  162. package/src/rust/components/modal.rs +171 -0
  163. package/src/rust/components/number_column_style.rs +522 -0
  164. package/src/rust/components/plugin_selector.rs +196 -0
  165. package/src/rust/components/render_warning.rs +178 -0
  166. package/src/rust/components/status_bar.rs +315 -0
  167. package/src/rust/components/status_bar_counter.rs +229 -0
  168. package/src/rust/components/status_indicator.rs +164 -0
  169. package/src/rust/components/string_column_style.rs +186 -0
  170. package/src/rust/components/style/local_style.rs +35 -0
  171. package/src/rust/components/style/mod.rs +52 -0
  172. package/src/rust/components/style/style_cache.rs +132 -0
  173. package/src/rust/components/style/style_provider.rs +65 -0
  174. package/src/rust/components/style_controls/number_string_format/digits_section.rs +140 -0
  175. package/src/rust/components/style_controls/number_string_format/misc_section.rs +56 -0
  176. package/src/rust/components/style_controls/number_string_format/style_section.rs +69 -0
  177. package/src/rust/components/style_controls/number_string_format/types.rs +31 -0
  178. package/src/rust/components/style_controls/number_string_format.rs +259 -0
  179. package/src/rust/components/style_controls.rs +15 -0
  180. package/src/rust/components/type_icon.rs +53 -0
  181. package/src/rust/components/viewer.rs +668 -0
  182. package/src/rust/config/columns_config.rs +132 -0
  183. package/src/rust/config/datetime_column_style/color_mode.rs +62 -0
  184. package/src/rust/config/datetime_column_style/custom.rs +121 -0
  185. package/src/rust/config/datetime_column_style/custom_format.rs +90 -0
  186. package/src/rust/config/datetime_column_style/simple.rs +55 -0
  187. package/src/rust/config/datetime_column_style/simple_format.rs +86 -0
  188. package/src/rust/config/datetime_column_style.rs +104 -0
  189. package/src/rust/config/mod.rs +30 -0
  190. package/src/rust/config/number_column_style.rs +138 -0
  191. package/src/rust/config/number_string_format/enums.rs +298 -0
  192. package/src/rust/config/number_string_format.rs +269 -0
  193. package/src/rust/config/string_column_style.rs +140 -0
  194. package/src/rust/config/view_config.rs +24 -0
  195. package/src/rust/config/viewer_config.rs +337 -0
  196. package/src/rust/custom_elements/column_dropdown.rs +123 -0
  197. package/src/rust/custom_elements/copy_dropdown.rs +112 -0
  198. package/src/rust/custom_elements/debug_plugin.rs +114 -0
  199. package/src/rust/custom_elements/export_dropdown.rs +112 -0
  200. package/src/rust/custom_elements/filter_dropdown.rs +179 -0
  201. package/src/rust/custom_elements/function_dropdown.rs +115 -0
  202. package/src/rust/custom_elements/mod.rs +24 -0
  203. package/src/rust/custom_elements/modal.rs +395 -0
  204. package/src/rust/custom_elements/viewer.rs +880 -0
  205. package/src/rust/custom_events.rs +214 -0
  206. package/src/rust/dragdrop.rs +362 -0
  207. package/src/rust/exprtk/cursor.rs +81 -0
  208. package/src/rust/exprtk/mod.rs +17 -0
  209. package/src/rust/exprtk/tokenize/comment.rs +21 -0
  210. package/src/rust/exprtk/tokenize/number.rs +44 -0
  211. package/src/rust/exprtk/tokenize/string.rs +98 -0
  212. package/src/rust/exprtk/tokenize/symbol.rs +26 -0
  213. package/src/rust/exprtk/tokenize.rs +190 -0
  214. package/src/rust/js/clipboard.rs +77 -0
  215. package/src/rust/js/clipboard_item.rs +21 -0
  216. package/src/rust/js/intersection_observer.rs +32 -0
  217. package/src/rust/js/mimetype.rs +42 -0
  218. package/src/rust/js/mod.rs +29 -0
  219. package/src/rust/js/plugin.rs +167 -0
  220. package/src/rust/js/resize_observer.rs +37 -0
  221. package/src/rust/js/testing.rs +149 -0
  222. package/src/rust/lib.rs +116 -0
  223. package/src/rust/model/columns_iter_set.rs +340 -0
  224. package/src/rust/model/copy_export.rs +157 -0
  225. package/src/rust/model/create_col.rs +59 -0
  226. package/src/rust/model/edit_expression.rs +95 -0
  227. package/src/rust/model/export_app.rs +58 -0
  228. package/src/rust/model/export_method.rs +151 -0
  229. package/src/rust/model/get_viewer_config.rs +85 -0
  230. package/src/rust/model/intersection_observer.rs +81 -0
  231. package/src/rust/model/is_invalid_drop.rs +36 -0
  232. package/src/rust/model/mod.rs +93 -0
  233. package/src/rust/model/plugin_column_styles.rs +106 -0
  234. package/src/rust/model/resize_observer.rs +98 -0
  235. package/src/rust/model/restore_and_render.rs +113 -0
  236. package/src/rust/model/structural.rs +73 -0
  237. package/src/rust/model/update_and_render.rs +74 -0
  238. package/src/rust/presentation.rs +370 -0
  239. package/src/rust/renderer/activate.rs +49 -0
  240. package/src/rust/renderer/limits.rs +200 -0
  241. package/src/rust/renderer/plugin_store.rs +45 -0
  242. package/src/rust/renderer/registry.rs +135 -0
  243. package/src/rust/renderer/render_timer.rs +185 -0
  244. package/src/rust/renderer.rs +463 -0
  245. package/src/rust/session/column_defaults_update.rs +141 -0
  246. package/src/rust/session/drag_drop_update.rs +179 -0
  247. package/src/rust/session/metadata.rs +308 -0
  248. package/src/rust/session/replace_expression_update.rs +131 -0
  249. package/src/rust/session/view_subscription.rs +189 -0
  250. package/src/rust/session.rs +794 -0
  251. package/src/rust/utils/browser/blob.rs +49 -0
  252. package/src/rust/utils/browser/download.rs +26 -0
  253. package/src/rust/utils/browser/mod.rs +24 -0
  254. package/src/rust/utils/browser/request_animation_frame.rs +76 -0
  255. package/src/rust/utils/browser/selection.rs +79 -0
  256. package/src/rust/utils/browser/tests/debounce.rs +114 -0
  257. package/src/rust/utils/browser/tests/mod.rs +13 -0
  258. package/src/rust/utils/custom_element.rs +85 -0
  259. package/src/rust/utils/datetime.rs +49 -0
  260. package/src/rust/utils/debounce.rs +54 -0
  261. package/src/rust/utils/hooks/mod.rs +15 -0
  262. package/src/rust/utils/hooks/use_async_callback.rs +53 -0
  263. package/src/rust/utils/mod.rs +114 -0
  264. package/src/rust/utils/number_format.rs +48 -0
  265. package/src/rust/utils/pubsub.rs +222 -0
  266. package/src/rust/utils/scope.rs +54 -0
  267. package/src/rust/utils/tee.rs +88 -0
  268. package/src/rust/utils/tests/mod.rs +14 -0
  269. package/src/rust/utils/tests/pubsub.rs +95 -0
  270. package/src/rust/utils/tests/request_animation_frame.rs +42 -0
  271. package/src/rust/utils/wasm_abi.rs +61 -0
  272. package/src/rust/utils/weak_scope.rs +39 -0
  273. package/src/svg/align-scroll-icon.svg +7 -0
  274. package/src/svg/bg-pattern.png +0 -0
  275. package/src/svg/boolean-type.svg +3 -0
  276. package/src/svg/checkbox-checked-icon.svg +7 -0
  277. package/src/svg/checkbox-hover.svg +4 -0
  278. package/src/svg/checkbox-off.svg +4 -0
  279. package/src/svg/checkbox-on.svg +4 -0
  280. package/src/svg/checkbox-unchecked-icon.svg +3 -0
  281. package/src/svg/close-icon.svg +6 -0
  282. package/src/svg/column-settings-icon.svg +6 -0
  283. package/src/svg/datagrid-select-column.svg +15 -0
  284. package/src/svg/datagrid-select-region.svg +15 -0
  285. package/src/svg/datagrid-select-row.svg +13 -0
  286. package/src/svg/datagrid.svg +13 -0
  287. package/src/svg/date-type.svg +23 -0
  288. package/src/svg/downloading.gif +0 -0
  289. package/src/svg/drag-handle.svg +10 -0
  290. package/src/svg/drawer-bg-pattern-hidpi.png +0 -0
  291. package/src/svg/drawer-tab-hover.svg +8 -0
  292. package/src/svg/drawer-tab-invert-hover.svg +9 -0
  293. package/src/svg/drawer-tab-invert.svg +8 -0
  294. package/src/svg/drawer-tab.svg +7 -0
  295. package/src/svg/dropdown-selector-light.svg +3 -0
  296. package/src/svg/dropdown-selector.svg +3 -0
  297. package/src/svg/duplicate-icon.svg +4 -0
  298. package/src/svg/editable-icon.svg +5 -0
  299. package/src/svg/export-icon.svg +4 -0
  300. package/src/svg/expression.svg +10 -0
  301. package/src/svg/free-scroll-icon.svg +5 -0
  302. package/src/svg/inactive-mouseover.svg +4 -0
  303. package/src/svg/mega-menu-icons-candlestick.svg +38 -0
  304. package/src/svg/mega-menu-icons-datagrid.svg +38 -0
  305. package/src/svg/mega-menu-icons-heatmap.svg +60 -0
  306. package/src/svg/mega-menu-icons-map-scatter.svg +43 -0
  307. package/src/svg/mega-menu-icons-ohlc.svg +40 -0
  308. package/src/svg/mega-menu-icons-sunburst.svg +39 -0
  309. package/src/svg/mega-menu-icons-treemap.svg +44 -0
  310. package/src/svg/mega-menu-icons-x-bar.svg +36 -0
  311. package/src/svg/mega-menu-icons-x-y-line.svg +38 -0
  312. package/src/svg/mega-menu-icons-x-y-scatter.svg +72 -0
  313. package/src/svg/mega-menu-icons-y-area.svg +73 -0
  314. package/src/svg/mega-menu-icons-y-bar.svg +36 -0
  315. package/src/svg/mega-menu-icons-y-line.svg +36 -0
  316. package/src/svg/mega-menu-icons-y-scatter.svg +72 -0
  317. package/src/svg/number-type.svg +4 -0
  318. package/src/svg/radio-hover.svg +4 -0
  319. package/src/svg/radio-off.svg +3 -0
  320. package/src/svg/radio-on.svg +4 -0
  321. package/src/svg/read-only-icon.svg +6 -0
  322. package/src/svg/revert-icon.svg +4 -0
  323. package/src/svg/sort-abs-asc-icon.svg +3 -0
  324. package/src/svg/sort-abs-col-asc-icon.svg +3 -0
  325. package/src/svg/sort-abs-col-desc-icon.svg +3 -0
  326. package/src/svg/sort-abs-desc-icon.svg +3 -0
  327. package/src/svg/sort-asc-icon.svg +4 -0
  328. package/src/svg/sort-col-asc-icon.svg +4 -0
  329. package/src/svg/sort-col-desc-icon.svg +4 -0
  330. package/src/svg/sort-desc-icon.svg +4 -0
  331. package/src/svg/sort-none-icon.svg +3 -0
  332. package/src/svg/status_error.svg +70 -0
  333. package/src/svg/status_ok.svg +26 -0
  334. package/src/svg/string-type.svg +8 -0
  335. package/src/svg/theme-icon.svg +5 -0
  336. package/src/svg/updating.gif +0 -0
  337. package/src/themes/dracula.less +101 -0
  338. package/src/themes/gruvbox-dark.less +116 -0
  339. package/src/themes/gruvbox.less +152 -0
  340. package/src/themes/icons.less +130 -0
  341. package/src/themes/intl/de.less +102 -0
  342. package/src/themes/intl/es.less +102 -0
  343. package/src/themes/intl/fr.less +102 -0
  344. package/src/themes/intl/ja.less +102 -0
  345. package/src/themes/intl/pt.less +102 -0
  346. package/src/themes/intl/zh.less +102 -0
  347. package/src/themes/intl.less +102 -0
  348. package/src/themes/monokai.less +107 -0
  349. package/src/themes/pro-dark.less +147 -0
  350. package/src/themes/pro.less +186 -0
  351. package/src/themes/solarized-dark.less +78 -0
  352. package/src/themes/solarized.less +102 -0
  353. package/src/themes/themes.less +21 -0
  354. package/src/themes/vaporwave.less +145 -0
  355. package/src/themes/variables.less +24 -0
  356. package/src/ts/bootstrap.ts +26 -0
  357. package/src/ts/extensions.ts +124 -0
  358. package/src/ts/perspective-viewer.cdn.ts +19 -0
  359. package/src/ts/perspective-viewer.inline.ts +23 -0
  360. package/src/ts/perspective-viewer.ts +59 -0
  361. package/src/ts/plugin.ts +279 -0
  362. package/src/ts/ts-rs/Aggregate.ts +3 -0
  363. package/src/ts/ts-rs/ColumnConfigValues.ts +14 -0
  364. package/src/ts/ts-rs/CustomDatetimeFormat.ts +3 -0
  365. package/src/ts/ts-rs/CustomDatetimeStyleConfig.ts +5 -0
  366. package/src/ts/ts-rs/CustomNumberFormatConfig.ts +8 -0
  367. package/src/ts/ts-rs/DatetimeColorMode.ts +3 -0
  368. package/src/ts/ts-rs/DatetimeFormatType.ts +8 -0
  369. package/src/ts/ts-rs/Expressions.ts +3 -0
  370. package/src/ts/ts-rs/Filter.ts +4 -0
  371. package/src/ts/ts-rs/FilterReducer.ts +3 -0
  372. package/src/ts/ts-rs/FilterTerm.ts +4 -0
  373. package/src/ts/ts-rs/FormatMode.ts +3 -0
  374. package/src/ts/ts-rs/FormatUnit.ts +3 -0
  375. package/src/ts/ts-rs/NumberBackgroundMode.ts +3 -0
  376. package/src/ts/ts-rs/NumberForegroundMode.ts +3 -0
  377. package/src/ts/ts-rs/OnUpdateData.ts +8 -0
  378. package/src/ts/ts-rs/OptionalUpdate.ts +3 -0
  379. package/src/ts/ts-rs/PluginConfig.ts +4 -0
  380. package/src/ts/ts-rs/RoundingMode.ts +3 -0
  381. package/src/ts/ts-rs/RoundingPriority.ts +3 -0
  382. package/src/ts/ts-rs/Scalar.ts +7 -0
  383. package/src/ts/ts-rs/SignDisplay.ts +3 -0
  384. package/src/ts/ts-rs/SimpleDatetimeFormat.ts +3 -0
  385. package/src/ts/ts-rs/SimpleDatetimeStyleConfig.ts +4 -0
  386. package/src/ts/ts-rs/Sort.ts +4 -0
  387. package/src/ts/ts-rs/SortDir.ts +3 -0
  388. package/src/ts/ts-rs/StringColorMode.ts +3 -0
  389. package/src/ts/ts-rs/TrailingZeroDisplay.ts +3 -0
  390. package/src/ts/ts-rs/UseGrouping.ts +3 -0
  391. package/src/ts/ts-rs/ViewOnUpdateResp.ts +3 -0
  392. package/src/ts/ts-rs/ViewerConfigUpdate.ts +90 -0
  393. package/src/ts/ts-rs/serde_json/JsonValue.ts +3 -0
  394. package/tsconfig.json +15 -0
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M3.74781 9.06302L3.74781 6.58169L7.60766 6.58169L7.60766 4.51392L12.5703 7.82235L7.60766 11.1308L7.60766 9.06302L3.74781 9.06302Z" stroke="#042121" stroke-width="1.10281" stroke-linecap="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.6631 6.58176L12.6631 9.06309L8.80323 9.06309L8.80323 11.1309L3.84058 7.82242L8.80323 4.51399L8.80323 6.58176L12.6631 6.58176Z" stroke="#042121" stroke-width="1.10281" stroke-linecap="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.10593 3.41114L9.58726 3.41114L9.58726 7.27099L11.655 7.27099L8.34659 12.2336L5.03815 7.27099L7.10593 7.27099L7.10593 3.41114Z" stroke="#042121" stroke-width="1.10281" stroke-linecap="round"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.85414 9.09399C8.85414 9.39853 8.60727 9.6454 8.30273 9.6454C7.9982 9.6454 7.75133 9.39853 7.75133 9.09399L8.85414 9.09399ZM7.91283 2.9186C8.12817 2.70326 8.4773 2.70326 8.69264 2.9186L12.2018 6.42773C12.4171 6.64307 12.4171 6.9922 12.2018 7.20753C11.9864 7.42287 11.6373 7.42287 11.422 7.20753L8.30273 4.08831L5.18351 7.20753C4.96817 7.42287 4.61904 7.42287 4.4037 7.20753C4.18837 6.9922 4.18837 6.64307 4.4037 6.42773L7.91283 2.9186ZM7.75133 9.09399L7.75133 3.3085L8.85414 3.3085L8.85414 9.09399L7.75133 9.09399Z" fill="#042121"/>
3
+ <line x1="3.89136" y1="11.5795" x2="12.7139" y2="11.5795" stroke="#042121" stroke-width="1.10281"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.15796 8.37392C6.85343 8.37392 6.60655 8.12704 6.60655 7.82251C6.60655 7.51798 6.85343 7.2711 7.15796 7.2711L7.15796 8.37392ZM13.3334 7.43261C13.5487 7.64794 13.5487 7.99707 13.3334 8.21241L9.82423 11.7215C9.60889 11.9369 9.25976 11.9369 9.04442 11.7215C8.82908 11.5062 8.82908 11.1571 9.04442 10.9417L12.1636 7.82251L9.04442 4.70329C8.82908 4.48795 8.82908 4.13882 9.04442 3.92348C9.25976 3.70814 9.60889 3.70814 9.82422 3.92348L13.3334 7.43261ZM7.15796 7.2711L12.9434 7.2711L12.9434 8.37392L7.15796 8.37392L7.15796 7.2711Z" fill="#042121"/>
3
+ <line x1="4.67226" y1="3.41113" x2="4.67226" y2="12.2336" stroke="#042121" stroke-width="1.10281"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.99927 7.2711C10.3038 7.2711 10.5507 7.51798 10.5507 7.82251C10.5507 8.12704 10.3038 8.37392 9.99927 8.37392L9.99927 7.2711ZM3.82387 8.21241C3.60854 7.99708 3.60854 7.64795 3.82387 7.43261L7.333 3.92348C7.54834 3.70814 7.89747 3.70814 8.11281 3.92348C8.32814 4.13882 8.32814 4.48795 8.11281 4.70329L4.99358 7.82251L8.11281 10.9417C8.32815 11.1571 8.32815 11.5062 8.11281 11.7215C7.89747 11.9369 7.54834 11.9369 7.333 11.7215L3.82387 8.21241ZM9.99927 8.37392L4.21378 8.37392L4.21378 7.2711L9.99927 7.2711L9.99927 8.37392Z" fill="#042121"/>
3
+ <line x1="12.4847" y1="12.2336" x2="12.4847" y2="3.41114" stroke="#042121" stroke-width="1.10281"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.16832 6.34546C7.16832 6.04093 7.41519 5.79405 7.71973 5.79405C8.02426 5.79405 8.27113 6.04093 8.27113 6.34546L7.16832 6.34546ZM8.10963 12.5209C7.89429 12.7362 7.54516 12.7362 7.32982 12.5209L3.8207 9.01172C3.60536 8.79639 3.60536 8.44726 3.8207 8.23192C4.03603 8.01658 4.38516 8.01658 4.6005 8.23192L7.71973 11.3511L10.839 8.23192C11.0543 8.01658 11.4034 8.01658 11.6188 8.23192C11.8341 8.44726 11.8341 8.79639 11.6188 9.01172L8.10963 12.5209ZM8.27113 6.34546L8.27113 12.1309L7.16832 12.1309L7.16832 6.34546L8.27113 6.34546Z" fill="#042121"/>
3
+ <line x1="12.1309" y1="3.85976" x2="3.30836" y2="3.85976" stroke="#042121" stroke-width="1.10281"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <line x1="3.98413" y1="8.2711" x2="12.8066" y2="8.2711" stroke="#042121" stroke-width="1.10281"/>
3
+ </svg>
@@ -0,0 +1,70 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4 16L3 16" stroke="#042121" />
3
+ <path d="M4 17L3 17" stroke="#042121" />
4
+ <path d="M3 16L2 16" stroke="#042121" />
5
+ <path d="M19 16L18 16" stroke="#042121" />
6
+ <path d="M3 15L2 15" stroke="#042121" />
7
+ <path d="M19 15L18 15" stroke="#042121" />
8
+ <path d="M5 14L4 14" stroke="#042121" />
9
+ <path d="M6 12L5 12" stroke="#042121" />
10
+ <path d="M7 10L6 10" stroke="#042121" />
11
+ <path d="M9 6L8 6" stroke="#042121" />
12
+ <path d="M8 8L7 8" stroke="#042121" />
13
+ <path d="M14 8L13 8" stroke="#042121" />
14
+ <path d="M15 10L14 10" stroke="#042121" />
15
+ <path d="M16 12L15 12" stroke="#042121" />
16
+ <path d="M17 14L16 14" stroke="#042121" />
17
+ <path d="M5 13L4 13" stroke="#042121" />
18
+ <path d="M6 11L5 11" stroke="#042121" />
19
+ <path d="M7 9L6 9" stroke="#042121" />
20
+ <path d="M8 7L7 7" stroke="#042121" />
21
+ <path d="M9 5L8 5" stroke="#042121" />
22
+ <path d="M14 7L13 7" stroke="#042121" />
23
+ <path d="M15 9L14 9" stroke="#042121" />
24
+ <path d="M16 11L15 11" stroke="#042121" />
25
+ <path d="M17 13L16 13" stroke="#042121" />
26
+ <path d="M18 16L17 16" stroke="#042121" />
27
+ <path d="M18 15L17 15" stroke="#042121" />
28
+ <path d="M4 15L3 15" stroke="#042121" />
29
+ <path d="M4 14L3 14" stroke="#042121" />
30
+ <path d="M5 12L4 12" stroke="#042121" />
31
+ <path d="M6 10L5 10" stroke="#042121" />
32
+ <path d="M7 8L6 8" stroke="#042121" />
33
+ <path d="M8 6L7 6" stroke="#042121" />
34
+ <path d="M10 3L9 3" stroke="#042121" />
35
+ <path d="M14 6L13 6" stroke="#042121" />
36
+ <path d="M13 6L12 6" stroke="#042121" />
37
+ <path d="M13 5L12 5" stroke="#042121" />
38
+ <path d="M12 3L11 3" stroke="#042121" />
39
+ <path d="M10 4L9 4" stroke="#042121" />
40
+ <path d="M12 4L11 4" stroke="#042121" />
41
+ <path d="M10 5L9 5" stroke="#042121" />
42
+ <path d="M11 3L10 3" stroke="#042121" />
43
+ <path d="M11 3L10 3" stroke="#042121" />
44
+ <path d="M11 4L10 4" stroke="#042121" />
45
+ <path d="M11 8L10 8" stroke="#042121" />
46
+ <path d="M11 9L10 9" stroke="#042121" />
47
+ <path d="M11 10L10 10" stroke="#042121" />
48
+ <path d="M11 11L10 11" stroke="#042121" />
49
+ <path d="M11 12L10 12" stroke="#042121" />
50
+ <path d="M11 14L10 14" stroke="#042121" />
51
+ <path d="M12 5L11 5" stroke="#042121" />
52
+ <path d="M15 8L14 8" stroke="#042121" />
53
+ <path d="M16 10L15 10" stroke="#042121" />
54
+ <path d="M17 12L16 12" stroke="#042121" />
55
+ <path d="M18 14L17 14" stroke="#042121" />
56
+ <path d="M5 17L4 17" stroke="#042121" />
57
+ <path d="M6 17L5 17" stroke="#042121" />
58
+ <path d="M7 17L6 17" stroke="#042121" />
59
+ <path d="M8 17L7 17" stroke="#042121" />
60
+ <path d="M9 17L8 17" stroke="#042121" />
61
+ <path d="M10 17L9 17" stroke="#042121" />
62
+ <path d="M11 17L10 17" stroke="#042121" />
63
+ <path d="M12 17L11 17" stroke="#042121" />
64
+ <path d="M13 17L12 17" stroke="#042121" />
65
+ <path d="M14 17L13 17" stroke="#042121" />
66
+ <path d="M15 17L14 17" stroke="#042121" />
67
+ <path d="M16 17L15 17" stroke="#042121" />
68
+ <path d="M17 17L16 17" stroke="#042121" />
69
+ <path d="M18 17L17 17" stroke="#042121" />
70
+ </svg>
@@ -0,0 +1,26 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10 14V15" stroke="#042121" />
3
+ <path d="M9 14V15" stroke="#042121" />
4
+ <path d="M11 14V15" stroke="#042121" />
5
+ <path d="M12 14V15" stroke="#042121" />
6
+ <path d="M13 13V14" stroke="#042121" />
7
+ <path d="M14 12V13" stroke="#042121" />
8
+ <path d="M14 11V12" stroke="#042121" />
9
+ <path d="M14 10V11" stroke="#042121" />
10
+ <path d="M14 9V10" stroke="#042121" />
11
+ <path d="M14 8V9" stroke="#042121" />
12
+ <path d="M13 7V8" stroke="#042121" />
13
+ <path d="M12 6V7" stroke="#042121" />
14
+ <path d="M11 6V7" stroke="#042121" />
15
+ <path d="M10 6V7" stroke="#042121" />
16
+ <path d="M9 6V7" stroke="#042121" />
17
+ <path d="M8 6V7" stroke="#042121" />
18
+ <path d="M7 7V8" stroke="#042121" />
19
+ <path d="M6 8V9" stroke="#042121" />
20
+ <path d="M6 9V10" stroke="#042121" />
21
+ <path d="M6 10V11" stroke="#042121" />
22
+ <path d="M6 11V12" stroke="#042121" />
23
+ <path d="M6 12V13" stroke="#042121" />
24
+ <path d="M7 13V14" stroke="#042121" />
25
+ <path d="M8 14V15" stroke="#042121" />
26
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <defs></defs>
3
+ <path d="M 6.283 5.275 L 6.309 5.275 L 6.792 6.855 L 5.806 6.855 L 6.283 5.275 Z M 7.295 8.501 L 8.144 8.501 L 6.825 4.387 L 5.819 4.387 L 4.5 8.501 L 5.303 8.501 L 5.61 7.489 L 6.988 7.489 L 7.295 8.501 Z" fill="#042121"></path>
4
+ <mask id="path-2-inside-1_720_7867" fill="white">
5
+ <rect width="10" height="9" rx="0.833" x="1.5" y="2"></rect>
6
+ </mask>
7
+ <rect width="10" height="9" rx="0.833" stroke="#042121" stroke-width="2" mask="url(#path-2-inside-1_720_7867)" x="1.5" y="2"></rect>
8
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="6" y="5" width="8.43346" height="1.9167" rx="0.766678" stroke="#042121"/>
3
+ <path d="M14.2021 6.15002H14.4333C14.8567 6.15002 15.2 6.49328 15.2 6.9167V8.47955C15.2 8.90297 14.8567 9.24623 14.4333 9.24623H10.9832C10.5598 9.24623 10.2166 9.58948 10.2166 10.0129V11.9001" stroke="#042121"/>
4
+ <path d="M9.06665 12.2834C9.06665 12.0717 9.23828 11.9 9.44999 11.9H10.6C10.8117 11.9 10.9833 12.0717 10.9833 12.2834V15.7334C10.9833 16.1568 10.6401 16.5001 10.2167 16.5001H9.83333C9.4099 16.5001 9.06665 16.1568 9.06665 15.7334V12.2834Z" stroke="#042121"/>
5
+ </svg>
Binary file
@@ -0,0 +1,101 @@
1
+ // ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
2
+ // ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
3
+ // ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
4
+ // ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
5
+ // ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
6
+ // ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
7
+ // ┃ Copyright (c) 2017, the Perspective Authors. ┃
8
+ // ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
9
+ // ┃ This file is part of the Perspective library, distributed under the terms ┃
10
+ // ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
11
+ // ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
12
+
13
+ @import "icons.less";
14
+
15
+ @import url("ref://pro-dark.less");
16
+
17
+ perspective-viewer,
18
+ perspective-viewer[theme="Dracula"] {
19
+ --theme-name: "Dracula";
20
+ }
21
+
22
+ perspective-viewer[theme="Dracula"] {
23
+ @include perspective-viewer-pro-dark;
24
+ @include perspective-viewer-dracula--colors;
25
+ @include perspective-viewer-dracula--animation;
26
+ @include perspective-viewer-dracula--fonts;
27
+ @include perspective-viewer-dracula--datagrid;
28
+ @include perspective-viewer-dracula--d3fc;
29
+ }
30
+
31
+ perspective-copy-menu[theme="Dracula"],
32
+ perspective-export-menu[theme="Dracula"],
33
+ perspective-dropdown[theme="Dracula"] {
34
+ @include perspective-modal-pro-dark;
35
+ @include perspective-viewer-dracula--colors;
36
+ background-color: var(--theme-bg0);
37
+ }
38
+
39
+ @mixin perspective-viewer-dracula--colors {
40
+ --theme-bg0: #191a22;
41
+ --theme-bg1: #282a36;
42
+ --theme-bg2: #44475a;
43
+
44
+ --theme-gray: #928374;
45
+
46
+ --theme-fg0: #f8f8f2;
47
+ --theme-fg1: #6272a4;
48
+ --theme-fg2: #44475a;
49
+
50
+ --theme-red: #ff5555;
51
+ --theme-green: #50fa7b;
52
+ --theme-yellow: #f1fa8c;
53
+ --theme-blue: #8be9fd;
54
+ --theme-purple: #bd93f9;
55
+ --theme-orange: #ffb86c;
56
+ --theme-pink: #ff79c6;
57
+
58
+ color: var(--theme-fg0);
59
+ background-color: var(--theme-bg0);
60
+ --icon--color: var(--theme-fg1);
61
+ --inactive--color: var(--theme-fg2);
62
+ --inactive--border-color: var(--theme-bg2);
63
+ --plugin--background: var(--theme-bg1);
64
+ --status-icon-connected--color: var(--theme-green);
65
+ --status-icon-initializing--color: var(--theme-yellow);
66
+ --status-icon-error--color: var(--theme-red);
67
+ }
68
+
69
+ @mixin perspective-viewer-dracula--datagrid {
70
+ --rt-pos-cell--color: var(--theme-blue);
71
+ --rt-neg-cell--color: var(--theme-red);
72
+ }
73
+
74
+ @mixin perspective-viewer-dracula--d3fc {
75
+ --d3fc-axis-ticks--color: var(--theme-fg1);
76
+ --d3fc-gridline--color: var(--theme-bg2);
77
+ --d3fc-series: var(--theme-blue);
78
+ --d3fc-series-1: var(--theme-blue);
79
+ --d3fc-series-2: var(--theme-red);
80
+ --d3fc-series-3: var(--theme-green);
81
+ --d3fc-series-4: var(--theme-yellow);
82
+ --d3fc-series-5: var(--theme-purple);
83
+ --d3fc-series-6: var(--theme-pink);
84
+ --d3fc-series-7: var(--theme-orange);
85
+
86
+ --d3fc-negative--gradient: linear-gradient(
87
+ var(--theme-bg0),
88
+ var(--theme-red)
89
+ ) !important;
90
+
91
+ --d3fc-positive--gradient: linear-gradient(
92
+ var(--theme-bg0),
93
+ var(--theme-blue)
94
+ ) !important;
95
+
96
+ --d3fc-full--gradient: linear-gradient(
97
+ var(--theme-red),
98
+ var(--theme-bg0),
99
+ var(--theme-blue)
100
+ ) !important;
101
+ }
@@ -0,0 +1,116 @@
1
+ // ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
2
+ // ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
3
+ // ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
4
+ // ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
5
+ // ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
6
+ // ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
7
+ // ┃ Copyright (c) 2017, the Perspective Authors. ┃
8
+ // ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
9
+ // ┃ This file is part of the Perspective library, distributed under the terms ┃
10
+ // ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
11
+ // ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
12
+
13
+ @import "icons.less";
14
+
15
+ @import url("ref://pro-dark.less");
16
+
17
+ perspective-viewer,
18
+ perspective-viewer[theme="Gruvbox Dark"] {
19
+ --theme-name: "Gruvbox Dark";
20
+ }
21
+
22
+ perspective-viewer[theme="Gruvbox Dark"] {
23
+ @include perspective-viewer-pro-dark;
24
+ @include perspective-viewer-gruvbox-dark--colors;
25
+ @include perspective-viewer-gruvbox-dark--animation;
26
+ @include perspective-viewer-gruvbox-dark--fonts;
27
+ @include perspective-viewer-gruvbox-dark--datagrid;
28
+ @include perspective-viewer-gruvbox-dark--d3fc;
29
+ }
30
+
31
+ perspective-copy-menu[theme="Gruvbox Dark"],
32
+ perspective-export-menu[theme="Gruvbox Dark"],
33
+ perspective-dropdown[theme="Gruvbox Dark"] {
34
+ @include perspective-modal-pro-dark;
35
+ @include perspective-viewer-gruvbox-dark--colors;
36
+ background-color: var(--theme-bg0);
37
+ }
38
+
39
+ @mixin perspective-viewer-gruvbox-dark--colors {
40
+ --theme-bg0: #282828;
41
+ --theme-bg1: #3c3836;
42
+ --theme-bg2: #7c6f64;
43
+
44
+ --theme-gray: #928374;
45
+
46
+ --theme-fg0: #fbf1c7;
47
+ --theme-fg1: #ebdbb2;
48
+ --theme-fg2: #a89984;
49
+
50
+ --theme-red: #cc241d;
51
+ --theme-green: #98871a;
52
+ --theme-yellow: #d79921;
53
+ --theme-blue: #458588;
54
+ --theme-purple: #b16286;
55
+ --theme-aqua: #689d5a;
56
+ --theme-orange: #d65d0e;
57
+
58
+ --theme-alt-red: #fb4934;
59
+ --theme-alt-green: #b8bb26;
60
+ --theme-alt-yellow: #fabd2f;
61
+ --theme-alt-blue: #83a598;
62
+ --theme-alt-purple: #d3869b;
63
+ --theme-alt-aqua: #8ec07c;
64
+ --theme-alt-orange: #fe8019;
65
+
66
+ color: var(--theme-fg0);
67
+ background-color: var(--theme-bg0);
68
+ --icon--color: var(--theme-fg1);
69
+ --inactive--color: var(--theme-fg2);
70
+ --inactive--border-color: var(--theme-bg2);
71
+ --plugin--background: var(--theme-bg1);
72
+ --status-icon-connected--color: var(--theme-aqua);
73
+ --status-icon-initializing--color: var(--theme-yellow);
74
+ --status-icon-error--color: var(--theme-red);
75
+ }
76
+
77
+ @mixin perspective-viewer-gruvbox-dark--datagrid {
78
+ --rt-pos-cell--color: var(--theme-alt-blue);
79
+ --rt-neg-cell--color: var(--theme-alt-red);
80
+ }
81
+
82
+ @mixin perspective-viewer-gruvbox-dark--d3fc {
83
+ --d3fc-axis-ticks--color: var(--theme-fg1);
84
+ --d3fc-gridline--color: var(--theme-bg2);
85
+ --d3fc-series: var(--theme-blue);
86
+ --d3fc-series-1: var(--theme-blue);
87
+ --d3fc-series-2: var(--theme-red);
88
+ --d3fc-series-3: var(--theme-green);
89
+ --d3fc-series-4: var(--theme-purple);
90
+ --d3fc-series-5: var(--theme-aqua);
91
+ --d3fc-series-6: var(--theme-alt-blue);
92
+ --d3fc-series-7: var(--theme-alt-red);
93
+ --d3fc-series-8: var(--theme-alt-green);
94
+ --d3fc-series-9: var(--theme-alt-purple);
95
+ --d3fc-series-10: var(--theme-alt-aqua);
96
+
97
+ --d3fc-negative--gradient: linear-gradient(
98
+ var(--theme-bg0),
99
+ var(--theme-red),
100
+ var(--theme-alt-red)
101
+ ) !important;
102
+
103
+ --d3fc-positive--gradient: linear-gradient(
104
+ var(--theme-bg0),
105
+ var(--theme-blue),
106
+ var(--theme-alt-blue)
107
+ ) !important;
108
+
109
+ --d3fc-full--gradient: linear-gradient(
110
+ var(--theme-alt-red),
111
+ var(--theme-red),
112
+ var(--theme-bg0),
113
+ var(--theme-blue),
114
+ var(--theme-alt-blue)
115
+ ) !important;
116
+ }
@@ -0,0 +1,152 @@
1
+ // ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
2
+ // ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
3
+ // ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
4
+ // ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
5
+ // ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
6
+ // ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
7
+ // ┃ Copyright (c) 2017, the Perspective Authors. ┃
8
+ // ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
9
+ // ┃ This file is part of the Perspective library, distributed under the terms ┃
10
+ // ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
11
+ // ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
12
+
13
+ @import "icons.less";
14
+
15
+ @import url("ref://pro.less");
16
+
17
+ perspective-viewer,
18
+ perspective-viewer[theme="Gruvbox Light"] {
19
+ --theme-name: "Gruvbox Light";
20
+ }
21
+
22
+ perspective-viewer[theme="Gruvbox Light"] {
23
+ // --gruvbox-fg0: #282828;
24
+ // --gruvbox-fg1: #3c3836;
25
+ // --gruvbox-fg2: #504945;
26
+ // --gruvbox-fg3: #665c54;
27
+ // --gruvbox-fg4: #7c6f64;
28
+ // --gruvbox-gray: #928374;
29
+ // --gruvbox-bg0: #fbf1c7;
30
+ // --gruvbox-bg1: #ebdbb2;
31
+ // --gruvbox-bg2: #d5c4a1;
32
+ // --gruvbox-bg3: #bdae93;
33
+ // --gruvbox-bg4: #a89984;
34
+
35
+ // --gruvbox-red: #cc241d;
36
+ // --gruvbox-green: #98871a;
37
+ // --gruvbox-yellow: #d79921;
38
+ // --gruvbox-blue: #458588;
39
+ // --gruvbox-purple: #b16286;
40
+ // --gruvbox-aqua: #689d5a;
41
+ // --gruvbox-orange: #d65d0e;
42
+
43
+ // --gruvbox-dark-red: #9d0006;
44
+ // --gruvbox-dark-green: #79740e;
45
+ // --gruvbox-dark-yellow: #b57614;
46
+ // --gruvbox-dark-blue: #076678;
47
+ // --gruvbox-dark-purple: #8f3f71;
48
+ // --gruvbox-dark-aqua: #427b58;
49
+ // --gruvbox-dark-orange: #af3a03;
50
+
51
+ // --gruvbox-light-red: #fb4934;
52
+ // --gruvbox-light-green: #b8bb26;
53
+ // --gruvbox-light-yellow: #fabd2f;
54
+ // --gruvbox-light-blue: #83a598;
55
+ // --gruvbox-light-purple: #d3869b;
56
+ // --gruvbox-light-aqua: #8ec07c;
57
+ // --gruvbox-light-orange: #fe8019;
58
+
59
+ @include perspective-viewer-pro;
60
+ @include perspective-viewer-gruvbox-light--colors;
61
+ @include perspective-viewer-gruvbox-light--animation;
62
+ @include perspective-viewer-gruvbox-light--fonts;
63
+ @include perspective-viewer-gruvbox-light--datagrid;
64
+ @include perspective-viewer-gruvbox-light--d3fc;
65
+ }
66
+
67
+ perspective-copy-menu[theme="Gruvbox Light"],
68
+ perspective-export-menu[theme="Gruvbox Light"],
69
+ perspective-dropdown[theme="Gruvbox Light"] {
70
+ @include perspective-modal-pro;
71
+ @include perspective-viewer-gruvbox-light--colors;
72
+ background-color: var(--theme-bg0);
73
+ }
74
+
75
+ @mixin perspective-viewer-gruvbox-light--colors {
76
+ --theme-fg0: #282828;
77
+ --theme-fg1: #3c3836;
78
+ --theme-fg2: #7c6f64;
79
+
80
+ --theme-gray: #928374;
81
+
82
+ --theme-bg0: #fbf1c7;
83
+ --theme-bg1: #ebdbb2;
84
+ --theme-bg2: #a89984;
85
+
86
+ --theme-red: #cc241d;
87
+ --theme-green: #98871a;
88
+ --theme-yellow: #d79921;
89
+ --theme-blue: #458588;
90
+ --theme-purple: #b16286;
91
+ --theme-aqua: #689d5a;
92
+ --theme-orange: #d65d0e;
93
+
94
+ --theme-alt-red: #9d0006;
95
+ --theme-alt-green: #79740e;
96
+ --theme-alt-yellow: #b57614;
97
+ --theme-alt-blue: #076678;
98
+ --theme-alt-purple: #8f3f71;
99
+ --theme-alt-aqua: #427b58;
100
+ --theme-alt-orange: #af3a03;
101
+
102
+ color: var(--theme-fg1);
103
+ background-color: var(--theme-bg1);
104
+ --icon--color: var(--theme-fg0);
105
+ --inactive--color: var(--theme-fg2);
106
+ --inactive--border-color: var(--theme-bg2);
107
+ --plugin--background: var(--theme-bg0);
108
+ --status-icon-connected--color: var(--theme-aqua);
109
+ --status-icon-initializing--color: var(--theme-yellow);
110
+ --status-icon-error--color: var(--theme-red);
111
+ }
112
+
113
+ @mixin perspective-viewer-gruvbox-light--datagrid {
114
+ --rt-pos-cell--color: var(--theme-blue);
115
+ --rt-neg-cell--color: var(--theme-red);
116
+ }
117
+
118
+ @mixin perspective-viewer-gruvbox-light--d3fc {
119
+ --d3fc-axis-ticks--color: var(--theme-fg1);
120
+ --d3fc-gridline--color: var(--theme-bg2);
121
+ --d3fc-series: var(--theme-blue);
122
+ --d3fc-series-1: var(--theme-blue);
123
+ --d3fc-series-2: var(--theme-red);
124
+ --d3fc-series-3: var(--theme-green);
125
+ --d3fc-series-4: var(--theme-purple);
126
+ --d3fc-series-5: var(--theme-aqua);
127
+ --d3fc-series-6: var(--theme-alt-blue);
128
+ --d3fc-series-7: var(--theme-alt-red);
129
+ --d3fc-series-8: var(--theme-alt-green);
130
+ --d3fc-series-9: var(--theme-alt-purple);
131
+ --d3fc-series-10: var(--theme-alt-aqua);
132
+
133
+ --d3fc-negative--gradient: linear-gradient(
134
+ var(--theme-bg1),
135
+ var(--theme-red),
136
+ var(--theme-alt-red)
137
+ ) !important;
138
+
139
+ --d3fc-positive--gradient: linear-gradient(
140
+ var(--theme-bg1),
141
+ var(--theme-blue),
142
+ var(--theme-alt-blue)
143
+ ) !important;
144
+
145
+ --d3fc-full--gradient: linear-gradient(
146
+ var(--theme-alt-red),
147
+ var(--theme-red),
148
+ var(--theme-bg1),
149
+ var(--theme-blue),
150
+ var(--theme-alt-blue)
151
+ ) !important;
152
+ }