@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,126 @@
|
|
|
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
|
+
:host {
|
|
14
|
+
:-webkit-calendar-picker-indicator {
|
|
15
|
+
filter: var(--calendar--filter, none);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#top_panel {
|
|
19
|
+
.rrow {
|
|
20
|
+
.input-sizer {
|
|
21
|
+
display: inline-grid;
|
|
22
|
+
align-items: center;
|
|
23
|
+
position: relative;
|
|
24
|
+
margin-top: 1px;
|
|
25
|
+
min-width: 45px;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
height: 16px;
|
|
28
|
+
|
|
29
|
+
&:after,
|
|
30
|
+
input,
|
|
31
|
+
textarea {
|
|
32
|
+
width: auto;
|
|
33
|
+
grid-area: 1 / 1;
|
|
34
|
+
font-family: inherit;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
input,
|
|
38
|
+
textarea {
|
|
39
|
+
grid-area: 1 / 1;
|
|
40
|
+
padding: 0;
|
|
41
|
+
border: none;
|
|
42
|
+
border-bottom: 1px solid var(--inactive--color, #ccc);
|
|
43
|
+
background: transparent;
|
|
44
|
+
color: inherit;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:after {
|
|
48
|
+
content: attr(data-value) " ";
|
|
49
|
+
color: var(--inactive--color, inherit);
|
|
50
|
+
visibility: hidden;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
padding-right: 18px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.num-filter {
|
|
56
|
+
input,
|
|
57
|
+
textarea {
|
|
58
|
+
width: 100%;
|
|
59
|
+
position: absolute;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.num-filter:after {
|
|
64
|
+
padding-right: 25px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
input.date-filter {
|
|
68
|
+
width: 120px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
input.datetime-filter {
|
|
72
|
+
width: 230px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
input.time-filter {
|
|
76
|
+
grid-area: 1/2;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:focus-within {
|
|
80
|
+
textarea:focus,
|
|
81
|
+
input:focus {
|
|
82
|
+
outline: none;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// The filter comparator
|
|
89
|
+
#filter {
|
|
90
|
+
.pivot-column {
|
|
91
|
+
input {
|
|
92
|
+
font-size: 1em;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
input[type="search"] {
|
|
96
|
+
text-overflow: ellipsis;
|
|
97
|
+
position: absolute;
|
|
98
|
+
left: 0;
|
|
99
|
+
right: 0;
|
|
100
|
+
&::-webkit-search-cancel-button {
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
opacity: 1;
|
|
103
|
+
margin-left: 6px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:not(:empty)::-webkit-search-cancel-button {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.dropdown-width-container {
|
|
112
|
+
height: 100%;
|
|
113
|
+
flex: 0 0 auto;
|
|
114
|
+
|
|
115
|
+
select {
|
|
116
|
+
padding-right: 12px;
|
|
117
|
+
padding-left: 4px;
|
|
118
|
+
max-width: 100%;
|
|
119
|
+
position: absolute;
|
|
120
|
+
height: 100%;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
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 "dom/scrollbar.less";
|
|
14
|
+
|
|
15
|
+
:host {
|
|
16
|
+
#editor {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex: 1 1 auto;
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow-x: visible;
|
|
21
|
+
overflow-y: auto;
|
|
22
|
+
@include scrollbar;
|
|
23
|
+
|
|
24
|
+
#editor-height-sizer {
|
|
25
|
+
height: 100px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
#editor-inner {
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
position: relative;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex: 1 1 auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
#line_numbers {
|
|
36
|
+
color: var(--inactive--color);
|
|
37
|
+
background-color: var(--plugin--background, white);
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
flex: 0 0 auto;
|
|
42
|
+
font-family: var(--interface-monospace--font-family, monospace);
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
padding: 6px 0 6px 6px;
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
span:after {
|
|
48
|
+
color: var(--code-editor-error--color, red);
|
|
49
|
+
white-space: pre;
|
|
50
|
+
content: var(--status-icon--content, " X ");
|
|
51
|
+
opacity: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
span.error_highlight:after {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
pre#content {
|
|
60
|
+
margin: 0 6px 6px 0;
|
|
61
|
+
padding: 6px 0;
|
|
62
|
+
// margin-left: 36px;
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
font-family: var(--interface-monospace--font-family, monospace);
|
|
67
|
+
color: var(--code-editor-error--color, red);
|
|
68
|
+
white-space: pre;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
|
|
71
|
+
span {
|
|
72
|
+
// display: contents;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.comment {
|
|
76
|
+
color: var(--code-editor-comment--color, orange);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.operator {
|
|
80
|
+
color: var(--code-editor-operator--color, green);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.unknown {
|
|
84
|
+
color: var(--code-editor-unknown--color, red);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.symbol {
|
|
88
|
+
color: var(--code-editor-symbol--color, #242526);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.column {
|
|
92
|
+
color: var(--code-editor-column--color, purple);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.literal {
|
|
96
|
+
color: var(--code-editor-literal--color, blue);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.error_highlight {
|
|
100
|
+
// background-color:
|
|
101
|
+
color: var(--code-editor-error--color, red);
|
|
102
|
+
background-color: rgba(255, 0, 0, 0.1);
|
|
103
|
+
border: 0px solid var(--code-editor-error--color, red);
|
|
104
|
+
border-bottom-width: 1px;
|
|
105
|
+
margin-bottom: -1px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#textarea_editable {
|
|
110
|
+
@include scrollbar;
|
|
111
|
+
|
|
112
|
+
position: absolute;
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
font-family: var(--interface-monospace--font-family, monospace);
|
|
116
|
+
font-size: 1em;
|
|
117
|
+
resize: none;
|
|
118
|
+
padding: 6px 0;
|
|
119
|
+
margin: 0;
|
|
120
|
+
border: none;
|
|
121
|
+
outline: none;
|
|
122
|
+
color: transparent;
|
|
123
|
+
caret-color: var(--code-editor-symbol--color, #242526);
|
|
124
|
+
white-space: pre;
|
|
125
|
+
box-sizing: border-box;
|
|
126
|
+
background-color: transparent;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.wordwrap {
|
|
130
|
+
#textarea_editable,
|
|
131
|
+
#content {
|
|
132
|
+
white-space: pre-wrap;
|
|
133
|
+
word-wrap: break-word;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
:host {
|
|
14
|
+
div.tab-title#Debug:before {
|
|
15
|
+
content: var(--debug-tab-label--content, "Debug JSON");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#debug-panel-overflow {
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tab-padding {
|
|
24
|
+
border-right: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tab-title {
|
|
28
|
+
height: 36px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#debug-panel {
|
|
32
|
+
display: flex;
|
|
33
|
+
min-width: 150px;
|
|
34
|
+
label {
|
|
35
|
+
display: block;
|
|
36
|
+
margin-bottom: 2px;
|
|
37
|
+
font-size: var(--label--font-size, 0.75em);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
#debug-panel-controls {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex: 0 0 auto;
|
|
43
|
+
gap: 0.333333em;
|
|
44
|
+
padding: 0px 8px 12px 8px;
|
|
45
|
+
align-items: center;
|
|
46
|
+
button {
|
|
47
|
+
appearance: none;
|
|
48
|
+
background-color: transparent;
|
|
49
|
+
border-radius: 3px;
|
|
50
|
+
border: 1px solid var(--icon--color);
|
|
51
|
+
color: inherit;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
flex: 0 1 100px;
|
|
54
|
+
font-family: inherit;
|
|
55
|
+
font-size: 0.8333em;
|
|
56
|
+
text-transform: uppercase;
|
|
57
|
+
height: 24px;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
width: 0px;
|
|
61
|
+
&:not([disabled]):hover {
|
|
62
|
+
background-color: var(--icon--color);
|
|
63
|
+
color: var(--plugin--background);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&[disabled] {
|
|
67
|
+
cursor: not-allowed;
|
|
68
|
+
opacity: 0.2;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#debug-panel-editor {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
flex: 0 1 auto;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
padding: 12px 8px 12px 8px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#editor {
|
|
82
|
+
background-color: var(--plugin--background);
|
|
83
|
+
border: 1px solid var(--inactive--color);
|
|
84
|
+
border-radius: 2px;
|
|
85
|
+
// height: 100%;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
:host {
|
|
14
|
+
position: fixed;
|
|
15
|
+
z-index: 10000;
|
|
16
|
+
outline: none;
|
|
17
|
+
font-size: 0.75em;
|
|
18
|
+
border: inherit;
|
|
19
|
+
box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
|
|
20
|
+
user-select: none;
|
|
21
|
+
background-color: white;
|
|
22
|
+
padding: 6px;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
max-width: 300px;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
|
|
28
|
+
.selected {
|
|
29
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
span {
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host(:hover) {
|
|
38
|
+
.selected {
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.selected:hover {
|
|
43
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
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 "dom/scrollbar.less";
|
|
14
|
+
|
|
15
|
+
:host {
|
|
16
|
+
#settings_panel {
|
|
17
|
+
#plugin_selector_container.open ~ * {
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#plugin_selector_container {
|
|
22
|
+
min-height: 48px;
|
|
23
|
+
display: flex;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
flex: 0 0 auto;
|
|
27
|
+
|
|
28
|
+
// Overflow the padding bounds of the container
|
|
29
|
+
// TODO these bounds exist to protext the resizer and scrollbar (left &
|
|
30
|
+
// right resp) but we really should find a way to remove it and delegate
|
|
31
|
+
// to sub-containers.
|
|
32
|
+
margin: 0 0px 0 -9px;
|
|
33
|
+
|
|
34
|
+
#plugin_selector_border {
|
|
35
|
+
height: 2px;
|
|
36
|
+
min-height: 2px;
|
|
37
|
+
width: 100%;
|
|
38
|
+
background-color: var(--inactive--color, #6e6e6e);
|
|
39
|
+
margin-top: 1px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.plugin-selector-options {
|
|
43
|
+
overflow-y: auto;
|
|
44
|
+
@include scrollbar;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.open {
|
|
48
|
+
position: absolute;
|
|
49
|
+
margin: 0;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
right: 0;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
|
|
55
|
+
// This element is first in the container but visually "overlaps"
|
|
56
|
+
// when expanded
|
|
57
|
+
z-index: 3;
|
|
58
|
+
color: var(--icon--color, #042121);
|
|
59
|
+
// background: var(--plugin--background);
|
|
60
|
+
|
|
61
|
+
.plugin-select-item {
|
|
62
|
+
padding-left: 8px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.plugin-select-item-name {
|
|
67
|
+
padding-left: 10px;
|
|
68
|
+
font-size: 1.33333em;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.plugin-select-item-name:before {
|
|
72
|
+
// This value is set in a `style` tag from Yew!
|
|
73
|
+
content: var(--default-column-title);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.plugin-select-item {
|
|
77
|
+
// width: 48px;
|
|
78
|
+
padding-left: 9px;
|
|
79
|
+
height: 48px;
|
|
80
|
+
min-height: 48px;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
border-bottom: 1px solid var(--inactive--color, #6e6e6e);
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Hadn't seen this technique before, makes sizing/positioning these
|
|
88
|
+
// trivial. There's some indication this doesn't work on non-chrome
|
|
89
|
+
// https://stackoverflow.com/questions/36259410/how-to-set-size-of-svg-image-in-before-pseudo-class
|
|
90
|
+
// https://stackoverflow.com/questions/21509982/change-svg-fill-color-in-before-or-after-css
|
|
91
|
+
.plugin-select-item:before {
|
|
92
|
+
content: "";
|
|
93
|
+
display: inline-block;
|
|
94
|
+
height: 35px;
|
|
95
|
+
width: 40px;
|
|
96
|
+
-webkit-mask-size: cover;
|
|
97
|
+
mask-size: cover;
|
|
98
|
+
background-repeat: no-repeat;
|
|
99
|
+
background-color: var(--icon--color);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.plugin-select-item:hover {
|
|
103
|
+
background-color: var(--icon--color, #042121);
|
|
104
|
+
color: var(--plugin--background, #fdfffd);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.plugin-select-item:hover:before {
|
|
108
|
+
background-color: var(--plugin--background, #fdfffd);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.plugin-select-item[data-plugin="Candlestick"]:before {
|
|
112
|
+
// mask-image: var(--plugin-selector-candlestick--content);
|
|
113
|
+
-webkit-mask-image: var(--plugin-selector-candlestick--content);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.plugin-select-item[data-plugin="Heatmap"]:before {
|
|
117
|
+
-webkit-mask-image: var(--plugin-selector-heatmap--content);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.plugin-select-item[data-plugin="Map Scatter"]:before {
|
|
121
|
+
-webkit-mask-image: var(--plugin-selector-map-scatter--content);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.plugin-select-item[data-plugin="OHLC"]:before {
|
|
125
|
+
-webkit-mask-image: var(--plugin-selector-ohlc--content);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.plugin-select-item[data-plugin="Sunburst"]:before {
|
|
129
|
+
-webkit-mask-image: var(--plugin-selector-sunburst--content);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.plugin-select-item[data-plugin="Treemap"]:before {
|
|
133
|
+
-webkit-mask-image: var(--plugin-selector-treemap--content);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.plugin-select-item[data-plugin="X Bar"]:before {
|
|
137
|
+
-webkit-mask-image: var(--plugin-selector-x-bar--content);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.plugin-select-item[data-plugin="X/Y Line"]:before {
|
|
141
|
+
-webkit-mask-image: var(--plugin-selector-x-y-line--content);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.plugin-select-item[data-plugin="X/Y Scatter"]:before {
|
|
145
|
+
-webkit-mask-image: var(--plugin-selector-x-y-scatter--content);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.plugin-select-item[data-plugin="Y Area"]:before {
|
|
149
|
+
-webkit-mask-image: var(--plugin-selector-y-area--content);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.plugin-select-item[data-plugin="Y Bar"]:before {
|
|
153
|
+
-webkit-mask-image: var(--plugin-selector-y-bar--content);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.plugin-select-item[data-plugin="Y Line"]:before {
|
|
157
|
+
-webkit-mask-image: var(--plugin-selector-y-line--content);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.plugin-select-item[data-plugin="Y Scatter"]:before {
|
|
161
|
+
-webkit-mask-image: var(--plugin-selector-y-scatter--content);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.plugin-select-item[data-plugin="Datagrid"]:before {
|
|
165
|
+
-webkit-mask-image: var(--plugin-selector-datagrid--content);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
#plugin_selector {
|
|
170
|
+
flex-grow: 1;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
// @amber400: #ffca28;
|
|
14
|
+
|
|
15
|
+
:host {
|
|
16
|
+
.plugin_information {
|
|
17
|
+
color: var(--warning--color, inherit);
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
display: flex;
|
|
20
|
+
position: absolute;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
justify-content: flex-start;
|
|
23
|
+
padding: 0.5rem;
|
|
24
|
+
z-index: 10000;
|
|
25
|
+
user-select: none;
|
|
26
|
+
left: 48px;
|
|
27
|
+
padding-left: 24px;
|
|
28
|
+
padding-right: 24px;
|
|
29
|
+
border-radius: 24px;
|
|
30
|
+
align-items: center;
|
|
31
|
+
|
|
32
|
+
&.plugin_information--warning {
|
|
33
|
+
background: var(--warning--background, #ffca28);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.plugin_information__text {
|
|
37
|
+
margin-right: 0.25rem;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
align-items: center;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.plugin_information__icon {
|
|
44
|
+
height: 20px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.plugin_information__icon:before {
|
|
48
|
+
content: var(--overflow-hint-icon--content);
|
|
49
|
+
height: 20px;
|
|
50
|
+
font-family: var(
|
|
51
|
+
--overflow_hint--font-family,
|
|
52
|
+
var(--button--font-family, inherit)
|
|
53
|
+
);
|
|
54
|
+
color: var(--overflow-hint-icon--color);
|
|
55
|
+
padding: var(--overflow-hint-icon--padding, 0 12px 0 6px);
|
|
56
|
+
font-size: 16px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.plugin_information__action {
|
|
60
|
+
text-decoration: underline;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
margin-right: 0.25rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.plugin_information__actions {
|
|
66
|
+
margin-left: auto;
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
flex-direction: row;
|
|
70
|
+
justify-content: flex-start;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.plugin_information--overflow-hint-percent {
|
|
74
|
+
font-weight: 700;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.plugin_information--overflow-hint {
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|