@evergis/react 4.0.22 → 4.0.23-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/types.d.ts +6 -6
- package/dist/components/Dashboard/utils/getAttributeByName.d.ts +1 -1
- package/dist/components/Dashboard/utils/getAttributesConfiguration.d.ts +1 -1
- package/dist/components/Dashboard/utils/getFeatureAttributes.d.ts +1 -2
- package/dist/components/Dashboard/utils/getLayerInfo.d.ts +1 -1
- package/dist/components/Dashboard/utils/index.d.ts +0 -1
- package/dist/components/Dashboard/utils/tooltipNameFromAttributes.d.ts +1 -1
- package/dist/contexts/FeatureCardContext/types.d.ts +1 -3
- package/dist/index.js +2433 -2435
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +2435 -2436
- package/dist/react.esm.js.map +1 -1
- package/dist/types/attribute.d.ts +2 -2
- package/dist/types/global.d.ts +2 -2
- package/dist/utils/feature.d.ts +1 -7
- package/dist/utils/format.d.ts +2 -2
- package/package.json +4 -4
- package/dist/components/Dashboard/utils/getLayerDefinition.d.ts +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AttributeConfigurationDc } from '@evergis/api';
|
|
3
3
|
import { FeaturedDcExtendedGeometry } from '../utils';
|
|
4
4
|
export type FeatureAttributeValue = FeaturedDcExtendedGeometry | string | number | boolean | Date | null | JSONAttributeValue[];
|
|
5
5
|
export type LayerAttribute = {
|
|
6
6
|
name?: string;
|
|
7
|
-
} &
|
|
7
|
+
} & AttributeConfigurationDc;
|
|
8
8
|
export type FeatureAttribute = {
|
|
9
9
|
value?: FeatureAttributeValue;
|
|
10
10
|
render?: ReactNode;
|
package/dist/types/global.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AttributesConfigurationDc, ExtendedProjectInfoDc } from '@evergis/api';
|
|
2
2
|
import { FeatureDcExtended } from '../utils';
|
|
3
3
|
export declare enum ThemeName {
|
|
4
4
|
Light = "light",
|
|
5
5
|
Dark = "dark"
|
|
6
6
|
}
|
|
7
7
|
export interface SelectedFeature extends FeatureDcExtended {
|
|
8
|
-
|
|
8
|
+
attributesConfiguration: AttributesConfigurationDc;
|
|
9
9
|
}
|
|
10
10
|
export type ProjectInfo = Partial<ExtendedProjectInfoDc> & {
|
|
11
11
|
layersCount?: number;
|
package/dist/utils/feature.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FeatureDc
|
|
1
|
+
import { FeatureDc } from '@evergis/api';
|
|
2
2
|
export interface FeaturedDcExtendedGeometry extends Omit<FeatureDc["geometry"], "coordinates"> {
|
|
3
3
|
coordinates: any;
|
|
4
4
|
}
|
|
@@ -6,9 +6,3 @@ export interface FeatureDcExtended extends Omit<FeatureDc, "geometry"> {
|
|
|
6
6
|
geometry: FeaturedDcExtendedGeometry;
|
|
7
7
|
layer: string;
|
|
8
8
|
}
|
|
9
|
-
export type ExtendedProjectContentItemDc = ProjectContentItemDc & {
|
|
10
|
-
path?: string[];
|
|
11
|
-
};
|
|
12
|
-
export type SelectedFeatureDc = FeatureDcExtended & {
|
|
13
|
-
layerDefinition: LayerDefinitionDc;
|
|
14
|
-
};
|
package/dist/utils/format.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i18n } from 'i18next';
|
|
2
|
-
import {
|
|
2
|
+
import { AttributeFormatConfigurationDc, AttributeType } from '@evergis/api';
|
|
3
3
|
import { FeatureAttributeValue } from '../types';
|
|
4
4
|
export type Coordinates = [number, number];
|
|
5
5
|
export declare const TIME_ZONE_FORMAT = " \"GMT\"z";
|
|
@@ -30,7 +30,7 @@ export declare const formatAttributeValue: ({ t, type, value, stringFormat, noUn
|
|
|
30
30
|
t: i18n["t"];
|
|
31
31
|
type: AttributeType;
|
|
32
32
|
value: FeatureAttributeValue;
|
|
33
|
-
stringFormat:
|
|
33
|
+
stringFormat: AttributeFormatConfigurationDc;
|
|
34
34
|
noUnits?: boolean;
|
|
35
35
|
}) => string;
|
|
36
36
|
export declare const formatNumber: (number: number) => string;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.0.
|
|
2
|
+
"version": "4.0.23-alpha.0",
|
|
3
3
|
"name": "@evergis/react",
|
|
4
4
|
"author": "Everpoint",
|
|
5
5
|
"license": "MIT",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"storybook": "^7.6.14"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@evergis/api": "^5.0.
|
|
58
|
-
"@evergis/charts": "^4.0.
|
|
57
|
+
"@evergis/api": "^5.0.9-alpha.6",
|
|
58
|
+
"@evergis/charts": "^4.0.8-alpha.6",
|
|
59
59
|
"@evergis/color": "^1.0.0-alpha.1",
|
|
60
60
|
"@evergis/uilib-gl": "^1.0.83",
|
|
61
61
|
"@mapbox/mapbox-gl-draw": "^1.5.0",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"uuid": "^13.0.0",
|
|
88
88
|
"wkt": "^0.1.1"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "2f7b244dd7a4d98fb6ccd1690fdb40ee4cdc4077"
|
|
91
91
|
}
|