@akohn/dashql-react 0.0.0-stage → 0.0.20-dev.664.g9e89b805d
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 +373 -0
- package/NOTICE +66 -0
- package/README.md +46 -2
- package/dist/_virtual/_vite/preload-helper.js +100 -0
- package/dist/brand/brand.d.ts +13 -0
- package/dist/brand/brand.js +14 -0
- package/dist/brand/landing_backdrop.d.ts +56 -0
- package/dist/brand/landing_backdrop.js +1019 -0
- package/dist/brand/wobble_morph.d.ts +54 -0
- package/dist/brand/wobble_morph.js +439 -0
- package/dist/components/action_list.d.ts +31 -0
- package/dist/components/action_list.js +63 -0
- package/dist/components/action_list.module.js +11 -0
- package/dist/components/anchored_overlay.d.ts +28 -0
- package/dist/components/anchored_overlay.js +93 -0
- package/dist/components/button.d.ts +42 -0
- package/dist/components/button.js +97 -0
- package/dist/components/button.module.js +20 -0
- package/dist/components/button_group.d.ts +7 -0
- package/dist/components/button_group.js +18 -0
- package/dist/components/button_group.module.js +3 -0
- package/dist/components/card_placeholder.d.ts +9 -0
- package/dist/components/card_placeholder.js +39 -0
- package/dist/components/card_placeholder.module.js +6 -0
- package/dist/components/clipboard.d.ts +19 -0
- package/dist/components/clipboard.js +54 -0
- package/dist/components/data_table/computation_tables.d.ts +12 -0
- package/dist/components/data_table/computation_tables.js +42 -0
- package/dist/components/data_table/data_table.d.ts +38 -0
- package/dist/components/data_table/data_table.js +378 -0
- package/dist/components/data_table/data_table.module.js +41 -0
- package/dist/components/data_table/data_table_cell.d.ts +7 -0
- package/dist/components/data_table/data_table_cell.js +9 -0
- package/dist/components/data_table/data_table_cell_data.d.ts +21 -0
- package/dist/components/data_table/data_table_cell_data.js +99 -0
- package/dist/components/data_table/data_table_cell_header_name.d.ts +17 -0
- package/dist/components/data_table/data_table_cell_header_name.js +73 -0
- package/dist/components/data_table/data_table_cell_header_plots.d.ts +31 -0
- package/dist/components/data_table/data_table_cell_header_plots.js +122 -0
- package/dist/components/data_table/data_table_colors.d.ts +19 -0
- package/dist/components/data_table/data_table_colors.js +27 -0
- package/dist/components/data_table/data_table_column_resize.d.ts +21 -0
- package/dist/components/data_table/data_table_column_resize.js +121 -0
- package/dist/components/data_table/data_table_focus.d.ts +15 -0
- package/dist/components/data_table/data_table_focus.js +53 -0
- package/dist/components/data_table/data_table_layout.d.ts +18 -0
- package/dist/components/data_table/data_table_layout.js +103 -0
- package/dist/components/data_table/data_table_ordering.d.ts +9 -0
- package/dist/components/data_table/data_table_ordering.js +39 -0
- package/dist/components/data_table/data_table_portals.d.ts +9 -0
- package/dist/components/data_table/data_table_portals.js +29 -0
- package/dist/components/data_table/data_table_sticky_views.d.ts +34 -0
- package/dist/components/data_table/data_table_sticky_views.js +161 -0
- package/dist/components/data_table/data_table_window.d.ts +18 -0
- package/dist/components/data_table/data_table_window.js +118 -0
- package/dist/components/data_table/format_peek.d.ts +2 -0
- package/dist/components/data_table/format_peek.js +17 -0
- package/dist/components/data_table/histogram_bars.d.ts +36 -0
- package/dist/components/data_table/histogram_bars.js +100 -0
- package/dist/components/data_table/histogram_brush.d.ts +23 -0
- package/dist/components/data_table/histogram_brush.js +107 -0
- package/dist/components/data_table/histogram_cell.d.ts +19 -0
- package/dist/components/data_table/histogram_cell.js +325 -0
- package/dist/components/data_table/histogram_cell.module.js +9 -0
- package/dist/components/data_table/histogram_label.d.ts +1 -0
- package/dist/components/data_table/histogram_label.js +7 -0
- package/dist/components/data_table/memo_props.d.ts +1 -0
- package/dist/components/data_table/memo_props.js +17 -0
- package/dist/components/data_table/mostfrequent_cell.d.ts +17 -0
- package/dist/components/data_table/mostfrequent_cell.js +316 -0
- package/dist/components/data_table/mostfrequent_cell.module.js +10 -0
- package/dist/components/data_table/use_cross_filters.d.ts +14 -0
- package/dist/components/data_table/use_cross_filters.js +47 -0
- package/dist/components/deferred.d.ts +11 -0
- package/dist/components/deferred.js +41 -0
- package/dist/components/deferred.module.js +5 -0
- package/dist/components/error_boundary.d.ts +18 -0
- package/dist/components/error_boundary.js +15 -0
- package/dist/components/graph.module.js +15 -0
- package/dist/components/graph_port.d.ts +10 -0
- package/dist/components/graph_port.js +34 -0
- package/dist/components/inspector_overlay.d.ts +32 -0
- package/dist/components/inspector_overlay.js +72 -0
- package/dist/components/inspector_overlay.module.js +18 -0
- package/dist/components/json/json_arrow_symbol.d.ts +4 -0
- package/dist/components/json/json_arrow_symbol.js +25 -0
- package/dist/components/json/json_copy_button.d.ts +11 -0
- package/dist/components/json/json_copy_button.js +61 -0
- package/dist/components/json/json_ellipsis_symbol.d.ts +7 -0
- package/dist/components/json/json_ellipsis_symbol.js +11 -0
- package/dist/components/json/json_item_count.d.ts +5 -0
- package/dist/components/json/json_item_count.js +12 -0
- package/dist/components/json/json_key_name.d.ts +6 -0
- package/dist/components/json/json_key_name.js +40 -0
- package/dist/components/json/json_key_values.d.ts +12 -0
- package/dist/components/json/json_key_values.js +99 -0
- package/dist/components/json/json_literal.d.ts +8 -0
- package/dist/components/json/json_literal.js +140 -0
- package/dist/components/json/json_nested_close.d.ts +11 -0
- package/dist/components/json/json_nested_close.js +31 -0
- package/dist/components/json/json_nested_open.d.ts +18 -0
- package/dist/components/json/json_nested_open.js +150 -0
- package/dist/components/json/json_nested_state.d.ts +14 -0
- package/dist/components/json/json_nested_state.js +28 -0
- package/dist/components/json/json_tool_state.d.ts +18 -0
- package/dist/components/json/json_tool_state.js +46 -0
- package/dist/components/json/json_value.d.ts +10 -0
- package/dist/components/json/json_value.js +46 -0
- package/dist/components/json/json_view.d.ts +14 -0
- package/dist/components/json/json_view.js +37 -0
- package/dist/components/json/json_view.module.js +41 -0
- package/dist/components/json/json_view_state.d.ts +14 -0
- package/dist/components/json/json_view_state.js +32 -0
- package/dist/components/json/unique_key.d.ts +1 -0
- package/dist/components/json/unique_key.js +8 -0
- package/dist/components/keyvalue_list.d.ts +25 -0
- package/dist/components/keyvalue_list.js +106 -0
- package/dist/components/keyvalue_list.module.js +15 -0
- package/dist/components/name_input.d.ts +11 -0
- package/dist/components/name_input.js +51 -0
- package/dist/components/overlay.d.ts +53 -0
- package/dist/components/overlay.js +183 -0
- package/dist/components/overlay.module.js +32 -0
- package/dist/components/panel_resize_handle.d.ts +12 -0
- package/dist/components/panel_resize_handle.js +39 -0
- package/dist/components/portal.d.ts +8 -0
- package/dist/components/portal.js +53 -0
- package/dist/components/progress_bar.d.ts +7 -0
- package/dist/components/progress_bar.js +21 -0
- package/dist/components/progress_bar.module.js +3 -0
- package/dist/components/query_history_viewer.d.ts +33 -0
- package/dist/components/query_history_viewer.js +268 -0
- package/dist/components/query_history_viewer.module.js +7 -0
- package/dist/components/query_profile/engine_profile_view.d.ts +19 -0
- package/dist/components/query_profile/engine_profile_view.js +94 -0
- package/dist/components/query_profile/numeric_limits.d.ts +1 -0
- package/dist/components/query_profile/numeric_limits.js +2 -0
- package/dist/components/query_profile/profile_execution_controller.d.ts +14 -0
- package/dist/components/query_profile/profile_execution_controller.js +56 -0
- package/dist/components/query_profile/profile_fit.d.ts +24 -0
- package/dist/components/query_profile/profile_fit.js +22 -0
- package/dist/components/query_profile/profile_navigation.d.ts +3 -0
- package/dist/components/query_profile/profile_navigation.js +34 -0
- package/dist/components/query_profile/profile_scene.d.ts +64 -0
- package/dist/components/query_profile/profile_scene.js +422 -0
- package/dist/components/query_profile/query_profile_view.d.ts +44 -0
- package/dist/components/query_profile/query_profile_view.js +961 -0
- package/dist/components/query_profile/query_profile_view.module.js +23 -0
- package/dist/components/query_progress/query_profile_overlay.d.ts +7 -0
- package/dist/components/query_progress/query_profile_overlay.js +67 -0
- package/dist/components/query_progress/query_profile_overlay.module.js +6 -0
- package/dist/components/query_progress/query_progress_panel.d.ts +14 -0
- package/dist/components/query_progress/query_progress_panel.js +255 -0
- package/dist/components/query_progress/query_progress_panel.module.js +10 -0
- package/dist/components/query_result/cell_detail_overlay.d.ts +34 -0
- package/dist/components/query_result/cell_detail_overlay.js +277 -0
- package/dist/components/query_result/cell_detail_overlay.module.js +21 -0
- package/dist/components/query_result/query_result_action_menu.d.ts +12 -0
- package/dist/components/query_result/query_result_action_menu.js +62 -0
- package/dist/components/query_result/query_result_action_menu.module.js +2 -0
- package/dist/components/query_result/query_result_details.d.ts +17 -0
- package/dist/components/query_result/query_result_details.js +46 -0
- package/dist/components/query_result/query_result_details.module.js +5 -0
- package/dist/components/query_result/query_result_download_button.d.ts +8 -0
- package/dist/components/query_result/query_result_download_button.js +38 -0
- package/dist/components/query_result/query_result_header.d.ts +21 -0
- package/dist/components/query_result/query_result_header.js +71 -0
- package/dist/components/query_result/query_result_header.module.js +3 -0
- package/dist/components/query_result/query_result_search_controls.d.ts +12 -0
- package/dist/components/query_result/query_result_search_controls.js +141 -0
- package/dist/components/query_result/query_result_search_controls.module.js +7 -0
- package/dist/components/query_result/query_result_toolbar.d.ts +21 -0
- package/dist/components/query_result/query_result_toolbar.js +74 -0
- package/dist/components/query_result/result_table_overlay.d.ts +9 -0
- package/dist/components/query_result/result_table_overlay.js +73 -0
- package/dist/components/query_result/result_table_overlay.module.js +6 -0
- package/dist/components/query_result/use_query_result_search.d.ts +8 -0
- package/dist/components/query_result/use_query_result_search.js +28 -0
- package/dist/components/segmented_control.d.ts +58 -0
- package/dist/components/segmented_control.js +116 -0
- package/dist/components/segmented_control.module.js +17 -0
- package/dist/components/separator.d.ts +21 -0
- package/dist/components/separator.js +79 -0
- package/dist/components/separator.module.js +7 -0
- package/dist/components/size_observer.d.ts +7 -0
- package/dist/components/size_observer.js +57 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/skeleton.js +14 -0
- package/dist/components/skeleton.module.js +2 -0
- package/dist/components/spinners.d.ts +8 -0
- package/dist/components/spinners.js +33 -0
- package/dist/components/spinners.module.js +8 -0
- package/dist/components/status_indicator.d.ts +36 -0
- package/dist/components/status_indicator.js +182 -0
- package/dist/components/status_indicator.module.js +3 -0
- package/dist/components/symbol_icon.d.ts +65 -0
- package/dist/components/symbol_icon.js +213 -0
- package/dist/components/tab_header.d.ts +11 -0
- package/dist/components/tab_header.js +55 -0
- package/dist/components/tab_header.module.js +7 -0
- package/dist/components/tag.d.ts +10 -0
- package/dist/components/tag.js +17 -0
- package/dist/components/tag.module.js +4 -0
- package/dist/components/text_field.d.ts +44 -0
- package/dist/components/text_field.js +159 -0
- package/dist/components/text_field.module.js +15 -0
- package/dist/components/text_input.d.ts +25 -0
- package/dist/components/text_input.js +90 -0
- package/dist/components/text_input.module.js +13 -0
- package/dist/components/text_input_action.d.ts +19 -0
- package/dist/components/text_input_action.js +33 -0
- package/dist/components/text_input_action.module.js +2 -0
- package/dist/components/toggle_switch.d.ts +7 -0
- package/dist/components/toggle_switch.js +22 -0
- package/dist/components/toggle_switch.module.js +6 -0
- package/dist/components/tooltip.d.ts +22 -0
- package/dist/components/tooltip.js +139 -0
- package/dist/components/tooltip.module.js +2 -0
- package/dist/components/tree_entry.d.ts +17 -0
- package/dist/components/tree_entry.js +48 -0
- package/dist/components/tree_entry.module.js +9 -0
- package/dist/components/value_list.d.ts +17 -0
- package/dist/components/value_list.js +70 -0
- package/dist/components/value_list.module.js +8 -0
- package/dist/components/vegalite_chart.d.ts +18 -0
- package/dist/components/vegalite_chart.js +151 -0
- package/dist/components/vegalite_chart.module.js +3 -0
- package/dist/components/vegalite_view.d.ts +27 -0
- package/dist/components/vegalite_view.js +248 -0
- package/dist/components/vegalite_view.module.js +5 -0
- package/dist/components/vertical_scroll_shadows.d.ts +14 -0
- package/dist/components/vertical_scroll_shadows.js +55 -0
- package/dist/components/vertical_scroll_shadows.module.js +5 -0
- package/dist/components/vertical_split.d.ts +15 -0
- package/dist/components/vertical_split.js +112 -0
- package/dist/components/vertical_split.module.js +5 -0
- package/dist/components/vertical_tabs.d.ts +36 -0
- package/dist/components/vertical_tabs.js +169 -0
- package/dist/components/vertical_tabs.module.js +23 -0
- package/dist/components/visualization/capped_rows.d.ts +9 -0
- package/dist/components/visualization/capped_rows.js +23 -0
- package/dist/components/visualization/capped_rows.module.js +3 -0
- package/dist/components/visualization/chart_download_button.d.ts +12 -0
- package/dist/components/visualization/chart_download_button.js +41 -0
- package/dist/components/visualization/kpi_view.d.ts +10 -0
- package/dist/components/visualization/kpi_view.js +215 -0
- package/dist/components/visualization/kpi_view.module.js +17 -0
- package/dist/components/visualization/markdown_view.d.ts +17 -0
- package/dist/components/visualization/markdown_view.js +154 -0
- package/dist/components/visualization/markdown_view.module.js +4 -0
- package/dist/components/visualization/result_rows.d.ts +17 -0
- package/dist/components/visualization/result_rows.js +82 -0
- package/dist/components/visualization/vegalite_preview.d.ts +8 -0
- package/dist/components/visualization/vegalite_preview.js +17 -0
- package/dist/components/visualization/vegalite_preview.module.js +2 -0
- package/dist/components/visualization/visualization_dispatch.d.ts +14 -0
- package/dist/components/visualization/visualization_dispatch.js +41 -0
- package/dist/components/visualization/visualization_panel.d.ts +10 -0
- package/dist/components/visualization/visualization_panel.js +37 -0
- package/dist/components/visualization/visualization_panel.module.js +3 -0
- package/dist/dom/anchored_position.d.ts +42 -0
- package/dist/dom/anchored_position.js +255 -0
- package/dist/dom/app_host.d.ts +6 -0
- package/dist/dom/app_host.js +13 -0
- package/dist/dom/calm_frames.d.ts +24 -0
- package/dist/dom/calm_frames.js +96 -0
- package/dist/dom/classnames.d.ts +8 -0
- package/dist/dom/classnames.js +20 -0
- package/dist/dom/download_file.d.ts +1 -0
- package/dist/dom/download_file.js +12 -0
- package/dist/dom/focus.d.ts +29 -0
- package/dist/dom/focus.js +84 -0
- package/dist/dom/graph_edges.d.ts +53 -0
- package/dist/dom/graph_edges.js +450 -0
- package/dist/dom/key_events.d.ts +9 -0
- package/dist/dom/key_events.js +33 -0
- package/dist/dom/media_query.d.ts +2 -0
- package/dist/dom/media_query.js +15 -0
- package/dist/dom/outside_click.d.ts +8 -0
- package/dist/dom/outside_click.js +32 -0
- package/dist/dom/rerender_ref.d.ts +2 -0
- package/dist/dom/rerender_ref.js +11 -0
- package/dist/dom/row_context_menu.d.ts +7 -0
- package/dist/dom/row_context_menu.js +32 -0
- package/dist/dom/scrollbar.d.ts +3 -0
- package/dist/dom/scrollbar.js +23 -0
- package/dist/format/format.d.ts +11 -0
- package/dist/format/format.js +72 -0
- package/dist/format/query_progress_format.d.ts +17 -0
- package/dist/format/query_progress_format.js +69 -0
- package/dist/format/time_format.d.ts +5 -0
- package/dist/format/time_format.js +45 -0
- package/dist/hooks.d.ts +71 -0
- package/dist/hooks.js +302 -0
- package/dist/host.d.ts +10 -0
- package/dist/host.js +12 -0
- package/dist/logger.d.ts +4 -0
- package/dist/logger.js +6 -0
- package/dist/models/computation_model.d.ts +14 -0
- package/dist/models/computation_model.js +27 -0
- package/dist/models/query_model.d.ts +12 -0
- package/dist/models/query_model.js +27 -0
- package/dist/models/script_model.d.ts +17 -0
- package/dist/models/script_model.js +69 -0
- package/dist/style.css +4226 -0
- package/dist/svg_symbols.d.ts +2 -0
- package/dist/svg_symbols.js +2 -0
- package/dist/symbols.svg +1197 -0
- package/dist/theme/color_scheme.d.ts +4 -0
- package/dist/theme/color_scheme.js +28 -0
- package/dist/theme/xcode_palette.d.ts +22 -0
- package/dist/theme/xcode_palette.js +4 -0
- package/dist/theme/xcode_palettes.js +41 -0
- package/dist/utils/plan_engine.d.ts +2 -0
- package/dist/utils/plan_engine.js +13 -0
- package/dist/vegalite/vegalite_check.d.ts +1 -0
- package/dist/vegalite/vegalite_check.js +7 -0
- package/dist/vegalite/vegalite_crossfilter.d.ts +54 -0
- package/dist/vegalite/vegalite_crossfilter.js +187 -0
- package/dist/vegalite/vegalite_image.d.ts +16 -0
- package/dist/vegalite/vegalite_image.js +28 -0
- package/dist/vegalite/vegalite_loader.d.ts +7 -0
- package/dist/vegalite/vegalite_loader.js +15 -0
- package/dist/vegalite/vegalite_rows.d.ts +3 -0
- package/dist/vegalite/vegalite_rows.js +17 -0
- package/dist/vegalite/vegalite_theme.d.ts +11 -0
- package/dist/vegalite/vegalite_theme.js +125 -0
- package/fonts/InstrumentSans-Bold.ttf +0 -0
- package/fonts/InstrumentSans-Medium.ttf +0 -0
- package/fonts/InstrumentSans-OFL.txt +93 -0
- package/fonts/InstrumentSans-Regular.ttf +0 -0
- package/fonts/InstrumentSans-SemiBold.ttf +0 -0
- package/fonts/JetBrainsMono-Bold.ttf +0 -0
- package/fonts/JetBrainsMono-Medium.ttf +0 -0
- package/fonts/JetBrainsMono-OFL.txt +93 -0
- package/fonts/JetBrainsMono-Regular.ttf +0 -0
- package/fonts/JetBrainsMono-SemiBold.ttf +0 -0
- package/fonts/fonts.css +61 -0
- package/package.json +43 -4
- package/styles/colors.css +110 -0
- package/styles/flavors/dbcom.css +48 -0
- package/styles/tokens.css +192 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var separator_x = "dashql_separator_x_T3hKqX";
|
|
2
|
+
var separator_y = "dashql_separator_y_OIvW5q";
|
|
3
|
+
var handle = "dashql_handle_aHk__5";
|
|
4
|
+
var dragging = "dashql_dragging_6RztzK";
|
|
5
|
+
var resizing_x = "dashql_resizing_x_cGmaA3";
|
|
6
|
+
var resizing_y = "dashql_resizing_y_68NKDB";
|
|
7
|
+
export { dragging, handle, resizing_x, resizing_y, separator_x, separator_y };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ObservedSize {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const useObservedSize: (target: React.RefObject<HTMLElement | null>, enabled?: boolean) => ObservedSize | null;
|
|
7
|
+
export declare function useSettledHeight(element: HTMLElement | null, onHeight: ((height: number) => void) | undefined): void;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { transitionsEnd } from "../dom/calm_frames.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
function keepSameSize(prev, next) {
|
|
4
|
+
if (prev !== null && next !== null && prev.width === next.width && prev.height === next.height) return prev;
|
|
5
|
+
return next;
|
|
6
|
+
}
|
|
7
|
+
var useObservedSize = (target, enabled = true) => {
|
|
8
|
+
const [size, setSize] = React.useState(null);
|
|
9
|
+
const [element, setElement] = React.useState(null);
|
|
10
|
+
React.useLayoutEffect(() => {
|
|
11
|
+
const current = target.current;
|
|
12
|
+
if (current === element) return;
|
|
13
|
+
setElement(current);
|
|
14
|
+
const next = current?.getBoundingClientRect() ?? null;
|
|
15
|
+
setSize((prev) => keepSameSize(prev, next));
|
|
16
|
+
});
|
|
17
|
+
React.useLayoutEffect(() => {
|
|
18
|
+
if (!enabled || element === null || typeof ResizeObserver === "undefined") return;
|
|
19
|
+
const observer = new ResizeObserver((entries) => {
|
|
20
|
+
const entry = entries[entries.length - 1];
|
|
21
|
+
if (entry !== void 0) setSize((prev) => keepSameSize(prev, entry.contentRect));
|
|
22
|
+
});
|
|
23
|
+
observer.observe(element);
|
|
24
|
+
return () => observer.disconnect();
|
|
25
|
+
}, [element, enabled]);
|
|
26
|
+
return size;
|
|
27
|
+
};
|
|
28
|
+
function useSettledHeight(element, onHeight) {
|
|
29
|
+
React.useEffect(() => {
|
|
30
|
+
if (element == null || onHeight == null) return;
|
|
31
|
+
let reported = null;
|
|
32
|
+
let waiting = false;
|
|
33
|
+
let stopped = false;
|
|
34
|
+
const report = () => {
|
|
35
|
+
const height = Math.ceil(element.getBoundingClientRect().height);
|
|
36
|
+
if (height === reported) return;
|
|
37
|
+
reported = height;
|
|
38
|
+
onHeight(height);
|
|
39
|
+
};
|
|
40
|
+
report();
|
|
41
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
42
|
+
const observer = new ResizeObserver(() => {
|
|
43
|
+
if (waiting) return;
|
|
44
|
+
waiting = true;
|
|
45
|
+
transitionsEnd(element).then(() => {
|
|
46
|
+
waiting = false;
|
|
47
|
+
if (!stopped) report();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
observer.observe(element);
|
|
51
|
+
return () => {
|
|
52
|
+
stopped = true;
|
|
53
|
+
observer.disconnect();
|
|
54
|
+
};
|
|
55
|
+
}, [element, onHeight]);
|
|
56
|
+
}
|
|
57
|
+
export { useObservedSize, useSettledHeight };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { root } from "./skeleton.module.js";
|
|
2
|
+
import { CardPlaceholder } from "./card_placeholder.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
function Skeleton() {
|
|
6
|
+
return /* @__PURE__ */ jsx("div", {
|
|
7
|
+
className: root,
|
|
8
|
+
"data-testid": "skeleton",
|
|
9
|
+
"aria-busy": "true",
|
|
10
|
+
"aria-label": "Loading",
|
|
11
|
+
children: /* @__PURE__ */ jsx(CardPlaceholder, {})
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export { Skeleton };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { rw, rw_rect_1, rw_rect_2, rw_rect_3, rw_rect_4, rw_rect_5, rw_rect_active } from "./spinners.module.js";
|
|
2
|
+
import { classNames } from "../dom/classnames.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
var RectangleWaveSpinner = (props) => {
|
|
6
|
+
const s = { backgroundColor: props.color || "var(--color_fg)" };
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8
|
+
className: classNames(props.className, rw),
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ jsx("div", {
|
|
11
|
+
className: classNames(rw_rect_1, { [rw_rect_active]: props.active }),
|
|
12
|
+
style: s
|
|
13
|
+
}),
|
|
14
|
+
/* @__PURE__ */ jsx("div", {
|
|
15
|
+
className: classNames(rw_rect_2, { [rw_rect_active]: props.active }),
|
|
16
|
+
style: s
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ jsx("div", {
|
|
19
|
+
className: classNames(rw_rect_3, { [rw_rect_active]: props.active }),
|
|
20
|
+
style: s
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ jsx("div", {
|
|
23
|
+
className: classNames(rw_rect_4, { [rw_rect_active]: props.active }),
|
|
24
|
+
style: s
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ jsx("div", {
|
|
27
|
+
className: classNames(rw_rect_5, { [rw_rect_active]: props.active }),
|
|
28
|
+
style: s
|
|
29
|
+
})
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export { RectangleWaveSpinner };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var rw = "dashql_rw_bfXVvW";
|
|
2
|
+
var rw_rect_active = "dashql_rw_rect_active_WZbDxc";
|
|
3
|
+
var rw_rect_1 = "dashql_rw_rect_1_PUOars";
|
|
4
|
+
var rw_rect_2 = "dashql_rw_rect_2_rknw22";
|
|
5
|
+
var rw_rect_3 = "dashql_rw_rect_3_R9xLXm";
|
|
6
|
+
var rw_rect_4 = "dashql_rw_rect_4_2Bhbyo";
|
|
7
|
+
var rw_rect_5 = "dashql_rw_rect_5_fH8DEa";
|
|
8
|
+
export { rw, rw_rect_1, rw_rect_2, rw_rect_3, rw_rect_4, rw_rect_5, rw_rect_active };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare enum IndicatorStatus {
|
|
3
|
+
None = 0,
|
|
4
|
+
Running = 1,
|
|
5
|
+
Failed = 2,
|
|
6
|
+
Succeeded = 3,
|
|
7
|
+
Blocked = 4,
|
|
8
|
+
Skip = 5
|
|
9
|
+
}
|
|
10
|
+
export declare const STATUS_COLOR_IN_PROGRESS = "var(--color_attention_fg)";
|
|
11
|
+
export declare const STATUS_COLOR_SUCCESS = "var(--color_success_fg)";
|
|
12
|
+
export declare const STATUS_COLOR_FAILED = "var(--color_danger_fg)";
|
|
13
|
+
export declare const STATUS_COLOR_OTHER = "var(--color_neutral_fg)";
|
|
14
|
+
interface ProgressCounts {
|
|
15
|
+
readonly started: number;
|
|
16
|
+
readonly succeeded: number;
|
|
17
|
+
readonly skipped: number;
|
|
18
|
+
readonly failed: number;
|
|
19
|
+
readonly total: number | null;
|
|
20
|
+
}
|
|
21
|
+
export declare function getStatusFromProgressCounter(counter: ProgressCounts | undefined): IndicatorStatus;
|
|
22
|
+
export interface StatusIndicatorProps {
|
|
23
|
+
className?: string;
|
|
24
|
+
status: IndicatorStatus;
|
|
25
|
+
width?: string;
|
|
26
|
+
height?: string;
|
|
27
|
+
fill?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const StatusIndicator: React.FC<StatusIndicatorProps>;
|
|
30
|
+
export interface StatusDotProps {
|
|
31
|
+
className?: string;
|
|
32
|
+
status: IndicatorStatus;
|
|
33
|
+
size?: number;
|
|
34
|
+
}
|
|
35
|
+
export declare const StatusDot: React.FC<StatusDotProps>;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { classNames } from "../dom/classnames.js";
|
|
2
|
+
import { status_dot, status_running_spinner } from "./status_indicator.module.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
var IndicatorStatus = /* @__PURE__ */ function(IndicatorStatus) {
|
|
6
|
+
IndicatorStatus[IndicatorStatus["None"] = 0] = "None";
|
|
7
|
+
IndicatorStatus[IndicatorStatus["Running"] = 1] = "Running";
|
|
8
|
+
IndicatorStatus[IndicatorStatus["Failed"] = 2] = "Failed";
|
|
9
|
+
IndicatorStatus[IndicatorStatus["Succeeded"] = 3] = "Succeeded";
|
|
10
|
+
IndicatorStatus[IndicatorStatus["Blocked"] = 4] = "Blocked";
|
|
11
|
+
IndicatorStatus[IndicatorStatus["Skip"] = 5] = "Skip";
|
|
12
|
+
return IndicatorStatus;
|
|
13
|
+
}({});
|
|
14
|
+
var STATUS_COLOR_IN_PROGRESS = "var(--color_attention_fg)";
|
|
15
|
+
var STATUS_COLOR_SUCCESS = "var(--color_success_fg)";
|
|
16
|
+
var STATUS_COLOR_FAILED = "var(--color_danger_fg)";
|
|
17
|
+
var STATUS_COLOR_OTHER = "var(--color_neutral_fg)";
|
|
18
|
+
function getIndicatorColor(status) {
|
|
19
|
+
switch (status) {
|
|
20
|
+
case IndicatorStatus.Running: return STATUS_COLOR_IN_PROGRESS;
|
|
21
|
+
case IndicatorStatus.Succeeded: return STATUS_COLOR_SUCCESS;
|
|
22
|
+
case IndicatorStatus.Failed: return STATUS_COLOR_FAILED;
|
|
23
|
+
default: return STATUS_COLOR_OTHER;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function getStatusFromProgressCounter(counter) {
|
|
27
|
+
if (counter?.total == null) return IndicatorStatus.None;
|
|
28
|
+
if (counter.total == 0) return IndicatorStatus.Skip;
|
|
29
|
+
if (counter.started == 0) return IndicatorStatus.None;
|
|
30
|
+
if (counter.failed + counter.skipped + counter.succeeded >= counter.total) {
|
|
31
|
+
const status = [
|
|
32
|
+
[IndicatorStatus.Failed, counter.failed],
|
|
33
|
+
[IndicatorStatus.Succeeded, counter.succeeded],
|
|
34
|
+
[IndicatorStatus.Skip, counter.skipped]
|
|
35
|
+
];
|
|
36
|
+
status.sort((l, r) => l[1] - r[1]);
|
|
37
|
+
return status[2][0];
|
|
38
|
+
}
|
|
39
|
+
return IndicatorStatus.Running;
|
|
40
|
+
}
|
|
41
|
+
var StatusIndicator = (props) => {
|
|
42
|
+
const fill = props.fill || getIndicatorColor(props.status);
|
|
43
|
+
let element = /* @__PURE__ */ jsx("div", {});
|
|
44
|
+
switch (props.status) {
|
|
45
|
+
case IndicatorStatus.Running:
|
|
46
|
+
element = /* @__PURE__ */ jsx("svg", {
|
|
47
|
+
className: classNames(props.className),
|
|
48
|
+
style: { color: fill },
|
|
49
|
+
width: props.width || "24px",
|
|
50
|
+
height: props.height || "24px",
|
|
51
|
+
viewBox: "-8 -8 16 16",
|
|
52
|
+
fill: "none",
|
|
53
|
+
stroke: "currentColor",
|
|
54
|
+
strokeWidth: "2",
|
|
55
|
+
children: /* @__PURE__ */ jsxs("g", {
|
|
56
|
+
fill: "none",
|
|
57
|
+
fillRule: "evenodd",
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ jsx("circle", {
|
|
60
|
+
cx: "0",
|
|
61
|
+
cy: "0",
|
|
62
|
+
r: "7",
|
|
63
|
+
opacity: ".5"
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ jsx("circle", {
|
|
66
|
+
cx: "0",
|
|
67
|
+
cy: "0",
|
|
68
|
+
r: "4",
|
|
69
|
+
strokeWidth: "0",
|
|
70
|
+
fill: "currentColor"
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ jsx("circle", {
|
|
73
|
+
cx: "0",
|
|
74
|
+
cy: "0",
|
|
75
|
+
r: "7",
|
|
76
|
+
strokeDasharray: "12, 88",
|
|
77
|
+
className: status_running_spinner
|
|
78
|
+
})
|
|
79
|
+
]
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
break;
|
|
83
|
+
case IndicatorStatus.Blocked:
|
|
84
|
+
case IndicatorStatus.None:
|
|
85
|
+
element = /* @__PURE__ */ jsx("svg", {
|
|
86
|
+
className: classNames(props.className),
|
|
87
|
+
style: { color: fill },
|
|
88
|
+
width: props.width || "24px",
|
|
89
|
+
height: props.height || "24px",
|
|
90
|
+
viewBox: "-8 -8 16 16",
|
|
91
|
+
fill: "none",
|
|
92
|
+
stroke: "currentColor",
|
|
93
|
+
strokeWidth: "2",
|
|
94
|
+
children: /* @__PURE__ */ jsx("g", {
|
|
95
|
+
fill: "none",
|
|
96
|
+
fillRule: "evenodd",
|
|
97
|
+
children: /* @__PURE__ */ jsx("circle", {
|
|
98
|
+
cx: "0",
|
|
99
|
+
cy: "0",
|
|
100
|
+
r: "4",
|
|
101
|
+
opacity: ".5",
|
|
102
|
+
strokeWidth: "0",
|
|
103
|
+
fill: "currentColor"
|
|
104
|
+
})
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
break;
|
|
108
|
+
case IndicatorStatus.Failed:
|
|
109
|
+
element = /* @__PURE__ */ jsx("svg", {
|
|
110
|
+
className: classNames(props.className),
|
|
111
|
+
style: { color: fill },
|
|
112
|
+
width: props.width || "24px",
|
|
113
|
+
height: props.height || "24px",
|
|
114
|
+
viewBox: "-0.5 -0.5 17 17",
|
|
115
|
+
fill: "none",
|
|
116
|
+
strokeWidth: "2",
|
|
117
|
+
children: /* @__PURE__ */ jsx("g", {
|
|
118
|
+
fill: "none",
|
|
119
|
+
fillRule: "evenodd",
|
|
120
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
121
|
+
fill: "currentColor",
|
|
122
|
+
fillRule: "evenodd",
|
|
123
|
+
d: "M2.343 13.657A8 8 0 1113.657 2.343 8 8 0 012.343 13.657zM6.03 4.97a.75.75 0 00-1.06 1.06L6.94 8 4.97 9.97a.75.75 0 101.06 1.06L8 9.06l1.97 1.97a.75.75 0 101.06-1.06L9.06 8l1.97-1.97a.75.75 0 10-1.06-1.06L8 6.94 6.03 4.97z"
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
break;
|
|
128
|
+
case IndicatorStatus.Succeeded:
|
|
129
|
+
element = /* @__PURE__ */ jsx("svg", {
|
|
130
|
+
className: classNames(props.className),
|
|
131
|
+
style: { color: fill },
|
|
132
|
+
width: props.width || "24px",
|
|
133
|
+
height: props.height || "24px",
|
|
134
|
+
viewBox: "-0.5 -0.5 17 17",
|
|
135
|
+
fill: "none",
|
|
136
|
+
strokeWidth: "2",
|
|
137
|
+
children: /* @__PURE__ */ jsx("g", {
|
|
138
|
+
fill: "none",
|
|
139
|
+
fillRule: "evenodd",
|
|
140
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
141
|
+
fill: "currentColor",
|
|
142
|
+
fillRule: "evenodd",
|
|
143
|
+
d: "M8 16A8 8 0 108 0a8 8 0 000 16zm3.78-9.72a.75.75 0 00-1.06-1.06L6.75 9.19 5.28 7.72a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l4.5-4.5z"
|
|
144
|
+
})
|
|
145
|
+
})
|
|
146
|
+
});
|
|
147
|
+
break;
|
|
148
|
+
case IndicatorStatus.Skip: element = /* @__PURE__ */ jsx("svg", {
|
|
149
|
+
className: classNames(props.className),
|
|
150
|
+
style: { color: fill },
|
|
151
|
+
width: props.width || "24px",
|
|
152
|
+
height: props.height || "24px",
|
|
153
|
+
viewBox: "-0.5 -0.5 17 17",
|
|
154
|
+
fill: "none",
|
|
155
|
+
strokeWidth: "2",
|
|
156
|
+
children: /* @__PURE__ */ jsx("g", {
|
|
157
|
+
fill: "none",
|
|
158
|
+
fillRule: "evenodd",
|
|
159
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
160
|
+
fill: "currentColor",
|
|
161
|
+
fillRule: "evenodd",
|
|
162
|
+
d: "M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm11.333-2.167a.825.825 0 0 0-1.166-1.166l-5.5 5.5a.825.825 0 0 0 1.166 1.166Z"
|
|
163
|
+
})
|
|
164
|
+
})
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
return element;
|
|
168
|
+
};
|
|
169
|
+
var StatusDot = (props) => {
|
|
170
|
+
const size = props.size ?? 7;
|
|
171
|
+
return /* @__PURE__ */ jsx("span", {
|
|
172
|
+
className: classNames(status_dot, props.className),
|
|
173
|
+
style: {
|
|
174
|
+
width: size,
|
|
175
|
+
height: size,
|
|
176
|
+
backgroundColor: getIndicatorColor(props.status)
|
|
177
|
+
},
|
|
178
|
+
"data-status": IndicatorStatus[props.status].toLowerCase(),
|
|
179
|
+
"aria-hidden": "true"
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
export { IndicatorStatus, STATUS_COLOR_FAILED, STATUS_COLOR_IN_PROGRESS, STATUS_COLOR_OTHER, STATUS_COLOR_SUCCESS, StatusDot, StatusIndicator, getStatusFromProgressCounter };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type IconSize = number | 'small' | 'medium' | 'large';
|
|
3
|
+
export interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'size' | 'title'> {
|
|
4
|
+
size?: IconSize;
|
|
5
|
+
title?: string;
|
|
6
|
+
verticalAlign?: React.CSSProperties['verticalAlign'];
|
|
7
|
+
}
|
|
8
|
+
export type Icon = React.FC<IconProps>;
|
|
9
|
+
export declare function SymbolIcon(symbol: string): Icon;
|
|
10
|
+
export declare const AlertIcon: Icon;
|
|
11
|
+
export declare const BracesIcon: Icon;
|
|
12
|
+
export declare const BookIcon: Icon;
|
|
13
|
+
export declare const BroomIcon: Icon;
|
|
14
|
+
export declare const CheckIcon: Icon;
|
|
15
|
+
export declare const ChecklistIcon: Icon;
|
|
16
|
+
export declare const ChevronDownIcon: Icon;
|
|
17
|
+
export declare const ChevronRightIcon: Icon;
|
|
18
|
+
export declare const ChevronUpIcon: Icon;
|
|
19
|
+
export declare const CodeIcon: Icon;
|
|
20
|
+
export declare const CopyIcon: Icon;
|
|
21
|
+
export declare const CpuIcon: Icon;
|
|
22
|
+
export declare const DatabaseIcon: Icon;
|
|
23
|
+
export declare const DownloadIcon: Icon;
|
|
24
|
+
export declare const EyeIcon: Icon;
|
|
25
|
+
export declare const EyeClosedIcon: Icon;
|
|
26
|
+
export declare const FileBadgeIcon: Icon;
|
|
27
|
+
export declare const FileDirectoryFillIcon: Icon;
|
|
28
|
+
export declare const FileDirectoryIcon: Icon;
|
|
29
|
+
export declare const FileDirectoryOpenFillIcon: Icon;
|
|
30
|
+
export declare const FileDirectoryPlusIcon: Icon;
|
|
31
|
+
export declare const FileIcon: Icon;
|
|
32
|
+
export declare const GraphIcon: Icon;
|
|
33
|
+
export declare const HeartIcon: Icon;
|
|
34
|
+
export declare const HistoryIcon: Icon;
|
|
35
|
+
export declare const KeyIcon: Icon;
|
|
36
|
+
export declare const LibraryIcon: Icon;
|
|
37
|
+
export declare const LinkIcon: Icon;
|
|
38
|
+
export declare const ListUnorderedIcon: Icon;
|
|
39
|
+
export declare const LockIcon: Icon;
|
|
40
|
+
export declare const PaperAirplaneIcon: Icon;
|
|
41
|
+
export declare const PaperclipIcon: Icon;
|
|
42
|
+
export declare const PencilIcon: Icon;
|
|
43
|
+
export declare const PersonIcon: Icon;
|
|
44
|
+
export declare const PlugIcon: Icon;
|
|
45
|
+
export declare const PlusIcon: Icon;
|
|
46
|
+
export declare const ProjectIcon: Icon;
|
|
47
|
+
export declare const RowsIcon: Icon;
|
|
48
|
+
export declare const SearchIcon: Icon;
|
|
49
|
+
export declare const ScreenFullIcon: Icon;
|
|
50
|
+
export declare const ScreenNormalIcon: Icon;
|
|
51
|
+
export declare const StackIcon: Icon;
|
|
52
|
+
export declare const StackPlusIcon: Icon;
|
|
53
|
+
export declare const SquareFillIcon: Icon;
|
|
54
|
+
export declare const SyncIcon: Icon;
|
|
55
|
+
export declare const TableIcon: Icon;
|
|
56
|
+
export declare const ThreeBarsIcon: Icon;
|
|
57
|
+
export declare const ToolsIcon: Icon;
|
|
58
|
+
export declare const TrashIcon: Icon;
|
|
59
|
+
export declare const TriangleDownIcon: Icon;
|
|
60
|
+
export declare const UnlinkIcon: Icon;
|
|
61
|
+
export declare const UploadIcon: Icon;
|
|
62
|
+
export declare const XCircleFillIcon: Icon;
|
|
63
|
+
export declare const XIcon: Icon;
|
|
64
|
+
export declare const ZoomInIcon: Icon;
|
|
65
|
+
export declare const ZoomOutIcon: Icon;
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import symbols from "../svg_symbols.js";
|
|
4
|
+
var ICON_SIZE = {
|
|
5
|
+
small: 16,
|
|
6
|
+
medium: 32,
|
|
7
|
+
large: 64
|
|
8
|
+
};
|
|
9
|
+
function resolveSize(size) {
|
|
10
|
+
if (typeof size === "number") return size;
|
|
11
|
+
return size == null ? 16 : ICON_SIZE[size];
|
|
12
|
+
}
|
|
13
|
+
function resolveSymbol(variants, size) {
|
|
14
|
+
const naturalSizes = Object.keys(variants).map(Number).sort((a, b) => a - b);
|
|
15
|
+
let naturalSize = naturalSizes[0];
|
|
16
|
+
for (const candidate of naturalSizes) {
|
|
17
|
+
if (candidate > size) break;
|
|
18
|
+
naturalSize = candidate;
|
|
19
|
+
}
|
|
20
|
+
return variants[naturalSize];
|
|
21
|
+
}
|
|
22
|
+
function createIcon(variants) {
|
|
23
|
+
return React.forwardRef((props, ref) => {
|
|
24
|
+
const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className, fill = "currentColor", size, style, tabIndex, title, verticalAlign = "text-bottom", ...svgProps } = props;
|
|
25
|
+
const pixels = resolveSize(size);
|
|
26
|
+
const labelled = Boolean(ariaLabel || ariaLabelledBy);
|
|
27
|
+
const symbol = resolveSymbol(variants, pixels);
|
|
28
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
29
|
+
ref,
|
|
30
|
+
...svgProps,
|
|
31
|
+
"aria-hidden": labelled ? void 0 : "true",
|
|
32
|
+
"aria-label": ariaLabel,
|
|
33
|
+
"aria-labelledby": ariaLabelledBy,
|
|
34
|
+
className,
|
|
35
|
+
color: fill,
|
|
36
|
+
display: "inline-block",
|
|
37
|
+
fill: "currentColor",
|
|
38
|
+
focusable: tabIndex != null && tabIndex >= 0 ? "true" : "false",
|
|
39
|
+
height: pixels,
|
|
40
|
+
overflow: "visible",
|
|
41
|
+
role: labelled ? "img" : void 0,
|
|
42
|
+
style: {
|
|
43
|
+
verticalAlign,
|
|
44
|
+
...style
|
|
45
|
+
},
|
|
46
|
+
tabIndex,
|
|
47
|
+
width: pixels,
|
|
48
|
+
children: [title != null && /* @__PURE__ */ jsx("title", { children: title }), /* @__PURE__ */ jsx("use", { xlinkHref: `${symbols}#${symbol}` })]
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
var SYMBOL_ICONS = /* @__PURE__ */ new Map();
|
|
53
|
+
function SymbolIcon(symbol) {
|
|
54
|
+
const cached = SYMBOL_ICONS.get(symbol);
|
|
55
|
+
if (cached != null) return cached;
|
|
56
|
+
const icon = createIcon({ 16: symbol });
|
|
57
|
+
SYMBOL_ICONS.set(symbol, icon);
|
|
58
|
+
return icon;
|
|
59
|
+
}
|
|
60
|
+
var AlertIcon = createIcon({ 16: "alert_16" });
|
|
61
|
+
var BracesIcon = createIcon({ 16: "braces_16" });
|
|
62
|
+
var BookIcon = createIcon({
|
|
63
|
+
16: "book_16",
|
|
64
|
+
24: "book_24"
|
|
65
|
+
});
|
|
66
|
+
var BroomIcon = createIcon({
|
|
67
|
+
16: "broom_16",
|
|
68
|
+
24: "broom_24"
|
|
69
|
+
});
|
|
70
|
+
var CheckIcon = createIcon({
|
|
71
|
+
16: "check_16",
|
|
72
|
+
24: "check_24"
|
|
73
|
+
});
|
|
74
|
+
var ChecklistIcon = createIcon({ 16: "checklist_16" });
|
|
75
|
+
var ChevronDownIcon = createIcon({
|
|
76
|
+
12: "chevron_down_12",
|
|
77
|
+
16: "chevron_down_16",
|
|
78
|
+
24: "chevron_down_24"
|
|
79
|
+
});
|
|
80
|
+
var ChevronRightIcon = createIcon({
|
|
81
|
+
12: "chevron_right_12",
|
|
82
|
+
16: "chevron_right_16",
|
|
83
|
+
24: "chevron_right_24"
|
|
84
|
+
});
|
|
85
|
+
var ChevronUpIcon = createIcon({
|
|
86
|
+
12: "chevron_up_12",
|
|
87
|
+
16: "chevron_up_16",
|
|
88
|
+
24: "chevron_up_24"
|
|
89
|
+
});
|
|
90
|
+
var CodeIcon = createIcon({ 16: "code_16" });
|
|
91
|
+
var CopyIcon = createIcon({ 16: "copy_16" });
|
|
92
|
+
var CpuIcon = createIcon({
|
|
93
|
+
16: "cpu_16",
|
|
94
|
+
24: "cpu_24"
|
|
95
|
+
});
|
|
96
|
+
var DatabaseIcon = createIcon({
|
|
97
|
+
16: "database_16",
|
|
98
|
+
24: "database"
|
|
99
|
+
});
|
|
100
|
+
var DownloadIcon = createIcon({
|
|
101
|
+
16: "download_16",
|
|
102
|
+
24: "download"
|
|
103
|
+
});
|
|
104
|
+
var EyeIcon = createIcon({
|
|
105
|
+
16: "eye_16",
|
|
106
|
+
24: "eye_24"
|
|
107
|
+
});
|
|
108
|
+
var EyeClosedIcon = createIcon({
|
|
109
|
+
16: "eye_closed_16",
|
|
110
|
+
24: "eye_closed_24"
|
|
111
|
+
});
|
|
112
|
+
var FileBadgeIcon = createIcon({ 16: "file_badge_16" });
|
|
113
|
+
var FileDirectoryFillIcon = createIcon({
|
|
114
|
+
16: "file_directory_fill_16",
|
|
115
|
+
24: "folder_fill"
|
|
116
|
+
});
|
|
117
|
+
var FileDirectoryIcon = createIcon({
|
|
118
|
+
16: "file_directory_16",
|
|
119
|
+
24: "folder"
|
|
120
|
+
});
|
|
121
|
+
var FileDirectoryOpenFillIcon = createIcon({ 16: "file_directory_open_fill_16" });
|
|
122
|
+
var FileDirectoryPlusIcon = createIcon({
|
|
123
|
+
16: "file_directory_plus_16",
|
|
124
|
+
24: "file_directory_plus_24"
|
|
125
|
+
});
|
|
126
|
+
var FileIcon = createIcon({
|
|
127
|
+
16: "file_16",
|
|
128
|
+
24: "file"
|
|
129
|
+
});
|
|
130
|
+
var GraphIcon = createIcon({
|
|
131
|
+
16: "graph_16",
|
|
132
|
+
24: "graph_24"
|
|
133
|
+
});
|
|
134
|
+
var HeartIcon = createIcon({ 16: "heart_16" });
|
|
135
|
+
var HistoryIcon = createIcon({ 16: "history_16" });
|
|
136
|
+
var KeyIcon = createIcon({ 16: "key_16" });
|
|
137
|
+
var LibraryIcon = createIcon({
|
|
138
|
+
16: "library_16",
|
|
139
|
+
24: "library_24"
|
|
140
|
+
});
|
|
141
|
+
var LinkIcon = createIcon({ 16: "link_16" });
|
|
142
|
+
var ListUnorderedIcon = createIcon({ 16: "list_unordered_16" });
|
|
143
|
+
var LockIcon = createIcon({ 16: "lock_16" });
|
|
144
|
+
var PaperAirplaneIcon = createIcon({ 16: "paper_airplane_16" });
|
|
145
|
+
var PaperclipIcon = createIcon({ 16: "paperclip_16" });
|
|
146
|
+
var PencilIcon = createIcon({
|
|
147
|
+
16: "pencil_16",
|
|
148
|
+
24: "pencil_24"
|
|
149
|
+
});
|
|
150
|
+
var PersonIcon = createIcon({
|
|
151
|
+
16: "person_16",
|
|
152
|
+
24: "person_24"
|
|
153
|
+
});
|
|
154
|
+
var PlugIcon = createIcon({
|
|
155
|
+
16: "plug_16",
|
|
156
|
+
24: "plug_24"
|
|
157
|
+
});
|
|
158
|
+
var PlusIcon = createIcon({
|
|
159
|
+
16: "plus_16",
|
|
160
|
+
24: "plus_24"
|
|
161
|
+
});
|
|
162
|
+
var ProjectIcon = createIcon({ 16: "project_16" });
|
|
163
|
+
var RowsIcon = createIcon({
|
|
164
|
+
16: "rows_16",
|
|
165
|
+
24: "rows"
|
|
166
|
+
});
|
|
167
|
+
var SearchIcon = createIcon({ 16: "search_16" });
|
|
168
|
+
var ScreenFullIcon = createIcon({
|
|
169
|
+
16: "screen_full_16",
|
|
170
|
+
24: "screen_full_24"
|
|
171
|
+
});
|
|
172
|
+
var ScreenNormalIcon = createIcon({
|
|
173
|
+
16: "screen_normal_16",
|
|
174
|
+
24: "screen_normal_24"
|
|
175
|
+
});
|
|
176
|
+
var StackIcon = createIcon({
|
|
177
|
+
16: "stack_16",
|
|
178
|
+
24: "stack_24"
|
|
179
|
+
});
|
|
180
|
+
var StackPlusIcon = createIcon({
|
|
181
|
+
16: "stack_plus_16",
|
|
182
|
+
24: "stack_plus_24"
|
|
183
|
+
});
|
|
184
|
+
var SquareFillIcon = createIcon({ 16: "square_fill_16" });
|
|
185
|
+
var SyncIcon = createIcon({ 16: "sync_16" });
|
|
186
|
+
var TableIcon = createIcon({ 16: "table_16" });
|
|
187
|
+
var ThreeBarsIcon = createIcon({ 16: "three_bars_16" });
|
|
188
|
+
var ToolsIcon = createIcon({
|
|
189
|
+
16: "tools_16",
|
|
190
|
+
24: "tools_24"
|
|
191
|
+
});
|
|
192
|
+
var TrashIcon = createIcon({
|
|
193
|
+
16: "trash_16",
|
|
194
|
+
24: "trash_24"
|
|
195
|
+
});
|
|
196
|
+
var TriangleDownIcon = createIcon({
|
|
197
|
+
16: "triangle_down_16",
|
|
198
|
+
24: "triangle_down_24"
|
|
199
|
+
});
|
|
200
|
+
var UnlinkIcon = createIcon({ 16: "unlink_16" });
|
|
201
|
+
var UploadIcon = createIcon({
|
|
202
|
+
16: "upload_16",
|
|
203
|
+
24: "upload_24"
|
|
204
|
+
});
|
|
205
|
+
var XCircleFillIcon = createIcon({ 16: "x_circle_16" });
|
|
206
|
+
var XIcon = createIcon({
|
|
207
|
+
12: "x_12",
|
|
208
|
+
16: "x_16",
|
|
209
|
+
24: "x_24"
|
|
210
|
+
});
|
|
211
|
+
var ZoomInIcon = createIcon({ 16: "zoom_in_16" });
|
|
212
|
+
var ZoomOutIcon = createIcon({ 16: "zoom_out_16" });
|
|
213
|
+
export { AlertIcon, BookIcon, BracesIcon, BroomIcon, CheckIcon, ChecklistIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CodeIcon, CopyIcon, CpuIcon, DatabaseIcon, DownloadIcon, EyeClosedIcon, EyeIcon, FileBadgeIcon, FileDirectoryFillIcon, FileDirectoryIcon, FileDirectoryOpenFillIcon, FileDirectoryPlusIcon, FileIcon, GraphIcon, HeartIcon, HistoryIcon, KeyIcon, LibraryIcon, LinkIcon, ListUnorderedIcon, LockIcon, PaperAirplaneIcon, PaperclipIcon, PencilIcon, PersonIcon, PlugIcon, PlusIcon, ProjectIcon, RowsIcon, ScreenFullIcon, ScreenNormalIcon, SearchIcon, SquareFillIcon, StackIcon, StackPlusIcon, SymbolIcon, SyncIcon, TableIcon, ThreeBarsIcon, ToolsIcon, TrashIcon, TriangleDownIcon, UnlinkIcon, UploadIcon, XCircleFillIcon, XIcon, ZoomInIcon, ZoomOutIcon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface TabHeaderProps {
|
|
3
|
+
title: string;
|
|
4
|
+
detail?: string | null;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
detailIsLink?: boolean;
|
|
7
|
+
actions?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const TabHeader: React.FC<TabHeaderProps>;
|
|
10
|
+
export declare function formatRowCountDetail(totalRows: number | null): string | null;
|
|
11
|
+
export {};
|