@evergis/react 3.1.129-alpha.3 → 3.1.129
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/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 +3 -2
- 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/getDataFromRelatedFeatures.d.ts +2 -2
- package/dist/components/Dashboard/utils/getElementValue.d.ts +2 -2
- package/dist/components/Dashboard/utils/getFeatureAttributes.d.ts +3 -2
- package/dist/components/Dashboard/utils/getLayerDefinition.d.ts +3 -2
- package/dist/components/Dashboard/utils/getLayerInfo.d.ts +3 -3
- 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 +2 -3
- 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 +3 -2
- package/dist/contexts/FeatureCardContext/types.d.ts +3 -3
- package/dist/core/feature/convertSpToTurfFeature.d.ts +3 -0
- package/dist/core/feature/index.d.ts +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/hooks/map/useLayerParams.d.ts +3 -2
- package/dist/index.js +2474 -2461
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +2476 -2463
- package/dist/react.esm.js.map +1 -1
- package/dist/types/attribute.d.ts +10 -0
- package/dist/types/layer.d.ts +30 -1
- package/dist/utils/date.d.ts +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/package.json +5 -5
- package/dist/utils/metersPerPixel.d.ts +0 -1
|
@@ -9,6 +9,16 @@ export type FeatureAttribute = {
|
|
|
9
9
|
value?: FeatureAttributeValue;
|
|
10
10
|
render?: ReactNode;
|
|
11
11
|
} & LayerAttribute;
|
|
12
|
+
export declare const enum AttributeValueType {
|
|
13
|
+
String = 0,
|
|
14
|
+
Phone = 1,
|
|
15
|
+
Url = 2,
|
|
16
|
+
Mail = 3
|
|
17
|
+
}
|
|
18
|
+
export type AttributeValue = {
|
|
19
|
+
value: string;
|
|
20
|
+
type: AttributeValueType;
|
|
21
|
+
};
|
|
12
22
|
export interface JSONAttributeValue {
|
|
13
23
|
link: string;
|
|
14
24
|
isExternal: boolean;
|
package/dist/types/layer.d.ts
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
|
-
import { ProxyServiceInfoDc, ServiceInfoDc } from '@evergis/api';
|
|
1
|
+
import { AttributeConfigurationDc, GeometryType, LayerDefinitionDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, QueryLayerServiceConfigurationDc, ServiceInfoDc } from '@evergis/api';
|
|
2
|
+
import { ClientStyle } from './index';
|
|
3
|
+
interface AttributeConfigurationParams {
|
|
4
|
+
idAttribute: string;
|
|
5
|
+
titleAttribute?: string;
|
|
6
|
+
geometryAttribute: string;
|
|
7
|
+
layerAttributes?: AttributeConfigurationDc[];
|
|
8
|
+
tableName?: string;
|
|
9
|
+
}
|
|
10
|
+
export type PostgresLayerService = ServiceInfoDc & {
|
|
11
|
+
configuration?: QueryLayerServiceConfigurationDc | PostgresTileCatalogServiceConfigurationDc;
|
|
12
|
+
layerDefinition?: LayerDefinitionDc;
|
|
13
|
+
geometryType?: GeometryType | EditGeometryType;
|
|
14
|
+
};
|
|
15
|
+
type PostgresLayerServiceConfigurationParams = Pick<QueryLayerServiceConfigurationDc, "acl" | "condition">;
|
|
2
16
|
export type ProxyServiceInfo = Required<Omit<ProxyServiceInfoDc, keyof ServiceInfoDc>>;
|
|
17
|
+
export declare enum TmsType {
|
|
18
|
+
WMS = "WMS",
|
|
19
|
+
TMS = "TMS",
|
|
20
|
+
ArcGIS = "ArcGIS"
|
|
21
|
+
}
|
|
22
|
+
export interface LayerInfo extends Partial<AttributeConfigurationParams>, Partial<Omit<PostgresLayerService, "style">>, Partial<PostgresLayerServiceConfigurationParams> {
|
|
23
|
+
clientStyle?: ClientStyle;
|
|
24
|
+
srId?: LayerDefinitionDc["srId"];
|
|
25
|
+
name?: string;
|
|
26
|
+
type?: string;
|
|
27
|
+
proxy?: ProxyServiceInfo;
|
|
28
|
+
copyrightText?: string;
|
|
29
|
+
sourceType?: TmsType;
|
|
30
|
+
}
|
|
3
31
|
export declare enum EditGeometryType {
|
|
4
32
|
Raster = "raster"
|
|
5
33
|
}
|
|
34
|
+
export {};
|
package/dist/utils/date.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare enum DateFormat {
|
|
|
8
8
|
AxisTooltip = "d MMMM yyyy"
|
|
9
9
|
}
|
|
10
10
|
interface FormatDateOptions {
|
|
11
|
-
dateFormat?: DateFormat
|
|
11
|
+
dateFormat?: DateFormat;
|
|
12
12
|
defaultValue?: RawDateType;
|
|
13
13
|
}
|
|
14
14
|
export declare const getDate: (rawDate?: RawDateType | null) => Date | null;
|
package/dist/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.1.129
|
|
2
|
+
"version": "3.1.129",
|
|
3
3
|
"name": "@evergis/react",
|
|
4
4
|
"author": "Everpoint",
|
|
5
5
|
"license": "MIT",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"storybook": "^7.6.14"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@evergis/api": "^4.1.
|
|
58
|
-
"@evergis/charts": "^3.1.
|
|
57
|
+
"@evergis/api": "^4.1.54",
|
|
58
|
+
"@evergis/charts": "^3.1.53",
|
|
59
59
|
"@evergis/color": "^1.0.0-alpha.1",
|
|
60
|
-
"@evergis/uilib-gl": "^1.0.
|
|
60
|
+
"@evergis/uilib-gl": "^1.0.74",
|
|
61
61
|
"@mapbox/mapbox-gl-draw": "^1.5.0",
|
|
62
62
|
"@microsoft/signalr": "^8.0.7",
|
|
63
63
|
"@svgdotjs/svg.js": "^3.1.2",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"uuid": "^13.0.0",
|
|
88
88
|
"wkt": "^0.1.1"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "bb1cd0ea7e7175720863c636ac8cb06703a2cd3e"
|
|
91
91
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const metersPerPixel: (zoom: number, lat: number) => number;
|