@evergis/react 4.0.40 → 4.0.42

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`!
@@ -50,7 +50,8 @@ export interface CustomFeatureSelect {
50
50
  paint?: CircleLayerSpecification["paint"];
51
51
  layout?: CircleLayerSpecification["layout"];
52
52
  options?: {
53
- circlePadding?: number;
53
+ fitToSymbol?: boolean;
54
+ padding?: number;
54
55
  };
55
56
  };
56
57
  line?: {
@@ -176,7 +177,7 @@ export interface ConfigOptions {
176
177
  export interface ConfigDataSource {
177
178
  name: string;
178
179
  alias?: string;
179
- condition?: string;
180
+ condition?: string | string[];
180
181
  ds?: string;
181
182
  layerName?: string;
182
183
  limit?: number;
@@ -227,7 +228,7 @@ export interface SelectedFilter {
227
228
  export interface ConfigLayer {
228
229
  name: string;
229
230
  opacity?: number;
230
- condition?: string;
231
+ condition?: string | string[];
231
232
  query?: string;
232
233
  parameters?: Record<string, any>;
233
234
  geometries?: Array<any>;
@@ -17,12 +17,15 @@ export declare const applyVarsToCondition: <T extends string | string[]>({ secti
17
17
  geometry?: string;
18
18
  isSetParams?: boolean;
19
19
  }) => T;
20
- export declare const formatDataSourceCondition: ({ condition, configFilters, filters, attributes, eqlParameters, layerParams, geometry, }: {
21
- condition?: string;
20
+ type FormatDataSourceConditionParams = {
22
21
  configFilters?: ConfigFilter[];
23
22
  filters: SelectedFilters;
24
23
  attributes?: ClientFeatureAttribute[];
25
24
  eqlParameters?: QueryLayerServiceConfigurationDc["eqlParameters"];
26
25
  layerParams?: Record<string, string>;
27
26
  geometry?: string;
28
- }) => string;
27
+ };
28
+ export declare const formatDataSourceCondition: ({ condition, ...rest }: FormatDataSourceConditionParams & {
29
+ condition?: string | string[];
30
+ }) => string | string[];
31
+ export {};
@@ -3,3 +3,5 @@ export declare const SERVER_NOTIFICATION_EVENT: {
3
3
  PythonProgressNotification: string;
4
4
  PythonSandboxStats: string;
5
5
  };
6
+ export declare const POLL_SUBTASK_INTERVAL_MS = 500;
7
+ export declare const POLL_SUBTASK_TIMEOUT_MS = 15000;
@@ -0,0 +1,15 @@
1
+ import { SubTasksDto } from '@evergis/api';
2
+ interface RemoteTaskManagerLike {
3
+ get(id: string): Promise<SubTasksDto[]>;
4
+ }
5
+ interface ApiLike {
6
+ remoteTaskManager: RemoteTaskManagerLike;
7
+ }
8
+ interface PollSubtaskCompletionOptions {
9
+ taskId: string;
10
+ api: ApiLike;
11
+ intervalMs?: number;
12
+ timeoutMs?: number;
13
+ }
14
+ export declare const pollSubtaskCompletion: ({ taskId, api, intervalMs, timeoutMs, }: PollSubtaskCompletionOptions) => Promise<SubTasksDto | null>;
15
+ export {};