@evergis/react 3.1.133 → 4.0.0
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/AddFeatureButton/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/ChartContainer/types.d.ts +2 -2
- package/dist/components/Dashboard/hooks/useDataSources.d.ts +2 -2
- package/dist/components/Dashboard/hooks/useRelatedDataSourceAttributes.d.ts +2 -3
- package/dist/components/Dashboard/hooks/useWidgetContext.d.ts +2 -2
- package/dist/components/Dashboard/types.d.ts +4 -4
- package/dist/components/Dashboard/utils/formatChartRelatedValue.d.ts +2 -2
- package/dist/components/Dashboard/utils/getAttributesConfiguration.d.ts +2 -2
- package/dist/components/Dashboard/utils/getDataFromRelatedFeatures.d.ts +2 -2
- package/dist/components/Dashboard/utils/getElementValue.d.ts +2 -2
- package/dist/components/Dashboard/utils/getFeatureAttributes.d.ts +2 -3
- package/dist/components/Dashboard/utils/getLayerDefinition.d.ts +2 -3
- package/dist/components/Dashboard/utils/getLayerInfo.d.ts +4 -6
- package/dist/components/Dashboard/utils/getLayerInfoFromDataSources.d.ts +2 -2
- package/dist/components/Dashboard/utils/getRelatedAttribute.d.ts +2 -2
- package/dist/components/Dashboard/utils/getSvgUrl.d.ts +3 -2
- package/dist/components/Dashboard/utils/pieChartTooltipFromRelatedFeatures.d.ts +2 -2
- package/dist/components/Dashboard/utils/tooltipValueFromRelatedFeatures.d.ts +2 -2
- package/dist/components/Layer/types.d.ts +2 -2
- package/dist/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +2 -2
- package/dist/components/LayerIcon/index.d.ts +2 -2
- package/dist/contexts/DashboardContext/types.d.ts +2 -3
- package/dist/contexts/FeatureCardContext/types.d.ts +3 -3
- package/dist/core/index.d.ts +0 -1
- package/dist/hooks/map/useLayerParams.d.ts +2 -3
- package/dist/index.js +171 -173
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +173 -175
- package/dist/react.esm.js.map +1 -1
- package/dist/types/attribute.d.ts +0 -10
- package/dist/types/layer.d.ts +1 -30
- package/dist/utils/date.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/metersPerPixel.d.ts +1 -0
- package/package.json +5 -5
- package/dist/core/feature/convertSpToTurfFeature.d.ts +0 -3
- package/dist/core/feature/index.d.ts +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { IconTypesKeys } from '@evergis/uilib-gl';
|
|
3
|
-
import {
|
|
3
|
+
import { OgcGeometryType } from '@evergis/api';
|
|
4
4
|
import { EditGeometryType } from '../../../../types';
|
|
5
5
|
export declare const AddFeatureButton: FC<{
|
|
6
6
|
title?: string;
|
|
7
7
|
icon?: IconTypesKeys;
|
|
8
8
|
layerName?: string;
|
|
9
|
-
geometryType?:
|
|
9
|
+
geometryType?: OgcGeometryType | EditGeometryType;
|
|
10
10
|
}>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BarChartData, PieChartData } from '@evergis/charts';
|
|
2
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
2
3
|
import { ConfigContainerChild, ContainerProps, FilterItem } from '../../types';
|
|
3
|
-
import { LayerInfo } from '../../../../types';
|
|
4
4
|
export type ChartProps = Pick<ContainerProps, "config" | "elementConfig" | "type" | "renderElement"> & {
|
|
5
5
|
element: ConfigContainerChild;
|
|
6
6
|
};
|
|
7
7
|
export type ChartDataProps = {
|
|
8
8
|
items: FilterItem[] | PieChartData[] | BarChartData[];
|
|
9
|
-
layerInfo:
|
|
9
|
+
layerInfo: QueryLayerServiceInfoDc | null;
|
|
10
10
|
attributeName: string | null;
|
|
11
11
|
attributeUnits: string | null;
|
|
12
12
|
dataSourceName: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryLayerServiceConfigurationDc } from '@evergis/api';
|
|
1
|
+
import { PagedFeaturesListDc, QueryLayerServiceConfigurationDc } from '@evergis/api';
|
|
2
2
|
import { ClientFeatureAttribute, ConfigContainerChild, ConfigDataSource, DataSourcePromise, EqlDataSource, FetchedDataSource, SelectedFilters, WidgetType } from '../types';
|
|
3
3
|
export declare const useDataSources: ({ type: widgetType, config, attributes, filters, layerParams, eqlParameters, }: {
|
|
4
4
|
type?: WidgetType;
|
|
@@ -8,7 +8,7 @@ export declare const useDataSources: ({ type: widgetType, config, attributes, fi
|
|
|
8
8
|
layerParams?: Record<string, string>;
|
|
9
9
|
eqlParameters?: QueryLayerServiceConfigurationDc["eqlParameters"];
|
|
10
10
|
}) => {
|
|
11
|
-
getDataSourcePromises: ({ ds, query, parameters, layerName, limit, condition, url, resourceId }: ConfigDataSource, newFilters?: SelectedFilters, offset?: number) => Promise<EqlDataSource |
|
|
11
|
+
getDataSourcePromises: ({ ds, query, parameters, layerName, limit, condition, url, resourceId }: ConfigDataSource, newFilters?: SelectedFilters, offset?: number) => Promise<EqlDataSource | PagedFeaturesListDc>;
|
|
12
12
|
getUpdatingDataSources: () => ConfigDataSource[];
|
|
13
13
|
getUpdatedDataSources: (responses: DataSourcePromise[], currentDataSources: ConfigDataSource[], otherDataSources: FetchedDataSource[]) => any;
|
|
14
14
|
zoomToLayersExtent: (layers: Array<{
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { FeatureDc } from '@evergis/api';
|
|
1
|
+
import { FeatureDc, QueryLayerServiceInfoDc } from '@evergis/api';
|
|
2
2
|
import { ConfigContainerChild, FetchedDataSource, WidgetType } from '../types';
|
|
3
|
-
import { LayerInfo } from '../../../types';
|
|
4
3
|
export declare const useRelatedDataSourceAttributes: ({ type, elementConfig, dataSources, feature, }: {
|
|
5
4
|
type: WidgetType;
|
|
6
5
|
elementConfig: ConfigContainerChild;
|
|
7
6
|
dataSources: FetchedDataSource[];
|
|
8
7
|
feature?: FeatureDc;
|
|
9
8
|
}) => {
|
|
10
|
-
layerInfo:
|
|
9
|
+
layerInfo: QueryLayerServiceInfoDc;
|
|
11
10
|
attributes: import('../types').ClientFeatureAttribute[];
|
|
12
11
|
dataSource: import('../types').WidgetDataSource;
|
|
13
12
|
};
|
|
@@ -3,14 +3,14 @@ export declare const useWidgetContext: (type?: WidgetType) => {
|
|
|
3
3
|
toggleLayersVisibility: VoidFunction;
|
|
4
4
|
visibleLayers: boolean;
|
|
5
5
|
projectInfo: import('@evergis/api').ExtendedProjectInfoDc;
|
|
6
|
-
layerInfos: import('
|
|
6
|
+
layerInfos: import('@evergis/api').QueryLayerServiceInfoDc[];
|
|
7
7
|
updateProject: (projectInfo: import('@evergis/api').ExtendedProjectInfoDc) => void;
|
|
8
8
|
dashboardLayers: Record<string, {
|
|
9
9
|
isVisible?: boolean;
|
|
10
10
|
}>;
|
|
11
11
|
setDashboardLayer: (props: import('../types').DashboardLayerPayload) => void;
|
|
12
12
|
geometryFilter: boolean;
|
|
13
|
-
layerInfo: import('
|
|
13
|
+
layerInfo: import('@evergis/api').QueryLayerServiceInfoDc;
|
|
14
14
|
attributes: import('../types').ClientFeatureAttribute[];
|
|
15
15
|
feature: import('../../..').SelectedFeature;
|
|
16
16
|
closeFeatureCard: VoidFunction;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CSSProperties, FC, ReactNode } from 'react';
|
|
2
2
|
import { i18n } from 'i18next';
|
|
3
|
-
import { AttributeDefinitionDc, AttributeFormatDefinitionDc, AttributeType, EqlRequestDc, FeatureDc, GeometryType, PagedFeaturesListDc, PositionDc, RemoteTaskStatus, StringSubType } from '@evergis/api';
|
|
4
3
|
import { PieChartData, BarChartMarker } from '@evergis/charts';
|
|
5
4
|
import { IconTypesKeys, IOption } from '@evergis/uilib-gl';
|
|
6
|
-
import {
|
|
5
|
+
import { AttributeDefinitionDc, AttributeFormatDefinitionDc, AttributeType, EqlRequestDc, FeatureDc, OgcGeometryType, PagedFeaturesListDc, PositionDc, QueryLayerServiceInfoDc, RemoteTaskStatus, StringSubType } from '@evergis/api';
|
|
6
|
+
import { FeatureAttributeValue, EditGeometryType, ThemeName } from '../../types';
|
|
7
7
|
import { InnerContainerProps } from './containers/DataSourceInnerContainer/types';
|
|
8
8
|
export interface DashboardsProps {
|
|
9
9
|
zIndex?: CSSProperties["zIndex"];
|
|
@@ -56,7 +56,7 @@ export interface ConfigOptions {
|
|
|
56
56
|
chartType?: "bar" | "line" | "pie" | "stack";
|
|
57
57
|
layerNames?: string[];
|
|
58
58
|
layerName?: string;
|
|
59
|
-
geometryType?:
|
|
59
|
+
geometryType?: OgcGeometryType | EditGeometryType;
|
|
60
60
|
fileExtensions?: string;
|
|
61
61
|
parentResourceId?: string;
|
|
62
62
|
srid?: string;
|
|
@@ -319,7 +319,7 @@ export interface GetRenderElementProps extends Omit<ContainerProps, "renderEleme
|
|
|
319
319
|
expandedContainers?: Record<string, boolean>;
|
|
320
320
|
pageIndex?: number;
|
|
321
321
|
attributes?: ClientFeatureAttribute[];
|
|
322
|
-
layerInfo?:
|
|
322
|
+
layerInfo?: QueryLayerServiceInfoDc;
|
|
323
323
|
selectedTabId?: string;
|
|
324
324
|
setSelectedTabId?: (id: string) => void;
|
|
325
325
|
t?: i18n["t"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { i18n } from 'i18next';
|
|
2
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
2
3
|
import { ConfigRelatedDataSource } from '../types';
|
|
3
|
-
|
|
4
|
-
export declare const formatChartRelatedValue: (t: i18n["t"], value: string | number, layerInfo: LayerInfo, relatedAttributes: ConfigRelatedDataSource[]) => string | number;
|
|
4
|
+
export declare const formatChartRelatedValue: (t: i18n["t"], value: string | number, layerInfo: QueryLayerServiceInfoDc, relatedAttributes: ConfigRelatedDataSource[]) => string | number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AttributesConfigurationDc,
|
|
2
|
-
export declare const getAttributesConfiguration: (layer:
|
|
1
|
+
import { AttributesConfigurationDc, QueryLayerServiceInfoDc } from '@evergis/api';
|
|
2
|
+
export declare const getAttributesConfiguration: (layer: QueryLayerServiceInfoDc) => AttributesConfigurationDc;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i18n } from 'i18next';
|
|
2
|
-
import {
|
|
2
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
3
3
|
import { ConfigContainerChild, ConfigFilter, ConfigRelatedDataSource, FetchedDataSource, FilterItem } from '../types';
|
|
4
4
|
export declare const getDataFromRelatedFeatures: ({ t, config, filters, relatedConfig, dataSource, layerInfo }: {
|
|
5
5
|
t: i18n["t"];
|
|
@@ -7,5 +7,5 @@ export declare const getDataFromRelatedFeatures: ({ t, config, filters, relatedC
|
|
|
7
7
|
filters: ConfigFilter[];
|
|
8
8
|
relatedConfig: ConfigRelatedDataSource;
|
|
9
9
|
dataSource: FetchedDataSource;
|
|
10
|
-
layerInfo:
|
|
10
|
+
layerInfo: QueryLayerServiceInfoDc;
|
|
11
11
|
}) => FilterItem[] | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
2
3
|
import { ClientFeatureAttribute, ConfigContainerChild, ContainerProps, RenderElementValue } from '../types';
|
|
3
|
-
import { LayerInfo } from '../../../types';
|
|
4
4
|
export declare const getElementValue: ({ getDefaultContainer, ...props }: Pick<ContainerProps, "type" | "config" | "elementConfig" | "renderElement"> & {
|
|
5
|
-
layerInfo:
|
|
5
|
+
layerInfo: QueryLayerServiceInfoDc;
|
|
6
6
|
attributes: ClientFeatureAttribute[];
|
|
7
7
|
element: ConfigContainerChild;
|
|
8
8
|
getDefaultContainer?: () => ReactNode;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FeatureDc } from '@evergis/api';
|
|
1
|
+
import { FeatureDc, QueryLayerServiceInfoDc } from '@evergis/api';
|
|
2
2
|
import { SelectedFeatureDc } from '../../../utils';
|
|
3
|
-
import { LayerInfo } from '../../../types';
|
|
4
3
|
import { ClientFeatureAttribute, FetchedDataSource } from '../types';
|
|
5
|
-
export declare function getFeatureAttributes(feature?: FeatureDc | SelectedFeatureDc, layer?:
|
|
4
|
+
export declare function getFeatureAttributes(feature?: FeatureDc | SelectedFeatureDc, layer?: QueryLayerServiceInfoDc, dataSource?: FetchedDataSource): ClientFeatureAttribute[];
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { LayerDefinitionDc } from '@evergis/api';
|
|
2
|
-
|
|
3
|
-
export declare const getLayerDefinition: (layer?: LayerInfo) => LayerDefinitionDc;
|
|
1
|
+
import { LayerDefinitionDc, QueryLayerServiceInfoDc } from '@evergis/api';
|
|
2
|
+
export declare const getLayerDefinition: (layer?: QueryLayerServiceInfoDc) => LayerDefinitionDc;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { ProxyServiceInfoDc, ServiceInfoDc } from '@evergis/api';
|
|
2
|
-
import {
|
|
1
|
+
import { ProxyServiceInfoDc, QueryLayerServiceInfoDc, ServiceInfoDc } from '@evergis/api';
|
|
2
|
+
import { ProxyServiceInfo } from '../../../types';
|
|
3
3
|
export declare const isCompositeLayerConfiguration: (value?: unknown) => value is ServiceInfoDc;
|
|
4
4
|
export declare const isProxyService: (value?: unknown) => value is ProxyServiceInfoDc;
|
|
5
|
-
export declare const getProxyService: (layer?:
|
|
6
|
-
export declare function getLayerInfo(layer?:
|
|
7
|
-
type?: string;
|
|
8
|
-
}): LayerInfo;
|
|
5
|
+
export declare const getProxyService: (layer?: QueryLayerServiceInfoDc) => ProxyServiceInfo;
|
|
6
|
+
export declare function getLayerInfo(layer?: QueryLayerServiceInfoDc): QueryLayerServiceInfoDc;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
2
2
|
import { ConfigDataSource } from '../types';
|
|
3
|
-
export declare const getLayerInfoFromDataSources: (layerInfos:
|
|
3
|
+
export declare const getLayerInfoFromDataSources: (layerInfos: QueryLayerServiceInfoDc[], dataSources: ConfigDataSource[], relatedDataSource: string) => QueryLayerServiceInfoDc | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getRelatedAttribute: (layerInfo:
|
|
1
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
2
|
+
export declare const getRelatedAttribute: (layerInfo: QueryLayerServiceInfoDc, sourceAttributeName: string, relatedLayerName: string) => any;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
1
2
|
import { ConfigContainerChild } from '../types';
|
|
2
|
-
import { FeatureAttribute
|
|
3
|
+
import { FeatureAttribute } from '../../../types';
|
|
3
4
|
export declare const getSvgUrl: ({ elementConfig, layerInfo, attributes, }: {
|
|
4
5
|
elementConfig: ConfigContainerChild;
|
|
5
|
-
layerInfo:
|
|
6
|
+
layerInfo: QueryLayerServiceInfoDc;
|
|
6
7
|
attributes: FeatureAttribute[];
|
|
7
8
|
}) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { i18n } from 'i18next';
|
|
3
3
|
import { PieChartData } from '@evergis/charts';
|
|
4
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
4
5
|
import { ConfigRelatedDataSource } from '../types';
|
|
5
|
-
|
|
6
|
-
export declare const pieChartTooltipFromRelatedFeatures: (t: i18n["t"], data: PieChartData[], relatedAttributes: ConfigRelatedDataSource[], layerInfo: LayerInfo) => ReactElement | string;
|
|
6
|
+
export declare const pieChartTooltipFromRelatedFeatures: (t: i18n["t"], data: PieChartData[], relatedAttributes: ConfigRelatedDataSource[], layerInfo: QueryLayerServiceInfoDc) => ReactElement | string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { i18n } from 'i18next';
|
|
3
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
3
4
|
import { ConfigRelatedDataSource } from '../types';
|
|
4
|
-
|
|
5
|
-
export declare const tooltipValueFromRelatedFeatures: (t: i18n["t"], value: number, relatedAttributes: ConfigRelatedDataSource[], layerInfo: LayerInfo) => number | string | ReactNode;
|
|
5
|
+
export declare const tooltipValueFromRelatedFeatures: (t: i18n["t"], value: number, relatedAttributes: ConfigRelatedDataSource[], layerInfo: QueryLayerServiceInfoDc) => number | string | ReactNode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EffectCallback } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
3
3
|
import { ClientStyle, ClientStyleItem } from '../../types';
|
|
4
4
|
export interface LayerProps {
|
|
5
5
|
tileUrl: string;
|
|
6
|
-
layer?:
|
|
6
|
+
layer?: QueryLayerServiceInfoDc;
|
|
7
7
|
layerType?: string;
|
|
8
8
|
visible?: boolean;
|
|
9
9
|
beforeId?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OgcGeometryType } from '@evergis/api';
|
|
2
2
|
import { ClientStyleItem } from '../../../types';
|
|
3
|
-
export declare const getClientStyleItemPrefixSuffix: (geometryType:
|
|
3
|
+
export declare const getClientStyleItemPrefixSuffix: (geometryType: OgcGeometryType, itemType: ClientStyleItem["type"]) => [string, string];
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { ExtendedProjectInfoDc } from '@evergis/api';
|
|
2
|
+
import { ExtendedProjectInfoDc, QueryLayerServiceInfoDc } from '@evergis/api';
|
|
3
3
|
import { ConfigContainer, DashboardLayerPayload, DashboardState, LayerItemProps, SelectedFilters, WidgetDataSource } from '../../components';
|
|
4
|
-
import { LayerInfo } from '../../types';
|
|
5
4
|
export type DashboardContextProps = PropsWithChildren<{
|
|
6
5
|
config?: ConfigContainer;
|
|
7
6
|
containerIds?: string[];
|
|
8
7
|
projectInfo?: ExtendedProjectInfoDc;
|
|
9
8
|
updateProject?: (projectInfo: ExtendedProjectInfoDc) => void;
|
|
10
9
|
pageIndex?: number;
|
|
11
|
-
layerInfos?:
|
|
10
|
+
layerInfos?: QueryLayerServiceInfoDc[];
|
|
12
11
|
dataSources?: WidgetDataSource[];
|
|
13
12
|
geometryFilter?: boolean;
|
|
14
13
|
loading?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { LayerReferenceConfigurationDc } from '@evergis/api';
|
|
2
|
+
import { LayerReferenceConfigurationDc, QueryLayerServiceInfoDc } from '@evergis/api';
|
|
3
3
|
import { ClientFeatureAttribute, ConfigContainer, EditAttributeValue, SelectedFilters, WidgetDataSource } from '../../components';
|
|
4
|
-
import {
|
|
4
|
+
import { SelectedFeature } from '../../types';
|
|
5
5
|
export type FeatureCardContextSettings = PropsWithChildren<{
|
|
6
6
|
config?: ConfigContainer;
|
|
7
7
|
attributes?: ClientFeatureAttribute[];
|
|
8
|
-
layerInfo?:
|
|
8
|
+
layerInfo?: QueryLayerServiceInfoDc;
|
|
9
9
|
feature?: SelectedFeature;
|
|
10
10
|
pageIndex?: number;
|
|
11
11
|
handBookReference?: LayerReferenceConfigurationDc;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const useLayerParams: (layer?: LayerInfo | FeatureLayerServiceInfoDc) => {};
|
|
1
|
+
import { QueryLayerServiceInfoDc } from '@evergis/api';
|
|
2
|
+
export declare const useLayerParams: (layer?: QueryLayerServiceInfoDc) => {};
|