@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
|
@@ -1,147 +1,147 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { Flex, textOverflowEllipsisMixin, Icon, IconButtonButton } from '@evergis/uilib-gl';
|
|
3
3
|
|
|
4
|
-
const EqlEditorContainer = styled.div.withConfig({ displayName: "EqlEditorContainer", componentId: "sc-
|
|
5
|
-
flex: 1;
|
|
6
|
-
width: 100%;
|
|
7
|
-
min-height: 0;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
position: relative;
|
|
4
|
+
const EqlEditorContainer = styled.div.withConfig({ displayName: "EqlEditorContainer", componentId: "sc-10p8rrc" }) `
|
|
5
|
+
flex: 1;
|
|
6
|
+
width: 100%;
|
|
7
|
+
min-height: 0;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
position: relative;
|
|
11
11
|
`;
|
|
12
|
-
const EqlSectionsBar = styled.div.withConfig({ displayName: "EqlSectionsBar", componentId: "sc-
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
flex: 1;
|
|
16
|
-
min-width: 0;
|
|
17
|
-
height: 100%;
|
|
12
|
+
const EqlSectionsBar = styled.div.withConfig({ displayName: "EqlSectionsBar", componentId: "sc-1ju3e5v" }) `
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
flex: 1;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
height: 100%;
|
|
18
18
|
`;
|
|
19
|
-
const EqlSectionTab = styled.button.withConfig({ displayName: "EqlSectionTab", componentId: "sc-
|
|
20
|
-
padding: 0.25rem 0.5rem;
|
|
21
|
-
border: none;
|
|
22
|
-
border-bottom: 2px solid ${({ $active, theme: { palette } }) => ($active ? palette.primary : "transparent")};
|
|
23
|
-
background: none;
|
|
24
|
-
font-family: inherit;
|
|
25
|
-
font-size: 0.75rem;
|
|
26
|
-
font-weight: bold;
|
|
27
|
-
line-height: 0.875rem;
|
|
28
|
-
color: ${({ theme: { palette } }) => palette.textPrimary};
|
|
29
|
-
opacity: ${({ $active }) => ($active ? 1 : 0.36)};
|
|
30
|
-
cursor: pointer;
|
|
19
|
+
const EqlSectionTab = styled.button.withConfig({ displayName: "EqlSectionTab", componentId: "sc-1ls3w37" }) `
|
|
20
|
+
padding: 0.25rem 0.5rem;
|
|
21
|
+
border: none;
|
|
22
|
+
border-bottom: 2px solid ${({ $active, theme: { palette } }) => ($active ? palette.primary : "transparent")};
|
|
23
|
+
background: none;
|
|
24
|
+
font-family: inherit;
|
|
25
|
+
font-size: 0.75rem;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
line-height: 0.875rem;
|
|
28
|
+
color: ${({ theme: { palette } }) => palette.textPrimary};
|
|
29
|
+
opacity: ${({ $active }) => ($active ? 1 : 0.36)};
|
|
30
|
+
cursor: pointer;
|
|
31
31
|
`;
|
|
32
|
-
const ResultsTextContainer = styled.div.withConfig({ displayName: "ResultsTextContainer", componentId: "sc-
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
width: 100%;
|
|
36
|
-
height: 100%;
|
|
37
|
-
min-height: 1px;
|
|
38
|
-
font-size: 14px;
|
|
39
|
-
overflow-y: auto;
|
|
40
|
-
background-color: ${({ theme: { palette } }) => palette.devBackgroundDark};
|
|
41
|
-
box-sizing: border-box;
|
|
42
|
-
padding: 0.75rem 0.75rem 0;
|
|
43
|
-
|
|
44
|
-
pre {
|
|
45
|
-
margin: 0;
|
|
46
|
-
}
|
|
32
|
+
const ResultsTextContainer = styled.div.withConfig({ displayName: "ResultsTextContainer", componentId: "sc-atxgd5" }) `
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
min-height: 1px;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
background-color: ${({ theme: { palette } }) => palette.devBackgroundDark};
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
padding: 0.75rem 0.75rem 0;
|
|
43
|
+
|
|
44
|
+
pre {
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
47
|
`;
|
|
48
|
-
const ResultsFormWrapper = styled.div.withConfig({ displayName: "ResultsFormWrapper", componentId: "sc-
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
background-color: ${({ theme: { palette } }) => palette.background};
|
|
52
|
-
width: 100%;
|
|
53
|
-
height: 100%;
|
|
54
|
-
min-height: 1px;
|
|
55
|
-
overflow-y: auto;
|
|
56
|
-
overflow-x: hidden;
|
|
48
|
+
const ResultsFormWrapper = styled.div.withConfig({ displayName: "ResultsFormWrapper", componentId: "sc-18tji7e" }) `
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
background-color: ${({ theme: { palette } }) => palette.background};
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
min-height: 1px;
|
|
55
|
+
overflow-y: auto;
|
|
56
|
+
overflow-x: hidden;
|
|
57
57
|
`;
|
|
58
|
-
const ResultsFormContainer = styled.div.withConfig({ displayName: "ResultsFormContainer", componentId: "sc-
|
|
59
|
-
display: flex;
|
|
60
|
-
flex-direction: column;
|
|
61
|
-
gap: 1rem 0.5rem;
|
|
62
|
-
background-color: ${({ theme: { palette } }) => palette.background};
|
|
63
|
-
box-sizing: border-box;
|
|
64
|
-
padding: 0.75rem 0.75rem 0;
|
|
65
|
-
width: 100%;
|
|
66
|
-
max-width: ${({ $maxWidth = "unset" }) => $maxWidth};
|
|
67
|
-
height: 100%;
|
|
68
|
-
min-height: 1px;
|
|
58
|
+
const ResultsFormContainer = styled.div.withConfig({ displayName: "ResultsFormContainer", componentId: "sc-1voovxf" }) `
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: 1rem 0.5rem;
|
|
62
|
+
background-color: ${({ theme: { palette } }) => palette.background};
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
padding: 0.75rem 0.75rem 0;
|
|
65
|
+
width: 100%;
|
|
66
|
+
max-width: ${({ $maxWidth = "unset" }) => $maxWidth};
|
|
67
|
+
height: 100%;
|
|
68
|
+
min-height: 1px;
|
|
69
69
|
`;
|
|
70
|
-
const ResultsMapContainer = styled.div.withConfig({ displayName: "ResultsMapContainer", componentId: "sc-
|
|
71
|
-
position: relative;
|
|
72
|
-
flex: 1;
|
|
73
|
-
min-height: 0;
|
|
74
|
-
width: 100%;
|
|
75
|
-
height: ${({ $height }) => ($height === undefined ? "100%" : `${$height}px`)};
|
|
76
|
-
overflow: hidden;
|
|
77
|
-
display: flex;
|
|
78
|
-
flex-direction: column;
|
|
70
|
+
const ResultsMapContainer = styled.div.withConfig({ displayName: "ResultsMapContainer", componentId: "sc-1x30ze" }) `
|
|
71
|
+
position: relative;
|
|
72
|
+
flex: 1;
|
|
73
|
+
min-height: 0;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: ${({ $height }) => ($height === undefined ? "100%" : `${$height}px`)};
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
79
|
`;
|
|
80
|
-
const ResultsBarConfiguration = styled.div.withConfig({ displayName: "ResultsBarConfiguration", componentId: "sc-
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-wrap: nowrap;
|
|
83
|
-
overflow: hidden;
|
|
84
|
-
align-items: center;
|
|
85
|
-
gap: 0 0.5rem;
|
|
86
|
-
flex-shrink: 1;
|
|
87
|
-
min-width: 1px;
|
|
80
|
+
const ResultsBarConfiguration = styled.div.withConfig({ displayName: "ResultsBarConfiguration", componentId: "sc-1sn900d" }) `
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-wrap: nowrap;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: 0 0.5rem;
|
|
86
|
+
flex-shrink: 1;
|
|
87
|
+
min-width: 1px;
|
|
88
88
|
`;
|
|
89
|
-
const ResultsBarItem = styled.div.withConfig({ displayName: "ResultsBarItem", componentId: "sc-
|
|
90
|
-
display: flex;
|
|
91
|
-
align-items: center;
|
|
92
|
-
gap: 0 0.25rem;
|
|
93
|
-
font-size: 10px;
|
|
94
|
-
color: ${({ theme: { palette } }) => palette.icon};
|
|
95
|
-
|
|
96
|
-
${Icon} {
|
|
97
|
-
width: 14px;
|
|
98
|
-
height: 14px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
${Icon}:after {
|
|
102
|
-
font-size: 14px;
|
|
103
|
-
}
|
|
89
|
+
const ResultsBarItem = styled.div.withConfig({ displayName: "ResultsBarItem", componentId: "sc-x73gez" }) `
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: 0 0.25rem;
|
|
93
|
+
font-size: 10px;
|
|
94
|
+
color: ${({ theme: { palette } }) => palette.icon};
|
|
95
|
+
|
|
96
|
+
${Icon} {
|
|
97
|
+
width: 14px;
|
|
98
|
+
height: 14px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
${Icon}:after {
|
|
102
|
+
font-size: 14px;
|
|
103
|
+
}
|
|
104
104
|
`;
|
|
105
|
-
const ResultsBarDivider = styled.div.withConfig({ displayName: "ResultsBarDivider", componentId: "sc-
|
|
106
|
-
width: 1px;
|
|
107
|
-
height: 14px;
|
|
108
|
-
background-color: ${({ theme: { palette } }) => palette.textPrimary};
|
|
109
|
-
opacity: 0.12;
|
|
110
|
-
flex-shrink: 0;
|
|
105
|
+
const ResultsBarDivider = styled.div.withConfig({ displayName: "ResultsBarDivider", componentId: "sc-n6kvxj" }) `
|
|
106
|
+
width: 1px;
|
|
107
|
+
height: 14px;
|
|
108
|
+
background-color: ${({ theme: { palette } }) => palette.textPrimary};
|
|
109
|
+
opacity: 0.12;
|
|
110
|
+
flex-shrink: 0;
|
|
111
111
|
`;
|
|
112
|
-
const ResultsBarTime = styled.div.withConfig({ displayName: "ResultsBarTime", componentId: "sc-
|
|
113
|
-
font-size: 10px;
|
|
114
|
-
color: ${({ theme: { palette } }) => palette.textSecondary};
|
|
115
|
-
white-space: nowrap;
|
|
116
|
-
margin-top: 0.25rem;
|
|
112
|
+
const ResultsBarTime = styled.div.withConfig({ displayName: "ResultsBarTime", componentId: "sc-bvf0ab" }) `
|
|
113
|
+
font-size: 10px;
|
|
114
|
+
color: ${({ theme: { palette } }) => palette.textSecondary};
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
margin-top: 0.25rem;
|
|
117
117
|
`;
|
|
118
|
-
const ResultsBarMenu = styled.div.withConfig({ displayName: "ResultsBarMenu", componentId: "sc-
|
|
119
|
-
display: flex;
|
|
120
|
-
align-items: center;
|
|
121
|
-
|
|
122
|
-
${IconButtonButton} {
|
|
123
|
-
height: 1rem;
|
|
124
|
-
width: 1rem;
|
|
125
|
-
padding: 0;
|
|
126
|
-
}
|
|
118
|
+
const ResultsBarMenu = styled.div.withConfig({ displayName: "ResultsBarMenu", componentId: "sc-zadgmz" }) `
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
|
|
122
|
+
${IconButtonButton} {
|
|
123
|
+
height: 1rem;
|
|
124
|
+
width: 1rem;
|
|
125
|
+
padding: 0;
|
|
126
|
+
}
|
|
127
127
|
`;
|
|
128
|
-
const ResultsFooterContainer = styled(Flex).withConfig({ displayName: "ResultsFooterContainer", componentId: "sc-
|
|
129
|
-
align-items: center;
|
|
130
|
-
height: 1.5rem;
|
|
131
|
-
box-sizing: border-box;
|
|
132
|
-
padding: 0 0.5rem;
|
|
133
|
-
flex-shrink: 0;
|
|
134
|
-
background-color: ${({ theme: { palette } }) => palette.devBackgroundDark};
|
|
128
|
+
const ResultsFooterContainer = styled(Flex).withConfig({ displayName: "ResultsFooterContainer", componentId: "sc-dtt46d" }) `
|
|
129
|
+
align-items: center;
|
|
130
|
+
height: 1.5rem;
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
padding: 0 0.5rem;
|
|
133
|
+
flex-shrink: 0;
|
|
134
|
+
background-color: ${({ theme: { palette } }) => palette.devBackgroundDark};
|
|
135
135
|
`;
|
|
136
|
-
const ResultsFooterText = styled(Flex).withConfig({ displayName: "ResultsFooterText", componentId: "sc-
|
|
137
|
-
color: ${({ theme: { palette } }) => palette.textSecondary};
|
|
138
|
-
font-size: 10px;
|
|
139
|
-
${textOverflowEllipsisMixin}
|
|
136
|
+
const ResultsFooterText = styled(Flex).withConfig({ displayName: "ResultsFooterText", componentId: "sc-8fbu9k" }) `
|
|
137
|
+
color: ${({ theme: { palette } }) => palette.textSecondary};
|
|
138
|
+
font-size: 10px;
|
|
139
|
+
${textOverflowEllipsisMixin}
|
|
140
140
|
`;
|
|
141
|
-
const ResultsFooterActions = styled.div.withConfig({ displayName: "ResultsFooterActions", componentId: "sc-
|
|
142
|
-
display: flex;
|
|
143
|
-
align-items: center;
|
|
144
|
-
margin-left: auto;
|
|
141
|
+
const ResultsFooterActions = styled.div.withConfig({ displayName: "ResultsFooterActions", componentId: "sc-17y76t0" }) `
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
margin-left: auto;
|
|
145
145
|
`;
|
|
146
146
|
|
|
147
147
|
export { EqlEditorContainer, EqlSectionTab, EqlSectionsBar, ResultsBarConfiguration, ResultsBarDivider, ResultsBarItem, ResultsBarMenu, ResultsBarTime, ResultsFooterActions, ResultsFooterContainer, ResultsFooterText, ResultsFormContainer, ResultsFormWrapper, ResultsMapContainer, ResultsTextContainer };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
|
-
const FileEditorContainer = styled.div.withConfig({ displayName: "FileEditorContainer", componentId: "sc-
|
|
4
|
-
flex: 1;
|
|
5
|
-
width: 100%;
|
|
6
|
-
min-height: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
position: relative;
|
|
3
|
+
const FileEditorContainer = styled.div.withConfig({ displayName: "FileEditorContainer", componentId: "sc-1gpgpo6" }) `
|
|
4
|
+
flex: 1;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-height: 0;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
position: relative;
|
|
10
10
|
`;
|
|
11
|
-
const FileImageWrapper = styled.div.withConfig({ displayName: "FileImageWrapper", componentId: "sc-
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
height: 100%;
|
|
15
|
-
width: 100%;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
align-items: center;
|
|
11
|
+
const FileImageWrapper = styled.div.withConfig({ displayName: "FileImageWrapper", componentId: "sc-c14rbr" }) `
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
height: 100%;
|
|
15
|
+
width: 100%;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
18
|
`;
|
|
19
19
|
|
|
20
20
|
export { FileEditorContainer, FileImageWrapper };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
|
-
const LayerJsonContainer = styled.div.withConfig({ displayName: "LayerJsonContainer", componentId: "sc-
|
|
4
|
-
display: flex;
|
|
5
|
-
flex: 1;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
width: 100%;
|
|
8
|
-
min-height: 0;
|
|
3
|
+
const LayerJsonContainer = styled.div.withConfig({ displayName: "LayerJsonContainer", componentId: "sc-crfrcl" }) `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex: 1;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-height: 0;
|
|
9
9
|
`;
|
|
10
|
-
const LayerViewSwitchContainer = styled.div.withConfig({ displayName: "LayerViewSwitchContainer", componentId: "sc-
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: 0.25rem;
|
|
10
|
+
const LayerViewSwitchContainer = styled.div.withConfig({ displayName: "LayerViewSwitchContainer", componentId: "sc-1keqli3" }) `
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 0.25rem;
|
|
14
14
|
`;
|
|
15
15
|
|
|
16
16
|
export { LayerJsonContainer, LayerViewSwitchContainer };
|
|
@@ -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-3ga1yb" }) `
|
|
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-1fl9dc3" }) `
|
|
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-5b3rgi" }) `
|
|
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-y3eb1p" }) `
|
|
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-1ra37yx" }) `
|
|
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-1qz41le" }) `
|
|
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-672z5p" }) `
|
|
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-c04u36" }) `
|
|
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-1ejnnjr" }) `
|
|
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-1qbmrmk" }) `
|
|
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 };
|