@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.
- package/LICENSE.md +193 -0
- package/README.md +4 -0
- package/dist/cdn/perspective-viewer.js +3 -0
- package/dist/cdn/perspective-viewer.js.map +7 -0
- package/dist/css/dracula.css +1 -0
- package/dist/css/gruvbox-dark.css +1 -0
- package/dist/css/gruvbox.css +1 -0
- package/dist/css/icons.css +1 -0
- package/dist/css/intl/de.css +1 -0
- package/dist/css/intl/es.css +1 -0
- package/dist/css/intl/fr.css +1 -0
- package/dist/css/intl/ja.css +1 -0
- package/dist/css/intl/pt.css +1 -0
- package/dist/css/intl/zh.css +1 -0
- package/dist/css/intl.css +1 -0
- package/dist/css/monokai.css +1 -0
- package/dist/css/pro-dark.css +1 -0
- package/dist/css/pro.css +1 -0
- package/dist/css/solarized-dark.css +1 -0
- package/dist/css/solarized.css +1 -0
- package/dist/css/themes.css +1 -0
- package/dist/css/vaporwave.css +1 -0
- package/dist/css/variables.css +0 -0
- package/dist/esm/bootstrap.d.ts +1 -0
- package/dist/esm/extensions.d.ts +70 -0
- package/dist/esm/perspective-viewer.d.ts +39 -0
- package/dist/esm/perspective-viewer.inline.js +3 -0
- package/dist/esm/perspective-viewer.inline.js.map +7 -0
- package/dist/esm/perspective-viewer.js +3 -0
- package/dist/esm/perspective-viewer.js.map +7 -0
- package/dist/esm/plugin.d.ts +195 -0
- package/dist/esm/ts-rs/Aggregate.d.ts +1 -0
- package/dist/esm/ts-rs/ColumnConfigValues.d.ts +31 -0
- package/dist/esm/ts-rs/CustomDatetimeFormat.d.ts +1 -0
- package/dist/esm/ts-rs/CustomDatetimeStyleConfig.d.ts +15 -0
- package/dist/esm/ts-rs/CustomNumberFormatConfig.d.ts +18 -0
- package/dist/esm/ts-rs/DatetimeColorMode.d.ts +1 -0
- package/dist/esm/ts-rs/DatetimeFormatType.d.ts +6 -0
- package/dist/esm/ts-rs/Expressions.d.ts +3 -0
- package/dist/esm/ts-rs/Filter.d.ts +2 -0
- package/dist/esm/ts-rs/FilterReducer.d.ts +1 -0
- package/dist/esm/ts-rs/FilterTerm.d.ts +2 -0
- package/dist/esm/ts-rs/FormatMode.d.ts +1 -0
- package/dist/esm/ts-rs/FormatUnit.d.ts +1 -0
- package/dist/esm/ts-rs/NumberBackgroundMode.d.ts +1 -0
- package/dist/esm/ts-rs/NumberForegroundMode.d.ts +1 -0
- package/dist/esm/ts-rs/OptionalUpdate.d.ts +1 -0
- package/dist/esm/ts-rs/PluginConfig.d.ts +2 -0
- package/dist/esm/ts-rs/RoundingMode.d.ts +1 -0
- package/dist/esm/ts-rs/RoundingPriority.d.ts +1 -0
- package/dist/esm/ts-rs/Scalar.d.ts +5 -0
- package/dist/esm/ts-rs/SignDisplay.d.ts +1 -0
- package/dist/esm/ts-rs/SimpleDatetimeFormat.d.ts +1 -0
- package/dist/esm/ts-rs/SimpleDatetimeStyleConfig.d.ts +6 -0
- package/dist/esm/ts-rs/Sort.d.ts +2 -0
- package/dist/esm/ts-rs/SortDir.d.ts +1 -0
- package/dist/esm/ts-rs/StringColorMode.d.ts +1 -0
- package/dist/esm/ts-rs/TrailingZeroDisplay.d.ts +1 -0
- package/dist/esm/ts-rs/UseGrouping.d.ts +1 -0
- package/dist/esm/ts-rs/ViewerConfigUpdate.d.ts +102 -0
- package/dist/esm/ts-rs/serde_json/JsonValue.d.ts +3 -0
- package/dist/wasm/perspective-viewer.d.ts +1291 -0
- package/dist/wasm/perspective-viewer.js +3883 -0
- package/dist/wasm/perspective-viewer.wasm +0 -0
- package/dist/wasm/perspective-viewer.wasm.d.ts +142 -0
- package/dist/wasm/snippets/perspective-viewer-c69283f6f62a5f14/inline0.js +1 -0
- package/dist/wasm/snippets/perspective-viewer-c69283f6f62a5f14/inline1.js +1 -0
- package/dist/wasm/snippets/perspective-viewer-c69283f6f62a5f14/inline2.js +1 -0
- package/dist/wasm/snippets/perspective-viewer-c69283f6f62a5f14/inline3.js +44 -0
- package/dist/wasm/snippets/perspective-viewer-c69283f6f62a5f14/inline4.js +1 -0
- package/package.json +55 -0
- package/src/less/aggregate-selector.less +72 -0
- package/src/less/column-dropdown.less +95 -0
- package/src/less/column-selector.less +551 -0
- package/src/less/column-settings-panel.less +255 -0
- package/src/less/column-style.less +319 -0
- package/src/less/column-symbol-attributes.less +73 -0
- package/src/less/config-selector.less +363 -0
- package/src/less/containers/dropdown-menu.less +94 -0
- package/src/less/containers/pairs-list.less +46 -0
- package/src/less/containers/radio-list.less +29 -0
- package/src/less/containers/scroll-panel.less +27 -0
- package/src/less/containers/split-panel.less +80 -0
- package/src/less/containers/tabs.less +90 -0
- package/src/less/dom/checkbox.less +100 -0
- package/src/less/dom/scrollbar.less +35 -0
- package/src/less/dom/select.less +63 -0
- package/src/less/empty-column.less +72 -0
- package/src/less/expression-editor.less +152 -0
- package/src/less/filter-dropdown.less +53 -0
- package/src/less/filter-item.less +126 -0
- package/src/less/form/code-editor.less +137 -0
- package/src/less/form/debug.less +88 -0
- package/src/less/function-dropdown.less +45 -0
- package/src/less/plugin-selector.less +173 -0
- package/src/less/render-warning.less +81 -0
- package/src/less/status-bar.less +551 -0
- package/src/less/type-icon.less +68 -0
- package/src/less/viewer.less +368 -0
- package/src/rust/components/column_dropdown.rs +162 -0
- package/src/rust/components/column_selector/active_column.rs +462 -0
- package/src/rust/components/column_selector/add_expression_button.rs +59 -0
- package/src/rust/components/column_selector/aggregate_selector.rs +186 -0
- package/src/rust/components/column_selector/config_selector.rs +674 -0
- package/src/rust/components/column_selector/empty_column.rs +134 -0
- package/src/rust/components/column_selector/expression_toolbar.rs +45 -0
- package/src/rust/components/column_selector/filter_column.rs +530 -0
- package/src/rust/components/column_selector/inactive_column.rs +221 -0
- package/src/rust/components/column_selector/invalid_column.rs +37 -0
- package/src/rust/components/column_selector/pivot_column.rs +93 -0
- package/src/rust/components/column_selector/sort_column.rs +135 -0
- package/src/rust/components/column_selector.rs +426 -0
- package/src/rust/components/column_settings_sidebar/attributes_tab.rs +34 -0
- package/src/rust/components/column_settings_sidebar/mod.rs +17 -0
- package/src/rust/components/column_settings_sidebar/save_settings.rs +68 -0
- package/src/rust/components/column_settings_sidebar/sidebar.rs +396 -0
- package/src/rust/components/column_settings_sidebar/style_tab/column_style.rs +177 -0
- package/src/rust/components/column_settings_sidebar/style_tab/stub.rs +34 -0
- package/src/rust/components/column_settings_sidebar/style_tab/symbol/row_selector.rs +101 -0
- package/src/rust/components/column_settings_sidebar/style_tab/symbol/symbol_config.rs +24 -0
- package/src/rust/components/column_settings_sidebar/style_tab/symbol/symbol_pairs.rs +185 -0
- package/src/rust/components/column_settings_sidebar/style_tab/symbol/symbol_selector.rs +55 -0
- package/src/rust/components/column_settings_sidebar/style_tab/symbol.rs +131 -0
- package/src/rust/components/column_settings_sidebar/style_tab.rs +231 -0
- package/src/rust/components/containers/dragdrop_list.rs +325 -0
- package/src/rust/components/containers/dropdown_menu.rs +104 -0
- package/src/rust/components/containers/kvpair.rs +47 -0
- package/src/rust/components/containers/mod.rs +28 -0
- package/src/rust/components/containers/scroll_panel.rs +311 -0
- package/src/rust/components/containers/scroll_panel_item.rs +111 -0
- package/src/rust/components/containers/select.rs +269 -0
- package/src/rust/components/containers/sidebar.rs +89 -0
- package/src/rust/components/containers/split_panel.rs +483 -0
- package/src/rust/components/containers/tab_list.rs +104 -0
- package/src/rust/components/containers/tests/mod.rs +11 -0
- package/src/rust/components/containers/tests/split_panel.rs +91 -0
- package/src/rust/components/containers/trap_door_panel.rs +50 -0
- package/src/rust/components/copy_dropdown.rs +136 -0
- package/src/rust/components/datetime_column_style/custom.rs +222 -0
- package/src/rust/components/datetime_column_style/simple.rs +122 -0
- package/src/rust/components/datetime_column_style.rs +284 -0
- package/src/rust/components/editable_header.rs +183 -0
- package/src/rust/components/empty_row.rs +169 -0
- package/src/rust/components/error_message.rs +56 -0
- package/src/rust/components/export_dropdown.rs +153 -0
- package/src/rust/components/expression_editor.rs +153 -0
- package/src/rust/components/filter_dropdown.rs +144 -0
- package/src/rust/components/font_loader.rs +254 -0
- package/src/rust/components/form/code_editor.rs +286 -0
- package/src/rust/components/form/color_range_selector.rs +115 -0
- package/src/rust/components/form/color_selector.rs +54 -0
- package/src/rust/components/form/debug.rs +253 -0
- package/src/rust/components/form/highlight.rs +50 -0
- package/src/rust/components/form/mod.rs +29 -0
- package/src/rust/components/form/number_field.rs +72 -0
- package/src/rust/components/form/number_input.rs +45 -0
- package/src/rust/components/form/number_range_field.rs +77 -0
- package/src/rust/components/form/optional_field.rs +53 -0
- package/src/rust/components/form/select_field.rs +104 -0
- package/src/rust/components/function_dropdown.rs +151 -0
- package/src/rust/components/mod.rs +45 -0
- package/src/rust/components/modal.rs +171 -0
- package/src/rust/components/number_column_style.rs +522 -0
- package/src/rust/components/plugin_selector.rs +196 -0
- package/src/rust/components/render_warning.rs +178 -0
- package/src/rust/components/status_bar.rs +315 -0
- package/src/rust/components/status_bar_counter.rs +229 -0
- package/src/rust/components/status_indicator.rs +164 -0
- package/src/rust/components/string_column_style.rs +186 -0
- package/src/rust/components/style/local_style.rs +35 -0
- package/src/rust/components/style/mod.rs +52 -0
- package/src/rust/components/style/style_cache.rs +132 -0
- package/src/rust/components/style/style_provider.rs +65 -0
- package/src/rust/components/style_controls/number_string_format/digits_section.rs +140 -0
- package/src/rust/components/style_controls/number_string_format/misc_section.rs +56 -0
- package/src/rust/components/style_controls/number_string_format/style_section.rs +69 -0
- package/src/rust/components/style_controls/number_string_format/types.rs +31 -0
- package/src/rust/components/style_controls/number_string_format.rs +259 -0
- package/src/rust/components/style_controls.rs +15 -0
- package/src/rust/components/type_icon.rs +53 -0
- package/src/rust/components/viewer.rs +668 -0
- package/src/rust/config/columns_config.rs +132 -0
- package/src/rust/config/datetime_column_style/color_mode.rs +62 -0
- package/src/rust/config/datetime_column_style/custom.rs +121 -0
- package/src/rust/config/datetime_column_style/custom_format.rs +90 -0
- package/src/rust/config/datetime_column_style/simple.rs +55 -0
- package/src/rust/config/datetime_column_style/simple_format.rs +86 -0
- package/src/rust/config/datetime_column_style.rs +104 -0
- package/src/rust/config/mod.rs +30 -0
- package/src/rust/config/number_column_style.rs +138 -0
- package/src/rust/config/number_string_format/enums.rs +298 -0
- package/src/rust/config/number_string_format.rs +269 -0
- package/src/rust/config/string_column_style.rs +140 -0
- package/src/rust/config/view_config.rs +24 -0
- package/src/rust/config/viewer_config.rs +337 -0
- package/src/rust/custom_elements/column_dropdown.rs +123 -0
- package/src/rust/custom_elements/copy_dropdown.rs +112 -0
- package/src/rust/custom_elements/debug_plugin.rs +114 -0
- package/src/rust/custom_elements/export_dropdown.rs +112 -0
- package/src/rust/custom_elements/filter_dropdown.rs +179 -0
- package/src/rust/custom_elements/function_dropdown.rs +115 -0
- package/src/rust/custom_elements/mod.rs +24 -0
- package/src/rust/custom_elements/modal.rs +395 -0
- package/src/rust/custom_elements/viewer.rs +880 -0
- package/src/rust/custom_events.rs +214 -0
- package/src/rust/dragdrop.rs +362 -0
- package/src/rust/exprtk/cursor.rs +81 -0
- package/src/rust/exprtk/mod.rs +17 -0
- package/src/rust/exprtk/tokenize/comment.rs +21 -0
- package/src/rust/exprtk/tokenize/number.rs +44 -0
- package/src/rust/exprtk/tokenize/string.rs +98 -0
- package/src/rust/exprtk/tokenize/symbol.rs +26 -0
- package/src/rust/exprtk/tokenize.rs +190 -0
- package/src/rust/js/clipboard.rs +77 -0
- package/src/rust/js/clipboard_item.rs +21 -0
- package/src/rust/js/intersection_observer.rs +32 -0
- package/src/rust/js/mimetype.rs +42 -0
- package/src/rust/js/mod.rs +29 -0
- package/src/rust/js/plugin.rs +167 -0
- package/src/rust/js/resize_observer.rs +37 -0
- package/src/rust/js/testing.rs +149 -0
- package/src/rust/lib.rs +116 -0
- package/src/rust/model/columns_iter_set.rs +340 -0
- package/src/rust/model/copy_export.rs +157 -0
- package/src/rust/model/create_col.rs +59 -0
- package/src/rust/model/edit_expression.rs +95 -0
- package/src/rust/model/export_app.rs +58 -0
- package/src/rust/model/export_method.rs +151 -0
- package/src/rust/model/get_viewer_config.rs +85 -0
- package/src/rust/model/intersection_observer.rs +81 -0
- package/src/rust/model/is_invalid_drop.rs +36 -0
- package/src/rust/model/mod.rs +93 -0
- package/src/rust/model/plugin_column_styles.rs +106 -0
- package/src/rust/model/resize_observer.rs +98 -0
- package/src/rust/model/restore_and_render.rs +113 -0
- package/src/rust/model/structural.rs +73 -0
- package/src/rust/model/update_and_render.rs +74 -0
- package/src/rust/presentation.rs +370 -0
- package/src/rust/renderer/activate.rs +49 -0
- package/src/rust/renderer/limits.rs +200 -0
- package/src/rust/renderer/plugin_store.rs +45 -0
- package/src/rust/renderer/registry.rs +135 -0
- package/src/rust/renderer/render_timer.rs +185 -0
- package/src/rust/renderer.rs +463 -0
- package/src/rust/session/column_defaults_update.rs +141 -0
- package/src/rust/session/drag_drop_update.rs +179 -0
- package/src/rust/session/metadata.rs +308 -0
- package/src/rust/session/replace_expression_update.rs +131 -0
- package/src/rust/session/view_subscription.rs +189 -0
- package/src/rust/session.rs +794 -0
- package/src/rust/utils/browser/blob.rs +49 -0
- package/src/rust/utils/browser/download.rs +26 -0
- package/src/rust/utils/browser/mod.rs +24 -0
- package/src/rust/utils/browser/request_animation_frame.rs +76 -0
- package/src/rust/utils/browser/selection.rs +79 -0
- package/src/rust/utils/browser/tests/debounce.rs +114 -0
- package/src/rust/utils/browser/tests/mod.rs +13 -0
- package/src/rust/utils/custom_element.rs +85 -0
- package/src/rust/utils/datetime.rs +49 -0
- package/src/rust/utils/debounce.rs +54 -0
- package/src/rust/utils/hooks/mod.rs +15 -0
- package/src/rust/utils/hooks/use_async_callback.rs +53 -0
- package/src/rust/utils/mod.rs +114 -0
- package/src/rust/utils/number_format.rs +48 -0
- package/src/rust/utils/pubsub.rs +222 -0
- package/src/rust/utils/scope.rs +54 -0
- package/src/rust/utils/tee.rs +88 -0
- package/src/rust/utils/tests/mod.rs +14 -0
- package/src/rust/utils/tests/pubsub.rs +95 -0
- package/src/rust/utils/tests/request_animation_frame.rs +42 -0
- package/src/rust/utils/wasm_abi.rs +61 -0
- package/src/rust/utils/weak_scope.rs +39 -0
- package/src/svg/align-scroll-icon.svg +7 -0
- package/src/svg/bg-pattern.png +0 -0
- package/src/svg/boolean-type.svg +3 -0
- package/src/svg/checkbox-checked-icon.svg +7 -0
- package/src/svg/checkbox-hover.svg +4 -0
- package/src/svg/checkbox-off.svg +4 -0
- package/src/svg/checkbox-on.svg +4 -0
- package/src/svg/checkbox-unchecked-icon.svg +3 -0
- package/src/svg/close-icon.svg +6 -0
- package/src/svg/column-settings-icon.svg +6 -0
- package/src/svg/datagrid-select-column.svg +15 -0
- package/src/svg/datagrid-select-region.svg +15 -0
- package/src/svg/datagrid-select-row.svg +13 -0
- package/src/svg/datagrid.svg +13 -0
- package/src/svg/date-type.svg +23 -0
- package/src/svg/downloading.gif +0 -0
- package/src/svg/drag-handle.svg +10 -0
- package/src/svg/drawer-bg-pattern-hidpi.png +0 -0
- package/src/svg/drawer-tab-hover.svg +8 -0
- package/src/svg/drawer-tab-invert-hover.svg +9 -0
- package/src/svg/drawer-tab-invert.svg +8 -0
- package/src/svg/drawer-tab.svg +7 -0
- package/src/svg/dropdown-selector-light.svg +3 -0
- package/src/svg/dropdown-selector.svg +3 -0
- package/src/svg/duplicate-icon.svg +4 -0
- package/src/svg/editable-icon.svg +5 -0
- package/src/svg/export-icon.svg +4 -0
- package/src/svg/expression.svg +10 -0
- package/src/svg/free-scroll-icon.svg +5 -0
- package/src/svg/inactive-mouseover.svg +4 -0
- package/src/svg/mega-menu-icons-candlestick.svg +38 -0
- package/src/svg/mega-menu-icons-datagrid.svg +38 -0
- package/src/svg/mega-menu-icons-heatmap.svg +60 -0
- package/src/svg/mega-menu-icons-map-scatter.svg +43 -0
- package/src/svg/mega-menu-icons-ohlc.svg +40 -0
- package/src/svg/mega-menu-icons-sunburst.svg +39 -0
- package/src/svg/mega-menu-icons-treemap.svg +44 -0
- package/src/svg/mega-menu-icons-x-bar.svg +36 -0
- package/src/svg/mega-menu-icons-x-y-line.svg +38 -0
- package/src/svg/mega-menu-icons-x-y-scatter.svg +72 -0
- package/src/svg/mega-menu-icons-y-area.svg +73 -0
- package/src/svg/mega-menu-icons-y-bar.svg +36 -0
- package/src/svg/mega-menu-icons-y-line.svg +36 -0
- package/src/svg/mega-menu-icons-y-scatter.svg +72 -0
- package/src/svg/number-type.svg +4 -0
- package/src/svg/radio-hover.svg +4 -0
- package/src/svg/radio-off.svg +3 -0
- package/src/svg/radio-on.svg +4 -0
- package/src/svg/read-only-icon.svg +6 -0
- package/src/svg/revert-icon.svg +4 -0
- package/src/svg/sort-abs-asc-icon.svg +3 -0
- package/src/svg/sort-abs-col-asc-icon.svg +3 -0
- package/src/svg/sort-abs-col-desc-icon.svg +3 -0
- package/src/svg/sort-abs-desc-icon.svg +3 -0
- package/src/svg/sort-asc-icon.svg +4 -0
- package/src/svg/sort-col-asc-icon.svg +4 -0
- package/src/svg/sort-col-desc-icon.svg +4 -0
- package/src/svg/sort-desc-icon.svg +4 -0
- package/src/svg/sort-none-icon.svg +3 -0
- package/src/svg/status_error.svg +70 -0
- package/src/svg/status_ok.svg +26 -0
- package/src/svg/string-type.svg +8 -0
- package/src/svg/theme-icon.svg +5 -0
- package/src/svg/updating.gif +0 -0
- package/src/themes/dracula.less +101 -0
- package/src/themes/gruvbox-dark.less +116 -0
- package/src/themes/gruvbox.less +152 -0
- package/src/themes/icons.less +130 -0
- package/src/themes/intl/de.less +102 -0
- package/src/themes/intl/es.less +102 -0
- package/src/themes/intl/fr.less +102 -0
- package/src/themes/intl/ja.less +102 -0
- package/src/themes/intl/pt.less +102 -0
- package/src/themes/intl/zh.less +102 -0
- package/src/themes/intl.less +102 -0
- package/src/themes/monokai.less +107 -0
- package/src/themes/pro-dark.less +147 -0
- package/src/themes/pro.less +186 -0
- package/src/themes/solarized-dark.less +78 -0
- package/src/themes/solarized.less +102 -0
- package/src/themes/themes.less +21 -0
- package/src/themes/vaporwave.less +145 -0
- package/src/themes/variables.less +24 -0
- package/src/ts/bootstrap.ts +26 -0
- package/src/ts/extensions.ts +124 -0
- package/src/ts/perspective-viewer.cdn.ts +19 -0
- package/src/ts/perspective-viewer.inline.ts +23 -0
- package/src/ts/perspective-viewer.ts +59 -0
- package/src/ts/plugin.ts +279 -0
- package/src/ts/ts-rs/Aggregate.ts +3 -0
- package/src/ts/ts-rs/ColumnConfigValues.ts +14 -0
- package/src/ts/ts-rs/CustomDatetimeFormat.ts +3 -0
- package/src/ts/ts-rs/CustomDatetimeStyleConfig.ts +5 -0
- package/src/ts/ts-rs/CustomNumberFormatConfig.ts +8 -0
- package/src/ts/ts-rs/DatetimeColorMode.ts +3 -0
- package/src/ts/ts-rs/DatetimeFormatType.ts +8 -0
- package/src/ts/ts-rs/Expressions.ts +3 -0
- package/src/ts/ts-rs/Filter.ts +4 -0
- package/src/ts/ts-rs/FilterReducer.ts +3 -0
- package/src/ts/ts-rs/FilterTerm.ts +4 -0
- package/src/ts/ts-rs/FormatMode.ts +3 -0
- package/src/ts/ts-rs/FormatUnit.ts +3 -0
- package/src/ts/ts-rs/NumberBackgroundMode.ts +3 -0
- package/src/ts/ts-rs/NumberForegroundMode.ts +3 -0
- package/src/ts/ts-rs/OnUpdateData.ts +8 -0
- package/src/ts/ts-rs/OptionalUpdate.ts +3 -0
- package/src/ts/ts-rs/PluginConfig.ts +4 -0
- package/src/ts/ts-rs/RoundingMode.ts +3 -0
- package/src/ts/ts-rs/RoundingPriority.ts +3 -0
- package/src/ts/ts-rs/Scalar.ts +7 -0
- package/src/ts/ts-rs/SignDisplay.ts +3 -0
- package/src/ts/ts-rs/SimpleDatetimeFormat.ts +3 -0
- package/src/ts/ts-rs/SimpleDatetimeStyleConfig.ts +4 -0
- package/src/ts/ts-rs/Sort.ts +4 -0
- package/src/ts/ts-rs/SortDir.ts +3 -0
- package/src/ts/ts-rs/StringColorMode.ts +3 -0
- package/src/ts/ts-rs/TrailingZeroDisplay.ts +3 -0
- package/src/ts/ts-rs/UseGrouping.ts +3 -0
- package/src/ts/ts-rs/ViewOnUpdateResp.ts +3 -0
- package/src/ts/ts-rs/ViewerConfigUpdate.ts +90 -0
- package/src/ts/ts-rs/serde_json/JsonValue.ts +3 -0
- package/tsconfig.json +15 -0
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
perspective-viewer,
|
|
14
|
+
perspective-dropdown {
|
|
15
|
+
// Config
|
|
16
|
+
--group-by-label--content: "通过...分组";
|
|
17
|
+
--split-by-label--content: "分割依据";
|
|
18
|
+
--sort-label--content: "订购依据";
|
|
19
|
+
--filter-label--content: "在哪里";
|
|
20
|
+
--transpose-button--content: "交换";
|
|
21
|
+
--config-button-icon--content: "配置";
|
|
22
|
+
--all-columns-label--content: "所有栏目";
|
|
23
|
+
--untitled--content: "无标题";
|
|
24
|
+
|
|
25
|
+
// Plugin names
|
|
26
|
+
--plugin-name-datagrid--content: "数据网格";
|
|
27
|
+
--plugin-name-treemap--content: "树形图";
|
|
28
|
+
--plugin-name-sunburst--content: "旭日";
|
|
29
|
+
--plugin-name-heatmap--content: "热图";
|
|
30
|
+
--plugin-name-x-bar--content: "X吧";
|
|
31
|
+
--plugin-name-y-bar--content: "和酒吧";
|
|
32
|
+
--plugin-name-y-line--content: "和线";
|
|
33
|
+
--plugin-name-x-y-line--content: "X/Y线";
|
|
34
|
+
--plugin-name-x-y-scatter--content: "X/Y 散点图";
|
|
35
|
+
--plugin-name-y-scatter--content: "Y 散点图";
|
|
36
|
+
--plugin-name-y-area--content: "和面积";
|
|
37
|
+
--plugin-name-ohlc--content: "哎哟";
|
|
38
|
+
--plugin-name-candlestick--content: "烛台";
|
|
39
|
+
|
|
40
|
+
// Column Selector names
|
|
41
|
+
--column-selector-column-columns--content: "列";
|
|
42
|
+
--column-selector-column-x-axis--content: "X轴";
|
|
43
|
+
--column-selector-column-y-axis--content: "Y轴";
|
|
44
|
+
--column-selector-column-color--content: "颜色";
|
|
45
|
+
--column-selector-column-size--content: "尺寸";
|
|
46
|
+
--column-selector-column-symbol--content: "象征";
|
|
47
|
+
--column-selector-column-label--content: "标签";
|
|
48
|
+
--column-selector-column-tooltip--content: "工具提示";
|
|
49
|
+
--add-expression-button--content: "新专栏";
|
|
50
|
+
|
|
51
|
+
// Toolbar
|
|
52
|
+
--no-results--content: "无效列";
|
|
53
|
+
--datagrid-column-edit-button--content: "编辑";
|
|
54
|
+
--copy-button--content: "复制";
|
|
55
|
+
--export-button--content: "出口";
|
|
56
|
+
--reset-button--content: "重置";
|
|
57
|
+
--edit-mode--read-only--content: "Read Only";
|
|
58
|
+
--edit-mode--edit--content: "Text Edit";
|
|
59
|
+
--edit-mode--select-row--content: "Select Row";
|
|
60
|
+
--edit-mode--select-column--content: "Select Column";
|
|
61
|
+
--edit-mode--select-region--content: "Select Region";
|
|
62
|
+
--scroll-lock-toggle--content: "自由滚动";
|
|
63
|
+
--scroll-lock-alt-toggle--content: "对齐滚动";
|
|
64
|
+
|
|
65
|
+
// Column Settings
|
|
66
|
+
--color-label--content: "颜色";
|
|
67
|
+
--format-label--content: "格式";
|
|
68
|
+
--timezone-label--content: "时区";
|
|
69
|
+
--date-style-label--content: "日期样式";
|
|
70
|
+
--time-style-label--content: "时间风格";
|
|
71
|
+
--foreground-label--content: "前景";
|
|
72
|
+
--background-label--content: "背景";
|
|
73
|
+
--series-label--content: "系列";
|
|
74
|
+
--color-range-label--content: "颜色范围";
|
|
75
|
+
--style-label--content: "风格";
|
|
76
|
+
--minimum-integer-digits-label--content: "最小整数位数";
|
|
77
|
+
--rounding-increment-label--content: "舍入增量";
|
|
78
|
+
--notation-label--content: "符号";
|
|
79
|
+
--use-grouping-label--content: "使用分组";
|
|
80
|
+
--sign-display-label--content: "标志展示";
|
|
81
|
+
--max-value-label--content: "最大值";
|
|
82
|
+
--rounding-priority-label--content: "舍入优先级";
|
|
83
|
+
--rounding-mode-label--content: "舍入模式";
|
|
84
|
+
--trailing-zero-display-label--content: "尾随零显示";
|
|
85
|
+
--fractional-digits-label--content: "小数位";
|
|
86
|
+
--significant-digits-label--content: "有效数字";
|
|
87
|
+
--year-label--content: "年";
|
|
88
|
+
--month-label--content: "月";
|
|
89
|
+
--day-label--content: "天";
|
|
90
|
+
--weekday-label--content: "工作日";
|
|
91
|
+
--hour-label--content: "小时";
|
|
92
|
+
--minute-label--content: "分钟";
|
|
93
|
+
--second-label--content: "第二";
|
|
94
|
+
--fractional-seconds-label--content: "小数秒";
|
|
95
|
+
--hours-label--content: "12/24 小时";
|
|
96
|
+
--aggregate-depth-label--content: "聚合深度";
|
|
97
|
+
|
|
98
|
+
// Tabs
|
|
99
|
+
--style-tab-label--content: "风格";
|
|
100
|
+
--attributes-tab-label--content: "属性";
|
|
101
|
+
--debug-tab-label--content: "Debug JSON";
|
|
102
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
perspective-viewer,
|
|
14
|
+
perspective-dropdown {
|
|
15
|
+
// Config
|
|
16
|
+
--group-by-label--content: "Group By";
|
|
17
|
+
--split-by-label--content: "Split By";
|
|
18
|
+
--sort-label--content: "Order By";
|
|
19
|
+
--filter-label--content: "Where";
|
|
20
|
+
--transpose-button--content: "Swap";
|
|
21
|
+
--config-button-icon--content: "configure";
|
|
22
|
+
--all-columns-label--content: "All Columns";
|
|
23
|
+
--untitled--content: "untitled";
|
|
24
|
+
|
|
25
|
+
// Plugin names
|
|
26
|
+
--plugin-name-datagrid--content: "Datagrid";
|
|
27
|
+
--plugin-name-treemap--content: "Treemap";
|
|
28
|
+
--plugin-name-sunburst--content: "Sunburst";
|
|
29
|
+
--plugin-name-heatmap--content: "Heatmap";
|
|
30
|
+
--plugin-name-x-bar--content: "X Bar";
|
|
31
|
+
--plugin-name-y-bar--content: "Y Bar";
|
|
32
|
+
--plugin-name-y-line--content: "Y Line";
|
|
33
|
+
--plugin-name-x-y-line--content: "X/Y Line";
|
|
34
|
+
--plugin-name-x-y-scatter--content: "X/Y Scatter";
|
|
35
|
+
--plugin-name-y-scatter--content: "Y Scatter";
|
|
36
|
+
--plugin-name-y-area--content: "Y Area";
|
|
37
|
+
--plugin-name-ohlc--content: "OHLC";
|
|
38
|
+
--plugin-name-candlestick--content: "Candlestick";
|
|
39
|
+
|
|
40
|
+
// Column Selector names
|
|
41
|
+
--column-selector-column-columns--content: "Columns";
|
|
42
|
+
--column-selector-column-x-axis--content: "X Axis";
|
|
43
|
+
--column-selector-column-y-axis--content: "Y Axis";
|
|
44
|
+
--column-selector-column-color--content: "Color";
|
|
45
|
+
--column-selector-column-size--content: "Size";
|
|
46
|
+
--column-selector-column-symbol--content: "Symbol";
|
|
47
|
+
--column-selector-column-label--content: "Label";
|
|
48
|
+
--column-selector-column-tooltip--content: "Tooltip";
|
|
49
|
+
--add-expression-button--content: "New Column";
|
|
50
|
+
|
|
51
|
+
// Toolbar
|
|
52
|
+
--no-results--content: "Invalid Column";
|
|
53
|
+
--datagrid-column-edit-button--content: "Edit";
|
|
54
|
+
--copy-button--content: "Copy";
|
|
55
|
+
--export-button--content: "Export";
|
|
56
|
+
--reset-button--content: "Reset";
|
|
57
|
+
--edit-mode--read-only--content: "Read Only";
|
|
58
|
+
--edit-mode--edit--content: "Text Edit";
|
|
59
|
+
--edit-mode--select-row--content: "Select Row";
|
|
60
|
+
--edit-mode--select-column--content: "Select Column";
|
|
61
|
+
--edit-mode--select-region--content: "Select Region";
|
|
62
|
+
--scroll-lock-toggle--content: "Free Scroll";
|
|
63
|
+
--scroll-lock-alt-toggle--content: "Align Scroll";
|
|
64
|
+
|
|
65
|
+
// Column Settings
|
|
66
|
+
--color-label--content: "Color";
|
|
67
|
+
--format-label--content: "Format";
|
|
68
|
+
--timezone-label--content: "Timezone";
|
|
69
|
+
--date-style-label--content: "Date Style";
|
|
70
|
+
--time-style-label--content: "Time Style";
|
|
71
|
+
--foreground-label--content: "Foreground";
|
|
72
|
+
--background-label--content: "Background";
|
|
73
|
+
--series-label--content: "Series";
|
|
74
|
+
--color-range-label--content: "Color Range";
|
|
75
|
+
--style-label--content: "Style";
|
|
76
|
+
--minimum-integer-digits-label--content: "Minimum Integer Digits";
|
|
77
|
+
--rounding-increment-label--content: "Rounding Increment";
|
|
78
|
+
--notation-label--content: "Notation";
|
|
79
|
+
--use-grouping-label--content: "Use Grouping";
|
|
80
|
+
--sign-display-label--content: "Sign Display";
|
|
81
|
+
--aggregate-depth-label--content: "Aggregate Depth";
|
|
82
|
+
--max-value-label--content: "Max Value";
|
|
83
|
+
--rounding-priority-label--content: "Rounding Priority";
|
|
84
|
+
--rounding-mode-label--content: "Rounding Mode";
|
|
85
|
+
--trailing-zero-display-label--content: "Trailing Zero Display";
|
|
86
|
+
--fractional-digits-label--content: "Fractional Digits";
|
|
87
|
+
--significant-digits-label--content: "Significant Digits";
|
|
88
|
+
--year-label--content: "Year";
|
|
89
|
+
--month-label--content: "Month";
|
|
90
|
+
--day-label--content: "Day";
|
|
91
|
+
--weekday-label--content: "Weekday";
|
|
92
|
+
--hour-label--content: "Hour";
|
|
93
|
+
--minute-label--content: "Minute";
|
|
94
|
+
--second-label--content: "Second";
|
|
95
|
+
--fractional-seconds-label--content: "Fractional Seconds";
|
|
96
|
+
--hours-label--content: "12/24 Hours";
|
|
97
|
+
|
|
98
|
+
// Tabs
|
|
99
|
+
--style-tab-label--content: "Style";
|
|
100
|
+
--attributes-tab-label--content: "Attributes";
|
|
101
|
+
--debug-tab-label--content: "Debug JSON";
|
|
102
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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="Monokai"] {
|
|
19
|
+
--theme-name: "Monokai";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
perspective-viewer[theme="Monokai"] {
|
|
23
|
+
@include perspective-viewer-pro-dark;
|
|
24
|
+
@include perspective-viewer-monokai--colors;
|
|
25
|
+
@include perspective-viewer-monokai--datagrid;
|
|
26
|
+
@include perspective-viewer-monokai--d3fc;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
perspective-copy-menu[theme="Monokai"],
|
|
30
|
+
perspective-export-menu[theme="Monokai"],
|
|
31
|
+
perspective-dropdown[theme="Monokai"],
|
|
32
|
+
perspective-date-column-style[theme="Monokai"],
|
|
33
|
+
perspective-datetime-column-style[theme="Monokai"],
|
|
34
|
+
perspective-number-column-style[theme="Monokai"],
|
|
35
|
+
perspective-string-column-style[theme="Monokai"] {
|
|
36
|
+
@include perspective-modal-pro-dark;
|
|
37
|
+
@include perspective-viewer-monokai--colors;
|
|
38
|
+
|
|
39
|
+
background-color: #2d2a2e;
|
|
40
|
+
border: 1px solid #797979;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin perspective-viewer-monokai--colors {
|
|
44
|
+
color: #d6d6d6;
|
|
45
|
+
background-color: #2d2a2e;
|
|
46
|
+
|
|
47
|
+
--active--color: #78dce8;
|
|
48
|
+
--error--color: #ff6188;
|
|
49
|
+
--inactive--color: #797979;
|
|
50
|
+
--inactive--border-color: #666666;
|
|
51
|
+
--plugin--background: #2d2a2e;
|
|
52
|
+
|
|
53
|
+
// Column type indicators
|
|
54
|
+
--float--column-type--color: #78dce8;
|
|
55
|
+
--string--column-type--color: #ff6188;
|
|
56
|
+
--date--column-type--color: #a9dc76;
|
|
57
|
+
--boolean--column-type--color: #ffd866;
|
|
58
|
+
|
|
59
|
+
--warning--background: #ffd866;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@mixin perspective-viewer-monokai--datagrid {
|
|
63
|
+
--rt-pos-cell--color: #78dce8 !important;
|
|
64
|
+
--rt-neg-cell--color: #ff6188 !important;
|
|
65
|
+
--rt--border-color: #444444;
|
|
66
|
+
|
|
67
|
+
// FIXME: broken in shadow DOM. Can be fixed with a new custom property allowing empty header cell backgrounds
|
|
68
|
+
// to be styled
|
|
69
|
+
regular-table table tbody th:empty {
|
|
70
|
+
background: linear-gradient(
|
|
71
|
+
to right,
|
|
72
|
+
transparent 9px,
|
|
73
|
+
#444444 10px,
|
|
74
|
+
transparent 11px
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@mixin perspective-viewer-monokai--d3fc {
|
|
80
|
+
--d3fc-treedata--labels: #d6d6d6;
|
|
81
|
+
--d3fc-treedata--hover-highlight: #2d2a2e;
|
|
82
|
+
|
|
83
|
+
--d3fc-axis-ticks--color: #d6d6d6;
|
|
84
|
+
--d3fc-gridline--color: #444444;
|
|
85
|
+
--d3fc-series: #78dce8;
|
|
86
|
+
--d3fc-series-1: #78dce8;
|
|
87
|
+
--d3fc-series-2: #ff6188;
|
|
88
|
+
--d3fc-series-3: #fc9867;
|
|
89
|
+
--d3fc-series-4: #ffd866;
|
|
90
|
+
--d3fc-series-5: #a9dc76;
|
|
91
|
+
|
|
92
|
+
--d3fc-series-6: #ab9df2;
|
|
93
|
+
--d3fc-series-7: #66d9ef;
|
|
94
|
+
--d3fc-series-8: #f92672;
|
|
95
|
+
--d3fc-series-9: #fd971f;
|
|
96
|
+
--d3fc-series-10: #e6db74;
|
|
97
|
+
--d3fc-series-11: #a6e22e;
|
|
98
|
+
--d3fc-series-12: #ae81ff;
|
|
99
|
+
|
|
100
|
+
--d3fc-negative--gradient: linear-gradient(#272822 0%, #ff6188 100%);
|
|
101
|
+
--d3fc-positive--gradient: linear-gradient(#272822 0%, #78dce8 100%);
|
|
102
|
+
--d3fc-full--gradient: linear-gradient(
|
|
103
|
+
#ff6188 0%,
|
|
104
|
+
#272822 50%,
|
|
105
|
+
#78dce8 100%
|
|
106
|
+
);
|
|
107
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
@import "intl.less";
|
|
15
|
+
|
|
16
|
+
@import url("ref://pro.less");
|
|
17
|
+
|
|
18
|
+
// Register theme for auto-detection
|
|
19
|
+
perspective-viewer,
|
|
20
|
+
perspective-viewer[theme="Pro Dark"] {
|
|
21
|
+
--theme-name: "Pro Dark";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
perspective-viewer[theme="Pro Dark"] {
|
|
25
|
+
@include perspective-viewer-pro-dark;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
perspective-copy-menu[theme="Pro Dark"],
|
|
29
|
+
perspective-export-menu[theme="Pro Dark"],
|
|
30
|
+
perspective-dropdown[theme="Pro Dark"],
|
|
31
|
+
perspective-date-column-style[theme="Pro Dark"],
|
|
32
|
+
perspective-datetime-column-style[theme="Pro Dark"],
|
|
33
|
+
perspective-number-column-style[theme="Pro Dark"],
|
|
34
|
+
perspective-string-column-style[theme="Pro Dark"] {
|
|
35
|
+
@include perspective-modal-pro-dark;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin perspective-viewer-pro-dark {
|
|
39
|
+
@include perspective-viewer-pro;
|
|
40
|
+
@include perspective-viewer-pro-dark--colors;
|
|
41
|
+
@include perspective-viewer-pro-dark--datagrid;
|
|
42
|
+
@include perspective-viewer-pro-dark--d3fc;
|
|
43
|
+
@include perspective-viewer-pro-dark--openlayers;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin perspective-modal-pro-dark {
|
|
47
|
+
@include perspective-modal-pro;
|
|
48
|
+
@include perspective-viewer-pro-dark--colors;
|
|
49
|
+
|
|
50
|
+
background-color: #242526;
|
|
51
|
+
border: 1px solid #4c505b;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@mixin perspective-viewer-pro-dark--colors {
|
|
55
|
+
background-color: #242526;
|
|
56
|
+
color: white;
|
|
57
|
+
--icon--color: white;
|
|
58
|
+
--active--color: #2770a9;
|
|
59
|
+
--error--color: #ff9485;
|
|
60
|
+
--inactive--color: #61656e;
|
|
61
|
+
--inactive--border-color: #4c505b;
|
|
62
|
+
--plugin--background: #242526;
|
|
63
|
+
--modal-target--background: rgba(255, 255, 255, 0.05);
|
|
64
|
+
--active--background: rgba(39, 113, 170, 0.5);
|
|
65
|
+
--expression--operator-color: #c5c9d0;
|
|
66
|
+
--expression--function-color: #22a0ce;
|
|
67
|
+
--expression--error-color: rgb(255, 136, 136);
|
|
68
|
+
--calendar--filter: invert(1);
|
|
69
|
+
--warning--color: #242526;
|
|
70
|
+
--warning--background: var(--icon--color);
|
|
71
|
+
|
|
72
|
+
--select-arrow--background-image: var(
|
|
73
|
+
--select-arrow-light--background-image
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
--select-arrow--hover--background-image: var(
|
|
77
|
+
--select-arrow-dark--background-image
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
// Syntax
|
|
81
|
+
--code-editor-symbol--color: white;
|
|
82
|
+
--code-editor-literal--color: #7dc3f0;
|
|
83
|
+
--code-editor-operator--color: rgb(23, 166, 123);
|
|
84
|
+
--code-editor-comment--color: rgb(204, 120, 48);
|
|
85
|
+
--code-editor-column--color: #e18ee1;
|
|
86
|
+
// --code-editor-unknown--color: rgb(204, 120, 48);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@mixin perspective-viewer-pro-dark--openlayers {
|
|
90
|
+
--map-tile-url: "http://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png";
|
|
91
|
+
--map-attribution--filter: invert(1) hue-rotate(180deg);
|
|
92
|
+
--map-element-background: #212c2f;
|
|
93
|
+
--map-category-1: rgb(71, 120, 194);
|
|
94
|
+
--map-category-2: rgb(204, 120, 48);
|
|
95
|
+
--map-category-3: rgb(158, 84, 192);
|
|
96
|
+
--map-category-4: rgb(51, 150, 153);
|
|
97
|
+
--map-category-5: rgb(102, 114, 143);
|
|
98
|
+
--map-category-6: rgb(211, 103, 189);
|
|
99
|
+
--map-category-7: rgb(109, 124, 77);
|
|
100
|
+
--map-category-8: rgb(221, 99, 103);
|
|
101
|
+
--map-category-9: rgb(120, 104, 206);
|
|
102
|
+
--map-category-10: rgb(23, 166, 123);
|
|
103
|
+
--map-gradient: linear-gradient(#dd6367 0%, #242526 50%, #3289c8 100%);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@mixin perspective-viewer-pro-dark--datagrid {
|
|
107
|
+
--rt-pos-cell--color: #7dc3f0;
|
|
108
|
+
--rt-neg-cell--color: #ff9485;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@mixin perspective-viewer-pro-dark--d3fc {
|
|
112
|
+
--d3fc-legend--text: #c5c9d0;
|
|
113
|
+
--d3fc-treedata--labels: white;
|
|
114
|
+
--d3fc-treedata--hover-highlight: white;
|
|
115
|
+
--d3fc-tooltip--color: white;
|
|
116
|
+
--d3fc-axis-ticks--color: #c5c9d0;
|
|
117
|
+
--d3fc-axis--lines: #61656e;
|
|
118
|
+
--d3fc-gridline--color: #3b3f46;
|
|
119
|
+
--d3fc-tooltip--background: rgba(42, 44, 47, 1);
|
|
120
|
+
--d3fc-tooltip--border-color: #242526;
|
|
121
|
+
--d3fc-legend--background: var(--plugin--background);
|
|
122
|
+
|
|
123
|
+
--d3fc-series: rgb(71, 120, 194);
|
|
124
|
+
--d3fc-series-1: rgb(71, 120, 194);
|
|
125
|
+
--d3fc-series-2: rgb(204, 120, 48);
|
|
126
|
+
--d3fc-series-3: rgb(158, 84, 192);
|
|
127
|
+
--d3fc-series-4: rgb(51, 150, 153);
|
|
128
|
+
--d3fc-series-5: rgb(102, 114, 143);
|
|
129
|
+
--d3fc-series-6: rgb(211, 103, 189);
|
|
130
|
+
--d3fc-series-7: rgb(109, 124, 77);
|
|
131
|
+
--d3fc-series-8: rgb(221, 99, 103);
|
|
132
|
+
--d3fc-series-9: rgb(120, 104, 206);
|
|
133
|
+
--d3fc-series-10: rgb(23, 166, 123);
|
|
134
|
+
|
|
135
|
+
--d3fc-full--gradient: linear-gradient(
|
|
136
|
+
#dd6367 0%,
|
|
137
|
+
#242526 50%,
|
|
138
|
+
#3289c8 100%
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
--d3fc-positive--gradient: linear-gradient(#242526 0%, #3289c8 100%);
|
|
142
|
+
--d3fc-negative--gradient: linear-gradient(#dd6367 0%, #242526 100%);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// :host select {
|
|
146
|
+
// background-image: url("../svg/dropdown-selector.svg");
|
|
147
|
+
// }
|
|
@@ -0,0 +1,186 @@
|
|
|
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
|
+
@import "intl.less";
|
|
15
|
+
|
|
16
|
+
// Register theme for auto-detection
|
|
17
|
+
perspective-viewer,
|
|
18
|
+
perspective-viewer[theme="Pro Light"] {
|
|
19
|
+
--theme-name: "Pro Light";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
perspective-viewer[theme="Pro Light"] {
|
|
23
|
+
@include perspective-viewer-pro;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
perspective-copy-menu[theme="Pro Light"],
|
|
27
|
+
perspective-export-menu[theme="Pro Light"],
|
|
28
|
+
perspective-dropdown[theme="Pro Light"],
|
|
29
|
+
perspective-date-column-style[theme="Pro Light"],
|
|
30
|
+
perspective-datetime-column-style[theme="Pro Light"],
|
|
31
|
+
perspective-number-column-style[theme="Pro Light"],
|
|
32
|
+
perspective-string-column-style[theme="Pro Light"] {
|
|
33
|
+
@include perspective-modal-pro;
|
|
34
|
+
background-color: white;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin perspective-viewer-pro {
|
|
38
|
+
@include perspective-viewer-pro--dimensions;
|
|
39
|
+
@include perspective-viewer-pro--colors;
|
|
40
|
+
@include perspective-viewer-pro--fonts;
|
|
41
|
+
@include perspective-viewer-pro--d3fc;
|
|
42
|
+
@include perspective-viewer-pro--datagrid;
|
|
43
|
+
@include perspective-viewer-pro--openlayers;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin perspective-modal-pro {
|
|
47
|
+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
|
|
48
|
+
"Consolas", "Liberation Mono", monospace;
|
|
49
|
+
background-color: white;
|
|
50
|
+
border: 1px solid var(--inactive--color);
|
|
51
|
+
border-radius: 0 0 2px 2px;
|
|
52
|
+
--column-style-pos-color--content: "+";
|
|
53
|
+
--column-style-neg-color--content: "-";
|
|
54
|
+
--save-button-icon--content: "save";
|
|
55
|
+
--reset-button-icon--content: "refresh";
|
|
56
|
+
|
|
57
|
+
@include perspective-viewer-pro--fonts;
|
|
58
|
+
@include perspective-viewer-pro--colors;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin perspective-viewer-pro--dimensions {
|
|
62
|
+
--button--font-size: 16px;
|
|
63
|
+
--config-button--padding: 15px 8px 6px 8px;
|
|
64
|
+
--column-drop-label--font-size: 8px;
|
|
65
|
+
--column-drop-container--padding: 0px;
|
|
66
|
+
--column-selector--width: 20px;
|
|
67
|
+
--column-selector--font-size: 16px;
|
|
68
|
+
|
|
69
|
+
// 3 char width in 'Roboto Mono'
|
|
70
|
+
--column_type--width: 25px;
|
|
71
|
+
|
|
72
|
+
--select--padding: 0px;
|
|
73
|
+
--top-panel-row--display: inline-flex;
|
|
74
|
+
--button--min-width: 33px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@mixin perspective-viewer-pro--colors {
|
|
78
|
+
color: #161616;
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
--icon--color: #161616;
|
|
81
|
+
--inactive--color: #ababab;
|
|
82
|
+
--inactive--border-color: #dadada;
|
|
83
|
+
|
|
84
|
+
--root--background: #ffffff;
|
|
85
|
+
--active--color: #2670a9;
|
|
86
|
+
--error--color: #ff471e;
|
|
87
|
+
--plugin--background: #ffffff;
|
|
88
|
+
--overflow-hint-icon--color: rgba(0, 0, 0, 0.2);
|
|
89
|
+
--select--background-color: none;
|
|
90
|
+
--column-drop-container--background: none;
|
|
91
|
+
--warning--background: #042121;
|
|
92
|
+
--warning--color: #fdfffd;
|
|
93
|
+
|
|
94
|
+
--select-arrow--background-image: var(
|
|
95
|
+
--select-arrow-dark--background-image
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
--select-arrow--hover--background-image: var(
|
|
99
|
+
--select-arrow-light--background-image
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
// TODO deprecate me
|
|
103
|
+
--overflow-hint-icon--color: #fdfffd;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@mixin perspective-viewer-pro--fonts {
|
|
107
|
+
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
|
|
108
|
+
"Consolas", "Liberation Mono", monospace;
|
|
109
|
+
--interface-monospace--font-family: "ui-monospace", "SFMono-Regular",
|
|
110
|
+
"SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@mixin perspective-viewer-pro--d3fc {
|
|
114
|
+
--d3fc-y1-label--content: "arrow_upward";
|
|
115
|
+
--d3fc-y2-label--content: "arrow_downward";
|
|
116
|
+
--d3fc-treedata-axis--lines: none;
|
|
117
|
+
--d3fc-tooltip--background--color: rgba(155, 155, 155, 0.8);
|
|
118
|
+
--d3fc-tooltip--color: #161616;
|
|
119
|
+
--d3fc-tooltip--border-color: #fff;
|
|
120
|
+
--d3fc-tooltip--box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
|
|
121
|
+
--d3fc-gridline--color: #eaedef;
|
|
122
|
+
--d3fc-axis-ticks--color: #161616;
|
|
123
|
+
--d3fc-axis--lines: #c5c9d0;
|
|
124
|
+
--d3fc-legend--background: var(--plugin--background);
|
|
125
|
+
--d3fc-series: rgba(31, 119, 180, 0.8);
|
|
126
|
+
--d3fc-series-1: #0366d6;
|
|
127
|
+
--d3fc-series-2: #ff7f0e;
|
|
128
|
+
--d3fc-series-3: #2ca02c;
|
|
129
|
+
--d3fc-series-4: #d62728;
|
|
130
|
+
--d3fc-series-5: #9467bd;
|
|
131
|
+
--d3fc-series-6: #8c564b;
|
|
132
|
+
--d3fc-series-7: #e377c2;
|
|
133
|
+
--d3fc-series-8: #7f7f7f;
|
|
134
|
+
--d3fc-series-9: #bcbd22;
|
|
135
|
+
--d3fc-series-10: #17becf;
|
|
136
|
+
--d3fc-full--gradient: linear-gradient(
|
|
137
|
+
#4d342f 0%,
|
|
138
|
+
#e4521b 22.5%,
|
|
139
|
+
#feeb65 42.5%,
|
|
140
|
+
#f0f0f0 50%,
|
|
141
|
+
#dcedc8 57.5%,
|
|
142
|
+
#42b3d5 67.5%,
|
|
143
|
+
#1a237e 100%
|
|
144
|
+
);
|
|
145
|
+
--d3fc-positive--gradient: linear-gradient(
|
|
146
|
+
#f0f0f0 0%,
|
|
147
|
+
#dcedc8 10%,
|
|
148
|
+
#42b3d5 50%,
|
|
149
|
+
#1a237e 100%
|
|
150
|
+
);
|
|
151
|
+
--d3fc-negative--gradient: linear-gradient(
|
|
152
|
+
#4d342f 0%,
|
|
153
|
+
#e4521b 50%,
|
|
154
|
+
#feeb65 90%,
|
|
155
|
+
#f0f0f0 100%
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@mixin perspective-viewer-pro--openlayers {
|
|
160
|
+
--map-tile-url: "http://{a-c}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png";
|
|
161
|
+
--map-element-background: #fff;
|
|
162
|
+
--map-category-1: #0366d6;
|
|
163
|
+
--map-category-2: #ff7f0e;
|
|
164
|
+
--map-category-3: #2ca02c;
|
|
165
|
+
--map-category-4: #d62728;
|
|
166
|
+
--map-category-5: #9467bd;
|
|
167
|
+
--map-category-6: #8c564b;
|
|
168
|
+
--map-category-7: #e377c2;
|
|
169
|
+
--map-category-8: #7f7f7f;
|
|
170
|
+
--map-category-9: #bcbd22;
|
|
171
|
+
--map-category-10: #17becf;
|
|
172
|
+
--map-gradient: linear-gradient(
|
|
173
|
+
#4d342f 0%,
|
|
174
|
+
#e4521b 22.5%,
|
|
175
|
+
#feeb65 42.5%,
|
|
176
|
+
#f0f0f0 50%,
|
|
177
|
+
#dcedc8 57.5%,
|
|
178
|
+
#42b3d5 67.5%,
|
|
179
|
+
#1a237e 100%
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@mixin perspective-viewer-pro--datagrid {
|
|
184
|
+
--rt-pos-cell--color: #338dcd;
|
|
185
|
+
--rt-neg-cell--color: #ff471e;
|
|
186
|
+
}
|