@esri/solutions-components 0.8.38 → 0.8.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) hide show
  1. package/dist/assets/t9n/solution-spatial-ref/resources.json +3 -3
  2. package/dist/assets/t9n/solution-spatial-ref/resources_en.json +2 -2
  3. package/dist/assets/t9n/solution-spatial-ref/resources_fr.json +2 -2
  4. package/dist/assets/t9n/solution-spatial-ref/resources_he.json +2 -2
  5. package/dist/cjs/_commonjsHelpers-baf43783.js +20 -0
  6. package/dist/cjs/basemap-gallery_7.cjs.entry.js +3 -2
  7. package/dist/cjs/buffer-tools_3.cjs.entry.js +3 -2
  8. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +3 -2
  9. package/dist/cjs/calcite-alert_4.cjs.entry.js +7 -6
  10. package/dist/cjs/calcite-block_5.cjs.entry.js +5 -4
  11. package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
  12. package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +3 -2
  13. package/dist/cjs/calcite-flow_6.cjs.entry.js +3 -2
  14. package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
  15. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +9 -8
  16. package/dist/cjs/card-manager_3.cjs.entry.js +6 -5
  17. package/dist/cjs/{common-03600219.js → common-7ee7ad73.js} +1 -1
  18. package/dist/cjs/consent-manager.cjs.entry.js +3 -2
  19. package/dist/cjs/{core-b459e4f2.js → core-7f0bcc12.js} +1 -1
  20. package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -2
  21. package/dist/cjs/crowdsource-reporter.cjs.entry.js +3 -2
  22. package/dist/cjs/{downloadUtils-839a1425.js → downloadUtils-2e169425.js} +7 -7
  23. package/dist/cjs/{esri-loader-fce6a9cb.js → esri-loader-a56cbcbe.js} +2 -13
  24. package/dist/cjs/feature-list.cjs.entry.js +7 -6
  25. package/dist/cjs/{helpers-7cee3150.js → helpers-95c28cf3.js} +1 -1
  26. package/dist/cjs/{html2canvas-ef5cae40.js → html2canvas-29c6b9cc.js} +2 -2
  27. package/dist/cjs/{index.es-dd4d4842.js → index.es-301b8d18.js} +11 -10
  28. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +6 -5
  29. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +3 -2
  30. package/dist/cjs/instant-apps-create.cjs.entry.js +5 -4
  31. package/dist/cjs/instant-apps-export.cjs.entry.js +5 -4
  32. package/dist/cjs/instant-apps-header.cjs.entry.js +3 -2
  33. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +5 -4
  34. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +4 -3
  35. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +4 -3
  36. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +4 -3
  37. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +6 -5
  38. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +5 -4
  39. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +7 -6
  40. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +7 -6
  41. package/dist/cjs/instant-apps-measurement.cjs.entry.js +5 -4
  42. package/dist/cjs/instant-apps-popover.cjs.entry.js +5 -4
  43. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +5 -4
  44. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +5 -4
  45. package/dist/cjs/instant-apps-splash.cjs.entry.js +5 -4
  46. package/dist/cjs/{languageSwitcher-1154d55d.js → languageSwitcher-f0bb94fa.js} +1 -1
  47. package/dist/cjs/{languageUtil-d23251cd.js → languageUtil-f22ce913.js} +1 -1
  48. package/dist/cjs/layout-manager.cjs.entry.js +3 -2
  49. package/dist/cjs/{loadModules-4189814e.js → loadModules-36d49819.js} +1 -1
  50. package/dist/cjs/loader.cjs.js +1 -1
  51. package/dist/cjs/{locale-62f4cef2.js → locale-708985a1.js} +2 -2
  52. package/dist/cjs/{locale-6973733d.js → locale-f6fd03d2.js} +1 -1
  53. package/dist/cjs/map-select-tools_3.cjs.entry.js +6 -5
  54. package/dist/cjs/{popupUtils-bae7f923.js → popupUtils-36e57a27.js} +2 -2
  55. package/dist/cjs/public-notification.cjs.entry.js +6 -5
  56. package/dist/cjs/{purify-4a0e9dfb.js → purify-17c0fc4a.js} +2 -2
  57. package/dist/cjs/{restHelpersGet-afc74285.js → restHelpersGet-be451f4a.js} +1 -1
  58. package/dist/cjs/solution-configuration.cjs.entry.js +10 -350
  59. package/dist/cjs/solution-contents_3.cjs.entry.js +58 -48
  60. package/dist/cjs/solution-resource-a09a6fe0.js +145 -0
  61. package/dist/cjs/{solution-store-c8bada29.js → solution-store-d9f3ea44.js} +8 -10
  62. package/dist/cjs/solutions-components.cjs.js +1 -1
  63. package/dist/cjs/spatial-ref.cjs.entry.js +6 -5
  64. package/dist/cjs/store-manager.cjs.entry.js +17 -13
  65. package/dist/cjs/templates-f7a3bf48.js +401 -0
  66. package/dist/cjs/{utils-1de4eaa0.js → utils-31a22d49.js} +1 -1
  67. package/dist/collection/components/solution-item/solution-item.js +1 -1
  68. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.css +11 -1
  69. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +83 -47
  70. package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +25 -24
  71. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  72. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  73. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  74. package/dist/collection/components/store-manager/store-manager.js +11 -13
  75. package/dist/collection/demos/data/election-outreach.json +2981 -0
  76. package/dist/collection/demos/solution-item.html +7 -6
  77. package/dist/collection/demos/solution-spatial-ref.html +10 -4
  78. package/dist/collection/demos/solution-template-data.html +5 -5
  79. package/dist/collection/utils/interfaces.ts +0 -2
  80. package/dist/collection/utils/solution-store.js +6 -8
  81. package/dist/collection/utils/solution-store.ts +12 -13
  82. package/dist/collection/utils/templates.js +113 -26
  83. package/dist/collection/utils/templates.ts +125 -30
  84. package/dist/collection/utils/test/templates.e2e.js +2 -2
  85. package/dist/collection/utils/test/templates.e2e.ts +2 -2
  86. package/dist/components/_commonjsHelpers.js +16 -0
  87. package/dist/components/core.js +1 -1
  88. package/dist/components/downloadUtils.js +1 -1
  89. package/dist/components/esri-loader.js +2 -10
  90. package/dist/components/html2canvas.js +1 -1
  91. package/dist/components/index.es.js +1 -1
  92. package/dist/components/instant-apps-interactive-legend-classic2.js +1 -1
  93. package/dist/components/pagination.js +1 -1
  94. package/dist/components/purify.js +1 -1
  95. package/dist/components/solution-configuration.js +1 -342
  96. package/dist/components/solution-item2.js +1 -1
  97. package/dist/components/solution-resource.js +1 -1
  98. package/dist/components/solution-spatial-ref2.js +52 -44
  99. package/dist/components/solution-store.js +6 -8
  100. package/dist/components/solution-template-data2.js +1 -1
  101. package/dist/components/solution-variables2.js +1 -1
  102. package/dist/components/spatial-ref2.js +1 -1
  103. package/dist/components/store-manager.js +11 -13
  104. package/dist/components/templates.js +395 -0
  105. package/dist/esm/_commonjsHelpers-089957fe.js +16 -0
  106. package/dist/esm/basemap-gallery_7.entry.js +3 -2
  107. package/dist/esm/buffer-tools_3.entry.js +3 -2
  108. package/dist/esm/calcite-action-pad_2.entry.js +3 -2
  109. package/dist/esm/calcite-alert_4.entry.js +7 -6
  110. package/dist/esm/calcite-block_5.entry.js +5 -4
  111. package/dist/esm/calcite-combobox_3.entry.js +1 -1
  112. package/dist/esm/calcite-dropdown-group_2.entry.js +3 -2
  113. package/dist/esm/calcite-flow_6.entry.js +3 -2
  114. package/dist/esm/calcite-pagination.entry.js +1 -1
  115. package/dist/esm/calcite-shell-panel_14.entry.js +9 -8
  116. package/dist/esm/card-manager_3.entry.js +6 -5
  117. package/dist/esm/{common-8697fccd.js → common-96e3ddb0.js} +1 -1
  118. package/dist/esm/consent-manager.entry.js +3 -2
  119. package/dist/esm/{core-4bd4a70f.js → core-6a3c13ac.js} +1 -1
  120. package/dist/esm/crowdsource-manager.entry.js +3 -2
  121. package/dist/esm/crowdsource-reporter.entry.js +3 -2
  122. package/dist/esm/{downloadUtils-97acca92.js → downloadUtils-5fbd8a40.js} +6 -6
  123. package/dist/esm/{esri-loader-3080dcc0.js → esri-loader-781d738a.js} +2 -10
  124. package/dist/esm/feature-list.entry.js +7 -6
  125. package/dist/esm/{helpers-7c88b974.js → helpers-3d53560f.js} +1 -1
  126. package/dist/esm/{html2canvas-fd387d87.js → html2canvas-6443b68e.js} +1 -1
  127. package/dist/esm/{index.es-ee5497bc.js → index.es-66571353.js} +6 -5
  128. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +6 -5
  129. package/dist/esm/instant-apps-control-panel.entry.js +3 -2
  130. package/dist/esm/instant-apps-create.entry.js +5 -4
  131. package/dist/esm/instant-apps-export.entry.js +5 -4
  132. package/dist/esm/instant-apps-header.entry.js +3 -2
  133. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +4 -3
  134. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +4 -3
  135. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +4 -3
  136. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +4 -3
  137. package/dist/esm/instant-apps-interactive-legend.entry.js +6 -5
  138. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +5 -4
  139. package/dist/esm/instant-apps-language-switcher.entry.js +7 -6
  140. package/dist/esm/instant-apps-language-translator.entry.js +7 -6
  141. package/dist/esm/instant-apps-measurement.entry.js +5 -4
  142. package/dist/esm/instant-apps-popover.entry.js +5 -4
  143. package/dist/esm/instant-apps-scoreboard.entry.js +5 -4
  144. package/dist/esm/instant-apps-sign-in.entry.js +5 -4
  145. package/dist/esm/instant-apps-splash.entry.js +5 -4
  146. package/dist/esm/{languageSwitcher-0f693a04.js → languageSwitcher-b665499d.js} +1 -1
  147. package/dist/esm/{languageUtil-de206286.js → languageUtil-a3e6adf6.js} +1 -1
  148. package/dist/esm/layout-manager.entry.js +3 -2
  149. package/dist/esm/{loadModules-43119ac8.js → loadModules-9c062d08.js} +1 -1
  150. package/dist/esm/loader.js +1 -1
  151. package/dist/esm/{locale-42369411.js → locale-28d48640.js} +1 -1
  152. package/dist/esm/{locale-70630b7c.js → locale-b4e7d56f.js} +2 -2
  153. package/dist/esm/map-select-tools_3.entry.js +6 -5
  154. package/dist/esm/{popupUtils-98ad70f3.js → popupUtils-4a91aa2a.js} +2 -2
  155. package/dist/esm/public-notification.entry.js +6 -5
  156. package/dist/esm/{purify-caded4cd.js → purify-72515357.js} +1 -1
  157. package/dist/esm/{restHelpersGet-dab84057.js → restHelpersGet-5c822bcd.js} +1 -1
  158. package/dist/esm/solution-configuration.entry.js +7 -347
  159. package/dist/esm/solution-contents_3.entry.js +58 -48
  160. package/dist/esm/{solution-resource-a2fff3bf.js → solution-resource-3108caf7.js} +1 -1
  161. package/dist/esm/{solution-store-30a19a45.js → solution-store-1c36ce1d.js} +8 -10
  162. package/dist/esm/solutions-components.js +1 -1
  163. package/dist/esm/spatial-ref.entry.js +6 -5
  164. package/dist/esm/store-manager.entry.js +17 -13
  165. package/dist/esm/templates-824ea028.js +395 -0
  166. package/dist/esm/{utils-9bb48951.js → utils-5484fcbf.js} +1 -1
  167. package/dist/solutions-components/demos/data/election-outreach.json +2981 -0
  168. package/dist/solutions-components/demos/solution-item.html +7 -6
  169. package/dist/solutions-components/demos/solution-spatial-ref.html +10 -4
  170. package/dist/solutions-components/demos/solution-template-data.html +5 -5
  171. package/dist/solutions-components/{p-3eb49703.js → p-00291b93.js} +3 -3
  172. package/dist/solutions-components/p-0cd87dca.entry.js +6 -0
  173. package/dist/solutions-components/p-13404ad7.entry.js +6 -0
  174. package/dist/solutions-components/{p-bf27cd5f.js → p-1c3c83a5.js} +1 -1
  175. package/dist/solutions-components/p-1e6c6ec4.entry.js +6 -0
  176. package/dist/solutions-components/p-219f209e.entry.js +6 -0
  177. package/dist/solutions-components/{p-b1abf15c.entry.js → p-2467b476.entry.js} +3 -3
  178. package/dist/solutions-components/p-295f850a.entry.js +6 -0
  179. package/dist/solutions-components/p-2961c63c.entry.js +6 -0
  180. package/dist/solutions-components/{p-946ee345.js → p-2afdcdfc.js} +2 -2
  181. package/dist/solutions-components/p-2d6d44b5.entry.js +6 -0
  182. package/dist/solutions-components/p-36e199e0.entry.js +6 -0
  183. package/dist/solutions-components/{p-d27ab863.js → p-3d7cff5e.js} +1 -1
  184. package/dist/solutions-components/{p-b2f11718.entry.js → p-3e8562b5.entry.js} +1 -1
  185. package/dist/solutions-components/{p-49250010.js → p-427b4593.js} +1 -1
  186. package/dist/solutions-components/{p-f1ae51dc.js → p-44fea43a.js} +1 -1
  187. package/dist/solutions-components/{p-afd2b67b.entry.js → p-4b27da06.entry.js} +1 -1
  188. package/dist/solutions-components/{p-7fe77355.js → p-5cc6eb18.js} +1 -1
  189. package/dist/solutions-components/p-61f88049.entry.js +6 -0
  190. package/dist/solutions-components/{p-d029b513.js → p-65581d83.js} +1 -1
  191. package/dist/solutions-components/p-6a68306c.js +6 -0
  192. package/dist/solutions-components/p-6c7a990a.entry.js +6 -0
  193. package/dist/solutions-components/p-6e6e6d23.entry.js +6 -0
  194. package/dist/solutions-components/p-7696af8e.entry.js +6 -0
  195. package/dist/solutions-components/{p-7afca6b4.js → p-7d1af07b.js} +1 -1
  196. package/dist/solutions-components/{p-6c7e34c1.entry.js → p-881ead62.entry.js} +2 -2
  197. package/dist/solutions-components/p-90864588.entry.js +6 -0
  198. package/dist/solutions-components/{p-59f016a1.js → p-91142a26.js} +1 -1
  199. package/dist/solutions-components/p-932d6f29.entry.js +6 -0
  200. package/dist/solutions-components/{p-71c212e6.entry.js → p-969828ab.entry.js} +1 -1
  201. package/dist/solutions-components/p-986ee365.entry.js +6 -0
  202. package/dist/solutions-components/p-9e3b0220.entry.js +6 -0
  203. package/dist/solutions-components/{p-7996f123.js → p-a0300d31.js} +1 -1
  204. package/dist/solutions-components/p-a8d62b7d.entry.js +6 -0
  205. package/dist/solutions-components/p-ae50581b.entry.js +6 -0
  206. package/dist/solutions-components/{p-89f6ff72.js → p-af2c8aa9.js} +1 -1
  207. package/dist/solutions-components/p-b7123452.entry.js +6 -0
  208. package/dist/solutions-components/p-b92e9047.entry.js +6 -0
  209. package/dist/solutions-components/p-bb7463ed.entry.js +6 -0
  210. package/dist/solutions-components/p-bbc7dd5e.entry.js +6 -0
  211. package/dist/solutions-components/p-bd871071.entry.js +21 -0
  212. package/dist/solutions-components/p-c6fd40f9.entry.js +6 -0
  213. package/dist/solutions-components/{p-42ea2581.js → p-c742acd9.js} +1 -1
  214. package/dist/solutions-components/p-cb4842dd.entry.js +6 -0
  215. package/dist/solutions-components/{p-bd459df3.entry.js → p-ccd1e256.entry.js} +2 -2
  216. package/dist/solutions-components/p-ce4b6931.entry.js +6 -0
  217. package/dist/solutions-components/p-d2de2b2a.entry.js +6 -0
  218. package/dist/solutions-components/p-d300430b.entry.js +6 -0
  219. package/dist/solutions-components/p-d4056c1c.js +6 -0
  220. package/dist/solutions-components/p-d73b90ab.entry.js +6 -0
  221. package/dist/solutions-components/{p-4e92c1ba.entry.js → p-dae9d5b3.entry.js} +1 -1
  222. package/dist/solutions-components/p-df56c019.entry.js +6 -0
  223. package/dist/solutions-components/p-e80751f4.entry.js +6 -0
  224. package/dist/solutions-components/{p-132b1138.entry.js → p-e8ed3fa6.entry.js} +2 -2
  225. package/dist/solutions-components/{p-1d369231.js → p-eed41e1a.js} +1 -1
  226. package/dist/solutions-components/p-fdd93685.js +22 -0
  227. package/dist/solutions-components/{p-6acf6c8f.js → p-ff87b9de.js} +1 -1
  228. package/dist/solutions-components/{p-c9b22653.js → p-ffd41e25.js} +1 -1
  229. package/dist/solutions-components/solutions-components.esm.js +1 -1
  230. package/dist/solutions-components/utils/interfaces.ts +0 -2
  231. package/dist/solutions-components/utils/solution-store.ts +12 -13
  232. package/dist/solutions-components/utils/templates.ts +125 -30
  233. package/dist/solutions-components/utils/test/templates.e2e.ts +2 -2
  234. package/dist/solutions-components_commit.txt +8 -0
  235. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +21 -25
  236. package/dist/types/components/store-manager/store-manager.d.ts +3 -3
  237. package/dist/types/components.d.ts +10 -2
  238. package/dist/types/utils/templates.d.ts +35 -5
  239. package/package.json +5 -4
  240. package/dist/cjs/solution-resource-ffe3c333.js +0 -145
  241. package/dist/solutions-components/p-11b4cd1a.entry.js +0 -6
  242. package/dist/solutions-components/p-123fcb43.entry.js +0 -6
  243. package/dist/solutions-components/p-12b84e3b.entry.js +0 -36
  244. package/dist/solutions-components/p-1a8f7075.entry.js +0 -6
  245. package/dist/solutions-components/p-2a7111ad.entry.js +0 -6
  246. package/dist/solutions-components/p-36f5dee9.entry.js +0 -6
  247. package/dist/solutions-components/p-52bcd209.entry.js +0 -6
  248. package/dist/solutions-components/p-57961ae0.entry.js +0 -6
  249. package/dist/solutions-components/p-5b2d9899.entry.js +0 -6
  250. package/dist/solutions-components/p-5bd6a732.entry.js +0 -6
  251. package/dist/solutions-components/p-5fb4ddc2.entry.js +0 -6
  252. package/dist/solutions-components/p-622f33ee.entry.js +0 -6
  253. package/dist/solutions-components/p-652140aa.entry.js +0 -6
  254. package/dist/solutions-components/p-6d0404a6.entry.js +0 -6
  255. package/dist/solutions-components/p-789eb1c2.entry.js +0 -6
  256. package/dist/solutions-components/p-7a2f1801.entry.js +0 -6
  257. package/dist/solutions-components/p-7dcf6b16.entry.js +0 -6
  258. package/dist/solutions-components/p-8413a2ae.entry.js +0 -6
  259. package/dist/solutions-components/p-941e55f0.entry.js +0 -6
  260. package/dist/solutions-components/p-9b38e6a0.entry.js +0 -6
  261. package/dist/solutions-components/p-9c1fbf73.entry.js +0 -6
  262. package/dist/solutions-components/p-9d82f0e3.entry.js +0 -6
  263. package/dist/solutions-components/p-9fa1855f.entry.js +0 -6
  264. package/dist/solutions-components/p-a2390bee.entry.js +0 -6
  265. package/dist/solutions-components/p-a805c11f.entry.js +0 -6
  266. package/dist/solutions-components/p-af1c9389.entry.js +0 -6
  267. package/dist/solutions-components/p-b7d060b0.entry.js +0 -6
  268. package/dist/solutions-components/p-c4160bf7.js +0 -6
  269. package/dist/solutions-components/p-da75df88.entry.js +0 -6
  270. package/dist/solutions-components/p-e0277e0b.entry.js +0 -6
  271. package/dist/solutions-components/p-e11a4728.entry.js +0 -6
  272. package/dist/solutions-components/p-e89c05d6.entry.js +0 -6
  273. /package/dist/solutions-components/{p-8ad54f5c.js → p-e3196917.js} +0 -0
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { e as esriLoader } from './esri-loader-3080dcc0.js';
6
+ import { e as esriLoader } from './esri-loader-781d738a.js';
7
7
  import { a as getAssetPath } from './index-83b693bc.js';
8
8
 
9
9
  /** @license
@@ -3,8 +3,8 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { l as loadModules } from './loadModules-43119ac8.js';
7
- import { l as languageMap } from './languageUtil-de206286.js';
6
+ import { l as loadModules } from './loadModules-9c062d08.js';
7
+ import { l as languageMap } from './languageUtil-a3e6adf6.js';
8
8
 
9
9
  // https://medium.com/stencil-tricks/implementing-internationalisation-i18n-with-stencil-5e6559554117
10
10
  function getComponentClosestLanguage(element) {
@@ -4,16 +4,17 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-83b693bc.js';
7
- import { a as getComponentClosestLanguage, l as loadModules, g as getLocaleComponentStrings } from './locale-42369411.js';
7
+ import { a as getComponentClosestLanguage, l as loadModules, g as getLocaleComponentStrings } from './locale-28d48640.js';
8
8
  import { e as goToSelection, h as highlightFeatures, k as queryObjectIds, l as getQueryGeoms, c as getFeatureLayerView, m as queryFeaturesByGeometry, n as getIdSets, o as highlightAllFeatures } from './mapViewUtils-e3de60cc.js';
9
9
  import { a as EWorkflowType, e as ESelectionMode, f as EDrawMode } from './interfaces-586e863c.js';
10
10
  import { s as state } from './publicNotificationStore-08faccff.js';
11
- import { d as downloadCSV, a as downloadPDF } from './downloadUtils-97acca92.js';
12
- import './esri-loader-3080dcc0.js';
11
+ import { d as downloadCSV, a as downloadPDF } from './downloadUtils-5fbd8a40.js';
12
+ import './esri-loader-781d738a.js';
13
+ import './_commonjsHelpers-089957fe.js';
13
14
  import './index-d97f4f15.js';
14
- import './solution-resource-a2fff3bf.js';
15
+ import './solution-resource-3108caf7.js';
15
16
  import './index-a1e91462.js';
16
- import './restHelpersGet-dab84057.js';
17
+ import './restHelpersGet-5c822bcd.js';
17
18
 
18
19
  const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-color-icon-color:var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}";
19
20
  const MapSelectToolsStyle0 = mapSelectToolsCss;
@@ -3,8 +3,8 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { _ as _prepareAttributeValue } from './downloadUtils-97acca92.js';
7
- import { l as loadModules } from './locale-42369411.js';
6
+ import { _ as _prepareAttributeValue } from './downloadUtils-5fbd8a40.js';
7
+ import { l as loadModules } from './locale-28d48640.js';
8
8
 
9
9
  /** @license
10
10
  * Copyright 2022 Esri
@@ -5,15 +5,16 @@
5
5
  */
6
6
  import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host, g as getElement } from './index-83b693bc.js';
7
7
  import { b as EExportType, c as EPageType, a as EWorkflowType } from './interfaces-586e863c.js';
8
- import { l as loadModules, g as getLocaleComponentStrings } from './locale-42369411.js';
8
+ import { l as loadModules, g as getLocaleComponentStrings } from './locale-28d48640.js';
9
9
  import { e as goToSelection, h as highlightFeatures } from './mapViewUtils-e3de60cc.js';
10
10
  import { s as state } from './publicNotificationStore-08faccff.js';
11
- import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-97acca92.js';
12
- import './esri-loader-3080dcc0.js';
11
+ import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-5fbd8a40.js';
12
+ import './esri-loader-781d738a.js';
13
+ import './_commonjsHelpers-089957fe.js';
13
14
  import './index-d97f4f15.js';
14
- import './solution-resource-a2fff3bf.js';
15
+ import './solution-resource-3108caf7.js';
15
16
  import './index-a1e91462.js';
16
- import './restHelpersGet-dab84057.js';
17
+ import './restHelpersGet-5c822bcd.js';
17
18
 
18
19
  const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=\"rtl\"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}";
19
20
  const PublicNotificationStyle0 = publicNotificationCss;
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { c as commonjsGlobal } from './esri-loader-3080dcc0.js';
6
+ import { c as commonjsGlobal } from './_commonjsHelpers-089957fe.js';
7
7
 
8
8
  var purify$2 = {exports: {}};
9
9
 
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import './solution-resource-a2fff3bf.js';
6
+ import './solution-resource-3108caf7.js';
7
7
  import './index-a1e91462.js';
8
8
 
9
9
  /*! *****************************************************************************
@@ -4,14 +4,16 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { r as registerInstance, h, H as Host, g as getElement } from './index-83b693bc.js';
7
- import { s as state } from './solution-store-30a19a45.js';
8
- import './solution-resource-a2fff3bf.js';
9
- import { r as request, N as NODEJS_DEFAULT_REFERER_HEADER, c as cleanUrl, e as encodeQueryString, A as ArcGISAuthError, a as getProp } from './restHelpersGet-dab84057.js';
7
+ import { g as getSolutionVariables, a as getOrganizationVariables, b as getInventoryItems } from './templates-824ea028.js';
8
+ import { s as state } from './solution-store-1c36ce1d.js';
9
+ import './solution-resource-3108caf7.js';
10
+ import { r as request, N as NODEJS_DEFAULT_REFERER_HEADER, c as cleanUrl, e as encodeQueryString, A as ArcGISAuthError, a as getProp } from './restHelpersGet-5c822bcd.js';
10
11
  import './index-a1e91462.js';
11
- import { g as getLocaleComponentStrings } from './locale-42369411.js';
12
+ import { g as getLocaleComponentStrings } from './locale-28d48640.js';
12
13
  import './index-d97f4f15.js';
13
14
  import './interfaces-586e863c.js';
14
- import './esri-loader-3080dcc0.js';
15
+ import './_commonjsHelpers-089957fe.js';
16
+ import './esri-loader-781d738a.js';
15
17
 
16
18
  /* Copyright (c) 2017-2020 Environmental Systems Research Institute, Inc.
17
19
  * Apache-2.0 */
@@ -1097,348 +1099,6 @@ var UserSession = /** @class */ (function () {
1097
1099
  return UserSession;
1098
1100
  }());
1099
1101
 
1100
- /** @license
1101
- * Copyright 2022 Esri
1102
- *
1103
- * Licensed under the Apache License, Version 2.0 (the "License");
1104
- * you may not use this file except in compliance with the License.
1105
- * You may obtain a copy of the License at
1106
- *
1107
- * http://www.apache.org/licenses/LICENSE-2.0
1108
- *
1109
- * Unless required by applicable law or agreed to in writing, software
1110
- * distributed under the License is distributed on an "AS IS" BASIS,
1111
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
- * See the License for the specific language governing permissions and
1113
- * limitations under the License.
1114
- */
1115
- //--------------------------------------------------------------------------
1116
- //
1117
- // Public Functions
1118
- //
1119
- //--------------------------------------------------------------------------
1120
- /**
1121
- * Sort the solution items
1122
- *
1123
- * @param templates a list of item templates from the solution
1124
- *
1125
- * @returns a sorted list of solution items
1126
- */
1127
- function getInventoryItems(templates) {
1128
- const hierarchy = getItemHierarchy(templates);
1129
- const ids = hierarchy.reduce((prev, cur) => {
1130
- prev.push(cur.id);
1131
- return prev;
1132
- }, []);
1133
- return templates.reduce((prev, cur) => {
1134
- if (ids.indexOf(cur.itemId) > -1) {
1135
- const hierarchyItems = hierarchy.filter(hi => hi.id === cur.itemId);
1136
- prev.push(_getItemFromTemplate(cur, templates, hierarchyItems[0].dependencies));
1137
- }
1138
- return prev;
1139
- }, []);
1140
- }
1141
- /**
1142
- * Create item hierarchy that will avoid issues from cylical dependencies
1143
- *
1144
- * @param templates a list of item templates from the solution
1145
- *
1146
- * @returns a hierarchy for item and item dependency display
1147
- */
1148
- function getItemHierarchy(templates) {
1149
- const hierarchy = [];
1150
- // Get the template specified by id out of a list of templates
1151
- function getTemplateInSolution(templates, id) {
1152
- const iTemplate = templates.findIndex((template) => id === template.itemId);
1153
- return iTemplate >= 0 ? templates[iTemplate] : null;
1154
- }
1155
- // Hierarchically list the dependencies of specified node
1156
- function traceItemId(id, accumulatedHierarchy, alreadyVisitedIds = []) {
1157
- // Get the dependencies of the node
1158
- const template = getTemplateInSolution(templates, id);
1159
- /* istanbul ignore else */
1160
- if (template) {
1161
- const templateEntry = {
1162
- id,
1163
- dependencies: []
1164
- };
1165
- // Visit each dependency, but only if this template is not in the alreadyVisitedIds list to avoid infinite loops
1166
- /* istanbul ignore else */
1167
- if (alreadyVisitedIds.indexOf(id) < 0) {
1168
- // Add dependency to alreadyVisitedIds list
1169
- alreadyVisitedIds.push(id);
1170
- template.dependencies.forEach((dependencyId) => {
1171
- // Remove dependency from list of templates to visit in the top-level loop
1172
- const iDependencyTemplate = templateItemIds.indexOf(dependencyId);
1173
- /* istanbul ignore else */
1174
- if (iDependencyTemplate >= 0) {
1175
- templateItemIds.splice(iDependencyTemplate, 1);
1176
- }
1177
- traceItemId(dependencyId, templateEntry.dependencies, alreadyVisitedIds);
1178
- });
1179
- }
1180
- accumulatedHierarchy.push(templateEntry);
1181
- }
1182
- }
1183
- // Start with top-level nodes and add in the rest of the nodes to catch cycles without top-level nodes
1184
- let templateItemIds = _getTopLevelItemIds(templates);
1185
- const otherItems = templates
1186
- .filter((template) => templateItemIds.indexOf(template.itemId) < 0) // only keep non-top-level nodes
1187
- .sort((a, b) => b.dependencies.length - a.dependencies.length); // sort so that nodes with more dependencies come first--reduces stubs
1188
- templateItemIds = templateItemIds.concat(otherItems.map((template) => template.itemId));
1189
- // Step through the list of nodes; we'll also remove nodes as we visit them
1190
- let itemId = templateItemIds.shift();
1191
- while (typeof itemId !== "undefined") {
1192
- traceItemId(itemId, hierarchy);
1193
- itemId = templateItemIds.shift();
1194
- }
1195
- return hierarchy;
1196
- }
1197
- /**
1198
- * Explore the solution item templates for variables we will allow users to insert at runtime
1199
- *
1200
- * @param templates a list of item templates from the solution
1201
- * @param translations nls translation object
1202
- *
1203
- * @returns a list of variables from the solution item templates
1204
- */
1205
- function getSolutionVariables(templates, translations) {
1206
- const vars = [];
1207
- templates.forEach(t => {
1208
- const item = {
1209
- id: t.itemId,
1210
- title: t.item.title || t.item.name,
1211
- type: t.type,
1212
- value: undefined,
1213
- dependencies: [{
1214
- id: t.itemId,
1215
- title: translations.itemId,
1216
- value: `{{${t.itemId}.itemId}}`,
1217
- }]
1218
- };
1219
- if (t.item.url) {
1220
- item.dependencies.push({
1221
- id: t.itemId,
1222
- title: translations.url,
1223
- value: `{{${t.itemId}.url}}`,
1224
- });
1225
- }
1226
- if (t.type === "Feature Service") {
1227
- // TODO need to set source service name var...
1228
- // TODO need to set soure service shape field name "{{d05b3cf1ffcb4a4fa677627dfb18609e.name}}.Shape"
1229
- item.dependencies.push({
1230
- id: t.itemId,
1231
- title: translations.solutionExtent,
1232
- value: `{{${t.itemId}.solutionExtent}}`,
1233
- });
1234
- _addLayersOrTables(t.properties.layers || [], item, t, translations);
1235
- _addLayersOrTables(t.properties.tables || [], item, t, translations);
1236
- }
1237
- vars.push(item);
1238
- });
1239
- return vars;
1240
- }
1241
- /**
1242
- * Set key organization variables we will allow users to insert at runtime
1243
- *
1244
- * @param translations nls translation object
1245
- *
1246
- * @returns a list of variables for the organization
1247
- */
1248
- function getOrganizationVariables(translations) {
1249
- const orgVars = [{
1250
- id: "",
1251
- title: translations.geocodeUrl,
1252
- value: "{{organization.helperServices.geocode:getDefaultLocatorURL}}"
1253
- }, {
1254
- id: "",
1255
- title: translations.geometryUrl,
1256
- value: "{{organization.helperServices.geometry.url}}"
1257
- }, {
1258
- id: "",
1259
- title: translations.portalBaseUrl,
1260
- value: "{{portalBaseUrl}}"
1261
- }, {
1262
- id: "",
1263
- title: translations.routeUrl,
1264
- value: "{{organization.helperServices.route.url}}"
1265
- }, {
1266
- id: "",
1267
- title: translations.solutionItemExtent,
1268
- value: "{{solutionItemExtent}}"
1269
- }];
1270
- return orgVars;
1271
- }
1272
- //--------------------------------------------------------------------------
1273
- //
1274
- // Private Functions
1275
- //
1276
- //--------------------------------------------------------------------------
1277
- /**
1278
- * Explore a solution item template for variables we will allow users to insert at runtime.
1279
- * This function will update the item argument that is passed in with the var details.
1280
- *
1281
- * @param children a list of layers or tables from a template
1282
- * @param item an object that store key details for a given variable
1283
- * @param template one of the templates from the current solution
1284
- * @param translations nls translations object
1285
- *
1286
- */
1287
- function _addLayersOrTables(children, item, template, translations) {
1288
- children.forEach(l => {
1289
- const name = l.name && l.name.indexOf("||") > -1 ? l.name.split("||")[1].replace("}}", "").trim() : l.name;
1290
- item.dependencies.push({
1291
- id: template.itemId,
1292
- title: `${name} (${translations.id})`,
1293
- value: `{{${template.itemId}.layer${l.id}.id}}`,
1294
- });
1295
- item.dependencies.push({
1296
- id: template.itemId,
1297
- title: `${name} (${translations.name})`,
1298
- value: `{{${template.itemId}.layer${l.id}.name||${name}}}`,
1299
- });
1300
- });
1301
- }
1302
- /**
1303
- * Capture key details from the solution item template
1304
- *
1305
- * @param template one of the templates from the current solution
1306
- * @param templates full list of templates
1307
- * @param dependencies list of hierarchical dependencies
1308
- *
1309
- * @returns an IInventoryItem that is used by other components to work with this template
1310
- */
1311
- function _getItemFromTemplate(template, templates, dependencies) {
1312
- return {
1313
- id: template.itemId || "",
1314
- title: template.item.title || "",
1315
- dependencies: _getDependencies(dependencies, templates),
1316
- type: template.item.type || "",
1317
- typeKeywords: template.item.typeKeywords || [] /*,
1318
- solutionItem: {
1319
- itemId: template.itemId,
1320
- itemDetails: _getItemDetails(template.item, template.type === "Group"),
1321
- isResource: _getIsResource(template),
1322
- data: template.data,
1323
- properties: template.properties,
1324
- type: template.type,
1325
- groupDetails: _getGroupDetails(template, templates)
1326
- }*/
1327
- };
1328
- }
1329
- /**
1330
- * Capture key details from the solution item template
1331
- *
1332
- * @param dependencies list of dependencies from a template
1333
- * @param templates full list of templates
1334
- *
1335
- * @returns a list of IInventoryItem that are used by other components to work with the templates
1336
- */
1337
- function _getDependencies(dependencies, templates) {
1338
- const dependencyItems = [];
1339
- const depIds = dependencies.reduce((prev, cur) => {
1340
- prev.push(cur.id);
1341
- dependencyItems.push(cur);
1342
- return prev;
1343
- }, []);
1344
- return templates.reduce((prev, curr) => {
1345
- const i = depIds.indexOf(curr.itemId);
1346
- if (i > -1) {
1347
- prev.push(_getItemFromTemplate(curr, templates, dependencyItems[i].dependencies));
1348
- }
1349
- return prev;
1350
- }, []);
1351
- }
1352
- /**
1353
- * Capture the key item details for a given template
1354
- *
1355
- * @param item the templates item
1356
- * @param isGroup boolean to indicate if the item is a group
1357
- * @param itemId the item id of the template
1358
- *
1359
- * @returns a IItemDetails object for the current item
1360
- */
1361
- /*
1362
- function _getItemDetails(
1363
- item: any,
1364
- isGroup: boolean
1365
- ): IItemDetails {
1366
- return {
1367
- title: item.title || "",
1368
- snippet: item.snippet || "",
1369
- description: item.description || "",
1370
- tags: item.tags || [],
1371
- accessInformation: !isGroup ? item.accessInformation || "" : "",
1372
- licenseInfo: !isGroup ? item.licenseInfo || "" : ""
1373
- };
1374
- }
1375
- */
1376
- /**
1377
- * Capture the key item details for a given group template
1378
- *
1379
- * @param template one of the templates from the current solution
1380
- * @param templates full list of templates
1381
- *
1382
- * @returns a list of IItemShare objects
1383
- */
1384
- /*
1385
- function _getGroupDetails(
1386
- template: any,
1387
- templates: any[]
1388
- ): IItemShare[] {
1389
- return template.type === "Group" ? templates.reduce((prev, cur) => {
1390
- if (cur.itemId !== template.itemId && cur.type !== "Group") {
1391
- prev.push({
1392
- id: cur.itemId,
1393
- title: cur.item.name || cur.item.title,
1394
- isShared: (cur.groups || []).indexOf(template.itemId) > -1,
1395
- shareItem: (cur.groups || []).indexOf(template.itemId) > -1,
1396
- type: cur.type,
1397
- typeKeywords: cur.item.typeKeywords
1398
- });
1399
- }
1400
- return prev;
1401
- }, []) : [];
1402
- }
1403
- */
1404
- /**
1405
- * Used to understand if we are dealing with a binary object that will support upload/download
1406
- *
1407
- * @param template one of the templates from the current solution
1408
- *
1409
- * @returns true if this item supports upload/download
1410
- */
1411
- /*
1412
- function _getIsResource(
1413
- template: any
1414
- ): boolean {
1415
- return template.type !== "Group" && template.resources.some(r => r.indexOf("_info_thumbnail") < 0) &&
1416
- (template.data === null || JSON.stringify(template.data) === "{}");
1417
- }
1418
- */
1419
- /**
1420
- * Sort the template ids based on their dependencies
1421
- *
1422
- * @param templates full list of templates
1423
- *
1424
- * @returns a list of Itop level item ids
1425
- */
1426
- function _getTopLevelItemIds(templates) {
1427
- // Find the top-level nodes. Start with all nodes, then remove those that other nodes depend on
1428
- const topLevelItemCandidateIds = templates.map((template) => template.itemId);
1429
- templates.forEach((template) => {
1430
- (template.dependencies || []).forEach((dependencyId) => {
1431
- const iNode = topLevelItemCandidateIds.indexOf(dependencyId);
1432
- if (iNode >= 0) {
1433
- // Node is somebody's dependency, so remove the node from the list of top-level nodes
1434
- // If iNode == -1, then it's a shared dependency and it has already been removed
1435
- topLevelItemCandidateIds.splice(iNode, 1);
1436
- }
1437
- });
1438
- });
1439
- return topLevelItemCandidateIds;
1440
- }
1441
-
1442
1102
  const solutionConfigurationCss = ".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%}.config-solution{position:absolute;top:3.5rem;right:-1px;bottom:-1px;left:-1px;display:flex;padding:0.5rem}.config-inventory{display:inline;max-width:-moz-min-content;max-width:min-content;flex-grow:0;overflow-y:auto}.config-inventory-hide{display:none;max-width:-moz-min-content;max-width:min-content;flex-grow:0;overflow-y:auto}.config-item{position:relative;display:inline;flex-grow:1;overflow-y:auto;margin-inline-start:0.5rem}solution-contents{position:relative;height:100%}solution-item{position:relative;height:100%}solution-spatial-ref{position:relative;height:100%;width:100%;overflow-y:auto}";
1443
1103
  const SolutionConfigurationStyle0 = solutionConfigurationCss;
1444
1104
 
@@ -4,15 +4,16 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-83b693bc.js';
7
- import { s as state } from './solution-store-30a19a45.js';
8
- import { g as getLocaleComponentStrings } from './locale-42369411.js';
9
- import { n as nodeListToArray } from './common-8697fccd.js';
7
+ import { s as state } from './solution-store-1c36ce1d.js';
8
+ import { g as getLocaleComponentStrings } from './locale-28d48640.js';
9
+ import { n as nodeListToArray } from './common-96e3ddb0.js';
10
10
  import './index-d97f4f15.js';
11
11
  import './interfaces-586e863c.js';
12
- import './solution-resource-a2fff3bf.js';
13
- import './esri-loader-3080dcc0.js';
12
+ import './solution-resource-3108caf7.js';
13
+ import './_commonjsHelpers-089957fe.js';
14
14
  import './index-a1e91462.js';
15
- import './restHelpersGet-dab84057.js';
15
+ import './restHelpersGet-5c822bcd.js';
16
+ import './esri-loader-781d738a.js';
16
17
 
17
18
  const solutionContentsCss = ".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
18
19
  const SolutionContentsStyle0 = solutionContentsCss;
@@ -119,7 +120,7 @@ const SolutionItem = class {
119
120
  * Renders the component.
120
121
  */
121
122
  render() {
122
- return (h(Host, { key: '46215591e1f5c87fc30b116fbeeeef5e7eb29b19' }, h("div", { key: 'dbcb49c592eca9f30b44fb3e8a35d0433ed517d3', class: "configuration-container" }, h("div", { key: '9f97e7c2a6a912f3d57d1bc840cab02d13860da2', class: "configuration" }, this._showGroupTabs(this.itemType === "Group"), this._showItemTabs(this.itemType !== "Group")))));
123
+ return (h(Host, { key: '16de446a44799754d7066eb5cc587585fc9e37c8' }, h("div", { key: 'ddb7c1e6c86657502dc4b293d495f3b4dee594cf', class: "configuration-container" }, h("div", { key: '016954a98a5eb229a1f9eb2a4b9260daff3593bf', class: "configuration" }, this._showGroupTabs(this.itemType === "Group"), this._showItemTabs(this.itemType !== "Group")))));
123
124
  }
124
125
  //--------------------------------------------------------------------------
125
126
  //
@@ -173,7 +174,7 @@ const SolutionItem = class {
173
174
  };
174
175
  SolutionItem.style = SolutionItemStyle0;
175
176
 
176
- const solutionSpatialRefCss = ".spatial-ref-switch{margin-inline-end:0.5rem}.spatial-ref-component{margin-top:0.625rem;margin-inline-start:2.5rem}#spatialRefDefn .sc-calcite-label-h label.sc-calcite-label{margin:0px;background-color:#CBC3E3}.spatial-ref-default{margin:0px}.spatial-ref-item-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem}.spatial-ref-item-switch{margin-inline-end:0.5rem}.switch-label{margin:0.25rem;font-size:0.875rem;line-height:1.25rem}.disabled-div{pointer-events:none;opacity:0.4}.spatial-ref-desc{padding-bottom:0.5rem;padding-inline-start:0.25rem}";
177
+ const solutionSpatialRefCss = ".spatial-ref-switch{margin-inline-end:0.5rem}.spatial-ref-component{margin-top:0.625rem;margin-inline-start:2.5rem}#spatialRefDefn .sc-calcite-label-h label.sc-calcite-label{margin:0px;background-color:#CBC3E3}.spatial-ref-default{margin:0px}.spatial-ref-item-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem}.spatial-ref-item-switch{margin-inline-end:0.5rem}.switch-label{font-size:0.875rem;line-height:1.25rem}.disabled-div{pointer-events:none;opacity:0.4}.spatial-ref-desc{padding-bottom:0.5rem;padding-inline-start:0.25rem}.spatial-ref-services-list{margin-block-start:0.5em;margin-block-end:0.5em;list-style-type:none;padding-inline-start:0}.spatial-ref-services-list-item{margin-top:0.25rem}";
177
178
  const SolutionSpatialRefStyle0 = solutionSpatialRefCss;
178
179
 
179
180
  const SolutionSpatialRef = class {
@@ -186,7 +187,6 @@ const SolutionSpatialRef = class {
186
187
  this.locked = true;
187
188
  this.services = [];
188
189
  this.value = this.defaultWkid.toString();
189
- this._srSearchText = undefined;
190
190
  this._translations = undefined;
191
191
  }
192
192
  lockedChanged(newLocked) {
@@ -209,17 +209,21 @@ const SolutionSpatialRef = class {
209
209
  componentWillLoad() {
210
210
  return this._getTranslations();
211
211
  }
212
- /**
213
- * Renders the component.
214
- */
215
212
  render() {
216
- return (h(Host, { key: '2a12d415e9408b646365ace8e3e82138be70f343' }, h("div", { key: 'f58d6782ac4065f67dd0205271b05d4c0c31d8dc', class: "spatial-ref" }, h("div", { key: '5267f203f1c63c5e900b0ead8798f3561d225d42', class: "spatial-ref-desc" }, h("calcite-label", { key: '1183f8ee9274be1980dc889ca52f5d0c6a6994af' }, this._translations.paramDescription)), h("label", { key: '5367f57784a20501505b0e9cfdd345a8de3fce93', class: "switch-label" }, h("calcite-switch", { key: '2d79a69e64f28b6e2aeed52b0b0aa4034ebb6c57', checked: !this.locked, class: "spatial-ref-switch", onCalciteSwitchChange: (event) => this._updateLocked(event), scale: "m" }), this._translations.specifyParam), h("div", { key: '60ab36865749f4c59798bf51ff1b5264a3eeeefc', class: "spatial-ref-component", id: "spatialRefDefn" }, h("calcite-label", { key: 'bc0b446d1f7b0a62f49b579ac0e5f8da33531ed9' }, this._translations.spatialReferenceInfo, h("label", { key: '5f2135d975e2254429c8d6a14fe2f2a91fdc3fb9', class: "spatial-ref-default" }, h("spatial-ref", { key: 'be7c105e3cebba4eed80c88e8b4d539affb67e0e', defaultWkid: this.defaultWkid, disabled: this.locked, value: this.value }))), this._getFeatureServices(this.services)))));
213
+ return (h(Host, { key: '8c5f34b7d44429ed0395ae48956161caf7e62111' }, h("label", { key: '69f1178da58409888f0b5b15ae4ffd224bb999d4', class: "switch-label" }, h("calcite-switch", { key: '279795c5e21b914c595ea95219e3f589f7270ac4', checked: !this.locked, class: "spatial-ref-switch", onCalciteSwitchChange: (event) => this._updateLocked(event), scale: "m" }), this._translations.specifyParam), h("div", { key: '516e621ad3e2f6f881b0fbc0a80d98f1f3b7eecd', class: "spatial-ref-component", id: "spatialRefDefn" }, h("calcite-label", { key: '19b05ffa3e80d5e33521d0b6ee8438d882f9481d' }, this._translations.spatialReferenceInfo, h("label", { key: '0766edb36aa3e8853bfd4754b9ea7aa955d7d987', class: "spatial-ref-default" }, h("spatial-ref", { key: '9f1b37a12e18b5ba3c2d2b4b372f01a4f69ded28', defaultWkid: this.defaultWkid, disabled: this.locked, value: this.value }))), this._getFeatureServices(this.services))));
214
+ }
215
+ solutionStoreHasChanges() {
216
+ this.services = state.getStoreInfo("featureServices").map(service => service.name);
217
217
  }
218
218
  /**
219
219
  * Saves changes to the embedded spatial reference value
220
220
  */
221
221
  spatialReferenceChange(event) {
222
222
  this.value = event.detail.newValue;
223
+ state.setStoreInfo("defaultWkid", event.detail.newValue);
224
+ const spatialReferenceInfo = state.getStoreInfo("spatialReferenceInfo");
225
+ spatialReferenceInfo.spatialReference = event.detail.newValue;
226
+ state.setStoreInfo("spatialReferenceInfo", spatialReferenceInfo);
223
227
  }
224
228
  //--------------------------------------------------------------------------
225
229
  //
@@ -232,22 +236,19 @@ const SolutionSpatialRef = class {
232
236
  //
233
237
  //--------------------------------------------------------------------------
234
238
  /**
235
- * Toggles the ability to set the default spatial reference.
239
+ * Create a switch control for each of the services
240
+ *
241
+ * @param services List of feature services
242
+ * @returns a node to control each feature service
236
243
  */
237
- _updateLocked(event) {
238
- this.locked = !event.target.checked;
239
- this._updateStore();
240
- if (!this.loaded) {
241
- // when this is switched on when loading we have reloaded a solution that
242
- // has a custom wkid param and we should honor the settings they already have in the templates
243
- if (event.target.checked) {
244
- // By default enable all Feature Services on first load
245
- this._setFeatureServiceDefaults(this.services);
246
- }
247
- this.loaded = true;
248
- }
244
+ _getFeatureServices(services) {
245
+ // verify they are in state
246
+ const spatialReferenceInfo = state.getStoreInfo("spatialReferenceInfo");
247
+ const _services = services.filter(serviceName => {
248
+ return Object.keys(spatialReferenceInfo.services).some(srefServiceName => srefServiceName === serviceName);
249
+ });
250
+ return _services.length > 0 ? (h("div", null, h("label", { class: "spatial-ref-item-title" }, this._translations.featureServicesHeading), h("ul", { class: "spatial-ref-services-list" }, _services.map(name => (h("li", { class: "spatial-ref-services-list-item" }, h("label", { class: "switch-label" }, h("calcite-switch", { checked: spatialReferenceInfo.services[name], class: "spatial-ref-item-switch", disabled: this.locked, onCalciteSwitchChange: (event) => this._updateEnabledServices(event, name), scale: "m" }), name))))))) : (null);
249
251
  }
250
- ;
251
252
  /**
252
253
  * Enable spatial reference variable for all feature services.
253
254
  *
@@ -260,19 +261,40 @@ const SolutionSpatialRef = class {
260
261
  services.forEach(name => this._updateEnabledServices({ detail: { switched: true } }, name));
261
262
  }
262
263
  /**
263
- * Create a switch control for each of the services
264
- *
265
- * @param services List of feature services
266
- * @returns a node to control each feature service
264
+ * Updates the enabled/disabled state of the service in spatialReferenceInfo.
267
265
  */
268
- _getFeatureServices(services) {
269
- // verify they are in state
266
+ _updateEnabledServices(event, name) {
267
+ var _a, _b;
270
268
  const spatialReferenceInfo = state.getStoreInfo("spatialReferenceInfo");
271
- const _services = services.filter(s => {
272
- return Object.keys(spatialReferenceInfo.services).some(stateService => stateService === s);
269
+ const enabled = ((_a = event.detail) === null || _a === void 0 ? void 0 : _a.switched) !== undefined // internal event
270
+ ? event.detail.switched
271
+ : ((_b = event.target) === null || _b === void 0 ? void 0 : _b.checked) !== undefined // calcite event
272
+ ? event.target.checked
273
+ : true;
274
+ spatialReferenceInfo.services[name] = enabled;
275
+ state.setStoreInfo("spatialReferenceInfo", spatialReferenceInfo);
276
+ this.featureServiceSpatialReferenceChange.emit({
277
+ name,
278
+ enabled
273
279
  });
274
- return _services && _services.length > 0 ? (h("div", null, h("label", { class: "spatial-ref-item-title" }, this._translations.featureServicesHeading), _services.map(name => (h("label", { class: "switch-label" }, h("calcite-switch", { checked: spatialReferenceInfo.services[name], class: "spatial-ref-item-switch", disabled: this.locked, onCalciteSwitchChange: (event) => this._updateEnabledServices(event, name), scale: "m" }), name))))) : (null);
275
280
  }
281
+ /**
282
+ * Toggles the ability to set the default spatial reference.
283
+ */
284
+ _updateLocked(event) {
285
+ this.locked = !event.target.checked;
286
+ this._updateStore();
287
+ if (!this.loaded) {
288
+ // when this is switched on when loading we have reloaded a solution that
289
+ // has a custom wkid param and we should honor the settings they already have in the templates
290
+ if (event.target.checked) {
291
+ // By default enable all Feature Services on first load
292
+ this._setFeatureServiceDefaults(this.services);
293
+ }
294
+ this.loaded = true;
295
+ }
296
+ }
297
+ ;
276
298
  /**
277
299
  * Updates the enabled and spatialReference prop in spatialReferenceInfo.
278
300
  */
@@ -282,18 +304,6 @@ const SolutionSpatialRef = class {
282
304
  spatialReferenceInfo.spatialReference = this.value;
283
305
  state.setStoreInfo("spatialReferenceInfo", spatialReferenceInfo);
284
306
  }
285
- /**
286
- * Updates the enabled/disabled state of the service in spatialReferenceInfo.
287
- */
288
- _updateEnabledServices(event, name) {
289
- const spatialReferenceInfo = state.getStoreInfo("spatialReferenceInfo");
290
- spatialReferenceInfo.services[name] = event.target.checked;
291
- state.setStoreInfo("spatialReferenceInfo", spatialReferenceInfo);
292
- this.featureServiceSpatialReferenceChange.emit({
293
- name,
294
- enabled: event.target.checked
295
- });
296
- }
297
307
  /**
298
308
  * Fetches the component's translations
299
309
  *