@vertigis/viewer-spec 61.1.0 → 61.2.0
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.
|
@@ -236,6 +236,23 @@ export interface BulkAttributeUpdateArgs extends HasFeatures {
|
|
|
236
236
|
* The attributes to update on all features.
|
|
237
237
|
*/
|
|
238
238
|
attributes: Record<string, unknown>;
|
|
239
|
+
/**
|
|
240
|
+
* Optional list of bulk attribute update overrides to the values of
|
|
241
|
+
* participating and non-participating fields, keyed by feature.id and then
|
|
242
|
+
* by field name.
|
|
243
|
+
*
|
|
244
|
+
* **Example:** Override field `color` and feature with id =
|
|
245
|
+
* "8a9214f5-aa9e-4bbb-a24a-28cc6f59e0af".
|
|
246
|
+
*
|
|
247
|
+
* ```
|
|
248
|
+
* {
|
|
249
|
+
* "8a9214f5-aa9e-4bbb-a24a-28cc6f59e0af": {
|
|
250
|
+
* "color": "Green"
|
|
251
|
+
* }
|
|
252
|
+
* }
|
|
253
|
+
* ```
|
|
254
|
+
*/
|
|
255
|
+
overrides?: Record<string, Record<string, unknown>>;
|
|
239
256
|
}
|
|
240
257
|
/**
|
|
241
258
|
* Result of a bulk attribute validation. Web only.
|
|
@@ -250,10 +267,40 @@ export interface ValidationResult {
|
|
|
250
267
|
*/
|
|
251
268
|
message?: string;
|
|
252
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* Arguments for bulk attribute pre-validation event. Web only.
|
|
272
|
+
*/
|
|
273
|
+
export interface BulkAttributePreValidationEventArgs extends HasFeatures {
|
|
274
|
+
/**
|
|
275
|
+
* The attributes that will be applied to the features.
|
|
276
|
+
*/
|
|
277
|
+
attributes: Record<string, unknown>;
|
|
278
|
+
/**
|
|
279
|
+
* Optional list of bulk attribute update overrides to the values of
|
|
280
|
+
* participating and non-participating fields, keyed by feature.id and then
|
|
281
|
+
* by field name.
|
|
282
|
+
*
|
|
283
|
+
* **Example:** Override field `color` and feature with id =
|
|
284
|
+
* "8a9214f5-aa9e-4bbb-a24a-28cc6f59e0af".
|
|
285
|
+
*
|
|
286
|
+
* ```
|
|
287
|
+
* {
|
|
288
|
+
* "8a9214f5-aa9e-4bbb-a24a-28cc6f59e0af": {
|
|
289
|
+
* "color": "Green"
|
|
290
|
+
* }
|
|
291
|
+
* }
|
|
292
|
+
* ```
|
|
293
|
+
*/
|
|
294
|
+
overrides?: Record<string, Record<string, unknown>>;
|
|
295
|
+
}
|
|
253
296
|
/**
|
|
254
297
|
* Arguments for bulk attribute validation events. Web only.
|
|
255
298
|
*/
|
|
256
299
|
export interface BulkAttributeValidationEventArgs extends HasFeatures {
|
|
300
|
+
/**
|
|
301
|
+
* The attributes that will be applied to the features.
|
|
302
|
+
*/
|
|
303
|
+
attributes: Record<string, unknown>;
|
|
257
304
|
/**
|
|
258
305
|
* Array of validation results from different validators. The bulk edit
|
|
259
306
|
* operation is considered valid only if all results are valid.
|
|
@@ -273,15 +320,6 @@ export interface BulkAttributeCompleteEventArgs extends HasFeatures {
|
|
|
273
320
|
*/
|
|
274
321
|
error?: string;
|
|
275
322
|
}
|
|
276
|
-
/**
|
|
277
|
-
* Arguments for bulk attribute pre-validation event. Web only.
|
|
278
|
-
*/
|
|
279
|
-
export interface BulkAttributePreValidationEventArgs extends HasFeatures {
|
|
280
|
-
/**
|
|
281
|
-
* The attributes that will be applied to the features.
|
|
282
|
-
*/
|
|
283
|
-
attributes: Record<string, unknown>;
|
|
284
|
-
}
|
|
285
323
|
/**
|
|
286
324
|
* Override settings for a field element.
|
|
287
325
|
*/
|
|
@@ -469,7 +507,11 @@ export declare class EditEvents extends EventRegistry {
|
|
|
469
507
|
*/
|
|
470
508
|
get bulkAttributeUpdatePreValidation(): Event<BulkAttributePreValidationEventArgs>;
|
|
471
509
|
/**
|
|
472
|
-
* Raised when bulk attribute update validation is complete
|
|
510
|
+
* Raised when bulk attribute update validation is complete, allowing for
|
|
511
|
+
* subscribers to perform additional validation and add the results to the
|
|
512
|
+
* `validationResults` array. If any validations failed, errors will be
|
|
513
|
+
* displayed to the user and the bulk attribute update will be cancelled.
|
|
514
|
+
* Web only.
|
|
473
515
|
*
|
|
474
516
|
* @webOnly
|
|
475
517
|
*/
|
|
@@ -2890,6 +2890,9 @@
|
|
|
2890
2890
|
"features": {
|
|
2891
2891
|
"$ref": "#/definitions/FeaturesLike",
|
|
2892
2892
|
"description": "Features to use for the command/operation."
|
|
2893
|
+
},
|
|
2894
|
+
"overrides": {
|
|
2895
|
+
"description": "Optional list of bulk attribute update overrides to the values of participating and non-participating fields, keyed by feature.id and then by field name.\n\n**Example:** Override field `color` and feature with id = \"8a9214f5-aa9e-4bbb-a24a-28cc6f59e0af\".\n\n```\n{\n \"8a9214f5-aa9e-4bbb-a24a-28cc6f59e0af\": {\n \"color\": \"Green\"\n }\n}\n```"
|
|
2893
2896
|
}
|
|
2894
2897
|
},
|
|
2895
2898
|
"required": [
|
|
@@ -174,6 +174,9 @@ BulkAttributeUpdateArgs properties:
|
|
|
174
174
|
},
|
|
175
175
|
"features": {
|
|
176
176
|
"description": "Features to use for the command/operation."
|
|
177
|
+
},
|
|
178
|
+
"overrides": {
|
|
179
|
+
"description": "Optional list of bulk attribute update overrides to the values of participating and non-participating fields, keyed by feature.id and then by field name.\n\n**Example:** Override field `color` and feature with id = \"8a9214f5-aa9e-4bbb-a24a-28cc6f59e0af\".\n\n```\n{\n \"8a9214f5-aa9e-4bbb-a24a-28cc6f59e0af\": {\n \"color\": \"Green\"\n }\n}\n```"
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
```
|
|
@@ -2161,6 +2161,9 @@
|
|
|
2161
2161
|
"features": {
|
|
2162
2162
|
"$ref": "#/definitions/FeaturesLike",
|
|
2163
2163
|
"description": "Features to use for the command/operation."
|
|
2164
|
+
},
|
|
2165
|
+
"overrides": {
|
|
2166
|
+
"description": "Optional list of bulk attribute update overrides to the values of participating and non-participating fields, keyed by feature.id and then by field name.\n\n**Example:** Override field `color` and feature with id = \"8a9214f5-aa9e-4bbb-a24a-28cc6f59e0af\".\n\n```\n{\n \"8a9214f5-aa9e-4bbb-a24a-28cc6f59e0af\": {\n \"color\": \"Green\"\n }\n}\n```"
|
|
2164
2167
|
}
|
|
2165
2168
|
},
|
|
2166
2169
|
"required": [
|
|
@@ -2172,6 +2175,9 @@
|
|
|
2172
2175
|
"additionalProperties": false,
|
|
2173
2176
|
"description": "Arguments for bulk attribute validation events. Web only.",
|
|
2174
2177
|
"properties": {
|
|
2178
|
+
"attributes": {
|
|
2179
|
+
"description": "The attributes that will be applied to the features."
|
|
2180
|
+
},
|
|
2175
2181
|
"features": {
|
|
2176
2182
|
"$ref": "#/definitions/FeaturesLike",
|
|
2177
2183
|
"description": "Features to use for the command/operation."
|
|
@@ -2185,6 +2191,7 @@
|
|
|
2185
2191
|
}
|
|
2186
2192
|
},
|
|
2187
2193
|
"required": [
|
|
2194
|
+
"attributes",
|
|
2188
2195
|
"validationResults"
|
|
2189
2196
|
],
|
|
2190
2197
|
"type": "object"
|
|
@@ -4711,7 +4718,7 @@
|
|
|
4711
4718
|
"$ref": "#/definitions/BulkAttributePreValidationEventArgs"
|
|
4712
4719
|
},
|
|
4713
4720
|
"edit.bulk-attribute-update-validation": {
|
|
4714
|
-
"description": "Raised when bulk attribute update validation is complete. Web only.",
|
|
4721
|
+
"description": "Raised when bulk attribute update validation is complete, allowing for subscribers to perform additional validation and add the results to the `validationResults` array. If any validations failed, errors will be displayed to the user and the bulk attribute update will be cancelled. Web only.",
|
|
4715
4722
|
"enum": [
|
|
4716
4723
|
"edit.bulk-attribute-update-validation"
|
|
4717
4724
|
]
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED