@evergis/react 2.0.191 → 2.0.192

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.
@@ -1,18 +1,19 @@
1
1
  import { AttributesConfigurationDc, AttributeType, FeatureLayerServiceInfoDc, LayerDefinitionDc, ServiceInfoDc, StyleDc } from '@evergis/api';
2
2
  import { ClassifyParameter, LegendProps, LegendSectionItem, ParameterInfo } from '../components';
3
- import { ClassificationClass, ClassificationParameter, ClassificationParameterExtended, ClassifyAble, ImageSymbol, LabelType, LayerAttribute, LegendValueType, MaskedImageSymbol, ParameterByAttribute, ParameterValue, ParameterValueWithSymbol, PointSymbolType, PolygonSymbol, PolylineSymbol, RangeClass, StyleSymbolType, SvgPointSymbol, UniqueClass } from '../core';
3
+ import { ClassificationClass, ClassificationCondition, ClassificationParameter, ClassificationParameterExtended, ClassifyAble, ImageSymbol, LabelType, LayerAttribute, LegendValueType, MaskedImageSymbol, ParameterByAttribute, ParameterByAttributeValue, ParameterValue, ParameterValueWithSymbol, PointSymbolType, PolygonSymbol, PolylineSymbol, RangeClass, StyleSymbolType, SvgPointSymbol, UniqueClass } from '../core';
4
4
  export declare const isLayerService: (value?: unknown) => value is import("@evergis/api").ResourceInfoDc | ServiceInfoDc;
5
5
  export declare const getAttributeFromCondition: (condition: string) => string;
6
6
  export declare const getExprFromCondition: (condition: string, partIndex?: number | undefined) => string[];
7
7
  export declare const getSignFromConditionPart: (condition: string, partIndex?: number | undefined) => string;
8
8
  export declare const getValueFromConditionPart: (condition: string, partIndex?: number | undefined) => string;
9
- export declare const isRangeCondition: (condition: string) => boolean;
9
+ export declare const isRangeCondition: (condition?: string | undefined) => boolean;
10
10
  export declare const getSymbolParameterInfo: (parameter: ClassificationParameter) => ParameterInfo;
11
11
  export declare const formatUniqueClassValue: (value: UniqueClass, formatValue?: LegendProps['formatValue']) => string;
12
12
  export declare const getRangeValues: ({ from, to }: Pick<RangeClass, 'from' | 'to'>, isDouble: boolean, isDate: boolean, index: number) => Pick<RangeClass, 'from' | 'to'>;
13
13
  export declare const formatRangeClassValue: (value: RangeClass, formatValue: LegendProps['formatValue'], index: number) => string;
14
14
  export declare const checkLayerHasLegend: (layerInfo: Pick<FeatureLayerServiceInfoDc, 'geometryType' | 'style'>) => boolean;
15
- export declare const getTitleFromCondition: (condition: string) => string;
15
+ export declare const getTitleFromCondition: (condition?: string | undefined) => string;
16
+ export declare function createValueTitleFromCondition(paramValue: ParameterByAttributeValue<ParameterValueWithSymbol>, attribute: LayerAttribute | null, formatValue: LegendProps['formatValue'], index: number): string;
16
17
  export declare const enum LegendSymbolTypes {
17
18
  Point = 0,
18
19
  ImagePoint = 1,
@@ -37,9 +38,9 @@ export declare function getDimensions(symbol: ImageSymbol, size: number): Dimens
37
38
  export declare const createLegendSymbol: (parameterValue: ParameterValueWithSymbol, parameter: ClassificationParameterExtended, classificationsParams: ClassificationParameterExtended[], baseSymbol: StyleSymbolType) => StyleSymbolType | null;
38
39
  export declare function createHiddenCondition(attributeName: string, attributeType: AttributeType, value: ClassificationClass): string | null;
39
40
  export declare const createOtherHiddenCondition: (values: ClassificationClass[], attributeName: string, attributeType: AttributeType) => string | null;
40
- export declare const getMinimizedLegendValues: (attribute: LayerAttribute, classified: ParameterByAttribute<ParameterValue>, formatValue: LegendProps['formatValue'], index: number, otherTitle: string) => LegendValueType[];
41
- export declare const getMaximizedLegendValues: (attribute: LayerAttribute, param: ClassificationParameterExtended, params: ClassificationParameterExtended[], classified: ParameterByAttribute<ParameterValue>, symbol: StyleDc['symbol'], formatValue: LegendProps['formatValue'], sectionIndex: number, otherTitle: string) => LegendSectionItem[];
42
- export declare type ClassifiedList = Record<ClassifyParameter, ParameterByAttribute<ParameterValue>>;
41
+ export declare const getMinimizedLegendValues: (attribute: LayerAttribute, classified: ParameterByAttribute<ParameterValueWithSymbol>, formatValue: LegendProps['formatValue'], index: number, otherTitle: string) => LegendValueType[];
42
+ export declare const getMaximizedLegendValues: (attribute: LayerAttribute, param: ClassificationParameterExtended, params: ClassificationParameterExtended[], classified: ParameterByAttribute<ParameterValueWithSymbol>, symbol: StyleDc['symbol'], formatValue: LegendProps['formatValue'], sectionIndex: number, otherTitle: string) => LegendSectionItem[];
43
+ export declare type ClassifiedList = Partial<Record<ClassifyParameter, ParameterByAttribute<ParameterValueWithSymbol>>>;
43
44
  export declare const getClassified: (layerInfo: FeatureLayerServiceInfoDc) => ClassifiedList;
44
45
  export declare const getSymbolStrokeWidth: (symbol: PointSymbolType) => number;
45
46
  export declare const getParameterFromSymbol: <R extends ClassifyAble<ParameterValue>>(symbol: StyleSymbolType | LabelType, parameter: ClassificationParameterExtended) => R;
@@ -70,4 +71,5 @@ export declare const DEFAULT_ID_ATTRIBUTE_NAME = "gid";
70
71
  export declare const getAttributesConfiguration: (layer: ServiceInfoDc) => AttributesConfigurationDc;
71
72
  export declare const getLayerDefinition: (layer?: FeatureLayerServiceInfoDc | undefined) => LayerDefinitionDc;
72
73
  export declare function getAttributeType(layer: FeatureLayerServiceInfoDc, attributeName: string): AttributeType;
74
+ export declare const getClassificationValue: (parameterValue: ParameterValueWithSymbol, title: string, condition: ClassificationCondition) => ClassificationClass;
73
75
  export {};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.191",
2
+ "version": "2.0.192",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -79,5 +79,5 @@
79
79
  "punycode": "^2.1.1",
80
80
  "styled-components": "^5.3.5"
81
81
  },
82
- "gitHead": "b578b658ba66d225057c1b009edfdc3b1a01a0c8"
82
+ "gitHead": "1de68c24b48f0ef8fa920783a831f21660406082"
83
83
  }