@evergis/apps 0.1.10 → 0.1.12

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.
Files changed (67) hide show
  1. package/README.md +118 -118
  2. package/dist/catalog/attributeFormat/Settings/styled.js +8 -8
  3. package/dist/catalog/attributeFormat/styled.js +171 -171
  4. package/dist/catalog/dialogs/EditResource/styled.js +22 -22
  5. package/dist/catalog/dialogs/ResourcePreview/styled.js +52 -52
  6. package/dist/catalog/dialogs/styled.js +87 -87
  7. package/dist/catalog/fields/ResourceTypeTiles/styled.js +56 -56
  8. package/dist/catalog/fields/styled.js +81 -81
  9. package/dist/catalog/geometry/GeometrySelector/styled.js +48 -48
  10. package/dist/catalog/selectors/AttributeSelector/styled.js +2 -2
  11. package/dist/catalog/selectors/DataSourceItemsList/styled.js +95 -95
  12. package/dist/catalog/selectors/DataSourcePicker/styled.js +11 -11
  13. package/dist/catalog/selectors/ResourceSelector/styled.js +11 -11
  14. package/dist/devmode/components/JsonTree/styled.js +84 -84
  15. package/dist/devmode/components/LayerCardPane/styled.js +53 -53
  16. package/dist/devmode/components/Markdown/MarkdownEditor/styled.js +43 -43
  17. package/dist/devmode/components/Markdown/MarkdownOutput/styled.js +10 -10
  18. package/dist/devmode/components/OutlinePanel/styled.js +40 -40
  19. package/dist/devmode/components/ResourceIcon/styled.js +30 -30
  20. package/dist/devmode/components/ResultsTable/styled.js +48 -48
  21. package/dist/devmode/components/RunErrorMessage/styled.js +20 -20
  22. package/dist/devmode/components/TreeExpand/index.js +12 -12
  23. package/dist/devmode/layout/DevModePanel/styled.js +20 -20
  24. package/dist/devmode/layout/DevModeTools/styled.js +29 -29
  25. package/dist/devmode/layout/NavigationSections/Header/styled.js +87 -87
  26. package/dist/devmode/layout/NavigationToggle/styled.js +21 -21
  27. package/dist/devmode/layout/PanelSwitcher/styled.js +49 -49
  28. package/dist/devmode/layout/StatusBar/styled.js +39 -39
  29. package/dist/devmode/layout/WorkspaceHeader/styled.js +37 -37
  30. package/dist/devmode/modules/eql/components/EqlEditor/styled.js +4 -4
  31. package/dist/devmode/modules/eql/components/QueryTypeSelect/styled.js +53 -53
  32. package/dist/devmode/modules/eql/components/modes/EqlConfigurationMode/AddConfiguration/styled.js +24 -24
  33. package/dist/devmode/modules/eql/dialogs/AddParameterDialog/styled.js +3 -3
  34. package/dist/devmode/modules/eql/styled.js +127 -127
  35. package/dist/devmode/modules/files/styled.js +14 -14
  36. package/dist/devmode/modules/layer/styled.js +10 -10
  37. package/dist/devmode/modules/navigation-catalog/hooks/useCatalogReveal.js +14 -6
  38. package/dist/devmode/modules/navigation-catalog/hooks/useCatalogReveal.js.map +1 -1
  39. package/dist/devmode/modules/navigation-catalog/styled.js +147 -147
  40. package/dist/devmode/modules/navigation-catalog/thunks/catalogFiles.d.ts +2 -1
  41. package/dist/devmode/modules/navigation-catalog/thunks/catalogFiles.js +1 -1
  42. package/dist/devmode/modules/python/components/Notebook/styled.js +203 -203
  43. package/dist/devmode/modules/python/components/PythonFileContent/styled.js +6 -6
  44. package/dist/devmode/modules/python/components/PythonRunBar/styled.js +5 -5
  45. package/dist/devmode/modules/python/components/PythonRunControl/styled.js +9 -9
  46. package/dist/devmode/modules/python/components/PythonRunLog/styled.js +11 -11
  47. package/dist/devmode/modules/python/components/PythonStatus/styled.js +11 -11
  48. package/dist/devmode/modules/python/components/SandboxesDialog/components/SandboxCard/styled.js +42 -42
  49. package/dist/devmode/modules/python/components/SandboxesDialog/styled.js +58 -58
  50. package/dist/devmode/modules/python/components/WorkerMetrics/styled.js +26 -26
  51. package/dist/devmode/modules/python/dialogs/ViewResponseDialog/styled.js +5 -5
  52. package/dist/devmode/modules/resource-json/styled.js +7 -7
  53. package/dist/devmode/modules/table/components/TableContent/styled.js +18 -18
  54. package/dist/devmode/monaco/MonacoEditor/styled.js +6 -6
  55. package/dist/devmode/monaco/ReadonlyMonacoEditor/styled.js +24 -24
  56. package/dist/devmode/navigation/CategoryTree/styled.js +65 -65
  57. package/dist/devmode/navigation/NodeActionsMenu/styled.js +63 -63
  58. package/dist/devmode/tabs/Panes/PaneHandle/styled.js +45 -45
  59. package/dist/devmode/tabs/Panes/styled.js +21 -21
  60. package/dist/devmode/tabs/ResultsDock/styled.js +35 -35
  61. package/dist/devmode/tabs/TabActions/styled.js +50 -50
  62. package/dist/devmode/tabs/TabPane/styled.js +6 -6
  63. package/dist/devmode/tabs/Tabs/Tab/styled.js +105 -105
  64. package/dist/devmode/tabs/Tabs/styled.js +61 -61
  65. package/dist/devmode/tabs/states/styled.js +2 -2
  66. package/dist/devmode/tabs/styled.js +37 -37
  67. package/package.json +5 -5
@@ -1,63 +1,63 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const QueryTypeSelectButton = styled.button.withConfig({ displayName: "QueryTypeSelectButton", componentId: "sc-19ioung" }) `
4
- display: flex;
5
- align-items: center;
6
- justify-content: center;
7
- padding: 5px;
8
- gap: 0.25rem;
9
- border: none;
10
- border-radius: 0.25rem;
11
- background: transparent;
12
- cursor: pointer;
13
- height: 100%;
14
-
15
- &:hover {
16
- background: ${({ theme: { palette } }) => palette.element};
17
- }
3
+ const QueryTypeSelectButton = styled.button.withConfig({ displayName: "QueryTypeSelectButton", componentId: "sc-87w6o4" }) `
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ padding: 5px;
8
+ gap: 0.25rem;
9
+ border: none;
10
+ border-radius: 0.25rem;
11
+ background: transparent;
12
+ cursor: pointer;
13
+ height: 100%;
14
+
15
+ &:hover {
16
+ background: ${({ theme: { palette } }) => palette.element};
17
+ }
18
18
  `;
19
- const QueryTypeOptionsContainer = styled.div.withConfig({ displayName: "QueryTypeOptionsContainer", componentId: "sc-mt28f" }) `
20
- display: flex;
21
- flex-direction: column;
22
- min-height: 1.25em;
23
- border-radius: 0.25rem;
19
+ const QueryTypeOptionsContainer = styled.div.withConfig({ displayName: "QueryTypeOptionsContainer", componentId: "sc-6xr98p" }) `
20
+ display: flex;
21
+ flex-direction: column;
22
+ min-height: 1.25em;
23
+ border-radius: 0.25rem;
24
24
  `;
25
- const QueryTypeOption = styled.div.withConfig({ displayName: "QueryTypeOption", componentId: "sc-77rvlc" }) `
26
- display: flex;
27
- align-items: center;
28
- gap: 0.5rem;
29
- padding: 11px 1rem;
30
- width: 100%;
31
- box-sizing: border-box;
32
- background: ${({ $selected, theme: { dropdown } }) => ($selected ? dropdown.selectedBackgroundColor : "transparent")};
33
- border-radius: 0.25rem;
34
- cursor: pointer;
35
-
36
- &:hover {
37
- background: ${({ $selected, theme: { dropdown } }) => $selected ? dropdown.selectedBackgroundColor : dropdown.hoverBackgroundColor};
38
- }
39
-
40
- &:first-child {
41
- border-radius: 0.25rem 0.25rem 0 0;
42
- }
43
-
44
- &:last-child {
45
- border-radius: 0 0 0.25rem 0.25rem;
46
- }
25
+ const QueryTypeOption = styled.div.withConfig({ displayName: "QueryTypeOption", componentId: "sc-w7vf77" }) `
26
+ display: flex;
27
+ align-items: center;
28
+ gap: 0.5rem;
29
+ padding: 11px 1rem;
30
+ width: 100%;
31
+ box-sizing: border-box;
32
+ background: ${({ $selected, theme: { dropdown } }) => ($selected ? dropdown.selectedBackgroundColor : "transparent")};
33
+ border-radius: 0.25rem;
34
+ cursor: pointer;
35
+
36
+ &:hover {
37
+ background: ${({ $selected, theme: { dropdown } }) => $selected ? dropdown.selectedBackgroundColor : dropdown.hoverBackgroundColor};
38
+ }
39
+
40
+ &:first-child {
41
+ border-radius: 0.25rem 0.25rem 0 0;
42
+ }
43
+
44
+ &:last-child {
45
+ border-radius: 0 0 0.25rem 0.25rem;
46
+ }
47
47
  `;
48
- const QueryTypeOptionContent = styled.div.withConfig({ displayName: "QueryTypeOptionContent", componentId: "sc-1srkd6p" }) `
49
- display: flex;
50
- flex-direction: column;
51
- gap: 0.25rem;
52
- flex: 1;
53
- min-width: 0;
48
+ const QueryTypeOptionContent = styled.div.withConfig({ displayName: "QueryTypeOptionContent", componentId: "sc-1myebig" }) `
49
+ display: flex;
50
+ flex-direction: column;
51
+ gap: 0.25rem;
52
+ flex: 1;
53
+ min-width: 0;
54
54
  `;
55
- const QueryTypeOptionLabel = styled.div.withConfig({ displayName: "QueryTypeOptionLabel", componentId: "sc-1tidef9" }) `
56
- font-weight: 400;
55
+ const QueryTypeOptionLabel = styled.div.withConfig({ displayName: "QueryTypeOptionLabel", componentId: "sc-kwkqxo" }) `
56
+ font-weight: 400;
57
57
  `;
58
- const QueryTypeOptionDescription = styled.div.withConfig({ displayName: "QueryTypeOptionDescription", componentId: "sc-mv5qad" }) `
59
- font-size: 10px;
60
- color: ${({ theme: { palette } }) => palette.textSecondary};
58
+ const QueryTypeOptionDescription = styled.div.withConfig({ displayName: "QueryTypeOptionDescription", componentId: "sc-14g7ux5" }) `
59
+ font-size: 10px;
60
+ color: ${({ theme: { palette } }) => palette.textSecondary};
61
61
  `;
62
62
 
63
63
  export { QueryTypeOption, QueryTypeOptionContent, QueryTypeOptionDescription, QueryTypeOptionLabel, QueryTypeOptionsContainer, QueryTypeSelectButton };
@@ -1,33 +1,33 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const MappingSection = styled.div.withConfig({ displayName: "MappingSection", componentId: "sc-tf0o8q" }) `
4
- display: flex;
5
- flex-direction: column;
6
- gap: 0.5rem;
7
- width: 100%;
3
+ const MappingSection = styled.div.withConfig({ displayName: "MappingSection", componentId: "sc-18dcj51" }) `
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 0.5rem;
7
+ width: 100%;
8
8
  `;
9
- const MappingTitle = styled.div.withConfig({ displayName: "MappingTitle", componentId: "sc-1ex9brs" }) `
10
- font-weight: 600;
11
- font-size: 0.875rem;
9
+ const MappingTitle = styled.div.withConfig({ displayName: "MappingTitle", componentId: "sc-21y7bt" }) `
10
+ font-weight: 600;
11
+ font-size: 0.875rem;
12
12
  `;
13
- const SectionRow = styled.div.withConfig({ displayName: "SectionRow", componentId: "sc-dvw7jj" }) `
14
- display: flex;
15
- gap: 0 0.75rem;
16
- width: 100%;
13
+ const SectionRow = styled.div.withConfig({ displayName: "SectionRow", componentId: "sc-1d129d2" }) `
14
+ display: flex;
15
+ gap: 0 0.75rem;
16
+ width: 100%;
17
17
  `;
18
- const MappingRow = styled.div.withConfig({ displayName: "MappingRow", componentId: "sc-1pzdvl8" }) `
19
- display: flex;
20
- align-items: center;
21
- gap: 0.25rem;
22
- width: 100%;
18
+ const MappingRow = styled.div.withConfig({ displayName: "MappingRow", componentId: "sc-q0typj" }) `
19
+ display: flex;
20
+ align-items: center;
21
+ gap: 0.25rem;
22
+ width: 100%;
23
23
  `;
24
- const MappingArrow = styled.div.withConfig({ displayName: "MappingArrow", componentId: "sc-p7xa6r" }) `
25
- display: flex;
26
- align-items: center;
27
- justify-content: center;
28
- width: 1.5rem;
29
- flex-shrink: 0;
30
- opacity: 0.65;
24
+ const MappingArrow = styled.div.withConfig({ displayName: "MappingArrow", componentId: "sc-q3zljb" }) `
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ width: 1.5rem;
29
+ flex-shrink: 0;
30
+ opacity: 0.65;
31
31
  `;
32
32
 
33
33
  export { MappingArrow, MappingRow, MappingSection, MappingTitle, SectionRow };
@@ -1,8 +1,8 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const FieldsRow = styled.div.withConfig({ displayName: "FieldsRow", componentId: "sc-t1qet6" }) `
4
- display: flex;
5
- gap: 0 0.5rem;
3
+ const FieldsRow = styled.div.withConfig({ displayName: "FieldsRow", componentId: "sc-g46gfw" }) `
4
+ display: flex;
5
+ gap: 0 0.5rem;
6
6
  `;
7
7
 
8
8
  export { FieldsRow };
@@ -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-px6m5d" }) `
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-2xu4y4" }) `
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-4uvhli" }) `
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-812ggi" }) `
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-frpzu" }) `
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-wngqol" }) `
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-f6ks8j" }) `
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-g7ushm" }) `
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-14r27p9" }) `
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-knecmq" }) `
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-1u2pyxl" }) `
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-ped6yk" }) `
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-j9l4k9" }) `
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-1sesd2a" }) `
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-ft07ev" }) `
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-ryzpq" }) `
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-1brfvke" }) `
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-1y65qmf" }) `
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-1khr3td" }) `
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 };
@@ -42,19 +42,27 @@ const useCatalogReveal = ({ revealId, search, onClearSearch, treeData, setTreeDa
42
42
  const activeTab = useDevModeSelector(selectActiveTab);
43
43
  const activeTabId = activeTab?.id;
44
44
  const activeResourceId = resourceIdOfTab(activeTab);
45
+ const activeTabIsTemp = activeTab?.temp;
45
46
  // Дерево читается после await-ов обхода: его изменения не должны перезапускать раскрытие пути.
46
47
  const treeDataRef = useRef(treeData);
47
- const [trackedTabId, setTrackedTabId] = useState(activeTabId);
48
+ const trackedTabIdRef = useRef(activeTabId);
48
49
  const [tabRevealId, setTabRevealId] = useState();
49
50
  const [handledId, setHandledId] = useState();
50
51
  const targetId = tabRevealId ?? revealId;
51
52
  const isPending = !!targetId && targetId !== handledId;
52
53
  treeDataRef.current = treeData;
53
- // Смена активного таба (не монтирование) раскрывает его ресурс в каталоге.
54
- if (trackedTabId !== activeTabId) {
55
- setTrackedTabId(activeTabId);
56
- setTabRevealId(activeTab?.temp ? undefined : activeResourceId);
57
- }
54
+ /*
55
+ * Смена активного таба (не монтирование) раскрывает его ресурс в каталоге. Смену ловит эффект, а не рендер:
56
+ * обновление состояния прямо в рендере вместе с dispatch из эффекта раскрытия обрывало подписку `useSelector`,
57
+ * и следующие смены вкладки хук уже не видел — подсвечивалась только первая выбранная.
58
+ */
59
+ useEffect(() => {
60
+ if (trackedTabIdRef.current === activeTabId) {
61
+ return;
62
+ }
63
+ trackedTabIdRef.current = activeTabId;
64
+ setTabRevealId(activeTabIsTemp ? undefined : activeResourceId);
65
+ }, [activeResourceId, activeTabId, activeTabIsTemp]);
58
66
  useEffect(() => {
59
67
  if (!isPending || !targetId) {
60
68
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useCatalogReveal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"useCatalogReveal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}