@vertigis/viewer-spec 51.7.0 → 51.9.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.
@@ -0,0 +1,39 @@
1
+ import type { Action } from "@vertigis/arcgis-extensions/support/Action";
2
+ import type { ComponentModelProperties } from "../common/ComponentModelProperties.js";
3
+ import type { ItemRef } from "../common/ItemRef.js";
4
+ /**
5
+ * Configuration for a generic event listener.
6
+ */
7
+ export interface EventListenerModelProperties extends ComponentModelProperties {
8
+ /**
9
+ * A collection of event listener definitions. Each element has to be an
10
+ * inline JSON defining an event listener definition item.
11
+ */
12
+ listeners: EventListenerDefinitionProperties[];
13
+ }
14
+ /**
15
+ * Properties for a generic event listener definition. Specifies an action to
16
+ * execute whenever the target event is published.
17
+ * If the sender property is assigned, the action will only be executed
18
+ * if the event is published with the specified sender.
19
+ */
20
+ export interface EventListenerDefinitionProperties {
21
+ /**
22
+ * The name of the event to listen to. This value has to match the events
23
+ * name that gets published (including its namespace prefix,
24
+ * e.g. map.navigation-completed). All events are supported, both built in
25
+ * events as well as custom events published through "viewer.publish-event"
26
+ * or the Publish Event workflow activity.
27
+ */
28
+ event: string;
29
+ /**
30
+ * An optional reference to an item, that is to be used as a filter.
31
+ * If set, only events published by the specified sender object,
32
+ * will cause the action to be executed.
33
+ */
34
+ sender?: ItemRef;
35
+ /**
36
+ * The action to perform, when the specified events gets published.
37
+ */
38
+ action: Action;
39
+ }
@@ -0,0 +1 @@
1
+ export{};