@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,30 @@
|
|
|
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
|
+
//! A collection of (de-)serializable structs which capture the application
|
|
14
|
+
//! state, suitable for persistence, history, etc. features.
|
|
15
|
+
|
|
16
|
+
mod columns_config;
|
|
17
|
+
mod datetime_column_style;
|
|
18
|
+
mod number_column_style;
|
|
19
|
+
mod number_string_format;
|
|
20
|
+
mod string_column_style;
|
|
21
|
+
pub mod view_config;
|
|
22
|
+
mod viewer_config;
|
|
23
|
+
|
|
24
|
+
pub use columns_config::*;
|
|
25
|
+
pub use datetime_column_style::*;
|
|
26
|
+
pub use number_column_style::*;
|
|
27
|
+
pub use number_string_format::*;
|
|
28
|
+
pub use string_column_style::*;
|
|
29
|
+
pub use view_config::*;
|
|
30
|
+
pub use viewer_config::*;
|
|
@@ -0,0 +1,138 @@
|
|
|
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
|
+
use std::str::FromStr;
|
|
14
|
+
|
|
15
|
+
use serde::{Deserialize, Serialize};
|
|
16
|
+
use strum::{Display, EnumIter};
|
|
17
|
+
use ts_rs::TS;
|
|
18
|
+
|
|
19
|
+
use crate::*;
|
|
20
|
+
|
|
21
|
+
#[derive(
|
|
22
|
+
Clone, Copy, Debug, Default, Deserialize, Display, EnumIter, Eq, PartialEq, Serialize, TS,
|
|
23
|
+
)]
|
|
24
|
+
pub enum NumberForegroundMode {
|
|
25
|
+
#[serde(rename = "disabled")]
|
|
26
|
+
Disabled,
|
|
27
|
+
|
|
28
|
+
#[default]
|
|
29
|
+
#[serde(rename = "color")]
|
|
30
|
+
Color,
|
|
31
|
+
|
|
32
|
+
#[serde(rename = "bar")]
|
|
33
|
+
Bar,
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
impl FromStr for NumberForegroundMode {
|
|
37
|
+
type Err = String;
|
|
38
|
+
|
|
39
|
+
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
|
40
|
+
match s {
|
|
41
|
+
"color" => Ok(Self::Color),
|
|
42
|
+
"bar" => Ok(Self::Bar),
|
|
43
|
+
x => Err(format!("Unknown NumberForegroundMode::{x}")),
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
impl NumberForegroundMode {
|
|
49
|
+
fn is_color(&self) -> bool {
|
|
50
|
+
*self == Self::Color
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
pub fn is_enabled(&self) -> bool {
|
|
54
|
+
*self != Self::Disabled
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
pub fn needs_gradient(&self) -> bool {
|
|
58
|
+
*self == Self::Bar
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#[derive(
|
|
63
|
+
Clone, Copy, Debug, Default, Deserialize, Display, EnumIter, Eq, PartialEq, Serialize, TS,
|
|
64
|
+
)]
|
|
65
|
+
pub enum NumberBackgroundMode {
|
|
66
|
+
#[default]
|
|
67
|
+
#[serde(rename = "disabled")]
|
|
68
|
+
Disabled,
|
|
69
|
+
|
|
70
|
+
#[serde(rename = "color")]
|
|
71
|
+
Color,
|
|
72
|
+
|
|
73
|
+
#[serde(rename = "gradient")]
|
|
74
|
+
Gradient,
|
|
75
|
+
|
|
76
|
+
#[serde(rename = "pulse")]
|
|
77
|
+
Pulse,
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
impl NumberBackgroundMode {
|
|
81
|
+
pub fn is_disabled(&self) -> bool {
|
|
82
|
+
*self == Self::Disabled
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
pub fn needs_gradient(&self) -> bool {
|
|
86
|
+
*self == Self::Gradient
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#[derive(Serialize, Deserialize, Clone, Default, Debug, PartialEq, TS)]
|
|
91
|
+
pub struct NumberColumnStyleConfig {
|
|
92
|
+
#[serde(default = "NumberForegroundMode::default")]
|
|
93
|
+
#[serde(skip_serializing_if = "NumberForegroundMode::is_color")]
|
|
94
|
+
pub number_fg_mode: NumberForegroundMode,
|
|
95
|
+
|
|
96
|
+
#[serde(default = "NumberBackgroundMode::default")]
|
|
97
|
+
#[serde(skip_serializing_if = "NumberBackgroundMode::is_disabled")]
|
|
98
|
+
pub number_bg_mode: NumberBackgroundMode,
|
|
99
|
+
|
|
100
|
+
#[serde(skip_serializing_if = "Option::is_none")]
|
|
101
|
+
pub pos_fg_color: Option<String>,
|
|
102
|
+
|
|
103
|
+
#[serde(skip_serializing_if = "Option::is_none")]
|
|
104
|
+
pub neg_fg_color: Option<String>,
|
|
105
|
+
|
|
106
|
+
#[serde(skip_serializing_if = "Option::is_none")]
|
|
107
|
+
pub pos_bg_color: Option<String>,
|
|
108
|
+
|
|
109
|
+
#[serde(skip_serializing_if = "Option::is_none")]
|
|
110
|
+
pub neg_bg_color: Option<String>,
|
|
111
|
+
|
|
112
|
+
#[serde(skip_serializing_if = "Option::is_none")]
|
|
113
|
+
pub fg_gradient: Option<f64>,
|
|
114
|
+
|
|
115
|
+
#[serde(skip_serializing_if = "Option::is_none")]
|
|
116
|
+
pub bg_gradient: Option<f64>,
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
derive_wasm_abi!(NumberColumnStyleConfig, FromWasmAbi, IntoWasmAbi);
|
|
120
|
+
|
|
121
|
+
/// Exactly like a `ColumnStyleConfig`, except without `Option<>` fields.
|
|
122
|
+
///
|
|
123
|
+
/// Necessary because this struct represents the default values we should use in
|
|
124
|
+
/// the GUI when they are `None` in the real config. It is also used to decide
|
|
125
|
+
/// when to omit a field when serialized a `ColumnStyleConfig` to JSON.
|
|
126
|
+
#[derive(Serialize, Deserialize, Clone, Default, Debug, PartialEq)]
|
|
127
|
+
pub struct NumberColumnStyleDefaultConfig {
|
|
128
|
+
pub fg_gradient: f64,
|
|
129
|
+
pub bg_gradient: f64,
|
|
130
|
+
pub pos_fg_color: String,
|
|
131
|
+
pub neg_fg_color: String,
|
|
132
|
+
pub pos_bg_color: String,
|
|
133
|
+
pub neg_bg_color: String,
|
|
134
|
+
pub number_fg_mode: NumberForegroundMode,
|
|
135
|
+
pub number_bg_mode: NumberBackgroundMode,
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
derive_wasm_abi!(NumberColumnStyleDefaultConfig, FromWasmAbi);
|
|
@@ -0,0 +1,298 @@
|
|
|
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
|
+
use serde::{Deserialize, Serialize};
|
|
14
|
+
use strum::{Display, EnumIter};
|
|
15
|
+
use ts_rs::TS;
|
|
16
|
+
|
|
17
|
+
// NOTE: These should probably be pulled from a server somewhere.
|
|
18
|
+
|
|
19
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currency_2
|
|
20
|
+
#[derive(Clone, Copy, Debug, Default, PartialEq, Display, EnumIter, Serialize, Deserialize, TS)]
|
|
21
|
+
pub enum CurrencyCode {
|
|
22
|
+
AED,
|
|
23
|
+
AFN,
|
|
24
|
+
ALL,
|
|
25
|
+
AMD,
|
|
26
|
+
ANG,
|
|
27
|
+
AOA,
|
|
28
|
+
ARS,
|
|
29
|
+
AUD,
|
|
30
|
+
AWG,
|
|
31
|
+
AZN,
|
|
32
|
+
BAM,
|
|
33
|
+
BBD,
|
|
34
|
+
BDT,
|
|
35
|
+
BGN,
|
|
36
|
+
BHD,
|
|
37
|
+
BIF,
|
|
38
|
+
BMD,
|
|
39
|
+
BND,
|
|
40
|
+
BOB,
|
|
41
|
+
BOV,
|
|
42
|
+
BRL,
|
|
43
|
+
BSD,
|
|
44
|
+
BTN,
|
|
45
|
+
BWP,
|
|
46
|
+
BYR,
|
|
47
|
+
BZD,
|
|
48
|
+
CAD,
|
|
49
|
+
CDF,
|
|
50
|
+
CHE,
|
|
51
|
+
CHF,
|
|
52
|
+
CHW,
|
|
53
|
+
CLF,
|
|
54
|
+
CLP,
|
|
55
|
+
CNY,
|
|
56
|
+
COP,
|
|
57
|
+
COU,
|
|
58
|
+
CRC,
|
|
59
|
+
CUC,
|
|
60
|
+
CUP,
|
|
61
|
+
CVE,
|
|
62
|
+
CZK,
|
|
63
|
+
DJF,
|
|
64
|
+
DKK,
|
|
65
|
+
DOP,
|
|
66
|
+
DZD,
|
|
67
|
+
EGP,
|
|
68
|
+
ERN,
|
|
69
|
+
ETB,
|
|
70
|
+
EUR,
|
|
71
|
+
FJD,
|
|
72
|
+
FKP,
|
|
73
|
+
GBP,
|
|
74
|
+
GEL,
|
|
75
|
+
GHS,
|
|
76
|
+
GIP,
|
|
77
|
+
GMD,
|
|
78
|
+
GNF,
|
|
79
|
+
GTQ,
|
|
80
|
+
GYD,
|
|
81
|
+
HKD,
|
|
82
|
+
HNL,
|
|
83
|
+
HRK,
|
|
84
|
+
HTG,
|
|
85
|
+
HUF,
|
|
86
|
+
IDR,
|
|
87
|
+
ILS,
|
|
88
|
+
INR,
|
|
89
|
+
IQD,
|
|
90
|
+
IRR,
|
|
91
|
+
ISK,
|
|
92
|
+
JMD,
|
|
93
|
+
JOD,
|
|
94
|
+
JPY,
|
|
95
|
+
KES,
|
|
96
|
+
KGS,
|
|
97
|
+
KHR,
|
|
98
|
+
KMF,
|
|
99
|
+
KPW,
|
|
100
|
+
KRW,
|
|
101
|
+
KWD,
|
|
102
|
+
KYD,
|
|
103
|
+
KZT,
|
|
104
|
+
LAK,
|
|
105
|
+
LBP,
|
|
106
|
+
LKR,
|
|
107
|
+
LRD,
|
|
108
|
+
LSL,
|
|
109
|
+
LTL,
|
|
110
|
+
LVL,
|
|
111
|
+
LYD,
|
|
112
|
+
MAD,
|
|
113
|
+
MDL,
|
|
114
|
+
MGA,
|
|
115
|
+
MKD,
|
|
116
|
+
MMK,
|
|
117
|
+
MNT,
|
|
118
|
+
MOP,
|
|
119
|
+
MRO,
|
|
120
|
+
MUR,
|
|
121
|
+
MVR,
|
|
122
|
+
MWK,
|
|
123
|
+
MXN,
|
|
124
|
+
MXV,
|
|
125
|
+
MYR,
|
|
126
|
+
MZN,
|
|
127
|
+
NAD,
|
|
128
|
+
NGN,
|
|
129
|
+
NIO,
|
|
130
|
+
NOK,
|
|
131
|
+
NPR,
|
|
132
|
+
NZD,
|
|
133
|
+
OMR,
|
|
134
|
+
PAB,
|
|
135
|
+
PEN,
|
|
136
|
+
PGK,
|
|
137
|
+
PHP,
|
|
138
|
+
PKR,
|
|
139
|
+
PLN,
|
|
140
|
+
PYG,
|
|
141
|
+
QAR,
|
|
142
|
+
RON,
|
|
143
|
+
RSD,
|
|
144
|
+
RUB,
|
|
145
|
+
RWF,
|
|
146
|
+
SAR,
|
|
147
|
+
SBD,
|
|
148
|
+
SCR,
|
|
149
|
+
SDG,
|
|
150
|
+
SEK,
|
|
151
|
+
SGD,
|
|
152
|
+
SHP,
|
|
153
|
+
SLL,
|
|
154
|
+
SOS,
|
|
155
|
+
SRD,
|
|
156
|
+
SSP,
|
|
157
|
+
STD,
|
|
158
|
+
SYP,
|
|
159
|
+
SZL,
|
|
160
|
+
THB,
|
|
161
|
+
TJS,
|
|
162
|
+
TMT,
|
|
163
|
+
TND,
|
|
164
|
+
TOP,
|
|
165
|
+
TRY,
|
|
166
|
+
TTD,
|
|
167
|
+
TWD,
|
|
168
|
+
TZS,
|
|
169
|
+
UAH,
|
|
170
|
+
UGX,
|
|
171
|
+
#[default]
|
|
172
|
+
USD,
|
|
173
|
+
USN,
|
|
174
|
+
USS,
|
|
175
|
+
UYI,
|
|
176
|
+
UYU,
|
|
177
|
+
UZS,
|
|
178
|
+
VEF,
|
|
179
|
+
VND,
|
|
180
|
+
VUV,
|
|
181
|
+
WST,
|
|
182
|
+
XAF,
|
|
183
|
+
XAG,
|
|
184
|
+
XAU,
|
|
185
|
+
XBA,
|
|
186
|
+
XBB,
|
|
187
|
+
XBC,
|
|
188
|
+
XBD,
|
|
189
|
+
XCD,
|
|
190
|
+
XDR,
|
|
191
|
+
XFU,
|
|
192
|
+
XOF,
|
|
193
|
+
XPD,
|
|
194
|
+
XPF,
|
|
195
|
+
XPT,
|
|
196
|
+
XTS,
|
|
197
|
+
XXX,
|
|
198
|
+
YER,
|
|
199
|
+
ZAR,
|
|
200
|
+
ZMW,
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// https://tc39.es/ecma402/#table-sanctioned-single-unit-identifiers
|
|
204
|
+
#[derive(Clone, Copy, Debug, Default, PartialEq, Display, EnumIter, Serialize, Deserialize, TS)]
|
|
205
|
+
// #[serde(rename_all = "kebab-case")]
|
|
206
|
+
pub enum Unit {
|
|
207
|
+
#[serde(rename = "acre")]
|
|
208
|
+
Acre,
|
|
209
|
+
#[serde(rename = "bit")]
|
|
210
|
+
Bit,
|
|
211
|
+
#[serde(rename = "byte")]
|
|
212
|
+
Byte,
|
|
213
|
+
#[serde(rename = "celsius")]
|
|
214
|
+
Celsius,
|
|
215
|
+
#[serde(rename = "centimeter")]
|
|
216
|
+
Centimeter,
|
|
217
|
+
#[serde(rename = "day")]
|
|
218
|
+
Day,
|
|
219
|
+
#[serde(rename = "degree")]
|
|
220
|
+
Degree,
|
|
221
|
+
#[serde(rename = "fahrenheit")]
|
|
222
|
+
Fahrenheit,
|
|
223
|
+
#[serde(rename = "fluid-ounce")]
|
|
224
|
+
FluidOunce,
|
|
225
|
+
#[serde(rename = "foot")]
|
|
226
|
+
Foot,
|
|
227
|
+
#[serde(rename = "gallob")]
|
|
228
|
+
Gallon,
|
|
229
|
+
#[serde(rename = "gigabit")]
|
|
230
|
+
Gigabit,
|
|
231
|
+
#[serde(rename = "gigabyte")]
|
|
232
|
+
Gigabyte,
|
|
233
|
+
#[serde(rename = "gram")]
|
|
234
|
+
Gram,
|
|
235
|
+
#[serde(rename = "hectare")]
|
|
236
|
+
Hectare,
|
|
237
|
+
#[serde(rename = "hour")]
|
|
238
|
+
Hour,
|
|
239
|
+
#[serde(rename = "inch")]
|
|
240
|
+
Inch,
|
|
241
|
+
#[serde(rename = "kilobit")]
|
|
242
|
+
Kilobit,
|
|
243
|
+
#[serde(rename = "kilobyte")]
|
|
244
|
+
Kilobyte,
|
|
245
|
+
#[serde(rename = "kilogram")]
|
|
246
|
+
Kilogram,
|
|
247
|
+
#[serde(rename = "kilometer")]
|
|
248
|
+
Kilometer,
|
|
249
|
+
#[serde(rename = "liter")]
|
|
250
|
+
Liter,
|
|
251
|
+
#[serde(rename = "megabit")]
|
|
252
|
+
Megabit,
|
|
253
|
+
#[serde(rename = "megabyte")]
|
|
254
|
+
Megabyte,
|
|
255
|
+
#[serde(rename = "meter")]
|
|
256
|
+
Meter,
|
|
257
|
+
#[serde(rename = "microsecond")]
|
|
258
|
+
Microsecond,
|
|
259
|
+
#[serde(rename = "mile")]
|
|
260
|
+
Mile,
|
|
261
|
+
#[serde(rename = "mile-scandinavian")]
|
|
262
|
+
MileScandinavian,
|
|
263
|
+
#[serde(rename = "milliliter")]
|
|
264
|
+
Milliliter,
|
|
265
|
+
#[serde(rename = "millimeter")]
|
|
266
|
+
Millimeter,
|
|
267
|
+
#[serde(rename = "millisecond")]
|
|
268
|
+
Millisecond,
|
|
269
|
+
#[serde(rename = "minute")]
|
|
270
|
+
Minute,
|
|
271
|
+
#[serde(rename = "month")]
|
|
272
|
+
Month,
|
|
273
|
+
#[serde(rename = "nanosecond")]
|
|
274
|
+
Nanosecond,
|
|
275
|
+
#[serde(rename = "ounce")]
|
|
276
|
+
Ounce,
|
|
277
|
+
#[serde(rename = "percent")]
|
|
278
|
+
#[default]
|
|
279
|
+
Percent,
|
|
280
|
+
#[serde(rename = "petabyte")]
|
|
281
|
+
Petabyte,
|
|
282
|
+
#[serde(rename = "pound")]
|
|
283
|
+
Pound,
|
|
284
|
+
#[serde(rename = "second")]
|
|
285
|
+
Second,
|
|
286
|
+
#[serde(rename = "stone")]
|
|
287
|
+
Stone,
|
|
288
|
+
#[serde(rename = "terabit")]
|
|
289
|
+
Terabit,
|
|
290
|
+
#[serde(rename = "terabyte")]
|
|
291
|
+
Terabyte,
|
|
292
|
+
#[serde(rename = "week")]
|
|
293
|
+
Week,
|
|
294
|
+
#[serde(rename = "yard")]
|
|
295
|
+
Yard,
|
|
296
|
+
#[serde(rename = "year")]
|
|
297
|
+
Year,
|
|
298
|
+
}
|