@perspective-dev/viewer 4.4.1 → 4.5.1
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/dist/cdn/perspective-viewer.js +1 -2
- package/dist/cdn/perspective-viewer.js.map +4 -4
- package/dist/css/botanical.css +1 -1
- package/dist/css/dracula.css +1 -1
- package/dist/css/gruvbox-dark.css +1 -1
- package/dist/css/gruvbox.css +1 -1
- package/dist/css/icons.css +1 -1
- package/dist/css/intl/de.css +1 -1
- package/dist/css/intl/es.css +1 -1
- package/dist/css/intl/fr.css +1 -1
- package/dist/css/intl/ja.css +1 -1
- package/dist/css/intl/pt.css +1 -1
- package/dist/css/intl/zh.css +1 -1
- package/dist/css/intl.css +1 -1
- package/dist/css/monokai.css +1 -1
- package/dist/css/phosphor.css +1 -1
- package/dist/css/pro-dark.css +1 -1
- package/dist/css/pro.css +1 -1
- package/dist/css/solarized-dark.css +1 -1
- package/dist/css/solarized.css +1 -1
- package/dist/css/themes.css +1 -1
- package/dist/css/vaporwave.css +1 -1
- package/dist/esm/bootstrap.d.ts +2 -1
- package/dist/esm/column-format.d.ts +51 -0
- package/dist/esm/extensions.d.ts +2 -0
- package/dist/esm/perspective-viewer.d.ts +3 -1
- package/dist/esm/perspective-viewer.inline.js +1 -2
- package/dist/esm/perspective-viewer.inline.js.map +4 -4
- package/dist/esm/perspective-viewer.js +1 -2
- package/dist/esm/perspective-viewer.js.map +4 -4
- package/dist/esm/perspective-viewer.worker.d.ts +2 -0
- package/dist/esm/plugin.d.ts +16 -72
- package/dist/esm/ts-rs/ColumnSelectMode.d.ts +1 -0
- package/dist/esm/ts-rs/PluginStaticConfig.d.ts +77 -0
- package/dist/esm/ts-rs/ViewerConfig.d.ts +6 -3
- package/dist/esm/ts-rs/ViewerConfigUpdate.d.ts +7 -4
- package/dist/wasm/perspective-viewer.d.ts +77 -18
- package/dist/wasm/perspective-viewer.js +302 -148
- package/dist/wasm/perspective-viewer.wasm +0 -0
- package/dist/wasm/perspective-viewer.wasm.d.ts +20 -15
- package/package.json +24 -2
- package/src/css/column-selector.css +3 -2
- package/src/css/column-settings-panel.css +44 -9
- package/src/css/column-style.css +35 -2
- package/src/css/containers/scroll-panel.css +2 -1
- package/src/css/containers/tabs.css +8 -52
- package/src/css/dom/checkbox.css +2 -6
- package/src/css/form/code-editor.css +1 -0
- package/src/css/form/debug.css +3 -10
- package/src/css/plugin-selector.css +33 -0
- package/src/css/plugin-settings-panel.css +99 -0
- package/src/css/viewer.css +143 -3
- package/src/rust/components/column_dropdown.rs +3 -1
- package/src/rust/components/column_selector/active_column.rs +16 -19
- package/src/rust/components/column_selector/config_selector.rs +20 -20
- package/src/rust/components/column_selector/filter_column.rs +14 -14
- package/src/rust/components/column_selector/inactive_column.rs +10 -15
- package/src/rust/components/column_selector/pivot_column.rs +7 -7
- package/src/rust/components/column_selector/sort_column.rs +7 -7
- package/src/rust/components/column_selector.rs +55 -37
- package/src/rust/components/column_settings_sidebar/style_tab/agg_depth_selector.rs +15 -7
- package/src/rust/components/column_settings_sidebar/style_tab/primitive_field.rs +395 -0
- package/src/rust/components/column_settings_sidebar/style_tab/symbol.rs +15 -6
- package/src/rust/components/column_settings_sidebar/style_tab.rs +267 -136
- package/src/rust/components/column_settings_sidebar.rs +44 -49
- package/src/rust/components/containers/dragdrop_list.rs +32 -5
- package/src/rust/components/containers/mod.rs +0 -1
- package/src/rust/components/containers/scroll_panel.rs +21 -7
- package/src/rust/components/containers/sidebar.rs +8 -6
- package/src/rust/components/containers/split_panel.rs +3 -3
- package/src/rust/components/containers/tab_list.rs +3 -9
- package/src/rust/components/copy_dropdown.rs +2 -3
- package/src/rust/components/datetime_column_style.rs +19 -81
- package/src/rust/components/editable_header.rs +17 -3
- package/src/rust/components/export_dropdown.rs +2 -3
- package/src/rust/components/expression_editor.rs +29 -17
- package/src/rust/components/filter_dropdown.rs +2 -1
- package/src/rust/components/form/color_range_selector.rs +14 -7
- package/src/rust/components/form/debug.rs +47 -37
- package/src/rust/components/main_panel.rs +24 -65
- package/src/rust/components/mod.rs +2 -1
- package/src/rust/components/number_series_style.rs +161 -0
- package/src/rust/components/plugin_tab.rs +221 -0
- package/src/rust/components/settings_panel.rs +181 -59
- package/src/rust/components/status_bar.rs +141 -174
- package/src/rust/components/status_indicator.rs +15 -22
- package/src/rust/components/string_column_style.rs +20 -82
- package/src/rust/components/style_controls/number_string_format.rs +14 -30
- package/src/rust/components/viewer.rs +169 -132
- package/src/rust/config/column_config_schema.rs +195 -0
- package/src/rust/config/columns_config.rs +4 -97
- package/src/rust/config/datetime_column_style.rs +0 -5
- package/src/rust/config/mod.rs +8 -2
- package/src/rust/config/number_series_style.rs +79 -0
- package/src/rust/config/plugin_static_config.rs +144 -0
- package/src/rust/config/string_column_style.rs +0 -5
- package/src/rust/config/viewer_config.rs +5 -6
- package/src/rust/custom_elements/copy_dropdown.rs +30 -18
- package/src/rust/custom_elements/debug_plugin.rs +1 -3
- package/src/rust/custom_elements/export_dropdown.rs +26 -18
- package/src/rust/custom_elements/viewer.rs +62 -73
- package/src/rust/custom_events.rs +181 -224
- package/src/rust/js/plugin.rs +45 -117
- package/src/rust/lib.rs +34 -5
- package/src/rust/presentation/drag_helpers.rs +206 -0
- package/src/rust/presentation/props.rs +8 -0
- package/src/rust/presentation.rs +256 -41
- package/src/rust/{tasks → queries}/column_locator.rs +17 -73
- package/src/rust/queries/column_values.rs +59 -0
- package/src/rust/{tasks → queries}/columns_iter_set.rs +11 -18
- package/src/rust/queries/exports.rs +96 -0
- package/src/rust/queries/fetch_column_stats.rs +94 -0
- package/src/rust/queries/get_viewer_config.rs +54 -0
- package/src/rust/queries/mod.rs +44 -0
- package/src/rust/queries/plugin_column_styles.rs +101 -0
- package/src/rust/{engines.rs → queries/validate_expression.rs} +26 -15
- package/src/rust/renderer/activate.rs +1 -0
- package/src/rust/renderer/limits.rs +9 -4
- package/src/rust/renderer/plugin_store.rs +12 -0
- package/src/rust/renderer/props.rs +28 -3
- package/src/rust/renderer/registry.rs +40 -15
- package/src/rust/renderer.rs +703 -60
- package/src/rust/session/column_defaults_update.rs +20 -28
- package/src/rust/session/drag_drop_update.rs +10 -10
- package/src/rust/session/metadata.rs +31 -16
- package/src/rust/session/props.rs +15 -6
- package/src/rust/session/view_subscription.rs +10 -0
- package/src/rust/session.rs +109 -147
- package/src/rust/tasks/copy_export.rs +178 -158
- package/src/rust/tasks/{structural.rs → dismiss_render_warning.rs} +20 -40
- package/src/rust/tasks/edit_expression.rs +68 -88
- package/src/rust/tasks/eject.rs +25 -22
- package/src/rust/tasks/intersection_observer.rs +8 -21
- package/src/rust/tasks/mod.rs +19 -21
- package/src/rust/tasks/reset_all.rs +98 -0
- package/src/rust/tasks/resize_observer.rs +11 -33
- package/src/rust/tasks/restore_and_render.rs +128 -90
- package/src/rust/tasks/{get_viewer_config.rs → send_column_config.rs} +39 -35
- package/src/rust/tasks/send_plugin_config.rs +33 -33
- package/src/rust/tasks/update_and_render.rs +75 -49
- package/src/rust/{components/containers/trap_door_panel.rs → tasks/update_theme.rs} +34 -33
- package/src/rust/tasks/validate_expression.rs +61 -0
- package/src/rust/utils/browser/selection.rs +4 -4
- package/src/rust/utils/mod.rs +0 -63
- package/src/svg/checkbox-checked-icon.svg +1 -1
- package/src/svg/checkbox-unchecked-icon.svg +1 -1
- package/src/svg/mega-menu-icons-density.svg +23 -0
- package/src/svg/mega-menu-icons-map-density.svg +24 -0
- package/src/svg/mega-menu-icons-map-line.svg +19 -0
- package/src/themes/botanical.css +27 -53
- package/src/themes/defaults.css +24 -36
- package/src/themes/dracula.css +36 -54
- package/src/themes/gruvbox-dark.css +39 -59
- package/src/themes/gruvbox.css +16 -28
- package/src/themes/icons.css +5 -0
- package/src/themes/intl/de.css +43 -6
- package/src/themes/intl/es.css +43 -6
- package/src/themes/intl/fr.css +43 -6
- package/src/themes/intl/ja.css +43 -6
- package/src/themes/intl/pt.css +43 -6
- package/src/themes/intl/zh.css +43 -6
- package/src/themes/intl.css +38 -4
- package/src/themes/monokai.css +45 -61
- package/src/themes/phosphor.css +20 -29
- package/src/themes/pro-dark.css +25 -34
- package/src/themes/solarized-dark.css +21 -36
- package/src/themes/solarized.css +13 -23
- package/src/themes/vaporwave.css +40 -74
- package/src/ts/bootstrap.ts +14 -3
- package/src/ts/column-format.ts +162 -0
- package/src/ts/extensions.ts +4 -0
- package/src/ts/perspective-viewer.ts +9 -1
- package/src/{rust/components/column_settings_sidebar/style_tab/stub.rs → ts/perspective-viewer.worker.ts} +2 -22
- package/src/ts/plugin.ts +25 -101
- package/src/ts/ts-rs/{FormatUnit.ts → ColumnSelectMode.ts} +1 -1
- package/src/ts/ts-rs/PluginStaticConfig.ts +78 -0
- package/src/ts/ts-rs/ViewerConfig.ts +1 -2
- package/src/ts/ts-rs/ViewerConfigUpdate.ts +2 -3
- package/dist/esm/ts-rs/ColumnConfigValues.d.ts +0 -31
- package/dist/esm/ts-rs/CustomDatetimeFormat.d.ts +0 -1
- package/dist/esm/ts-rs/CustomDatetimeStyleConfig.d.ts +0 -15
- package/dist/esm/ts-rs/CustomNumberFormatConfig.d.ts +0 -18
- package/dist/esm/ts-rs/DatetimeColorMode.d.ts +0 -1
- package/dist/esm/ts-rs/DatetimeFormatType.d.ts +0 -6
- package/dist/esm/ts-rs/FormatMode.d.ts +0 -1
- package/dist/esm/ts-rs/FormatUnit.d.ts +0 -1
- package/dist/esm/ts-rs/NumberBackgroundMode.d.ts +0 -1
- package/dist/esm/ts-rs/NumberForegroundMode.d.ts +0 -1
- package/dist/esm/ts-rs/PluginConfig.d.ts +0 -2
- package/dist/esm/ts-rs/RoundingMode.d.ts +0 -1
- package/dist/esm/ts-rs/RoundingPriority.d.ts +0 -1
- package/dist/esm/ts-rs/SignDisplay.d.ts +0 -1
- package/dist/esm/ts-rs/SimpleDatetimeFormat.d.ts +0 -1
- package/dist/esm/ts-rs/SimpleDatetimeStyleConfig.d.ts +0 -6
- package/dist/esm/ts-rs/StringColorMode.d.ts +0 -1
- package/dist/esm/ts-rs/TrailingZeroDisplay.d.ts +0 -1
- package/dist/esm/ts-rs/UseGrouping.d.ts +0 -1
- package/src/rust/components/number_column_style.rs +0 -491
- package/src/rust/config/number_column_style.rs +0 -136
- package/src/rust/dragdrop.rs +0 -481
- package/src/rust/tasks/plugin_column_styles.rs +0 -98
- package/src/ts/ts-rs/ColumnConfigValues.ts +0 -14
- package/src/ts/ts-rs/CustomDatetimeFormat.ts +0 -3
- package/src/ts/ts-rs/CustomDatetimeStyleConfig.ts +0 -5
- package/src/ts/ts-rs/CustomNumberFormatConfig.ts +0 -8
- package/src/ts/ts-rs/DatetimeColorMode.ts +0 -3
- package/src/ts/ts-rs/DatetimeFormatType.ts +0 -8
- package/src/ts/ts-rs/FormatMode.ts +0 -3
- package/src/ts/ts-rs/NumberBackgroundMode.ts +0 -3
- package/src/ts/ts-rs/NumberForegroundMode.ts +0 -3
- package/src/ts/ts-rs/PluginConfig.ts +0 -4
- package/src/ts/ts-rs/RoundingMode.ts +0 -3
- package/src/ts/ts-rs/RoundingPriority.ts +0 -3
- package/src/ts/ts-rs/SignDisplay.ts +0 -3
- package/src/ts/ts-rs/SimpleDatetimeFormat.ts +0 -3
- package/src/ts/ts-rs/SimpleDatetimeStyleConfig.ts +0 -4
- package/src/ts/ts-rs/StringColorMode.ts +0 -3
- package/src/ts/ts-rs/TrailingZeroDisplay.ts +0 -3
- package/src/ts/ts-rs/UseGrouping.ts +0 -3
- /package/dist/wasm/snippets/{perspective-viewer-d924246f0b4a3dce → perspective-viewer-3cd58f0374935772}/inline0.js +0 -0
- /package/dist/wasm/snippets/{perspective-viewer-d924246f0b4a3dce → perspective-viewer-3cd58f0374935772}/inline1.js +0 -0
- /package/dist/wasm/snippets/{perspective-viewer-d924246f0b4a3dce → perspective-viewer-3cd58f0374935772}/inline2.js +0 -0
- /package/dist/wasm/snippets/{perspective-viewer-d924246f0b4a3dce → perspective-viewer-3cd58f0374935772}/inline3.js +0 -0
- /package/dist/wasm/snippets/{perspective-viewer-d924246f0b4a3dce → perspective-viewer-3cd58f0374935772}/inline4.js +0 -0
- /package/src/rust/{tasks → config}/export_method.rs +0 -0
- /package/src/rust/{tasks → queries}/export_app.rs +0 -0
- /package/src/rust/{tasks → queries}/is_invalid_drop.rs +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ColumnSelectMode } from "./ColumnSelectMode.js";
|
|
3
|
+
import type { GroupRollupMode } from "./GroupRollupMode.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Static, immutable configuration for a plugin.
|
|
7
|
+
*
|
|
8
|
+
* Returned once per plugin from `get_static_config()` at registration
|
|
9
|
+
* time and cached in [`crate::renderer::PluginRecord`]. Consumers
|
|
10
|
+
* (renderer, session, queries, components) read these fields off the
|
|
11
|
+
* renderer's active-plugin metadata rather than calling back into JS.
|
|
12
|
+
*
|
|
13
|
+
* `<perspective-viewer>` reads this exactly once per plugin (at
|
|
14
|
+
* `registerPlugin` time) and caches it for the lifetime of the
|
|
15
|
+
* application. The result must be stable; do not mutate any field
|
|
16
|
+
* after registration.
|
|
17
|
+
*/
|
|
18
|
+
export type PluginStaticConfig = {
|
|
19
|
+
/**
|
|
20
|
+
* The unique key for this plugin. Used as the `plugin` field in a
|
|
21
|
+
* `ViewerConfig` and as the display name key in the
|
|
22
|
+
* `<perspective-viewer>` UI.
|
|
23
|
+
*/
|
|
24
|
+
name: string,
|
|
25
|
+
/**
|
|
26
|
+
* Category in the plugin picker menu.
|
|
27
|
+
*/
|
|
28
|
+
category?: string | null,
|
|
29
|
+
/**
|
|
30
|
+
* Soft limit on the number of columns the plugin will render.
|
|
31
|
+
* Triggers the "Rendering N of M" warning when the view exceeds
|
|
32
|
+
* this value (until dismissed).
|
|
33
|
+
*/
|
|
34
|
+
max_columns?: number | null,
|
|
35
|
+
/**
|
|
36
|
+
* Soft limit on the number of cells (rows × columns) the plugin
|
|
37
|
+
* will render. Triggers the "Rendering N of M" warning when the view
|
|
38
|
+
* exceeds this value (until dismissed).
|
|
39
|
+
*/
|
|
40
|
+
max_cells?: number | null,
|
|
41
|
+
/**
|
|
42
|
+
* Column add/remove behavior. `"select"` exclusively selects the
|
|
43
|
+
* added column, removing other columns. `"toggle"` toggles the
|
|
44
|
+
* column on or off based on its current state, leaving other
|
|
45
|
+
* columns alone.
|
|
46
|
+
*/
|
|
47
|
+
select_mode?: ColumnSelectMode,
|
|
48
|
+
/**
|
|
49
|
+
* Minimum number of columns the plugin requires to render. Mostly
|
|
50
|
+
* affects drag/drop and column-remove button behavior. `undefined`
|
|
51
|
+
* is treated identically to `1`.
|
|
52
|
+
*/
|
|
53
|
+
min_config_columns?: number | null,
|
|
54
|
+
/**
|
|
55
|
+
* Named column slots. Named columns have replace/swap behavior in
|
|
56
|
+
* drag/drop rather than insert. The length must be at least
|
|
57
|
+
* `min_config_columns`.
|
|
58
|
+
*/
|
|
59
|
+
config_column_names?: Array<string>,
|
|
60
|
+
/**
|
|
61
|
+
* Group-rollup modes the plugin accepts, in preference order.
|
|
62
|
+
* The first entry that matches a feature flag becomes the default.
|
|
63
|
+
*/
|
|
64
|
+
group_rollup_modes?: Array<GroupRollupMode> | null,
|
|
65
|
+
/**
|
|
66
|
+
* Plugin load priority. Higher numbers win; ties resolve in
|
|
67
|
+
* registration order. The highest-priority plugin is loaded by
|
|
68
|
+
* default unless `restore({ plugin })` overrides it.
|
|
69
|
+
*/
|
|
70
|
+
priority?: number | null,
|
|
71
|
+
/**
|
|
72
|
+
* Whether this plugin opts into per-column style controls in the
|
|
73
|
+
* settings sidebar. When `true`, the StyleTab is shown for active
|
|
74
|
+
* columns and the plugin's `column_config_schema` is queried for
|
|
75
|
+
* the per-column field set. When `false` or omitted, no StyleTab
|
|
76
|
+
* is shown.
|
|
77
|
+
*/
|
|
78
|
+
can_render_column_styles?: boolean, };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
2
|
import type { Aggregate } from "./Aggregate.js";
|
|
3
|
-
import type { ColumnConfigValues } from "./ColumnConfigValues.js";
|
|
4
3
|
import type { Expressions } from "./Expressions.js";
|
|
5
4
|
import type { Filter } from "./Filter.js";
|
|
6
5
|
import type { FilterReducer } from "./FilterReducer.js";
|
|
@@ -12,4 +11,4 @@ import type { JsonValue } from "./serde_json/JsonValue.js";
|
|
|
12
11
|
* The state of an entire `custom_elements::PerspectiveViewerElement` component
|
|
13
12
|
* and its `Plugin`.
|
|
14
13
|
*/
|
|
15
|
-
export type ViewerConfig<V = string> = { version: V, columns_config: { [key in string]?:
|
|
14
|
+
export type ViewerConfig<V = string> = { version: V, columns_config: { [key in string]?: { [key in string]?: JsonValue } }, plugin: string, plugin_config: { [key in string]?: JsonValue }, settings: boolean, table: string | null, theme: string | null, title: string | null, group_by: Array<string>, split_by: Array<string>, sort: Array<Sort>, filter: Array<Filter>, group_rollup_mode: GroupRollupMode, filter_op?: FilterReducer, expressions: Expressions, columns: Array<string | null>, aggregates: { [key in string]?: Aggregate }, group_by_depth?: number | null, };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
2
|
import type { Aggregate } from "./Aggregate.js";
|
|
3
|
-
import type { ColumnConfigValues } from "./ColumnConfigValues.js";
|
|
4
3
|
import type { Expressions } from "./Expressions.js";
|
|
5
4
|
import type { Filter } from "./Filter.js";
|
|
6
5
|
import type { FilterReducer } from "./FilterReducer.js";
|
|
7
6
|
import type { GroupRollupMode } from "./GroupRollupMode.js";
|
|
8
7
|
import type { OptionalUpdate } from "./OptionalUpdate.js";
|
|
9
|
-
import type { PluginConfig } from "./PluginConfig.js";
|
|
10
8
|
import type { Sort } from "./Sort.js";
|
|
9
|
+
import type { JsonValue } from "./serde_json/JsonValue.js";
|
|
11
10
|
|
|
12
|
-
export type ViewerConfigUpdate = { version?: OptionalUpdate<string>, plugin?: OptionalUpdate<string>, title?: OptionalUpdate<string>, table?: OptionalUpdate<string>, theme?: OptionalUpdate<string>, settings?: OptionalUpdate<boolean>, plugin_config?:
|
|
11
|
+
export type ViewerConfigUpdate = { version?: OptionalUpdate<string>, plugin?: OptionalUpdate<string>, title?: OptionalUpdate<string>, table?: OptionalUpdate<string>, theme?: OptionalUpdate<string>, settings?: OptionalUpdate<boolean>, plugin_config?: OptionalUpdate<{ [key in string]?: JsonValue }>, columns_config?: OptionalUpdate<{ [key in string]?: { [key in string]?: JsonValue } }>,
|
|
13
12
|
/**
|
|
14
13
|
* A group by _groups_ the dataset by the unique values of each column used
|
|
15
14
|
* as a group by - a close analogue in SQL to the `GROUP BY` statement.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { CustomNumberFormatConfig } from "./CustomNumberFormatConfig.js";
|
|
2
|
-
import type { DatetimeColorMode } from "./DatetimeColorMode.js";
|
|
3
|
-
import type { DatetimeFormatType } from "./DatetimeFormatType.js";
|
|
4
|
-
import type { FormatMode } from "./FormatMode.js";
|
|
5
|
-
import type { NumberBackgroundMode } from "./NumberBackgroundMode.js";
|
|
6
|
-
import type { NumberForegroundMode } from "./NumberForegroundMode.js";
|
|
7
|
-
import type { StringColorMode } from "./StringColorMode.js";
|
|
8
|
-
/**
|
|
9
|
-
* The value de/serialized and stored in the viewer config.
|
|
10
|
-
* Also passed to the plugin via `plugin.save()`.
|
|
11
|
-
*/
|
|
12
|
-
export type ColumnConfigValues = {
|
|
13
|
-
symbols?: {
|
|
14
|
-
[key in string]?: string;
|
|
15
|
-
};
|
|
16
|
-
number_format?: CustomNumberFormatConfig | null;
|
|
17
|
-
aggregate_depth?: number;
|
|
18
|
-
number_fg_mode?: NumberForegroundMode;
|
|
19
|
-
number_bg_mode?: NumberBackgroundMode;
|
|
20
|
-
pos_fg_color: string | null;
|
|
21
|
-
neg_fg_color: string | null;
|
|
22
|
-
pos_bg_color: string | null;
|
|
23
|
-
neg_bg_color: string | null;
|
|
24
|
-
fg_gradient: number | null;
|
|
25
|
-
bg_gradient: number | null;
|
|
26
|
-
format?: FormatMode;
|
|
27
|
-
string_color_mode?: StringColorMode;
|
|
28
|
-
color?: string | null;
|
|
29
|
-
date_format?: DatetimeFormatType;
|
|
30
|
-
datetime_color_mode?: DatetimeColorMode;
|
|
31
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CustomDatetimeFormat = "long" | "short" | "narrow" | "numeric" | "2-digit" | "disabled";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { CustomDatetimeFormat } from "./CustomDatetimeFormat.js";
|
|
2
|
-
import type { FormatUnit } from "./FormatUnit.js";
|
|
3
|
-
export type CustomDatetimeStyleConfig = {
|
|
4
|
-
format: FormatUnit;
|
|
5
|
-
timeZone?: string | null;
|
|
6
|
-
fractionalSecondDigits?: number;
|
|
7
|
-
second?: CustomDatetimeFormat;
|
|
8
|
-
minute?: CustomDatetimeFormat;
|
|
9
|
-
hour?: CustomDatetimeFormat;
|
|
10
|
-
day?: CustomDatetimeFormat;
|
|
11
|
-
weekday?: CustomDatetimeFormat;
|
|
12
|
-
month?: CustomDatetimeFormat;
|
|
13
|
-
year?: CustomDatetimeFormat;
|
|
14
|
-
hour12?: boolean;
|
|
15
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { RoundingMode } from "./RoundingMode.js";
|
|
2
|
-
import type { RoundingPriority } from "./RoundingPriority.js";
|
|
3
|
-
import type { SignDisplay } from "./SignDisplay.js";
|
|
4
|
-
import type { TrailingZeroDisplay } from "./TrailingZeroDisplay.js";
|
|
5
|
-
import type { UseGrouping } from "./UseGrouping.js";
|
|
6
|
-
export type CustomNumberFormatConfig = {
|
|
7
|
-
minimumIntegerDigits: number | null;
|
|
8
|
-
minimumFractionDigits: number | null;
|
|
9
|
-
maximumFractionDigits: number | null;
|
|
10
|
-
minimumSignificantDigits: number | null;
|
|
11
|
-
maximumSignificantDigits: number | null;
|
|
12
|
-
roundingPriority: RoundingPriority | null;
|
|
13
|
-
roundingIncrement: number | null;
|
|
14
|
-
roundingMode: RoundingMode | null;
|
|
15
|
-
trailingZeroDisplay: TrailingZeroDisplay | null;
|
|
16
|
-
useGrouping: UseGrouping | null;
|
|
17
|
-
signDisplay: SignDisplay | null;
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type DatetimeColorMode = "none" | "foreground" | "background";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CustomDatetimeStyleConfig } from "./CustomDatetimeStyleConfig.js";
|
|
2
|
-
import type { SimpleDatetimeStyleConfig } from "./SimpleDatetimeStyleConfig.js";
|
|
3
|
-
/**
|
|
4
|
-
* `Simple` case has all default-able keys and must be last!
|
|
5
|
-
*/
|
|
6
|
-
export type DatetimeFormatType = CustomDatetimeStyleConfig | SimpleDatetimeStyleConfig;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type FormatMode = "none" | "link" | "bold" | "italics";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type FormatUnit = "custom";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type NumberBackgroundMode = "disabled" | "color" | "gradient" | "pulse";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type NumberForegroundMode = "disabled" | "color" | "bar" | "label-bar";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type RoundingMode = "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type RoundingPriority = "auto" | "morePrecision" | "lessPrecision";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type SignDisplay = "auto" | "always" | "exceptZero" | "negative" | "never";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type SimpleDatetimeFormat = "full" | "long" | "medium" | "short" | "disabled";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type StringColorMode = "none" | "foreground" | "background" | "series";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type TrailingZeroDisplay = "auto" | "stripIfInteger";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type UseGrouping = "always" | "auto" | "min2" | boolean;
|