@evergis/react 3.1.73 → 3.1.75
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/dist/components/Dashboard/components/LogTerminal/index.d.ts +9 -0
- package/dist/components/Dashboard/components/LogTerminal/styled.d.ts +1 -0
- package/dist/components/Dashboard/components/index.d.ts +1 -0
- package/dist/index.js +147 -133
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +147 -134
- package/dist/react.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/react.esm.js
CHANGED
|
@@ -22,9 +22,9 @@ import 'mapbox-gl/dist/mapbox-gl.css';
|
|
|
22
22
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
23
23
|
import ReactMarkdown from 'react-markdown';
|
|
24
24
|
import remarkGfm from 'remark-gfm';
|
|
25
|
-
import '@xterm/xterm/css/xterm.css';
|
|
26
25
|
import { Terminal } from '@xterm/xterm';
|
|
27
26
|
import { FitAddon } from '@xterm/addon-fit';
|
|
27
|
+
import '@xterm/xterm/css/xterm.css';
|
|
28
28
|
|
|
29
29
|
const AddFeatureButton = ({ title, icon = "feature_add" /* , layerName, geometryType*/ }) => {
|
|
30
30
|
// const [, handleAddFeature] = useFeatureCreator(layerName, geometryType);
|
|
@@ -5685,14 +5685,15 @@ const OneColumnContainer = memo(({ elementConfig, renderElement }) => {
|
|
|
5685
5685
|
const TwoColumnContainer = memo(({ config, elementConfig, type, renderElement }) => {
|
|
5686
5686
|
const { selectedTabId, layerInfo, attributes } = useWidgetContext(type);
|
|
5687
5687
|
const { attributes: renderAttributes } = elementConfig?.options || {};
|
|
5688
|
-
const renderContainer = useCallback((
|
|
5689
|
-
const { id, options, style, children } =
|
|
5688
|
+
const renderContainer = useCallback((attribute) => {
|
|
5689
|
+
const { id, options, style, children } = elementConfig || {};
|
|
5690
5690
|
const { hideEmpty, innerTemplateStyle } = options || {};
|
|
5691
5691
|
const hasUnits = children?.some(({ id }) => id === "units");
|
|
5692
5692
|
const iconIndex = children?.findIndex(({ id }) => id === "icon");
|
|
5693
5693
|
const icon = children?.[iconIndex];
|
|
5694
5694
|
const hasIcon = !!icon;
|
|
5695
|
-
const elementChildren =
|
|
5695
|
+
const elementChildren = elementConfig?.children?.map(child => ({
|
|
5696
|
+
type: "attributeValue",
|
|
5696
5697
|
...child,
|
|
5697
5698
|
attributeName: attribute,
|
|
5698
5699
|
options: { noUnits: hasUnits, ...child.options },
|
|
@@ -5712,7 +5713,7 @@ const TwoColumnContainer = memo(({ config, elementConfig, type, renderElement })
|
|
|
5712
5713
|
? getRenderElement({
|
|
5713
5714
|
config,
|
|
5714
5715
|
elementConfig: {
|
|
5715
|
-
...
|
|
5716
|
+
...elementConfig,
|
|
5716
5717
|
children: elementChildren,
|
|
5717
5718
|
},
|
|
5718
5719
|
selectedTabId,
|
|
@@ -5725,8 +5726,8 @@ const TwoColumnContainer = memo(({ config, elementConfig, type, renderElement })
|
|
|
5725
5726
|
if (!value && hideEmpty)
|
|
5726
5727
|
return null;
|
|
5727
5728
|
return (jsxs(TwoColumnContainerWrapper, { id: id, style: innerTemplateStyle || style, children: [jsxs(ContainerAlias, { children: [hasIcon && jsx(ContainerAliasIcon, { children: render({ id: "icon" }) }), render({ id: "alias" }), render({ id: "tooltip" })] }), jsxs(ContainerValue, { big: true, children: [value, hasUnits && jsx(ContainerUnits, { children: render({ id: "units" }) })] })] }, attribute));
|
|
5728
|
-
}, [attributes, config, getRenderElement, layerInfo, renderElement, selectedTabId, type]);
|
|
5729
|
-
return renderAttributes?.length ? (jsx(Fragment$1, { children: renderAttributes.map(attribute => renderContainer(
|
|
5729
|
+
}, [attributes, config, getRenderElement, layerInfo, renderElement, selectedTabId, type, elementConfig]);
|
|
5730
|
+
return renderAttributes?.length ? (jsx(Fragment$1, { children: renderAttributes.map(attribute => renderContainer(attribute)) })) : (renderContainer());
|
|
5730
5731
|
});
|
|
5731
5732
|
|
|
5732
5733
|
const InnerContainerWrapper = styled.div `
|
|
@@ -6845,121 +6846,6 @@ const StatusBadge = styled(Chip) `
|
|
|
6845
6846
|
color: ${({ theme }) => theme.palette.iconContrast};
|
|
6846
6847
|
`;
|
|
6847
6848
|
|
|
6848
|
-
const TerminalWrapper = styled.div `
|
|
6849
|
-
flex: 1;
|
|
6850
|
-
overflow: hidden;
|
|
6851
|
-
padding: 0;
|
|
6852
|
-
margin: 0;
|
|
6853
|
-
box-sizing: border-box;
|
|
6854
|
-
min-height: 0;
|
|
6855
|
-
|
|
6856
|
-
.xterm-viewport {
|
|
6857
|
-
overflow-y: auto;
|
|
6858
|
-
}
|
|
6859
|
-
|
|
6860
|
-
.xterm-screen .xterm-rows span {
|
|
6861
|
-
letter-spacing: 0 !important;
|
|
6862
|
-
}
|
|
6863
|
-
`;
|
|
6864
|
-
|
|
6865
|
-
const LogTerminal = ({ log }) => {
|
|
6866
|
-
const terminalRef = useRef(null);
|
|
6867
|
-
const xtermRef = useRef(null);
|
|
6868
|
-
const fitAddonRef = useRef(null);
|
|
6869
|
-
const previousLogRef = useRef("");
|
|
6870
|
-
const theme = useTheme();
|
|
6871
|
-
useEffect(() => {
|
|
6872
|
-
if (!terminalRef.current)
|
|
6873
|
-
return;
|
|
6874
|
-
// Create terminal instance
|
|
6875
|
-
const terminal = new Terminal({
|
|
6876
|
-
cursorBlink: false,
|
|
6877
|
-
fontSize: 12,
|
|
6878
|
-
fontFamily: '"Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro", monospace',
|
|
6879
|
-
scrollback: 10000,
|
|
6880
|
-
convertEol: true,
|
|
6881
|
-
lineHeight: 1.5,
|
|
6882
|
-
theme: {
|
|
6883
|
-
background: theme.palette.background,
|
|
6884
|
-
foreground: theme.palette.textPrimary,
|
|
6885
|
-
cursor: theme.palette.primary,
|
|
6886
|
-
},
|
|
6887
|
-
});
|
|
6888
|
-
// Create fit addon
|
|
6889
|
-
const fitAddon = new FitAddon();
|
|
6890
|
-
terminal.loadAddon(fitAddon);
|
|
6891
|
-
// Open terminal
|
|
6892
|
-
terminal.open(terminalRef.current);
|
|
6893
|
-
fitAddon.fit();
|
|
6894
|
-
// Store refs
|
|
6895
|
-
xtermRef.current = terminal;
|
|
6896
|
-
fitAddonRef.current = fitAddon;
|
|
6897
|
-
// Handle window resize
|
|
6898
|
-
const handleResize = () => {
|
|
6899
|
-
fitAddon.fit();
|
|
6900
|
-
};
|
|
6901
|
-
window.addEventListener("resize", handleResize);
|
|
6902
|
-
// Cleanup
|
|
6903
|
-
return () => {
|
|
6904
|
-
window.removeEventListener("resize", handleResize);
|
|
6905
|
-
terminal.dispose();
|
|
6906
|
-
xtermRef.current = null;
|
|
6907
|
-
fitAddonRef.current = null;
|
|
6908
|
-
};
|
|
6909
|
-
}, [theme]);
|
|
6910
|
-
// Update log content
|
|
6911
|
-
useEffect(() => {
|
|
6912
|
-
if (!xtermRef.current)
|
|
6913
|
-
return;
|
|
6914
|
-
// Handle different log types
|
|
6915
|
-
if (typeof log === "string") {
|
|
6916
|
-
// For string logs, only write the new content (append mode)
|
|
6917
|
-
const previousLog = previousLogRef.current;
|
|
6918
|
-
if (log !== previousLog) {
|
|
6919
|
-
if (log.startsWith(previousLog)) {
|
|
6920
|
-
// Log is accumulated - write only the new part
|
|
6921
|
-
const newContent = log.substring(previousLog.length);
|
|
6922
|
-
xtermRef.current.write(newContent);
|
|
6923
|
-
}
|
|
6924
|
-
else {
|
|
6925
|
-
// Log was replaced completely - clear and write all
|
|
6926
|
-
xtermRef.current.clear();
|
|
6927
|
-
xtermRef.current.write(log);
|
|
6928
|
-
}
|
|
6929
|
-
previousLogRef.current = log;
|
|
6930
|
-
}
|
|
6931
|
-
}
|
|
6932
|
-
else if (typeof log === "object") {
|
|
6933
|
-
// JSON object (results) - always replace
|
|
6934
|
-
xtermRef.current.clear();
|
|
6935
|
-
const formatted = JSON.stringify(log, null, 2);
|
|
6936
|
-
xtermRef.current.write(formatted);
|
|
6937
|
-
previousLogRef.current = "";
|
|
6938
|
-
}
|
|
6939
|
-
else if (!log) {
|
|
6940
|
-
// No log - clear terminal
|
|
6941
|
-
xtermRef.current.clear();
|
|
6942
|
-
previousLogRef.current = "";
|
|
6943
|
-
}
|
|
6944
|
-
// Scroll to bottom
|
|
6945
|
-
xtermRef.current.scrollToBottom();
|
|
6946
|
-
}, [log]);
|
|
6947
|
-
useEffect(() => {
|
|
6948
|
-
if (!fitAddonRef.current)
|
|
6949
|
-
return;
|
|
6950
|
-
const resizeObserver = new ResizeObserver(() => {
|
|
6951
|
-
fitAddonRef.current?.fit();
|
|
6952
|
-
});
|
|
6953
|
-
if (terminalRef.current) {
|
|
6954
|
-
resizeObserver.observe(terminalRef.current);
|
|
6955
|
-
}
|
|
6956
|
-
return () => {
|
|
6957
|
-
resizeObserver.disconnect();
|
|
6958
|
-
};
|
|
6959
|
-
}, []);
|
|
6960
|
-
return jsx(TerminalWrapper, { ref: terminalRef });
|
|
6961
|
-
};
|
|
6962
|
-
|
|
6963
6849
|
const STATUS_TRANSLATION_KEYS = {
|
|
6964
6850
|
[RemoteTaskStatus.Process]: "taskProcess",
|
|
6965
6851
|
[RemoteTaskStatus.Completed]: "taskCompleted",
|
|
@@ -7415,9 +7301,11 @@ const GradientHeaderWrapper = styled.div `
|
|
|
7415
7301
|
const FeatureCardGradientHeader = ({ isRow }) => {
|
|
7416
7302
|
const { layerInfo } = useWidgetContext(WidgetType.FeatureCard);
|
|
7417
7303
|
const { config } = useWidgetConfig(WidgetType.FeatureCard);
|
|
7418
|
-
const { header
|
|
7304
|
+
const { header } = config || {};
|
|
7305
|
+
const { options } = header || {};
|
|
7306
|
+
const { fontColor, bgColor } = options || {};
|
|
7419
7307
|
const renderElement = useHeaderRender(header);
|
|
7420
|
-
return (jsx(GradientHeaderWrapper, { "$fontColor":
|
|
7308
|
+
return (jsx(GradientHeaderWrapper, { "$fontColor": fontColor, "$bgColor": bgColor, children: jsx(ThemeProvider, { theme: defaultTheme, children: jsx(Header, { "$isRow": isRow, children: jsxs(HeaderFrontView, { children: [jsxs(HeaderContainer, { children: [jsx(LayerIcon, { layerInfo: layerInfo }), jsx(FeatureCardTitle, { title: renderElement({
|
|
7421
7309
|
id: "title",
|
|
7422
7310
|
wrap: false,
|
|
7423
7311
|
}), description: renderElement({
|
|
@@ -7427,7 +7315,7 @@ const FeatureCardGradientHeader = ({ isRow }) => {
|
|
|
7427
7315
|
};
|
|
7428
7316
|
|
|
7429
7317
|
const HeaderFontColorMixin = css `
|
|
7430
|
-
${HeaderTitleContainer}, ${LayerDescription} {
|
|
7318
|
+
${HeaderTitleContainer}, ${HeaderTitleContainer} *, ${LayerDescription} {
|
|
7431
7319
|
color: ${({ $fontColor }) => $fontColor};
|
|
7432
7320
|
}
|
|
7433
7321
|
`;
|
|
@@ -7505,9 +7393,11 @@ const IconHeaderWrapper = styled.div `
|
|
|
7505
7393
|
const FeatureCardIconHeader = ({ isRow }) => {
|
|
7506
7394
|
const { layerInfo } = useWidgetContext(WidgetType.FeatureCard);
|
|
7507
7395
|
const { config } = useWidgetConfig(WidgetType.FeatureCard);
|
|
7508
|
-
const { header
|
|
7396
|
+
const { header } = config || {};
|
|
7397
|
+
const { options } = header || {};
|
|
7398
|
+
const { fontColor, bgColor, bigIcon } = options || {};
|
|
7509
7399
|
const renderElement = useHeaderRender(header);
|
|
7510
|
-
return (jsx(IconHeaderWrapper, { "$fontColor":
|
|
7400
|
+
return (jsx(IconHeaderWrapper, { "$fontColor": fontColor, "$bgColor": bgColor, "$bigIcon": bigIcon, children: jsx(ThemeProvider, { theme: defaultTheme, children: jsxs(Header, { "$isRow": isRow, children: [jsxs(HeaderFrontView, { children: [jsxs(HeaderContainer, { children: [jsx(LayerIcon, { layerInfo: layerInfo }), jsx(FeatureCardTitle, { title: renderElement({
|
|
7511
7401
|
id: "title",
|
|
7512
7402
|
wrap: false,
|
|
7513
7403
|
}), description: renderElement({
|
|
@@ -7974,8 +7864,13 @@ const LocalLinkButton = styled(IconButton).attrs(() => ({
|
|
|
7974
7864
|
width: 1rem;
|
|
7975
7865
|
height: 1rem;
|
|
7976
7866
|
background-color: ${({ theme: { palette } }) => palette.primary};
|
|
7867
|
+
padding: 0;
|
|
7977
7868
|
border-radius: 50%;
|
|
7978
7869
|
|
|
7870
|
+
:hover {
|
|
7871
|
+
background-color: ${({ theme: { palette } }) => palette.primary};
|
|
7872
|
+
}
|
|
7873
|
+
|
|
7979
7874
|
span[kind] {
|
|
7980
7875
|
display: flex;
|
|
7981
7876
|
justify-content: center;
|
|
@@ -8005,8 +7900,8 @@ const LocalLink = memo(({ link }) => {
|
|
|
8005
7900
|
const ElementLink = memo(({ type, elementConfig }) => {
|
|
8006
7901
|
const { attributes } = useWidgetContext(type);
|
|
8007
7902
|
const attribute = getAttributeByName(elementConfig?.attributeName, attributes);
|
|
8008
|
-
const link = attribute?.value;
|
|
8009
|
-
if (!link
|
|
7903
|
+
const link = getResourceUrl(attribute?.value?.toString());
|
|
7904
|
+
if (!link)
|
|
8010
7905
|
return null;
|
|
8011
7906
|
return link.startsWith("http") ? jsx(ExternalLink, { onClick: () => window.open(link) }) : jsx(LocalLink, { link: link });
|
|
8012
7907
|
});
|
|
@@ -8310,9 +8205,11 @@ const HeaderSlideshow = styled.div `
|
|
|
8310
8205
|
const FeatureCardSlideshowHeader = ({ isRow }) => {
|
|
8311
8206
|
const { layerInfo } = useWidgetContext(WidgetType.FeatureCard);
|
|
8312
8207
|
const { config } = useWidgetConfig(WidgetType.FeatureCard);
|
|
8313
|
-
const { header
|
|
8208
|
+
const { header } = config || {};
|
|
8209
|
+
const { options } = header || {};
|
|
8210
|
+
const { height, withPadding } = options || {};
|
|
8314
8211
|
const renderElement = useHeaderRender(header);
|
|
8315
|
-
return (jsx(SlideshowHeaderWrapper, { big: true, withPadding:
|
|
8212
|
+
return (jsx(SlideshowHeaderWrapper, { big: true, withPadding: withPadding, children: jsx(ThemeProvider, { theme: darkTheme, children: jsxs(Header, { "$isRow": isRow, children: [jsxs(HeaderFrontView, { children: [jsxs(HeaderContainer, { children: [jsx(LayerIcon, { layerInfo: layerInfo }), jsx(FeatureCardTitle, { title: renderElement({
|
|
8316
8213
|
id: "title",
|
|
8317
8214
|
wrap: false,
|
|
8318
8215
|
}), description: renderElement({
|
|
@@ -8321,7 +8218,7 @@ const FeatureCardSlideshowHeader = ({ isRow }) => {
|
|
|
8321
8218
|
}) })] }), jsx(FeatureCardButtons, {})] }), jsx(ImageContainerBg, { children: renderElement({
|
|
8322
8219
|
id: "bgImage",
|
|
8323
8220
|
wrap: false,
|
|
8324
|
-
}) }), jsx(HeaderSlideshow, { height:
|
|
8221
|
+
}) }), jsx(HeaderSlideshow, { height: height, children: renderElement({
|
|
8325
8222
|
id: "slideshow",
|
|
8326
8223
|
wrap: false,
|
|
8327
8224
|
}) })] }) }) }));
|
|
@@ -10613,7 +10510,7 @@ const ContainerChildren = memo(({ type, items, isColumn, isMain, renderElement }
|
|
|
10613
10510
|
});
|
|
10614
10511
|
if (checkIfEmptyDataSource(item.options?.hideIfEmptyDataSource))
|
|
10615
10512
|
return null;
|
|
10616
|
-
return isMain ? (jsx(ContainerWrapper, { "
|
|
10513
|
+
return isMain ? (jsx(ContainerWrapper, { "$noMargin": item.options?.noMargin, children: jsx(DashboardWrapper, { children: render }) }, index)) : (jsx(Fragment, { children: render }, index));
|
|
10617
10514
|
}) }));
|
|
10618
10515
|
});
|
|
10619
10516
|
|
|
@@ -10785,6 +10682,122 @@ const HiddenTitleItems = memo(({ elementConfig, config, type, filter }) => {
|
|
|
10785
10682
|
getConfigFilter(filterName, configFilters)?.defaultValue, index)) }));
|
|
10786
10683
|
});
|
|
10787
10684
|
|
|
10685
|
+
const TerminalWrapper = styled.div `
|
|
10686
|
+
flex: 1;
|
|
10687
|
+
overflow: hidden;
|
|
10688
|
+
padding: 0;
|
|
10689
|
+
margin: 0;
|
|
10690
|
+
box-sizing: border-box;
|
|
10691
|
+
min-height: 0;
|
|
10692
|
+
|
|
10693
|
+
.xterm-viewport {
|
|
10694
|
+
overflow-y: auto;
|
|
10695
|
+
}
|
|
10696
|
+
|
|
10697
|
+
.xterm-screen .xterm-rows span {
|
|
10698
|
+
letter-spacing: 0 !important;
|
|
10699
|
+
}
|
|
10700
|
+
`;
|
|
10701
|
+
|
|
10702
|
+
const LogTerminal = ({ log, terminalOptions, className, styles }) => {
|
|
10703
|
+
const terminalRef = useRef(null);
|
|
10704
|
+
const xtermRef = useRef(null);
|
|
10705
|
+
const fitAddonRef = useRef(null);
|
|
10706
|
+
const previousLogRef = useRef("");
|
|
10707
|
+
const theme = useTheme();
|
|
10708
|
+
useEffect(() => {
|
|
10709
|
+
if (!terminalRef.current)
|
|
10710
|
+
return;
|
|
10711
|
+
// Create terminal instance
|
|
10712
|
+
const terminal = new Terminal({
|
|
10713
|
+
cursorBlink: false,
|
|
10714
|
+
fontSize: 12,
|
|
10715
|
+
fontFamily: '"Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro", monospace',
|
|
10716
|
+
scrollback: 10000,
|
|
10717
|
+
convertEol: true,
|
|
10718
|
+
lineHeight: 1.5,
|
|
10719
|
+
theme: {
|
|
10720
|
+
background: theme.palette.background,
|
|
10721
|
+
foreground: theme.palette.textPrimary,
|
|
10722
|
+
cursor: theme.palette.primary,
|
|
10723
|
+
},
|
|
10724
|
+
...terminalOptions,
|
|
10725
|
+
});
|
|
10726
|
+
// Create fit addon
|
|
10727
|
+
const fitAddon = new FitAddon();
|
|
10728
|
+
terminal.loadAddon(fitAddon);
|
|
10729
|
+
// Open terminal
|
|
10730
|
+
terminal.open(terminalRef.current);
|
|
10731
|
+
fitAddon.fit();
|
|
10732
|
+
// Store refs
|
|
10733
|
+
xtermRef.current = terminal;
|
|
10734
|
+
fitAddonRef.current = fitAddon;
|
|
10735
|
+
// Handle window resize
|
|
10736
|
+
const handleResize = () => {
|
|
10737
|
+
fitAddon.fit();
|
|
10738
|
+
};
|
|
10739
|
+
window.addEventListener("resize", handleResize);
|
|
10740
|
+
// Cleanup
|
|
10741
|
+
return () => {
|
|
10742
|
+
window.removeEventListener("resize", handleResize);
|
|
10743
|
+
terminal.dispose();
|
|
10744
|
+
xtermRef.current = null;
|
|
10745
|
+
fitAddonRef.current = null;
|
|
10746
|
+
};
|
|
10747
|
+
}, [theme, terminalOptions]);
|
|
10748
|
+
// Update log content
|
|
10749
|
+
useEffect(() => {
|
|
10750
|
+
if (!xtermRef.current)
|
|
10751
|
+
return;
|
|
10752
|
+
// Handle different log types
|
|
10753
|
+
if (typeof log === "string") {
|
|
10754
|
+
// For string logs, only write the new content (append mode)
|
|
10755
|
+
const previousLog = previousLogRef.current;
|
|
10756
|
+
if (log !== previousLog) {
|
|
10757
|
+
if (log.startsWith(previousLog)) {
|
|
10758
|
+
// Log is accumulated - write only the new part
|
|
10759
|
+
const newContent = log.substring(previousLog.length);
|
|
10760
|
+
xtermRef.current.write(newContent);
|
|
10761
|
+
}
|
|
10762
|
+
else {
|
|
10763
|
+
// Log was replaced completely - clear and write all
|
|
10764
|
+
xtermRef.current.clear();
|
|
10765
|
+
xtermRef.current.write(log);
|
|
10766
|
+
}
|
|
10767
|
+
previousLogRef.current = log;
|
|
10768
|
+
}
|
|
10769
|
+
}
|
|
10770
|
+
else if (typeof log === "object") {
|
|
10771
|
+
// JSON object (results) - always replace
|
|
10772
|
+
xtermRef.current.clear();
|
|
10773
|
+
const formatted = JSON.stringify(log, null, 2);
|
|
10774
|
+
xtermRef.current.write(formatted);
|
|
10775
|
+
previousLogRef.current = "";
|
|
10776
|
+
}
|
|
10777
|
+
else if (!log) {
|
|
10778
|
+
// No log - clear terminal
|
|
10779
|
+
xtermRef.current.clear();
|
|
10780
|
+
previousLogRef.current = "";
|
|
10781
|
+
}
|
|
10782
|
+
// Scroll to bottom
|
|
10783
|
+
xtermRef.current.scrollToBottom();
|
|
10784
|
+
}, [log]);
|
|
10785
|
+
useEffect(() => {
|
|
10786
|
+
if (!fitAddonRef.current)
|
|
10787
|
+
return;
|
|
10788
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
10789
|
+
fitAddonRef.current?.fit();
|
|
10790
|
+
});
|
|
10791
|
+
if (terminalRef.current) {
|
|
10792
|
+
resizeObserver.observe(terminalRef.current);
|
|
10793
|
+
}
|
|
10794
|
+
return () => {
|
|
10795
|
+
resizeObserver.disconnect();
|
|
10796
|
+
};
|
|
10797
|
+
}, []);
|
|
10798
|
+
return jsx(TerminalWrapper, { ref: terminalRef, className: className, style: styles });
|
|
10799
|
+
};
|
|
10800
|
+
|
|
10788
10801
|
const PageNavigator = styled(Flex) `
|
|
10789
10802
|
margin-right: -0.5rem;
|
|
10790
10803
|
align-items: center;
|
|
@@ -11102,5 +11115,5 @@ const Map$1 = ({ zIndex, lowerSiblings, upperSiblings, onError, children, ...res
|
|
|
11102
11115
|
}, children: children }), upperSiblings] }));
|
|
11103
11116
|
};
|
|
11104
11117
|
|
|
11105
|
-
export { AddFeatureButton, AddFeatureContainer, AttributeGalleryContainer, AttributeLabel, BaseMapTheme, CONFIG_PAGES_ID, CONFIG_PAGE_ID, CameraContainer, Chart, ChartContainer, ChartLegend, ChartLoading, Container, ContainerChildren, ContainerLoading, ContainerTemplate, ContainerWrapper, ContainersGroupContainer, DEFAULT_ATTRIBUTE_NAME, DEFAULT_BARCHART_RADIUS, DEFAULT_BASE_MAP, DEFAULT_CHART_ANGLE, DEFAULT_CHART_HEIGHT, DEFAULT_CHART_WIDTH, DEFAULT_CIRCLE_PAINT, DEFAULT_DASHBOARD_CONFIG, DEFAULT_DATA_SOURCE_LIMIT, DEFAULT_FILL_EXTRUSION_PAINT, DEFAULT_FILL_PAINT, DEFAULT_ID_ATTRIBUTE_NAME, DEFAULT_LAT, DEFAULT_LINE_PAINT, DEFAULT_LNG, DEFAULT_PAGES_CONFIG, DEFAULT_PIECHART_RADIUS, DEFAULT_ZOOM, Dashboard, DashboardCheckbox, DashboardChip, DashboardContent, DashboardContext, DashboardDefaultHeader, DashboardHeader, DashboardLoading, DashboardPlaceholder, DashboardPlaceholderWrap, DashboardProvider, DashboardWrapper, DataSourceContainer, DataSourceError, DataSourceErrorContainer, DataSourceInnerContainer, DataSourceProgressContainer, DateFormat, DefaultAttributesContainer, DefaultHeaderContainer, DefaultHeaderWrapper, DividerContainer, EditGeometryType, ElementButton, ElementCamera, ElementChart, ElementChips, ElementIcon, ElementImage, ElementLegend, ElementLink, ElementMarkdown, ElementSlideshow, ElementSvg, ElementTooltip, ElementValueWrapper, ExpandableTitle, FEATURE_CARD_DEFAULT_COLORS, FEATURE_CARD_OTHER_COLOR, FILTERED_VALUE_OPACITY, FILTER_PREFIX, FeatureCardButtons, FeatureCardContext, FeatureCardDefaultHeader, FeatureCardGradientHeader, FeatureCardHeader, FeatureCardIconHeader, FeatureCardProvider, FeatureCardSlideshowHeader, FeatureCardTitle, FeatureControls, FeatureTitleContainer, FiltersContainer, GEOMETRY_ATTRIBUTE, GlobalContext, GlobalProvider, Header, HeaderContainer, HeaderFrontView, HeaderTemplate, HeaderTitleContainer, HiddenTitleItems, IconContainer, ImageContainer, LEFT_PANEL_HEADER_HEIGHT, Layer, LayerDescription, LayerGroup, LayerGroupList, LayerIcon, LayerListContainer, LayerTree, LayersContainer, LayersListWrapper, LinearProgressContainer, LogoContainer, MAX_CHART_WIDTH, Map$1 as Map, MapContext, MapProvider, NO_CONTENT_VALUE, NUMERIC_ATTRIBUTE_TYPES, NoLiveSnapshotContainer, OneColumnContainer, PageNavigator, PageTitle, PagesContainer, Pagination, PresentationHeader, PresentationHeaderButtons, PresentationHeaderTools, PresentationPanelContainer, PresentationPanelWrapper, PresentationWrapper, ProgressContainer, RoundedBackgroundContainer, SERVER_NOTIFICATION_EVENT, ScalingFactor, ServerNotificationsContext, ServerNotificationsProvider, SlideshowContainer, SmallPreviewContainer$1 as SmallPreviewContainer, SmallPreviewControl, SmallPreviewCounter, SmallPreviewImages, SmallPreviewLeft, SmallPreviewRight, StackBar, SvgImage, TIME_ZONE_FORMAT, TabsContainer, TextTrim, ThemeName, TitleContainer, TmsType, TopContainer, TopContainerButtons, TwoColumnContainer, UploadContainer, WidgetType, addDataSource, addDataSources, adjustColor, applyFiltersToCondition, applyQueryFilters, applyVarsToCondition, checkEqualOrIncludes, checkIsLoading, convertSpToTurfFeature, createConfigLayer, createConfigPage, createNewPageId, createTreeNode, dateOptions, debounce, decimalOpacityToHex, eqlParametersToPayload, findAttributeInExpression, formatArea, formatAttributeValue, formatChartRelatedValue, formatConditionValue, formatDataSourceCondition, formatDate$1 as formatDate, formatElementValue, formatLength, formatNumber, formatPolygonMeasure, getActualExtrusionHeight, getAttributeByName, getAttributeValue, getAttributesConfiguration, getChartAxes, getChartFilterName, getChartMarkers, getConfigFilter, getContainerComponent, getDashboardHeader, getDataFromAttributes, getDataFromRelatedFeatures, getDataSource, getDataSourceFilterValue, getDate, getDefaultConfig, getElementValue, getFeatureAttributes, getFeatureCardHeader, getFilterComponent, getFilterSelectedItems, getFilterValue, getFormattedAttributes, getGradientColors, getLayerDefinition, getLayerInfo, getLayerInfoFromDataSources, getPagesFromConfig, getPagesFromProjectInfo, getProxyService, getRelatedAttribute, getRenderElement, getResourceUrl, getRootElementId, getSelectedFilterValue, getSlideshowImages, getSvgUrl, getTotalFromAttributes, getTotalFromRelatedFeatures, hexToRgba, isCompositeLayerConfiguration, isEmptyElementValue, isEmptyValue, isHiddenEmptyValue, isLayerService, isNotValidSelectedTab, isNumeric, isObject, isProxyService, isVisibleContainer, numberOptions, parseClientStyle, pieChartTooltipFromAttributes, pieChartTooltipFromRelatedFeatures, pointOptions, removeDataSource, rgbToHex, roundTotalSum, sliceShownOtherItems, timeOptions, tooltipNameFromAttributes, tooltipValueFromAttributes, tooltipValueFromRelatedFeatures, transparentizeColor, treeNodesToProjectItems, useAppHeight, useChartChange, useChartData, useDashboardHeader, useDataSources, useDebouncedCallback, useDiffPage, useExpandableContainers, useExportPdf, useGetConfigLayer, useGlobalContext, useHeaderRender, useHideIfEmptyDataSource, useLayerParams, useMapContext, useMapDraw, useProjectDashboardInit, usePythonTask, useRedrawLayer, useRelatedDataSourceAttributes, useRenderElement, useServerNotificationsContext, useShownOtherItems, useToggle, useUpdateDataSource, useWidgetConfig, useWidgetContext, useWidgetFilters, useWidgetPage, useWindowResize, useZoomToFeatures, useZoomToPoint };
|
|
11118
|
+
export { AddFeatureButton, AddFeatureContainer, AttributeGalleryContainer, AttributeLabel, BaseMapTheme, CONFIG_PAGES_ID, CONFIG_PAGE_ID, CameraContainer, Chart, ChartContainer, ChartLegend, ChartLoading, Container, ContainerChildren, ContainerLoading, ContainerTemplate, ContainerWrapper, ContainersGroupContainer, DEFAULT_ATTRIBUTE_NAME, DEFAULT_BARCHART_RADIUS, DEFAULT_BASE_MAP, DEFAULT_CHART_ANGLE, DEFAULT_CHART_HEIGHT, DEFAULT_CHART_WIDTH, DEFAULT_CIRCLE_PAINT, DEFAULT_DASHBOARD_CONFIG, DEFAULT_DATA_SOURCE_LIMIT, DEFAULT_FILL_EXTRUSION_PAINT, DEFAULT_FILL_PAINT, DEFAULT_ID_ATTRIBUTE_NAME, DEFAULT_LAT, DEFAULT_LINE_PAINT, DEFAULT_LNG, DEFAULT_PAGES_CONFIG, DEFAULT_PIECHART_RADIUS, DEFAULT_ZOOM, Dashboard, DashboardCheckbox, DashboardChip, DashboardContent, DashboardContext, DashboardDefaultHeader, DashboardHeader, DashboardLoading, DashboardPlaceholder, DashboardPlaceholderWrap, DashboardProvider, DashboardWrapper, DataSourceContainer, DataSourceError, DataSourceErrorContainer, DataSourceInnerContainer, DataSourceProgressContainer, DateFormat, DefaultAttributesContainer, DefaultHeaderContainer, DefaultHeaderWrapper, DividerContainer, EditGeometryType, ElementButton, ElementCamera, ElementChart, ElementChips, ElementIcon, ElementImage, ElementLegend, ElementLink, ElementMarkdown, ElementSlideshow, ElementSvg, ElementTooltip, ElementValueWrapper, ExpandableTitle, FEATURE_CARD_DEFAULT_COLORS, FEATURE_CARD_OTHER_COLOR, FILTERED_VALUE_OPACITY, FILTER_PREFIX, FeatureCardButtons, FeatureCardContext, FeatureCardDefaultHeader, FeatureCardGradientHeader, FeatureCardHeader, FeatureCardIconHeader, FeatureCardProvider, FeatureCardSlideshowHeader, FeatureCardTitle, FeatureControls, FeatureTitleContainer, FiltersContainer, GEOMETRY_ATTRIBUTE, GlobalContext, GlobalProvider, Header, HeaderContainer, HeaderFrontView, HeaderTemplate, HeaderTitleContainer, HiddenTitleItems, IconContainer, ImageContainer, LEFT_PANEL_HEADER_HEIGHT, Layer, LayerDescription, LayerGroup, LayerGroupList, LayerIcon, LayerListContainer, LayerTree, LayersContainer, LayersListWrapper, LinearProgressContainer, LogTerminal, LogoContainer, MAX_CHART_WIDTH, Map$1 as Map, MapContext, MapProvider, NO_CONTENT_VALUE, NUMERIC_ATTRIBUTE_TYPES, NoLiveSnapshotContainer, OneColumnContainer, PageNavigator, PageTitle, PagesContainer, Pagination, PresentationHeader, PresentationHeaderButtons, PresentationHeaderTools, PresentationPanelContainer, PresentationPanelWrapper, PresentationWrapper, ProgressContainer, RoundedBackgroundContainer, SERVER_NOTIFICATION_EVENT, ScalingFactor, ServerNotificationsContext, ServerNotificationsProvider, SlideshowContainer, SmallPreviewContainer$1 as SmallPreviewContainer, SmallPreviewControl, SmallPreviewCounter, SmallPreviewImages, SmallPreviewLeft, SmallPreviewRight, StackBar, SvgImage, TIME_ZONE_FORMAT, TabsContainer, TextTrim, ThemeName, TitleContainer, TmsType, TopContainer, TopContainerButtons, TwoColumnContainer, UploadContainer, WidgetType, addDataSource, addDataSources, adjustColor, applyFiltersToCondition, applyQueryFilters, applyVarsToCondition, checkEqualOrIncludes, checkIsLoading, convertSpToTurfFeature, createConfigLayer, createConfigPage, createNewPageId, createTreeNode, dateOptions, debounce, decimalOpacityToHex, eqlParametersToPayload, findAttributeInExpression, formatArea, formatAttributeValue, formatChartRelatedValue, formatConditionValue, formatDataSourceCondition, formatDate$1 as formatDate, formatElementValue, formatLength, formatNumber, formatPolygonMeasure, getActualExtrusionHeight, getAttributeByName, getAttributeValue, getAttributesConfiguration, getChartAxes, getChartFilterName, getChartMarkers, getConfigFilter, getContainerComponent, getDashboardHeader, getDataFromAttributes, getDataFromRelatedFeatures, getDataSource, getDataSourceFilterValue, getDate, getDefaultConfig, getElementValue, getFeatureAttributes, getFeatureCardHeader, getFilterComponent, getFilterSelectedItems, getFilterValue, getFormattedAttributes, getGradientColors, getLayerDefinition, getLayerInfo, getLayerInfoFromDataSources, getPagesFromConfig, getPagesFromProjectInfo, getProxyService, getRelatedAttribute, getRenderElement, getResourceUrl, getRootElementId, getSelectedFilterValue, getSlideshowImages, getSvgUrl, getTotalFromAttributes, getTotalFromRelatedFeatures, hexToRgba, isCompositeLayerConfiguration, isEmptyElementValue, isEmptyValue, isHiddenEmptyValue, isLayerService, isNotValidSelectedTab, isNumeric, isObject, isProxyService, isVisibleContainer, numberOptions, parseClientStyle, pieChartTooltipFromAttributes, pieChartTooltipFromRelatedFeatures, pointOptions, removeDataSource, rgbToHex, roundTotalSum, sliceShownOtherItems, timeOptions, tooltipNameFromAttributes, tooltipValueFromAttributes, tooltipValueFromRelatedFeatures, transparentizeColor, treeNodesToProjectItems, useAppHeight, useChartChange, useChartData, useDashboardHeader, useDataSources, useDebouncedCallback, useDiffPage, useExpandableContainers, useExportPdf, useGetConfigLayer, useGlobalContext, useHeaderRender, useHideIfEmptyDataSource, useLayerParams, useMapContext, useMapDraw, useProjectDashboardInit, usePythonTask, useRedrawLayer, useRelatedDataSourceAttributes, useRenderElement, useServerNotificationsContext, useShownOtherItems, useToggle, useUpdateDataSource, useWidgetConfig, useWidgetContext, useWidgetFilters, useWidgetPage, useWindowResize, useZoomToFeatures, useZoomToPoint };
|
|
11106
11119
|
//# sourceMappingURL=react.esm.js.map
|