@evergis/apps 0.1.1 → 0.1.3
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/README.md +118 -118
- package/dist/catalog/attributeFormat/Settings/styled.js +8 -8
- package/dist/catalog/attributeFormat/styled.js +171 -171
- package/dist/catalog/core/geometryTypes.d.ts +1 -1
- package/dist/catalog/dialogs/EditResource/styled.js +22 -22
- package/dist/catalog/dialogs/ResourcePreview/styled.js +52 -52
- package/dist/catalog/dialogs/styled.js +87 -87
- package/dist/catalog/fields/ResourceTypeTiles/styled.js +56 -56
- package/dist/catalog/fields/styled.js +81 -81
- package/dist/catalog/geometry/GeometrySelector/styled.js +48 -48
- package/dist/catalog/selectors/AttributeSelector/styled.js +2 -2
- package/dist/catalog/selectors/DataSourceItemsList/styled.js +95 -95
- package/dist/catalog/selectors/DataSourcePicker/styled.js +11 -11
- package/dist/catalog/selectors/ResourceSelector/styled.js +11 -11
- package/dist/devmode/components/JsonTree/styled.js +84 -84
- package/dist/devmode/components/LayerCardPane/styled.js +53 -53
- package/dist/devmode/components/Markdown/MarkdownEditor/styled.js +43 -43
- package/dist/devmode/components/Markdown/MarkdownOutput/styled.js +10 -10
- package/dist/devmode/components/OutlinePanel/styled.js +40 -40
- package/dist/devmode/components/ResourceIcon/styled.js +30 -30
- package/dist/devmode/components/ResultsTable/styled.js +48 -48
- package/dist/devmode/components/RunErrorMessage/styled.js +20 -20
- package/dist/devmode/components/TreeExpand/index.js +12 -12
- package/dist/devmode/layout/DevModePanel/styled.js +20 -20
- package/dist/devmode/layout/DevModeTools/styled.js +29 -29
- package/dist/devmode/layout/NavigationSections/Header/styled.js +87 -87
- package/dist/devmode/layout/NavigationSections/index.js +15 -4
- package/dist/devmode/layout/NavigationSections/index.js.map +1 -1
- package/dist/devmode/layout/NavigationToggle/styled.js +21 -21
- package/dist/devmode/layout/PanelSwitcher/styled.js +49 -49
- package/dist/devmode/layout/StatusBar/styled.js +39 -39
- package/dist/devmode/layout/WorkspaceHeader/styled.js +37 -37
- package/dist/devmode/modules/eql/components/EqlEditor/styled.js +4 -4
- package/dist/devmode/modules/eql/components/QueryTypeSelect/styled.js +53 -53
- package/dist/devmode/modules/eql/components/modes/EqlConfigurationMode/AddConfiguration/styled.js +24 -24
- package/dist/devmode/modules/eql/components/modes/EqlTableMode/index.js +7 -7
- package/dist/devmode/modules/eql/components/modes/EqlTextMode/index.js +7 -7
- package/dist/devmode/modules/eql/dialogs/AddParameterDialog/styled.js +3 -3
- package/dist/devmode/modules/eql/styled.js +127 -127
- package/dist/devmode/modules/files/styled.js +14 -14
- package/dist/devmode/modules/layer/styled.js +10 -10
- package/dist/devmode/modules/navigation-catalog/styled.js +147 -147
- package/dist/devmode/modules/python/components/Notebook/styled.js +203 -203
- package/dist/devmode/modules/python/components/PythonFileContent/styled.js +6 -6
- package/dist/devmode/modules/python/components/PythonRunBar/styled.js +5 -5
- package/dist/devmode/modules/python/components/PythonRunControl/styled.js +9 -9
- package/dist/devmode/modules/python/components/PythonRunLog/index.js +7 -7
- package/dist/devmode/modules/python/components/PythonRunLog/styled.js +11 -11
- package/dist/devmode/modules/python/components/PythonStatus/styled.js +11 -11
- package/dist/devmode/modules/python/components/SandboxesDialog/components/SandboxCard/styled.js +42 -42
- package/dist/devmode/modules/python/components/SandboxesDialog/styled.js +58 -58
- package/dist/devmode/modules/python/components/WorkerMetrics/styled.js +26 -26
- package/dist/devmode/modules/python/dialogs/ViewResponseDialog/styled.js +5 -5
- package/dist/devmode/modules/resource-json/styled.js +7 -7
- package/dist/devmode/modules/table/components/TableContent/index.js +7 -7
- package/dist/devmode/modules/table/components/TableContent/styled.js +18 -18
- package/dist/devmode/monaco/MonacoEditor/styled.js +6 -6
- package/dist/devmode/monaco/ReadonlyMonacoEditor/styled.js +24 -24
- package/dist/devmode/navigation/CategoryTree/styled.js +65 -65
- package/dist/devmode/navigation/NodeActionsMenu/styled.js +63 -63
- package/dist/devmode/tabs/Panes/PaneHandle/styled.js +45 -45
- package/dist/devmode/tabs/Panes/styled.js +21 -21
- package/dist/devmode/tabs/ResultsDock/styled.js +35 -35
- package/dist/devmode/tabs/TabActions/styled.js +50 -50
- package/dist/devmode/tabs/TabPane/index.js +17 -5
- package/dist/devmode/tabs/TabPane/index.js.map +1 -1
- package/dist/devmode/tabs/TabPane/styled.js +6 -6
- package/dist/devmode/tabs/TabPanes/index.js +13 -3
- package/dist/devmode/tabs/TabPanes/index.js.map +1 -1
- package/dist/devmode/tabs/Tabs/Tab/styled.js +105 -105
- package/dist/devmode/tabs/Tabs/styled.js +61 -61
- package/dist/devmode/tabs/states/EmptyWorkspace.js +16 -1
- package/dist/devmode/tabs/states/EmptyWorkspace.js.map +1 -1
- package/dist/devmode/tabs/states/TabError.js +16 -2
- package/dist/devmode/tabs/states/TabError.js.map +1 -1
- package/dist/devmode/tabs/states/styled.js +2 -2
- package/dist/devmode/tabs/styled.js +37 -37
- package/package.json +322 -321
|
@@ -5,4 +5,4 @@ export declare enum EditGeometryType {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const commonGeometryTypes: GeometryTypeOption[];
|
|
7
7
|
export declare const geometryTypes: GeometryTypeOption[];
|
|
8
|
-
export declare const geometryIconOf: (geometryType?: OgcGeometryType | null) => "symbol" | "function" | "auto" | "geom_point" | "layers" | "delete" | "save" | "paint" | "menu_vertical" | "menu_horizontal" | "edit" | "tools" | "filter" | "filter_apply" | "search" | "date" | "zoom_to" | "geom_raster" | "geom_polygon" | "geom_polyline" | "share" | "refresh" | "download" | "basemap" | "plus" | "minus" | "select_rect" | "select_circle" | "select_polygon" | "clear" | "measure_length" | "measure_area" | "home" | "bookmark" | "arrow_forward" | "arrow_back" | "message" | "location_pointer" | "close" | "maximize" | "minimize" | "maximize_solid" | "minimize_solid" | "next" | "play" | "prev" | "to_first" | "stop" | "pause" | "upload" | "image" | "hide" | "expand" | "reduce" | "input_resizer" | "input_dropdown" | "classification" | "copy" | "phone" | "like" | "time" | "export_excel" | "location_coordinate" | "sorting_asc" | "sorting_des" | "password_show" | "password_hide" | "success" | "warning" | "error" | "star" | "social_vk" | "social_fb" | "social_google" | "social_github" | "social_vk_simple" | "social_fb_simple" | "social_google_simple" | "social_medium" | "label" | "geoprocessing" | "info" | "feedback" | "panel_hide" | "panel_show" | "feature_add" | "logo" | "tree" | "key" | "data" | "lock" | "unlock" | "users" | "map" | "displayfield" | "textfile" | "image_paste" | "step_back" | "step_forward" | "pipette" | "calculation" | "geom_move" | "geom_poly_vertex" | "geom_poly_hole" | "geom_poly_slice" | "geom_poly_reshape" | "geom_poly_ungroup" | "geom_poly_autocomplete" | "geom_line_vertex" | "geom_line_addpart" | "geom_line_slice" | "geom_line_reshape" | "geom_line_ungroup" | "geom_undefined" | "icon_undefined" | "inverse" | "location_current" | "tools_buffer" | "tools_zones" | "tools_print" | "tools_spatial_selection" | "scale" | "tools_aggregation" | "zip" | "catalog" | "catalog_variant" | "question" | "alpha" | "betta" | "dragdrop" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "greater_or_equal" | "less_than" | "less_or_equal" | "starts_with" | "not_starts_with" | "ends_with" | "not_ends_with" | "empty" | "filled" | "raster_visible" | "raster_invisible" | "editgeom_point_addpart" | "divide" | "filter_layer" | "filter_table" | "finish" | "transparentize" | "textLeft" | "textRight" | "textCenter" | "textJustify" | "externalway" | "link" | "evergis" | "geometryUnite" | "geometryCrop" | "roles" | "icon_block" | "configurations" | "settings_table" | "set_edit" | "set_read" | "set_configure" | "set_time" | "snapping" | "snap_1" | "snap_2" | "snap_3" | "slide" | "statistics" | "alphabet_sort_za" | "alphabet_sort_az" | "inside_range" | "outside_range" | "tms" | "arc_gis" | "date_outside" | "wms_link" | "object_size" | "stroke_width" | "point_select" | "select_line" | "apply_selection" | "report" | "refresh_circle" | "date_filter" | "layer_filter_applied" | "attribute_filter_applied" | "geometry_selection_applied" | "attribute_filter" | "layer_filter" | "layers_add" | "geo_location" | "geom_types" | "date_aggregation" | "public_group" | "social_tg" | "rounded_triangle" | "zoom_in" | "zoom_out" | "checkboxes" | "sum" | "datetime" | "text" | "double" | "int" | "local_tile_service" | "arcgis_service" | "wms_service" | "text_format" | "coordinates_actions" | "xy" | "group_features" | "ungroup_features" | "preview" | "points" | "triangle" | "rectangle" | "ellipse" | "selection" | "table_link" | "cell_size" | "symbol_library" | "globe" | "alert" | "tree_folder_closed" | "tree_folder_opened" | "add_group" | "ungroup" | "feature_card" | "moon" | "sun" | "logout" | "search_selection" | "list" | "suggestions" | "social_dzen" | "social_youtube" | "query" | "table_empty" | "param" | "shared_group" | "text_frame" | "file_catalog" | "attachment" | "stats" | "grid" | "loading_circle" | "layer_option" | "change_geom" | "settings_horizontal" | "text_editor" | "dashboard_placeholder" | "sort" | "postgresql" | "bigquery" | "amazon_s3" | "databricks" | "redshift" | "server_connection" | "service_connection" | "column_increment" | "column_unique" | "column_nullable" | "projection" | "id" | "card" | "zones_selection" | "walking" | "selection_route" | "pulse" | "tree_vertical" | "tool_settings" | "menu" | "percent" | "run" | "table_view" | "text_view" | "in_map" | "tables" | "collapse" | "expand_all" | "quote" | "list_ordered" | "list_unordered" | "italic" | "heading" | "bold" | "filter_switcher" | "arrow_down" | "arrow_up" | "new_window" | "line_numbers" | "python" | "config" | "pc" | "social_yandex" | "tab_icon" | "disk" | "restart" | "ram" | "cpu" | "log" | "select_point" | "page_add" | "page_menu" | "stack" | "calc_attribute" | "calc_attribute_attribute" | "calc_attribute_value" | "cursor" | "button" | "camera" | "pdf" | "slideshow" | "edit_container" | "default_attributes" | "progress_bar" | "section" | "section_add" | "section_remove" | "connections" | "pie_chart" | "line_chart" | "stack_chart" | "datasource" | "tabs" | "check_toggle" | "cadastr" | "office" | "layer_eye" | "ai" | "bool" | "json" | "rollup" | "no_geom" | "legend" | "symbol_text" | "text_circle" | "heatmap" | "cube" | "extrude" | "transition" | "stop_circle" | "token" | "star_symbol" | "text_plain" | "geom_shapes" | "align_bottom" | "align_hor" | "align_middle" | "align_top" | "align_ver" | "autoupdate" | "beautify_code" | "bottom_space" | "card_settings" | "claude" | "divide_block" | "gpt" | "grid_1" | "grid_2" | "grid_3" | "grid_4" | "grid_5" | "grid_6" | "grid_7" | "grid_8" | "into_map" | "key_attr" | "layout" | "left_space" | "legend_show" | "mobile" | "
|
|
8
|
+
export declare const geometryIconOf: (geometryType?: OgcGeometryType | null) => "symbol" | "function" | "auto" | "geom_point" | "layers" | "delete" | "save" | "paint" | "menu_vertical" | "menu_horizontal" | "edit" | "tools" | "filter" | "filter_apply" | "search" | "date" | "zoom_to" | "geom_raster" | "geom_polygon" | "geom_polyline" | "share" | "refresh" | "download" | "basemap" | "plus" | "minus" | "select_rect" | "select_circle" | "select_polygon" | "clear" | "measure_length" | "measure_area" | "home" | "bookmark" | "arrow_forward" | "arrow_back" | "message" | "location_pointer" | "close" | "maximize" | "minimize" | "maximize_solid" | "minimize_solid" | "next" | "play" | "prev" | "to_first" | "stop" | "pause" | "upload" | "image" | "hide" | "expand" | "reduce" | "input_resizer" | "input_dropdown" | "classification" | "copy" | "phone" | "like" | "time" | "export_excel" | "location_coordinate" | "sorting_asc" | "sorting_des" | "password_show" | "password_hide" | "success" | "warning" | "error" | "star" | "social_vk" | "social_fb" | "social_google" | "social_github" | "social_vk_simple" | "social_fb_simple" | "social_google_simple" | "social_medium" | "label" | "geoprocessing" | "info" | "feedback" | "panel_hide" | "panel_show" | "feature_add" | "logo" | "tree" | "key" | "data" | "lock" | "unlock" | "users" | "map" | "displayfield" | "textfile" | "image_paste" | "step_back" | "step_forward" | "pipette" | "calculation" | "geom_move" | "geom_poly_vertex" | "geom_poly_hole" | "geom_poly_slice" | "geom_poly_reshape" | "geom_poly_ungroup" | "geom_poly_autocomplete" | "geom_line_vertex" | "geom_line_addpart" | "geom_line_slice" | "geom_line_reshape" | "geom_line_ungroup" | "geom_undefined" | "icon_undefined" | "inverse" | "location_current" | "tools_buffer" | "tools_zones" | "tools_print" | "tools_spatial_selection" | "scale" | "tools_aggregation" | "zip" | "catalog" | "catalog_variant" | "question" | "alpha" | "betta" | "dragdrop" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "greater_or_equal" | "less_than" | "less_or_equal" | "starts_with" | "not_starts_with" | "ends_with" | "not_ends_with" | "empty" | "filled" | "raster_visible" | "raster_invisible" | "editgeom_point_addpart" | "divide" | "filter_layer" | "filter_table" | "finish" | "transparentize" | "textLeft" | "textRight" | "textCenter" | "textJustify" | "externalway" | "link" | "evergis" | "geometryUnite" | "geometryCrop" | "roles" | "icon_block" | "configurations" | "settings_table" | "set_edit" | "set_read" | "set_configure" | "set_time" | "snapping" | "snap_1" | "snap_2" | "snap_3" | "slide" | "statistics" | "alphabet_sort_za" | "alphabet_sort_az" | "inside_range" | "outside_range" | "tms" | "arc_gis" | "date_outside" | "wms_link" | "object_size" | "stroke_width" | "point_select" | "select_line" | "apply_selection" | "report" | "refresh_circle" | "date_filter" | "layer_filter_applied" | "attribute_filter_applied" | "geometry_selection_applied" | "attribute_filter" | "layer_filter" | "layers_add" | "geo_location" | "geom_types" | "date_aggregation" | "public_group" | "social_tg" | "rounded_triangle" | "zoom_in" | "zoom_out" | "checkboxes" | "sum" | "datetime" | "text" | "double" | "int" | "local_tile_service" | "arcgis_service" | "wms_service" | "text_format" | "coordinates_actions" | "xy" | "group_features" | "ungroup_features" | "preview" | "points" | "triangle" | "rectangle" | "ellipse" | "selection" | "table_link" | "cell_size" | "symbol_library" | "globe" | "alert" | "tree_folder_closed" | "tree_folder_opened" | "add_group" | "ungroup" | "feature_card" | "moon" | "sun" | "logout" | "search_selection" | "list" | "suggestions" | "social_dzen" | "social_youtube" | "query" | "table_empty" | "param" | "shared_group" | "text_frame" | "file_catalog" | "attachment" | "stats" | "grid" | "loading_circle" | "layer_option" | "change_geom" | "settings_horizontal" | "text_editor" | "dashboard_placeholder" | "sort" | "postgresql" | "bigquery" | "amazon_s3" | "databricks" | "redshift" | "server_connection" | "service_connection" | "column_increment" | "column_unique" | "column_nullable" | "projection" | "id" | "card" | "zones_selection" | "walking" | "selection_route" | "pulse" | "tree_vertical" | "tool_settings" | "menu" | "percent" | "run" | "table_view" | "text_view" | "in_map" | "tables" | "collapse" | "expand_all" | "quote" | "list_ordered" | "list_unordered" | "italic" | "heading" | "bold" | "filter_switcher" | "arrow_down" | "arrow_up" | "new_window" | "line_numbers" | "python" | "config" | "pc" | "social_yandex" | "tab_icon" | "disk" | "restart" | "ram" | "cpu" | "log" | "select_point" | "page_add" | "page_menu" | "stack" | "calc_attribute" | "calc_attribute_attribute" | "calc_attribute_value" | "cursor" | "button" | "camera" | "pdf" | "slideshow" | "edit_container" | "default_attributes" | "progress_bar" | "section" | "section_add" | "section_remove" | "connections" | "pie_chart" | "line_chart" | "stack_chart" | "datasource" | "tabs" | "check_toggle" | "cadastr" | "office" | "layer_eye" | "ai" | "bool" | "json" | "rollup" | "no_geom" | "legend" | "symbol_text" | "text_circle" | "heatmap" | "cube" | "extrude" | "transition" | "stop_circle" | "token" | "star_symbol" | "text_plain" | "geom_shapes" | "align_bottom" | "align_hor" | "align_middle" | "align_top" | "align_ver" | "autoupdate" | "beautify_code" | "bottom_space" | "card_settings" | "claude" | "divide_block" | "gpt" | "grid_1" | "grid_2" | "grid_3" | "grid_4" | "grid_5" | "grid_6" | "grid_7" | "grid_8" | "into_map" | "key_attr" | "layout" | "left_space" | "legend_show" | "mobile" | "position" | "qwen" | "right_space" | "row" | "scene" | "sence" | "split_ver" | "story" | "suggest" | "tablet" | "to_left_collapse" | "to_left" | "to_right_collapse" | "to_right" | "top_space" | "union_block" | "variable" | "zoom_to_filtered" | "hero" | "marker" | "notes" | "rotate" | "selected";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
|
-
const EditResourceContainer = styled.div.withConfig({ displayName: "EditResourceContainer", componentId: "sc-
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
gap: 1.5rem 0;
|
|
7
|
-
width: 100%;
|
|
3
|
+
const EditResourceContainer = styled.div.withConfig({ displayName: "EditResourceContainer", componentId: "sc-12nafuq" }) `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 1.5rem 0;
|
|
7
|
+
width: 100%;
|
|
8
8
|
`;
|
|
9
|
-
const EditResourceWrapper = styled.div.withConfig({ displayName: "EditResourceWrapper", componentId: "sc-
|
|
10
|
-
display: flex;
|
|
11
|
-
gap: 0 1.5rem;
|
|
12
|
-
width: 100%;
|
|
13
|
-
flex-direction: ${({ $noType }) => ($noType ? "column" : "row")};
|
|
9
|
+
const EditResourceWrapper = styled.div.withConfig({ displayName: "EditResourceWrapper", componentId: "sc-1sei6j7" }) `
|
|
10
|
+
display: flex;
|
|
11
|
+
gap: 0 1.5rem;
|
|
12
|
+
width: 100%;
|
|
13
|
+
flex-direction: ${({ $noType }) => ($noType ? "column" : "row")};
|
|
14
14
|
`;
|
|
15
|
-
const EditResourcePreview = styled.div.withConfig({ displayName: "EditResourcePreview", componentId: "sc-
|
|
16
|
-
width: 10rem;
|
|
17
|
-
height: 7.5rem;
|
|
18
|
-
flex-shrink: 0;
|
|
19
|
-
display: flex;
|
|
20
|
-
justify-content: center;
|
|
15
|
+
const EditResourcePreview = styled.div.withConfig({ displayName: "EditResourcePreview", componentId: "sc-10nacny" }) `
|
|
16
|
+
width: 10rem;
|
|
17
|
+
height: 7.5rem;
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: center;
|
|
21
21
|
`;
|
|
22
|
-
const EditResourceMeta = styled.div.withConfig({ displayName: "EditResourceMeta", componentId: "sc-
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
width: 100%;
|
|
26
|
-
min-width: 1px;
|
|
27
|
-
gap: 1rem 0;
|
|
22
|
+
const EditResourceMeta = styled.div.withConfig({ displayName: "EditResourceMeta", componentId: "sc-ia66w6" }) `
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
width: 100%;
|
|
26
|
+
min-width: 1px;
|
|
27
|
+
gap: 1rem 0;
|
|
28
28
|
`;
|
|
29
29
|
|
|
30
30
|
export { EditResourceContainer, EditResourceMeta, EditResourcePreview, EditResourceWrapper };
|
|
@@ -4,67 +4,67 @@ import { ResourceType } from '../../core/types.js';
|
|
|
4
4
|
import img from '../../assets/resource/folder_preview.svg.js';
|
|
5
5
|
|
|
6
6
|
const FOLDER_BACKGROUND = "rgba(0, 170, 255, 0.06)";
|
|
7
|
-
const PreviewIconContainer = styled.div.withConfig({ displayName: "PreviewIconContainer", componentId: "sc-
|
|
8
|
-
width: ${({ $width = "100%" }) => $width};
|
|
9
|
-
height: ${({ $height = "100%" }) => $height};
|
|
10
|
-
flex-shrink: 0;
|
|
11
|
-
position: relative;
|
|
12
|
-
border-radius: ${({ $borderRadius = "1rem" }) => $borderRadius};
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
background-color: ${({ $resourceType, $type, theme, $isFolder }) => $isFolder ? FOLDER_BACKGROUND : getResourceColor($resourceType, $type) || theme.palette.elementDark};
|
|
7
|
+
const PreviewIconContainer = styled.div.withConfig({ displayName: "PreviewIconContainer", componentId: "sc-dxwcqq" }) `
|
|
8
|
+
width: ${({ $width = "100%" }) => $width};
|
|
9
|
+
height: ${({ $height = "100%" }) => $height};
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
position: relative;
|
|
12
|
+
border-radius: ${({ $borderRadius = "1rem" }) => $borderRadius};
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
background-color: ${({ $resourceType, $type, theme, $isFolder }) => $isFolder ? FOLDER_BACKGROUND : getResourceColor($resourceType, $type) || theme.palette.elementDark};
|
|
16
16
|
`;
|
|
17
|
-
const PreviewIconResource = styled.img.withConfig({ displayName: "PreviewIconResource", componentId: "sc-
|
|
18
|
-
object-fit: cover;
|
|
19
|
-
flex-shrink: 0;
|
|
20
|
-
position: absolute;
|
|
21
|
-
right: 0;
|
|
22
|
-
top: 0;
|
|
23
|
-
width: ${({ $width = "75%" }) => $width};
|
|
24
|
-
height: ${({ $height = "100%" }) => $height};
|
|
25
|
-
border-radius: ${({ $borderRadius = "1rem" }) => $borderRadius};
|
|
26
|
-
|
|
17
|
+
const PreviewIconResource = styled.img.withConfig({ displayName: "PreviewIconResource", componentId: "sc-wyq0lo" }) `
|
|
18
|
+
object-fit: cover;
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
position: absolute;
|
|
21
|
+
right: 0;
|
|
22
|
+
top: 0;
|
|
23
|
+
width: ${({ $width = "75%" }) => $width};
|
|
24
|
+
height: ${({ $height = "100%" }) => $height};
|
|
25
|
+
border-radius: ${({ $borderRadius = "1rem" }) => $borderRadius};
|
|
26
|
+
|
|
27
27
|
${({ $resourceType }) => $resourceType === ResourceType.PostgresSchema &&
|
|
28
|
-
css `
|
|
29
|
-
width: 7.5rem;
|
|
30
|
-
height: 7.5rem;
|
|
31
|
-
top: 1.875rem;
|
|
32
|
-
border-radius: 0;
|
|
33
|
-
`}
|
|
28
|
+
css `
|
|
29
|
+
width: 7.5rem;
|
|
30
|
+
height: 7.5rem;
|
|
31
|
+
top: 1.875rem;
|
|
32
|
+
border-radius: 0;
|
|
33
|
+
`}
|
|
34
34
|
`;
|
|
35
|
-
const PreviewIconFile = styled.div.withConfig({ displayName: "PreviewIconFile", componentId: "sc-
|
|
36
|
-
width: 3rem;
|
|
37
|
-
height: 3rem;
|
|
38
|
-
margin: auto;
|
|
39
|
-
/* Кавычки обязательны: svg встраиваются в сборку data URI с пробелами и одинарными кавычками. */
|
|
40
|
-
background: url("${({ $isDirectory, $resourceType }) => ($isDirectory ? img : getResourceTypeIcon($resourceType))}")
|
|
41
|
-
center center no-repeat;
|
|
35
|
+
const PreviewIconFile = styled.div.withConfig({ displayName: "PreviewIconFile", componentId: "sc-olw9dt" }) `
|
|
36
|
+
width: 3rem;
|
|
37
|
+
height: 3rem;
|
|
38
|
+
margin: auto;
|
|
39
|
+
/* Кавычки обязательны: svg встраиваются в сборку data URI с пробелами и одинарными кавычками. */
|
|
40
|
+
background: url("${({ $isDirectory, $resourceType }) => ($isDirectory ? img : getResourceTypeIcon($resourceType))}")
|
|
41
|
+
center center no-repeat;
|
|
42
42
|
`;
|
|
43
43
|
const SYM_LINK_SIZES = {
|
|
44
|
-
small: css `
|
|
45
|
-
width: 0.75rem;
|
|
46
|
-
height: 0.75rem;
|
|
47
|
-
bottom: 2px;
|
|
48
|
-
right: 2px;
|
|
44
|
+
small: css `
|
|
45
|
+
width: 0.75rem;
|
|
46
|
+
height: 0.75rem;
|
|
47
|
+
bottom: 2px;
|
|
48
|
+
right: 2px;
|
|
49
49
|
`,
|
|
50
|
-
properties: css `
|
|
51
|
-
width: 1rem;
|
|
52
|
-
height: 1rem;
|
|
53
|
-
bottom: 0.5rem;
|
|
54
|
-
right: 0.5rem;
|
|
50
|
+
properties: css `
|
|
51
|
+
width: 1rem;
|
|
52
|
+
height: 1rem;
|
|
53
|
+
bottom: 0.5rem;
|
|
54
|
+
right: 0.5rem;
|
|
55
55
|
`,
|
|
56
|
-
list: css `
|
|
57
|
-
width: 1.5rem;
|
|
58
|
-
height: 1.5rem;
|
|
59
|
-
bottom: 0.75rem;
|
|
60
|
-
right: 0.75rem;
|
|
56
|
+
list: css `
|
|
57
|
+
width: 1.5rem;
|
|
58
|
+
height: 1.5rem;
|
|
59
|
+
bottom: 0.75rem;
|
|
60
|
+
right: 0.75rem;
|
|
61
61
|
`,
|
|
62
62
|
};
|
|
63
|
-
const ResourceIconSymLink = styled.img.withConfig({ displayName: "ResourceIconSymLink", componentId: "sc-
|
|
64
|
-
position: absolute;
|
|
65
|
-
object-fit: cover;
|
|
66
|
-
z-index: 2;
|
|
67
|
-
${({ $size }) => SYM_LINK_SIZES[$size]}
|
|
63
|
+
const ResourceIconSymLink = styled.img.withConfig({ displayName: "ResourceIconSymLink", componentId: "sc-13yhbs3" }) `
|
|
64
|
+
position: absolute;
|
|
65
|
+
object-fit: cover;
|
|
66
|
+
z-index: 2;
|
|
67
|
+
${({ $size }) => SYM_LINK_SIZES[$size]}
|
|
68
68
|
`;
|
|
69
69
|
|
|
70
70
|
export { PreviewIconContainer, PreviewIconFile, PreviewIconResource, ResourceIconSymLink };
|
|
@@ -6,106 +6,106 @@ const ResourceModal = styled(Dialog).attrs(props => ({
|
|
|
6
6
|
minWidth: "58rem",
|
|
7
7
|
maxWidth: "75rem",
|
|
8
8
|
...props,
|
|
9
|
-
})).withConfig({ displayName: "ResourceModal", componentId: "sc-
|
|
10
|
-
border-radius: 12px;
|
|
11
|
-
position: relative;
|
|
9
|
+
})).withConfig({ displayName: "ResourceModal", componentId: "sc-1rsxsw8" }) `
|
|
10
|
+
border-radius: 12px;
|
|
11
|
+
position: relative;
|
|
12
12
|
`;
|
|
13
|
-
const HeaderContainer = styled.div.withConfig({ displayName: "HeaderContainer", componentId: "sc-
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
padding: 2rem 2rem 0 3rem;
|
|
17
|
-
width: 100%;
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
margin-bottom: 2rem;
|
|
13
|
+
const HeaderContainer = styled.div.withConfig({ displayName: "HeaderContainer", componentId: "sc-9gvv8o" }) `
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
padding: 2rem 2rem 0 3rem;
|
|
17
|
+
width: 100%;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
margin-bottom: 2rem;
|
|
20
20
|
`;
|
|
21
|
-
const HeaderTitle = styled.div.withConfig({ displayName: "HeaderTitle", componentId: "sc-
|
|
22
|
-
font-size: 1.5rem;
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
gap: 0 1rem;
|
|
21
|
+
const HeaderTitle = styled.div.withConfig({ displayName: "HeaderTitle", componentId: "sc-6x7amh" }) `
|
|
22
|
+
font-size: 1.5rem;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 0 1rem;
|
|
26
26
|
`;
|
|
27
|
-
const HeaderActions = styled.div.withConfig({ displayName: "HeaderActions", componentId: "sc-
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-wrap: nowrap;
|
|
30
|
-
flex-shrink: 0;
|
|
31
|
-
align-items: center;
|
|
32
|
-
margin-left: auto;
|
|
27
|
+
const HeaderActions = styled.div.withConfig({ displayName: "HeaderActions", componentId: "sc-1d5ttoy" }) `
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-wrap: nowrap;
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
align-items: center;
|
|
32
|
+
margin-left: auto;
|
|
33
33
|
`;
|
|
34
|
-
const ModalContent = styled(DialogContent).withConfig({ displayName: "ModalContent", componentId: "sc-
|
|
35
|
-
flex-grow: 1;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
height: 100%;
|
|
38
|
-
padding: 0 3rem;
|
|
39
|
-
width: 100%;
|
|
40
|
-
align-items: start;
|
|
41
|
-
box-sizing: border-box;
|
|
42
|
-
gap: 1.5rem;
|
|
34
|
+
const ModalContent = styled(DialogContent).withConfig({ displayName: "ModalContent", componentId: "sc-g4hyrc" }) `
|
|
35
|
+
flex-grow: 1;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
height: 100%;
|
|
38
|
+
padding: 0 3rem;
|
|
39
|
+
width: 100%;
|
|
40
|
+
align-items: start;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
gap: 1.5rem;
|
|
43
43
|
`;
|
|
44
|
-
const ModalDialogActions = styled(DialogActions).withConfig({ displayName: "ModalDialogActions", componentId: "sc-
|
|
45
|
-
align-items: center;
|
|
46
|
-
flex-shrink: 0;
|
|
47
|
-
margin-top: auto;
|
|
48
|
-
padding: 1.5rem 3rem;
|
|
49
|
-
width: 100%;
|
|
50
|
-
box-sizing: border-box;
|
|
44
|
+
const ModalDialogActions = styled(DialogActions).withConfig({ displayName: "ModalDialogActions", componentId: "sc-1cx1tkc" }) `
|
|
45
|
+
align-items: center;
|
|
46
|
+
flex-shrink: 0;
|
|
47
|
+
margin-top: auto;
|
|
48
|
+
padding: 1.5rem 3rem;
|
|
49
|
+
width: 100%;
|
|
50
|
+
box-sizing: border-box;
|
|
51
51
|
`;
|
|
52
|
-
const FrameContent = styled.div.withConfig({ displayName: "FrameContent", componentId: "sc-
|
|
53
|
-
display: flex;
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
gap: 1rem;
|
|
56
|
-
min-width: 24rem;
|
|
52
|
+
const FrameContent = styled.div.withConfig({ displayName: "FrameContent", componentId: "sc-1x0nau9" }) `
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
gap: 1rem;
|
|
56
|
+
min-width: 24rem;
|
|
57
57
|
`;
|
|
58
|
-
const BrowserContainer = styled.div.withConfig({ displayName: "BrowserContainer", componentId: "sc-
|
|
59
|
-
display: flex;
|
|
60
|
-
flex-direction: column;
|
|
61
|
-
gap: 0.5rem;
|
|
62
|
-
min-width: 32rem;
|
|
58
|
+
const BrowserContainer = styled.div.withConfig({ displayName: "BrowserContainer", componentId: "sc-1l0yxy1" }) `
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: 0.5rem;
|
|
62
|
+
min-width: 32rem;
|
|
63
63
|
`;
|
|
64
|
-
const BrowserToolbar = styled.div.withConfig({ displayName: "BrowserToolbar", componentId: "sc-
|
|
65
|
-
display: flex;
|
|
66
|
-
gap: 0.5rem;
|
|
67
|
-
align-items: center;
|
|
64
|
+
const BrowserToolbar = styled.div.withConfig({ displayName: "BrowserToolbar", componentId: "sc-18fvldd" }) `
|
|
65
|
+
display: flex;
|
|
66
|
+
gap: 0.5rem;
|
|
67
|
+
align-items: center;
|
|
68
68
|
`;
|
|
69
|
-
const Breadcrumbs = styled.div.withConfig({ displayName: "Breadcrumbs", componentId: "sc-
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
gap: 0.25rem;
|
|
73
|
-
font-size: 0.875rem;
|
|
74
|
-
color: ${({ theme: { palette } }) => palette.textSecondary};
|
|
69
|
+
const Breadcrumbs = styled.div.withConfig({ displayName: "Breadcrumbs", componentId: "sc-c07i9e" }) `
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 0.25rem;
|
|
73
|
+
font-size: 0.875rem;
|
|
74
|
+
color: ${({ theme: { palette } }) => palette.textSecondary};
|
|
75
75
|
`;
|
|
76
|
-
const BrowserList = styled.div.withConfig({ displayName: "BrowserList", componentId: "sc-
|
|
77
|
-
display: flex;
|
|
78
|
-
flex-direction: column;
|
|
79
|
-
height: 22rem;
|
|
80
|
-
overflow: auto;
|
|
81
|
-
border: 1px solid ${({ theme: { palette } }) => palette.elementDeep};
|
|
82
|
-
border-radius: 0.25rem;
|
|
76
|
+
const BrowserList = styled.div.withConfig({ displayName: "BrowserList", componentId: "sc-85bn72" }) `
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
height: 22rem;
|
|
80
|
+
overflow: auto;
|
|
81
|
+
border: 1px solid ${({ theme: { palette } }) => palette.elementDeep};
|
|
82
|
+
border-radius: 0.25rem;
|
|
83
83
|
`;
|
|
84
|
-
const BrowserRow = styled.div.withConfig({ displayName: "BrowserRow", componentId: "sc-
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
gap: 0.5rem;
|
|
88
|
-
min-height: 2rem;
|
|
89
|
-
padding: 0 0.5rem;
|
|
90
|
-
|
|
91
|
-
&:hover {
|
|
92
|
-
background: ${({ theme: { palette } }) => palette.elementLight};
|
|
93
|
-
}
|
|
84
|
+
const BrowserRow = styled.div.withConfig({ displayName: "BrowserRow", componentId: "sc-1v8e12d" }) `
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: 0.5rem;
|
|
88
|
+
min-height: 2rem;
|
|
89
|
+
padding: 0 0.5rem;
|
|
90
|
+
|
|
91
|
+
&:hover {
|
|
92
|
+
background: ${({ theme: { palette } }) => palette.elementLight};
|
|
93
|
+
}
|
|
94
94
|
`;
|
|
95
|
-
const BrowserRowTitle = styled.span.withConfig({ displayName: "BrowserRowTitle", componentId: "sc-
|
|
96
|
-
flex: 1;
|
|
97
|
-
min-width: 0;
|
|
98
|
-
overflow: hidden;
|
|
99
|
-
text-overflow: ellipsis;
|
|
100
|
-
white-space: nowrap;
|
|
101
|
-
cursor: pointer;
|
|
102
|
-
font-size: 0.875rem;
|
|
103
|
-
font-weight: ${({ $folder }) => ($folder ? "600" : "400")};
|
|
95
|
+
const BrowserRowTitle = styled.span.withConfig({ displayName: "BrowserRowTitle", componentId: "sc-13am0e6" }) `
|
|
96
|
+
flex: 1;
|
|
97
|
+
min-width: 0;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
text-overflow: ellipsis;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
font-size: 0.875rem;
|
|
103
|
+
font-weight: ${({ $folder }) => ($folder ? "600" : "400")};
|
|
104
104
|
`;
|
|
105
|
-
const EmptyState = styled.div.withConfig({ displayName: "EmptyState", componentId: "sc-
|
|
106
|
-
padding: 1rem;
|
|
107
|
-
font-size: 0.875rem;
|
|
108
|
-
color: ${({ theme: { palette } }) => palette.textSecondary};
|
|
105
|
+
const EmptyState = styled.div.withConfig({ displayName: "EmptyState", componentId: "sc-1jebx9u" }) `
|
|
106
|
+
padding: 1rem;
|
|
107
|
+
font-size: 0.875rem;
|
|
108
|
+
color: ${({ theme: { palette } }) => palette.textSecondary};
|
|
109
109
|
`;
|
|
110
110
|
|
|
111
111
|
export { Breadcrumbs, BrowserContainer, BrowserList, BrowserRow, BrowserRowTitle, BrowserToolbar, EmptyState, FrameContent, HeaderActions, HeaderContainer, HeaderTitle, ModalContent, ModalDialogActions, ResourceModal };
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { Flex, Icon } from '@evergis/uilib-gl';
|
|
3
3
|
|
|
4
|
-
const ResourceTypes = styled(Flex).withConfig({ displayName: "ResourceTypes", componentId: "sc-
|
|
5
|
-
background-color: ${({ theme: { palette } }) => palette.element};
|
|
6
|
-
padding-bottom: 1.5rem;
|
|
7
|
-
padding-top: 1.5rem;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
align-items: center;
|
|
10
|
-
margin-bottom: 2rem;
|
|
11
|
-
width: 100%;
|
|
4
|
+
const ResourceTypes = styled(Flex).withConfig({ displayName: "ResourceTypes", componentId: "sc-b80dl2" }) `
|
|
5
|
+
background-color: ${({ theme: { palette } }) => palette.element};
|
|
6
|
+
padding-bottom: 1.5rem;
|
|
7
|
+
padding-top: 1.5rem;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
margin-bottom: 2rem;
|
|
11
|
+
width: 100%;
|
|
12
12
|
`;
|
|
13
|
-
const ResourceTypeContainer = styled(Flex).withConfig({ displayName: "ResourceTypeContainer", componentId: "sc-
|
|
14
|
-
height: 5.25rem;
|
|
15
|
-
width: ${({ $width }) => $width || "16.5rem"};
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
background-color: ${({ theme: { palette } }) => palette.background};
|
|
18
|
-
margin-right: 1rem;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
color: ${({ theme: { palette } }) => palette.textSecondary};
|
|
23
|
-
border: 1px solid white;
|
|
24
|
-
border-radius: ${({ theme: { borderRadius } }) => borderRadius.smallest};
|
|
25
|
-
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15);
|
|
26
|
-
|
|
27
|
-
&:last-child {
|
|
28
|
-
margin-right: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:hover {
|
|
32
|
-
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
|
|
33
|
-
}
|
|
34
|
-
|
|
13
|
+
const ResourceTypeContainer = styled(Flex).withConfig({ displayName: "ResourceTypeContainer", componentId: "sc-cg5czf" }) `
|
|
14
|
+
height: 5.25rem;
|
|
15
|
+
width: ${({ $width }) => $width || "16.5rem"};
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
background-color: ${({ theme: { palette } }) => palette.background};
|
|
18
|
+
margin-right: 1rem;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
color: ${({ theme: { palette } }) => palette.textSecondary};
|
|
23
|
+
border: 1px solid white;
|
|
24
|
+
border-radius: ${({ theme: { borderRadius } }) => borderRadius.smallest};
|
|
25
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15);
|
|
26
|
+
|
|
27
|
+
&:last-child {
|
|
28
|
+
margin-right: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
35
|
${({ $selected }) => $selected &&
|
|
36
|
-
css `
|
|
37
|
-
color: ${({ theme: { palette } }) => palette.primary};
|
|
38
|
-
border: 1px solid ${({ theme: { palette } }) => palette.primary};
|
|
39
|
-
`}
|
|
40
|
-
|
|
36
|
+
css `
|
|
37
|
+
color: ${({ theme: { palette } }) => palette.primary};
|
|
38
|
+
border: 1px solid ${({ theme: { palette } }) => palette.primary};
|
|
39
|
+
`}
|
|
40
|
+
|
|
41
41
|
${({ $disabled }) => $disabled &&
|
|
42
|
-
css `
|
|
43
|
-
cursor: default;
|
|
44
|
-
pointer-events: none;
|
|
45
|
-
color: ${({ theme: { palette } }) => palette.textSecondary} !important;
|
|
46
|
-
border: 1px solid white !important;
|
|
47
|
-
|
|
48
|
-
&:hover {
|
|
49
|
-
box-shadow: none;
|
|
50
|
-
}
|
|
51
|
-
`}
|
|
42
|
+
css `
|
|
43
|
+
cursor: default;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
color: ${({ theme: { palette } }) => palette.textSecondary} !important;
|
|
46
|
+
border: 1px solid white !important;
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
box-shadow: none;
|
|
50
|
+
}
|
|
51
|
+
`}
|
|
52
52
|
`;
|
|
53
|
-
const ResourceTypeIcon = styled(Icon).withConfig({ displayName: "ResourceTypeIcon", componentId: "sc-
|
|
54
|
-
width: 1.5rem;
|
|
55
|
-
height: 1.5rem;
|
|
56
|
-
|
|
57
|
-
&:after {
|
|
58
|
-
font-size: 1.5rem;
|
|
59
|
-
}
|
|
53
|
+
const ResourceTypeIcon = styled(Icon).withConfig({ displayName: "ResourceTypeIcon", componentId: "sc-egf7g" }) `
|
|
54
|
+
width: 1.5rem;
|
|
55
|
+
height: 1.5rem;
|
|
56
|
+
|
|
57
|
+
&:after {
|
|
58
|
+
font-size: 1.5rem;
|
|
59
|
+
}
|
|
60
60
|
`;
|
|
61
|
-
const ResourceTypeTitle = styled.label.withConfig({ displayName: "ResourceTypeTitle", componentId: "sc-
|
|
62
|
-
font-size: 14px;
|
|
63
|
-
margin-top: 0.75rem;
|
|
64
|
-
cursor: pointer;
|
|
61
|
+
const ResourceTypeTitle = styled.label.withConfig({ displayName: "ResourceTypeTitle", componentId: "sc-d7ncb2" }) `
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
margin-top: 0.75rem;
|
|
64
|
+
cursor: pointer;
|
|
65
65
|
`;
|
|
66
66
|
|
|
67
67
|
export { ResourceTypeContainer, ResourceTypeIcon, ResourceTypeTitle, ResourceTypes };
|