@evergis/react 4.0.112 → 4.0.114

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.
@@ -2,6 +2,14 @@ import { i18n } from 'i18next';
2
2
  import { AttributeFormatConfigurationDc, AttributeType } from '@evergis/api';
3
3
  import { FeatureAttributeValue } from '../types';
4
4
  export type Coordinates = [number, number];
5
+ /**
6
+ * Настройки формата атрибута. Расширяют серверный контракт полями, которых нет в swagger:
7
+ * контракт генерируется, править его нельзя.
8
+ */
9
+ export type AttributeFormatConfiguration = AttributeFormatConfigurationDc & {
10
+ /** Компактное округление больших чисел: 1 234 578 → «1.2M», 15 000 → «15.0K». */
11
+ roundDigitGroup?: boolean;
12
+ };
5
13
  export declare const TIME_ZONE_FORMAT = " \"GMT\"z";
6
14
  export declare enum ScalingFactor {
7
15
  Default = 1,
@@ -30,7 +38,7 @@ export declare const formatAttributeValue: ({ t, type, value, stringFormat, noUn
30
38
  t: i18n["t"];
31
39
  type: AttributeType;
32
40
  value: FeatureAttributeValue;
33
- stringFormat: AttributeFormatConfigurationDc;
41
+ stringFormat: AttributeFormatConfiguration;
34
42
  noUnits?: boolean;
35
43
  }) => string;
36
44
  export declare const formatNumber: (number: number) => string;
@@ -8,3 +8,4 @@ export * from './isLayerService';
8
8
  export * from './isNumeric';
9
9
  export * from './isObject';
10
10
  export * from './metersPerPixel';
11
+ export * from './roundTotalSum';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.112",
2
+ "version": "4.0.114",
3
3
  "name": "@evergis/react",
4
4
  "author": "Everpoint",
5
5
  "license": "MIT",
@@ -89,5 +89,5 @@
89
89
  "uuid": "^13.0.0",
90
90
  "wkt": "^0.1.1"
91
91
  },
92
- "gitHead": "d486556f3a8af231f4ba75c54fc53c15e30650b5"
92
+ "gitHead": "b5e94fc9b4019bca77db0ab3e63008cdea49f521"
93
93
  }