@evergis/apps 0.1.12 → 0.1.13
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/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/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/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/hooks/useCatalogReveal.js +6 -14
- package/dist/devmode/modules/navigation-catalog/hooks/useCatalogReveal.js.map +1 -1
- package/dist/devmode/modules/navigation-catalog/styled.js +147 -147
- package/dist/devmode/modules/navigation-catalog/thunks/catalogFiles.d.ts +1 -2
- package/dist/devmode/modules/navigation-catalog/thunks/catalogFiles.js +1 -1
- 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/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/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/styled.js +6 -6
- package/dist/devmode/tabs/Tabs/Tab/styled.js +105 -105
- package/dist/devmode/tabs/Tabs/styled.js +61 -61
- package/dist/devmode/tabs/states/styled.js +2 -2
- package/dist/devmode/tabs/styled.js +37 -37
- package/package.json +5 -5
|
@@ -2,162 +2,162 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { TreeText, TreeRow, TreeItemWrapper, IconButtonButton, TreeContent, Tree, Icon, Input } from '@evergis/uilib-gl';
|
|
3
3
|
import { hexToRgba } from '@evergis/common';
|
|
4
4
|
|
|
5
|
-
const NavigationTreeWrapper = styled.div.withConfig({ displayName: "NavigationTreeWrapper", componentId: "sc-
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
width: 100%;
|
|
9
|
-
flex: 1;
|
|
10
|
-
min-height: 0;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
padding: 0 1rem;
|
|
13
|
-
overflow-y: auto;
|
|
5
|
+
const NavigationTreeWrapper = styled.div.withConfig({ displayName: "NavigationTreeWrapper", componentId: "sc-1hkdzgp" }) `
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
width: 100%;
|
|
9
|
+
flex: 1;
|
|
10
|
+
min-height: 0;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
padding: 0 1rem;
|
|
13
|
+
overflow-y: auto;
|
|
14
14
|
`;
|
|
15
|
-
const StyledCatalogTree = styled(Tree).withConfig({ displayName: "StyledCatalogTree", componentId: "sc-
|
|
16
|
-
margin-top: 0.5rem;
|
|
17
|
-
|
|
18
|
-
.item {
|
|
19
|
-
${TreeText} {
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.active {
|
|
25
|
-
> ${TreeRow} {
|
|
26
|
-
border-radius: 0.25rem;
|
|
27
|
-
background-color: ${({ theme }) => theme.palette.elementDeep};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
${TreeItemWrapper} {
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
transition: opacity 0.2s ease;
|
|
34
|
-
|
|
35
|
-
&.dragging {
|
|
36
|
-
opacity: 0.5;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.drop-over {
|
|
40
|
-
background-color: ${({ theme }) => hexToRgba(theme.palette.primary, 0.1)};
|
|
41
|
-
border-radius: 0.25rem;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
${TreeRow}:hover {
|
|
45
|
-
${IconButtonButton} {
|
|
46
|
-
visibility: visible;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
${TreeRow}[data-draggable="true"] {
|
|
51
|
-
cursor: grab;
|
|
52
|
-
|
|
53
|
-
&:active {
|
|
54
|
-
cursor: grabbing;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
${IconButtonButton} {
|
|
60
|
-
width: 1rem;
|
|
61
|
-
padding: 0;
|
|
62
|
-
visibility: hidden;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
${TreeContent} {
|
|
66
|
-
margin-left: 0.25rem;
|
|
67
|
-
}
|
|
15
|
+
const StyledCatalogTree = styled(Tree).withConfig({ displayName: "StyledCatalogTree", componentId: "sc-13ky09f" }) `
|
|
16
|
+
margin-top: 0.5rem;
|
|
17
|
+
|
|
18
|
+
.item {
|
|
19
|
+
${TreeText} {
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.active {
|
|
25
|
+
> ${TreeRow} {
|
|
26
|
+
border-radius: 0.25rem;
|
|
27
|
+
background-color: ${({ theme }) => theme.palette.elementDeep};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
${TreeItemWrapper} {
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
transition: opacity 0.2s ease;
|
|
34
|
+
|
|
35
|
+
&.dragging {
|
|
36
|
+
opacity: 0.5;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.drop-over {
|
|
40
|
+
background-color: ${({ theme }) => hexToRgba(theme.palette.primary, 0.1)};
|
|
41
|
+
border-radius: 0.25rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
${TreeRow}:hover {
|
|
45
|
+
${IconButtonButton} {
|
|
46
|
+
visibility: visible;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
${TreeRow}[data-draggable="true"] {
|
|
51
|
+
cursor: grab;
|
|
52
|
+
|
|
53
|
+
&:active {
|
|
54
|
+
cursor: grabbing;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
${IconButtonButton} {
|
|
60
|
+
width: 1rem;
|
|
61
|
+
padding: 0;
|
|
62
|
+
visibility: hidden;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
${TreeContent} {
|
|
66
|
+
margin-left: 0.25rem;
|
|
67
|
+
}
|
|
68
68
|
`;
|
|
69
|
-
const TreeItemActions = styled.div.withConfig({ displayName: "TreeItemActions", componentId: "sc-
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-shrink: 0;
|
|
72
|
-
align-items: center;
|
|
73
|
-
gap: 0 0.5rem;
|
|
74
|
-
margin-left: auto;
|
|
75
|
-
|
|
76
|
-
${IconButtonButton} {
|
|
77
|
-
height: 1rem;
|
|
78
|
-
width: 1rem;
|
|
79
|
-
}
|
|
69
|
+
const TreeItemActions = styled.div.withConfig({ displayName: "TreeItemActions", componentId: "sc-1acckoc" }) `
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-shrink: 0;
|
|
72
|
+
align-items: center;
|
|
73
|
+
gap: 0 0.5rem;
|
|
74
|
+
margin-left: auto;
|
|
75
|
+
|
|
76
|
+
${IconButtonButton} {
|
|
77
|
+
height: 1rem;
|
|
78
|
+
width: 1rem;
|
|
79
|
+
}
|
|
80
80
|
`;
|
|
81
|
-
const TreeItemChip = styled.div.withConfig({ displayName: "TreeItemChip", componentId: "sc-
|
|
82
|
-
background-color: ${({ theme }) => hexToRgba(theme.palette.primary, 0.12)};
|
|
83
|
-
border-radius: 0.25rem;
|
|
84
|
-
padding: 0.125rem 0.25rem;
|
|
85
|
-
flex-shrink: 0;
|
|
86
|
-
width: 1.125rem;
|
|
87
|
-
height: 0.875rem;
|
|
88
|
-
box-sizing: border-box;
|
|
89
|
-
|
|
90
|
-
${Icon} {
|
|
91
|
-
height: 0.625rem;
|
|
92
|
-
width: 0.625rem;
|
|
93
|
-
display: flex;
|
|
94
|
-
margin-right: 0;
|
|
95
|
-
|
|
96
|
-
&:after {
|
|
97
|
-
height: 0.625rem;
|
|
98
|
-
width: 0.625rem;
|
|
99
|
-
font-size: 0.625rem;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
81
|
+
const TreeItemChip = styled.div.withConfig({ displayName: "TreeItemChip", componentId: "sc-1u2wvx4" }) `
|
|
82
|
+
background-color: ${({ theme }) => hexToRgba(theme.palette.primary, 0.12)};
|
|
83
|
+
border-radius: 0.25rem;
|
|
84
|
+
padding: 0.125rem 0.25rem;
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
width: 1.125rem;
|
|
87
|
+
height: 0.875rem;
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
|
|
90
|
+
${Icon} {
|
|
91
|
+
height: 0.625rem;
|
|
92
|
+
width: 0.625rem;
|
|
93
|
+
display: flex;
|
|
94
|
+
margin-right: 0;
|
|
95
|
+
|
|
96
|
+
&:after {
|
|
97
|
+
height: 0.625rem;
|
|
98
|
+
width: 0.625rem;
|
|
99
|
+
font-size: 0.625rem;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
102
|
`;
|
|
103
|
-
const CyclicWarningIcon = styled(Icon).withConfig({ displayName: "CyclicWarningIcon", componentId: "sc-
|
|
104
|
-
flex-shrink: 0;
|
|
105
|
-
color: ${({ theme }) => theme.palette.secondary};
|
|
106
|
-
width: 0.875rem;
|
|
107
|
-
height: 0.875rem;
|
|
108
|
-
|
|
109
|
-
&:after {
|
|
110
|
-
font-size: 0.875rem;
|
|
111
|
-
}
|
|
103
|
+
const CyclicWarningIcon = styled(Icon).withConfig({ displayName: "CyclicWarningIcon", componentId: "sc-auehpr" }) `
|
|
104
|
+
flex-shrink: 0;
|
|
105
|
+
color: ${({ theme }) => theme.palette.secondary};
|
|
106
|
+
width: 0.875rem;
|
|
107
|
+
height: 0.875rem;
|
|
108
|
+
|
|
109
|
+
&:after {
|
|
110
|
+
font-size: 0.875rem;
|
|
111
|
+
}
|
|
112
112
|
`;
|
|
113
|
-
const LoadMoreButton = styled.button.withConfig({ displayName: "LoadMoreButton", componentId: "sc-
|
|
114
|
-
background: none;
|
|
115
|
-
border: none;
|
|
116
|
-
color: ${({ theme }) => theme.palette.primary};
|
|
117
|
-
font-size: 0.75rem;
|
|
118
|
-
cursor: pointer;
|
|
119
|
-
padding: 0.25rem 0.5rem;
|
|
120
|
-
margin-left: 1.125rem;
|
|
121
|
-
border-radius: 0.25rem;
|
|
122
|
-
|
|
123
|
-
&:hover:not(:disabled) {
|
|
124
|
-
background-color: ${({ theme }) => hexToRgba(theme.palette.primary, 0.08)};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&:disabled {
|
|
128
|
-
color: ${({ theme }) => theme.palette.textSecondary};
|
|
129
|
-
cursor: default;
|
|
130
|
-
}
|
|
113
|
+
const LoadMoreButton = styled.button.withConfig({ displayName: "LoadMoreButton", componentId: "sc-wxvulr" }) `
|
|
114
|
+
background: none;
|
|
115
|
+
border: none;
|
|
116
|
+
color: ${({ theme }) => theme.palette.primary};
|
|
117
|
+
font-size: 0.75rem;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
padding: 0.25rem 0.5rem;
|
|
120
|
+
margin-left: 1.125rem;
|
|
121
|
+
border-radius: 0.25rem;
|
|
122
|
+
|
|
123
|
+
&:hover:not(:disabled) {
|
|
124
|
+
background-color: ${({ theme }) => hexToRgba(theme.palette.primary, 0.08)};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:disabled {
|
|
128
|
+
color: ${({ theme }) => theme.palette.textSecondary};
|
|
129
|
+
cursor: default;
|
|
130
|
+
}
|
|
131
131
|
`;
|
|
132
|
-
const TempNodeBadge = styled.div.withConfig({ displayName: "TempNodeBadge", componentId: "sc-
|
|
133
|
-
display: flex;
|
|
134
|
-
align-items: center;
|
|
135
|
-
box-sizing: border-box;
|
|
136
|
-
height: 16px;
|
|
137
|
-
margin: 0;
|
|
138
|
-
padding: 2px 4px;
|
|
139
|
-
border-radius: 4px;
|
|
140
|
-
background: ${({ theme }) => theme.palette.primary};
|
|
141
|
-
color: white;
|
|
142
|
-
font-size: 10px;
|
|
143
|
-
font-weight: 600;
|
|
144
|
-
line-height: 14px;
|
|
132
|
+
const TempNodeBadge = styled.div.withConfig({ displayName: "TempNodeBadge", componentId: "sc-qze4r1" }) `
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
height: 16px;
|
|
137
|
+
margin: 0;
|
|
138
|
+
padding: 2px 4px;
|
|
139
|
+
border-radius: 4px;
|
|
140
|
+
background: ${({ theme }) => theme.palette.primary};
|
|
141
|
+
color: white;
|
|
142
|
+
font-size: 10px;
|
|
143
|
+
font-weight: 600;
|
|
144
|
+
line-height: 14px;
|
|
145
145
|
`;
|
|
146
|
-
const NodeNameInput = styled(Input).withConfig({ displayName: "NodeNameInput", componentId: "sc-
|
|
147
|
-
height: 18px;
|
|
148
|
-
padding: 4px;
|
|
149
|
-
font-size: 0.75rem;
|
|
150
|
-
margin-left: 5px;
|
|
151
|
-
border-radius: 0.25rem;
|
|
146
|
+
const NodeNameInput = styled(Input).withConfig({ displayName: "NodeNameInput", componentId: "sc-15ewojg" }) `
|
|
147
|
+
height: 18px;
|
|
148
|
+
padding: 4px;
|
|
149
|
+
font-size: 0.75rem;
|
|
150
|
+
margin-left: 5px;
|
|
151
|
+
border-radius: 0.25rem;
|
|
152
152
|
`;
|
|
153
|
-
const DragItemContainer = styled(TreeContent).withConfig({ displayName: "DragItemContainer", componentId: "sc-
|
|
154
|
-
padding-left: 18px;
|
|
155
|
-
padding-top: 2px;
|
|
156
|
-
box-sizing: border-box;
|
|
153
|
+
const DragItemContainer = styled(TreeContent).withConfig({ displayName: "DragItemContainer", componentId: "sc-p3qwj4" }) `
|
|
154
|
+
padding-left: 18px;
|
|
155
|
+
padding-top: 2px;
|
|
156
|
+
box-sizing: border-box;
|
|
157
157
|
`;
|
|
158
|
-
const DragItemText = styled(TreeText).withConfig({ displayName: "DragItemText", componentId: "sc-
|
|
159
|
-
font-weight: ${({ $isLeaf }) => ($isLeaf ? "700" : "400")};
|
|
160
|
-
color: ${({ theme }) => theme.palette.textPrimary};
|
|
158
|
+
const DragItemText = styled(TreeText).withConfig({ displayName: "DragItemText", componentId: "sc-13hbwra" }) `
|
|
159
|
+
font-weight: ${({ $isLeaf }) => ($isLeaf ? "700" : "400")};
|
|
160
|
+
color: ${({ theme }) => theme.palette.textPrimary};
|
|
161
161
|
`;
|
|
162
162
|
|
|
163
163
|
export { CyclicWarningIcon, DragItemContainer, DragItemText, LoadMoreButton, NavigationTreeWrapper, NodeNameInput, StyledCatalogTree, TempNodeBadge, TreeItemActions, TreeItemChip };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { DevModeThunk } from "../../../core";
|
|
2
|
-
export declare const uploadCatalogFile: ({ parentId, file, rewrite
|
|
2
|
+
export declare const uploadCatalogFile: ({ parentId, file, rewrite }: {
|
|
3
3
|
parentId: string;
|
|
4
4
|
file: File;
|
|
5
|
-
/** Перезапись одноимённого файла: флаг уходит в запрос всегда, `undefined` сервер не принимает. */
|
|
6
5
|
rewrite?: boolean;
|
|
7
6
|
}) => DevModeThunk<Promise<void>>;
|
|
8
7
|
export declare const createEmptyCatalogFile: ({ parentId, name }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { catalogFolderInvalidated } from '../api/catalogApi.js';
|
|
2
2
|
|
|
3
|
-
const uploadCatalogFile = ({ parentId, file, rewrite
|
|
3
|
+
const uploadCatalogFile = ({ parentId, file, rewrite }) => async (dispatch, _getState, { getEnv }) => {
|
|
4
4
|
const api = getEnv().global?.api;
|
|
5
5
|
if (!api) {
|
|
6
6
|
return;
|