@evergis/react 4.0.22 → 4.0.23-alpha.1

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 CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Everpoint
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Everpoint
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # @evergis/react
2
-
3
- В данном репозитории находятся специфичные (в отличии от `@evergis/uilib-gl`) для `Evergis Online`,
4
- но в целом переиспользуемые на других проектах, построенных на Evergis API, React-компоненты.
5
-
6
- ***ВАЖНО!!!***: Разрабатываемые компоненты не должны иметь зависимостей
7
- от системы поддержки мультиязычности `Evergis Online`!
1
+ # @evergis/react
2
+
3
+ В данном репозитории находятся специфичные (в отличии от `@evergis/uilib-gl`) для `Evergis Online`,
4
+ но в целом переиспользуемые на других проектах, построенных на Evergis API, React-компоненты.
5
+
6
+ ***ВАЖНО!!!***: Разрабатываемые компоненты не должны иметь зависимостей
7
+ от системы поддержки мультиязычности `Evergis Online`!
@@ -2,7 +2,7 @@ import { CSSProperties, FC, ReactNode } from 'react';
2
2
  import { i18n } from 'i18next';
3
3
  import { PieChartData, BarChartMarker } from '@evergis/charts';
4
4
  import { IconTypesKeys, IOption } from '@evergis/uilib-gl';
5
- import { AttributeDefinitionDc, AttributeFormatDefinitionDc, AttributeType, EqlRequestDc, FeatureDc, OgcGeometryType, PagedFeaturesListDc, PositionDc, QueryLayerServiceInfoDc, RemoteTaskStatus, StringSubType } from '@evergis/api';
5
+ import { AttributeFormatConfigurationDc, AttributeType, EqlRequestDc, FeatureDc, OgcGeometryType, PagedFeaturesListDc, PositionDc, QueryLayerServiceInfoDc, RemoteTaskStatus, StringSubType, AttributesConfigurationDc } from '@evergis/api';
6
6
  import { FeatureAttributeValue, EditGeometryType, ThemeName } from '../../types';
7
7
  import { InnerContainerProps } from './containers/DataSourceInnerContainer/types';
8
8
  export interface DashboardsProps {
@@ -171,7 +171,7 @@ export interface ConfigDataSource {
171
171
  }
172
172
  export interface EqlDataSource {
173
173
  items: FeatureDc[];
174
- attributeDefinition?: Record<string, AttributeDefinitionDc>;
174
+ attributes?: AttributesConfigurationDc["attributes"];
175
175
  }
176
176
  export type ConfigFilterValueType = "single" | "range" | "array";
177
177
  export interface ConfigFilter {
@@ -361,13 +361,13 @@ export interface FetchedDataSource {
361
361
  name: string;
362
362
  features: FeatureDc[];
363
363
  layerName?: string;
364
- attributeDefinition?: Record<string, AttributeDefinitionDc>;
364
+ attributes?: AttributesConfigurationDc["attributes"];
365
365
  }
366
366
  export interface WidgetDataSource {
367
367
  name: string;
368
368
  features: FeatureDc[];
369
369
  layerName?: string;
370
- attributeDefinition?: Record<string, AttributeDefinitionDc>;
370
+ attributes?: AttributesConfigurationDc["attributes"];
371
371
  }
372
372
  export type SelectedFilters = Record<string, SelectedFilter>;
373
373
  type DashboardLayerProps = {
@@ -381,14 +381,14 @@ export type DashboardState = {
381
381
  };
382
382
  export type ClientFeatureAttribute = {
383
383
  id: string;
384
- name: string;
384
+ attributeName: string;
385
385
  alias: string;
386
386
  description: string;
387
387
  value: FeatureAttributeValue;
388
388
  type: AttributeType;
389
389
  readOnly?: boolean;
390
390
  subType?: StringSubType;
391
- stringFormat?: AttributeFormatDefinitionDc;
391
+ stringFormat?: AttributeFormatConfigurationDc;
392
392
  clientData?: unknown;
393
393
  };
394
394
  export {};
@@ -1,2 +1,2 @@
1
1
  import { ClientFeatureAttribute } from '../types';
2
- export declare const getAttributeByName: (attributeName: string | string[], attributes: ClientFeatureAttribute[]) => ClientFeatureAttribute;
2
+ export declare const getAttributeByName: (name: string | string[], attributes: ClientFeatureAttribute[]) => ClientFeatureAttribute;
@@ -1,2 +1,2 @@
1
1
  import { AttributesConfigurationDc, QueryLayerServiceInfoDc } from '@evergis/api';
2
- export declare const getAttributesConfiguration: (layer: QueryLayerServiceInfoDc) => AttributesConfigurationDc;
2
+ export declare const getAttributesConfiguration: (layer?: QueryLayerServiceInfoDc) => AttributesConfigurationDc;
@@ -1,4 +1,3 @@
1
1
  import { FeatureDc, QueryLayerServiceInfoDc } from '@evergis/api';
2
- import { SelectedFeatureDc } from '../../../utils';
3
2
  import { ClientFeatureAttribute, FetchedDataSource } from '../types';
4
- export declare function getFeatureAttributes(feature?: FeatureDc | SelectedFeatureDc, layer?: QueryLayerServiceInfoDc, dataSource?: FetchedDataSource): ClientFeatureAttribute[];
3
+ export declare function getFeatureAttributes(feature?: FeatureDc, layer?: QueryLayerServiceInfoDc, dataSource?: FetchedDataSource): ClientFeatureAttribute[];
@@ -3,4 +3,4 @@ import { ProxyServiceInfo } from '../../../types';
3
3
  export declare const isCompositeLayerConfiguration: (value?: unknown) => value is ServiceInfoDc;
4
4
  export declare const isProxyService: (value?: unknown) => value is ProxyServiceInfoDc;
5
5
  export declare const getProxyService: (layer?: QueryLayerServiceInfoDc) => ProxyServiceInfo;
6
- export declare function getLayerInfo(layer?: QueryLayerServiceInfoDc): QueryLayerServiceInfoDc;
6
+ export declare const getLayerInfo: (layer?: QueryLayerServiceInfoDc) => QueryLayerServiceInfoDc;
@@ -32,7 +32,6 @@ export * from './getFilterComponent';
32
32
  export * from './getFilterSelectedItems';
33
33
  export * from './getFilterValue';
34
34
  export * from './getFormattedAttributes';
35
- export * from './getLayerDefinition';
36
35
  export * from './getLayerInfo';
37
36
  export * from './getLayerInfoFromDataSources';
38
37
  export * from './getPagesFromConfig';
@@ -1,2 +1,2 @@
1
1
  import { ClientFeatureAttribute } from '../types';
2
- export declare const tooltipNameFromAttributes: (name: string, attributes: ClientFeatureAttribute[]) => string;
2
+ export declare const tooltipNameFromAttributes: (attributeName: string, attributes: ClientFeatureAttribute[]) => string;
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { LayerReferenceConfigurationDc, QueryLayerServiceInfoDc } from '@evergis/api';
2
+ import { QueryLayerServiceInfoDc } from '@evergis/api';
3
3
  import { ClientFeatureAttribute, ConfigContainer, EditAttributeValue, SelectedFilters, WidgetDataSource } from '../../components';
4
4
  import { SelectedFeature } from '../../types';
5
5
  export type FeatureCardContextSettings = PropsWithChildren<{
@@ -8,7 +8,6 @@ export type FeatureCardContextSettings = PropsWithChildren<{
8
8
  layerInfo?: QueryLayerServiceInfoDc;
9
9
  feature?: SelectedFeature;
10
10
  pageIndex?: number;
11
- handBookReference?: LayerReferenceConfigurationDc;
12
11
  isRaster?: boolean;
13
12
  editMode?: boolean;
14
13
  isFeatureEditable?: boolean;
@@ -24,7 +23,6 @@ export type FeatureCardContextSettings = PropsWithChildren<{
24
23
  changeControls?: (controls: Record<string, EditAttributeValue>) => void;
25
24
  expandContainer?: (id: string, expanded?: boolean) => void;
26
25
  setSelectedTabId?: (id: string) => void;
27
- setHandBookReference?: (reference: LayerReferenceConfigurationDc) => void;
28
26
  nextPage?: (totalPages: number) => void;
29
27
  prevPage?: (totalPages: number) => void;
30
28
  changePage?: (pageIndex: number) => void;