@vertigis/viewer-spec 42.10.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.
Files changed (345) hide show
  1. package/LICENSE +5 -0
  2. package/README.md +3 -0
  3. package/app-config/AppConfig.d.ts +55 -0
  4. package/app-config/AppConfig.js +1 -0
  5. package/app-config/ItemConfig.d.ts +18 -0
  6. package/app-config/ItemConfig.js +1 -0
  7. package/app-config/common/BasemapPickerModelProperties.d.ts +6 -0
  8. package/app-config/common/BasemapPickerModelProperties.js +1 -0
  9. package/app-config/common/BookmarksModelProperties.d.ts +17 -0
  10. package/app-config/common/BookmarksModelProperties.js +1 -0
  11. package/app-config/common/BrandingColors.d.ts +94 -0
  12. package/app-config/common/BrandingColors.js +1 -0
  13. package/app-config/common/BrandingModelProperties.d.ts +23 -0
  14. package/app-config/common/BrandingModelProperties.js +1 -0
  15. package/app-config/common/BrandingThemeProperties.d.ts +35 -0
  16. package/app-config/common/BrandingThemeProperties.js +1 -0
  17. package/app-config/common/CompassModelProperties.d.ts +6 -0
  18. package/app-config/common/CompassModelProperties.js +1 -0
  19. package/app-config/common/ComponentModelProperties.d.ts +14 -0
  20. package/app-config/common/ComponentModelProperties.js +1 -0
  21. package/app-config/common/CoordinateModelProperties.d.ts +34 -0
  22. package/app-config/common/CoordinateModelProperties.js +1 -0
  23. package/app-config/common/DialogModelProperties.d.ts +6 -0
  24. package/app-config/common/DialogModelProperties.js +1 -0
  25. package/app-config/common/ExpandModelProperties.d.ts +6 -0
  26. package/app-config/common/ExpandModelProperties.js +1 -0
  27. package/app-config/common/FeatureDetailsModelProperties.d.ts +27 -0
  28. package/app-config/common/FeatureDetailsModelProperties.js +1 -0
  29. package/app-config/common/GeolocationModelProperties.d.ts +6 -0
  30. package/app-config/common/GeolocationModelProperties.js +1 -0
  31. package/app-config/common/HighlightModelProperties.d.ts +69 -0
  32. package/app-config/common/HighlightModelProperties.js +1 -0
  33. package/app-config/common/ImageModelProperties.d.ts +14 -0
  34. package/app-config/common/ImageModelProperties.js +1 -0
  35. package/app-config/common/ItemRef.d.ts +4 -0
  36. package/app-config/common/ItemRef.js +1 -0
  37. package/app-config/common/LayerListModelProperties.d.ts +12 -0
  38. package/app-config/common/LayerListModelProperties.js +1 -0
  39. package/app-config/common/LayerPresetsModelProperties.d.ts +14 -0
  40. package/app-config/common/LayerPresetsModelProperties.js +1 -0
  41. package/app-config/common/LayoutProperties.d.ts +33 -0
  42. package/app-config/common/LayoutProperties.js +1 -0
  43. package/app-config/common/LegendModelProperties.d.ts +6 -0
  44. package/app-config/common/LegendModelProperties.js +1 -0
  45. package/app-config/common/LicensingModelProperties.d.ts +10 -0
  46. package/app-config/common/LicensingModelProperties.js +1 -0
  47. package/app-config/common/MapCoordinatesModelProperties.d.ts +6 -0
  48. package/app-config/common/MapCoordinatesModelProperties.js +1 -0
  49. package/app-config/common/MapModelProperties.d.ts +7 -0
  50. package/app-config/common/MapModelProperties.js +1 -0
  51. package/app-config/common/MenuModelProperties.d.ts +13 -0
  52. package/app-config/common/MenuModelProperties.js +1 -0
  53. package/app-config/common/ModelProperties.d.ts +6 -0
  54. package/app-config/common/ModelProperties.js +1 -0
  55. package/app-config/common/PanelModelProperties.d.ts +6 -0
  56. package/app-config/common/PanelModelProperties.js +1 -0
  57. package/app-config/common/RegionModelProperties.d.ts +26 -0
  58. package/app-config/common/RegionModelProperties.js +1 -0
  59. package/app-config/common/ResultsModelProperties.d.ts +12 -0
  60. package/app-config/common/ResultsModelProperties.js +1 -0
  61. package/app-config/common/ScalebarModelProperties.d.ts +6 -0
  62. package/app-config/common/ScalebarModelProperties.js +1 -0
  63. package/app-config/common/SearchModelProperties.d.ts +26 -0
  64. package/app-config/common/SearchModelProperties.js +1 -0
  65. package/app-config/common/ServiceModelProperties.d.ts +6 -0
  66. package/app-config/common/ServiceModelProperties.js +1 -0
  67. package/app-config/common/SplitModelProperties.d.ts +6 -0
  68. package/app-config/common/SplitModelProperties.js +1 -0
  69. package/app-config/common/StackModelProperties.d.ts +6 -0
  70. package/app-config/common/StackModelProperties.js +1 -0
  71. package/app-config/common/TextModelProperties.d.ts +10 -0
  72. package/app-config/common/TextModelProperties.js +1 -0
  73. package/app-config/common/TranslatableText.d.ts +27 -0
  74. package/app-config/common/TranslatableText.js +1 -0
  75. package/app-config/common/UserModelProperties.d.ts +6 -0
  76. package/app-config/common/UserModelProperties.js +1 -0
  77. package/app-config/common/WorkflowEventsProperties.d.ts +11 -0
  78. package/app-config/common/WorkflowEventsProperties.js +1 -0
  79. package/app-config/common/WorkflowModelProperties.d.ts +44 -0
  80. package/app-config/common/WorkflowModelProperties.js +1 -0
  81. package/app-config/common/ZoomModelProperties.d.ts +6 -0
  82. package/app-config/common/ZoomModelProperties.js +1 -0
  83. package/app-config/common/colors.d.ts +6 -0
  84. package/app-config/common/colors.js +1 -0
  85. package/app-config/index.d.ts +2 -0
  86. package/app-config/index.js +1 -0
  87. package/app-config/mobile/AddFeatureModelProperties.d.ts +6 -0
  88. package/app-config/mobile/AddFeatureModelProperties.js +1 -0
  89. package/app-config/mobile/AddRelatedFeatureModelProperties.d.ts +6 -0
  90. package/app-config/mobile/AddRelatedFeatureModelProperties.js +1 -0
  91. package/app-config/mobile/BasemapModelProperties.d.ts +11 -0
  92. package/app-config/mobile/BasemapModelProperties.js +1 -0
  93. package/app-config/mobile/FeatureDetailsModelProperties.d.ts +23 -0
  94. package/app-config/mobile/FeatureDetailsModelProperties.js +1 -0
  95. package/app-config/mobile/GeometryToolbarModelProperties.d.ts +6 -0
  96. package/app-config/mobile/GeometryToolbarModelProperties.js +1 -0
  97. package/app-config/mobile/GnssDeviceSelectionModelProperties.d.ts +6 -0
  98. package/app-config/mobile/GnssDeviceSelectionModelProperties.js +1 -0
  99. package/app-config/mobile/GnssDeviceSettingsModelProperties.d.ts +6 -0
  100. package/app-config/mobile/GnssDeviceSettingsModelProperties.js +1 -0
  101. package/app-config/mobile/GnssMetadataModelProperties.d.ts +6 -0
  102. package/app-config/mobile/GnssMetadataModelProperties.js +1 -0
  103. package/app-config/mobile/MapModelProperties.d.ts +45 -0
  104. package/app-config/mobile/MapModelProperties.js +1 -0
  105. package/app-config/mobile/OfflineModelProperties.d.ts +48 -0
  106. package/app-config/mobile/OfflineModelProperties.js +1 -0
  107. package/app-config/mobile/PortalExtensionSettingsProperties.d.ts +27 -0
  108. package/app-config/mobile/PortalExtensionSettingsProperties.js +1 -0
  109. package/app-config/mobile/ScrollModelProperties.d.ts +6 -0
  110. package/app-config/mobile/ScrollModelProperties.js +1 -0
  111. package/app-config/mobile/SelectLayerSettingsModelProperties.d.ts +11 -0
  112. package/app-config/mobile/SelectLayerSettingsModelProperties.js +1 -0
  113. package/app-config/mobile/TaskbarModelProperties.d.ts +6 -0
  114. package/app-config/mobile/TaskbarModelProperties.js +1 -0
  115. package/app-config/mobile/UpdateFeatureModelProperties.d.ts +6 -0
  116. package/app-config/mobile/UpdateFeatureModelProperties.js +1 -0
  117. package/app-config/mobile/VertigisMobileModelProperties.d.ts +65 -0
  118. package/app-config/mobile/VertigisMobileModelProperties.js +1 -0
  119. package/app-config/schema/common-app-config.schema.json +1 -0
  120. package/app-config/schema/mobile-app-config.schema.json +1 -0
  121. package/app-config/schema/web-app-config.schema.json +1 -0
  122. package/app-config/web/AddressModelProperties.d.ts +6 -0
  123. package/app-config/web/AddressModelProperties.js +1 -0
  124. package/app-config/web/BasemapPickerModelProperties.d.ts +7 -0
  125. package/app-config/web/BasemapPickerModelProperties.js +1 -0
  126. package/app-config/web/BookmarksModelProperties.d.ts +7 -0
  127. package/app-config/web/BookmarksModelProperties.js +1 -0
  128. package/app-config/web/BrandingModelProperties.d.ts +14 -0
  129. package/app-config/web/BrandingModelProperties.js +1 -0
  130. package/app-config/web/ChartModelProperties.d.ts +58 -0
  131. package/app-config/web/ChartModelProperties.js +1 -0
  132. package/app-config/web/CompassModelProperties.d.ts +7 -0
  133. package/app-config/web/CompassModelProperties.js +1 -0
  134. package/app-config/web/ComponentModelProperties.d.ts +12 -0
  135. package/app-config/web/ComponentModelProperties.js +1 -0
  136. package/app-config/web/CoordinateModelProperties.d.ts +7 -0
  137. package/app-config/web/CoordinateModelProperties.js +1 -0
  138. package/app-config/web/DialogModelProperties.d.ts +7 -0
  139. package/app-config/web/DialogModelProperties.js +1 -0
  140. package/app-config/web/DrawModelProperties.d.ts +102 -0
  141. package/app-config/web/DrawModelProperties.js +1 -0
  142. package/app-config/web/FeatureDetailsModelProperties.d.ts +12 -0
  143. package/app-config/web/FeatureDetailsModelProperties.js +1 -0
  144. package/app-config/web/FeatureInfoModelProperties.d.ts +22 -0
  145. package/app-config/web/FeatureInfoModelProperties.js +1 -0
  146. package/app-config/web/FeatureListProperties.d.ts +12 -0
  147. package/app-config/web/FeatureListProperties.js +1 -0
  148. package/app-config/web/FeatureSetProperties.d.ts +16 -0
  149. package/app-config/web/FeatureSetProperties.js +1 -0
  150. package/app-config/web/FeatureSummaryModelProperties.d.ts +22 -0
  151. package/app-config/web/FeatureSummaryModelProperties.js +1 -0
  152. package/app-config/web/GeolocationModelProperties.d.ts +7 -0
  153. package/app-config/web/GeolocationModelProperties.js +1 -0
  154. package/app-config/web/GeometryModelProperties.d.ts +27 -0
  155. package/app-config/web/GeometryModelProperties.js +1 -0
  156. package/app-config/web/HasVisibilityFilters.d.ts +35 -0
  157. package/app-config/web/HasVisibilityFilters.js +1 -0
  158. package/app-config/web/ImageModelProperties.d.ts +7 -0
  159. package/app-config/web/ImageModelProperties.js +1 -0
  160. package/app-config/web/KpiCardModelProperties.d.ts +145 -0
  161. package/app-config/web/KpiCardModelProperties.js +1 -0
  162. package/app-config/web/LayerListModelProperties.d.ts +7 -0
  163. package/app-config/web/LayerListModelProperties.js +1 -0
  164. package/app-config/web/LayerPresetsModelProperties.d.ts +7 -0
  165. package/app-config/web/LayerPresetsModelProperties.js +1 -0
  166. package/app-config/web/LegendModelProperties.d.ts +7 -0
  167. package/app-config/web/LegendModelProperties.js +1 -0
  168. package/app-config/web/Map3dToggleModelProperties.d.ts +6 -0
  169. package/app-config/web/Map3dToggleModelProperties.js +1 -0
  170. package/app-config/web/MapCoordinatesModelProperties.d.ts +43 -0
  171. package/app-config/web/MapCoordinatesModelProperties.js +1 -0
  172. package/app-config/web/MapModelProperties.d.ts +81 -0
  173. package/app-config/web/MapModelProperties.js +1 -0
  174. package/app-config/web/MeasurementModelProperties.d.ts +36 -0
  175. package/app-config/web/MeasurementModelProperties.js +1 -0
  176. package/app-config/web/MenuItemModelProperties.d.ts +7 -0
  177. package/app-config/web/MenuItemModelProperties.js +1 -0
  178. package/app-config/web/MenuModelProperties.d.ts +13 -0
  179. package/app-config/web/MenuModelProperties.js +1 -0
  180. package/app-config/web/ModelProperties.d.ts +7 -0
  181. package/app-config/web/ModelProperties.js +1 -0
  182. package/app-config/web/PanelModelProperties.d.ts +7 -0
  183. package/app-config/web/PanelModelProperties.js +1 -0
  184. package/app-config/web/PortalModelProperties.d.ts +10 -0
  185. package/app-config/web/PortalModelProperties.js +1 -0
  186. package/app-config/web/PrintFormModelProperties.d.ts +42 -0
  187. package/app-config/web/PrintFormModelProperties.js +1 -0
  188. package/app-config/web/ReportModelProperties.d.ts +15 -0
  189. package/app-config/web/ReportModelProperties.js +1 -0
  190. package/app-config/web/ResultsModelProperties.d.ts +93 -0
  191. package/app-config/web/ResultsModelProperties.js +1 -0
  192. package/app-config/web/ScaleInputModelProperties.d.ts +6 -0
  193. package/app-config/web/ScaleInputModelProperties.js +1 -0
  194. package/app-config/web/ScalebarModelProperties.d.ts +22 -0
  195. package/app-config/web/ScalebarModelProperties.js +1 -0
  196. package/app-config/web/SearchModelProperties.d.ts +22 -0
  197. package/app-config/web/SearchModelProperties.js +1 -0
  198. package/app-config/web/SplitModelProperties.d.ts +7 -0
  199. package/app-config/web/SplitModelProperties.js +1 -0
  200. package/app-config/web/StackModelProperties.d.ts +7 -0
  201. package/app-config/web/StackModelProperties.js +1 -0
  202. package/app-config/web/TabsModelProperties.d.ts +6 -0
  203. package/app-config/web/TabsModelProperties.js +1 -0
  204. package/app-config/web/TextModelProperties.d.ts +7 -0
  205. package/app-config/web/TextModelProperties.js +1 -0
  206. package/app-config/web/UserModelProperties.d.ts +12 -0
  207. package/app-config/web/UserModelProperties.js +1 -0
  208. package/app-config/web/UserPreferencesModelProperties.d.ts +10 -0
  209. package/app-config/web/UserPreferencesModelProperties.js +1 -0
  210. package/app-config/web/VertigisWebModelProperties.d.ts +84 -0
  211. package/app-config/web/VertigisWebModelProperties.js +1 -0
  212. package/app-config/web/WorkflowModelProperties.d.ts +7 -0
  213. package/app-config/web/WorkflowModelProperties.js +1 -0
  214. package/app-config/web/ZoomModelProperties.d.ts +7 -0
  215. package/app-config/web/ZoomModelProperties.js +1 -0
  216. package/docs/Geocortex Apps.md +311 -0
  217. package/docs/layout-spec.md +720 -0
  218. package/docs/presentation.md +98 -0
  219. package/layout/schema/layout-common.xsd +849 -0
  220. package/layout/schema/layout-mobile.xsd +256 -0
  221. package/layout/schema/layout-web.xsd +248 -0
  222. package/layout/schema/schema-reference-example.xml +14 -0
  223. package/messaging/Command.d.ts +74 -0
  224. package/messaging/Command.js +1 -0
  225. package/messaging/CommandRegistry.d.ts +13 -0
  226. package/messaging/CommandRegistry.js +1 -0
  227. package/messaging/Event.d.ts +25 -0
  228. package/messaging/Event.js +1 -0
  229. package/messaging/EventRegistry.d.ts +13 -0
  230. package/messaging/EventRegistry.js +1 -0
  231. package/messaging/Message.d.ts +23 -0
  232. package/messaging/Message.js +1 -0
  233. package/messaging/MessageBus.d.ts +54 -0
  234. package/messaging/MessageBus.js +1 -0
  235. package/messaging/Operation.d.ts +53 -0
  236. package/messaging/Operation.js +1 -0
  237. package/messaging/OperationRegistry.d.ts +13 -0
  238. package/messaging/OperationRegistry.js +1 -0
  239. package/messaging/common.d.ts +246 -0
  240. package/messaging/common.js +1 -0
  241. package/messaging/mobile.d.ts +13 -0
  242. package/messaging/mobile.js +1 -0
  243. package/messaging/registry/Commands.d.ts +65 -0
  244. package/messaging/registry/Commands.js +1 -0
  245. package/messaging/registry/Events.d.ts +53 -0
  246. package/messaging/registry/Events.js +1 -0
  247. package/messaging/registry/Operations.d.ts +54 -0
  248. package/messaging/registry/Operations.js +1 -0
  249. package/messaging/registry/app-config.d.ts +11 -0
  250. package/messaging/registry/app-config.js +1 -0
  251. package/messaging/registry/app.d.ts +136 -0
  252. package/messaging/registry/app.js +1 -0
  253. package/messaging/registry/auth.d.ts +125 -0
  254. package/messaging/registry/auth.js +1 -0
  255. package/messaging/registry/basemap.d.ts +52 -0
  256. package/messaging/registry/basemap.js +1 -0
  257. package/messaging/registry/charts.d.ts +78 -0
  258. package/messaging/registry/charts.js +1 -0
  259. package/messaging/registry/debugConsole.d.ts +24 -0
  260. package/messaging/registry/debugConsole.js +1 -0
  261. package/messaging/registry/device.d.ts +15 -0
  262. package/messaging/registry/device.js +1 -0
  263. package/messaging/registry/display.d.ts +16 -0
  264. package/messaging/registry/display.js +1 -0
  265. package/messaging/registry/drawing.d.ts +126 -0
  266. package/messaging/registry/drawing.js +1 -0
  267. package/messaging/registry/edit.d.ts +123 -0
  268. package/messaging/registry/edit.js +1 -0
  269. package/messaging/registry/file.d.ts +58 -0
  270. package/messaging/registry/file.js +1 -0
  271. package/messaging/registry/geocode.d.ts +91 -0
  272. package/messaging/registry/geocode.js +1 -0
  273. package/messaging/registry/geolocation.d.ts +268 -0
  274. package/messaging/registry/geolocation.js +1 -0
  275. package/messaging/registry/geometry-toolbar.d.ts +28 -0
  276. package/messaging/registry/geometry-toolbar.js +1 -0
  277. package/messaging/registry/geometry.d.ts +101 -0
  278. package/messaging/registry/geometry.js +1 -0
  279. package/messaging/registry/highlights.d.ts +83 -0
  280. package/messaging/registry/highlights.js +1 -0
  281. package/messaging/registry/input.d.ts +21 -0
  282. package/messaging/registry/input.js +1 -0
  283. package/messaging/registry/iwtm.d.ts +10 -0
  284. package/messaging/registry/iwtm.js +1 -0
  285. package/messaging/registry/kpi.d.ts +95 -0
  286. package/messaging/registry/kpi.js +1 -0
  287. package/messaging/registry/layer-comparison.d.ts +102 -0
  288. package/messaging/registry/layer-comparison.js +1 -0
  289. package/messaging/registry/layer-presets.d.ts +28 -0
  290. package/messaging/registry/layer-presets.js +1 -0
  291. package/messaging/registry/layers.d.ts +45 -0
  292. package/messaging/registry/layers.js +1 -0
  293. package/messaging/registry/layout.d.ts +48 -0
  294. package/messaging/registry/layout.js +1 -0
  295. package/messaging/registry/location-marker.d.ts +172 -0
  296. package/messaging/registry/location-marker.js +1 -0
  297. package/messaging/registry/logViewer.d.ts +16 -0
  298. package/messaging/registry/logViewer.js +1 -0
  299. package/messaging/registry/map.d.ts +893 -0
  300. package/messaging/registry/map.js +1 -0
  301. package/messaging/registry/measurement.d.ts +142 -0
  302. package/messaging/registry/measurement.js +1 -0
  303. package/messaging/registry/messaging.d.ts +22 -0
  304. package/messaging/registry/messaging.js +1 -0
  305. package/messaging/registry/network.d.ts +50 -0
  306. package/messaging/registry/network.js +1 -0
  307. package/messaging/registry/offline.d.ts +357 -0
  308. package/messaging/registry/offline.js +1 -0
  309. package/messaging/registry/panel.d.ts +93 -0
  310. package/messaging/registry/panel.js +1 -0
  311. package/messaging/registry/photos.d.ts +45 -0
  312. package/messaging/registry/photos.js +1 -0
  313. package/messaging/registry/portal.d.ts +47 -0
  314. package/messaging/registry/portal.js +1 -0
  315. package/messaging/registry/printing.d.ts +138 -0
  316. package/messaging/registry/printing.js +1 -0
  317. package/messaging/registry/region.d.ts +21 -0
  318. package/messaging/registry/region.js +1 -0
  319. package/messaging/registry/reports.d.ts +112 -0
  320. package/messaging/registry/reports.js +1 -0
  321. package/messaging/registry/results.d.ts +454 -0
  322. package/messaging/registry/results.js +1 -0
  323. package/messaging/registry/search.d.ts +51 -0
  324. package/messaging/registry/search.js +1 -0
  325. package/messaging/registry/sketching.d.ts +521 -0
  326. package/messaging/registry/sketching.js +1 -0
  327. package/messaging/registry/system.d.ts +117 -0
  328. package/messaging/registry/system.js +1 -0
  329. package/messaging/registry/tasks.d.ts +178 -0
  330. package/messaging/registry/tasks.js +1 -0
  331. package/messaging/registry/ui.d.ts +361 -0
  332. package/messaging/registry/ui.js +1 -0
  333. package/messaging/registry/viewer.d.ts +95 -0
  334. package/messaging/registry/viewer.js +1 -0
  335. package/messaging/registry/workflow.d.ts +134 -0
  336. package/messaging/registry/workflow.js +1 -0
  337. package/messaging/schema/common-action.schema.json +11130 -0
  338. package/messaging/schema/common-event.schema.json +7955 -0
  339. package/messaging/schema/mobile-action.schema.json +14328 -0
  340. package/messaging/schema/mobile-event.schema.json +9245 -0
  341. package/messaging/schema/web-action.schema.json +18896 -0
  342. package/messaging/schema/web-event.schema.json +8515 -0
  343. package/package.json +71 -0
  344. package/version.d.ts +4 -0
  345. package/version.js +4 -0
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <layout
3
+ xmlns="https://geocortex.com/layout/v1"
4
+ xmlns:web="https://geocortex.com/layout/web/v1"
5
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
+ xsi:schemaLocation="https://geocortex.com/layout/web/v1 layout-web.xsd">
7
+ <split>
8
+ <web:tabs>
9
+ <layer-list/>
10
+ <search/>
11
+ </web:tabs>
12
+ <map></map>
13
+ </split>
14
+ </layout>
@@ -0,0 +1,74 @@
1
+ import type { CancelToken } from "@vertigis/arcgis-extensions/support/Cancellable";
2
+ import type { Event } from "./Event.js";
3
+ import type { Message, MessageExecuteOptions } from "./Message.js";
4
+ /**
5
+ * A named command.
6
+ */
7
+ export interface Command<T = void> extends Message {
8
+ /**
9
+ * The name of the command.
10
+ */
11
+ readonly name: string;
12
+ /**
13
+ * An event that is published whenever canExecute might return a new value.
14
+ * Implementations are responsible for calling publish() as appropriate.
15
+ */
16
+ readonly canExecuteChanged: Event;
17
+ /**
18
+ * Indicates whether the command has been initialized.
19
+ */
20
+ readonly isInitialized: boolean;
21
+ /**
22
+ * Executes the command.
23
+ *
24
+ * @param argument The command arguments.
25
+ * @param options CancelToken or options to apply to the commands execute behavior.
26
+ */
27
+ execute(argument: T, options?: CancelToken | MessageExecuteOptions): Promise<void>;
28
+ /**
29
+ * Determines whether the command can execute with the given arguments.
30
+ *
31
+ * @param argument The command arguments.
32
+ */
33
+ canExecute(argument?: T): boolean;
34
+ /**
35
+ * Initializes the command if it is not already initialized. Attempting to
36
+ * execute a command will automatically initialize it, however calling
37
+ * canExecute() will always return false until the command is initialized.
38
+ */
39
+ initialize(): Promise<void>;
40
+ }
41
+ /**
42
+ * Execution context that will be passed in to each of the command's behaviors.
43
+ */
44
+ export interface CommandContext<T> {
45
+ /**
46
+ * The name of the command that is currently executing.
47
+ */
48
+ readonly name: string;
49
+ /**
50
+ * Used to cancel execution of the command.
51
+ */
52
+ cancelToken?: CancelToken;
53
+ /**
54
+ * Determines if the command was executed from a trusted source. For
55
+ * example, a command launched via a URL parameter should likely be
56
+ * considered as untrusted.
57
+ */
58
+ trusted?: boolean;
59
+ /**
60
+ * Invokes the next behavior in the chain. If it isn't invoked explicitly,
61
+ * then the next behavior will run after the current one is finished. Note
62
+ * that this is not supported for behaviors that are added at runtime via
63
+ * registerParallel(), which have no explicit sequence as they are run
64
+ * concurrently.
65
+ */
66
+ next: (argument?: T) => Promise<void>;
67
+ /**
68
+ * Indicates that no more behaviors should run after the current one is
69
+ * complete. Note that this is only supported for configured behaviors --
70
+ * behaviors that are added at runtime via register() have no explicit
71
+ * sequence as they are run concurrently.
72
+ */
73
+ finish: () => void;
74
+ }
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,13 @@
1
+ import type { MessageBus } from "./MessageBus.js";
2
+ /**
3
+ * A registry of well-known commands.
4
+ */
5
+ export declare class CommandRegistry {
6
+ protected readonly _messages: MessageBus;
7
+ /**
8
+ * Creates a registry.
9
+ *
10
+ * @param messages The message bus to use.
11
+ */
12
+ constructor(messages: MessageBus);
13
+ }
@@ -0,0 +1 @@
1
+ export class CommandRegistry{constructor(s){this._messages=s}}
@@ -0,0 +1,25 @@
1
+ import type { Message } from "./Message.js";
2
+ /**
3
+ * A callback that will be invoked whenever the event is published.
4
+ */
5
+ export declare type EventCallback<T> = (arg?: T) => void | Promise<void>;
6
+ /**
7
+ * A named event.
8
+ */
9
+ export interface Event<T = void> extends Message {
10
+ /**
11
+ * Publishes the event to all subscribers.
12
+ *
13
+ * @returns A promise that is fulfilled once all subscribers have been
14
+ * notified.
15
+ */
16
+ publish: (arg: T) => Promise<void>;
17
+ /**
18
+ * Subscribes to this event.
19
+ *
20
+ * @param callback A callback that will be invoked whenever the event is
21
+ * published.
22
+ * @returns A handle that can be used to unsubscribe.
23
+ */
24
+ subscribe: (callback: EventCallback<T>) => IHandle;
25
+ }
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,13 @@
1
+ import type { MessageBus } from "./MessageBus.js";
2
+ /**
3
+ * A registry of well-known events.
4
+ */
5
+ export declare class EventRegistry {
6
+ protected readonly _messages: MessageBus;
7
+ /**
8
+ * Creates a registry.
9
+ *
10
+ * @param messages The message bus to use.
11
+ */
12
+ constructor(messages: MessageBus);
13
+ }
@@ -0,0 +1 @@
1
+ export class EventRegistry{constructor(s){this._messages=s}}
@@ -0,0 +1,23 @@
1
+ import type { CancelToken } from "@vertigis/arcgis-extensions/support/Cancellable";
2
+ /**
3
+ * Represents a `command`, `event`, or `operation`.
4
+ */
5
+ export interface Message {
6
+ /**
7
+ * The name of the command, operation, or event.
8
+ */
9
+ name: string;
10
+ }
11
+ /**
12
+ * Options that apply to the execution of a message.
13
+ */
14
+ export interface MessageExecuteOptions {
15
+ /**
16
+ * Enables cancellation (see Cancellable).
17
+ */
18
+ cancelToken?: CancelToken;
19
+ /**
20
+ * Specify if the message was executed from a trusted source.
21
+ */
22
+ trusted?: boolean;
23
+ }
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,54 @@
1
+ import type { Action, SimpleAction } from "@vertigis/arcgis-extensions/support/Action";
2
+ import type { Command } from "./Command.js";
3
+ import type { Event } from "./Event.js";
4
+ import type { Operation } from "./Operation.js";
5
+ /**
6
+ * Handles messaging between parts of an application.
7
+ */
8
+ export interface MessageBus {
9
+ /**
10
+ * Retrieves a command.
11
+ *
12
+ * @param action The command specification. Either the name of a
13
+ * command, or a list of commands and/or operations to run in sequence.
14
+ */
15
+ command<T = void>(action: Action): Command<T>;
16
+ /**
17
+ * Retrieves an event.
18
+ *
19
+ * @param name Name of the event.
20
+ */
21
+ event<T = void>(name: string): Event<T>;
22
+ /**
23
+ * Retrieves an operation.
24
+ *
25
+ * @param name Name of the operation.
26
+ */
27
+ operation<T = void, TResult = undefined>(action: SimpleAction): Operation<T, TResult>;
28
+ /**
29
+ * Determines whether a command with the given name exists.
30
+ *
31
+ * @param name Name of the command.
32
+ */
33
+ hasCommand(name: string): boolean;
34
+ /**
35
+ * Determines whether an event with the given name exists.
36
+ *
37
+ * @param name Name of the event.
38
+ */
39
+ hasEvent(name: string): boolean;
40
+ /**
41
+ * Determines whether an operation with the given name exists.
42
+ *
43
+ * @param name Name of the operation.
44
+ */
45
+ hasOperation(name: string): boolean;
46
+ /**
47
+ * Returns all registered commands.
48
+ */
49
+ allCommands(): IterableIterator<Command>;
50
+ /**
51
+ * Returns all registered operations.
52
+ */
53
+ allOperations(): IterableIterator<Operation>;
54
+ }
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,53 @@
1
+ import type { CancelToken } from "@vertigis/arcgis-extensions/support/Cancellable";
2
+ import type { Message, MessageExecuteOptions } from "./Message.js";
3
+ /**
4
+ * A named operation. Operations compute a value, but don't generally alter the
5
+ * state of an application.
6
+ */
7
+ export interface Operation<T = void, TResult = undefined> extends Message {
8
+ /**
9
+ * The name of the operation.
10
+ */
11
+ name: string;
12
+ /**
13
+ * Executes the operation and returns its result.
14
+ *
15
+ * @param argument The argument to the operation.
16
+ * @param options CancelToken or options to apply to the Operation execute
17
+ * behavior.
18
+ */
19
+ execute: (argument: T, options?: CancelToken | MessageExecuteOptions) => Promise<TResult>;
20
+ }
21
+ /**
22
+ * Context that will be passed in to each behavior for an operation.
23
+ */
24
+ export interface OperationContext<T = void, TResult = undefined> {
25
+ /**
26
+ * The name of the operation that is currently executing.
27
+ */
28
+ readonly name: string;
29
+ /**
30
+ * The result of the previous behavior (undefined if the current behavior is
31
+ * the first one).
32
+ */
33
+ result?: TResult;
34
+ /**
35
+ * Enables cancelling the operation (see Cancellable).
36
+ */
37
+ cancelToken?: CancelToken;
38
+ /**
39
+ * Used to determine if the operation was executed from a trusted source.
40
+ */
41
+ trusted?: boolean;
42
+ /**
43
+ * Invokes the next behavior in the chain. If it isn't invoked explicitly,
44
+ * then the next behavior will run after the current one is finished.
45
+ */
46
+ next: (argument?: T, result?: TResult) => Promise<TResult>;
47
+ /**
48
+ * Indicates that no more behaviors should run after the current one is
49
+ * complete. The result from the current behavior will be the final result
50
+ * of the operation.
51
+ */
52
+ finish: () => void;
53
+ }
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,13 @@
1
+ import type { MessageBus } from "./MessageBus.js";
2
+ /**
3
+ * A registry of well-known operations.
4
+ */
5
+ export declare class OperationRegistry {
6
+ protected readonly _messages: MessageBus;
7
+ /**
8
+ * Creates a registry.
9
+ *
10
+ * @param messages The message bus to use.
11
+ */
12
+ constructor(messages: MessageBus);
13
+ }
@@ -0,0 +1 @@
1
+ export class OperationRegistry{constructor(s){this._messages=s}}
@@ -0,0 +1,246 @@
1
+ import type Graphic from "@arcgis/core/Graphic";
2
+ import type Viewpoint from "@arcgis/core/Viewpoint";
3
+ import type Geometry from "@arcgis/core/geometry/Geometry";
4
+ import type Layer from "@arcgis/core/layers/Layer";
5
+ import type LineSymbol3D from "@arcgis/core/symbols/LineSymbol3D";
6
+ import type PictureFillSymbol from "@arcgis/core/symbols/PictureFillSymbol";
7
+ import type PictureMarkerSymbol from "@arcgis/core/symbols/PictureMarkerSymbol";
8
+ import type PointSymbol3D from "@arcgis/core/symbols/PointSymbol3D";
9
+ import type PolygonSymbol3D from "@arcgis/core/symbols/PolygonSymbol3D";
10
+ import type SimpleFillSymbol from "@arcgis/core/symbols/SimpleFillSymbol";
11
+ import type SimpleLineSymbol from "@arcgis/core/symbols/SimpleLineSymbol";
12
+ import type SimpleMarkerSymbol from "@arcgis/core/symbols/SimpleMarkerSymbol";
13
+ import type EsriFeatureSet from "@arcgis/core/tasks/support/FeatureSet";
14
+ import type { Entity } from "@vertigis/arcgis-extensions/Entity";
15
+ import type { Feature, FeatureProperties } from "@vertigis/arcgis-extensions/data/Feature";
16
+ import type { FeatureList } from "@vertigis/arcgis-extensions/data/FeatureList";
17
+ import type { FeatureSet } from "@vertigis/arcgis-extensions/data/FeatureSet";
18
+ import type { FeatureStream } from "@vertigis/arcgis-extensions/data/FeatureStream";
19
+ import type { BasemapExtension } from "@vertigis/arcgis-extensions/mapping/BasemapExtension";
20
+ import type { Bookmark, BookmarkProperties } from "@vertigis/arcgis-extensions/mapping/Bookmark";
21
+ import type { MapExtension } from "@vertigis/arcgis-extensions/mapping/MapExtension";
22
+ import type { SublayerExtension } from "@vertigis/arcgis-extensions/mapping/SublayerExtension";
23
+ import type { LayerExtension, LayerReference as LayerReferenceObject } from "@vertigis/arcgis-extensions/mapping/_LayerExtension";
24
+ import type { Feature as GraphicJson } from "@vertigis/arcgis-extensions/portal/Feature";
25
+ import type { LineSymbol3D as LineSymbol3DProperties } from "@vertigis/arcgis-extensions/portal/LineSymbol3D";
26
+ import type { PictureFillSymbol as PictureFillSymbolProperties } from "@vertigis/arcgis-extensions/portal/PictureFillSymbol";
27
+ import type { PictureMarkerSymbol as PictureMarkerSymbolProperties } from "@vertigis/arcgis-extensions/portal/PictureMarkerSymbol";
28
+ import type { PointSymbol3D as PointSymbol3DProperties } from "@vertigis/arcgis-extensions/portal/PointSymbol3D";
29
+ import type { PolygonSymbol3D as PolygonSymbol3DProperties } from "@vertigis/arcgis-extensions/portal/PolygonSymbol3D";
30
+ import type { SimpleFillSymbol as SimpleFillSymbolProperties } from "@vertigis/arcgis-extensions/portal/SimpleFillSymbol";
31
+ import type { SimpleLineSymbol as SimpleLineSymbolProperties } from "@vertigis/arcgis-extensions/portal/SimpleLineSymbol";
32
+ import type { SimpleMarkerSymbol as SimpleMarkerSymbolProperties } from "@vertigis/arcgis-extensions/portal/SimpleMarkerSymbol";
33
+ import type { Viewpoint as ViewpointJson } from "@vertigis/arcgis-extensions/portal/Viewpoint";
34
+ import type { SublayerLike } from "@vertigis/arcgis-extensions/support/esri";
35
+ /**
36
+ * A model belonging to a component.
37
+ */
38
+ export interface Model extends Entity {
39
+ }
40
+ /**
41
+ * A reference to a model (using its ID or model instance).
42
+ */
43
+ export declare type ModelRef = string | Model;
44
+ /**
45
+ * Result of the "drawing.create-graphics" and "measurement.create-graphics"
46
+ * operations.
47
+ */
48
+ export interface CreateGraphicsResult {
49
+ /**
50
+ * The resulting graphics.
51
+ */
52
+ graphics: Graphic[];
53
+ /**
54
+ * The map that the graphics were created on.
55
+ */
56
+ maps: MapsLike;
57
+ }
58
+ /**
59
+ * Represents one or more features.
60
+ */
61
+ export declare type FeaturesLike = Feature | FeatureSet | FeatureList | FeatureStream | (Feature | FeatureProperties)[];
62
+ /**
63
+ * Defines an object that has a `features` property.
64
+ */
65
+ export interface HasFeatures {
66
+ /**
67
+ * Features to use for the command/operation.
68
+ */
69
+ features?: FeaturesLike;
70
+ }
71
+ /**
72
+ * Feature results from an operation.
73
+ */
74
+ export interface Results extends HasFeatures, HasMaps {
75
+ }
76
+ /**
77
+ * One or more features, or an object that has features.
78
+ */
79
+ export declare type Features = FeaturesLike | Results;
80
+ /**
81
+ * One or map extensions.
82
+ */
83
+ export declare type MapsLike = MapExtension | MapExtension[];
84
+ /**
85
+ * Defines an object that has a `maps` property.
86
+ */
87
+ export interface HasMaps {
88
+ /**
89
+ * Map(s) to use for the command/operation.
90
+ */
91
+ maps?: MapsLike;
92
+ }
93
+ /**
94
+ * One or more map extensions, or an object that has map extensions.
95
+ */
96
+ export declare type Maps = MapsLike | HasMaps;
97
+ /**
98
+ * A reference to an existing layer, which is the ID or title of the layer (or
99
+ * both).
100
+ */
101
+ export declare type LayerReference = string | LayerReferenceObject;
102
+ /**
103
+ * A (sub)layer extension, or an object that is convertible to one.
104
+ */
105
+ export declare type LayerLike = Layer | LayerExtension | SublayerLike | SublayerExtension | LayerReference;
106
+ /**
107
+ * One or more objects that are convertible to layer extensions.
108
+ */
109
+ export declare type LayersLike = LayerLike | LayerLike[];
110
+ /**
111
+ * An object that has one or more layer extensions.
112
+ */
113
+ export interface HasLayers {
114
+ /**
115
+ * Layer(s) to use for the command/operation.
116
+ */
117
+ layers?: LayersLike;
118
+ }
119
+ /**
120
+ * One or more layer extensions, or an object that has one or more layer
121
+ * extensions.
122
+ */
123
+ export declare type Layers = LayersLike | HasLayers;
124
+ /**
125
+ * One or more basemap extensions.
126
+ */
127
+ export declare type BasemapsLike = BasemapExtension | BasemapExtension[];
128
+ /**
129
+ * An object that is convertible to basemap extension.
130
+ */
131
+ export declare type Basemaps = BasemapsLike;
132
+ /**
133
+ * An object that is convertible to Esri Graphic or set of graphics.
134
+ */
135
+ export declare type GraphicsLike = Graphic | GraphicJson | (Graphic | GraphicJson)[] | CreateGraphicsResult | EsriFeatureSet;
136
+ /**
137
+ * An object that has a `graphics` property.
138
+ */
139
+ export interface HasGraphics {
140
+ /**
141
+ * Graphics to use for the command/operation.
142
+ */
143
+ graphics?: GraphicsLike;
144
+ }
145
+ /**
146
+ * An object that is convertible to Esri Graphic or set of graphics, or an
147
+ * object that has graphics.
148
+ */
149
+ export declare type Graphics = GraphicsLike | HasGraphics;
150
+ /**
151
+ * An object that is convertible to one or more geometries.
152
+ */
153
+ export declare type GeometryLike = Geometry | Geometry[] | FeaturesLike | GraphicsLike;
154
+ /**
155
+ * An object that has a `geometry` property.
156
+ */
157
+ export interface HasGeometry {
158
+ /**
159
+ * The geometry to use for the command/operation.
160
+ */
161
+ geometry?: GeometryLike;
162
+ }
163
+ /**
164
+ * An object that is convertible to one or more geometries, or an object that
165
+ * has geometry.
166
+ */
167
+ export declare type Geometries = GeometryLike | HasGeometry | HasFeatures;
168
+ /**
169
+ * An object that is convertible to an Esri Viewpoint.
170
+ */
171
+ export declare type ViewpointLike = Viewpoint | ViewpointJson | Bookmark | BookmarkProperties;
172
+ /**
173
+ * An object that has a `viewpoint` property.
174
+ */
175
+ export interface HasViewPoint {
176
+ /**
177
+ * The viewpoint to use for the command/operation.
178
+ */
179
+ viewpoint?: ViewpointLike;
180
+ }
181
+ /**
182
+ * Symbols supported for drawing.
183
+ */
184
+ export declare type SymbolLike = SimpleMarkerSymbol | SimpleMarkerSymbolProperties | PictureMarkerSymbol | PictureMarkerSymbolProperties | SimpleLineSymbol | SimpleLineSymbolProperties | SimpleFillSymbol | SimpleFillSymbolProperties | PictureFillSymbol | PictureFillSymbolProperties | PointSymbol3D | PointSymbol3DProperties | LineSymbol3D | LineSymbol3DProperties | PolygonSymbol3D | PolygonSymbol3DProperties;
185
+ /**
186
+ * An object that has a `symbol` property.
187
+ */
188
+ export interface HasSymbol {
189
+ /**
190
+ * The symbol to use for the command/operation.
191
+ */
192
+ symbol?: SymbolLike;
193
+ }
194
+ /**
195
+ * An object that is convertible to an Esri Viewpoint, or that has a viewpoint
196
+ * property.
197
+ */
198
+ export declare type ViewpointArg = ViewpointLike | HasViewPoint;
199
+ /**
200
+ * Represents raw binary data. For more information, see
201
+ * https://developer.mozilla.org/en-US/docs/Web/API/Blob.
202
+ */
203
+ export interface Blob {
204
+ /**
205
+ * The size of the blob, in bytes.
206
+ */
207
+ readonly size: number;
208
+ /**
209
+ * The MIME type of the file, e.g. "image/png".
210
+ */
211
+ readonly type: string;
212
+ /**
213
+ * Gets the contents of the blob as binary data contained in an ArrayBuffer.
214
+ */
215
+ arrayBuffer(): Promise<ArrayBuffer>;
216
+ /**
217
+ * Returns a new Blob object which contains data from a subset of the blob
218
+ * on which it's called.
219
+ *
220
+ * @param start An index into the Blob indicating the first byte to include
221
+ * in the new Blob.
222
+ * @param end An index into the Blob indicating the first byte that will
223
+ * *not* be included in the new Blob (i.e. the byte exactly at this index is
224
+ * not included).
225
+ * @param contentType The content type to assign to the new Blob; this will
226
+ * be the value of its type property. The default value is an empty string.
227
+ */
228
+ slice(start?: number, end?: number, contentType?: string): Blob;
229
+ /**
230
+ * Returns a ReadableStream object.
231
+ */
232
+ stream(): unknown;
233
+ /**
234
+ * Gets a string containing the contents of the blob, interpreted as UTF-8.
235
+ */
236
+ text(): Promise<string>;
237
+ }
238
+ /**
239
+ * A blob representing a file.
240
+ */
241
+ export interface File extends Blob {
242
+ /**
243
+ * The name of the file.
244
+ */
245
+ readonly name: string;
246
+ }