@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 @@
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";export class ReportsCommands extends CommandRegistry{get run(){return this._messages.command("reports.run")}}export class ReportEvents extends EventRegistry{get reportStarted(){return this._messages.event("reports.report-started")}get reportProgress(){return this._messages.event("reports.report-progress")}get reportFinished(){return this._messages.event("reports.report-finished")}get reportError(){return this._messages.event("reports.report-error")}}
@@ -0,0 +1,454 @@
1
+ import type Graphic from "@arcgis/core/Graphic";
2
+ import type Layer from "@arcgis/core/layers/Layer";
3
+ import type Sublayer from "@arcgis/core/layers/support/Sublayer";
4
+ import type Symbol from "@arcgis/core/symbols/Symbol";
5
+ import type { Attachment } from "@vertigis/arcgis-extensions/data/Attachment";
6
+ import type { Feature } from "@vertigis/arcgis-extensions/data/Feature";
7
+ import type { FeatureSettingsProperties } from "@vertigis/arcgis-extensions/data/FeatureSettings";
8
+ import type { FeatureSource } from "@vertigis/arcgis-extensions/data/FeatureSource";
9
+ import type { SchemaProperties } from "@vertigis/arcgis-extensions/data/Schema";
10
+ import type { FromCsvOptions, FromShapefileOptions, FromXLSXOptions, ToCsvOptions, ToShapefileOptions, ToXLSXOptions } from "@vertigis/arcgis-extensions/data/convert";
11
+ import type { QueryOptions } from "@vertigis/arcgis-extensions/tasks/query/QueryOptions";
12
+ import type { CardSize, ViewMode } from "../../app-config/web/ResultsModelProperties.js";
13
+ import type { Command } from "../Command.js";
14
+ import { CommandRegistry } from "../CommandRegistry.js";
15
+ import type { Event } from "../Event.js";
16
+ import { EventRegistry } from "../EventRegistry.js";
17
+ import type { Operation } from "../Operation.js";
18
+ import { OperationRegistry } from "../OperationRegistry.js";
19
+ import type { Blob, Features, FeaturesLike, GraphicsLike, HasFeatures, MapsLike, ModelRef } from "../common.js";
20
+ import type { VisualElement } from "../mobile.js";
21
+ /**
22
+ * Arguments for various commands that affect a result component's features.
23
+ */
24
+ export interface UpdateResultsFeaturesArgs extends HasFeatures {
25
+ /**
26
+ * The result component to update, referenced by results model or its ID.
27
+ *
28
+ * @webOnly
29
+ */
30
+ results: ModelRef;
31
+ }
32
+ /**
33
+ * Arguments for the "results.convert-to-csv" operation.
34
+ */
35
+ export interface ToCsvConversionArgs extends ToCsvOptions {
36
+ /**
37
+ * The feature(s) to convert.
38
+ */
39
+ features: Features;
40
+ }
41
+ /**
42
+ * Arguments for the "results.from-csv" operation.
43
+ */
44
+ export interface FromCsvConversionArgs extends FromCsvOptions {
45
+ /**
46
+ * The blob(s) that contains the csv file.
47
+ */
48
+ blobs: Blob[];
49
+ }
50
+ /**
51
+ * Arguments for the "results.convert-to-xlsx" operation.
52
+ */
53
+ export interface ToXLSXConversionArgs extends ToXLSXOptions {
54
+ /**
55
+ * The feature(s) to convert.
56
+ */
57
+ features: Features;
58
+ }
59
+ /**
60
+ * Arguments for the "results.from-xlsx" operation.
61
+ */
62
+ export interface FromXLSXConversionArgs extends FromXLSXOptions {
63
+ /**
64
+ * The blob(s) that contains the xlsx file.
65
+ */
66
+ blobs: Blob[];
67
+ }
68
+ /**
69
+ * Arguments for the "results.convert-to-shapefile" operation.
70
+ */
71
+ export interface ToShapefileConversionArgs extends ToShapefileOptions {
72
+ /**
73
+ * The feature(s) to convert.
74
+ */
75
+ features: Features;
76
+ }
77
+ /**
78
+ * Arguments for the "results.from-shapefile" operation.
79
+ */
80
+ export interface FromShapefileConversionArgs extends FromShapefileOptions {
81
+ /**
82
+ * The blob(s) that contains the Shapefile file.
83
+ */
84
+ blobs: Blob[];
85
+ }
86
+ /**
87
+ * Arguments for the "results.convert-to-layers" operation.
88
+ */
89
+ export interface LayerConversionArgs {
90
+ /**
91
+ * Optionally a symbol to be used for point geometries.
92
+ */
93
+ pointSymbol?: Symbol;
94
+ /**
95
+ * Optionally a symbol to be used for multipoint geometries.
96
+ */
97
+ multipointSymbol?: Symbol;
98
+ /**
99
+ * Optionally a symbol to be used for polyline geometries.
100
+ */
101
+ polylineSymbol?: Symbol;
102
+ /**
103
+ * Optionally a symbol to be used for polygon geometries.
104
+ */
105
+ polygonSymbol?: Symbol;
106
+ /**
107
+ * Optionally a symbol to be used for mesh geometries.
108
+ */
109
+ meshSymbol?: Symbol;
110
+ /**
111
+ * The feature(s) to convert.
112
+ */
113
+ features: Features;
114
+ }
115
+ /**
116
+ * Result of various operations that convert features into a downloadable file.
117
+ */
118
+ export interface ConversionResult {
119
+ /**
120
+ * The result of the conversion in the specified form.
121
+ */
122
+ result: Blob;
123
+ /**
124
+ * A file name representation for the conversion.
125
+ */
126
+ name: string;
127
+ }
128
+ /**
129
+ * Arguments for the "results.from-graphics" operation.
130
+ */
131
+ export interface FromGraphicsArgs {
132
+ /**
133
+ * A selection of graphics to be converted to features.
134
+ */
135
+ graphics: GraphicsLike;
136
+ /**
137
+ * The layer the graphics originate from, or the ID of that layer. Used as
138
+ * the source for created features.
139
+ */
140
+ layer?: Layer | string;
141
+ /**
142
+ * The sublayer the graphics originate from, or the ID of that sublayer.
143
+ * Used as the source for created features. Will not be used unless layer
144
+ * parameter is also provided.
145
+ */
146
+ sublayer?: Sublayer | number;
147
+ /**
148
+ * The maps to search for the given layer.
149
+ */
150
+ maps?: MapsLike;
151
+ /**
152
+ * FeatureSettings to use for feature metadata if the layer is not provided
153
+ * or can't be found.
154
+ */
155
+ featureSettings?: FeatureSettingsProperties;
156
+ /**
157
+ * The schema to be associated with the returned features. This property is
158
+ * only necessary when no layer nor sublayer are present.
159
+ */
160
+ schema?: SchemaProperties;
161
+ /**
162
+ * The feature source title to use if no layer or sublayer is associated
163
+ * with the features.
164
+ */
165
+ title?: string;
166
+ /**
167
+ * The feature source ID to use if the results are associated with a
168
+ * workflow.
169
+ */
170
+ workflowItemId?: string;
171
+ }
172
+ /**
173
+ * Arguments for the "results.open-attachment" command.
174
+ */
175
+ export interface OpenAttachmentArgs {
176
+ /**
177
+ * The index of the photo to start at.
178
+ */
179
+ startIndex: number;
180
+ /**
181
+ * The attachment to open.
182
+ */
183
+ attachments: Attachment[];
184
+ /**
185
+ * The sender UI element to use as an anchor point for animation when
186
+ * opening the attachment.
187
+ */
188
+ sender: VisualElement;
189
+ }
190
+ /**
191
+ * Arguments for the "results.filter" operation.
192
+ */
193
+ export interface FilterResultsArgs {
194
+ /**
195
+ * Features or Graphics to filter.
196
+ */
197
+ features: FeaturesLike | GraphicsLike;
198
+ /**
199
+ * An SQL 'where' clause used to filter down a set of results.
200
+ */
201
+ where?: string;
202
+ /**
203
+ * The source of the Results. This is only necessary if Graphics are passed
204
+ * into the filter operation.
205
+ */
206
+ source?: FeatureSource;
207
+ /**
208
+ * Additional query options with which to filter the results.
209
+ */
210
+ options?: QueryOptions;
211
+ }
212
+ /**
213
+ * Arguments for the "results.set-list-view-mode" command.
214
+ */
215
+ export interface SetListViewModeArgs {
216
+ /**
217
+ * The view mode to activate on the results list component.
218
+ *
219
+ * @webOnly
220
+ */
221
+ viewMode: ViewMode;
222
+ /**
223
+ * The result component to update, referenced by results model or its ID.
224
+ *
225
+ * @webOnly
226
+ */
227
+ results?: ModelRef;
228
+ }
229
+ /**
230
+ * Arguments for the "results.set-list-card-size" command.
231
+ */
232
+ export interface SetListCardSizeArgs {
233
+ /**
234
+ * The card size to set on the results list component.
235
+ *
236
+ * @webOnly
237
+ */
238
+ cardSize: CardSize;
239
+ /**
240
+ * The result component to update, referenced by results model or its ID.
241
+ *
242
+ * @webOnly
243
+ */
244
+ results?: ModelRef;
245
+ }
246
+ /**
247
+ * Arguments for various commands that manipulate the current set of shown
248
+ * results.
249
+ */
250
+ export declare type ShowResultsArgs = Features | (UpdateResultsFeaturesArgs & {
251
+ /**
252
+ * Whether to activate the component showing the results of the
253
+ * operation. False by default.
254
+ *
255
+ * @mobileOnly
256
+ */
257
+ activate?: boolean;
258
+ });
259
+ /**
260
+ * Arguments for the "results.set-display-components" command.
261
+ */
262
+ export interface SetDisplayComponentArgs {
263
+ /**
264
+ * Sets the current selector for the results components to display results
265
+ * using `results.display`. Additionally, any components that do not match
266
+ * the current selector are deactivated.
267
+ */
268
+ selector: string;
269
+ /**
270
+ * The result component to update, referenced by results model or its ID.
271
+ *
272
+ * @webOnly
273
+ */
274
+ results?: ModelRef;
275
+ }
276
+ export declare class ResultsCommands extends CommandRegistry {
277
+ /**
278
+ * Presents features to the user within any components that can display
279
+ * features, such as a feature list, feature table, or feature details
280
+ * component. The argument is the features to display, or an object
281
+ * specifying both features and the target results component to update (Web
282
+ * only).
283
+ */
284
+ get display(): Command<Features | UpdateResultsFeaturesArgs>;
285
+ /**
286
+ * Sets the current selector for the results components to display results
287
+ * using `results.display`. Additionally, any components that do not match
288
+ * the current selector are deactivated.
289
+ *
290
+ * @webOnly
291
+ */
292
+ get setDisplayComponents(): Command<string | SetDisplayComponentArgs>;
293
+ /**
294
+ * Presents feature details to the user within the feature-details
295
+ * component. The argument is the feature(s) to display, or an object
296
+ * specifying both features and the target results component to update (Web
297
+ * only).
298
+ */
299
+ get displayDetails(): Command<Features | UpdateResultsFeaturesArgs>;
300
+ /**
301
+ * Presents a feature summary to the user within the feature-summary
302
+ * component. The argument is the feature(s) to display, or an object
303
+ * specifying both features and the target results component to update (Web
304
+ * only).
305
+ *
306
+ * @webOnly
307
+ */
308
+ get displaySummary(): Command<Features | UpdateResultsFeaturesArgs>;
309
+ /**
310
+ * Presents new feature details to the user within the feature-details
311
+ * component. If the feature-details component is contained within a panel,
312
+ * a 'back' button will be provided to navigate to the previous content;
313
+ * otherwise, the content of the feature-details component will be replaced.
314
+ */
315
+ get displayNewDetails(): Command<Features | UpdateResultsFeaturesArgs>;
316
+ /**
317
+ * Adds features to a currently shown set of features.
318
+ */
319
+ get add(): Command<ShowResultsArgs>;
320
+ /**
321
+ * Removes features from the existing results that are not present in the
322
+ * given list of features.
323
+ */
324
+ get intersect(): Command<ShowResultsArgs>;
325
+ /**
326
+ * Removes features from a currently shown set of features.
327
+ */
328
+ get remove(): Command<ShowResultsArgs>;
329
+ /**
330
+ * Clear features from results list, results table, and results details. If
331
+ * a component model or model ID is given, then only the specified component
332
+ * is cleared (Web only).
333
+ */
334
+ get clear(): Command<ModelRef | void>;
335
+ /**
336
+ * Clears the feature details so that no feature data is shown.
337
+ *
338
+ * @mobileOnly
339
+ */
340
+ get clearDetails(): Command;
341
+ /**
342
+ * Deactivates the feature details component that is displaying the given
343
+ * feature.
344
+ *
345
+ * @mobileOnly
346
+ */
347
+ get hideDetails(): Command<Feature[] | Feature>;
348
+ /**
349
+ * Opens an attachment and displays it.
350
+ *
351
+ * @mobileOnly
352
+ */
353
+ get openAttachment(): Command<OpenAttachmentArgs>;
354
+ /**
355
+ * Refreshes one or more features in the results list.
356
+ *
357
+ * @mobileOnly
358
+ */
359
+ get refresh(): Command<Features>;
360
+ /**
361
+ * Sets the view mode for a particular results list component, or globally
362
+ * for all results list components.
363
+ *
364
+ * @webOnly
365
+ */
366
+ get setListViewMode(): Command<ViewMode | SetListViewModeArgs>;
367
+ /**
368
+ * Sets the card size for a particular results list component, or globally
369
+ * for all results list components.
370
+ *
371
+ * @webOnly
372
+ */
373
+ get setListCardSize(): Command<CardSize | SetListCardSizeArgs>;
374
+ }
375
+ export declare class ResultsEvents extends EventRegistry {
376
+ /**
377
+ * Raised when results are displayed.
378
+ *
379
+ * @mobileOnly
380
+ */
381
+ get displayed(): Event<Features>;
382
+ }
383
+ export declare class ResultsOperations extends OperationRegistry {
384
+ /**
385
+ * Converts the provided Feature(s) to a CSV file grouped by feature source.
386
+ * If there are multiple sources the CSV(s) will be bundled in a zip file.
387
+ *
388
+ * @webOnly
389
+ */
390
+ get convertToCsv(): Operation<ToCsvConversionArgs | Features, ConversionResult>;
391
+ /**
392
+ * Converts the provided Feature(s) to a XLSX file grouped by feature
393
+ * source. If there are multiple sources the XLSX(s) will be bundled in a
394
+ * zip file.
395
+ *
396
+ * @webOnly
397
+ */
398
+ get convertToXlsx(): Operation<ToXLSXConversionArgs | Features, ConversionResult>;
399
+ /**
400
+ * Converts the provided Feature(s) to a Shapefile grouped by feature
401
+ * source. If there are multiple sources the Shapefile(s) will be bundled in
402
+ * a zip file.
403
+ *
404
+ * @webOnly
405
+ */
406
+ get convertToShapefile(): Operation<ToShapefileConversionArgs | Features, ConversionResult>;
407
+ /**
408
+ * Creates layer(s) from the specified features.
409
+ *
410
+ * @webOnly
411
+ */
412
+ get convertToLayers(): Operation<LayerConversionArgs | Features, Layer[]>;
413
+ /**
414
+ * Convert the specified csv blob to Features.
415
+ *
416
+ * @webOnly
417
+ */
418
+ get fromCsv(): Operation<FromCsvConversionArgs | Blob | Blob[], Features>;
419
+ /**
420
+ * Convert the specified Shapefile blob to Features.
421
+ *
422
+ * @webOnly
423
+ */
424
+ get fromShapefile(): Operation<FromShapefileConversionArgs | Blob | Blob[], Features>;
425
+ /**
426
+ * Convert the specified xlsx blob to Features.
427
+ *
428
+ * @webOnly
429
+ */
430
+ get fromXlsx(): Operation<FromXLSXConversionArgs | Blob | Blob[], Features>;
431
+ /**
432
+ * Converts provided GraphicsLike to Geocortex Features using any available
433
+ * metadata.
434
+ */
435
+ get fromGraphics(): Operation<FromGraphicsArgs, Features>;
436
+ /**
437
+ * Converts Geocortex Features to Esri graphics.
438
+ */
439
+ get toGraphics(): Operation<Features, Graphic[]>;
440
+ /**
441
+ * Returns the current set of features from a specific results component if
442
+ * a model or model ID is specified, otherwise from all results components.
443
+ *
444
+ * @webOnly
445
+ */
446
+ get getFeatures(): Operation<ModelRef | void, Features>;
447
+ /**
448
+ * Filters down a set of results using an SQL 'where' clause and/or an
449
+ * intersecting geometry.
450
+ *
451
+ * @webOnly
452
+ */
453
+ get filter(): Operation<FilterResultsArgs, Features>;
454
+ }