@esri/solutions-components 0.8.39 → 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
@@ -24,6 +24,9 @@
24
24
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
25
25
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
26
26
  <style>
27
+ .content {
28
+ padding: 20px;
29
+ }
27
30
  .full-height {
28
31
  height: 100%;
29
32
  }
@@ -37,12 +40,12 @@
37
40
  <h1>Demo Solution Item</h1>
38
41
  <main id="appContainer">
39
42
  <div id="sol-item" class="content full-height">
40
- <store-manager id="helper"></store-manager>
41
- <solution-item id="demo"></solution-item>
43
+ <store-manager id="helper"/>
44
+ <solution-item id="demo"/>
42
45
  </div>
43
46
  </main>
44
47
 
45
- <script src="./libs/require.js"></script>
48
+ <script src="./libs/require.js">/script>
46
49
  <script src="./libs/setLocale.js"></script>
47
50
  <script src="./monacoConfig.js"></script>
48
51
  <script>
@@ -53,9 +56,7 @@
53
56
  });
54
57
  require(['vs/editor/editor.main'],
55
58
  function () {
56
- // Initialize the configuration content
57
59
  const demo = document.getElementById("demo");
58
-
59
60
  const helper = document.getElementById("helper");
60
61
 
61
62
  // set the data
@@ -68,7 +69,7 @@
68
69
  ])
69
70
  .then(results => Promise.all(results.map(r => r.json())))
70
71
  .then(jsonResults => {
71
- helper.value = JSON.stringify(jsonResults[4].templates[0]);
72
+ helper.value = JSON.stringify(jsonResults[4]);
72
73
 
73
74
  const itemDetails = jsonResults[0].value;
74
75
  const value = jsonResults[1].value;
@@ -19,6 +19,7 @@
19
19
  | See the License for the specific language governing permissions and
20
20
  | limitations under the License.
21
21
  -->
22
+
22
23
  <link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.0.0/calcite.css" />
23
24
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
24
25
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
@@ -30,14 +31,16 @@
30
31
  height: calc(100% - 40px);
31
32
  }
32
33
  </style>
34
+
33
35
  <script type="module" src="https://js.arcgis.com/calcite-components/2.0.0/calcite.esm.js"></script>
34
36
  <script type="module" src="../solutions-components.esm.js"></script>
35
37
  </head>
38
+
36
39
  <body>
37
40
  <h1>Demo Solution Spatial Reference</h1>
38
41
  <main id="appContainer">
39
42
  <div class="content full-height">
40
- <store-manager id="helper"></store-manager>
43
+ <store-manager id="helper"/>
41
44
  <solution-spatial-ref id="demo"/>
42
45
  </div>
43
46
  </main>
@@ -45,13 +48,16 @@
45
48
  <script src="./libs/require.js"></script>
46
49
  <script src="./libs/setLocale.js"></script>
47
50
  <script>
48
- require([], // for loading i18n in setLocale
51
+ require([],
49
52
  function () {
53
+ const demo = document.getElementById("demo");
54
+ const helper = document.getElementById("helper");
55
+
56
+ // set the data
50
57
  fetch("./data/election-outreach.json").then(result => {
51
58
  result.json().then(data => {
52
59
  document.getElementById("appContainer").style.opacity = "1";
53
- const helper = document.getElementById("helper");
54
- helper.value = JSON.stringify(data.templates);
60
+ helper.value = JSON.stringify(data);
55
61
  });
56
62
  });
57
63
  });
@@ -24,6 +24,9 @@
24
24
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
25
25
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
26
26
  <style>
27
+ .content {
28
+ padding: 20px;
29
+ }
27
30
  .full-height {
28
31
  height: 100%;
29
32
  }
@@ -37,7 +40,7 @@
37
40
  <h1>Demo Solution Template Data</h1>
38
41
  <main id="appContainer">
39
42
  <div id="template-data" class="content full-height">
40
- <store-manager id="helper"></store-manager>
43
+ <store-manager id="helper"/>
41
44
  <solution-template-data id="demo" instanceId="data" itemid="2d2d176f5f3e43a985a31649e213aaf4"></solution-template-data>
42
45
  </div>
43
46
  </main>
@@ -53,9 +56,7 @@
53
56
  });
54
57
  require(["vs/editor/editor.main"],
55
58
  function () {
56
- // Initialize the content
57
59
  const demo = document.getElementById("demo");
58
-
59
60
  const helper = document.getElementById("helper");
60
61
 
61
62
  // set the data
@@ -67,8 +68,7 @@
67
68
  ])
68
69
  .then(results => Promise.all(results.map(r => r.json())))
69
70
  .then(jsonResults => {
70
- const template = JSON.stringify(jsonResults[3].templates[0]);
71
- helper.value = template;
71
+ helper.value = JSON.stringify(jsonResults[3]);
72
72
 
73
73
  demo.value = { value: jsonResults[0].value };
74
74
  demo.itemid = "2d2d176f5f3e43a985a31649e213aaf4";
@@ -275,7 +275,6 @@ export interface ISolutionTemplateEdits {
275
275
  [templateId: string]: ISolutionTemplateEdit;
276
276
  }
277
277
 
278
- //???
279
278
  export interface ISolutionModel {
280
279
  dataModel: monaco.editor.ITextModel;
281
280
  dataOriginValue: string;
@@ -306,7 +305,6 @@ export interface ISolutionModel {
306
305
  export interface ISolutionModels {
307
306
  [key: string]: ISolutionModel;
308
307
  }
309
- //???
310
308
 
311
309
  /**
312
310
  * Feature service name and whether the service is enabled for SR configuration
@@ -256,14 +256,12 @@ class SolutionStore {
256
256
  */
257
257
  _flagStoreHasChanges(flagHasChanges) {
258
258
  // Event for notifying if the store has changes or not
259
- if (this._hasChanges !== flagHasChanges) {
260
- window.dispatchEvent(new CustomEvent("solutionStoreHasChanges", {
261
- detail: flagHasChanges,
262
- bubbles: true,
263
- cancelable: false,
264
- composed: true
265
- }));
266
- }
259
+ window.dispatchEvent(new CustomEvent("solutionStoreHasChanges", {
260
+ detail: flagHasChanges,
261
+ bubbles: true,
262
+ cancelable: false,
263
+ composed: true
264
+ }));
267
265
  this._hasChanges = flagHasChanges;
268
266
  }
269
267
  /**
@@ -53,11 +53,12 @@ import {
53
53
  // * solutionItemId: [string] id of the current solution
54
54
  // * defaultWkid: [any] value of the solution's `params.wkid.default` data property, which may be undefined
55
55
  // * solutionData: [ISolutionItemData] the solution's data, which is modified in-place
56
- // * featureServices: [array] a list of Feature service enablement status for SR configuration
56
+ // * featureServices: [array] a list of Feature services that use a spatial reference var
57
57
  // * spatialReferenceInfo: [object] the current spatial reference (if enabled) and the services that use it
58
58
  // * enabled: [boolean] use the spatial reference
59
- // * services: [object] services using this spatial reference organized by the service name
60
- // * spatialReference: [object] the spatial reference display
59
+ // * services: [object] for each service in featureServices by service name, a switch indicating if the
60
+ // custom spatial reference parameter is enabled/disabled
61
+ // * spatialReference: [object] the custom spatial reference wkid
61
62
  //
62
63
  // Store singleton method:
63
64
  // * Store: Creates singleton instance when accessed; default export from module.
@@ -79,7 +80,7 @@ import {
79
80
  //
80
81
  //--------------------------------------------------------------------------------------------------------------------//
81
82
 
82
- interface SolutionStoreData {
83
+ interface ISolutionStoreData {
83
84
  solutionItemId: string,
84
85
  defaultWkid: string,
85
86
  solutionData: ISolutionItemData,
@@ -88,7 +89,7 @@ interface SolutionStoreData {
88
89
  spatialReferenceInfo: ISolutionSpatialReferenceInfo
89
90
  }
90
91
 
91
- const EmptySolutionStore: SolutionStoreData = {
92
+ const EmptySolutionStore: ISolutionStoreData = {
92
93
  solutionItemId: "",
93
94
  defaultWkid: undefined,
94
95
  solutionData: { metadata: {}, templates: [] },
@@ -374,14 +375,12 @@ class SolutionStore
374
375
  */
375
376
  protected _flagStoreHasChanges(flagHasChanges: boolean): void {
376
377
  // Event for notifying if the store has changes or not
377
- if (this._hasChanges !== flagHasChanges) {
378
- window.dispatchEvent(new CustomEvent("solutionStoreHasChanges", {
379
- detail: flagHasChanges,
380
- bubbles: true,
381
- cancelable: false,
382
- composed: true
383
- }));
384
- }
378
+ window.dispatchEvent(new CustomEvent("solutionStoreHasChanges", {
379
+ detail: flagHasChanges,
380
+ bubbles: true,
381
+ cancelable: false,
382
+ composed: true
383
+ }));
385
384
 
386
385
  this._hasChanges = flagHasChanges;
387
386
  }
@@ -18,11 +18,33 @@
18
18
  * See the License for the specific language governing permissions and
19
19
  * limitations under the License.
20
20
  */
21
+ import { getProp } from "@esri/solution-common";
21
22
  //--------------------------------------------------------------------------
22
23
  //
23
24
  // Public Functions
24
25
  //
25
26
  //--------------------------------------------------------------------------
27
+ /**
28
+ * Gets a list of Feature Services that are not views along with an enabled property that indicates
29
+ * if the service currently uses a spatial reference variable.
30
+ *
31
+ * @param templates a list of item templates from the solution
32
+ *
33
+ * @returns a list of feature service names and an enabled property to indicate
34
+ * if they currently use a spatial reference variable.
35
+ */
36
+ export function getFeatureServices(templates) {
37
+ return templates.reduce((prev, cur) => {
38
+ const name = cur.item.title || cur.item.name;
39
+ if (cur.type === "Feature Service" &&
40
+ cur.item.typeKeywords.indexOf("View Service") < 0 &&
41
+ prev.indexOf(name) < 0) {
42
+ const wkid = getProp(cur, "properties.service.spatialReference.wkid");
43
+ prev.push({ name, enabled: wkid.toString().startsWith("{{params.wkid||") });
44
+ }
45
+ return prev;
46
+ }, []);
47
+ }
26
48
  /**
27
49
  * Sort the solution items
28
50
  *
@@ -100,6 +122,80 @@ export function getItemHierarchy(templates) {
100
122
  }
101
123
  return hierarchy;
102
124
  }
125
+ /**
126
+ * Create and store text models for the editor as well as other key values such as the original values
127
+ * that can be used to clear any temp edits.
128
+ *
129
+ * @param templates a list of item templates from the solution
130
+ *
131
+ * @returns a list of models and key values
132
+ */
133
+ export function getModels(templates) {
134
+ const ids = [];
135
+ const models = {};
136
+ const monacoDefined = typeof (monaco) !== "undefined";
137
+ templates.forEach(t => {
138
+ var _a, _b, _c, _d;
139
+ if (ids.indexOf(t.itemId) < 0) {
140
+ ids.push(t.itemId);
141
+ models[t.itemId] = {
142
+ dataModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.data, null, '\t'), "json") : undefined,
143
+ dataOriginValue: JSON.stringify(t.data),
144
+ propsModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.properties, null, '\t'), "json") : undefined,
145
+ propsOriginValue: JSON.stringify(t.properties),
146
+ propsDiffOriginValue: JSON.stringify(t.properties),
147
+ state: undefined,
148
+ shareInfo: undefined,
149
+ isEditing: false,
150
+ itemId: t.itemId,
151
+ updateItemValues: {},
152
+ originalItemValues: {},
153
+ name: (_a = t.item) === null || _a === void 0 ? void 0 : _a.name,
154
+ title: (_b = t.item) === null || _b === void 0 ? void 0 : _b.title,
155
+ itemOriginValue: JSON.stringify(t.item),
156
+ spatialReference: (_d = (_c = t.properties) === null || _c === void 0 ? void 0 : _c.service) === null || _d === void 0 ? void 0 : _d.spatialReference,
157
+ resources: [], //???
158
+ resourceFilePaths: [], //???
159
+ sourceResourceFilePaths: [], //???
160
+ thumbnailOrigin: undefined, //???
161
+ thumbnailNew: undefined, //???
162
+ type: t.type
163
+ };
164
+ }
165
+ });
166
+ return models;
167
+ }
168
+ /**
169
+ * Set key organization variables we will allow users to insert at runtime
170
+ *
171
+ * @param translations nls translation object
172
+ *
173
+ * @returns a list of variables for the organization
174
+ */
175
+ export function getOrganizationVariables(translations) {
176
+ const orgVars = [{
177
+ id: "",
178
+ title: translations.geocodeUrl,
179
+ value: "{{organization.helperServices.geocode:getDefaultLocatorURL}}"
180
+ }, {
181
+ id: "",
182
+ title: translations.geometryUrl,
183
+ value: "{{organization.helperServices.geometry.url}}"
184
+ }, {
185
+ id: "",
186
+ title: translations.portalBaseUrl,
187
+ value: "{{portalBaseUrl}}"
188
+ }, {
189
+ id: "",
190
+ title: translations.routeUrl,
191
+ value: "{{organization.helperServices.route.url}}"
192
+ }, {
193
+ id: "",
194
+ title: translations.solutionItemExtent,
195
+ value: "{{solutionItemExtent}}"
196
+ }];
197
+ return orgVars;
198
+ }
103
199
  /**
104
200
  * Explore the solution item templates for variables we will allow users to insert at runtime
105
201
  *
@@ -145,35 +241,26 @@ export function getSolutionVariables(templates, translations) {
145
241
  return vars;
146
242
  }
147
243
  /**
148
- * Set key organization variables we will allow users to insert at runtime
244
+ * Stores basic spatial reference information that is used to determine if a custom spatial reference parameter will
245
+ * be exposed while deploying this solution and if so what feature services will support it and what will the default wkid be
149
246
  *
150
- * @param translations nls translation object
247
+ * @param services a list of objects with service name and enabled property (indicates if they currently use a spatial reference var)
248
+ * @param data the data object of a solution item
151
249
  *
152
- * @returns a list of variables for the organization
250
+ * @returns an object that stores if a custom spatial reference parameter is enabled/disabled,
251
+ * a list of services and if they are enabled/disabled, and the default wkid
153
252
  */
154
- export function getOrganizationVariables(translations) {
155
- const orgVars = [{
156
- id: "",
157
- title: translations.geocodeUrl,
158
- value: "{{organization.helperServices.geocode:getDefaultLocatorURL}}"
159
- }, {
160
- id: "",
161
- title: translations.geometryUrl,
162
- value: "{{organization.helperServices.geometry.url}}"
163
- }, {
164
- id: "",
165
- title: translations.portalBaseUrl,
166
- value: "{{portalBaseUrl}}"
167
- }, {
168
- id: "",
169
- title: translations.routeUrl,
170
- value: "{{organization.helperServices.route.url}}"
171
- }, {
172
- id: "",
173
- title: translations.solutionItemExtent,
174
- value: "{{solutionItemExtent}}"
175
- }];
176
- return orgVars;
253
+ export function getSpatialReferenceInfo(services, data) {
254
+ const defaultServices = {};
255
+ services.forEach(service => {
256
+ defaultServices[service.name] = service.enabled;
257
+ });
258
+ const wkid = getProp(data, "params.wkid.default");
259
+ return {
260
+ enabled: wkid !== undefined && wkid !== "",
261
+ services: defaultServices,
262
+ spatialReference: wkid ? { wkid } : undefined
263
+ };
177
264
  }
178
265
  //--------------------------------------------------------------------------
179
266
  //
@@ -24,12 +24,13 @@ import {
24
24
  //IItemShare,
25
25
  IOrganizationVariableItem,
26
26
  //IResourcePath,
27
- //SolutionModels,
27
+ ISolutionModels,
28
28
  //ISolutionSpatialReferenceInfo,
29
29
  IVariableItem
30
30
  } from '../utils/interfaces';
31
31
  import {
32
- IItemTemplate
32
+ IItemTemplate,
33
+ getProp
33
34
  } from '@esri/solution-common';
34
35
 
35
36
  //--------------------------------------------------------------------------
@@ -38,6 +39,31 @@ import {
38
39
  //
39
40
  //--------------------------------------------------------------------------
40
41
 
42
+ /**
43
+ * Gets a list of Feature Services that are not views along with an enabled property that indicates
44
+ * if the service currently uses a spatial reference variable.
45
+ *
46
+ * @param templates a list of item templates from the solution
47
+ *
48
+ * @returns a list of feature service names and an enabled property to indicate
49
+ * if they currently use a spatial reference variable.
50
+ */
51
+ export function getFeatureServices(
52
+ templates: IItemTemplate[]
53
+ ): any[] {
54
+ return templates.reduce((prev, cur) => {
55
+ const name: string = cur.item.title || cur.item.name;
56
+ if (cur.type === "Feature Service" &&
57
+ cur.item.typeKeywords.indexOf("View Service") < 0 &&
58
+ prev.indexOf(name) < 0
59
+ ) {
60
+ const wkid = getProp(cur, "properties.service.spatialReference.wkid");
61
+ prev.push({ name, enabled: wkid.toString().startsWith("{{params.wkid||")});
62
+ }
63
+ return prev;
64
+ }, []);
65
+ }
66
+
41
67
  /**
42
68
  * Sort the solution items
43
69
  *
@@ -131,6 +157,83 @@ export function getItemHierarchy(
131
157
  return hierarchy;
132
158
  }
133
159
 
160
+ /**
161
+ * Create and store text models for the editor as well as other key values such as the original values
162
+ * that can be used to clear any temp edits.
163
+ *
164
+ * @param templates a list of item templates from the solution
165
+ *
166
+ * @returns a list of models and key values
167
+ */
168
+ export function getModels(templates: any[]): ISolutionModels {
169
+ const ids: string[] = [];
170
+ const models: ISolutionModels = {};
171
+ const monacoDefined = typeof(monaco) !== "undefined";
172
+ templates.forEach(t => {
173
+ if (ids.indexOf(t.itemId) < 0) {
174
+ ids.push(t.itemId);
175
+ models[t.itemId] = {
176
+ dataModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.data, null, '\t'), "json") : undefined,
177
+ dataOriginValue: JSON.stringify(t.data),
178
+ propsModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.properties, null, '\t'), "json") : undefined,
179
+ propsOriginValue: JSON.stringify(t.properties),
180
+ propsDiffOriginValue: JSON.stringify(t.properties),
181
+ state: undefined,
182
+ shareInfo: undefined,
183
+ isEditing: false,
184
+ itemId: t.itemId,
185
+ updateItemValues: {},
186
+ originalItemValues: {},
187
+ name: t.item?.name,
188
+ title: t.item?.title,
189
+ itemOriginValue: JSON.stringify(t.item),
190
+ spatialReference: t.properties?.service?.spatialReference,
191
+ resources: [], //???
192
+ resourceFilePaths: [], //???
193
+ sourceResourceFilePaths: [], //???
194
+ thumbnailOrigin: undefined, //???
195
+ thumbnailNew: undefined, //???
196
+ type: t.type
197
+ };
198
+ }
199
+ });
200
+ return models;
201
+ }
202
+
203
+ /**
204
+ * Set key organization variables we will allow users to insert at runtime
205
+ *
206
+ * @param translations nls translation object
207
+ *
208
+ * @returns a list of variables for the organization
209
+ */
210
+ export function getOrganizationVariables(
211
+ translations: any
212
+ ): IOrganizationVariableItem[] {
213
+ const orgVars: IOrganizationVariableItem[] = [{
214
+ id: "",
215
+ title: translations.geocodeUrl,
216
+ value: "{{organization.helperServices.geocode:getDefaultLocatorURL}}"
217
+ }, {
218
+ id: "",
219
+ title: translations.geometryUrl,
220
+ value: "{{organization.helperServices.geometry.url}}"
221
+ }, {
222
+ id: "",
223
+ title: translations.portalBaseUrl,
224
+ value: "{{portalBaseUrl}}"
225
+ }, {
226
+ id: "",
227
+ title: translations.routeUrl,
228
+ value: "{{organization.helperServices.route.url}}"
229
+ }, {
230
+ id: "",
231
+ title: translations.solutionItemExtent,
232
+ value: "{{solutionItemExtent}}"
233
+ }];
234
+ return orgVars;
235
+ }
236
+
134
237
  /**
135
238
  * Explore the solution item templates for variables we will allow users to insert at runtime
136
239
  *
@@ -181,37 +284,29 @@ export function getSolutionVariables(
181
284
  }
182
285
 
183
286
  /**
184
- * Set key organization variables we will allow users to insert at runtime
287
+ * Stores basic spatial reference information that is used to determine if a custom spatial reference parameter will
288
+ * be exposed while deploying this solution and if so what feature services will support it and what will the default wkid be
185
289
  *
186
- * @param translations nls translation object
290
+ * @param services a list of objects with service name and enabled property (indicates if they currently use a spatial reference var)
291
+ * @param data the data object of a solution item
187
292
  *
188
- * @returns a list of variables for the organization
293
+ * @returns an object that stores if a custom spatial reference parameter is enabled/disabled,
294
+ * a list of services and if they are enabled/disabled, and the default wkid
189
295
  */
190
- export function getOrganizationVariables(
191
- translations: any
192
- ): IOrganizationVariableItem[] {
193
- const orgVars: IOrganizationVariableItem[] = [{
194
- id: "",
195
- title: translations.geocodeUrl,
196
- value: "{{organization.helperServices.geocode:getDefaultLocatorURL}}"
197
- }, {
198
- id: "",
199
- title: translations.geometryUrl,
200
- value: "{{organization.helperServices.geometry.url}}"
201
- }, {
202
- id: "",
203
- title: translations.portalBaseUrl,
204
- value: "{{portalBaseUrl}}"
205
- }, {
206
- id: "",
207
- title: translations.routeUrl,
208
- value: "{{organization.helperServices.route.url}}"
209
- }, {
210
- id: "",
211
- title: translations.solutionItemExtent,
212
- value: "{{solutionItemExtent}}"
213
- }];
214
- return orgVars;
296
+ export function getSpatialReferenceInfo(
297
+ services: any[],
298
+ data: any
299
+ ): any {
300
+ const defaultServices: any = {};
301
+ services.forEach(service => {
302
+ defaultServices[service.name] = service.enabled;
303
+ });
304
+ const wkid = getProp(data, "params.wkid.default");
305
+ return {
306
+ enabled: wkid !== undefined && wkid !== "",
307
+ services: defaultServices,
308
+ spatialReference: wkid ? { wkid } : undefined
309
+ }
215
310
  }
216
311
 
217
312
  //--------------------------------------------------------------------------
@@ -23,8 +23,8 @@ import * as electionOutreach from "../../demos/data/election-outreach.json";
23
23
  describe("getInventoryItems", () => {
24
24
  it("can get inventory items", () => {
25
25
  const templates = electionOutreach.templates;
26
- expect(templates.length).toEqual(11);
26
+ expect(templates.length).toEqual(12);
27
27
  const actual = getInventoryItems(templates);
28
- expect(actual.length).toEqual(5);
28
+ expect(actual.length).toEqual(6);
29
29
  });
30
30
  });
@@ -22,8 +22,8 @@ import * as electionOutreach from '../../demos/data/election-outreach.json';
22
22
  describe("getInventoryItems", () => {
23
23
  it("can get inventory items", () => {
24
24
  const templates = electionOutreach.templates;
25
- expect(templates.length).toEqual(11)
25
+ expect(templates.length).toEqual(12)
26
26
  const actual = getInventoryItems(templates);
27
- expect(actual.length).toEqual(5);
27
+ expect(actual.length).toEqual(6);
28
28
  });
29
29
  });
@@ -0,0 +1,16 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
+
8
+ function getDefaultExportFromCjs (x) {
9
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
10
+ }
11
+
12
+ function commonjsRequire (path) {
13
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
14
+ }
15
+
16
+ export { commonjsRequire as a, commonjsGlobal as c, getDefaultExportFromCjs as g };
@@ -5,7 +5,7 @@
5
5
  */
6
6
  /**
7
7
  * Do not edit directly
8
- * Generated on Wed, 17 Jan 2024 17:52:08 GMT
8
+ * Generated on Wed, 01 May 2024 00:07:10 GMT
9
9
  */
10
10
  const calciteSize24 = "24px";
11
11
  const calciteSize32 = "32px";
@@ -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 { g as getDefaultExportFromCjs } from './esri-loader.js';
6
+ import { g as getDefaultExportFromCjs } from './_commonjsHelpers.js';
7
7
  import { getAssetPath } from '@stencil/core/internal/client';
8
8
  import { l as loadModules } from './loadModules.js';
9
9
  import { q as queryFeaturesByID } from './queryUtils.js';
@@ -3,15 +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
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
-
8
- function getDefaultExportFromCjs (x) {
9
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
10
- }
11
-
12
- function commonjsRequire (path) {
13
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
14
- }
6
+ import { c as commonjsGlobal } from './_commonjsHelpers.js';
15
7
 
16
8
  var esriLoader = {exports: {}};
17
9
 
@@ -308,4 +300,4 @@ Object.defineProperty(exports, '__esModule', { value: true });
308
300
 
309
301
  }(esriLoader, esriLoader.exports));
310
302
 
311
- export { commonjsRequire as a, commonjsGlobal as c, esriLoader as e, getDefaultExportFromCjs as g };
303
+ export { esriLoader as e };