@evergis/react 3.1.124 → 3.1.126-alpha.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/hooks/useDataSources.d.ts +2 -2
- package/dist/components/Dashboard/hooks/useEditControl.d.ts +6 -0
- package/dist/components/Dashboard/types.d.ts +7 -11
- package/dist/components/Dashboard/utils/getControlTemplateName.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/core/index.d.ts +0 -1
- package/dist/hooks/map/useLayerParams.d.ts +1 -2
- package/dist/index.js +172 -166
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +175 -168
- package/dist/react.esm.js.map +1 -1
- package/dist/types/layer.d.ts +2 -2
- package/package.json +4 -4
- package/dist/components/Dashboard/hooks/useEditAttribute.d.ts +0 -6
- 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,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<{
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConfigContainerChild, WidgetType } from '../types';
|
|
2
|
+
export declare const useEditControl: (type: WidgetType, elementConfig: ConfigContainerChild) => {
|
|
3
|
+
control: import('../types').ConfigControl;
|
|
4
|
+
value: Date | import('../../..').FeaturedDcExtendedGeometry | import('../../..').JSONAttributeValue[] | import('../types').EditAttributeValue;
|
|
5
|
+
dataSource: import('../types').WidgetDataSource;
|
|
6
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, FC, ReactNode } from 'react';
|
|
2
2
|
import { i18n } from 'i18next';
|
|
3
|
-
import { AttributeDefinitionDc, AttributeFormatDefinitionDc, AttributeType, EqlRequestDc, FeatureDc,
|
|
3
|
+
import { AttributeDefinitionDc, AttributeFormatDefinitionDc, AttributeType, EqlRequestDc, FeatureDc, OgcGeometryType, PagedFeaturesListDc, PositionDc, RemoteTaskStatus, StringSubType } from '@evergis/api';
|
|
4
4
|
import { PieChartData, BarChartMarker } from '@evergis/charts';
|
|
5
5
|
import { IconTypesKeys, IOption } from '@evergis/uilib-gl';
|
|
6
6
|
import { FeatureAttributeValue, EditGeometryType, LayerInfo, ThemeName } from '../../types';
|
|
@@ -34,21 +34,17 @@ export interface ConfigRelatedResource {
|
|
|
34
34
|
methodName?: string;
|
|
35
35
|
}
|
|
36
36
|
export interface ConfigControl {
|
|
37
|
-
type: "dropdown" | "checkbox";
|
|
37
|
+
type: "dropdown" | "checkbox" | "chips" | "autocomplete";
|
|
38
|
+
relatedDataSource?: string;
|
|
39
|
+
attributeName?: string;
|
|
38
40
|
targetAttributeName: string;
|
|
39
|
-
|
|
41
|
+
defaultValue?: EditAttributeValue;
|
|
40
42
|
}
|
|
41
43
|
export interface BaseMapSettings {
|
|
42
44
|
opacity?: number;
|
|
43
45
|
showBuildings?: boolean;
|
|
44
46
|
}
|
|
45
47
|
export type EditAttributeValue = string | number | boolean;
|
|
46
|
-
export interface EditAttribute {
|
|
47
|
-
name: string;
|
|
48
|
-
type?: "dropdown" | "checkbox" | "chip" | "autocomplete";
|
|
49
|
-
defaultValue?: EditAttributeValue;
|
|
50
|
-
relatedDataSource?: string;
|
|
51
|
-
}
|
|
52
48
|
export interface ConfigOptions {
|
|
53
49
|
innerTemplateName?: ContainerTemplate;
|
|
54
50
|
innerTemplateStyle?: CSSProperties;
|
|
@@ -61,7 +57,7 @@ export interface ConfigOptions {
|
|
|
61
57
|
chartType?: "bar" | "line" | "pie" | "stack";
|
|
62
58
|
layerNames?: string[];
|
|
63
59
|
layerName?: string;
|
|
64
|
-
geometryType?:
|
|
60
|
+
geometryType?: OgcGeometryType | EditGeometryType;
|
|
65
61
|
fileExtensions?: string;
|
|
66
62
|
parentResourceId?: string;
|
|
67
63
|
srid?: string;
|
|
@@ -108,7 +104,6 @@ export interface ConfigOptions {
|
|
|
108
104
|
drawMinMax?: boolean;
|
|
109
105
|
attributes?: string[];
|
|
110
106
|
attributesExclude?: string[];
|
|
111
|
-
editAttributes?: EditAttribute[];
|
|
112
107
|
colors?: string[];
|
|
113
108
|
defaultColor?: string;
|
|
114
109
|
primaryColor?: string;
|
|
@@ -141,6 +136,7 @@ export interface ConfigOptions {
|
|
|
141
136
|
column?: boolean;
|
|
142
137
|
relatedDataSource?: string;
|
|
143
138
|
control?: ConfigControl;
|
|
139
|
+
controls?: ConfigControl[];
|
|
144
140
|
filterName?: string;
|
|
145
141
|
searchFilterName?: string;
|
|
146
142
|
colorAttribute?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ContainerTemplate,
|
|
2
|
-
export declare const getControlTemplateName: (type?:
|
|
1
|
+
import { ContainerTemplate, ConfigControl } from '../types';
|
|
2
|
+
export declare const getControlTemplateName: (type?: ConfigControl["type"]) => ContainerTemplate;
|
|
@@ -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];
|
package/dist/core/index.d.ts
CHANGED