@evergis/react 3.1.127 → 3.1.129-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/LICENSE +21 -21
- package/README.md +7 -7
- package/dist/components/Dashboard/components/AddFeatureButton/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/{ElementDialog → ElementModal}/index.d.ts +1 -1
- package/dist/components/Dashboard/elements/ElementModal/styled.d.ts +1 -0
- package/dist/components/Dashboard/elements/registry.d.ts +1 -1
- package/dist/components/Dashboard/hooks/useDataSources.d.ts +2 -2
- package/dist/components/Dashboard/hooks/useRelatedDataSourceAttributes.d.ts +1 -2
- package/dist/components/Dashboard/hooks/useWidgetContext.d.ts +2 -2
- package/dist/components/Dashboard/types.d.ts +10 -10
- 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 +2439 -2440
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +2441 -2442
- package/dist/react.esm.js.map +1 -1
- package/dist/types/layer.d.ts +2 -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 +3 -3
- package/dist/components/Dashboard/elements/ElementDialog/styled.d.ts +0 -1
- package/dist/core/feature/convertSpToTurfFeature.d.ts +0 -3
- package/dist/core/feature/index.d.ts +0 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Everpoint
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Everpoint
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# @evergis/react
|
|
2
|
-
|
|
3
|
-
В данном репозитории находятся специфичные (в отличии от `@evergis/uilib-gl`) для `Evergis Online`,
|
|
4
|
-
но в целом переиспользуемые на других проектах, построенных на Evergis API, React-компоненты.
|
|
5
|
-
|
|
6
|
-
***ВАЖНО!!!***: Разрабатываемые компоненты не должны иметь зависимостей
|
|
7
|
-
от системы поддержки мультиязычности `Evergis Online`!
|
|
1
|
+
# @evergis/react
|
|
2
|
+
|
|
3
|
+
В данном репозитории находятся специфичные (в отличии от `@evergis/uilib-gl`) для `Evergis Online`,
|
|
4
|
+
но в целом переиспользуемые на других проектах, построенных на Evergis API, React-компоненты.
|
|
5
|
+
|
|
6
|
+
***ВАЖНО!!!***: Разрабатываемые компоненты не должны иметь зависимостей
|
|
7
|
+
от системы поддержки мультиязычности `Evergis Online`!
|
|
@@ -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
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModalIcon: import('styled-components').StyledComponent<"span", any, import('@evergis/uilib-gl').IIconProps, never>;
|
|
@@ -15,5 +15,5 @@ export declare const elementComponents: {
|
|
|
15
15
|
}>;
|
|
16
16
|
readonly markdown: import('react').FC<import('..').ContainerProps>;
|
|
17
17
|
readonly uploader: import('react').FC<import('..').ContainerProps>;
|
|
18
|
-
readonly
|
|
18
|
+
readonly modal: import('react').FC<import('..').ContainerProps>;
|
|
19
19
|
};
|
|
@@ -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
1
|
import { FeatureDc } 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: import('@evergis/api').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,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';
|
|
@@ -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;
|
|
@@ -149,7 +149,7 @@ export interface ConfigOptions {
|
|
|
149
149
|
baseMapName?: string;
|
|
150
150
|
baseMapSettings?: Record<string, BaseMapSettings>;
|
|
151
151
|
expandedLayers?: boolean;
|
|
152
|
-
|
|
152
|
+
modalId?: string;
|
|
153
153
|
}
|
|
154
154
|
export interface ConfigDataSource {
|
|
155
155
|
name: string;
|
|
@@ -226,20 +226,20 @@ export interface ConfigTask {
|
|
|
226
226
|
updateDate?: string;
|
|
227
227
|
id?: string;
|
|
228
228
|
}
|
|
229
|
-
export interface
|
|
229
|
+
export interface ConfigModalOptions {
|
|
230
230
|
title?: string;
|
|
231
231
|
maxWidth?: string;
|
|
232
232
|
minWidth?: string;
|
|
233
233
|
minHeight?: string;
|
|
234
234
|
}
|
|
235
|
-
export interface
|
|
235
|
+
export interface ConfigModalContentRef {
|
|
236
236
|
containerId: string;
|
|
237
237
|
}
|
|
238
|
-
export type
|
|
239
|
-
export interface
|
|
238
|
+
export type ConfigModalContentItem = ConfigContainerChild | ConfigModalContentRef;
|
|
239
|
+
export interface ConfigModal {
|
|
240
240
|
id: string;
|
|
241
|
-
options?:
|
|
242
|
-
|
|
241
|
+
options?: ConfigModalOptions;
|
|
242
|
+
children: ConfigModalContentItem[];
|
|
243
243
|
}
|
|
244
244
|
export interface ConfigContainerHeader {
|
|
245
245
|
id?: string;
|
|
@@ -254,7 +254,7 @@ export interface ConfigContainer {
|
|
|
254
254
|
dataSources?: ConfigDataSource[];
|
|
255
255
|
filters?: ConfigFilter[];
|
|
256
256
|
tasks?: ConfigTask[];
|
|
257
|
-
|
|
257
|
+
modals?: ConfigModal[];
|
|
258
258
|
options?: ConfigOptions;
|
|
259
259
|
header?: ConfigContainerHeader;
|
|
260
260
|
}
|
|
@@ -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