@evergis/react 3.1.52 → 3.1.53
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/react.esm.js
CHANGED
|
@@ -4574,34 +4574,6 @@ const getChartMarkers = (items, markers, dataSources) => {
|
|
|
4574
4574
|
})) || []);
|
|
4575
4575
|
};
|
|
4576
4576
|
|
|
4577
|
-
const ChartLegendContainer = styled(Flex) `
|
|
4578
|
-
flex-direction: column;
|
|
4579
|
-
flex-wrap: wrap;
|
|
4580
|
-
justify-content: ${({ twoColumns }) => (twoColumns ? "flex-start" : "center")};
|
|
4581
|
-
`;
|
|
4582
|
-
const ChartLegendItem = styled(Flex) `
|
|
4583
|
-
cursor: ${({ onClick }) => (onClick ? "pointer" : "default")};
|
|
4584
|
-
align-items: center;
|
|
4585
|
-
flex-wrap: nowrap;
|
|
4586
|
-
width: auto;
|
|
4587
|
-
margin-right: 0.375rem;
|
|
4588
|
-
margin-bottom: 0.25rem;
|
|
4589
|
-
line-height: 0.75rem;
|
|
4590
|
-
opacity: ${({ isFiltered, hasAnyFilter }) => (isFiltered ? 1 : hasAnyFilter ? FILTERED_VALUE_OPACITY / 100 : 1)};
|
|
4591
|
-
`;
|
|
4592
|
-
const ChartLegendColor = styled.div `
|
|
4593
|
-
width: 0.5rem;
|
|
4594
|
-
height: 0.5rem;
|
|
4595
|
-
margin-right: 0.375rem;
|
|
4596
|
-
background-color: ${({ color }) => color};
|
|
4597
|
-
border-radius: ${({ theme: { borderRadius } }) => borderRadius.tiny};
|
|
4598
|
-
`;
|
|
4599
|
-
const ChartLegendName = styled.div `
|
|
4600
|
-
flex: 1;
|
|
4601
|
-
font-size: ${({ $fontSize }) => $fontSize || "0.625rem"};
|
|
4602
|
-
color: ${({ theme: { palette }, $fontColor }) => $fontColor || palette.textPrimary};
|
|
4603
|
-
`;
|
|
4604
|
-
|
|
4605
4577
|
const LayerGroupContainer = styled(Flex) `
|
|
4606
4578
|
display: flex;
|
|
4607
4579
|
justify-content: center;
|
|
@@ -5130,6 +5102,43 @@ const LayerListContainer = styled(Flex) `
|
|
|
5130
5102
|
box-sizing: border-box;
|
|
5131
5103
|
`;
|
|
5132
5104
|
|
|
5105
|
+
const Container = styled(Flex) `
|
|
5106
|
+
flex-direction: column;
|
|
5107
|
+
width: 100%;
|
|
5108
|
+
|
|
5109
|
+
${({ isColumn }) => isColumn
|
|
5110
|
+
? css `
|
|
5111
|
+
> * {
|
|
5112
|
+
width: 100%;
|
|
5113
|
+
}
|
|
5114
|
+
`
|
|
5115
|
+
: css `
|
|
5116
|
+
flex-direction: row;
|
|
5117
|
+
justify-content: space-between;
|
|
5118
|
+
align-items: center;
|
|
5119
|
+
`}
|
|
5120
|
+
|
|
5121
|
+
${({ isMain, isColumn }) => (isMain || isColumn) &&
|
|
5122
|
+
css `
|
|
5123
|
+
> :not(:last-child) {
|
|
5124
|
+
margin-bottom: 1.5rem;
|
|
5125
|
+
}
|
|
5126
|
+
`}
|
|
5127
|
+
|
|
5128
|
+
${({ isTitle }) => isTitle &&
|
|
5129
|
+
css `
|
|
5130
|
+
&&&& {
|
|
5131
|
+
margin-bottom: 0.75rem;
|
|
5132
|
+
}
|
|
5133
|
+
`}
|
|
5134
|
+
|
|
5135
|
+
${({ noBorders }) => noBorders && css `
|
|
5136
|
+
${ContainerWrapper} {
|
|
5137
|
+
box-shadow: none;
|
|
5138
|
+
padding: 0;
|
|
5139
|
+
}
|
|
5140
|
+
`}
|
|
5141
|
+
`;
|
|
5133
5142
|
const ContainerWrapper = styled(Flex) `
|
|
5134
5143
|
position: relative;
|
|
5135
5144
|
box-sizing: border-box;
|
|
@@ -5396,43 +5405,43 @@ const FeatureControls = styled(Flex) `
|
|
|
5396
5405
|
}
|
|
5397
5406
|
`;
|
|
5398
5407
|
|
|
5399
|
-
const
|
|
5408
|
+
const ContainersGroupContainer = memo(({ elementConfig, type, renderElement }) => {
|
|
5409
|
+
const { expandedContainers } = useWidgetContext(type);
|
|
5410
|
+
const { id, children, options, style } = elementConfig || {};
|
|
5411
|
+
const { column, expandable, expanded } = options || {};
|
|
5412
|
+
const isColumn = column === undefined || column;
|
|
5413
|
+
const isVisible = isVisibleContainer(id, expandable, expanded, expandedContainers);
|
|
5414
|
+
return (jsxs(Fragment$1, { children: [jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsx(Container, { id: id, isColumn: isColumn, children: jsx(ContainerChildren, { items: children, elementConfig: elementConfig, isColumn: isColumn, isMain: id?.startsWith(CONFIG_PAGE_ID), renderElement: renderElement }) }))] }));
|
|
5415
|
+
});
|
|
5416
|
+
|
|
5417
|
+
const ChartLegendContainer = styled(Flex) `
|
|
5400
5418
|
flex-direction: column;
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
`}
|
|
5421
|
-
|
|
5422
|
-
${({ isTitle }) => isTitle &&
|
|
5423
|
-
css `
|
|
5424
|
-
&&&& {
|
|
5425
|
-
margin-bottom: 0.75rem;
|
|
5426
|
-
}
|
|
5427
|
-
`}
|
|
5428
|
-
|
|
5429
|
-
${({ noBorders }) => noBorders && css `
|
|
5430
|
-
${ContainerWrapper} {
|
|
5431
|
-
box-shadow: none;
|
|
5432
|
-
padding: 0;
|
|
5433
|
-
}
|
|
5434
|
-
`}
|
|
5419
|
+
flex-wrap: wrap;
|
|
5420
|
+
justify-content: ${({ twoColumns }) => (twoColumns ? "flex-start" : "center")};
|
|
5421
|
+
`;
|
|
5422
|
+
const ChartLegendItem = styled(Flex) `
|
|
5423
|
+
cursor: ${({ onClick }) => (onClick ? "pointer" : "default")};
|
|
5424
|
+
align-items: center;
|
|
5425
|
+
flex-wrap: nowrap;
|
|
5426
|
+
width: auto;
|
|
5427
|
+
margin-right: 0.375rem;
|
|
5428
|
+
margin-bottom: 0.25rem;
|
|
5429
|
+
line-height: 0.75rem;
|
|
5430
|
+
opacity: ${({ isFiltered, hasAnyFilter }) => (isFiltered ? 1 : hasAnyFilter ? FILTERED_VALUE_OPACITY / 100 : 1)};
|
|
5431
|
+
`;
|
|
5432
|
+
const ChartLegendColor = styled.div `
|
|
5433
|
+
width: 0.5rem;
|
|
5434
|
+
height: 0.5rem;
|
|
5435
|
+
margin-right: 0.375rem;
|
|
5436
|
+
background-color: ${({ color }) => color};
|
|
5437
|
+
border-radius: ${({ theme: { borderRadius } }) => borderRadius.tiny};
|
|
5435
5438
|
`;
|
|
5439
|
+
const ChartLegendName = styled.div `
|
|
5440
|
+
flex: 1;
|
|
5441
|
+
font-size: ${({ $fontSize }) => $fontSize || "0.625rem"};
|
|
5442
|
+
color: ${({ theme: { palette }, $fontColor }) => $fontColor || palette.textPrimary};
|
|
5443
|
+
`;
|
|
5444
|
+
|
|
5436
5445
|
const ContainerAlias = styled(Flex) `
|
|
5437
5446
|
align-items: center;
|
|
5438
5447
|
flex-wrap: nowrap;
|
|
@@ -5546,15 +5555,6 @@ const TwoColumnContainerWrapper = styled(Flex) `
|
|
|
5546
5555
|
}
|
|
5547
5556
|
`;
|
|
5548
5557
|
|
|
5549
|
-
const ContainersGroupContainer = memo(({ elementConfig, type, renderElement }) => {
|
|
5550
|
-
const { expandedContainers } = useWidgetContext(type);
|
|
5551
|
-
const { id, children, options, style } = elementConfig || {};
|
|
5552
|
-
const { column, expandable, expanded } = options || {};
|
|
5553
|
-
const isColumn = column === undefined || column;
|
|
5554
|
-
const isVisible = isVisibleContainer(id, expandable, expanded, expandedContainers);
|
|
5555
|
-
return (jsxs(Fragment$1, { children: [jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsx(Container, { id: id, isColumn: isColumn, children: jsx(ContainerChildren, { items: children, elementConfig: elementConfig, isColumn: isColumn, isMain: id?.startsWith(CONFIG_PAGE_ID), renderElement: renderElement }) }))] }));
|
|
5556
|
-
});
|
|
5557
|
-
|
|
5558
5558
|
const OneColumnContainer = memo(({ elementConfig, renderElement }) => {
|
|
5559
5559
|
const { id, options, style } = elementConfig || {};
|
|
5560
5560
|
const { innerTemplateStyle, hideEmpty } = options || {};
|
|
@@ -10745,5 +10745,5 @@ const Map$1 = ({ zIndex, lowerSiblings, upperSiblings, onError, children, ...res
|
|
|
10745
10745
|
}, children: children }), upperSiblings] }));
|
|
10746
10746
|
};
|
|
10747
10747
|
|
|
10748
|
-
export { AddFeatureButton, AddFeatureContainer, AttributeGalleryContainer, AttributeLabel, BaseMapTheme, CONFIG_PAGES_ID, CONFIG_PAGE_ID, CameraContainer, Chart, ChartContainer, ChartLegend, ChartLoading, 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, 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, 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, useLayerParams, useMapContext, useMapDraw, useProjectDashboardInit, usePythonTask, useRedrawLayer, useRelatedDataSourceAttributes, useRenderElement, useServerNotificationsContext, useShownOtherItems, useToggle, useUpdateDataSource, useWidgetConfig, useWidgetContext, useWidgetFilters, useWidgetPage, useWindowResize, useZoomToFeatures, useZoomToPoint };
|
|
10748
|
+
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, 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, 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, useLayerParams, useMapContext, useMapDraw, useProjectDashboardInit, usePythonTask, useRedrawLayer, useRelatedDataSourceAttributes, useRenderElement, useServerNotificationsContext, useShownOtherItems, useToggle, useUpdateDataSource, useWidgetConfig, useWidgetContext, useWidgetFilters, useWidgetPage, useWindowResize, useZoomToFeatures, useZoomToPoint };
|
|
10749
10749
|
//# sourceMappingURL=react.esm.js.map
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.1.
|
|
2
|
+
"version": "3.1.53",
|
|
3
3
|
"name": "@evergis/react",
|
|
4
4
|
"author": "Everpoint",
|
|
5
5
|
"license": "MIT",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"swiper": "^8.3.2",
|
|
82
82
|
"wkt": "^0.1.1"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "5a72450f06eef7588cea03c9903225f25d3676a1"
|
|
85
85
|
}
|