@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.
Files changed (38) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +7 -7
  3. package/dist/components/Dashboard/components/AddFeatureButton/index.d.ts +2 -2
  4. package/dist/components/Dashboard/containers/ChartContainer/types.d.ts +2 -2
  5. package/dist/components/Dashboard/hooks/useDataSources.d.ts +2 -2
  6. package/dist/components/Dashboard/hooks/useRelatedDataSourceAttributes.d.ts +3 -2
  7. package/dist/components/Dashboard/hooks/useWidgetContext.d.ts +2 -2
  8. package/dist/components/Dashboard/types.d.ts +4 -4
  9. package/dist/components/Dashboard/utils/formatChartRelatedValue.d.ts +2 -2
  10. package/dist/components/Dashboard/utils/getDataFromRelatedFeatures.d.ts +2 -2
  11. package/dist/components/Dashboard/utils/getElementValue.d.ts +2 -2
  12. package/dist/components/Dashboard/utils/getFeatureAttributes.d.ts +3 -2
  13. package/dist/components/Dashboard/utils/getLayerDefinition.d.ts +3 -2
  14. package/dist/components/Dashboard/utils/getLayerInfo.d.ts +3 -3
  15. package/dist/components/Dashboard/utils/getLayerInfoFromDataSources.d.ts +2 -2
  16. package/dist/components/Dashboard/utils/getRelatedAttribute.d.ts +2 -2
  17. package/dist/components/Dashboard/utils/getSvgUrl.d.ts +2 -3
  18. package/dist/components/Dashboard/utils/pieChartTooltipFromRelatedFeatures.d.ts +2 -2
  19. package/dist/components/Dashboard/utils/tooltipValueFromRelatedFeatures.d.ts +2 -2
  20. package/dist/components/Layer/types.d.ts +2 -2
  21. package/dist/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +2 -2
  22. package/dist/components/LayerIcon/index.d.ts +2 -2
  23. package/dist/contexts/DashboardContext/types.d.ts +3 -2
  24. package/dist/contexts/FeatureCardContext/types.d.ts +3 -3
  25. package/dist/core/feature/convertSpToTurfFeature.d.ts +3 -0
  26. package/dist/core/feature/index.d.ts +1 -0
  27. package/dist/core/index.d.ts +1 -0
  28. package/dist/hooks/map/useLayerParams.d.ts +3 -2
  29. package/dist/index.js +2474 -2461
  30. package/dist/index.js.map +1 -1
  31. package/dist/react.esm.js +2476 -2463
  32. package/dist/react.esm.js.map +1 -1
  33. package/dist/types/attribute.d.ts +10 -0
  34. package/dist/types/layer.d.ts +30 -1
  35. package/dist/utils/date.d.ts +1 -1
  36. package/dist/utils/index.d.ts +0 -1
  37. package/package.json +5 -5
  38. 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;
@@ -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 {};
@@ -8,7 +8,7 @@ export declare enum DateFormat {
8
8
  AxisTooltip = "d MMMM yyyy"
9
9
  }
10
10
  interface FormatDateOptions {
11
- dateFormat?: DateFormat | string;
11
+ dateFormat?: DateFormat;
12
12
  defaultValue?: RawDateType;
13
13
  }
14
14
  export declare const getDate: (rawDate?: RawDateType | null) => Date | null;
@@ -6,4 +6,3 @@ export * from './format';
6
6
  export * from './isLayerService';
7
7
  export * from './isNumeric';
8
8
  export * from './isObject';
9
- export * from './metersPerPixel';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.1.129-alpha.3",
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.56-alpha.3",
58
- "@evergis/charts": "^3.1.52",
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.83",
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": "01ef957006b5753b413a5c525ce21df4b3e03a79"
90
+ "gitHead": "bb1cd0ea7e7175720863c636ac8cb06703a2cd3e"
91
91
  }
@@ -1 +0,0 @@
1
- export declare const metersPerPixel: (zoom: number, lat: number) => number;